package/sysvinit: add patch to fix compile without stack-protector support
authorPeter Seiderer <ps.report@gmx.net>
Wed, 10 Mar 2021 22:08:12 +0000 (23:08 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Mar 2021 21:39:12 +0000 (22:39 +0100)
commit50cbac5099b1767c8f69509a900dae2b58ca66ff
treea17c65d6322fd3f7a47548386789c627883baf55
parent5dfe4975b6f10b146d010c6013b9b0cda486eed7
package/sysvinit: add patch to fix compile without stack-protector support

In Buildroot, the SSP flags are passed via the wrapper, and only flags
supported by the toolchain will be used.

Add patch to remove '-fstack-protector-strong' compile flag.

Fixes:
  .../aarch64-buildroot-linux-uclibc/bin/ld: runlevel.o: in function `main':
  runlevel.c:(.text.startup+0x4): undefined reference to `__stack_chk_guard'
  .../aarch64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
  .../aarch64-buildroot-linux-uclibc/bin/ld: cannot find -lssp

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sysvinit/0001-Makefile-disable-stack-protector-strong.patch [new file with mode: 0644]