https://sourceware.org/bugzilla/show_bug.cgi?id=18147
--- Comment #5 from Alan Modra <amodra at gmail dot com> ---
It might be reasonable to not report relocation overflow for strong undefined
symbols, but I don't think that a linker should ignore all weak undefined
symbol overflow. For example, this
if (foo)
foo ();
should report overflows in any relocation used to implement "if (foo)".
Normally of course any relocations involved are absolute and zero works fine in
an absolute relocation, but suppose a pc-relative address calculation is used
to implement "if (foo)". That might overflow when foo is undefined if you use
-Ttext (or have an extremely large binary).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils