* 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".
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.
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)
{