This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix the weak undefined symbols with non-defaultvisibility


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]