32-bit binary compatibility on 5.3-amd64

Coleman Kane zombyfork at gmail.com
Fri Jan 28 08:59:15 PST 2005


I was able to run this in 6.0-CURRENT on amd64. Compiled both for
64-bit and 32-bit.

64-bit:

char* 8
int* 8
void* 8
long 8
double 8
int 4

32-bit:

char* 4
int* 4
void* 4
long 4
double 8
int 4


On Fri, 28 Jan 2005 11:08:39 -0500 (EST), Rob Watt
<rob at hudson-trading.com> wrote:
> On Fri, 28 Jan 2005, Joseph Koshy wrote:
> 
> > > I've run the /usr/src/tools/lib32/build32.sh script, and applied some
> > > other changes that people have reccomended, but basically our 32-bit
> > > applications all segfault when run on the amd64 machines.
> >
> > Exactly what is the segfault?  Could you post the output of ktrace on an example
> > process?
> >
> 
> a ktrace is attached for this sample code:
> 
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
>     printf("char* %d\n", sizeof(char*));
>     printf("int* %d\n", sizeof(int*));
>     printf("void* %d\n", sizeof(void*));
>     printf("long %d\n", sizeof(long));
>     printf("double %d\n", sizeof(double));
>     printf("int %d\n", sizeof(int));
>     return 0;
> }
> 
> this was compiled on a 5.3 i386 machine with:  g++ -g
> 
> -
> Rob Watt
> 
> _______________________________________________
> freebsd-amd64 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
> To unsubscribe, send any mail to "freebsd-amd64-unsubscribe at freebsd.org"
> 
> 
> 
>


More information about the freebsd-amd64 mailing list