* Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
for n32 ABI support. * Makefile.in: Regenerate. * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add n32 ABI emulations for these 64 bit targets. * emulparams/elf32bmipn32.sh: Expand comment. * emulparams/elf32btsmipn32.sh: New file, for traditional big endian n32 ABI. * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
This commit is contained in:
parent
574e6d11bc
commit
7808a785c5
7 changed files with 76 additions and 261 deletions
12
ld/ChangeLog
12
ld/ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
|
* Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
|
||||||
|
for n32 ABI support.
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
* configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
|
||||||
|
n32 ABI emulations for these 64 bit targets.
|
||||||
|
* emulparams/elf32bmipn32.sh: Expand comment.
|
||||||
|
* emulparams/elf32btsmipn32.sh: New file, for traditional big endian
|
||||||
|
n32 ABI.
|
||||||
|
* emulparams/elf32ltsmipn32.sh: Likewise for little endian.
|
||||||
|
|
||||||
2002-07-30 Graeme Peterson <gp@qnx.com>
|
2002-07-30 Graeme Peterson <gp@qnx.com>
|
||||||
|
|
||||||
* configure.tgt: Add support for arm-*-nto target.
|
* configure.tgt: Add support for arm-*-nto target.
|
||||||
|
|
|
@ -156,7 +156,9 @@ ALL_EMULATIONS = \
|
||||||
eelf32bmip.o \
|
eelf32bmip.o \
|
||||||
eelf32bmipn32.o \
|
eelf32bmipn32.o \
|
||||||
eelf32btsmip.o \
|
eelf32btsmip.o \
|
||||||
|
eelf32btsmipn32.o \
|
||||||
eelf32ltsmip.o \
|
eelf32ltsmip.o \
|
||||||
|
eelf32ltsmipn32.o \
|
||||||
eelf32ebmip.o \
|
eelf32ebmip.o \
|
||||||
eelf32elmip.o \
|
eelf32elmip.o \
|
||||||
eelf32fr30.o \
|
eelf32fr30.o \
|
||||||
|
@ -567,10 +569,18 @@ eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
|
||||||
$(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
|
${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
|
||||||
|
eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
|
||||||
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
|
||||||
eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
|
eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
|
||||||
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
|
${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
|
||||||
|
eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
|
||||||
|
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
||||||
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
|
||||||
eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
|
eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
|
||||||
$(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
|
286
ld/Makefile.in
286
ld/Makefile.in
|
@ -1,6 +1,6 @@
|
||||||
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
|
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
@ -152,8 +152,7 @@ MANCONF = -Dman
|
||||||
|
|
||||||
TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
|
TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
|
||||||
|
|
||||||
POD2MAN = pod2man --center="GNU Development Tools" \
|
POD2MAN = pod2man --center="GNU Development Tools" --release="binutils-$(VERSION)" --section=1
|
||||||
--release="binutils-$(VERSION)" --section=1
|
|
||||||
|
|
||||||
|
|
||||||
#stuff for self hosting (can be overridden in config file).
|
#stuff for self hosting (can be overridden in config file).
|
||||||
|
@ -162,49 +161,19 @@ HOSTING_LIBS = @HOSTING_LIBS@
|
||||||
HOSTING_EMU = -m $(EMUL)
|
HOSTING_EMU = -m $(EMUL)
|
||||||
|
|
||||||
# Setup the testing framework, if you have one
|
# Setup the testing framework, if you have one
|
||||||
EXPECT = `if [ -f $$r/../expect/expect ] ; \
|
EXPECT = `if [ -f $$r/../expect/expect ] ; then echo $$r/../expect/expect ; else echo expect ; fi`
|
||||||
then echo $$r/../expect/expect ; \
|
|
||||||
else echo expect ; fi`
|
|
||||||
|
|
||||||
|
|
||||||
RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
|
RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; then echo $${srcroot}/../dejagnu/runtest ; else echo runtest ; fi`
|
||||||
then echo $${srcroot}/../dejagnu/runtest ; \
|
|
||||||
else echo runtest ; fi`
|
|
||||||
|
|
||||||
|
|
||||||
RUNTESTFLAGS =
|
RUNTESTFLAGS =
|
||||||
|
|
||||||
CC_FOR_TARGET = ` \
|
CC_FOR_TARGET = ` if [ -f $$r/../gcc/xgcc ] ; then if [ -f $$r/../newlib/Makefile ] ; then echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; else echo $$r/../gcc/xgcc -B$$r/../gcc/; fi; else if [ "@host@" = "@target@" ] ; then echo $(CC); else echo gcc | sed '$(transform)'; fi; fi`
|
||||||
if [ -f $$r/../gcc/xgcc ] ; then \
|
|
||||||
if [ -f $$r/../newlib/Makefile ] ; then \
|
|
||||||
echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
|
|
||||||
else \
|
|
||||||
echo $$r/../gcc/xgcc -B$$r/../gcc/; \
|
|
||||||
fi; \
|
|
||||||
else \
|
|
||||||
if [ "@host@" = "@target@" ] ; then \
|
|
||||||
echo $(CC); \
|
|
||||||
else \
|
|
||||||
echo gcc | sed '$(transform)'; \
|
|
||||||
fi; \
|
|
||||||
fi`
|
|
||||||
|
|
||||||
|
|
||||||
CXX = gcc
|
CXX = gcc
|
||||||
CXX_FOR_TARGET = ` \
|
CXX_FOR_TARGET = ` if [ -f $$r/../gcc/xgcc ] ; then if [ -f $$r/../newlib/Makefile ] ; then echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; else echo $$r/../gcc/xgcc -B$$r/../gcc/; fi; else if [ "@host@" = "@target@" ] ; then echo $(CXX); else echo gcc | sed '$(transform)'; fi; fi`
|
||||||
if [ -f $$r/../gcc/xgcc ] ; then \
|
|
||||||
if [ -f $$r/../newlib/Makefile ] ; then \
|
|
||||||
echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
|
|
||||||
else \
|
|
||||||
echo $$r/../gcc/xgcc -B$$r/../gcc/; \
|
|
||||||
fi; \
|
|
||||||
else \
|
|
||||||
if [ "@host@" = "@target@" ] ; then \
|
|
||||||
echo $(CXX); \
|
|
||||||
else \
|
|
||||||
echo gcc | sed '$(transform)'; \
|
|
||||||
fi; \
|
|
||||||
fi`
|
|
||||||
|
|
||||||
|
|
||||||
noinst_PROGRAMS = ld-new
|
noinst_PROGRAMS = ld-new
|
||||||
|
@ -217,234 +186,25 @@ INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(to
|
||||||
BFDLIB = ../bfd/libbfd.la
|
BFDLIB = ../bfd/libbfd.la
|
||||||
LIBIBERTY = ../libiberty/libiberty.a
|
LIBIBERTY = ../libiberty/libiberty.a
|
||||||
|
|
||||||
ALL_EMULATIONS = \
|
ALL_EMULATIONS = ea29k.o eaixppc.o eaixrs6.o ealpha.o earcelf.o earm_epoc_pe.o earmaoutb.o earmaoutl.o earmcoff.o earmelf.o earmelf_fbsd.o earmelf_linux.o earmelf_nbsd.o earmelfb_nbsd.o earmelf_oabi.o earmnto.o earmnbsd.o earmpe.o eavr1200.o eavr23xx.o eavr4433.o eavr44x4.o eavr85xx.o eavrmega103.o eavrmega161.o eavrmega603.o eavr1.o eavr2.o eavr3.o eavr4.o eavr5.o ecoff_sparc.o ecrisaout.o ecriself.o ecrislinux.o ed10velf.o ed30v_e.o ed30v_o.o ed30velf.o edelta68.o eelf32_dlx.o eebmon29k.o eelf32_i960.o eelf32_i860.o eelf32_sparc.o eelf32b4300.o eelf32bmip.o eelf32bmipn32.o eelf32btsmip.o eelf32btsmipn32.o eelf32ltsmip.o eelf32ltsmipn32.o eelf32ebmip.o eelf32elmip.o eelf32fr30.o eelf32frv.o eelf32i370.o eelf32ip2k.o eelf32l4300.o eelf32lmip.o eelf32lppc.o eelf32lppcsim.o eelf32mcore.o eelf32openrisc.o eelf32ppc.o eelf32ppc_fbsd.o eelf32ppclinux.o eelf32ppcsim.o eelf32ppcwindiss.o eelf32vax.o eelf32xstormy16.o eelf_i386.o eelf_i386_be.o eelf_i386_chaos.o eelf_i386_fbsd.o eelf_i386_ldso.o eelf_s390.o egld960.o egld960coff.o eh8300.o eh8300h.o eh8300s.o eh8300elf.o eh8300helf.o eh8300self.o eh8500.o eh8500b.o eh8500c.o eh8500m.o eh8500s.o ehp300bsd.o ehp3hpux.o ehppaelf.o ehppalinux.o ehppanbsd.o ehppaobsd.o ei386aout.o ei386beos.o ei386bsd.o ei386coff.o ei386go32.o ei386linux.o ei386lynx.o ei386mach.o ei386moss.o ei386msdos.o ei386nbsd.o ei386nto.o ei386nw.o ei386pe.o ei386pe_posix.o elnk960.o em68hc11elf.o em68hc11elfb.o em68hc12elf.o em68hc12elfb.o em68k4knbsd.o em68kaout.o em68kaux.o em68kcoff.o em68kelf.o em68kelfnbsd.o em68klinux.o em68klynx.o em68knbsd.o em68kpsos.o em88kbcs.o emcorepe.o emipsbig.o emipsbsd.o emipsidt.o emipsidtl.o emipslit.o emipslnews.o emipspe.o enews.o ens32knbsd.o eor32.o eor32elf.o epc532macha.o epdp11.o epjelf.o epjlelf.o eppcmacos.o eppcnw.o eppcpe.o eriscix.o esa29200.o esh.o eshelf32.o eshlelf32.o eshelf32_nbsd.o eshlelf32_nbsd.o eshelf.o eshelf_linux.o eshlelf_linux.o eshelf_nbsd.o eshlelf_nbsd.o eshl.o eshlelf.o eshpe.o esparcaout.o esparclinux.o esparclynx.o esparcnbsd.o est2000.o esun3.o esun4.o etic30aout.o etic30coff.o etic54xcoff.o etic80coff.o evanilla.o evax.o evaxnbsd.o evsta.o ew65.o ez8001.o ez8002.o
|
||||||
ea29k.o \
|
|
||||||
eaixppc.o \
|
|
||||||
eaixrs6.o \
|
|
||||||
ealpha.o \
|
|
||||||
earcelf.o \
|
|
||||||
earm_epoc_pe.o \
|
|
||||||
earmaoutb.o \
|
|
||||||
earmaoutl.o \
|
|
||||||
earmcoff.o \
|
|
||||||
earmelf.o \
|
|
||||||
earmelf_fbsd.o \
|
|
||||||
earmelf_linux.o \
|
|
||||||
earmelf_nbsd.o \
|
|
||||||
earmelfb_nbsd.o \
|
|
||||||
earmelf_oabi.o \
|
|
||||||
earmnto.o \
|
|
||||||
earmnbsd.o \
|
|
||||||
earmpe.o \
|
|
||||||
eavr1200.o \
|
|
||||||
eavr23xx.o \
|
|
||||||
eavr4433.o \
|
|
||||||
eavr44x4.o \
|
|
||||||
eavr85xx.o \
|
|
||||||
eavrmega103.o \
|
|
||||||
eavrmega161.o \
|
|
||||||
eavrmega603.o \
|
|
||||||
eavr1.o \
|
|
||||||
eavr2.o \
|
|
||||||
eavr3.o \
|
|
||||||
eavr4.o \
|
|
||||||
eavr5.o \
|
|
||||||
ecoff_sparc.o \
|
|
||||||
ecrisaout.o \
|
|
||||||
ecriself.o \
|
|
||||||
ecrislinux.o \
|
|
||||||
ed10velf.o \
|
|
||||||
ed30v_e.o \
|
|
||||||
ed30v_o.o \
|
|
||||||
ed30velf.o \
|
|
||||||
edelta68.o \
|
|
||||||
eelf32_dlx.o \
|
|
||||||
eebmon29k.o \
|
|
||||||
eelf32_i960.o \
|
|
||||||
eelf32_i860.o \
|
|
||||||
eelf32_sparc.o \
|
|
||||||
eelf32b4300.o \
|
|
||||||
eelf32bmip.o \
|
|
||||||
eelf32bmipn32.o \
|
|
||||||
eelf32btsmip.o \
|
|
||||||
eelf32ltsmip.o \
|
|
||||||
eelf32ebmip.o \
|
|
||||||
eelf32elmip.o \
|
|
||||||
eelf32fr30.o \
|
|
||||||
eelf32frv.o \
|
|
||||||
eelf32i370.o \
|
|
||||||
eelf32ip2k.o \
|
|
||||||
eelf32l4300.o \
|
|
||||||
eelf32lmip.o \
|
|
||||||
eelf32lppc.o \
|
|
||||||
eelf32lppcsim.o \
|
|
||||||
eelf32mcore.o \
|
|
||||||
eelf32openrisc.o \
|
|
||||||
eelf32ppc.o \
|
|
||||||
eelf32ppc_fbsd.o \
|
|
||||||
eelf32ppclinux.o \
|
|
||||||
eelf32ppcsim.o \
|
|
||||||
eelf32ppcwindiss.o \
|
|
||||||
eelf32vax.o \
|
|
||||||
eelf32xstormy16.o \
|
|
||||||
eelf_i386.o \
|
|
||||||
eelf_i386_be.o \
|
|
||||||
eelf_i386_chaos.o \
|
|
||||||
eelf_i386_fbsd.o \
|
|
||||||
eelf_i386_ldso.o \
|
|
||||||
eelf_s390.o \
|
|
||||||
egld960.o \
|
|
||||||
egld960coff.o \
|
|
||||||
eh8300.o \
|
|
||||||
eh8300h.o \
|
|
||||||
eh8300s.o \
|
|
||||||
eh8300elf.o \
|
|
||||||
eh8300helf.o \
|
|
||||||
eh8300self.o \
|
|
||||||
eh8500.o \
|
|
||||||
eh8500b.o \
|
|
||||||
eh8500c.o \
|
|
||||||
eh8500m.o \
|
|
||||||
eh8500s.o \
|
|
||||||
ehp300bsd.o \
|
|
||||||
ehp3hpux.o \
|
|
||||||
ehppaelf.o \
|
|
||||||
ehppalinux.o \
|
|
||||||
ehppanbsd.o \
|
|
||||||
ehppaobsd.o \
|
|
||||||
ei386aout.o \
|
|
||||||
ei386beos.o \
|
|
||||||
ei386bsd.o \
|
|
||||||
ei386coff.o \
|
|
||||||
ei386go32.o \
|
|
||||||
ei386linux.o \
|
|
||||||
ei386lynx.o \
|
|
||||||
ei386mach.o \
|
|
||||||
ei386moss.o \
|
|
||||||
ei386msdos.o \
|
|
||||||
ei386nbsd.o \
|
|
||||||
ei386nto.o \
|
|
||||||
ei386nw.o \
|
|
||||||
ei386pe.o \
|
|
||||||
ei386pe_posix.o \
|
|
||||||
elnk960.o \
|
|
||||||
em68hc11elf.o \
|
|
||||||
em68hc11elfb.o \
|
|
||||||
em68hc12elf.o \
|
|
||||||
em68hc12elfb.o \
|
|
||||||
em68k4knbsd.o \
|
|
||||||
em68kaout.o \
|
|
||||||
em68kaux.o \
|
|
||||||
em68kcoff.o \
|
|
||||||
em68kelf.o \
|
|
||||||
em68kelfnbsd.o \
|
|
||||||
em68klinux.o \
|
|
||||||
em68klynx.o \
|
|
||||||
em68knbsd.o \
|
|
||||||
em68kpsos.o \
|
|
||||||
em88kbcs.o \
|
|
||||||
emcorepe.o \
|
|
||||||
emipsbig.o \
|
|
||||||
emipsbsd.o \
|
|
||||||
emipsidt.o \
|
|
||||||
emipsidtl.o \
|
|
||||||
emipslit.o \
|
|
||||||
emipslnews.o \
|
|
||||||
emipspe.o \
|
|
||||||
enews.o \
|
|
||||||
ens32knbsd.o \
|
|
||||||
eor32.o \
|
|
||||||
eor32elf.o \
|
|
||||||
epc532macha.o \
|
|
||||||
epdp11.o \
|
|
||||||
epjelf.o \
|
|
||||||
epjlelf.o \
|
|
||||||
eppcmacos.o \
|
|
||||||
eppcnw.o \
|
|
||||||
eppcpe.o \
|
|
||||||
eriscix.o \
|
|
||||||
esa29200.o \
|
|
||||||
esh.o \
|
|
||||||
eshelf32.o \
|
|
||||||
eshlelf32.o \
|
|
||||||
eshelf32_nbsd.o \
|
|
||||||
eshlelf32_nbsd.o \
|
|
||||||
eshelf.o \
|
|
||||||
eshelf_linux.o \
|
|
||||||
eshlelf_linux.o \
|
|
||||||
eshelf_nbsd.o \
|
|
||||||
eshlelf_nbsd.o \
|
|
||||||
eshl.o \
|
|
||||||
eshlelf.o \
|
|
||||||
eshpe.o \
|
|
||||||
esparcaout.o \
|
|
||||||
esparclinux.o \
|
|
||||||
esparclynx.o \
|
|
||||||
esparcnbsd.o \
|
|
||||||
est2000.o \
|
|
||||||
esun3.o \
|
|
||||||
esun4.o \
|
|
||||||
etic30aout.o \
|
|
||||||
etic30coff.o \
|
|
||||||
etic54xcoff.o \
|
|
||||||
etic80coff.o \
|
|
||||||
evanilla.o \
|
|
||||||
evax.o \
|
|
||||||
evaxnbsd.o \
|
|
||||||
evsta.o \
|
|
||||||
ew65.o \
|
|
||||||
ez8001.o \
|
|
||||||
ez8002.o
|
|
||||||
|
|
||||||
|
|
||||||
ALL_64_EMULATIONS = \
|
ALL_64_EMULATIONS = eelf64_aix.o eelf64_ia64.o eelf64_ia64_fbsd.o eshelf64.o eshlelf64.o eshelf64_nbsd.o eshlelf64_nbsd.o eelf_x86_64.o eelf_x86_64_fbsd.o eelf64_s390.o eelf64_sparc.o eelf64_sparc_fbsd.o eelf64alpha.o eelf64alpha_fbsd.o eelf64alpha_nbsd.o eelf64bmip.o eelf64btsmip.o eelf64ltsmip.o eelf64hppa.o eelf64mmix.o emmo.o eelf64ppc.o eelf64lppc.o ehppa64linux.o
|
||||||
eelf64_aix.o \
|
|
||||||
eelf64_ia64.o \
|
|
||||||
eelf64_ia64_fbsd.o \
|
|
||||||
eshelf64.o \
|
|
||||||
eshlelf64.o \
|
|
||||||
eshelf64_nbsd.o \
|
|
||||||
eshlelf64_nbsd.o \
|
|
||||||
eelf_x86_64.o \
|
|
||||||
eelf_x86_64_fbsd.o \
|
|
||||||
eelf64_s390.o \
|
|
||||||
eelf64_sparc.o \
|
|
||||||
eelf64_sparc_fbsd.o \
|
|
||||||
eelf64alpha.o \
|
|
||||||
eelf64alpha_fbsd.o \
|
|
||||||
eelf64alpha_nbsd.o \
|
|
||||||
eelf64bmip.o \
|
|
||||||
eelf64btsmip.o \
|
|
||||||
eelf64ltsmip.o \
|
|
||||||
eelf64hppa.o \
|
|
||||||
eelf64mmix.o \
|
|
||||||
emmo.o \
|
|
||||||
eelf64ppc.o \
|
|
||||||
eelf64lppc.o \
|
|
||||||
ehppa64linux.o
|
|
||||||
|
|
||||||
|
|
||||||
ALL_EMUL_EXTRA_OFILES = \
|
ALL_EMUL_EXTRA_OFILES = deffilep.o pe-dll.o
|
||||||
deffilep.o \
|
|
||||||
pe-dll.o
|
|
||||||
|
|
||||||
|
|
||||||
CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
|
CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c mri.c ldcref.c pe-dll.c
|
||||||
ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
|
|
||||||
mri.c ldcref.c pe-dll.c
|
|
||||||
|
|
||||||
|
|
||||||
HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
|
HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h ldwrite.h mri.h deffile.h pe-dll.h
|
||||||
ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
|
|
||||||
ldwrite.h mri.h deffile.h pe-dll.h
|
|
||||||
|
|
||||||
|
|
||||||
GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
|
GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
|
||||||
GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
|
GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
|
||||||
|
|
||||||
OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
|
OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
|
||||||
ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
|
|
||||||
ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
|
|
||||||
|
|
||||||
|
|
||||||
STAGESTUFF = *.o ldscripts/* e*.c
|
STAGESTUFF = *.o ldscripts/* e*.c
|
||||||
|
@ -463,8 +223,7 @@ GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
|
||||||
# We need this for automake to use YLWRAP.
|
# We need this for automake to use YLWRAP.
|
||||||
EXTRA_ld_new_SOURCES = deffilep.y
|
EXTRA_ld_new_SOURCES = deffilep.y
|
||||||
|
|
||||||
ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
|
ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
|
||||||
ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
|
|
||||||
|
|
||||||
ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
|
ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
|
||||||
ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
|
ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
|
||||||
|
@ -477,8 +236,7 @@ MAINTAINERCLEANFILES = ldver.texi
|
||||||
# We want to reconfigure if configure.host or configure.tgt changes.
|
# We want to reconfigure if configure.host or configure.tgt changes.
|
||||||
CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
|
CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
|
||||||
|
|
||||||
MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
|
MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
|
||||||
ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
|
|
||||||
|
|
||||||
CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
|
CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
|
||||||
|
|
||||||
|
@ -528,7 +286,7 @@ deffilep.c ldgram.c ldlex.c
|
||||||
|
|
||||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
TAR = gtar
|
TAR = tar
|
||||||
GZIP_ENV = --best
|
GZIP_ENV = --best
|
||||||
SOURCES = $(ld_new_SOURCES) $(EXTRA_ld_new_SOURCES)
|
SOURCES = $(ld_new_SOURCES) $(EXTRA_ld_new_SOURCES)
|
||||||
OBJECTS = $(ld_new_OBJECTS)
|
OBJECTS = $(ld_new_OBJECTS)
|
||||||
|
@ -546,7 +304,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
|
||||||
cd $(srcdir) && $(ACLOCAL)
|
cd $(srcdir) && $(ACLOCAL)
|
||||||
|
|
||||||
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
||||||
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
cd $(srcdir) && $(AUTOCONF)
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
@ -829,7 +587,7 @@ maintainer-clean-recursive:
|
||||||
dot_seen=no; \
|
dot_seen=no; \
|
||||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
rev="$$subdir $$rev"; \
|
rev="$$subdir $$rev"; \
|
||||||
test "$$subdir" != "." || dot_seen=yes; \
|
test "$$subdir" = "." && dot_seen=yes; \
|
||||||
done; \
|
done; \
|
||||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
target=`echo $@ | sed s/-recursive//`; \
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
@ -1290,10 +1048,18 @@ eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
|
||||||
$(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
|
${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
|
||||||
|
eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
|
||||||
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
|
||||||
eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
|
eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
|
||||||
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
|
${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
|
||||||
|
eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
|
||||||
|
$(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
|
||||||
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
|
||||||
eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
|
eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
|
||||||
$(srcdir)/emulparams/elf32bmip.sh \
|
$(srcdir)/emulparams/elf32bmip.sh \
|
||||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
|
|
|
@ -389,6 +389,12 @@ mips*el-*-rtems*) targ_emul=elf32elmip ;;
|
||||||
mips*-*-rtems*) targ_emul=elf32ebmip ;;
|
mips*-*-rtems*) targ_emul=elf32ebmip ;;
|
||||||
mips*el-*-vxworks*) targ_emul=elf32elmip ;;
|
mips*el-*-vxworks*) targ_emul=elf32elmip ;;
|
||||||
mips*-*-vxworks*) targ_emul=elf32ebmip ;;
|
mips*-*-vxworks*) targ_emul=elf32ebmip ;;
|
||||||
|
mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
|
||||||
|
targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
|
||||||
|
;;
|
||||||
|
mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
|
||||||
|
targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
|
||||||
|
;;
|
||||||
mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
|
mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
|
||||||
targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
|
targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# If you change this file, please also look at files which source this one:
|
# If you change this file, please also look at files which source this one:
|
||||||
# elf64bmip.sh elf64btsmip.sh
|
# elf64bmip.sh elf64btsmip.sh elf32btsmipn32.sh
|
||||||
|
|
||||||
# This is an ELF platform.
|
# This is an ELF platform.
|
||||||
SCRIPT_NAME=elf
|
SCRIPT_NAME=elf
|
||||||
|
|
17
ld/emulparams/elf32btsmipn32.sh
Normal file
17
ld/emulparams/elf32btsmipn32.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# If you change this file, please also look at files which source this one:
|
||||||
|
# elf32ltsmipn32.sh
|
||||||
|
|
||||||
|
. ${srcdir}/emulparams/elf32bmipn32.sh
|
||||||
|
OUTPUT_FORMAT="elf32-ntradbigmips"
|
||||||
|
BIG_OUTPUT_FORMAT="elf32-ntradbigmips"
|
||||||
|
LITTLE_OUTPUT_FORMAT="elf32-ntradlittlemips"
|
||||||
|
|
||||||
|
unset EXECUTABLE_SYMBOLS
|
||||||
|
unset WRITABLE_RODATA
|
||||||
|
|
||||||
|
# Magic sections.
|
||||||
|
OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
|
||||||
|
OTHER_SECTIONS='
|
||||||
|
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
|
||||||
|
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
|
||||||
|
'
|
4
ld/emulparams/elf32ltsmipn32.sh
Normal file
4
ld/emulparams/elf32ltsmipn32.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
. ${srcdir}/emulparams/elf32btsmipn32.sh
|
||||||
|
OUTPUT_FORMAT="elf32-ntradlittlemips"
|
||||||
|
BIG_OUTPUT_FORMAT="elf32-ntradbigmips"
|
||||||
|
LITTLE_OUTPUT_FORMAT="elf32-ntradlittlemips"
|
Loading…
Reference in a new issue