https://sourceware.org/bugzilla/show_bug.cgi?id=18147
Bug ID: 18147
Summary: gold should not issue relocation overflow error with
--unresolved-symbols=ignore-all
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: ian at airs dot com
CC: ian at airs dot com
When linking a program with --unresolved-symbols=ignore-all, gold should not
issue a relocation overflow error for a reference to the symbol.
For example, this happens on 64-bit PowerPC. foo.c:
void f1() { f2(); }
Compile that with a 64-bit PowerPC compiler
> ld foo.o:
foo.o(.text+0x14): error: relocation overflow
foo.o(.text+0x14): error: undefined reference to 'f2'
> ld foo.o --unresolved-symbols=ignore-all
foo.o(.text+0x14): error: relocation overflow
That last error shouldn't be issued. We shouldn't report a relocation overflow
for a reference to an undefined symbol if we aren't going to report an error
about the undefined symbol.
Unfortunately there doesn't seem to be any one point to check. Calls to
is_weak_undefined are a proxy, but I'm not sure that all the calls need to be
changed.
--
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