Re: [CMake] undefined reference to `_exit'

2019-02-04 Thread hex
dear community, This question has originally been placed in another community [1]. I did read the mailing list netiquette before posting here but I was not aware this behaviour is discouraged. Therefore, I want to apologize. Good etiquette is important, I am grateful for any advice on how I

Re: [CMake] undefined reference to `_exit'

2019-02-01 Thread frodak17
If I follow you correctly you are trying to replace the startup files that are normally used with your own versions. You don't mention what the new library is that you are using to replace the startup files. The standard startup files provide _init and _fini. You are also missing _exit which I

Re: [CMake] undefined reference to `_exit'

2019-02-01 Thread Kyle Edwards via CMake
Hex, Can you see what else is in /opt/arm-none-eabi/lib/thumb/v7- ar/fpv3/hard (the same directory as libc.a)? There might be another system library that contains the _exit() implementation that isn't being linked due to your use of the -nostartfiles flag. Kyle On Fri, 2019-02-01 at 22:15 +,

[CMake] undefined reference to `_exit'

2019-02-01 Thread hex
hello, I am trying to include a static library that contains the startup code for ARM processor to my  CMake project for cross compilation. I included the linker script and added it to the executable. Flags and include files are properly set in the CMake build output. The path to the