[PATCH] Fix sim/testsuite/bpf due to linker warnings

Mike Frysinger vapier@gentoo.org
Wed Jan 4 07:02:26 GMT 2023


On 03 Jan 2023 22:12, Guillermo E. Martinez via Binutils wrote:
> Hello,
> 
> This patch is meant to fix bug:
>   https://sourceware.org/bugzilla/show_bug.cgi?id=29954 
> 
> Please let know your thoughts. I'll really appreciate them!,
> guillermo
> 
> --
> 
> On a bpf-*-* testsuite fails:
> 	./ld/ld-new: warning: test has a LOAD segment with RWX permissions
> 
> Adding `--no-warn-rwx-segments' option to linker and set `--memory-size=10Mb'
> to the simulator bpf testsuite passes.
> 
> Tested on bpf-*-*:
> 
> Bug 29954: https://sourceware.org/bugzilla/show_bug.cgi?id=29954

i thought increasing the memory was sufficient to not need the -Ttext=0x0,
and the -Ttext=0x0 was the only reason we were triggering RWX warnings.  so
do we still need --no-warn-rwx-segments ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20230104/32843b3a/attachment.sig>


More information about the Binutils mailing list