]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Objcopy interleave test
authorAlan Modra <amodra@gmail.com>
Thu, 7 Dec 2017 11:16:34 +0000 (21:46 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Dec 2017 12:34:15 +0000 (23:04 +1030)
PR 22465
* testsuite/ld-elf/interleave.s: Use .data sections and provide
section attrs.
* testsuite/ld-elf/interleave.ld: Discard other sections.  Adjust
for changed section names.

ld/ChangeLog
ld/testsuite/ld-elf/interleave.ld
ld/testsuite/ld-elf/interleave.s

index f0121a7721ccd75960d94153849430a536396794..db025ee7b69df4cb5a1b58d0be7cc9422a5ffc3a 100644 (file)
@@ -1,3 +1,11 @@
+2017-12-07  Alan Modra  <amodra@gmail.com>
+
+       PR 22465
+       * testsuite/ld-elf/interleave.s: Use .data sections and provide
+       section attrs.
+       * testsuite/ld-elf/interleave.ld: Discard other sections.  Adjust
+       for changed section names.
+
 2017-12-07  Alan Modra  <amodra@gmail.com>
 
        * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Don't define.
index 6406166c88543334bc098d4c1bc263a333b4a673..409843601fd4a830bf2990a183abdc97064d37ac 100644 (file)
@@ -5,6 +5,7 @@ MEMORY
 }
 SECTIONS
 {
-  .a0 : { *(.text.a0) } > x0
-  .a1 : { *(.text.a1) } > x1
+  .a0 : { *(.data.a0) } > x0
+  .a1 : { *(.data.a1) } > x1
+  /DISCARD/ : { *(*) }
 }
index 490aa59d5b51cb82c90db5f539fad1e32545a5a0..2fb66bd16776e84bd31d4558bb186ce7be9be13b 100644 (file)
@@ -1,4 +1,4 @@
-       .section ".text.a0"
+       .section ".data.a0","aw",%progbits
        .byte 0x00
        .byte 0x01
        .byte 0x02
@@ -7,7 +7,7 @@
        .byte 0x05
        .byte 0x06
        .byte 0x07
-       .section ".text.a1"
+       .section ".data.a1","aw",%progbits
        .byte 0x10
        .byte 0x11
        .byte 0x12