[PATCH] D34204: [LLD][LinkerScript] Allow non-alloc sections to be assigned to segments.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 13:18:48 PDT 2017


bd1976 llvm <bd1976llvm at gmail.com> writes:

> I think that you have one specific model in mind of what the program
> headers represent.
>
> However, they are simply a block of bytes in the output file.
>
> The "meaning" is assigned by the platform.
>
> On our platform the phdrs are best thought of as a mapping between a
> contiguous range of offsets in the output file and a contiguous range of
> va's in the program image.

But they don't have offsets. They have addresses. How does any tool find
out if a section is in a segment of size and base 0?

Cheers,
Rafael


More information about the llvm-commits mailing list