diff options
author | Patrick Georgi <pgeorgi@google.com> | 2021-07-22 16:57:26 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-23 15:06:56 +0000 |
commit | 1cfb5999928c1a5cf5965b5ea520562fd3f7912a (patch) | |
tree | 8aef7c801144fb228ebfe913982d176d1985df33 | |
parent | eac687cc36823683b80ab21e43038a42bf90921c (diff) |
build system: Deduplicate symbols in objdump
New binutils versions automatically resolve references to debug symbol
files and parse their content as well when objdump'ing data. This leads
to multiple mentions of symbols, so deduplicate references.
Change-Id: I5d597399c515904313ba36d7aab9178bc0dade14
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56524
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r-- | Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index 95c551e9c4..59aa1ababa 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1247,7 +1247,8 @@ cbfs-get-segments-cmd = $(CBFSTOOL) $(obj)/coreboot.pre print -v | sed -n \ '\%$(1)%,\%^[^ ]\{4\}%s% .*load: \(0x[0-9a-fA-F]*\),.*length: [0-9]*/\([0-9]*\).*%\1 \2%p' ramstage-symbol-addr-cmd = $(OBJDUMP_ramstage) -t $(objcbfs)/ramstage.elf | \ - sed -n '/ $(1)$$/s/^\([0-9a-fA-F]*\) .*/0x\1/p' + sed -n '/ $(1)$$/s/^\([0-9a-fA-F]*\) .*/0x\1/p' | \ + uniq $(call add_intermediate, check-ramstage-overlaps) programs=$$($(foreach file,$(check-ramstage-overlap-files), \ |