From: Ian Lance Taylor Date: Sun, 12 Sep 1999 03:50:42 +0000 (+0000) Subject: 1999-09-11 Donn Terry X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18dc2407f40dc245a5f0165c5ec6f99dfe1d03ba;p=binutils-gdb.git 1999-09-11 Donn Terry * 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". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index c8da33814a6..8e114e1dab2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -5,6 +5,10 @@ 1999-09-11 Donn Terry + * 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. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 7b1ac084365..0a6b1de651e 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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) {