aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2020-04-30 13:35:37 +0100
committerNick Clifton <nickc@redhat.com>2020-04-30 13:35:37 +0100
commitc578f16ef18fde35d5887909d5faaf0bd0118e9d (patch)
treefbb8db4b6c95a16b98e931d799da2896d47f4c35 /gas
parentd548f47df4d2e3d117d504a4c9977982c78a0556 (diff)
downloadgdb-c578f16ef18fde35d5887909d5faaf0bd0118e9d.zip
gdb-c578f16ef18fde35d5887909d5faaf0bd0118e9d.tar.gz
gdb-c578f16ef18fde35d5887909d5faaf0bd0118e9d.tar.bz2
ld: Add rx-linux emulation. gas: Change ELF flags initial value in rx-linux
ld * emulparams/elf32rx_linux.sh: New rx-linux emulation. * emultempl/rxlinux.em: New. * configure.tgt: Add rx-linux. * Makefile.am: Add eelf32rx_linux.c * Makefile.in: Regenerate. gas * config/tc-rx.c (elf_flags): Reset default value. (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-rx.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f47deba..70c93c3 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * config/tc-rx.c (elf_flags): Reset default value.
+ (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
+
2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
* config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index febdb5a..e3521d3 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -42,12 +42,13 @@ const char EXP_CHARS[] = "eE";
const char FLT_CHARS[] = "dD";
/* ELF flags to set in the output file header. */
-static int elf_flags = E_FLAG_RX_ABI;
+static int elf_flags;
#ifndef TE_LINUX
bfd_boolean rx_use_conventional_section_names = FALSE;
#else
bfd_boolean rx_use_conventional_section_names = TRUE;
+static int elf_flags;
#endif
static bfd_boolean rx_use_small_data_limit = FALSE;
@@ -129,6 +130,9 @@ struct cpu_type cpu_type_list[] =
int
md_parse_option (int c ATTRIBUTE_UNUSED, const char * arg ATTRIBUTE_UNUSED)
{
+#ifndef TE_LINUX
+ elf_flags = E_FLAG_RX_ABI;
+#endif
switch (c)
{
case OPTION_BIG: