mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
33 lines
874 B
Plaintext
33 lines
874 B
Plaintext
--- o/sfaslelf.c.orig Thu Nov 25 01:28:03 1999
|
|
+++ o/sfaslelf.c Thu Nov 25 01:31:36 1999
|
|
@@ -15,7 +15,7 @@
|
|
|
|
*/
|
|
|
|
-#ifndef __linux__
|
|
+#if !(defined(__linux__) || defined(__FreeBSD__))
|
|
#define ELF_TARGET_SPARC 1
|
|
#endif
|
|
|
|
@@ -373,7 +373,7 @@
|
|
*(unsigned int *)where += ((val & mask) | ((*(unsigned int *)where) & ~mask))
|
|
|
|
switch(ELF32_R_TYPE(reloc_info->r_info)){
|
|
-#if (defined(__svr4__) || defined(__linux__)) && defined(__i386__)
|
|
+#if (defined(__svr4__) || defined(__linux__) || defined(__FreeBSD__)) && defined(__i386__)
|
|
case R_386_NONE:
|
|
FEerror("Unsupported ELF type R_386_NONE");
|
|
break;
|
|
@@ -420,9 +420,11 @@
|
|
FEerror("Unsupported ELF type R_386_GOTPC");
|
|
break;
|
|
|
|
+#ifdef R_386_NUM
|
|
case R_386_NUM:
|
|
FEerror("Unsupported ELF type R_386_NUM");
|
|
break;
|
|
+#endif
|
|
|
|
#else
|
|
case R_SPARC_WDISP30:
|