summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/merge-relocatable.s
Commit message (Collapse)AuthorAgeFilesLines
* [ELF] -r: fix crash when processing a SHT_REL[A] that relocates a SHF_MERGE ↵Fangrui Song2019-10-241-0/+23
after D67504/r372734 Fix PR43767 In -r mode, when processing a SHT_REL[A] that relocates a SHF_MERGE, sec->getRelocatedSection() is a MergeInputSection and its parent is an OutputSection but is asserted to be a SyntheticSection (MergeSyntheticSection) in LinkerScript.cpp:addInputSec(). ## The code path is not exercised in non -r mode because the relocated section changed from MergeInputSection to InputSection. Reorder the code to make the non -r logic apply to -r as well, thus fix the crash. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D69364
OpenPOWER on IntegriCloud