* config/tc-sparc.h (tc_fix_adjustable): Don't adjust GOT, PLT, or
authorIan Lance Taylor <ian@airs.com>
Tue, 27 Jul 1999 19:26:39 +0000 (19:26 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 27 Jul 1999 19:26:39 +0000 (19:26 +0000)
VTABLE relocations.

gas/ChangeLog
gas/config/tc-sparc.h

index 4f508efaffac8f76b9ac84648bbed3a0f786b297..d9a2e84d4aee2b69ac552a93648b7220ea10e5a8 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-27  Ian Lance Taylor  <ian@zembu.com>
+
+       * config/tc-sparc.h (tc_fix_adjustable): Don't adjust GOT, PLT, or
+       VTABLE relocations.
+
 1999-07-21  Mark Elbrecht  <snowball3@bigfoot.com>
 
        * config/te-go32.h (COFF_LONG_SECTION_NAMES): Define.
index 40ab02c8bd9fa8a9af64ab8b4911e8d9222e67c0..5df81b743310ea990e4edfd8a1dadf9648335e93 100644 (file)
@@ -127,6 +127,12 @@ extern int elf32_sparc_force_relocation PARAMS ((struct fix *));
 #define tc_fix_adjustable(FIX)                                         \
   (! S_IS_EXTERNAL ((FIX)->fx_addsy)                                   \
    && ! S_IS_WEAK ((FIX)->fx_addsy)                                    \
+   && (FIX)->fx_r_type != BFD_RELOC_SPARC_GOT10                                \
+   && (FIX)->fx_r_type != BFD_RELOC_SPARC_GOT13                                \
+   && (FIX)->fx_r_type != BFD_RELOC_SPARC_GOT22                                \
+   && (FIX)->fx_r_type != BFD_RELOC_SPARC_WPLT30                       \
+   && (FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT                     \
+   && (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY                       \
    && (! sparc_pic_code                                                        \
        || (FIX)->fx_pcrel                                              \
        || ((FIX)->fx_subsy != NULL                                     \