aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-03-01 21:06:02 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-03-01 21:06:02 -0800
commitbd91041bff259cf4303fa6bbb0b6bce33fa7c1e8 (patch)
treeb78db91b7cbc8a74891357e771953ae913a5a998 /core
parent2da4a8b20c3b99106d9edeaf38a3d656f653ff8c (diff)
downloadsyslinux-bd91041bff259cf4303fa6bbb0b6bce33fa7c1e8.tar.gz
syslinux-bd91041bff259cf4303fa6bbb0b6bce33fa7c1e8.tar.xz
syslinux-bd91041bff259cf4303fa6bbb0b6bce33fa7c1e8.zip
Makefile: error out if the core has undefined symbolssyslinux-6.04-pre1
--unresolved-symbols=report-all apparently doesn't report the case where a symbol is requested but never referenced. Error out if necessary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index b87007f3..46cb037c 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -162,6 +162,8 @@ NASM_ELF = elf
-E --hash-style=gnu -M -o $@ $< \
--start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \
> $(@:.elf=.map)
+ if [ `$(NM) -D -u $@ | wc -l` -ne 0 ]; then \
+ $(NM) -D -u $@ 1>&2; rm -f $@; false; fi
$(OBJDUMP) -h $@ > $(@:.elf=.sec)
$(PERL) $(SRC)/lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst)