nuttx/boards/arm/lpc17xx_40xx
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
..
lincoln60 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lpc4088-devkit sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lpc4088-quickstart sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
lpcxpresso-lpc1768 author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
lx_cpu Make: fix use of gcc as LD for modules and ELF executables builds 2021-07-19 08:41:25 -03:00
mbed author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
mcb1700 author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
olimex-lpc1766stk sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
open1788 sched/task: delete CONFIG_MAX_TASKS limit 2021-07-11 19:42:30 -07:00
pnev5180b author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
u-blox-c027 author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00
zkit-arm-1769 author: Zilogic Systems: update licenses to Apache 2021-07-19 03:08:00 -07:00