When running with linker GC (-opt:ref), defined imported symbols that
are referenced but then dropped by GC end up with their Location
member being nullptr, which means getChunk() returns nullptr for them
and attempting to call getChunk()->getOutputSection() causes a crash
from the nullptr dereference. Check for getChunk() being nullptr and
bail out early to avoid the crash.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
- Build Status
Buildable 19243 Build 19243: arc lint + arc unit