crosstool-ng/scripts
Dima Krasner de0d1dbe02 Resepct CT_TARGET_{C,LD}FLAGS when building musl
I was trying to build static binaries for a range of Broadcom soft-float ARMv7
SoCs and kept getting SIGILL, although I was targeting Cortex A7 (and A5,
later), even on A9 and A15.

I found out that once I add -msoft-float, +mp+sec is to blame:

   Attribute Section: aeabi
   File Attributes
  -  Tag_CPU_name: "7VE"
  +  Tag_CPU_name: "7"
     Tag_CPU_arch: v7
  -  Tag_CPU_arch_profile: Application
  -  Tag_ARM_ISA_use: Yes
     Tag_THUMB_ISA_use: Thumb-2
     Tag_ABI_PCS_wchar_t: 4
     Tag_ABI_FP_rounding: Needed
  @@ -12,8 +10,5 @@ File Attributes
     Tag_ABI_FP_number_model: IEEE 754
     Tag_ABI_align_needed: 8-byte
     Tag_ABI_enum_size: int
     Tag_ABI_optimization_goals: Aggressive Size
     Tag_CPU_unaligned_access: v6
  -  Tag_MPextension_use: Allowed
  -  Tag_DIV_use: Allowed in v7-A with integer division extension
  -  Tag_Virtualization_use: TrustZone and Virtualization Extensions

(This is the readelf -A diff, before and after armv7-a+nofp -> armv7+nofp).

I kept getting SIGILL even after building my application with a toolchain built
with the correct CFLAGS and found out that crosstool-ng doesn't pass the host
CFLAGS when building musl, which pollutes my binary with these ARMv7 extensions.

Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-12-04 16:55:20 +02:00
..
build Resepct CT_TARGET_{C,LD}FLAGS when building musl 2019-12-04 16:55:20 +02:00
override Add checking for *sum and unzip 2018-04-29 12:06:54 -07:00
upgrade Move GDB build into a common backend function 2019-03-09 18:01:30 -08:00
compile WIP: autotoolization 2018-04-07 12:03:17 -07:00
config.guess Update config.{sub,guess} 2019-02-13 15:56:34 -08:00
config.rpath Use autoconfig-archve/automake tests 2018-04-07 12:02:33 -07:00
config.sub Update config.{sub,guess} 2019-02-13 15:56:34 -08:00
crosstool-NG.sh Rename JOBSFLAGS -> CT_JOBSFLAGS 2019-04-04 18:57:42 -07:00
depcomp WIP: autotoolization 2018-04-07 12:03:17 -07:00
functions Add Linux versions 2019-10-01 21:22:44 -07:00
install-sh WIP: autotoolization 2018-04-07 12:03:17 -07:00
ltmain.sh WIP: autotoolization 2018-04-07 12:03:17 -07:00
missing WIP: autotoolization 2018-04-07 12:03:17 -07:00
populate.in Revert "Determine whether -E/-r option selects extended regexp" 2017-02-26 19:06:35 -08:00
saveSample.sh Support out-of-tree local builds 2018-04-07 14:39:56 -07:00
scripts.mk Fix installation of the license file 2018-11-12 01:19:04 -08:00
show-config.sh Use enhanced framework for 'ct-ng update-samples' 2019-02-09 15:55:16 -08:00
show-tuple.sh Support out-of-tree local builds 2018-04-07 14:39:56 -07:00
toolchain-config.in scripts: simplify and fix the toolchain config script 2011-08-19 00:52:05 +02:00
version-check.sh Use enhanced framework for 'ct-ng update-samples' 2019-02-09 15:55:16 -08:00
xldd.in Doc renames & issue template 2017-04-13 00:07:29 -07:00