mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-11 11:23:35 +08:00
gas: correct symbol name comparison in .startof./.sizeof. handling
In 162c6aef1f
("gas: fold symbol table entries generated for
.startof.() / .sizeof.()") I screwed up quite badly, inverting the case
sensitive and case insensitive comparison functions.
This commit is contained in:
parent
676dcbb0a0
commit
12ef683055
@ -149,8 +149,8 @@ symbol_lookup_or_make (const char *name, bool start)
|
||||
|
||||
name = S_GET_NAME (symbolP);
|
||||
if ((symbols_case_sensitive
|
||||
? strcasecmp (buf, name)
|
||||
: strcmp (buf, name)) == 0)
|
||||
? strcmp (buf, name)
|
||||
: strcasecmp (buf, name)) == 0)
|
||||
{
|
||||
free (buf);
|
||||
return symbolP;
|
||||
|
@ -7,4 +7,6 @@ Symbol table .*
|
||||
#...
|
||||
[1-8]: 0+ .* UND \.startof\.\.text
|
||||
[2-9]: 0+ .* UND \.sizeof\.\.text
|
||||
+[1-9][0-9]*: 0+ .* UND \.startof\.\.Text
|
||||
+[1-9][0-9]*: 0+ .* UND \.sizeof\.\.TEXT
|
||||
#pass
|
||||
|
@ -4,3 +4,6 @@
|
||||
.dc.a 0
|
||||
.dc.a .sizeof.(.text)
|
||||
.dc.a .startof.(.text)
|
||||
.dc.a 0
|
||||
.dc.a .startof.(.Text)
|
||||
.dc.a .sizeof.(.TEXT)
|
||||
|
Loading…
Reference in New Issue
Block a user