RFC: Add SHT_GNU_PHDRS
Florian Weimer
fweimer@redhat.com
Thu Sep 27 12:42:00 GMT 2018
More information about the Binutils mailing list
Thu Sep 27 12:42:00 GMT 2018
- Previous message (by thread): RFC: Add SHT_GNU_PHDRS
- Next message (by thread): RFC: Add SHT_GNU_PHDRS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* H. J. Lu: > On Thu, Sep 27, 2018 at 3:35 AM, Szabolcs Nagy <nsz@port70.net> wrote: >> an alloc .phdr section covering the program headers solves >> this problem. if sections are not required for segments >> then simply the linker should ensure that there is always >> a load segment covering the program headers, possibly >> without containing any sections, however elf says >> "An object file segment contains one or more sections". >> >> i don't understand why a zero-size section is enough, what >> if phdr > pagesize? will that get covered by the load >> segment that is created for the zero-size section? > > Linker must keep this zero-size section in output and > create a PT_LOAD segment to cover it even if it is > the only SHF_ALLOC section in the PT_LOAD segment. Based on Szabolcs' comment, I don't think the section can be zero-sized. Thanks, Florian
- Previous message (by thread): RFC: Add SHT_GNU_PHDRS
- Next message (by thread): RFC: Add SHT_GNU_PHDRS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list