0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 61de7762389d460da7ffdd644f50c60175cce23b Mon Sep 17 00:00:00 2001
  2. From: Steve McIntyre <93sam@debian.org>
  3. Date: Wed, 5 Apr 2017 22:09:37 +0200
  4. Subject: [PATCH] Fix 'ldlinux.elf: Not enough room for program headers, try
  5. linking with -N'
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Fix for https://bugs.debian.org/846679: syslinux: FTBFS: ld:
  10. ldlinux.elf: Not enough room for program headers, try linking with -N
  11. https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=846679;filename=syslinux_6.03%2Bdfsg-14.1.debdiff;msg=10
  12. Signed-off-by: Benoît Allard <benoit.allard@greenbone.net>
  13. ---
  14. core/Makefile | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/core/Makefile b/core/Makefile
  17. index ad0acb5..58a3545 100644
  18. --- a/core/Makefile
  19. +++ b/core/Makefile
  20. @@ -165,7 +165,7 @@ LDSCRIPT = $(SRC)/$(ARCH)/syslinux.ld
  21. %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS)
  22. $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \
  23. - --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \
  24. + --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group --no-dynamic-linker \
  25. > $(@:.elf=.map)
  26. $(OBJDUMP) -h $@ > $(@:.elf=.sec)
  27. $(PERL) $(SRC)/lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst)
  28. --
  29. 2.7.4