[PATCH] D31888: [LLD][ELF] Always use Script::assignAddresses()

Dmitry Mikulin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 16:06:39 PDT 2017


dmikulin added a comment.

Can this review be re-opened?
There's an inconsistency in the arg passing to fabricateDefaultCommands(). It's declared as taking "bool AllocateHeader" parameter, but called with "Config->MaxPageSize" as an argument, so AllocateHeader is pretty much always true. This creates a problem when headers are not to be allocated, as is the case on our platform. I'm still trying to figure out how to deal with it, since fixing the argument does not fix the problem: second call to allocateHeaders(), from assignAddresses() moves the starting address below MinVA.


Repository:
  rL LLVM

https://reviews.llvm.org/D31888





More information about the llvm-commits mailing list