This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Your ld changes caused cris-axis-elf regressions
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 22 Mar 2005 21:31:21 -0800
- Subject: Re: Your ld changes caused cris-axis-elf regressions
- References: <200503230500.j2N50eSn026270@ignucius.se.axis.com>
On Wed, Mar 23, 2005 at 06:00:40AM +0100, Hans-Peter Nilsson wrote:
> (Forgot to CC the list again. Agh!)
>
> This change
>
> + 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
> +
> + * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
> + (gld${EMULATION_NAME}_finish): Call
> + gld${EMULATION_NAME}_provide_bound_symbols to provide
> + __preinit_array_start, __preinit_array_end, __init_array_start,
> + __init_array_end, __fini_array_start and __fini_array_end.
> +
> + * scripttempl/elf.sc: Don't provide __preinit_array_start,
> + __preinit_array_end, __init_array_start, __init_array_end,
> + __fini_array_start nor __fini_array_end.
> +
>
> caused these FAILs: (Likely similarly for other ld-* targets
> too, including mmix-knuth-mmixware ;-)
I have no problem with mmix-knuth-mmixware crossing from Linux/x86_64.
>
> FAIL: ld-cris/libdso-10
> FAIL: ld-cris/libdso-11
> FAIL: ld-cris/libdso-12
> FAIL: ld-cris/libdso-14
> FAIL: ld-cris/libdso-2
> FAIL: ld-cris/expdyn5
> FAIL: ld-cris/expdyn6
> FAIL: ld-cris/expdyn7
> FAIL: ld-cris/gotplt1
> FAIL: ld-cris/gotplt2
> FAIL: ld-cris/gotplt3
> FAIL: ld-cris/locref1
> FAIL: ld-cris/locref2
> FAIL: ld-cris/nodyn5
> FAIL: ld-cris/pv32-1
> FAIL: ld-cris/weakref2
>
The change I made removed an unnecessary "ALIGN" before .init_array
in elf.sc, which may change memory layout. I don't have any problems
with ia32, ia64 and x86_64.
BTW, I got many gas failures for cris-elf on Linux/x86_64. Is cris-elf
64bit clean? Please fix gas failures first. I will update ld-cris tests
later.
H.J.