bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29448] aarch64: "has a LOAD segment with RWX permissions"


From: jerome.forissier at linaro dot org
Subject: [Bug ld/29448] aarch64: "has a LOAD segment with RWX permissions"
Date: Fri, 05 Aug 2022 18:41:00 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29448

--- Comment #4 from Jérôme Forissier <jerome.forissier at linaro dot org> ---
(In reply to Nick Clifton from comment #3)
> (In reply to Jérôme Forissier from comment #2)
>   
> > Yep that's a reasonable thing to do in my case, but still, I think the
> > behavior is a bit weird. Again, ld deciding to create that RWX segment and
> > later complaining about its own decision ;-)
> 
> To be fair, the linker isn't deciding to create the RWX segment - it is
> being 
> told to do so by the linker script. Or rather the script is not giving the
> linker enough leeway to create separate code and data segments.

But then how is it that the LLVM linker (ld.lld) has no problem with that?
Same, linker script, and even same object files... (it generates 4 LOAD
segments instead of just 2).

> But either way, the thought with the warning message is that it is better
> that the developer know (and ignore) about the situation, rather than live
> in ignorance.

Agreed on that point.

-- 
Jerome

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]