.rela.plt may only contain R_*_{,I}RELATIVE relocations and not need a symbol table link. bfd/gold fallbacks to sh_link=0 in this case. Without this patch, ld.lld --strip-all caused lld to dereference a null pointer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
- Build Status
Buildable 24345 Build 24344: arc lint + arc unit
Event Timeline
ELF/SyntheticSections.cpp | ||
---|---|---|
1499–1501 | If ?: is nested, plain if ~ else if is perhaps easier to read. |
If ?: is nested, plain if ~ else if is perhaps easier to read.