[PATCH] D34204: [LLD][LinkerScript] Allow non-alloc sections to be assigned to segments.
Andrew Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 11:06:02 PDT 2017
andrewng added a comment.
In https://reviews.llvm.org/D34204#786240, @ruiu wrote:
> Can you change your program?
There are a number tools that require this information, some are not in our control.
> I guess that the GNU linker is not designed to support this, but it's just that it happens to work with their linker. We are not aiming 100% compatibility with GNU as it is impossible (and doesn't make sense) to copy all the corner cases like this. So even if it works with the GNU linker, we sometimes want to stop and think whether it semantically makes sense or not.
What we're trying to achieve is to place a non allocatable section into a custom PHDR, which to us makes perfect sense and isn't a corner case. However, we do accept that enabling this could cause interesting corner cases if mixing alloc and non-alloc sections in a PHDR.
Cheers,
Andrew
https://reviews.llvm.org/D34204
More information about the llvm-commits
mailing list