Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist Add arm{, eb}--netbsdelf-eabi sup...



details:   https://anonhg.NetBSD.org/src/rev/e9f7eb5a94ad
branches:  trunk
changeset: 780736:e9f7eb5a94ad
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Aug 05 04:03:03 2012 +0000

description:
Add arm{,eb}--netbsdelf-eabi support.

diffstat:

 external/gpl3/binutils/dist/config.sub                         |   3 +-
 external/gpl3/binutils/dist/ld/Makefile.am                     |  13 ++++++++
 external/gpl3/binutils/dist/ld/Makefile.in                     |  15 ++++++++++
 external/gpl3/binutils/dist/ld/configure.tgt                   |   5 +++
 external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabi.sh  |   9 ++++++
 external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabi.sh |   2 +
 6 files changed, 46 insertions(+), 1 deletions(-)

diffs (145 lines):

diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/config.sub
--- a/external/gpl3/binutils/dist/config.sub    Sun Aug 05 02:47:52 2012 +0000
+++ b/external/gpl3/binutils/dist/config.sub    Sun Aug 05 04:03:03 2012 +0000
@@ -125,7 +125,8 @@
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
   nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | \
+  netbsd*-gnu* | netbsd*-eabi* | \
   kopensolaris*-gnu* | \
   storm-chaos* | os2-emx* | rtmk-nova*)
     os=-$maybe_os
diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/ld/Makefile.am
--- a/external/gpl3/binutils/dist/ld/Makefile.am        Sun Aug 05 02:47:52 2012 +0000
+++ b/external/gpl3/binutils/dist/ld/Makefile.am        Sun Aug 05 04:03:03 2012 +0000
@@ -144,11 +144,13 @@
        earmelf_linux.c \
        earmelf_linux_eabi.c \
        earmelf_nbsd.c \
+       earmelf_nbsd_eabi.c \
        earmelf_vxworks.c \
        earmelfb.c \
        earmelfb_linux.c \
        earmelfb_linux_eabi.c \
        earmelfb_nbsd.c \
+       earmelfb_nbsd_eabi.c \
        earmnbsd.c \
        earmnto.c \
        earmpe.c \
@@ -684,6 +686,11 @@
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
+earmelf_nbsd_abi.c: $(srcdir)/emulparams/armelf_nbsd_abi.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} armelf_nbsd_abi "$(tdir_armelf_nbsd_abi)"
 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
@@ -711,6 +718,12 @@
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
+earmelfb_nbsd_abi.c: $(srcdir)/emulparams/armelfb_nbsd_abi.sh \
+  $(srcdir)/emulparams/armelf_nbsd_abi.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} armelfb_nbsd_abi "$(tdir_armelfb_nbsd_abi)"
 earmnbsd.c:    $(srcdir)/emulparams/armnbsd.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/ld/Makefile.in
--- a/external/gpl3/binutils/dist/ld/Makefile.in        Sun Aug 05 02:47:52 2012 +0000
+++ b/external/gpl3/binutils/dist/ld/Makefile.in        Sun Aug 05 04:03:03 2012 +0000
@@ -449,11 +449,13 @@
        earmelf_linux.c \
        earmelf_linux_eabi.c \
        earmelf_nbsd.c \
+       earmelf_nbsd_eabi.c \
        earmelf_vxworks.c \
        earmelfb.c \
        earmelfb_linux.c \
        earmelfb_linux_eabi.c \
        earmelfb_nbsd.c \
+       earmelfb_nbsd_eabi.c \
        earmnbsd.c \
        earmnto.c \
        earmpe.c \
@@ -1031,11 +1033,13 @@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux_eabi.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd_abi.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_vxworks.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux_eabi.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_nbsd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_nbsd_eabi.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmnbsd.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmnto.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmpe.Po@am__quote@
@@ -2121,6 +2125,11 @@
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
+earmelf_nbsd_eabi.c: $(srcdir)/emulparams/armelf_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} armelf_nbsd_eabi "$(tdir_armelf_nbsd_eabi)"
 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
@@ -2148,6 +2157,12 @@
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
+earmelfb_nbsd_eabi.c: $(srcdir)/emulparams/armelfb_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} armelfb_nbsd_eabi "$(tdir_armelfb_nbsd_eabi)"
 earmnbsd.c:    $(srcdir)/emulparams/armnbsd.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/ld/configure.tgt
--- a/external/gpl3/binutils/dist/ld/configure.tgt      Sun Aug 05 02:47:52 2012 +0000
+++ b/external/gpl3/binutils/dist/ld/configure.tgt      Sun Aug 05 04:03:03 2012 +0000
@@ -56,6 +56,11 @@
 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
                        targ_emul=armelf_fbsd
                        targ_extra_emuls="armelf" ;;
+armeb-*-netbsdelf*-eabi*)
+                       targ_emul=armelfb_nbsd_eabi;
+                       targ_extra_emuls="armelf_nbsd_eabi armelf armnbsd" ;;
+arm-*-netbsdelf*-eabi*)        targ_emul=armelf_nbsd_eabi;
+                       targ_extra_emuls="armelfb_nbsd_eabi armelf armnbsd" ;;
 armeb-*-netbsdelf*)    targ_emul=armelfb_nbsd;
                        targ_extra_emuls="armelf_nbsd armelf armnbsd" ;;
 arm-*-netbsdelf*)      targ_emul=armelf_nbsd;
diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabi.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabi.sh     Sun Aug 05 04:03:03 2012 +0000
@@ -0,0 +1,9 @@
+. ${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 = .); }"
+
diff -r 9df9002f8699 -r e9f7eb5a94ad external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabi.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabi.sh    Sun Aug 05 04:03:03 2012 +0000
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/armelf_nbsd_eabi.sh
+OUTPUT_FORMAT="elf32-bigarm"



Home | Main Index | Thread Index | Old Index