aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2018-11-07 17:16:56 +0900
committerYoshinori Sato <ysato@users.sourceforge.jp>2018-11-07 17:18:05 +0900
commit8d3c78e473c2af54c8117808f2459a408f9f6327 (patch)
treea357bad217bc2fa52efc23af3fc5b23ac139df26 /gas
parent8f531a8d1f9b9b9061368ddd89d1b7e7aafe9e38 (diff)
downloadgdb-8d3c78e473c2af54c8117808f2459a408f9f6327.zip
gdb-8d3c78e473c2af54c8117808f2459a408f9f6327.tar.gz
gdb-8d3c78e473c2af54c8117808f2459a408f9f6327.tar.bz2
rx: Add target rx-*-linux.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-rx.h4
-rw-r--r--gas/configure.tgt2
-rw-r--r--gas/testsuite/gas/rx/pr19665.d2
-rw-r--r--gas/testsuite/gas/rx/pr22737.d2
5 files changed, 13 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d8cbf7e..40e468f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-07 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * configure.tgt: Add rx-*-linux.
+ * config/tc-rx.h (TARGET_FORMAT): Add "elf32-rx-linux".
+
2018-11-06 Matthew Malcomson <matthew.malcomson@arm.com>
* testsuite/gas/arm/neon-cond-bad_t2.d: Fix testcase for PE target.
diff --git a/gas/config/tc-rx.h b/gas/config/tc-rx.h
index bf1f283..78b2bed 100644
--- a/gas/config/tc-rx.h
+++ b/gas/config/tc-rx.h
@@ -31,7 +31,11 @@ extern int target_big_endian;
/* Instruction bytes are big endian, data bytes can be either. */
#define TARGET_BYTES_BIG_ENDIAN 0
+#ifndef TE_LINUX
#define TARGET_FORMAT (target_big_endian ? "elf32-rx-be" : "elf32-rx-le")
+#else
+#define TARGET_FORMAT "elf32-rx-linux"
+#endif
/* We don't need to handle .word strangely. */
#define WORKING_DOT_WORD
diff --git a/gas/configure.tgt b/gas/configure.tgt
index d1b0535..532f113 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -366,6 +366,8 @@ case ${generic_target} in
riscv*-*-*) fmt=elf endian=little ;;
+ rx-*-linux*) fmt=elf em=linux ;;
+
s390-*-linux-*) fmt=elf em=linux ;;
s390-*-tpf*) fmt=elf ;;
diff --git a/gas/testsuite/gas/rx/pr19665.d b/gas/testsuite/gas/rx/pr19665.d
index 61b3b0e..04c6b7a 100644
--- a/gas/testsuite/gas/rx/pr19665.d
+++ b/gas/testsuite/gas/rx/pr19665.d
@@ -1,6 +1,6 @@
#objdump: -dr
-.*: file format elf32-rx-le
+.*: file format elf32-rx-(le|linux)
Disassembly of section .*:
diff --git a/gas/testsuite/gas/rx/pr22737.d b/gas/testsuite/gas/rx/pr22737.d
index 1de868e..1de3e0b 100644
--- a/gas/testsuite/gas/rx/pr22737.d
+++ b/gas/testsuite/gas/rx/pr22737.d
@@ -1,6 +1,6 @@
#objdump: -dr
-.*: file format elf32-rx-le
+.*: file format elf32-rx-(le|linux)
Disassembly of section .*: