On 14 December 2012 10:17, Markos Chandras <markos.chand...@gmail.com> wrote:
> From: Markos Chandras <markos.chand...@imgtec.com>
>
> Commit a33796043bdef5345bc00a528c942f91a87af8e9 introduced the runtime
> prelink support. However, the linker script that is being generated
> by the create-lds rule in the Makerules file, needs to respect the
> SYMBOL_PREFIX for architectures that need it.
>
> Signed-off-by: Markos Chandras <markos.chand...@imgtec.com>
> ---
>  Makerules | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makerules b/Makerules
> index 60acaa8..28bbdef 100644
> --- a/Makerules
> +++ b/Makerules
> @@ -300,7 +300,7 @@ define create-lds
>         -Wl,-z,relro -Wl,--hash-style=gnu -Wl,-z,defs \
>         -Wl,--verbose 2>&1 | LC_ALL=C \
>         sed -e '/^=========/,/^=========/!d;/^=========/d' \
> -       -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' > 
> $@.lds
> +       -e 's/\. = .* + SIZEOF_HEADERS;/& $(SYMBOL_PREFIX)_begin = . - 
> SIZEOF_HEADERS;/' > $@.lds
>  endef
>
>  define link.so
> --
> 1.8.0
>
>
> _______________________________________________
> uClibc mailing list
> uClibc@uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc


Hi,

Any chance to apply this patch to both master and 0.9.33 branches?
Without it, uClibc fails to compile with prelink support in "prefixed"
targets with the following error:

ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `__dl_start':
ldso.c:(.text+0x4cbc): undefined reference to `__begin'

-- 
Regards,
Markos Chandras
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to