* Makefile.am: Remove entries for elf32-qnx.[ch].
* Makefile.in: Regenerate. * config.bfd: Change arm-nto to use bfd_elf32_{big|little}arm_vec, ppc-nto to use bfd_elf32_powerpc{le}_vec, sh-nto to use bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec. * configure.in: Remove support for bfd_elf32_sh{l}qnx_vec, bfd_elf32_powerpc{le}qnx_vec, bfd_elf32_{big|little}armqnx_vec, and bfd_elf32_i386qnx_vec, and removed elf32-qnx.lo from other targets. bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec. * configure: Regenerate. * elf32-qnx.c: Remove. * elf32-qnx.h: Remove. * elf.c: Remove calls to QNX specific set_nonloadable_filepos, is_contained_by_filepos, and copy_private_bfd_data_p. * elf32-i386.c: Remove QNX extended bfd support. * elf32-ppc.c: Remove QNX extended bfd support. * elf32-sh.c: Remove QNX extended bfd support. * elfarm-nabi.c: Remove QNX extended bfd support. * targets.c: Remove qnx vectors. * elfxx-target.h (elf_backend_set_nonloadable_filepos): Remove (elf_backend_is_contained_by_filepos): Remove. (elf_backend_copy_private_bfd_data_p): Remove. * po/SRC-POTFILES.in: Regenerate.
This commit is contained in:
parent
0d52e5365a
commit
b6821651ed
16 changed files with 71 additions and 347 deletions
|
@ -1,15 +1,4 @@
|
||||||
2002-11-06 David O'Brien <obrien@FreeBSD.org>
|
2002-11-06 Graeme Peterson <gp@qnx.com>
|
||||||
Alan Modra <amodra@bigpond.net.au>
|
|
||||||
|
|
||||||
* elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of
|
|
||||||
dynamic relocs against section symbols for the output section vma.
|
|
||||||
|
|
||||||
2002-11-05 Alan Modra <amodra@bigpond.net.au>
|
|
||||||
|
|
||||||
* elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
|
|
||||||
t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
|
|
||||||
|
|
||||||
2002-11-05 Graeme Peterson <gp@qnx.com>
|
|
||||||
|
|
||||||
* Makefile.am: Remove entries for elf32-qnx.[ch].
|
* Makefile.am: Remove entries for elf32-qnx.[ch].
|
||||||
* Makefile.in: Regenerate.
|
* Makefile.in: Regenerate.
|
||||||
|
@ -35,6 +24,17 @@
|
||||||
(elf_backend_copy_private_bfd_data_p): Remove.
|
(elf_backend_copy_private_bfd_data_p): Remove.
|
||||||
* po/SRC-POTFILES.in: Regenerate.
|
* po/SRC-POTFILES.in: Regenerate.
|
||||||
|
|
||||||
|
2002-11-06 David O'Brien <obrien@FreeBSD.org>
|
||||||
|
Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of
|
||||||
|
dynamic relocs against section symbols for the output section vma.
|
||||||
|
|
||||||
|
2002-11-05 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
|
||||||
|
t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
|
||||||
|
|
||||||
2002-11-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
2002-11-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
Alan Modra <amodra@bigpond.net.au>
|
Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,6 @@ BFD32_BACKENDS = \
|
||||||
elf32-or32.lo \
|
elf32-or32.lo \
|
||||||
elf32-pj.lo \
|
elf32-pj.lo \
|
||||||
elf32-ppc.lo \
|
elf32-ppc.lo \
|
||||||
elf32-qnx.lo \
|
|
||||||
elf32-s390.lo \
|
elf32-s390.lo \
|
||||||
elf32-sh.lo \
|
elf32-sh.lo \
|
||||||
elf32-sh64.lo \
|
elf32-sh64.lo \
|
||||||
|
@ -388,7 +387,6 @@ BFD32_BACKENDS_CFILES = \
|
||||||
elf32-or32.c \
|
elf32-or32.c \
|
||||||
elf32-pj.c \
|
elf32-pj.c \
|
||||||
elf32-ppc.c \
|
elf32-ppc.c \
|
||||||
elf32-qnx.c \
|
|
||||||
elf32-sh64.c \
|
elf32-sh64.c \
|
||||||
elf32-sh64-com.c \
|
elf32-sh64-com.c \
|
||||||
elf32-s390.c \
|
elf32-s390.c \
|
||||||
|
@ -561,7 +559,7 @@ CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
|
||||||
## This is a list of all .h files which are in the source tree.
|
## This is a list of all .h files which are in the source tree.
|
||||||
SOURCE_HFILES = \
|
SOURCE_HFILES = \
|
||||||
aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
|
aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
|
||||||
elf-bfd.h elf-hppa.h elf32-arm.h elf32-hppa.h elf32-qnx.h \
|
elf-bfd.h elf-hppa.h elf32-arm.h elf32-hppa.h \
|
||||||
elf64-hppa.h elfcode.h elfcore.h elflink.h \
|
elf64-hppa.h elfcode.h elfcore.h elflink.h \
|
||||||
freebsd.h genlink.h go32stub.h \
|
freebsd.h genlink.h go32stub.h \
|
||||||
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
|
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
|
||||||
|
@ -1099,7 +1097,7 @@ elfarm-oabi.lo: elfarm-oabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elfarm-nabi.lo: elfarm-nabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
elfarm-nabi.lo: elfarm-nabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
$(INCDIR)/filenames.h elf-bfd.h $(INCDIR)/elf/common.h \
|
$(INCDIR)/filenames.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
|
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-arm.h elf32-target.h elf32-qnx.h
|
elf32-arm.h elf32-target.h
|
||||||
elf32-avr.lo: elf32-avr.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-avr.lo: elf32-avr.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/bfdlink.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
|
@ -1146,7 +1144,7 @@ elf32-i370.lo: elf32-i370.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-i386.lo: elf32-i386.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-i386.lo: elf32-i386.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-i860.lo: elf32-i860.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-i860.lo: elf32-i860.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(INCDIR)/elf/i860.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/bfdlink.h $(INCDIR)/elf/i860.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
|
@ -1217,10 +1215,7 @@ elf32-pj.lo: elf32-pj.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-ppc.lo: elf32-ppc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-ppc.lo: elf32-ppc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-qnx.lo: elf32-qnx.c $(INCDIR)/filenames.h elf-bfd.h \
|
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
|
||||||
$(INCDIR)/bfdlink.h elf32-qnx.h
|
|
||||||
elf32-sh64.lo: elf32-sh64.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-sh64.lo: elf32-sh64.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(srcdir)/../opcodes/sh64-opc.h \
|
$(INCDIR)/bfdlink.h $(srcdir)/../opcodes/sh64-opc.h \
|
||||||
|
@ -1237,7 +1232,7 @@ elf32-s390.lo: elf32-s390.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
||||||
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
||||||
|
|
|
@ -360,7 +360,6 @@ BFD32_BACKENDS = \
|
||||||
elf32-or32.lo \
|
elf32-or32.lo \
|
||||||
elf32-pj.lo \
|
elf32-pj.lo \
|
||||||
elf32-ppc.lo \
|
elf32-ppc.lo \
|
||||||
elf32-qnx.lo \
|
|
||||||
elf32-s390.lo \
|
elf32-s390.lo \
|
||||||
elf32-sh.lo \
|
elf32-sh.lo \
|
||||||
elf32-sh64.lo \
|
elf32-sh64.lo \
|
||||||
|
@ -516,7 +515,6 @@ BFD32_BACKENDS_CFILES = \
|
||||||
elf32-or32.c \
|
elf32-or32.c \
|
||||||
elf32-pj.c \
|
elf32-pj.c \
|
||||||
elf32-ppc.c \
|
elf32-ppc.c \
|
||||||
elf32-qnx.c \
|
|
||||||
elf32-sh64.c \
|
elf32-sh64.c \
|
||||||
elf32-sh64-com.c \
|
elf32-sh64-com.c \
|
||||||
elf32-s390.c \
|
elf32-s390.c \
|
||||||
|
@ -695,7 +693,7 @@ CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
|
||||||
|
|
||||||
SOURCE_HFILES = \
|
SOURCE_HFILES = \
|
||||||
aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
|
aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
|
||||||
elf-bfd.h elf-hppa.h elf32-arm.h elf32-hppa.h elf32-qnx.h \
|
elf-bfd.h elf-hppa.h elf32-arm.h elf32-hppa.h \
|
||||||
elf64-hppa.h elfcode.h elfcore.h elflink.h \
|
elf64-hppa.h elfcode.h elfcore.h elflink.h \
|
||||||
freebsd.h genlink.h go32stub.h \
|
freebsd.h genlink.h go32stub.h \
|
||||||
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
|
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
|
||||||
|
@ -1630,7 +1628,7 @@ elfarm-oabi.lo: elfarm-oabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elfarm-nabi.lo: elfarm-nabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
elfarm-nabi.lo: elfarm-nabi.c $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
$(INCDIR)/filenames.h elf-bfd.h $(INCDIR)/elf/common.h \
|
$(INCDIR)/filenames.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
|
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-arm.h elf32-target.h elf32-qnx.h
|
elf32-arm.h elf32-target.h
|
||||||
elf32-avr.lo: elf32-avr.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-avr.lo: elf32-avr.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/bfdlink.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
|
@ -1677,7 +1675,7 @@ elf32-i370.lo: elf32-i370.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-i386.lo: elf32-i386.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-i386.lo: elf32-i386.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-i860.lo: elf32-i860.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-i860.lo: elf32-i860.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(INCDIR)/elf/i860.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/bfdlink.h $(INCDIR)/elf/i860.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
|
@ -1748,10 +1746,7 @@ elf32-pj.lo: elf32-pj.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-ppc.lo: elf32-ppc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-ppc.lo: elf32-ppc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-qnx.lo: elf32-qnx.c $(INCDIR)/filenames.h elf-bfd.h \
|
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
|
||||||
$(INCDIR)/bfdlink.h elf32-qnx.h
|
|
||||||
elf32-sh64.lo: elf32-sh64.c $(INCDIR)/filenames.h elf-bfd.h \
|
elf32-sh64.lo: elf32-sh64.c $(INCDIR)/filenames.h elf-bfd.h \
|
||||||
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
|
||||||
$(INCDIR)/bfdlink.h $(srcdir)/../opcodes/sh64-opc.h \
|
$(INCDIR)/bfdlink.h $(srcdir)/../opcodes/sh64-opc.h \
|
||||||
|
@ -1768,7 +1763,7 @@ elf32-s390.lo: elf32-s390.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
|
||||||
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
|
||||||
$(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h \
|
$(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h \
|
||||||
elf32-target.h elf32-qnx.h
|
elf32-target.h
|
||||||
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
||||||
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
||||||
|
|
|
@ -139,8 +139,8 @@ case "${targ}" in
|
||||||
targ_underscore=yes
|
targ_underscore=yes
|
||||||
;;
|
;;
|
||||||
arm-*-nto* | nto*arm*)
|
arm-*-nto* | nto*arm*)
|
||||||
targ_defvec=bfd_elf32_littlearmqnx_vec
|
targ_defvec=bfd_elf32_littlearm_vec
|
||||||
targ_selvecs=bfd_elf32_bigarmqnx_vec
|
targ_selvecs=bfd_elf32_bigarm_vec
|
||||||
;;
|
;;
|
||||||
arm-*-riscix*)
|
arm-*-riscix*)
|
||||||
targ_defvec=riscix_vec
|
targ_defvec=riscix_vec
|
||||||
|
@ -370,8 +370,8 @@ case "${targ}" in
|
||||||
targ_defvec=bfd_elf32_i386_vec
|
targ_defvec=bfd_elf32_i386_vec
|
||||||
targ_selvecs=i386coff_vec
|
targ_selvecs=i386coff_vec
|
||||||
;;
|
;;
|
||||||
i[3456]86-*-nto-qnx*)
|
i[3456]86-*-nto*)
|
||||||
targ_defvec=bfd_elf32_i386qnx_vec
|
targ_defvec=bfd_elf32_i386_vec
|
||||||
targ_selvecs=i386coff_vec
|
targ_selvecs=i386coff_vec
|
||||||
;;
|
;;
|
||||||
i[3456]86-*-chorus*)
|
i[3456]86-*-chorus*)
|
||||||
|
@ -893,12 +893,12 @@ case "${targ}" in
|
||||||
targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
|
targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
|
||||||
;;
|
;;
|
||||||
powerpc-*-nto*)
|
powerpc-*-nto*)
|
||||||
targ_defvec=bfd_elf32_powerpcqnx_vec
|
targ_defvec=bfd_elf32_powerpc_vec
|
||||||
targ_selvecs="rs6000coff_vec bfd_elf32_powerpcleqnx_vec ppcboot_vec"
|
targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
|
||||||
;;
|
;;
|
||||||
powerpcle-*-nto*)
|
powerpcle-*-nto*)
|
||||||
targ_defvec=bfd_elf32_powerpcleqnx_vec
|
targ_defvec=bfd_elf32_powerpcle_vec
|
||||||
targ_selvecs="rs6000coff_vec bfd_elf32_powerpcqnx_vec ppcboot_vec"
|
targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
|
||||||
;;
|
;;
|
||||||
powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
|
powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
|
||||||
powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
|
powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
|
||||||
|
@ -1021,8 +1021,8 @@ case "${targ}" in
|
||||||
targ_underscore=yes
|
targ_underscore=yes
|
||||||
;;
|
;;
|
||||||
sh-*-nto*)
|
sh-*-nto*)
|
||||||
targ_defvec=bfd_elf32_shqnx_vec
|
targ_defvec=bfd_elf32_sh_vec
|
||||||
targ_selvecs="bfd_elf32_shlqnx_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
|
targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
|
||||||
targ_underscore=yes
|
targ_underscore=yes
|
||||||
;;
|
;;
|
||||||
sh-*-pe)
|
sh-*-pe)
|
||||||
|
|
59
bfd/configure
vendored
59
bfd/configure
vendored
|
@ -6074,8 +6074,7 @@ do
|
||||||
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarmqnx_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
||||||
|
@ -6087,9 +6086,8 @@ do
|
||||||
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386qnx_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
||||||
|
@ -6099,8 +6097,7 @@ do
|
||||||
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearmqnx_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
||||||
|
@ -6119,10 +6116,8 @@ do
|
||||||
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
||||||
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
||||||
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_powerpcleqnx_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_powerpcqnx_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
||||||
# FIXME: We include cofflink.lo not because it's needed for
|
# FIXME: We include cofflink.lo not because it's needed for
|
||||||
# bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
# bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
||||||
|
@ -6133,14 +6128,12 @@ do
|
||||||
bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
||||||
bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
||||||
bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
||||||
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
||||||
bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo elf32-qnx.lo $elf coff-sh.lo" ;;
|
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
||||||
bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shlqnx_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|
||||||
bfd_elf32_shqnx_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
|
||||||
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
|
@ -6359,10 +6352,10 @@ case ${host64}-${target64}-${want64} in
|
||||||
if test -n "$GCC" ; then
|
if test -n "$GCC" ; then
|
||||||
bad_64bit_gcc=no;
|
bad_64bit_gcc=no;
|
||||||
echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
|
echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
|
||||||
echo "configure:6363: checking for gcc version with buggy 64-bit support" >&5
|
echo "configure:6356: checking for gcc version with buggy 64-bit support" >&5
|
||||||
# Add more tests for gcc versions with non-working 64-bit support here.
|
# Add more tests for gcc versions with non-working 64-bit support here.
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6366 "configure"
|
#line 6359 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
:__GNUC__:__GNUC_MINOR__:__i386__:
|
:__GNUC__:__GNUC_MINOR__:__i386__:
|
||||||
EOF
|
EOF
|
||||||
|
@ -6408,17 +6401,17 @@ for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
|
||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
echo "configure:6412: checking for $ac_hdr" >&5
|
echo "configure:6405: checking for $ac_hdr" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6417 "configure"
|
#line 6410 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:6415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
|
@ -6447,12 +6440,12 @@ done
|
||||||
for ac_func in getpagesize
|
for ac_func in getpagesize
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:6451: checking for $ac_func" >&5
|
echo "configure:6444: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6456 "configure"
|
#line 6449 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
|
@ -6475,7 +6468,7 @@ $ac_func();
|
||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
|
@ -6500,7 +6493,7 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
||||||
echo "configure:6504: checking for working mmap" >&5
|
echo "configure:6497: checking for working mmap" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -6508,7 +6501,7 @@ else
|
||||||
ac_cv_func_mmap_fixed_mapped=no
|
ac_cv_func_mmap_fixed_mapped=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6512 "configure"
|
#line 6505 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
/* Thanks to Mike Haertel and Jim Avera for this test.
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
||||||
|
@ -6661,7 +6654,7 @@ main()
|
||||||
}
|
}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||||
then
|
then
|
||||||
ac_cv_func_mmap_fixed_mapped=yes
|
ac_cv_func_mmap_fixed_mapped=yes
|
||||||
else
|
else
|
||||||
|
@ -6686,12 +6679,12 @@ fi
|
||||||
for ac_func in madvise mprotect
|
for ac_func in madvise mprotect
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:6690: checking for $ac_func" >&5
|
echo "configure:6683: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6695 "configure"
|
#line 6688 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
|
@ -6714,7 +6707,7 @@ $ac_func();
|
||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:6711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
|
|
|
@ -570,8 +570,7 @@ do
|
||||||
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_bigarmqnx_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
||||||
|
@ -583,9 +582,8 @@ do
|
||||||
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386qnx_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
||||||
|
@ -595,8 +593,7 @@ do
|
||||||
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_littlearmqnx_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
||||||
|
@ -615,10 +612,8 @@ do
|
||||||
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
||||||
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
||||||
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_powerpcleqnx_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_powerpcqnx_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
|
|
||||||
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
||||||
# FIXME: We include cofflink.lo not because it's needed for
|
# FIXME: We include cofflink.lo not because it's needed for
|
||||||
# bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
# bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
||||||
|
@ -629,14 +624,12 @@ do
|
||||||
bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
||||||
bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
||||||
bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
||||||
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
||||||
bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo elf32-qnx.lo $elf coff-sh.lo" ;;
|
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
||||||
bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shlqnx_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||||
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|
||||||
bfd_elf32_shqnx_vec) tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
|
|
||||||
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||||
|
|
18
bfd/elf.c
18
bfd/elf.c
|
@ -3959,11 +3959,6 @@ Error: First section in segment (%s) starts at 0x%x whereas the segment starts a
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If additional nonloadable filepos adjustments are required,
|
|
||||||
do them now. */
|
|
||||||
if (bed->set_nonloadable_filepos)
|
|
||||||
(*bed->set_nonloadable_filepos) (abfd, phdrs);
|
|
||||||
|
|
||||||
/* Clear out any program headers we allocated but did not use. */
|
/* Clear out any program headers we allocated but did not use. */
|
||||||
for (; count < alloc; count++, p++)
|
for (; count < alloc; count++, p++)
|
||||||
{
|
{
|
||||||
|
@ -4559,13 +4554,6 @@ copy_private_bfd_data (ibfd, obfd)
|
||||||
&& (section->lma + section->_raw_size \
|
&& (section->lma + section->_raw_size \
|
||||||
<= SEGMENT_END (segment, base)))
|
<= SEGMENT_END (segment, base)))
|
||||||
|
|
||||||
/* Returns true if the given section is contained within the
|
|
||||||
given segment. Filepos addresses are compared in an elf
|
|
||||||
backend function. */
|
|
||||||
#define IS_CONTAINED_BY_FILEPOS(sec, seg, bed) \
|
|
||||||
(bed->is_contained_by_filepos \
|
|
||||||
&& (*bed->is_contained_by_filepos) (sec, seg))
|
|
||||||
|
|
||||||
/* Special case: corefile "NOTE" section containing regs, prpsinfo etc. */
|
/* Special case: corefile "NOTE" section containing regs, prpsinfo etc. */
|
||||||
#define IS_COREFILE_NOTE(p, s) \
|
#define IS_COREFILE_NOTE(p, s) \
|
||||||
(p->p_type == PT_NOTE \
|
(p->p_type == PT_NOTE \
|
||||||
|
@ -4601,9 +4589,7 @@ copy_private_bfd_data (ibfd, obfd)
|
||||||
? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr) \
|
? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr) \
|
||||||
: IS_CONTAINED_BY_VMA (section, segment)) \
|
: IS_CONTAINED_BY_VMA (section, segment)) \
|
||||||
&& (section->flags & SEC_ALLOC) != 0) \
|
&& (section->flags & SEC_ALLOC) != 0) \
|
||||||
|| IS_COREFILE_NOTE (segment, section) \
|
|| IS_COREFILE_NOTE (segment, section)) \
|
||||||
|| (IS_CONTAINED_BY_FILEPOS (section, segment, bed) \
|
|
||||||
&& (section->flags & SEC_ALLOC) == 0)) \
|
|
||||||
&& section->output_section != NULL \
|
&& section->output_section != NULL \
|
||||||
&& ! section->segment_mark)
|
&& ! section->segment_mark)
|
||||||
|
|
||||||
|
@ -4848,7 +4834,6 @@ copy_private_bfd_data (ibfd, obfd)
|
||||||
/* Match up the physical address of the segment with the
|
/* Match up the physical address of the segment with the
|
||||||
LMA address of the output section. */
|
LMA address of the output section. */
|
||||||
if (IS_CONTAINED_BY_LMA (output_section, segment, map->p_paddr)
|
if (IS_CONTAINED_BY_LMA (output_section, segment, map->p_paddr)
|
||||||
|| IS_CONTAINED_BY_FILEPOS (section, segment, bed)
|
|
||||||
|| IS_COREFILE_NOTE (segment, section)
|
|| IS_COREFILE_NOTE (segment, section)
|
||||||
|| (bed->want_p_paddr_set_to_zero &&
|
|| (bed->want_p_paddr_set_to_zero &&
|
||||||
IS_CONTAINED_BY_VMA (output_section, segment))
|
IS_CONTAINED_BY_VMA (output_section, segment))
|
||||||
|
@ -5085,7 +5070,6 @@ copy_private_bfd_data (ibfd, obfd)
|
||||||
#undef SEGMENT_END
|
#undef SEGMENT_END
|
||||||
#undef IS_CONTAINED_BY_VMA
|
#undef IS_CONTAINED_BY_VMA
|
||||||
#undef IS_CONTAINED_BY_LMA
|
#undef IS_CONTAINED_BY_LMA
|
||||||
#undef IS_CONTAINED_BY_FILEPOS
|
|
||||||
#undef IS_COREFILE_NOTE
|
#undef IS_COREFILE_NOTE
|
||||||
#undef IS_SOLARIS_PT_INTERP
|
#undef IS_SOLARIS_PT_INTERP
|
||||||
#undef INCLUDE_SECTION_IN_SEGMENT
|
#undef INCLUDE_SECTION_IN_SEGMENT
|
||||||
|
|
|
@ -3429,20 +3429,3 @@ elf_i386_post_process_headers (abfd, link_info)
|
||||||
|
|
||||||
#undef elf_backend_post_process_headers
|
#undef elf_backend_post_process_headers
|
||||||
#undef elf32_bed
|
#undef elf32_bed
|
||||||
|
|
||||||
/* QNX support. */
|
|
||||||
#include "elf32-qnx.h"
|
|
||||||
|
|
||||||
#undef TARGET_LITTLE_SYM
|
|
||||||
#define TARGET_LITTLE_SYM bfd_elf32_i386qnx_vec
|
|
||||||
#undef TARGET_LITTLE_NAME
|
|
||||||
#define TARGET_LITTLE_NAME "elf32-i386-nto"
|
|
||||||
|
|
||||||
#define elf32_bed elf32_i386_qnx_bed
|
|
||||||
|
|
||||||
#include "elf32-target.h"
|
|
||||||
|
|
||||||
#undef elf_backend_set_nonloadable_filepos
|
|
||||||
#undef elf_backend_is_contained_by_filepos
|
|
||||||
#undef elf_backend_copy_private_bfd_data_p
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
|
@ -3850,24 +3850,3 @@ ppc_elf_grok_psinfo (abfd, note)
|
||||||
#define elf_backend_reloc_type_class ppc_elf_reloc_type_class
|
#define elf_backend_reloc_type_class ppc_elf_reloc_type_class
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
/* QNX support. */
|
|
||||||
#include "elf32-qnx.h"
|
|
||||||
|
|
||||||
#undef TARGET_LITTLE_SYM
|
|
||||||
#define TARGET_LITTLE_SYM bfd_elf32_powerpcleqnx_vec
|
|
||||||
#undef TARGET_LITTLE_NAME
|
|
||||||
#define TARGET_LITTLE_NAME "elf32-powerpcle-nto"
|
|
||||||
#undef TARGET_BIG_SYM
|
|
||||||
#define TARGET_BIG_SYM bfd_elf32_powerpcqnx_vec
|
|
||||||
#undef TARGET_BIG_NAME
|
|
||||||
#define TARGET_BIG_NAME "elf32-powerpc-nto"
|
|
||||||
|
|
||||||
#define elf32_bed elf32_ppc_qnx_bed
|
|
||||||
|
|
||||||
#include "elf32-target.h"
|
|
||||||
|
|
||||||
#undef elf_backend_set_nonloadable_filepos
|
|
||||||
#undef elf_backend_is_contained_by_filepos
|
|
||||||
#undef elf_backend_copy_private_bfd_data_p
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/* QNX specific support for 32-bit ELF
|
|
||||||
Copyright 2002 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
|
||||||
|
|
||||||
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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
#include "bfd.h"
|
|
||||||
#include "sysdep.h"
|
|
||||||
#include "elf-bfd.h"
|
|
||||||
#include "elf32-qnx.h"
|
|
||||||
|
|
||||||
/* Returns the end address of the segment + 1. */
|
|
||||||
#define SEGMENT_END(segment, start) \
|
|
||||||
(start + (segment->p_memsz > segment->p_filesz \
|
|
||||||
? segment->p_memsz : segment->p_filesz))
|
|
||||||
|
|
||||||
boolean
|
|
||||||
elf_qnx_copy_private_bfd_data_p (ibfd, isec, obfd, osec)
|
|
||||||
bfd *ibfd ATTRIBUTE_UNUSED;
|
|
||||||
asection *isec;
|
|
||||||
bfd *obfd ATTRIBUTE_UNUSED;
|
|
||||||
asection *osec ATTRIBUTE_UNUSED;
|
|
||||||
{
|
|
||||||
return isec->next == NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
boolean
|
|
||||||
elf_qnx_is_contained_by_filepos (section, segment)
|
|
||||||
asection *section;
|
|
||||||
Elf_Internal_Phdr *segment;
|
|
||||||
{
|
|
||||||
return ((bfd_vma) section->filepos >= segment->p_offset
|
|
||||||
&& ((bfd_vma) section->filepos + section->_raw_size
|
|
||||||
<= SEGMENT_END (segment, segment->p_offset)));
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
elf_qnx_set_nonloadable_filepos (abfd, phdrs)
|
|
||||||
bfd *abfd;
|
|
||||||
Elf_Internal_Phdr *phdrs;
|
|
||||||
{
|
|
||||||
struct elf_segment_map *m;
|
|
||||||
Elf_Internal_Phdr *p;
|
|
||||||
file_ptr off = 0;
|
|
||||||
|
|
||||||
for (m = elf_tdata (abfd)->segment_map, p = phdrs;
|
|
||||||
m != NULL;
|
|
||||||
m = m->next, p++)
|
|
||||||
{
|
|
||||||
unsigned int i;
|
|
||||||
asection **secpp;
|
|
||||||
|
|
||||||
for (i = 0, secpp = m->sections; i < m->count; i++, secpp++)
|
|
||||||
{
|
|
||||||
asection *sec;
|
|
||||||
|
|
||||||
sec = *secpp;
|
|
||||||
|
|
||||||
if (p->p_type == PT_LOAD)
|
|
||||||
off = sec->filepos;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (i == 0)
|
|
||||||
{
|
|
||||||
if (sec->filepos)
|
|
||||||
p->p_offset = sec->filepos;
|
|
||||||
else
|
|
||||||
p->p_offset = off;
|
|
||||||
}
|
|
||||||
if (!sec->filepos)
|
|
||||||
{
|
|
||||||
off += sec->_raw_size;
|
|
||||||
p->p_filesz += sec->_raw_size;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/* QNX specific support for 32-bit ELF
|
|
||||||
Copyright 2002 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
|
||||||
|
|
||||||
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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
boolean elf_qnx_copy_private_bfd_data_p
|
|
||||||
PARAMS ((bfd *, asection *, bfd *, asection *));
|
|
||||||
boolean elf_qnx_is_contained_by_filepos
|
|
||||||
PARAMS ((asection *, Elf_Internal_Phdr *));
|
|
||||||
void elf_qnx_set_nonloadable_filepos
|
|
||||||
PARAMS ((bfd *, Elf_Internal_Phdr *));
|
|
||||||
|
|
||||||
#undef elf_backend_set_nonloadable_filepos
|
|
||||||
#define elf_backend_set_nonloadable_filepos elf_qnx_set_nonloadable_filepos
|
|
||||||
#undef elf_backend_is_contained_by_filepos
|
|
||||||
#define elf_backend_is_contained_by_filepos elf_qnx_is_contained_by_filepos
|
|
||||||
#undef elf_backend_copy_private_bfd_data_p
|
|
||||||
#define elf_backend_copy_private_bfd_data_p elf_qnx_copy_private_bfd_data_p
|
|
|
@ -7449,29 +7449,6 @@ elf32_shlin_grok_psinfo (abfd, note)
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
/* QNX support. */
|
|
||||||
#include "elf32-qnx.h"
|
|
||||||
|
|
||||||
#undef TARGET_LITTLE_SYM
|
|
||||||
#define TARGET_LITTLE_SYM bfd_elf32_shlqnx_vec
|
|
||||||
#undef TARGET_LITTLE_NAME
|
|
||||||
#define TARGET_LITTLE_NAME "elf32-shl-nto"
|
|
||||||
#undef TARGET_BIG_SYM
|
|
||||||
#define TARGET_BIG_SYM bfd_elf32_shqnx_vec
|
|
||||||
#undef TARGET_BIG_NAME
|
|
||||||
#define TARGET_BIG_NAME "elf32-sh-nto"
|
|
||||||
#undef ELF_MAXPAGESIZE
|
|
||||||
#define ELF_MAXPAGESIZE 0x1000
|
|
||||||
|
|
||||||
#define elf32_bed elf32_sh_qnx_bed
|
|
||||||
|
|
||||||
#include "elf32-target.h"
|
|
||||||
|
|
||||||
#undef elf_backend_set_nonloadable_filepos
|
|
||||||
#undef elf_backend_is_contained_by_filepos
|
|
||||||
#undef elf_backend_copy_private_bfd_data_p
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
||||||
/* NetBSD support. */
|
/* NetBSD support. */
|
||||||
#undef TARGET_BIG_SYM
|
#undef TARGET_BIG_SYM
|
||||||
#define TARGET_BIG_SYM bfd_elf32_shnbsd_vec
|
#define TARGET_BIG_SYM bfd_elf32_shnbsd_vec
|
||||||
|
|
|
@ -750,26 +750,3 @@ elf32_arm_nabi_grok_psinfo (abfd, note)
|
||||||
#define elf_backend_grok_psinfo elf32_arm_nabi_grok_psinfo
|
#define elf_backend_grok_psinfo elf32_arm_nabi_grok_psinfo
|
||||||
|
|
||||||
#include "elf32-arm.h"
|
#include "elf32-arm.h"
|
||||||
|
|
||||||
/* QNX support. */
|
|
||||||
#include "elf32-qnx.h"
|
|
||||||
|
|
||||||
#undef TARGET_LITTLE_SYM
|
|
||||||
#define TARGET_LITTLE_SYM bfd_elf32_littlearmqnx_vec
|
|
||||||
#undef TARGET_LITTLE_NAME
|
|
||||||
#define TARGET_LITTLE_NAME "elf32-littlearm-nto"
|
|
||||||
#undef TARGET_BIG_SYM
|
|
||||||
#define TARGET_BIG_SYM bfd_elf32_bigarmqnx_vec
|
|
||||||
#undef TARGET_BIG_NAME
|
|
||||||
#define TARGET_BIG_NAME "elf32-bigarm-nto"
|
|
||||||
#undef ELF_MAXPAGESIZE
|
|
||||||
#define ELF_MAXPAGESIZE 0x1000
|
|
||||||
|
|
||||||
#define elf32_bed elf32_arm_qnx_bed
|
|
||||||
|
|
||||||
#include "elf32-target.h"
|
|
||||||
|
|
||||||
#undef elf_backend_set_nonloadable_filepos
|
|
||||||
#undef elf_backend_is_contained_by_filepos
|
|
||||||
#undef elf_backend_copy_private_bfd_data_p
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
|
@ -385,15 +385,6 @@
|
||||||
#ifndef elf_backend_write_section
|
#ifndef elf_backend_write_section
|
||||||
#define elf_backend_write_section NULL
|
#define elf_backend_write_section NULL
|
||||||
#endif
|
#endif
|
||||||
#ifndef elf_backend_set_nonloadable_filepos
|
|
||||||
#define elf_backend_set_nonloadable_filepos NULL
|
|
||||||
#endif
|
|
||||||
#ifndef elf_backend_is_contained_by_filepos
|
|
||||||
#define elf_backend_is_contained_by_filepos NULL
|
|
||||||
#endif
|
|
||||||
#ifndef elf_backend_copy_private_bfd_data_p
|
|
||||||
#define elf_backend_copy_private_bfd_data_p NULL
|
|
||||||
#endif
|
|
||||||
#ifndef elf_backend_mips_irix_compat
|
#ifndef elf_backend_mips_irix_compat
|
||||||
#define elf_backend_mips_irix_compat NULL
|
#define elf_backend_mips_irix_compat NULL
|
||||||
#endif
|
#endif
|
||||||
|
@ -492,9 +483,6 @@ static const struct elf_backend_data elfNN_bed =
|
||||||
elf_backend_discard_info,
|
elf_backend_discard_info,
|
||||||
elf_backend_ignore_discarded_relocs,
|
elf_backend_ignore_discarded_relocs,
|
||||||
elf_backend_write_section,
|
elf_backend_write_section,
|
||||||
elf_backend_set_nonloadable_filepos,
|
|
||||||
elf_backend_is_contained_by_filepos,
|
|
||||||
elf_backend_copy_private_bfd_data_p,
|
|
||||||
elf_backend_mips_irix_compat,
|
elf_backend_mips_irix_compat,
|
||||||
elf_backend_mips_rtype_to_howto,
|
elf_backend_mips_rtype_to_howto,
|
||||||
elf_backend_ecoff_debug_swap,
|
elf_backend_ecoff_debug_swap,
|
||||||
|
|
|
@ -152,8 +152,6 @@ elf32-openrisc.c
|
||||||
elf32-or32.c
|
elf32-or32.c
|
||||||
elf32-pj.c
|
elf32-pj.c
|
||||||
elf32-ppc.c
|
elf32-ppc.c
|
||||||
elf32-qnx.c
|
|
||||||
elf32-qnx.h
|
|
||||||
elf32-s390.c
|
elf32-s390.c
|
||||||
elf32-sh.c
|
elf32-sh.c
|
||||||
elf32-sh64-com.c
|
elf32-sh64-com.c
|
||||||
|
|
|
@ -508,7 +508,6 @@ extern const bfd_target bfd_elf32_big_generic_vec;
|
||||||
extern const bfd_target bfd_elf32_bigarc_vec;
|
extern const bfd_target bfd_elf32_bigarc_vec;
|
||||||
extern const bfd_target bfd_elf32_bigarm_oabi_vec;
|
extern const bfd_target bfd_elf32_bigarm_oabi_vec;
|
||||||
extern const bfd_target bfd_elf32_bigarm_vec;
|
extern const bfd_target bfd_elf32_bigarm_vec;
|
||||||
extern const bfd_target bfd_elf32_bigarmqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_bigmips_vec;
|
extern const bfd_target bfd_elf32_bigmips_vec;
|
||||||
extern const bfd_target bfd_elf32_cris_vec;
|
extern const bfd_target bfd_elf32_cris_vec;
|
||||||
extern const bfd_target bfd_elf32_d10v_vec;
|
extern const bfd_target bfd_elf32_d10v_vec;
|
||||||
|
@ -522,7 +521,6 @@ extern const bfd_target bfd_elf32_hppa_vec;
|
||||||
extern const bfd_target bfd_elf32_i370_vec;
|
extern const bfd_target bfd_elf32_i370_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_freebsd_vec;
|
extern const bfd_target bfd_elf32_i386_freebsd_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_vec;
|
extern const bfd_target bfd_elf32_i386_vec;
|
||||||
extern const bfd_target bfd_elf32_i386qnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_i860_little_vec;
|
extern const bfd_target bfd_elf32_i860_little_vec;
|
||||||
extern const bfd_target bfd_elf32_i860_vec;
|
extern const bfd_target bfd_elf32_i860_vec;
|
||||||
extern const bfd_target bfd_elf32_i960_vec;
|
extern const bfd_target bfd_elf32_i960_vec;
|
||||||
|
@ -533,7 +531,6 @@ extern const bfd_target bfd_elf32_little_generic_vec;
|
||||||
extern const bfd_target bfd_elf32_littlearc_vec;
|
extern const bfd_target bfd_elf32_littlearc_vec;
|
||||||
extern const bfd_target bfd_elf32_littlearm_oabi_vec;
|
extern const bfd_target bfd_elf32_littlearm_oabi_vec;
|
||||||
extern const bfd_target bfd_elf32_littlearm_vec;
|
extern const bfd_target bfd_elf32_littlearm_vec;
|
||||||
extern const bfd_target bfd_elf32_littlearmqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_littlemips_vec;
|
extern const bfd_target bfd_elf32_littlemips_vec;
|
||||||
extern const bfd_target bfd_elf32_m32r_vec;
|
extern const bfd_target bfd_elf32_m32r_vec;
|
||||||
extern const bfd_target bfd_elf32_m68hc11_vec;
|
extern const bfd_target bfd_elf32_m68hc11_vec;
|
||||||
|
@ -554,8 +551,6 @@ extern const bfd_target bfd_elf32_pj_vec;
|
||||||
extern const bfd_target bfd_elf32_pjl_vec;
|
extern const bfd_target bfd_elf32_pjl_vec;
|
||||||
extern const bfd_target bfd_elf32_powerpc_vec;
|
extern const bfd_target bfd_elf32_powerpc_vec;
|
||||||
extern const bfd_target bfd_elf32_powerpcle_vec;
|
extern const bfd_target bfd_elf32_powerpcle_vec;
|
||||||
extern const bfd_target bfd_elf32_powerpcleqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_powerpcqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_s390_vec;
|
extern const bfd_target bfd_elf32_s390_vec;
|
||||||
extern const bfd_target bfd_elf32_sh64_vec;
|
extern const bfd_target bfd_elf32_sh64_vec;
|
||||||
extern const bfd_target bfd_elf32_sh64l_vec;
|
extern const bfd_target bfd_elf32_sh64l_vec;
|
||||||
|
@ -568,9 +563,7 @@ extern const bfd_target bfd_elf32_shblin_vec;
|
||||||
extern const bfd_target bfd_elf32_shl_vec;
|
extern const bfd_target bfd_elf32_shl_vec;
|
||||||
extern const bfd_target bfd_elf32_shlin_vec;
|
extern const bfd_target bfd_elf32_shlin_vec;
|
||||||
extern const bfd_target bfd_elf32_shlnbsd_vec;
|
extern const bfd_target bfd_elf32_shlnbsd_vec;
|
||||||
extern const bfd_target bfd_elf32_shlqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_shnbsd_vec;
|
extern const bfd_target bfd_elf32_shnbsd_vec;
|
||||||
extern const bfd_target bfd_elf32_shqnx_vec;
|
|
||||||
extern const bfd_target bfd_elf32_sparc_vec;
|
extern const bfd_target bfd_elf32_sparc_vec;
|
||||||
extern const bfd_target bfd_elf32_tradbigmips_vec;
|
extern const bfd_target bfd_elf32_tradbigmips_vec;
|
||||||
extern const bfd_target bfd_elf32_tradlittlemips_vec;
|
extern const bfd_target bfd_elf32_tradlittlemips_vec;
|
||||||
|
@ -793,7 +786,6 @@ static const bfd_target * const _bfd_target_vector[] = {
|
||||||
&bfd_elf32_bigarc_vec,
|
&bfd_elf32_bigarc_vec,
|
||||||
&bfd_elf32_bigarm_oabi_vec,
|
&bfd_elf32_bigarm_oabi_vec,
|
||||||
&bfd_elf32_bigarm_vec,
|
&bfd_elf32_bigarm_vec,
|
||||||
&bfd_elf32_bigarmqnx_vec,
|
|
||||||
&bfd_elf32_bigmips_vec,
|
&bfd_elf32_bigmips_vec,
|
||||||
&bfd_elf32_cris_vec,
|
&bfd_elf32_cris_vec,
|
||||||
&bfd_elf32_d10v_vec,
|
&bfd_elf32_d10v_vec,
|
||||||
|
@ -807,7 +799,6 @@ static const bfd_target * const _bfd_target_vector[] = {
|
||||||
&bfd_elf32_i370_vec,
|
&bfd_elf32_i370_vec,
|
||||||
&bfd_elf32_i386_freebsd_vec,
|
&bfd_elf32_i386_freebsd_vec,
|
||||||
&bfd_elf32_i386_vec,
|
&bfd_elf32_i386_vec,
|
||||||
&bfd_elf32_i386qnx_vec,
|
|
||||||
&bfd_elf32_i860_little_vec,
|
&bfd_elf32_i860_little_vec,
|
||||||
&bfd_elf32_i860_vec,
|
&bfd_elf32_i860_vec,
|
||||||
&bfd_elf32_i960_vec,
|
&bfd_elf32_i960_vec,
|
||||||
|
@ -820,7 +811,6 @@ static const bfd_target * const _bfd_target_vector[] = {
|
||||||
&bfd_elf32_littlearc_vec,
|
&bfd_elf32_littlearc_vec,
|
||||||
&bfd_elf32_littlearm_oabi_vec,
|
&bfd_elf32_littlearm_oabi_vec,
|
||||||
&bfd_elf32_littlearm_vec,
|
&bfd_elf32_littlearm_vec,
|
||||||
&bfd_elf32_littlearmqnx_vec,
|
|
||||||
&bfd_elf32_littlemips_vec,
|
&bfd_elf32_littlemips_vec,
|
||||||
&bfd_elf32_m32r_vec,
|
&bfd_elf32_m32r_vec,
|
||||||
&bfd_elf32_m68hc11_vec,
|
&bfd_elf32_m68hc11_vec,
|
||||||
|
@ -843,17 +833,13 @@ static const bfd_target * const _bfd_target_vector[] = {
|
||||||
&bfd_elf32_pjl_vec,
|
&bfd_elf32_pjl_vec,
|
||||||
&bfd_elf32_powerpc_vec,
|
&bfd_elf32_powerpc_vec,
|
||||||
&bfd_elf32_powerpcle_vec,
|
&bfd_elf32_powerpcle_vec,
|
||||||
&bfd_elf32_powerpcleqnx_vec,
|
|
||||||
&bfd_elf32_powerpcqnx_vec,
|
|
||||||
&bfd_elf32_s390_vec,
|
&bfd_elf32_s390_vec,
|
||||||
&bfd_elf32_sh_vec,
|
&bfd_elf32_sh_vec,
|
||||||
&bfd_elf32_shblin_vec,
|
&bfd_elf32_shblin_vec,
|
||||||
&bfd_elf32_shl_vec,
|
&bfd_elf32_shl_vec,
|
||||||
&bfd_elf32_shlin_vec,
|
&bfd_elf32_shlin_vec,
|
||||||
&bfd_elf32_shlnbsd_vec,
|
&bfd_elf32_shlnbsd_vec,
|
||||||
&bfd_elf32_shlqnx_vec,
|
|
||||||
&bfd_elf32_shnbsd_vec,
|
&bfd_elf32_shnbsd_vec,
|
||||||
&bfd_elf32_shqnx_vec,
|
|
||||||
#ifdef BFD64
|
#ifdef BFD64
|
||||||
&bfd_elf32_sh64_vec,
|
&bfd_elf32_sh64_vec,
|
||||||
&bfd_elf32_sh64l_vec,
|
&bfd_elf32_sh64l_vec,
|
||||||
|
|
Loading…
Reference in a new issue