diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2020-04-27 21:08:09 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-06-11 12:52:55 +1000 |
commit | 65789e2a006a9764be9e7c313da666fa6d4dcbae (patch) | |
tree | eff97f1d5e168c4cea1cb335984d3dfd02bce91a | |
parent | 8c49753c04ae39cbd9b238484ccb8de88a4355df (diff) | |
download | skiboot-65789e2a006a9764be9e7c313da666fa6d4dcbae.zip skiboot-65789e2a006a9764be9e7c313da666fa6d4dcbae.tar.gz skiboot-65789e2a006a9764be9e7c313da666fa6d4dcbae.tar.bz2 |
build: -fverbose-asm for .s targets
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
-rw-r--r-- | Makefile.rules | 4 | ||||
-rw-r--r-- | asm/asm-offsets.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 8c41c26..dcebde6 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -64,6 +64,10 @@ endif $(call Q,CC, $(CC) $(call cook_cflags,$@) -x c -c $< -o $@, $@) %.s : %.c + $(call Q,CC, $(CC) $(call cook_cflags,$@) -fverbose-asm -S -c $< -o $@, $@) + +# no -fverbose-asm for asm-offsets.s +asm/asm-offsets.s: asm/asm-offsets.c $(call Q,CC, $(CC) $(call cook_cflags,$@) -S -c $< -o $@, $@) %.i : %.c diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c index 7be0a11..532437c 100644 --- a/asm/asm-offsets.c +++ b/asm/asm-offsets.c @@ -11,7 +11,7 @@ #include <stack.h> #define DEFINE(sym, val) \ - asm volatile("\n#define " #sym " %0 /* " #val " */" : : "i" (val)) + asm volatile("\n#define " #sym " %0 /* " #val " */\n" : : "i" (val)) #define OFFSET(sym, str, mem) \ DEFINE(sym, offsetof(struct str, mem)) |