From 4f465486c37681b3e90108a28307cb7e145a8987 Mon Sep 17 00:00:00 2001 Message-Id: <4f465486c37681b3e90108a28307cb7e145a8987.1716396490.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] base/asm-common.h: Use `GOTREG' rather than the raw register name. Organization: Straylight/Edgeware From: Mark Wooding 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- [mdw]