This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix ELF visibility handling
On Wed, Apr 09, 2003 at 09:22:52AM -0700, H. J. Lu wrote:
> * elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New.
> (ELF_LINK_DYNAMIC_WEAK): New.
>
> * elflink.h (elf_merge_symbol): Add one argument to indicate if
> a symbol should be skipped. Ignore definitions in dynamic
> objects for symbols with non-default visibility.
> (elf_add_default_symbol): Adjusted.
> (elf_link_add_object_symbols): Check if a symbol should be
> skipped. Don't merge the visibility field with the one from
> a dynamic object.
> (elf_link_check_versioned_symbol): Use undef_bfd.
> (elf_link_output_extsym): Warn if a forced local symbol is
> referenced from dynamic objects. Make non-weak undefined symbol
> with non-default visibility a fatal error.
>
> ld/testsuite/
>
> 2003-04-01 H.J. Lu <hjl at gnu dot org>
>
> * ld-elfvsb/elfvsb.dat: Updated.
> * ld-elfvsb/elfvsb.exp: Likewise.
> * ld-elfvsb/main.c: Likewise.
> * ld-elfvsb/sh1.c: Likewise.
> * ld-elfvsb/sh2.c: Likewise.
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre