Skip to content

Conversation

shtirlic
Copy link
Contributor

@shtirlic shtirlic commented Aug 28, 2025

Summary

Setting the "--no-warn-rwx-segments" linker option

Port of #16886

Impact

No more rwx warnings while linking

…nker warnings

Setting the "--no-warn-rwx-segments" linker option

Port of apache#16886

Signed-off-by: Serg Podtynnyi <serg@podtynnyi.com>
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: XS The size of the change in this PR is very small labels Aug 28, 2025
@@ -23,6 +23,7 @@
include armv8-m/Make.defs

CFLAGS += -Wno-array-bounds
LDFLAGS += --no-warn-rwx-segments
Copy link
Contributor

Choose a reason for hiding this comment

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

why not move to Toolchain.defs

Copy link
Contributor Author

@shtirlic shtirlic Aug 28, 2025

Choose a reason for hiding this comment

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

here? nuttx/arch/arm/src/armv8-m/Toolchain.defs and nuttx/arch/risc-v/src/common/Toolchain.defs

Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 Aug 29, 2025

Choose a reason for hiding this comment

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

nuttx/arch/arm/src/common/Toolchain.defs is better. Actually, --no-warn-rwx-segments was added in this file with some condition guard, we can remove the check directly.

@@ -27,6 +27,7 @@ include common/Make.defs
HEAD_ASRC = rp23xx_head.S

CFLAGS += -Wno-array-bounds
LDFLAGS += --no-warn-rwx-segments
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants