summaryrefslogtreecommitdiff
path: root/libexec/ld.so/i386
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/i386
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/i386')
-rw-r--r--libexec/ld.so/i386/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/i386/Makefile.inc b/libexec/ld.so/i386/Makefile.inc
index 28573b34aec..24d9972a877 100644
--- a/libexec/ld.so/i386/Makefile.inc
+++ b/libexec/ld.so/i386/Makefile.inc
@@ -1,4 +1,6 @@
-# $OpenBSD: Makefile.inc,v 1.1 2002/08/23 23:02:48 drahn Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2019/10/20 03:44:49 guenther Exp $
CFLAGS += -fPIC
AFLAGS += -fpic
+
+RELATIVE_RELOC=R_386_RELATIVE