Skip to content

Commit

Permalink
Makefile: error out if the core has undefined symbols
Browse files Browse the repository at this point in the history
--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>
  • Loading branch information
H. Peter Anvin committed Mar 2, 2016
1 parent 2da4a8b commit bd91041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Makefile
Expand Up @@ -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)

Expand Down

0 comments on commit bd91041

Please sign in to comment.