diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-01-07 13:44:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-01-07 13:44:37 +0000 |
commit | 16583161e14cbe747e78da035790c48951884556 (patch) | |
tree | e1fbc701c4f2f9fde24733620bad0513cd286ac9 /ld/testsuite/ld-gc/abi-note.d | |
parent | 089b4803bf8f591e762c475dbabceb3c37d97ffc (diff) | |
download | gdb-16583161e14cbe747e78da035790c48951884556.zip gdb-16583161e14cbe747e78da035790c48951884556.tar.gz gdb-16583161e14cbe747e78da035790c48951884556.tar.bz2 |
Always keep SHT_NOTE sections
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11143
* elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11143
* ld-gc/gc.exp: Run abi-note.
* ld-gc/abi-note.d: New.
* ld-gc/abi-note.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-gc/abi-note.d')
-rw-r--r-- | ld/testsuite/ld-gc/abi-note.d | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-gc/abi-note.d b/ld/testsuite/ld-gc/abi-note.d new file mode 100644 index 0000000..e802fe5 --- /dev/null +++ b/ld/testsuite/ld-gc/abi-note.d @@ -0,0 +1,8 @@ +#name: --gc-sections with note section +#ld: --gc-sections -e _start +#readelf: -S --wide +#target: *-*-linux* + +#... +.* .note.ABI-tag[ ]+NOTE.* +#... |