diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-07 13:32:02 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-07 13:32:02 +0000 |
commit | e5d080028db61d00aed864b1d487bf6e8e20a7e7 (patch) | |
tree | f659847816c14332f0bb05b425b48053b80a90ce /ld/testsuite/ld-elf | |
parent | 8c9343347a640515b2536a87c884497ae4a38022 (diff) | |
download | gdb-e5d080028db61d00aed864b1d487bf6e8e20a7e7.zip gdb-e5d080028db61d00aed864b1d487bf6e8e20a7e7.tar.gz gdb-e5d080028db61d00aed864b1d487bf6e8e20a7e7.tar.bz2 |
bfd/
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.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/group3a.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/group3a.s | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/group3b.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/group3b.s | 6 |
4 files changed, 27 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/group3a.d b/ld/testsuite/ld-elf/group3a.d new file mode 100644 index 0000000..83c5161 --- /dev/null +++ b/ld/testsuite/ld-elf/group3a.d @@ -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 +#... diff --git a/ld/testsuite/ld-elf/group3a.s b/ld/testsuite/ld-elf/group3a.s new file mode 100644 index 0000000..5e6a686 --- /dev/null +++ b/ld/testsuite/ld-elf/group3a.s @@ -0,0 +1,5 @@ + .section .data,"awG",%progbits,foo_group,comdat + .globl foo + .type foo,%object +foo: + .word 0 diff --git a/ld/testsuite/ld-elf/group3b.d b/ld/testsuite/ld-elf/group3b.d new file mode 100644 index 0000000..82c18e4 --- /dev/null +++ b/ld/testsuite/ld-elf/group3b.d @@ -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 +#... diff --git a/ld/testsuite/ld-elf/group3b.s b/ld/testsuite/ld-elf/group3b.s new file mode 100644 index 0000000..6c101bc5 --- /dev/null +++ b/ld/testsuite/ld-elf/group3b.s @@ -0,0 +1,6 @@ + .section .data,"awG",%progbits,foo_group,comdat + .hidden foo + .globl foo + .type foo,%object +foo: + .word 0 |