Browse Source
2006-12-07 H.J. Lu <hjl@gnu.org> PR ld/3666 * elflink.c (elf_link_add_object_symbols): Keep symbol visibility for symbols from discarded section. ld/testsuite/ 2006-12-07 H.J. Lu <hjl@gnu.org> PR ld/3666 * ld-elf/group3a.d: New file. * ld-elf/group3a.s: Likewise. * ld-elf/group3b.d: Likewise. * ld-elf/group3b.s: Likewise.drow-reverse-20070409-branch
7 changed files with 43 additions and 4 deletions
@ -0,0 +1,8 @@ |
|||
#source: group3a.s |
|||
#source: group3b.s |
|||
#ld: -T group.ld |
|||
#readelf: -s |
|||
Symbol table '.symtab' contains .* entries: |
|||
#... |
|||
.*: 0[0]*1000 0 OBJECT GLOBAL HIDDEN . foo |
|||
#... |
|||
@ -0,0 +1,5 @@ |
|||
.section .data,"awG",%progbits,foo_group,comdat |
|||
.globl foo |
|||
.type foo,%object |
|||
foo: |
|||
.word 0 |
|||
@ -0,0 +1,8 @@ |
|||
#source: group3b.s |
|||
#source: group3a.s |
|||
#ld: -T group.ld |
|||
#readelf: -s |
|||
Symbol table '.symtab' contains .* entries: |
|||
#... |
|||
.*: 0[0]*1000 0 OBJECT GLOBAL HIDDEN . foo |
|||
#... |
|||
@ -0,0 +1,6 @@ |
|||
.section .data,"awG",%progbits,foo_group,comdat |
|||
.hidden foo |
|||
.globl foo |
|||
.type foo,%object |
|||
foo: |
|||
.word 0 |
|||
Loading…
Reference in new issue