Browse Source
2008-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/5522 * elflink.c (elf_link_input_bfd): Don't write out a section if its output section is marked with SEC_NEVER_LOAD. ld/testsuite/ 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/5522 * ld-elf/noload-3.d: New file. * ld-elf/noload-3.s: Likewise. * ld-elf/noload-3.t: Likewise.insight_6_8-branch
7 changed files with 1239 additions and 1197 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,7 @@ |
|||
#ld: -T noload-3.t |
|||
#objdump: -s -j .foo1 |
|||
|
|||
#... |
|||
Contents of section .foo1: |
|||
[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+[ \t]+This is a test.* |
|||
#pass |
|||
@ -0,0 +1,6 @@ |
|||
.section .foo2,"aw",%progbits |
|||
.byte 1 |
|||
.section .foo1,"w",%progbits |
|||
.string "This is a test." |
|||
.section .foo,"aw",%progbits |
|||
.space 16 |
|||
@ -0,0 +1,7 @@ |
|||
SECTIONS |
|||
{ |
|||
.foo2 : { *(.foo2) } |
|||
.foo1 : { *(.foo1) } |
|||
.foo (NOLOAD) : { *(.foo) } |
|||
/DISCARD/ : { *(*) } |
|||
} |
|||
Loading…
Reference in new issue