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.s | |
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.s')
-rw-r--r-- | ld/testsuite/ld-gc/abi-note.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-gc/abi-note.s b/ld/testsuite/ld-gc/abi-note.s new file mode 100644 index 0000000..22536c0 --- /dev/null +++ b/ld/testsuite/ld-gc/abi-note.s @@ -0,0 +1,15 @@ + .text + .global _start +_start: + .long 1 + + .section ".note.ABI-tag", "a" + .p2align 2 + .long 1f - 0f /* name length */ + .long 3f - 2f /* data length */ + .long 1 /* note type */ +0: .asciz "GNU" /* vendor name */ +1: .p2align 2 +2: .long 1 + .long 2 +3: .p2align 2 /* pad out section */ |