[PATCH RFA] Add hppa*-*-netbsd* target
Jason R Thorpe
thorpej@wasabisystems.com
Fri Feb 1 15:31:00 GMT 2002
The following patch adds a hppa*-*-netbsd* target.
OK to commit?
[ for bfd/ChangeLog ]
* config.bfd (hppa*-*-netbsd*): New target.
[ for gas/ChangeLog ]
* configure.in (hppa-*-netbsd*): New target.
* configure: Regenerate.
* config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
[ for ld/ChangeLog]
* Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
(ehppanbsd.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt (hppa*-*-netbsd*): New target.
* emulparams/hppaelf.sh: Add comment to check other files
that source this file it is modified, and list which
files that do.
* emulparams/hppanbsd.sh: New file.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
-------------- next part --------------
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.83
diff -u -r1.83 config.bfd
--- config.bfd 2002/02/01 05:47:13 1.83
+++ config.bfd 2002/02/01 23:29:20
@@ -302,7 +302,7 @@
targ_defvec=bfd_elf32_hppa_linux_vec
targ_selvecs=bfd_elf32_hppa_vec
;;
- hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-rtems*)
+ hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-netbsd* | hppa*-*-sysv4* | hppa*-*-rtems*)
targ_defvec=bfd_elf32_hppa_vec
targ_selvecs=bfd_elf32_hppa_linux_vec
;;
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.94
diff -u -r1.94 configure.in
--- configure.in 2002/01/31 17:33:00 1.94
+++ configure.in 2002/02/01 23:29:30
@@ -222,6 +222,7 @@
esac ;;
hppa-*-*elf*) fmt=elf em=hppa ;;
hppa-*-lites*) fmt=elf em=hppa ;;
+ hppa-*-netbsd*) fmt=elf em=nbsd ;;
hppa-*-osf*) fmt=som em=hppa ;;
hppa-*-rtems*) fmt=elf em=hppa ;;
hppa-*-hpux11*) case ${cpu} in
Index: gas/config/tc-hppa.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.h,v
retrieving revision 1.16
diff -u -r1.16 tc-hppa.h
--- tc-hppa.h 2001/03/08 23:24:23 1.16
+++ tc-hppa.h 2002/02/01 23:29:33
@@ -68,7 +68,7 @@
#define TARGET_FORMAT "som"
#endif
-#ifdef TE_LINUX
+#if defined(TE_LINUX) || defined(TE_NetBSD)
/* Define to compile in an extra assembler option, -c, which enables a
warning (once per file) when a comment is encountered.
The hppa comment char is a `;' which tends to occur in random C asm
Index: ld/Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.85
diff -u -r1.85 Makefile.am
--- Makefile.am 2002/01/31 17:33:06 1.85
+++ Makefile.am 2002/02/01 23:29:52
@@ -184,6 +184,7 @@
ehp3hpux.o \
ehppaelf.o \
ehppalinux.o \
+ ehppanbsd.o \
ei386aout.o \
ei386beos.o \
ei386bsd.o \
@@ -662,6 +663,11 @@
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
+ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
+ $(srcdir)/emulparams/hppaelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
+ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.78
diff -u -r1.78 configure.tgt
--- configure.tgt 2002/01/31 17:33:06 1.78
+++ configure.tgt 2002/02/01 23:29:57
@@ -304,6 +304,7 @@
hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
hppa*-*-*elf*) targ_emul=hppaelf ;;
hppa*-*-lites*) targ_emul=hppaelf ;;
+hppa*-*-netbsd*) targ_emul=hppanbsd ;;
hppa*-*-rtems*) targ_emul=hppaelf ;;
vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
mips*-*-pe) targ_emul=mipspe ;
Index: ld/emulparams/hppaelf.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/hppaelf.sh,v
retrieving revision 1.3
diff -u -r1.3 hppaelf.sh
--- hppaelf.sh 2000/07/28 01:33:14 1.3
+++ hppaelf.sh 2002/02/01 23:29:57
@@ -1,3 +1,6 @@
+# If you change this file, please also look at files which source this one:
+# hppanbsd.sh
+
SCRIPT_NAME=hppaelf
OUTPUT_FORMAT="elf32-hppa"
TEXT_START_ADDR=0x1000
Index: ld/emulparams/hppanbsd.sh
===================================================================
RCS file: hppanbsd.sh
diff -N hppanbsd.sh
--- /dev/null Tue May 5 13:32:27 1998
+++ hppanbsd.sh Fri Feb 1 15:29:57 2002
@@ -0,0 +1,15 @@
+. ${srcdir}/emulparams/hppaelf.sh
+
+SCRIPT_NAME=elf
+
+TEXT_START_ADDR=0x10000
+TARGET_PAGE_SIZE=0x10000
+MAXPAGESIZE=0x10000
+
+ENTRY=_start
+
+OTHER_READONLY_SECTIONS="
+ .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
+DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
+DATA_PLT=
+GENERATE_SHLIB_SCRIPT=yes
More information about the Binutils
mailing list