When the access to a weak symbol is not a call, the access has to be able to produce the value 0 at runtime.
We were sometimes producing code sequences where that was not possible if the code was leaded more than 4g away from 0.
Differential D36280
Fix access to undefined weak symbols in pic code • rafael on Aug 3 2017, 12:33 PM. Authored by
Details
When the access to a weak symbol is not a call, the access has to be able to produce the value 0 at runtime. We were sometimes producing code sequences where that was not possible if the code was leaded more than 4g away from 0.
Diff Detail Event Timeline
|
It seems to me that the bug is in shouldAssumeDSOLocal: we should not assume we can use a copy relocation for a variable that might not be defined.