From 1cfb5999928c1a5cf5965b5ea520562fd3f7912a Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 22 Jul 2021 16:57:26 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56524 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), \ -- cgit v1.2.3