6fa3860b3b
* elflink.c (bfd_elf_record_link_assignment): Make hidden and internal symbols local. (elf_link_renumber_hash_table_dynsyms): Ignore local symbols. (elf_link_renumber_local_hash_table_dynsyms): New function. (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols. ld/testsuite/ * ld-elfvsb/hidden2.s: New file * ld-elfvsb/hidden2.d: New file * ld-elfvsb/hidden2.ld: New file
9 lines
235 B
Makefile
9 lines
235 B
Makefile
#source: hidden2.s
|
|
#ld: -shared -T hidden2.ld
|
|
#readelf: -Ds
|
|
# It is also ok to remove this symbol, but we currently make it local.
|
|
|
|
Symbol table for image:
|
|
#...
|
|
[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 NOTYPE LOCAL HIDDEN +ABS foo
|
|
#pass
|