Skip to content

sim: Fix linker warning.#9253

Merged
acassis merged 1 commit into
apache:masterfrom
fjpanag:sim_ld
May 11, 2023
Merged

sim: Fix linker warning.#9253
acassis merged 1 commit into
apache:masterfrom
fjpanag:sim_ld

Conversation

@fjpanag
Copy link
Copy Markdown
Contributor

@fjpanag fjpanag commented May 11, 2023

Summary

Fixes the following linker warning on simulator:

ld: warning: arch_setjmp_x86_64.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/bin/ld: warning: nuttx.rel: requires executable stack (because the .note.GNU-stack section is executable)

More information here.

Impact

Fixes warning.

Testing

Build passes and simulator runs normally.

Copy link
Copy Markdown
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add commit message describing the change

ld: warning: arch_setjmp_x86_64.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/bin/ld: warning: nuttx.rel: requires executable stack (because the .note.GNU-stack section is executable)

The linker is instructed to make the stack non-executable with the
switch: `-z noexecstack`.

More information can be found here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ffcf9c5700e49c0aee42dcba9a12ba21338e8136
@acassis acassis merged commit 36ac812 into apache:master May 11, 2023
@fjpanag fjpanag deleted the sim_ld branch May 12, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants