[PATCH] D111871: [ELF] Let sections reach the end of the address space

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 01:49:18 PDT 2021


jhenderson added a comment.

In D111871#3107393 <https://reviews.llvm.org/D111871#3107393>, @hvenev wrote:

> There already are test cases for overflowing by 1 byte. These two tests are more or less copies of those, except that we exactly reach the end.
>
> Regarding the empty section thing, that's a problem with setting the base address rather than the size. It is something that the linker script interpreter does not handle well, especially in the 64-bit case.

I'm not sure that it is? You can have an empty section immediately following a non-empty section after all, so you'd just need a non-empty section that ends at the end of the address space, followed by an empty section.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111871/new/

https://reviews.llvm.org/D111871



More information about the llvm-commits mailing list