This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix the weak undefined symbols with non-defaultvisibility
- From: Andreas Jaeger <aj at suse dot de>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 05 May 2003 06:51:12 +0200
- Subject: Re: PATCH: Fix the weak undefined symbols with non-defaultvisibility
- References: <20030504210222.A9736@lucon.org>
"H. J. Lu" <hjl@lucon.org> writes:
> For weak undefined symbols with non-default visibility, they are
> supposed to be resolved to 0 and stay 0 at the run-time. Ld can help
> ld.so by removing their dynamic relocations.
>
>
> H.J.
> ----
> bfd/
>
> 2003-04-07 H.J. Lu <hjl@gnu.org>
>
> * elf32-i386.c (allocate_dynrelocs): Don't allocate dynamic
> relocation entries for weak undefined symbols with non-default
> visibility.
> (elf_i386_relocate_section): Initialize the GOT entries and
> skip R_386_32/R_386_PC32 for weak undefined symbols with
> non-default visibility.
>
> * elfxx-ia64.c (allocate_fptr): Don't allocate function
> descriptors for weak undefined symbols with non-default
> visibility.
> (allocate_dynrel_entries): Don't allocate relocation entries
> for symbols resolved to 0.
> (set_got_entry): Don't install dynamic relocation for weak
> undefined symbols with non-default visibility.
> (set_pltoff_entry): Likewise.
Is this only needed for these two platforms? I think other platforms
need the allocate_dynrelocas and relocate_section patches also,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj