aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 03:50:42 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 03:50:42 +0000
commit18dc2407f40dc245a5f0165c5ec6f99dfe1d03ba (patch)
treebd18e60f4446b494e7288e0357dbeae4093c6a54 /gas/config
parent945a1a6b988199a9ab1037bd8ff3d417334f5ecf (diff)
downloadgdb-18dc2407f40dc245a5f0165c5ec6f99dfe1d03ba.zip
gdb-18dc2407f40dc245a5f0165c5ec6f99dfe1d03ba.tar.gz
gdb-18dc2407f40dc245a5f0165c5ec6f99dfe1d03ba.tar.bz2
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".
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 7b1ac08..0a6b1de 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)
{