bug-gnu-utils
[Top][All Lists]
Advanced

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

address@hidden: [PATCH]: Several new targets and fixes for OpenBSD]


From: Federico G. Schwindt
Subject: address@hidden: [PATCH]: Several new targets and fixes for OpenBSD]
Date: Mon, 8 Jul 2002 07:02:44 -0300
User-agent: Mutt/1.4i

  After talking to Nick, I'm forwarding this here since it seems binutils
mailing list it's currently having some problems.
  Thanks,

  f.-

----- Forwarded message from "Federico G. Schwindt" <address@hidden> -----

Date: Sat, 6 Jul 2002 02:58:13 -0300
From: "Federico G. Schwindt" <address@hidden>
To: address@hidden
Subject: [PATCH]: Several new targets and fixes for OpenBSD
User-Agent: Mutt/1.4i


  Several fixes and new targets for OpenBSD.
  Comments?

  f.-

ChangeLog:

2002-07-06  Federico G. Schwindt <address@hidden>

        * configure.in (hppa*-*-openbsd*): Treat like hppa*-*-*elf*.

gas/ChangeLog:

2002-07-06  Federico G. Schwindt <address@hidden>

        * configure.in: Add hppa-*-openbsd* target, change
          alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
          with sparc64 cpu.
        * configure: Regenerate.

ld/ChangeLog:

2002-07-06  Federico G. Schwindt <address@hidden>

        * configure.tgt: Add hppaobsd.o.
        * Makefile.am: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
          powerpc-*-openbsd* and sparc64-*-openbsd*.
        * Makefile.in: Regenerate.
        * emulparams/hppaobsd.sh: New file.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.94
diff -u -r1.94 configure.in
--- configure.in        3 Jul 2002 23:35:31 -0000       1.94
+++ configure.in        6 Jul 2002 05:36:04 -0000
@@ -421,6 +421,7 @@
   hppa*-*-*elf* | \
   parisc*-*-linux* | hppa*-*-linux* | \
   hppa*-*-lites* | \
+  hppa*-*-openbsd* | \
   hppa*64*-*-*)
     noconfigdirs="$noconfigdirs ${libgcj}"
     # Do configure ld/binutils/gas for this case.
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.109
diff -u -r1.109 configure.in
--- gas/configure.in    18 Jun 2002 21:15:18 -0000      1.109
+++ gas/configure.in    6 Jul 2002 05:36:10 -0000
@@ -182,11 +182,11 @@
 
       alpha*-*-*vms*)      fmt=evax ;;
       alpha*-*-netware*)    fmt=ecoff ;;
-      alpha*-*-openbsd*)    fmt=ecoff ;;
       alpha*-*-osf*)        fmt=ecoff ;;
       alpha*-*-linuxecoff*) fmt=ecoff ;;
       alpha*-*-linux-gnu*)  fmt=elf em=linux ;;
       alpha*-*-netbsd*)     fmt=elf em=nbsd ;;
+      alpha*-*-openbsd*)    fmt=elf em=obsd ;;
 
       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
 
@@ -228,6 +228,7 @@
       hppa-*-*elf*)         fmt=elf em=hppa ;;
       hppa-*-lites*)        fmt=elf em=hppa ;;
       hppa-*-netbsd*)       fmt=elf em=nbsd ;;
+      hppa-*-openbsd*)      fmt=elf em=hppa ;;
       hppa-*-osf*)          fmt=som em=hppa ;;
       hppa-*-rtems*)        fmt=elf em=hppa ;;
       hppa-*-hpux11*)      case ${cpu} in
@@ -463,7 +464,12 @@
                                 sparc64) fmt=elf ;;
                             esac
                             ;;
-      sparc-*-openbsd*)     fmt=aout em=nbsd ;;
+      sparc-*-openbsd*)     em=nbsd
+                            case ${cpu} in
+                               sparc) fmt=aout ;;
+                               sparc64) fmt=elf ;;
+                            esac
+                            ;;
 
       strongarm-*-coff)     fmt=coff ;;
       strongarm-*-elf)      fmt=elf ;;
Index: ld/Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.104
diff -u -r1.104 Makefile.am
--- ld/Makefile.am      2 Jul 2002 23:56:53 -0000       1.104
+++ ld/Makefile.am      6 Jul 2002 05:36:31 -0000
@@ -198,6 +198,7 @@
        ehppaelf.o \
        ehppalinux.o \
        ehppanbsd.o \
+       ehppaobsd.o \
        ei386aout.o \
        ei386beos.o \
        ei386bsd.o \
@@ -768,6 +769,10 @@
   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
+ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} hppaobsd "$(tdir_hppaobsd)"
 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.97
diff -u -r1.97 configure.tgt
--- ld/configure.tgt    18 Jun 2002 21:17:22 -0000      1.97
+++ ld/configure.tgt    6 Jul 2002 05:36:32 -0000
@@ -70,7 +70,8 @@
                        tdir_sun4=sparc-sun-sunos4
                        ;;
 sparc*-*-lynxos*)      targ_emul=sparclynx ;;
-sparc64-*-netbsd*)     targ_emul=elf64_sparc
+sparc64-*-netbsd* | sparc64-*-openbsd*)
+                       targ_emul=elf64_sparc
                        targ_extra_emuls="elf32_sparc"
                        ;;
 sparc*-*-netbsd*elf*)  targ_emul=elf32_sparc ;;
@@ -348,6 +349,7 @@
 hppa*-*-*elf*)         targ_emul=hppaelf ;;
 hppa*-*-lites*)                targ_emul=hppaelf ;;
 hppa*-*-netbsd*)       targ_emul=hppanbsd ;;
+hppa*-*-openbsd*)      targ_emul=hppaobsd ;;
 hppa*-*-rtems*)                targ_emul=hppaelf ;;
 vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
 vax-*-netbsdelf*)      targ_emul=elf32vax
@@ -413,6 +415,7 @@
 alpha*-*-gnu*)         targ_emul=elf64alpha ;;
 alpha*-*-netware*)     targ_emul=alpha ;;
 alpha*-*-netbsd*)      targ_emul=elf64alpha_nbsd ;;
+alpha*-*-openbsd*)     targ_emul=elf64alpha ;;
 z8k-*-coff)            targ_emul=z8002; targ_extra_emuls=z8001 ;;
 ns32k-pc532-mach* | ns32k-pc532-ux*)   targ_emul=pc532macha ;;
 ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
@@ -451,7 +454,7 @@
                targ_extra_emuls="elf32ppcsim" ;;
        esac ;;
 powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
-  | powerpc*-*-netbsd* | powerpc*-*-vxworks*)
+  | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks*)
        case "${targ}" in
        *64*)   targ_emul=elf64ppc
                targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
Index: ld/emulparams/hppaobsd.sh
===================================================================
RCS file: ld/emulparams/hppaobsd.sh
diff -N ld/emulparams/hppaobsd.sh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ ld/emulparams/hppaobsd.sh   6 Jul 2002 05:36:33 -0000
@@ -0,0 +1,16 @@
+SCRIPT_NAME=elf
+ELFSIZE=32
+OUTPUT_FORMAT="elf32-hppa"
+TEXT_START_ADDR=0x1000
+TARGET_PAGE_SIZE=0x1000
+MAXPAGESIZE=0x1000
+ARCH=hppa
+MACHINE=hppa1.1                # We use 1.1 specific features.
+NOP=0x08000240
+START="_start"
+OTHER_READONLY_SECTIONS='.PARISC.unwind : { *(.PARISC.unwind) } '
+DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
+DATA_PLT=
+GENERATE_SHLIB_SCRIPT=yes
+TEMPLATE_NAME=elf32
+EXTRA_EM_FILE=hppaelf

----- End forwarded message -----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]