Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist add aarch64 bits
details: https://anonhg.NetBSD.org/src/rev/60eb803ec5a6
branches: trunk
changeset: 957625:60eb803ec5a6
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 05 21:26:43 2020 +0000
description:
add aarch64 bits
diffstat:
external/gpl3/gdb/dist/gas/configure.tgt | 1 +
external/gpl3/gdb/dist/ld/configure.tgt | 6 ++
external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh | 37 +++++++++++++
external/gpl3/gdb/dist/ld/emulparams/aarch64nbsdb.sh | 2 +
external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabi.sh | 27 +++++++++
external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabihf.sh | 20 +++++++
external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabi.sh | 2 +
external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabihf.sh | 2 +
external/gpl3/gdb/dist/ld/emulparams/elf32_x86_64_nacl.sh | 4 +
external/gpl3/gdb/dist/ld/emulparams/elf32or1k_nbsd.sh | 6 ++
external/gpl3/gdb/dist/ld/emulparams/elf32ppc_nbsd.sh | 10 +++
external/gpl3/gdb/dist/ld/emulparams/elf_i386_nacl.sh | 4 +
external/gpl3/gdb/dist/ld/emulparams/elf_x86_64_nacl.sh | 4 +
external/gpl3/gdb/dist/ld/emulparams/ppclynx.sh | 12 ++++
external/gpl3/gdb/dist/ld/emulparams/ppcpe.sh | 7 ++
external/gpl3/gdb/dist/ld/emulparams/tic30aout.sh | 7 ++
16 files changed, 151 insertions(+), 0 deletions(-)
diffs (227 lines):
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/gas/configure.tgt
--- a/external/gpl3/gdb/dist/gas/configure.tgt Sat Dec 05 19:46:04 2020 +0000
+++ b/external/gpl3/gdb/dist/gas/configure.tgt Sat Dec 05 21:26:43 2020 +0000
@@ -123,6 +123,7 @@
case ${generic_target} in
aarch64*-*-elf*) fmt=elf;;
aarch64*-*-fuchsia*) fmt=elf;;
+ aarch64*-*-netbsd*) fmt=elf em=nbsd ;;
aarch64*-*-linux*) fmt=elf em=linux
case ${cpu}-${os} in
aarch64*-linux-gnu_ilp32) arch=aarch64:32 ;;
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/configure.tgt
--- a/external/gpl3/gdb/dist/ld/configure.tgt Sat Dec 05 19:46:04 2020 +0000
+++ b/external/gpl3/gdb/dist/ld/configure.tgt Sat Dec 05 21:26:43 2020 +0000
@@ -77,6 +77,12 @@
targ_extra_libpath="aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
;;
+aarch64_be-*-netbsd*) targ_emul=aarch64nbsdb
+ targ_extra_emuls="aarch64nbsd aarch64elfb aarch64elf armelfb_nbsd_eabihf armelf_nbsd_eabihf armelfb_nbsd_eabi armelf_nbsd_eabi armelfb_nbsd armelf_nbsd armelf armelfb"
+ ;;
+aarch64-*-netbsd*) targ_emul=aarch64nbsd
+ targ_extra_emuls="aarch64nbsdb aarch64elf aarch64elfb armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf armelfb"
+ ;;
alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
targ_emul=elf64alpha_fbsd
targ_extra_emuls="elf64alpha alpha"
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,37 @@
+ARCH=aarch64
+MACHINE=
+NOP=0
+
+SCRIPT_NAME=elf
+ELFSIZE=64
+OUTPUT_FORMAT="elf64-littleaarch64"
+BIG_OUTPUT_FORMAT="elf64-bigaarch64"
+LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
+NO_REL_RELOCS=yes
+
+TEMPLATE_NAME=elf
+EXTRA_EM_FILE=aarch64elf
+
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
+SEPARATE_GOTPLT=24
+IREL_IN_PLT=
+
+TEXT_START_ADDR=0x200100000
+
+DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
+
+# AArch64 does not support .s* sections.
+NO_SMALL_DATA=yes
+
+OTHER_BSS_SYMBOLS='__bss_start__ = .;'
+OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
+OTHER_END_SYMBOLS='__end__ = . ;'
+
+OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
+ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
+# Ensure each PLT entry is aligned to a cache line.
+PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/aarch64nbsdb.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsdb.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/aarch64nbsd.sh
+OUTPUT_FORMAT="elf64-bigaarch64"
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabi.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabi.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,27 @@
+. ${srcdir}/emulparams/armelf_nbsd.sh
+
+# Use the ARM ABI-compliant exception-handling sections.
+OTHER_READONLY_SECTIONS="
+ .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
+ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
+ .ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
+ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
+
+case "$target" in
+ arm*-*-netbsdelf*-*eabihf*)
+ case "$EMULATION_NAME" in
+ *armelf*eabi)
+ LIB_PATH='=/usr/lib/eabi'
+ ;;
+ esac
+ ;;
+ arm*-*-netbsdelf*-*eabi*)
+ ;;
+ aarch64*-*-netbsd* | arm*-*-netbsdelf*)
+ case "$EMULATION_NAME" in
+ *armelf*eabi)
+ LIB_PATH='=/usr/lib/eabi'
+ ;;
+ esac
+ ;;
+esac
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabihf.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabihf.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,20 @@
+. ${srcdir}/emulparams/armelf_nbsd.sh
+
+# Use the ARM ABI-compliant exception-handling sections.
+OTHER_READONLY_SECTIONS="
+ .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
+ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
+ .ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
+ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
+
+case "$target" in
+ arm*-*-netbsdelf*-*eabihf*)
+ ;;
+ aarch64*-*-netbsd* | arm*-*-netbsdelf*)
+ case "$EMULATION_NAME" in
+ *armelf*eabihf)
+ LIB_PATH='=/usr/lib/eabihf'
+ ;;
+ esac
+ ;;
+esac
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabi.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabi.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/armelf_nbsd_eabi.sh
+OUTPUT_FORMAT="elf32-bigarm"
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabihf.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabihf.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/armelf_nbsd_eabihf.sh
+OUTPUT_FORMAT="elf32-bigarm"
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/elf32_x86_64_nacl.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/elf32_x86_64_nacl.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,4 @@
+source_sh ${srcdir}/emulparams/elf32_x86_64.sh
+source_sh ${srcdir}/emulparams/elf_nacl.sh
+OUTPUT_FORMAT="elf32-x86-64-nacl"
+ARCH="i386:x64-32:nacl" # The :nacl just means one-byte nops for code fill.
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/elf32or1k_nbsd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/elf32or1k_nbsd.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,6 @@
+. ${srcdir}/emulparams/elf32or1k.sh
+unset EMBEDDED
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+GENERATE_COMBRELOC_SCRIPT=yes
+TEXT_START_ADDR=0x00002000
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/elf32ppc_nbsd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/elf32ppc_nbsd.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,10 @@
+. ${srcdir}/emulparams/elf32ppc.sh
+
+case "$target" in
+ powerpc64*-*-netbsd*)
+ case "$EMULATION_NAME" in
+ *32*)
+ LIB_PATH='=/usr/lib/powerpc'
+ ;;
+ esac
+esac
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/elf_i386_nacl.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/elf_i386_nacl.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,4 @@
+source_sh ${srcdir}/emulparams/elf_i386.sh
+source_sh ${srcdir}/emulparams/elf_nacl.sh
+OUTPUT_FORMAT="elf32-i386-nacl"
+ARCH="i386:nacl" # The :nacl just means one-byte nops for code fill.
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/elf_x86_64_nacl.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/elf_x86_64_nacl.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,4 @@
+source_sh ${srcdir}/emulparams/elf_x86_64.sh
+source_sh ${srcdir}/emulparams/elf_nacl.sh
+OUTPUT_FORMAT="elf64-x86-64-nacl"
+ARCH="i386:x86-64:nacl" # The :nacl just means one-byte nops for code fill.
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/ppclynx.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/ppclynx.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,12 @@
+source_sh ${srcdir}/emulparams/elf32ppc.sh
+
+TEXT_BASE=0x00002000
+DYN_TEXT_BASE=0x00400000
+TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})"
+case ${LD_FLAG} in
+ n|N) TEXT_START_ADDR=0x1000 ;;
+esac
+ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
+
+# Leave room of SIZEOF_HEADERS before text.
+EMBEDDED=
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/ppcpe.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/ppcpe.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,7 @@
+ARCH=powerpc
+SCRIPT_NAME=ppcpe
+OUTPUT_FORMAT="pei-powerpcle"
+TEMPLATE_NAME=pe
+SUBSYSTEM=PE_DEF_SUBSYSTEM
+INITIAL_SYMBOL_CHAR=\"_\"
+TARGET_PAGE_SIZE=0x1000
diff -r 5270454a60aa -r 60eb803ec5a6 external/gpl3/gdb/dist/ld/emulparams/tic30aout.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/dist/ld/emulparams/tic30aout.sh Sat Dec 05 21:26:43 2020 +0000
@@ -0,0 +1,7 @@
+SCRIPT_NAME=tic30aout
+OUTPUT_FORMAT="a.out-tic30"
+OUTPUT_ARCH="tms320c30"
+TEXT_START_ADDR=0x0
+TARGET_PAGE_SIZE=128
+ARCH=tms320c30
+BIG=1
Home |
Main Index |
Thread Index |
Old Index