summaryrefslogtreecommitdiff
path: root/libexec/ld.so/amd64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2019-10-20 03:44:50 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2019-10-20 03:44:50 +0000
commit45c8fa17f758c7effb83872fb3f9db4fce5fad25 (patch)
tree8867cbf847bda0230062a696fed761c510f1f5ce /libexec/ld.so/amd64
parent30ad2d3a01ab6c01c02d98c02557c7c37af276a3 (diff)
For more archs, ld.so itself only needs/uses the arch's "just add load offset"
'relative' relocation. Take advantage of that to simplify ld.so's self-reloc code: * give the exceptional archs (hppa and mips64) copies of the current boot.c as boot_md.c * teach the Makefile to use boot_md.c when present * reduce boot.c down to the minimum necessary to handle just relative reloc * teach the Makefile to fail if the built ld.so has other types of relocs ok visa@ kettenis@
Diffstat (limited to 'libexec/ld.so/amd64')
-rw-r--r--libexec/ld.so/amd64/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/amd64/Makefile.inc b/libexec/ld.so/amd64/Makefile.inc
index ce6c0ef290a..3181b632d65 100644
--- a/libexec/ld.so/amd64/Makefile.inc
+++ b/libexec/ld.so/amd64/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.6 2019/08/03 19:36:56 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2019/10/20 03:44:49 guenther Exp $
CFLAGS += -fPIC -mno-sse2 -mno-sse -mno-3dnow -mno-mmx
AFLAGS += -fpic
@@ -6,3 +6,5 @@ LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script
# Suppress DWARF2 warnings
DEBUG?= -gdwarf-4
+
+RELATIVE_RELOC=R_X86_64_RELATIVE