This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix place_orphan
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Fix place_orphan
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 13 Jul 2001 23:21:12 -0700
- Cc: binutils at sources dot redhat dot com
- References: <20010712210456.L899@sunsite.ms.mff.cuni.cz>
On Thu, Jul 12, 2001 at 09:04:56PM +0200, Jakub Jelinek wrote:
> Hi!
>
> I was wondering why some glibc shared libraries have .interp sections placed
> in between non-alloced sections, like for libBrokenLocale.so.1:
>
> Ok to commit? Tested on i386-redhat-linux.
>
> 2001-07-12 Jakub Jelinek <jakub@redhat.com>
>
> * emultempl/elf32.em (output_prev_sec_find): New.
> (place_orphan): Use it.
>
I don't think it is correct. It breaks -static.
# cat x.c
main ()
{
}
# gcc -static x.c
/usr/bin/ld: BFD internal error, aborting at section.c line 970 in
bfd_map_over_sections
/usr/bin/ld: Please report this bug.
....
(gdb) bt
#0 gldelf_i386_place_orphan (file=0x8224bdc, s=0x8233e50) at eelf_i386.c:1152
#1 0x08058b3d in ldemul_place_orphan (file=0x8224bdc, s=0x8233e50)
at /export/linux/release/binutils-2.11.90.0.24/ld/ldemul.c:132
#2 0x08052854 in lang_place_orphans ()
at /export/linux/release/binutils-2.11.90.0.24/ld/ldlang.c:3732
#3 0x08052d71 in lang_process ()
at /export/linux/release/binutils-2.11.90.0.24/ld/ldlang.c:4136
#4 0x08055342 in main (argc=18, argv=0xbffff7e4)
at /export/linux/release/binutils-2.11.90.0.24/ld/ldmain.c:396
#5 0x400440be in __libc_start_main (main=0x8054c9c <main>, argc=18,
ubp_av=0xbffff7e4, init=0x8049360 <_init>, fini=0x8159000 <_fini>,
rtld_fini=0x4000bb08 <_dl_fini>, stack_end=0xbffff7dc)
at ../sysdeps/generic/libc-start.c:129
Could you please fix it?
Thanks.
H.J.