aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-11-11 16:28:20 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-11-11 16:28:20 -0800
commitcbc7af0a4246fd5caad90ed3a6812a8f227e87c5 (patch)
tree5cfad696147cefcd2f8069ece1de04113c2f8d1d /dos
parente5a014f403aabb9400f309a0bef08288d6421107 (diff)
downloadsyslinux-devel-cbc7af0a4246fd5caad90ed3a6812a8f227e87c5.tar.gz
syslinux-devel-cbc7af0a4246fd5caad90ed3a6812a8f227e87c5.tar.xz
syslinux-devel-cbc7af0a4246fd5caad90ed3a6812a8f227e87c5.zip
dos: drop unneeded .eh_frame section
gcc will produce an .eh_frame section, which we have no use for. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dos')
-rw-r--r--dos/Makefile2
-rw-r--r--dos/com16.ld5
2 files changed, 5 insertions, 2 deletions
diff --git a/dos/Makefile b/dos/Makefile
index 56d2e076..2f1b7981 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -49,7 +49,7 @@ spotless: clean
installer:
-syslinux.elf: $(OBJS) libcom.a
+syslinux.elf: $(OBJS) libcom.a com16.ld
$(LD) $(LDFLAGS) -o $@ $^
libcom.a: $(LIBOBJS)
diff --git a/dos/com16.ld b/dos/com16.ld
index 08a1e95e..5f82b73a 100644
--- a/dos/com16.ld
+++ b/dos/com16.ld
@@ -123,5 +123,8 @@ SECTIONS
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
- /DISCARD/ : { *(.note.GNU-stack) }
+ /DISCARD/ : {
+ *(.note.GNU-stack)
+ *(.eh_frame)
+ }
}