diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-02-10 22:28:06 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-02-10 22:28:06 +0000 |
commit | ab7d0333e819e72e85f05a1bedf042e57ed9457a (patch) | |
tree | d487fd97212f45011a8367028985f9c182536eb4 /gnu/usr.bin/binutils/ld | |
parent | 23beb109bf5eb80dacbbd5761f8cb2fef42807d3 (diff) |
configs for amd64; brad@ ok
Diffstat (limited to 'gnu/usr.bin/binutils/ld')
-rw-r--r-- | gnu/usr.bin/binutils/ld/configure.tgt | 4 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/configure.tgt b/gnu/usr.bin/binutils/ld/configure.tgt index 1a04f96b28c..d48563c117a 100644 --- a/gnu/usr.bin/binutils/ld/configure.tgt +++ b/gnu/usr.bin/binutils/ld/configure.tgt @@ -148,6 +148,10 @@ i[3456]86-*-unixware) targ_emul=elf_i386 ;; i[3456]86-*-solaris*) targ_emul=elf_i386 ;; i[3456]86-*-netbsd*) targ_emul=i386nbsd ;; i[3456]86-*-openbsd*) targ_emul=elf_i386 ;; +x86_64-*-openbsd*) targ_emul=elf_x86_64 + targ_extra_emuls=elf_i386 + tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` + ;; i[3456]86-*-netware) targ_emul=i386nw ;; i[3456]86-*-elf*) targ_emul=elf_i386 ;; i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12]) diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh b/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh index 635748f6388..8a5a4b22df3 100644 --- a/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh +++ b/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh @@ -7,5 +7,13 @@ NONPAGED_TEXT_START_ADDR=0x400000 ARCH=i386 MACHINE= NOP=0x9090 +LIB_PATH=/usr/lib + +PAD_GOT= +PAD_PLT= +PAD_RO= +RODATA_PADSIZE=${MAXPAGESIZE} +RODATA_ALIGN=". = ALIGN(${RODATA_PADSIZE}) + (. & (${RODATA_PADSIZE} - 1))" + TEMPLATE_NAME=elf32 GENERATE_SHLIB_SCRIPT=yes |