[PATCH]: LD changes for QNX 6.1 for the i386
J.T. Conklin
jtc@acorntoolworks.com
Tue Mar 12 10:54:00 GMT 2002
Enclosed are changes to add support for QNX 6.1 for the i386.
--jtc
2002-03-12 J.T. Conklin <jtc@acorntoolworks.com>
* Makefile.am (ALL_EMULATIONS): Add eelf32_i386_qnx.o.
(eelf32_i386_qnx.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt (i[3456]86-*-nto-qnx*): New target.
* emulparams/elf_qnx.sh, emulparams/elf_i386_qnx.sh: New files.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# elf_i386_qnx.sh
# elf_qnx.sh
#
echo x - elf_i386_qnx.sh
sed 's/^X//' >elf_i386_qnx.sh << 'END-of-elf_i386_qnx.sh'
X. ${srcdir}/emulparams/elf_i386.sh
X. ${srcdir}/emulparams/elf_qnx.sh
END-of-elf_i386_qnx.sh
echo x - elf_qnx.sh
sed 's/^X//' >elf_qnx.sh << 'END-of-elf_qnx.sh'
XTEXT_START_SYMBOLS='_btext = . ;'
XELF_INTERPRETER_NAME=\"/usr/lib/ldqnx.so.2\"
END-of-elf_qnx.sh
exit
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.88
diff -c -r1.88 Makefile.am
*** Makefile.am 2002/02/20 06:52:34 1.88
--- Makefile.am 2002/03/12 17:46:33
***************
*** 169,174 ****
--- 169,175 ----
eelf_i386_chaos.o \
eelf_i386_fbsd.o \
eelf_i386_ldso.o \
+ eelf_i386_qnx.o \
eelf_s390.o \
egld960.o \
egld960coff.o \
***************
*** 646,651 ****
--- 647,658 ----
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
+ eelf_i386_qnx.c: $(srcdir)/emulparams/elf_i386_qnx.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(srcdir)/emulparams/elf_qnx.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_i386_qnx "$(tdir_elf_i386_qnx)"
+ eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/ld/Makefile.in,v
retrieving revision 1.96
diff -c -r1.96 Makefile.in
*** Makefile.in 2002/02/18 09:38:00 1.96
--- Makefile.in 2002/03/12 17:46:38
***************
*** 278,283 ****
--- 278,284 ----
eelf_i386_chaos.o \
eelf_i386_fbsd.o \
eelf_i386_ldso.o \
+ eelf_i386_qnx.o \
eelf_s390.o \
egld960.o \
egld960coff.o \
***************
*** 1367,1372 ****
--- 1368,1378 ----
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
+ eelf_i386_qnx.c: $(srcdir)/emulparams/elf_i386_qnx.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(srcdir)/emulparams/elf_qnx.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_i386_qnx "$(tdir_elf_i386_qnx)"
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.82
diff -c -r1.82 configure.tgt
*** configure.tgt 2002/02/18 09:38:00 1.82
--- configure.tgt 2002/03/12 17:46:40
***************
*** 184,189 ****
--- 184,190 ----
tdir_elf_i386=`echo ${targ_alias} \
| sed -e 's/x86_64/i386/'`
;;
+ i[3456]86-*-nto-qnx*) targ_emul=elf_i386_qnx ;;
i[3456]86-*-sysv*) targ_emul=i386coff ;;
i[3456]86-*-ptx*) targ_emul=i386coff ;;
i[3456]86-*-mach*) targ_emul=i386mach ;;
--
J.T. Conklin
More information about the Binutils
mailing list