[PATCH] D23165: [ELF] - Linkerscript: implement SIZEOF_HEADERS.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 01:38:06 PDT 2016


grimar added inline comments.

================
Comment at: ELF/LinkerScript.cpp:241
@@ -240,3 +240,3 @@
   // Assign addresses as instructed by linker script SECTIONS sub-commands.
-  Dot = Out<ELFT>::ElfHeader->getSize() + Out<ELFT>::ProgramHeaders->getSize();
+  Dot = getSizeOfHeaders();
   uintX_t MinVA = std::numeric_limits<uintX_t>::max();
----------------
I hope there will not be scripts with first linke like:

```
. += SIZEOF_HEADERS;
```


https://reviews.llvm.org/D23165





More information about the llvm-commits mailing list