Executable stack
jh--- via Gcc-help <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
Hi, I ported and cross-compiled gcc 15.1.0 to a custom OS on an ARM CPU. I am by no way an expert in this, so maybe my mistake is trivial. I used musl-cross-make if that is relevant. My project finally compiled, but I get the follow warning, by using this command line: arm-koolos-musleabihf-g++ -o ./build/ControlPanel.elf @"ControlPanel.txt" -L. -L/path-to-prefix/arm-koolos-musleabihf/lib -lkool -g1 -mfpu=vfpv3 -mfloat-abi=hard -mcpu=cortex-a9 -Xlinker -Map=./build/ControlPanel.map -static -Wl,-T -Wl,lscript_static.ld /path-to-prefix/arm-koolos-musleabihf/bin/ld: warning: /path-to-prefix/arm-koolos-musleabihf/15.1.0/crtend.o: missing .note.GNU-stack section implies executable stack /path-to-prefix/arm-koolos-musleabihf/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker I threw readelf at the file and there doesn't seem to be much in it. Also, the file seems to be generated somehow, but I'm sure where I could add a .note directive as seem for example in a Redhat blog. How can I fix this problem? Best regards, JH.