binary backwards compatibility
Arjan van de Ven
arjan at infradead.org
Mon Aug 20 15:37:41 UTC 2007
On Mon, 2007-08-20 at 16:30 +0100, Pádraig Brady wrote:
> I was trying to compile a binary on Fedora 7
> so that is was portable to as many systems as possible,
> but was getting a "Floating point exception" at startup,
> on older systems?
your subject: is misguided; this isn't BACKWARDS compatibility;
backwards compatibility is "older software runs on new releases".. what
you want is the other way around.
>
> I.E. compile the following on Fedora 7:
>
> #include <stdio.h>
> int main(void)
> {
> printf ("Hello world\n");
> return 0;
> }
>
> The resultant binary will throw a floating point exception
> at startup on ubuntu breezy and debian sarge at least
> (but is Ok on ubuntu feisty).
you need an LD option
--hash-style=sysv
More information about the devel
mailing list