diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2020-04-30 13:35:37 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-04-30 13:35:37 +0100 |
commit | c578f16ef18fde35d5887909d5faaf0bd0118e9d (patch) | |
tree | fbb8db4b6c95a16b98e931d799da2896d47f4c35 /ld/emulparams | |
parent | d548f47df4d2e3d117d504a4c9977982c78a0556 (diff) | |
download | gdb-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/emulparams')
-rw-r--r-- | ld/emulparams/elf32rx_linux.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/emulparams/elf32rx_linux.sh b/ld/emulparams/elf32rx_linux.sh new file mode 100644 index 0000000..3abe416 --- /dev/null +++ b/ld/emulparams/elf32rx_linux.sh @@ -0,0 +1,17 @@ +MACHINE= +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-rx-linux" +# See also `include/elf/rx.h' +TEXT_START_ADDR=0x10000000 +ARCH=rx +ENTRY=start +EMBEDDED=yes +TEMPLATE_NAME=elf +EXTRA_EM_FILE=rxlinux +ELFSIZE=32 +MAXPAGESIZE=256 + +STACK_ADDR="(DEFINED(__stack) ? __stack : 0xbffffffc)" +STACK_SENTINEL="LONG(0xdeaddead)" +# We do not need .stack for shared library. +test -n "$CREATE_SHLIB" && unset STACK_ADDR |