[PATCH] D42550: Put the header in the first PT_LOAD even if that PT_LOAD has a LMAExpr

Ed Maste via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 11:20:22 PST 2018


emaste added inline comments.


================
Comment at: test/ELF/linkerscript/merge-header-load.s:10-11
+
+# Test that we put the header in the first PT_LOAD. We used to create a PT_LOAD
+# just for it and it would have a different virtual to physical address delta.
+
----------------
This is true only for the case where we set LMA (right?)

In normal use w/o a linker script (or without setting LMA) the PT_PHDR is just included in the first PT_LOAD.


https://reviews.llvm.org/D42550





More information about the llvm-commits mailing list