I'm building an *.elf
file for ARM
within MacOS using cmake
. CMake
is adding the flags -Wl,-search_paths_first -Wl,-headerpad_max_install_name
automatically, which leads to produce an invalid *.elf
file. I obtain the error warning: cannot find entry symbol arch_paths_first; defaulting to 00000000080001e0
.
I have tried to execute the arm gcc command without that options and it works perfectly.
How can I stop cmake
to add these flags?