From: Mark Wooding Date: Thu, 26 May 2016 08:26:09 +0000 (+0100) Subject: base/asm-common.h: Use `GOTREG' rather than the raw register name. X-Git-Tag: 2.2.4~28 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/4f465486c37681b3e90108a28307cb7e145a8987 base/asm-common.h: Use `GOTREG' rather than the raw register name. 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. --- diff --git a/base/asm-common.h b/base/asm-common.h index 0af9cb58..4d0d9a60 100644 --- 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