[ARC] Don't convert _DYNAMIC@ to _GLOBAL_OFFSET_TABLE_
authorVineet Gupta <vgupta@synopsys.com>
Mon, 30 May 2016 09:49:22 +0000 (15:19 +0530)
committerCupertino Miranda <cmiranda@synopsys.com>
Thu, 8 Jun 2017 17:00:35 +0000 (19:00 +0200)
Historically the arc abi demanded that a GOT[0] should be referencible as
[pc+_DYNAMIC@gotpc].  Hence we convert a _DYNAMIC@gotpc to a GOTPC reference to
_GLOBAL_OFFSET_TABLE_.

This is no longer the case and uClibc and upcomming GNU libc don't expect this
to happen.

gas/ChangeLog:

    Vineet Gupta  <vgupta@synopsys.com>
    Cupertino Miranda  <cmiranda@synopsys.com>

* config/tc-arc.c (md_undefined_symbol): Changed.
* config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed.

bfd/ChangeLog
gas/config/tc-arc.c
gas/config/tc-arc.h

index a436e2e52122fbc66dbb33e771a112aa19056f14..7fd3322045194fc535af3d6012e6555af7497a80 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-08  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * config/tc-arc.c (md_undefined_symbol): Changed.
+       * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed.
+
 2017-06-08  Cupertino Miranda  <cmiranda@synopsys.com>
 
        * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect
index 55aaf0782afb8e1d13b164de58c67e0f33f5ff23..a56b2a5df1ac760801c0b5c9eb56d7d8746af541 100644 (file)
@@ -3280,10 +3280,7 @@ md_undefined_symbol (char *name)
      GOTPC reference to _GLOBAL_OFFSET_TABLE_.  */
   if (((*name == '_')
        && (*(name+1) == 'G')
-       && (strcmp (name, GLOBAL_OFFSET_TABLE_NAME) == 0))
-      || ((*name == '_')
-         && (*(name+1) == 'D')
-         && (strcmp (name, DYNAMIC_STRUCT_NAME) == 0)))
+       && (strcmp (name, GLOBAL_OFFSET_TABLE_NAME) == 0)))
     {
       if (!GOT_symbol)
        {
index f4cafe9859774d7df145e5129143516b13d3ca83..f887fcc0c5527bfad2320b448b96e474fb6d773e 100644 (file)
@@ -171,7 +171,6 @@ extern long md_pcrel_from_section (struct fix *, segT);
 #define tc_frob_label(S)  arc_frob_label (S)
 
 #define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
-#define DYNAMIC_STRUCT_NAME "_DYNAMIC"
 
 /* We need to take care of not having section relative fixups for the
    fixups with respect to Position Independent Code.  */
This page took 0.028186 seconds and 4 git commands to generate.