[PATCH] D16575: [ELF] - Redesign of program headers creation code.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 6 14:38:11 PST 2016


>This is what I have so far. There is more work to be done, but the idea is that
>
>* scanHeaders does nothing more than map section to program headers.
>* We then find out which sections need extra alignment because of page
>boundaries.
>* We assign address and offset to each *section*, which is now a simple loop
>* We use the above info to assign sizes and address to each program header.
>
>Things I want to try before considering this a real patch
>
>* Create dummy sections for the file and program headers. This should
>avoid the hacks regarding the first PT_LOAD.
>* Store just first and last section. A program header is a contiguous range.
>* Have the Phdr structure be just a Elf_Phdr and the first and last section.
>
>Cheers,
>Rafael

Ok.
If you don't mind I will try your suggestions and update the patch then ?

George.


More information about the llvm-commits mailing list