bl4kraven opened a new pull request, #15500: URL: https://github.com/apache/nuttx/pull/15500
Hi, The sim arch will generate warning when compiled with cmake in linux host. I'm use ubuntu, and the gcc version is 14.2.0, ld version is 2.43.1: > [ 99%] Generating nuttx.rel > **/usr/bin/ld: warning: arch_setjmp_x86_64.S.o: missing .note.GNU-stack section implies executable stack** > **/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker** > [ 99%] Built target nuttx-rel > [ 99%] Building C object CMakeFiles/nuttx.dir/empty.c.o > [ 99%] Linking C executable nuttx > **/usr/bin/ld: warning: nuttx.rel: requires executable stack (because the .note.GNU-stack section is executable)** > [100%] Built target nuttx The build command is as follows: > cmake -B build -DBOARD_CONFIG=sim:nsh >cmake --build build One is a linking warning for nuttx, and the other is a linking warning for nuttx.rel. So add -Wl,-z,noexecstack to fix it. Refer to this PR #14505 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
