diff options
author | Tom Rini <trini@konsulko.com> | 2022-11-22 12:31:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-06 15:30:30 -0500 |
commit | 409e4b547872db78dbf50f63cf75d2422d5fbb3d (patch) | |
tree | 4e1b60cb74aa7e99b56cac173ea69a56fde5f43b /Makefile | |
parent | 83e37a834525594e26067021f7df298662906f04 (diff) | |
download | u-boot-409e4b547872db78dbf50f63cf75d2422d5fbb3d.tar.gz u-boot-409e4b547872db78dbf50f63cf75d2422d5fbb3d.tar.bz2 u-boot-409e4b547872db78dbf50f63cf75d2422d5fbb3d.zip |
Makefile: Enforce DWARF4 output
At this point in time, using DWARF-5 format isn't easy to do by default
with all toolchains that we support. And relying on the implicit
default can lead to mixing 4 and 5 and then the debug info not being
useful to tools. For now, enforce using DWARF-4 only.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -761,10 +761,10 @@ KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) # change __FILE__ to the relative path from the srctree KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=) -KBUILD_CFLAGS += -g +KBUILD_CFLAGS += -gdwarf-4 # $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format> # option to the assembler. -KBUILD_AFLAGS += -g +KBUILD_AFLAGS += -gdwarf-4 # Report stack usage if supported # ARC tools based on GCC 7.1 has an issue with stack usage |