| Summary: | zlib: fails to build with Linaro toolchain, BR2_RELRO_FULL=y and BR2_FORTIFY_SOURCE_2=y | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Jan Kundrát <jan.kundrat> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | 1989wanghang, buildroot |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Jan Kundrát
2018-08-07 17:31:18 UTC
Changing from BR2_RELRO_FULL=y to BR2_RELRO_PARTIAL=y makes it build again. Fixed by http://patchwork.ozlabs.org/project/buildroot/list/?series=54943 and http://patchwork.ozlabs.org/patch/944700/ Sorry should have said "should be fixed by". I did not test your config with those patches applied, however I had the same failure without them in one of my builds. *** Bug 11351 has been marked as a duplicate of this bug. *** I've taken your config and cleaned it up a bit per below to do testing. BR2_arm=y BR2_cortex_a9=y BR2_ARM_ENABLE_NEON=y BR2_ARM_ENABLE_VFP=y BR2_ARM_FPU_NEON=y BR2_ENABLE_DEBUG=y BR2_SSP_STRONG=y BR2_RELRO_FULL=y BR2_FORTIFY_SOURCE_2=y BR2_TOOLCHAIN_EXTERNAL=y BR2_PACKAGE_HOST_GDB=y BR2_GDB_VERSION_8_1=y BR2_TARGET_GENERIC_HOSTNAME="czechlight" BR2_TARGET_GENERIC_PASSWD_SHA256=y BR2_INIT_SYSTEMD=y BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set BR2_PACKAGE_GDB=y BR2_PACKAGE_GDB_DEBUGGER=y BR2_PACKAGE_PV=y BR2_PACKAGE_STRACE=y BR2_PACKAGE_E2FSPROGS=y BR2_PACKAGE_MMC_UTILS=y BR2_PACKAGE_SQUASHFS=y BR2_PACKAGE_I2C_TOOLS=y BR2_PACKAGE_PICOCOM=y BR2_PACKAGE_SPI_TOOLS=y BR2_PACKAGE_UBOOT_TOOLS=y BR2_PACKAGE_ETHTOOL=y BR2_PACKAGE_IPROUTE2=y BR2_PACKAGE_OPENSSH=y BR2_PACKAGE_BASH=y BR2_PACKAGE_INOTIFY_TOOLS=y BR2_PACKAGE_DDRESCUE=y BR2_PACKAGE_RAUC=y BR2_PACKAGE_RAUC_NETWORK=y # BR2_PACKAGE_SYSTEMD_HWDB is not set BR2_PACKAGE_VIM=y # BR2_PACKAGE_VIM_RUNTIME is not set Test build used master 14f5cb7 and http://patchwork.ozlabs.org/project/buildroot/list/?series=65762 I did not observe the build failure. I believe this has been fixed by the changes to the toolchain wrapper to make it handle the hardening options: 394bdd11fc1f741c88c89f0e71571d87a29ab627 BR2_FORTIFY*: toolchain wrapper limitation note f10822d151085bcbfecd0ecf2542ac5f5623fd9d toolchain/toolchain-wrapper: add BR2_SSP_* support 7484c1c3b8065d6f2f5a67607e9917ecfea022eb toolchain/toolchain-wrapper: add BR2_RELRO_ |