summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/sparc/md.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-24 23:22:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-24 23:22:03 +0000
commit171a683b4e3efc156c28e1be57ec85921249d939 (patch)
tree1d7f444c7d0152e1c01f6f9eb2263f72c564860f /gnu/usr.bin/ld/sparc/md.h
parent8337fe0f9b1f07061deb94b937c2bc9ef840c067 (diff)
This patch lets sparc ld handle pic/PIC relocations mix, by simply forcing
everything to fit into pic mode. More extensive changes (like tagging relocs with pic/PIC, sorting, and putting pic nearest the beginning of the GOT) would be needed for full handling pic relocs with a sizeable number of PIC relocs.
Diffstat (limited to 'gnu/usr.bin/ld/sparc/md.h')
-rw-r--r--gnu/usr.bin/ld/sparc/md.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/sparc/md.h b/gnu/usr.bin/ld/sparc/md.h
index 5753033876a..ee109673d55 100644
--- a/gnu/usr.bin/ld/sparc/md.h
+++ b/gnu/usr.bin/ld/sparc/md.h
@@ -1,4 +1,4 @@
-/* * $OpenBSD: md.h,v 1.4 1999/05/10 16:20:47 espie Exp $*/
+/* * $OpenBSD: md.h,v 1.5 1999/05/24 23:22:02 espie Exp $*/
/*
* Copyright (c) 1993 Paul Kranenburg
* All rights reserved.
@@ -127,6 +127,7 @@
PIC_TYPE_SMALL : \
PIC_TYPE_NONE) )
+#define ALLOW_SPARC_MIX
#define CHECK_GOT_RELOC(r) \
((r)->r_type == RELOC_PC10 || (r)->r_type == RELOC_PC22)