diff options
author | Marc Jones <marcj303@gmail.com> | 2010-09-23 15:38:55 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2010-09-23 15:38:55 +0000 |
commit | 5c3126936d0387df5308817f63f25f170e2c5cb0 (patch) | |
tree | 5968d7e8acdd545d27e1cedf0fdb30888407254c /src/arch/i386/Makefile.bigbootblock.inc | |
parent | a34a0b1876948d34c8f7d49f224998a6dfc7755a (diff) |
Generate and extract debug sysmbols for coreboot. *.debug files can be
used for source level debug.
Signed-off-by: Marc Jones <marcj303@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5827 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/Makefile.bigbootblock.inc')
-rw-r--r-- | src/arch/i386/Makefile.bigbootblock.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/i386/Makefile.bigbootblock.inc b/src/arch/i386/Makefile.bigbootblock.inc index 9b0e179e71..939eea63a3 100644 --- a/src/arch/i386/Makefile.bigbootblock.inc +++ b/src/arch/i386/Makefile.bigbootblock.inc @@ -32,4 +32,7 @@ $(obj)/coreboot: $$(initobjs) $(obj)/ldscript.ld @printf " LINK $(subst $(obj)/,,$(@))\n" $(CC) -nostdlib -nostartfiles -static -o $@ -L$(obj) -T $(obj)/ldscript.ld $(initobjs) $(NM) -n $(obj)/coreboot | sort > $(obj)/coreboot.map + $(OBJCOPY) --only-keep-debug $@ $(obj)/bootblock.debug + $(OBJCOPY) --strip-debug $@ + $(OBJCOPY) --add-gnu-debuglink=$(obj)/bootblock.debug $@ |