summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sparc64
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/sparc64
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/sparc64')
-rw-r--r--libexec/ld.so/sparc64/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/sparc64/Makefile.inc b/libexec/ld.so/sparc64/Makefile.inc
index a6c279e5787..ebeb5368213 100644
--- a/libexec/ld.so/sparc64/Makefile.inc
+++ b/libexec/ld.so/sparc64/Makefile.inc
@@ -1,5 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.2 2019/05/10 13:29:21 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2019/10/20 03:44:49 guenther Exp $
CFLAGS += -fpic -msoft-float
AFLAGS += -fpic
LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script
+
+RELATIVE_RELOC=R_SPARC_RELATIVE