[cfe-dev] How to configure clang to use arm-none-eabi linker
Jonathan Roelofs via cfe-dev
cfe-dev at lists.llvm.org
Tue Nov 21 09:20:56 PST 2017
On 11/21/17 10:16 AM, Kyriakos Georgiou wrote:
>
> Here it is:
>
>
> clang -v
> -fuse-ld=/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld
> -target arm-none-eabi -isystem
> /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/
> --static -mthumb -mcpu=cortex-m3 -D__USE_LPCOPEN -D__CODE_RED
> -D__REDLIB__ -DCHIP_LPC175X_6X -DCORE_M3 -ffunction-sections
> -fdata-sections
> /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/crp.c
> /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/custom_clocking.c
> -nostdlib
> -L/home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x
> -L/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include
> -llpc_chip_175x_6x -T
> /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/standalone.ld
> -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group conftest.c
And where do your -lc / -lm live? I don't see a `--sysroot=`.
Jon
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded / Siemens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171121/1d82876b/attachment.html>
More information about the cfe-dev
mailing list