aboutsummaryrefslogtreecommitdiffstats
path: root/core/Makefile
diff options
context:
space:
mode:
authorfeng.tang@intel.com <feng.tang@intel.com>2010-06-16 21:36:53 +0800
committerFeng Tang <feng.tang@intel.com>2010-07-20 11:10:03 +0800
commit0a4cb67a253b745eebf8df0833efab08932a2a8d (patch)
treeb8c95dabca568cdc54797f17de690f47ec759f3c /core/Makefile
parentcc4e4dffafddf46546cf3667ca62b2fed303f3d9 (diff)
downloadsyslinux-0a4cb67a253b745eebf8df0833efab08932a2a8d.tar.gz
elflink: modify core/Makefile for dynamic linking
Diffstat (limited to 'core/Makefile')
-rw-r--r--core/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile
index 2e5ce7cc..9c78a000 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -42,7 +42,7 @@ NASMSRC := $(wildcard *.asm)
NASMHDR := $(wildcard *.inc)
CSRC := $(wildcard *.c */*.c */*/*.c)
SSRC := $(wildcard *.S */*.S */*/*.S)
-CHDR := $(wildcard *.h)
+CHDR := $(wildcard *.h */*.h */*/*.h)
OTHERSRC := keywords
ALLSRC = $(NASMSRC) $(NASMHDR) $(CSRC) $(SSRC) $(CHDR) $(OTHERSRC)
@@ -89,7 +89,7 @@ kwdhash.gen: keywords genhash.pl
-l $(@:.o=.lsr) -o $@ -MP -MD .$@.d $<
%.elf: %.o $(LIBS) syslinux.ld
- $(LD) $(LDFLAGS) -T syslinux.ld -M -o $@ $< \
+ $(LD) $(LDFLAGS) -Bsymbolic -pie -E --hash-style=gnu -T syslinux.ld -M -o $@ $< \
--start-group $(LIBS) --end-group \
> $(@:.elf=.map)
$(OBJDUMP) -h $@ > $(@:.elf=.sec)