aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/rxlinux.em
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 /ld/emultempl/rxlinux.em
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 'ld/emultempl/rxlinux.em')
-rw-r--r--ld/emultempl/rxlinux.em42
1 files changed, 42 insertions, 0 deletions
diff --git a/ld/emultempl/rxlinux.em b/ld/emultempl/rxlinux.em
new file mode 100644
index 0000000..ee036a1
--- /dev/null
+++ b/ld/emultempl/rxlinux.em
@@ -0,0 +1,42 @@
+# This shell script emits a C file. -*- C -*-
+# Copyright (C) 2020 Free Software Foundation, Inc.
+#
+# This file is part of the GNU Binutils.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+# MA 02110-1301, USA.
+#
+
+# This file is sourced from elf.em, and defines extra rx-elf
+# specific routines.
+#
+test -z "$TARGET2_TYPE" && TARGET2_TYPE="rel"
+fragment <<EOF
+
+#include "elf32-rx.h"
+
+/* This is a convenient point to tell BFD about target specific flags.
+ After the output has been created, but before inputs are read. */
+static void
+rx_linux_create_output_section_statements (void)
+{
+ extern void bfd_elf32_rx_set_target_flags (bfd_boolean, bfd_boolean);
+
+ bfd_elf32_rx_set_target_flags (FALSE, FALSE);
+}
+
+EOF
+LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=rx_linux_create_output_section_statements
+