Skip to content

Commit 5c7d03f

Browse files
committed
fixes warning: rtthread.elf has a LOAD segment with RWX permissions
c:/env-windows/tools/gnu_gcc/riscv64-linux-musleabi_for_i686-w64-mingw32/bin/../lib/gcc/riscv64-linux-musleabi/12.2.0/../../../../riscv64-linux-musleabi/bin/ld.exe: warning: rtthread.elf has a LOAD segment with RWX permissions The warning is present when using: gcc version 12.2.0 (GCC)
1 parent fbfc501 commit 5c7d03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/qemu-virt64-riscv/rtconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
DEVICE = ' -mcmodel=medany -march=rv64imafdc -mabi=lp64 '
3636
CFLAGS = DEVICE + '-ffreestanding -flax-vector-conversions -Wno-cpp -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fdiagnostics-color=always'
3737
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -D__ASSEMBLY__ '
38-
LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds' + ' -lsupc++ -lgcc -static'
38+
LFLAGS = DEVICE + ' -nostartfiles -Wl,--no-warn-rwx-segments -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds' + ' -lsupc++ -lgcc -static'
3939
CPATH = ''
4040
LPATH = ''
4141

0 commit comments

Comments
 (0)