ELF2: Write .interp section on the first page in the exectuable.
Previously, we reserved the first page for the program header, so no sections would be written to very beginning of the output file. FreeBSD requires .interp section be exist on the first page, so that was not good. This patch calculates the size of the program header and then assign addresses to the sections. Now the first section is located next to the program header. Because the first section is .interp, it's very likely to be on the first page. llvm-svn: 249957
Loading
Please sign in to comment