Previously we searched output section by name to assign VA. That did not
work in the case when multiple output sections with different constraints were defined in script.
Testcase shows the possible issue scenario, patch fixes the issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/LinkerScript.cpp | ||
---|---|---|
333 ↗ | (On Diff #67841) | This function has duplicate code with matchConstraints. Can you reorganize this and that to reduce the amount of code? |
Comment Actions
LGTM
ELF/LinkerScript.cpp | ||
---|---|---|
218–219 ↗ | (On Diff #67901) | Instead of template this function, use uint64_t instead of ELF::uint. |