Re: binary backwards compatibility

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

 



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



-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux