nuttx/boards/arm
Pavel Pisa 6c2c70c61e Make: fix use of gcc as LD for modules and ELF executables builds
The patch

  Make: use gcc as LD

introduced use of GCC wrapper as linker. LD variable references GCC
executable now. But when GCC wrapper s used to build relocatable
loadable objects (ELF executables and modules) then it causes
linking of toolchain default libc and other libraries even when -r
is usd. Another problem is that incorrect multiarch variant is selected
for libraries search and possibly even for LTO or C++ templates
instantiating and other glue code which causes fails during linking
if CFLAGS selects non/default miltiarch variant.

Corresponding CFLAGS are passed to LDMODULEFLAGS and LDELFFLAGS
as well as -nostartfiles -nodefaultlibs options.

Separate line is used to easily find and adjust lines if link
process is changed in future.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-07-19 08:41:25 -03:00
..
a1x/pcduino-a10 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
am335x/beaglebone-black sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
c5471/c5471evm sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
cxd56xx Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
dm320/ntosd-dm320 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
efm32 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
eoss3/quickfeather Make: use gcc as LD 2021-06-10 03:43:18 -07:00
imx6/sabre-6quad Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
imxrt boards/arm/imxrt/teensy-4.x: update pikron-bb configuration to use tickless mode 2021-07-13 09:55:29 -03:00
kinetis sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
kl sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lc823450/lc823450-xgevk Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
lpc17xx_40xx Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
lpc31xx ea3131/pgnsh: Fix the follow linker error 2021-07-11 19:42:30 -07:00
lpc43xx author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
lpc54xx/lpcxpresso-lpc54628 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lpc214x sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lpc2378/olimex-lpc2378 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
max326xx/max32660-evsys sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
moxart/moxa sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
nrf52 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
nuc1xx/nutiny-nuc120 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
rp2040 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
s32k1xx sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
sam34 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
sama5 Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
samd2l2 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
samd5e5 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
samv7 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
stm32 Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
stm32f0l0g0 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
stm32f7 Restored previous files 2021-07-15 23:19:59 -07:00
stm32h7 Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
stm32l4 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
stm32l5 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
str71x/olimex-strp711 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
tiva Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
tms570 Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
xmc4 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00