comment additions
authorIan Lance Taylor <ian@airs.com>
Sun, 8 Aug 1999 16:04:36 +0000 (16:04 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 8 Aug 1999 16:04:36 +0000 (16:04 +0000)
gas/config/tc-sparc.c
gas/config/tc-sparc.h

index 40bbc4927ec94e7a1b30b9462fa868c7c2423e90..a7bcae6d2981e70c456d6e71d6be8828cb38bf30 100644 (file)
@@ -3144,6 +3144,8 @@ tc_gen_reloc (section, fixp)
 #define GOT_NAME "__GLOBAL_OFFSET_TABLE_"
 #endif
 
+  /* This code must be parallel to the OBJ_ELF tc_fix_adjustable.  */
+
   if (sparc_pic_code)
     {
       switch (code)
index 2435d723d65e9483895446f58cb945f235118b1a..91fda224b4075bde1d9409102c57406d0c73ac0c 100644 (file)
@@ -123,7 +123,9 @@ extern int elf32_sparc_force_relocation PARAMS ((struct fix *));
 /* Keep relocations against global symbols.  Don't turn them into
    relocations against sections.  This is required for the dynamic
    linker to operate properly.  When generating PIC, we need to keep
-   any non PC relative reloc.  */
+   any non PC relative reloc.  The PIC part of this test must be
+   parallel to the code in tc_gen_reloc which converts relocations to
+   GOT relocations.  */
 #define tc_fix_adjustable(FIX)                                         \
   (! S_IS_EXTERNAL ((FIX)->fx_addsy)                                   \
    && ! S_IS_WEAK ((FIX)->fx_addsy)                                    \
This page took 0.03128 seconds and 4 git commands to generate.