diff options
Diffstat (limited to 'lang/gcl/files/patch-al')
-rw-r--r-- | lang/gcl/files/patch-al | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/gcl/files/patch-al b/lang/gcl/files/patch-al new file mode 100644 index 000000000000..cdc5ae57c902 --- /dev/null +++ b/lang/gcl/files/patch-al @@ -0,0 +1,32 @@ +--- 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: |