aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-15 10:24:14 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-07-15 10:24:14 -0400
commitf3947cd1ce98f28a718306f5d6009273d43461c5 (patch)
treebd609b195be0d4c3a1855e1e71bc599f272eea64
parenta593ba6eba17c14e905b5c95f6e28387c9a64a0c (diff)
downloadbak.git-f3947cd1ce98f28a718306f5d6009273d43461c5.tar.gz
bak.git-f3947cd1ce98f28a718306f5d6009273d43461c5.tar.xz
bak.git-f3947cd1ce98f28a718306f5d6009273d43461c5.zip
core: add the -E option to the ld command line
We need to add the -E (--export-dynamic) options to the ld command line, otherwise we don't necessarily export global symbols to modules. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index 9ae3ead8..5fd019b1 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -87,7 +87,7 @@ kwdhash.gen: keywords genhash.pl
-l $(@:.o=.lsr) -o $@ -MP -MD .$@.d $<
%.elf: %.o $(LIBS) syslinux.ld
- $(LD) $(LDFLAGS) -Bsymbolic -pie --hash-style=gnu \
+ $(LD) $(LDFLAGS) -Bsymbolic -pie -E --hash-style=gnu \
-T syslinux.ld -M -o $@ $< $(LIBS) \
> $(@:.elf=.map)
$(OBJDUMP) -h $@ > $(@:.elf=.sec)