bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18147] gold should not issue relocation overflow error with --


From: amodra at gmail dot com
Subject: [Bug gold/18147] gold should not issue relocation overflow error with --unresolved-symbols=ignore-all
Date: Mon, 23 Mar 2015 03:42:33 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]