diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-06 11:08:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-06 13:56:29 +1030 |
commit | b88237bc21d0e847d5c8808bfd9a789ed213cfb2 (patch) | |
tree | ad7f29b2b878264889c927dbdea2a6c96662bb88 | |
parent | 095252be0b51750f0b135bcbf8624dd70a59bc1f (diff) | |
download | gdb-b88237bc21d0e847d5c8808bfd9a789ed213cfb2.zip gdb-b88237bc21d0e847d5c8808bfd9a789ed213cfb2.tar.gz gdb-b88237bc21d0e847d5c8808bfd9a789ed213cfb2.tar.bz2 |
i386-moss and i386-openbsd ld config
i386-moss is an ELF target needing ldelf.c. x86 openbsd wouldn't even
build, so I added entries to do the same as netbsd. Quite likely this
isn't ideal but if the openbsd folk don't contribute their changes
this is what they get.
* configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
(i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/configure.tgt | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 2b885b5..3ad29e5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-02-06 Alan Modra <amodra@gmail.com> + + * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles. + (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add. + 2020-02-02 H.J. Lu <hongjiu.lu@intel.com> PR gas/25380 diff --git a/ld/configure.tgt b/ld/configure.tgt index 23194e3..ced5d1f 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -347,7 +347,8 @@ i[3-7]86-*-solaris*) targ_emul=elf_i386_ldso ;; i[3-7]86-*-netbsdelf* | \ i[3-7]86-*-netbsd*-gnu* | \ -i[3-7]86-*-knetbsd*-gnu) +i[3-7]86-*-knetbsd*-gnu | \ +i[3-7]86-*-openbsd*) targ_emul=elf_i386 targ_extra_emuls="elf_iamcu" ;; @@ -377,7 +378,6 @@ i[3-7]86-*-msdos*) targ_emul=i386msdos ;; i[3-7]86-*-moss*) targ_emul=i386moss targ_extra_emuls=i386msdos - targ_extra_ofiles= ;; i[3-7]86-*-winnt*) targ_emul=i386pe ; targ_extra_ofiles="deffilep.o pe-dll.o" @@ -947,7 +947,8 @@ x86_64-*-solaris2*) targ_emul=elf_x86_64_sol2 targ_extra_libpath=$targ_extra_emuls tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;; -x86_64-*-netbsd*) targ_emul=elf_x86_64 +x86_64-*-netbsd* | x86_64-*-openbsd*) + targ_emul=elf_x86_64 targ_extra_emuls="elf_i386 elf_iamcu elf_l1om elf_k1om" tdir_elf_iamcu=`echo ${targ_alias} | \ sed -e 's/x86_64/i386/'` |