Reported by Stefan Pintilie in D119773.
For a branch to a hidden undefined weak symbol, there is an
assert(sym->getVA()); failure in PPC64LongBranchTargetSection::writeTo for a
-no-pie link. The root cause is that we unnecessarily produce a dynamic
relocation for a -no-pie link.
Fix this by changing the condition to just s.isUndefined(). See the inline
comment.
Rename ppc64-weak-undef-call.s to ppc64-undefined-weak.s to be consistent with
other architectures.
Why externally referenced symbols, this is not the type of undefined symbols here?I would like to know what kind of scenario is being dealt with here