From 7d6de425dad59050131ac4ffef84068e57bba7c4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 7 Dec 2017 21:46:34 +1030 Subject: [PATCH] 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. --- ld/ChangeLog | 8 ++++++++ ld/testsuite/ld-elf/interleave.ld | 5 +++-- ld/testsuite/ld-elf/interleave.s | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index f0121a7721c..db025ee7b69 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2017-12-07 Alan Modra + + 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 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Don't define. diff --git a/ld/testsuite/ld-elf/interleave.ld b/ld/testsuite/ld-elf/interleave.ld index 6406166c885..409843601fd 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 490aa59d5b5..2fb66bd1677 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 -- 2.30.2