Browse Source
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.gdb_7_1-branch
6 changed files with 41 additions and 4 deletions
@ -0,0 +1,8 @@ |
|||
#name: --gc-sections with note section |
|||
#ld: --gc-sections -e _start |
|||
#readelf: -S --wide |
|||
#target: *-*-linux* |
|||
|
|||
#... |
|||
.* .note.ABI-tag[ ]+NOTE.* |
|||
#... |
|||
@ -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 */ |
|||
Loading…
Reference in new issue