openwrt/package/libs
Yousong Zhou cd901ef1a6 libunwind: disable building with ssp
If we enable -fstack-protector while building libunwind, function
__stack_chk_fail_local will be referred to for i386 and powerpc32
arches.  This will cause link failure because the default gcc build
specs says no link_ssp if -nostdlib is given.

The error message:

    OpenWrt-libtool: link: ccache_cc -shared  -fPIC -DPIC  .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o mi/.libs/mempool.o mi/.libs/strerror.o x86/.libs/is_fpreg.o x86/.libs/regname.o x86/.libs/Los-linux.o mi/.libs/backtrace.o mi/.libs/dyn-cancel.o mi/.libs/dyn-info-list.o mi/.libs/dyn-register.o mi/.libs/Ldyn-extract.o mi/.libs/Lfind_dynamic_proc_info.o mi/.libs/Lget_accessors.o mi/.libs/Lget_proc_info_by_ip.o mi/.libs/Lget_proc_name.o mi/.libs/Lput_dynamic_unwind_info.o mi/.libs/Ldestroy_addr_space.o mi/.libs/Lget_reg.o mi/.libs/Lset_reg.o mi/.libs/Lget_fpreg.o mi/.libs/Lset_fpreg.o mi/.libs/Lset_caching_policy.o x86/.libs/Lcreate_addr_space.o x86/.libs/Lget_save_loc.o x86/.libs/Lglobal.o x86/.libs/Linit.o x86/.libs/Linit_local.o x86/.libs/Linit_remote.o x86/.libs/Lget_proc_info.o x86/.libs/Lregs.o x86/.libs/Lresume.o x86/.libs/Lstep.o x86/.libs/getcontext-linux.o  -Wl,--whole-archive ./.libs/libunwind-dwarf-local.a ./.libs/libunwind-elf32.a -Wl,--no-whole-archive  -L/var/lib/bbmnt/buildbot/slaves/dave-builder/i386_i486/build/sdk/staging_dir/target-i386_i486_musl-1.1.16/usr/lib -L/var/lib/bbmnt/buildbot/slaves/dave-builder/i386_i486/build/sdk/staging_dir/target-i386_i486_musl-1.1.16/lib -L/var/lib/bbmnt/buildbot/slaves/dave-builder/i386_i486/build/sdk/staging_dir/toolchain-i386_i486_gcc-5.4.0_musl-1.1.16/usr/lib -L/var/lib/bbmnt/buildbot/slaves/dave-builder/i386_i486/build/sdk/staging_dir/toolchain-i386_i486_gcc-5.4.0_musl-1.1.16/lib -lc -lgcc  -Os -march=i486 -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -nostartfiles -nostdlib   -Wl,-soname -Wl,libunwind.so.8 -o .libs/libunwind.so.8.0.1
    .libs/os-linux.o: In function `_Ux86_get_elf_image':
    os-linux.c:(.text+0x588): undefined reference to `__stack_chk_fail_local'
    x86/.libs/Lregs.o: In function `_ULx86_access_fpreg':
    Lregs.c:(.text+0x25b): undefined reference to `__stack_chk_fail_local'
    x86/.libs/Lresume.o: In function `_ULx86_resume':
    Lresume.c:(.text+0xdc): undefined reference to `__stack_chk_fail_local'
    collect2: error: ld returned 1 exit status
    Makefile:2249: recipe for target 'libunwind.la' failed

The snippet from gcc -dumpspecs

    %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit f0c37f6ceb)
2017-12-13 16:43:37 +01:00
..
argp-standalone
cyassl cyassl: update to wolfssl 3.12.2 (1 CVE) 2017-12-13 13:08:38 +01:00
elfutils elfutils: Pass -Wno-unused-result to silence warnings as errors 2017-12-13 15:43:49 +01:00
gettext package: replace $(STAGING_DIR)/host with $(STAGING_DIR_HOSTPKG) 2017-01-10 22:15:37 +01:00
gettext-full gettext-full: avoid using iconv for host builds 2017-01-11 03:48:30 +01:00
gmp gmp: Update to 6.1.2 2017-01-03 14:24:33 +01:00
libbsd
libconfig
libevent2
libiconv package: replace $(STAGING_DIR)/host with $(STAGING_DIR_HOSTPKG) 2017-01-10 22:15:37 +01:00
libiconv-full
libjson-c
libmnl
libnetfilter-conntrack
libnetfilter-cthelper
libnetfilter-cttimeout
libnetfilter-log
libnetfilter-queue treewide: clean up and unify PKG_VERSION for git based downloads 2016-12-22 16:42:21 +01:00
libnfnetlink
libnftnl treewide: clean up and unify PKG_VERSION for git based downloads 2016-12-22 16:42:21 +01:00
libnl libnl: Fix building with uClibc 2017-12-13 14:45:00 +01:00
libnl-tiny libnl-tiny: define _GNU_SOURCE if not defined 2016-12-20 09:35:36 +01:00
libpcap libpcap: add optional netfilter support 2017-03-01 20:37:37 +01:00
libreadline
libroxml
librpc treewide: clean up and unify PKG_VERSION for git based downloads 2016-12-22 16:42:21 +01:00
libtool libtool: don't clobber host libtool infrastructure 2017-02-01 16:05:52 +01:00
libubox libubox: fix host build on macOS 2017-04-08 14:49:05 +02:00
libunwind libunwind: disable building with ssp 2017-12-13 16:43:37 +01:00
libusb libusb: Update to 1.0.21 2017-01-03 14:24:33 +01:00
libusb-compat
lzo lzo: use default Build/Configure rule 2017-12-13 16:23:38 +01:00
mbedtls mbedtls: update to 2.6.0 CVE-2017-14032 2017-09-30 15:24:52 +02:00
ncurses ncurses: revert $(STAGING_DIR_HOSTPKG) to $(STAGING_DIR)/host where appropriate 2017-01-14 18:58:44 +01:00
nettle
openssl openssl: update to 1.0.2n 2017-12-13 13:17:12 +01:00
popt
sysfsutils
toolchain toolchain: add musl libc.so to external toolchain 2017-12-13 14:44:24 +01:00
uclibc++ uclibc++: patch bugfix erase() on derived __base_associative 2017-03-01 20:37:36 +01:00
uclient uclient: update to the latest version, fixes fetch of multiple files 2017-11-03 10:56:47 +01:00
ustream-ssl ustream-ssl: remove legacy polarssl support 2017-01-09 14:35:09 +01:00
zlib zlib: use default Build/Configure rule 2017-12-13 16:23:39 +01:00