Previously we would crash because did not mark .rel[a] sections
as dead and they tried to access parent which was not live
after ICF and therefore was null.
Details
Details
- Reviewers
ruiu • espindola - Commits
- rG2d53967b486f: Recommit "[ELF] - Do not crash with --emit-relocs and --icf=all together."
rGcde84d1cd06d: [ELF] - Do not crash with --emit-relocs and --icf=all together.
rLLD325879: Recommit "[ELF] - Do not crash with --emit-relocs and --icf=all together."
rL325879: Recommit "[ELF] - Do not crash with --emit-relocs and --icf=all together."
rLLD325877: [ELF] - Do not crash with --emit-relocs and --icf=all together.
rL325877: [ELF] - Do not crash with --emit-relocs and --icf=all together.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
replace is not designed to be smart, and adding new code there seems semantically incorrect, as replacing some section doesn't necessarily mean that its dependent sections should be marked as dead.
You could instead add code to ICF.cpp.