[PATCH 2/4] purgatory: Generate symbol file
Geoff Levand
geoff at infradead.org
Wed Mar 18 16:04:03 PDT 2015
To aid in debugging purgatory update its makefile to generate a
stand alone symbol file that can me loaded by a debugger.
Signed-off-by: Geoff Levand <geoff at infradead.org>
---
purgatory/Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/purgatory/Makefile b/purgatory/Makefile
index 1c7d2c0..6b17e71 100644
--- a/purgatory/Makefile
+++ b/purgatory/Makefile
@@ -63,10 +63,9 @@ $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
$(PURGATORY): $(PURGATORY_OBJS)
$(MKDIR) -p $(@D)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@.sym $^
# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
- $(STRIP) --strip-debug $@
+ $(STRIP) --strip-debug -o $@ $@.sym
echo::
@echo "PURGATORY_SRCS $(PURGATORY_SRCS)"
--
2.1.0
More information about the kexec
mailing list