From: H.J. Lu Date: Wed, 7 Mar 2007 03:58:44 +0000 (+0000) Subject: 2007-03-06 H.J. Lu X-Git-Tag: drow-reverse-20070409-branchpoint~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d64cc92a74c9fd2b320e23824de29b266d117b11;p=platform%2Fupstream%2Fbinutils.git 2007-03-06 H.J. Lu PR ld/4144 * ld-elf/nobits-1.d: New file. * ld-elf/nobits-1.s: Likewise. * ld-elf/nobits-1.t: Likewise. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e3e296d..9493773 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2007-03-06 H.J. Lu + + PR ld/4144 + * ld-elf/nobits-1.d: New file. + * ld-elf/nobits-1.s: Likewise. + * ld-elf/nobits-1.t: Likewise. + 2007-03-02 Richard Sandiford * ld-elf/binutils.exp: Revert last change. diff --git a/ld/testsuite/ld-elf/nobits-1.d b/ld/testsuite/ld-elf/nobits-1.d new file mode 100644 index 0000000..9b90b6f --- /dev/null +++ b/ld/testsuite/ld-elf/nobits-1.d @@ -0,0 +1,7 @@ +#ld: -Tnobits-1.t +#readelf: -l --wide + +#... + Section to Segment mapping: + Segment Sections... + 00 .foo .bar diff --git a/ld/testsuite/ld-elf/nobits-1.s b/ld/testsuite/ld-elf/nobits-1.s new file mode 100644 index 0000000..8fb1365 --- /dev/null +++ b/ld/testsuite/ld-elf/nobits-1.s @@ -0,0 +1,6 @@ + .globl _entry + .section .foo,"awx",%progbits +_entry: + .byte 0 + .section .bar,"ax",%nobits + .byte 0 diff --git a/ld/testsuite/ld-elf/nobits-1.t b/ld/testsuite/ld-elf/nobits-1.t new file mode 100644 index 0000000..2004330 --- /dev/null +++ b/ld/testsuite/ld-elf/nobits-1.t @@ -0,0 +1,13 @@ +ENTRY(_entry) +PHDRS +{ + data PT_LOAD; +} +SECTIONS +{ + . = 0x1000000; + .foo : { *(.foo) } :data + . = 0x2000000; + .bar : { *(.bar) } :data + /DISCARD/ : { *(*) } +}