diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-03-01 21:06:02 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-03-01 21:06:02 -0800 |
commit | bd91041bff259cf4303fa6bbb0b6bce33fa7c1e8 (patch) | |
tree | b78db91b7cbc8a74891357e771953ae913a5a998 /core/Makefile | |
parent | 2da4a8b20c3b99106d9edeaf38a3d656f653ff8c (diff) | |
download | syslinux-bd91041bff259cf4303fa6bbb0b6bce33fa7c1e8.tar.gz |
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/Makefile')
-rw-r--r-- | core/Makefile | 2 |
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) |