aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-12-14 09:57:55 +1030
committerAlan Modra <amodra@gmail.com>2020-12-14 14:05:05 +1030
commitf7c54040d7bf1e4aa18ea5c20672857e61c1761e (patch)
treef15d07b8ca32ebc01269e9723d18e09d864a67db /gas
parentad9675dd80b41d2098fc2dc352c423fbfea0f5b1 (diff)
downloadbinutils-f7c54040d7bf1e4aa18ea5c20672857e61c1761e.zip
binutils-f7c54040d7bf1e4aa18ea5c20672857e61c1761e.tar.gz
binutils-f7c54040d7bf1e4aa18ea5c20672857e61c1761e.tar.bz2
rx-elf FAIL: SHF_GNU_RETAIN sections 27
rx-elf is an odd target with non-standard names for default text, data and bss sections. This patch tweaks a new test to make it pass. * testsuite/gas/elf/section27.s: Reorder .text, .data and .bss so that output section order does not depend on those sections being already created. Use ".section .text" rather than ".text".
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/testsuite/gas/elf/section27.s20
2 files changed, 16 insertions, 10 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 42bab19..d74fed1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2020-12-14 Alan Modra <amodra@gmail.com>
+
+ * testsuite/gas/elf/section27.s: Reorder .text, .data and .bss
+ so that output section order does not depend on those sections
+ being already created. Use ".section .text" rather than ".text".
+
2020-12-13 Borislav Petkov <bp@suse.de>
* testsuite/gas/i386/align-branch-9.s: Don't use labels that are
diff --git a/gas/testsuite/gas/elf/section27.s b/gas/testsuite/gas/elf/section27.s
index 78e410f..5e74bde 100644
--- a/gas/testsuite/gas/elf/section27.s
+++ b/gas/testsuite/gas/elf/section27.s
@@ -1,8 +1,8 @@
- .section .bss,"aw"
- .global discard0
- .type discard0, %object
-discard0:
- .zero 2
+ .section .text,"ax"
+ .global discard2
+ .type discard2, %function
+discard2:
+ .word 0
.section .data,"aw"
.global discard1
@@ -10,11 +10,11 @@ discard0:
discard1:
.word 1
- .text
- .global discard2
- .type discard2, %function
-discard2:
- .word 0
+ .section .bss,"aw"
+ .global discard0
+ .type discard0, %object
+discard0:
+ .zero 2
.section .bss,"awR",%nobits
.global retain0