summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+ }
}