aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-12-07 21:46:34 +1030
committerAlan Modra <amodra@gmail.com>2017-12-07 23:04:15 +1030
commit7d6de425dad59050131ac4ffef84068e57bba7c4 (patch)
tree79e53a82f82f97cc022ef10c9a475a8a2bf345d5 /ld
parent931c97c81a55dffed31e20e0cd109aced62221e0 (diff)
downloadgdb-7d6de425dad59050131ac4ffef84068e57bba7c4.zip
gdb-7d6de425dad59050131ac4ffef84068e57bba7c4.tar.gz
gdb-7d6de425dad59050131ac4ffef84068e57bba7c4.tar.bz2
Objcopy interleave test
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/interleave.ld5
-rw-r--r--ld/testsuite/ld-elf/interleave.s4
3 files changed, 13 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index f0121a7..db025ee 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,13 @@
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.
2017-12-07 Alan Modra <amodra@gmail.com>
diff --git a/ld/testsuite/ld-elf/interleave.ld b/ld/testsuite/ld-elf/interleave.ld
index 6406166..4098436 100644
--- a/ld/testsuite/ld-elf/interleave.ld
+++ b/ld/testsuite/ld-elf/interleave.ld
@@ -5,6 +5,7 @@ MEMORY
}
SECTIONS
{
- .a0 : { *(.text.a0) } > x0
- .a1 : { *(.text.a1) } > x1
+ .a0 : { *(.data.a0) } > x0
+ .a1 : { *(.data.a1) } > x1
+ /DISCARD/ : { *(*) }
}
diff --git a/ld/testsuite/ld-elf/interleave.s b/ld/testsuite/ld-elf/interleave.s
index 490aa59..2fb66bd 100644
--- a/ld/testsuite/ld-elf/interleave.s
+++ b/ld/testsuite/ld-elf/interleave.s
@@ -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