]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
syslinux: FTBFS with newer ld
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 May 2018 10:01:08 +0000 (11:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Jul 2018 12:43:50 +0000 (13:43 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/syslinux
src/patches/syslinux-6.03-fix-FTBFS-no-dynamic-linker.patch [new file with mode: 0644]

index 6b66e69466de13ab399327e62ed8b2c67e728d48..1736d3c685d87103212c1461b1b16202d79ba31b 100644 (file)
@@ -74,6 +74,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-6.03-fix-FTBFS-no-dynamic-linker.patch
 
        # Build
        cd $(DIR_APP) && make bios $(MAKETUNING)
diff --git a/src/patches/syslinux-6.03-fix-FTBFS-no-dynamic-linker.patch b/src/patches/syslinux-6.03-fix-FTBFS-no-dynamic-linker.patch
new file mode 100644 (file)
index 0000000..091189d
--- /dev/null
@@ -0,0 +1,14 @@
+Fix for https://bugs.debian.org/846679 : syslinux: FTBFS: ld:
+ldlinux.elf: Not enough room for program headers, try linking with -N
+
+--- a/core/Makefile    2017-01-28 18:33:22.750959519 +0000
++++ b/core/Makefile    2017-01-28 18:27:47.387981830 +0000
+@@ -165,7 +165,7 @@
+ %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS)
+       $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \
+-              --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \
++              --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group --no-dynamic-linker \
+               > $(@:.elf=.map)
+       $(OBJDUMP) -h $@ > $(@:.elf=.sec)
+       $(PERL) $(SRC)/lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst)