https://sourceware.org/bugzilla/show_bug.cgi?id=23854
--- Comment #24 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Stas Sergeev from comment #23)
> > What your code did is outside of scope of i386 psABI.
>
> Why not linker tells me so with an error msg?
There are many corner cases linker doesn't check. You have things like
extern void foo (void);
short
foo_p (void)
{
return 0x400 - (int) &foo;
}
In normal i386 case, &foo is 32 bits, especially with PIE. BTW,
does your code work without -no-pie using ANY linkers?
--
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