Found that during attempts of linking linux kernel,
previous behavior of inputs from testcase was crash.
Details
Details
- Reviewers
ruiu • rafael - Commits
- rG7c71653b25e3: Port r292594.
rG60aed443875b: [ELF] - Do not crash when assign common symbol's values in script
rLLD292594: [ELF] - Do not crash when assign common symbol's values in script
rL293284: Port r292594.
rL292594: [ELF] - Do not crash when assign common symbol's values in script
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
IIUC, the crash is b/c LinkerScript<ELFT>::getSymbolSection has no code to handle the common symbol case. The fix is to use SymbolTableSection<ELFT>::getOutputSection, which does have code for handling commons (and various other kinds). If so, then LGTM.
Comment Actions
Yes, you're correct. Previously we just partially duplicated code from getSymbolSection().
I probably had to write that all in description. Thank you for looking at this !