forked from wangliu-iscas/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86: don't recognize quoted symbol names as registers or operators
The concept of quoted symbols names was introduced pretty late. Utilize it to allow access to symbols with names matching that of a register (or, in Intel syntax, also an identifier-like operator). This is primarily to aid gcc when generating Intel syntax output; see their bug target/53929.
- Loading branch information
1 parent
324998b
commit f2352e2
Showing
7 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#objdump: -r | ||
#name: i386 quoted symbols (data) | ||
# Mach-O relocations appear in inverse order | ||
#notarget: *-*-darwin | ||
|
||
.*: +file format .* | ||
|
||
RELOCATION RECORDS FOR \[\.data\]: | ||
OFFSET +TYPE +VALUE | ||
0+00 (R_386_|dir)?32 +%ebx | ||
0+04 (R_386_|dir)?32 +%rdx | ||
0+08 (R_386_|dir)?32 +eax | ||
0+0c (R_386_|dir)?32 +cr0 | ||
0+10 (R_386_|dir)?32 +k0 | ||
#pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.data | ||
quoted: | ||
.long "%ebx" | ||
.long "%rdx" | ||
|
||
.intel_syntax noprefix | ||
.long "eax" | ||
.long "cr0" | ||
.long "k0" |