From 6c54cbd34173e835f82887f61d606c2a63356972 Mon Sep 17 00:00:00 2001 Message-Id: <6c54cbd34173e835f82887f61d606c2a63356972.1716378184.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] base/asm-common.h: Factor out `deposit fake literal pool' macro. Organization: Straylight/Edgeware From: Mark Wooding This might be useful for debugging purposes. --- base/asm-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/asm-common.h b/base/asm-common.h index bf42e4fe..8ab0bc0a 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -33,6 +33,7 @@ // Literal pools done the hard way. #define _LIT .text .L$_subsec + 1 #define _ENDLIT .text .L$_subsec +#define _LTORG .L$_subsec = .L$_subsec + 2; .text .L$_subsec // Announcing an external function. #define FUNC(name) \ @@ -48,8 +49,7 @@ F(name): \ .purgem ENDFUNC; \ SIZE_OBJ(name); \ ENDFUNC_HOOK(name); \ - .L$_subsec = .L$_subsec + 2; \ - .text .L$_subsec + _LTORG ///-------------------------------------------------------------------------- /// ELF-specific hacking. -- [mdw]