~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9ac7e
)
base/asm-common.h: Use `GOTREG' rather than the raw register name.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000
(09:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 24 Jun 2016 00:17:19 +0000
(
01:17
+0100)
Note that this doesn't mean that one can redefine `GOTREG' and have the
macros use a different register by default; the relative expansion
orders of the two macro systems don't work like that.
base/asm-common.h
patch
|
blob
|
blame
|
history
diff --git
a/base/asm-common.h
b/base/asm-common.h
index
0af9cb5
..
4d0d9a6
100644
(file)
--- a/
base/asm-common.h
+++ b/
base/asm-common.h
@@
-173,7
+173,7
@@
_where_am_i.\got :
#define GOTREG r9
// Maybe load GOT address into GOT.
- .macro ldgot got=
r9
+ .macro ldgot got=
GOTREG
#if WANT_PIC
ldr \got, =_GLOBAL_OFFSET_TABLE_ - . - 12
add \got, pc, \got