1999-09-11 Donn Terry <donn@interix.com>
authorIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 03:50:42 +0000 (03:50 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 03:50:42 +0000 (03:50 +0000)
* config/tc-i386.c (md_undefined_symbol): Compare the name against
the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it
starts with "_G".

gas/ChangeLog
gas/config/tc-i386.c

index c8da33814a6855891427408ed5642f32e10e30c3..8e114e1dab2cd78841a8594e0a19ce63153be5fb 100644 (file)
@@ -5,6 +5,10 @@
 
 1999-09-11  Donn Terry  <donn@interix.com>
 
+       * config/tc-i386.c (md_undefined_symbol): Compare the name against
+       the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it
+       starts with "_G".
+
        * write.c (write_relocs): Call SET_SECTION_RELOCS if it is
        defined.
        * config/obj-coff.h (SET_SECTION_RELOCS): Define.
index 7b1ac0843656147022774c03274c95b53dc811ec..0a6b1de651e51d53545c38d122e30aab892a85d7 100644 (file)
@@ -4213,8 +4213,10 @@ symbolS *
 md_undefined_symbol (name)
      char *name;
 {
-  if (*name == '_' && *(name+1) == 'G'
-      && strcmp(name, GLOBAL_OFFSET_TABLE_NAME) == 0)
+  if (name[0] == GLOBAL_OFFSET_TABLE_NAME[0]
+      && name[1] == GLOBAL_OFFSET_TABLE_NAME[1]
+      && name[2] == GLOBAL_OFFSET_TABLE_NAME[2]
+      && strcmp (name, GLOBAL_OFFSET_TABLE_NAME) == 0)
     {
       if (!GOT_symbol)
        {