Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/gnu/dist/toolchain/gas/config Pull up revision 1.19 (re...



details:   https://anonhg.NetBSD.org/src/rev/5ab831344092
branches:  netbsd-1-6
changeset: 529733:5ab831344092
user:      he <he%NetBSD.org@localhost>
date:      Wed Dec 11 17:43:19 2002 +0000

description:
Pull up revision 1.19 (requested by thorpej in ticket #967):
  Bring in change from binutils-current:
  Only try to convert undefined references to GOT32/PLT32 if
  PIC code is requested.

diffstat:

 gnu/dist/toolchain/gas/config/tc-vax.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 878b9d16d645 -r 5ab831344092 gnu/dist/toolchain/gas/config/tc-vax.c
--- a/gnu/dist/toolchain/gas/config/tc-vax.c    Wed Dec 11 17:41:26 2002 +0000
+++ b/gnu/dist/toolchain/gas/config/tc-vax.c    Wed Dec 11 17:43:19 2002 +0000
@@ -1255,12 +1255,10 @@
          old_fr_fix = fragP->fr_fix;
          p = fragP->fr_literal + old_fr_fix;
 #ifndef OBJ_VMS
-         /*
-          * If this is to undefined symbol, then if it's an indirect
-          * reference indicate that is can mutated into a GLOB_DAT
-          * by the loader.  We restrict ourselves to no offset due to
-          * a limitation in the NetBSD linker.
-          */
+         /* If this is to an undefined symbol, then if it's an indirect
+            reference indicate that is can mutated into a GLOB_DAT or
+            JUMP_SLOT by the loader.  We restrict ourselves to no offset
+            due to a limitation in the NetBSD linker.  */
 #ifdef OBJ_AOUT
          if ((p[0] & 0x10) == 0 && !fragP->fr_offset && !flag_want_pic)
            {
@@ -1274,6 +1272,7 @@
          if ((GOT_symbol == NULL || fragP->fr_symbol != GOT_symbol)
              && (PLT_symbol == NULL || fragP->fr_symbol != PLT_symbol)
              && fragP->fr_symbol != NULL
+             && flag_want_pic
              && (!S_IS_DEFINED (fragP->fr_symbol)
 #ifdef OBJ_ELF
                  || S_IS_WEAK (fragP->fr_symbol)



Home | Main Index | Thread Index | Old Index