Date: Fri, 13 Aug 2010 21:58:10 +0400 From: Anonymous <swell.k@gmail.com> To: Yuri <yuri@rawbw.com> Cc: freebsd-questions@freebsd.org Subject: Re: Documentation on how to build 32bit applications on amd64? Message-ID: <868w4av1hp.fsf@gmail.com> In-Reply-To: <4C65852B.807@rawbw.com> (yuri@rawbw.com's message of "Fri, 13 Aug 2010 10:47:23 -0700") References: <4C656E8F.8090105@rawbw.com> <20100813162429.GE18896@dan.emsphone.com> <4C65852B.807@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yuri <yuri@rawbw.com> writes: > --- output of 64 bit executable (gcc -o m m.c) --- > match: off=0 so=3 eo=4 > match: off=4 so=3 eo=4 > > --- output of 32 bit executable built on 64 bit system with flags (gcc > -B/usr/lib32 -m32 -o m m.c) --- > match: off=0 so=3 eo=0 I guess machine-dependent headers are involved. $ cc -m32 -B/usr/lib32 a.c $ ./a.out match: off=0 so=3 eo=0 $ ln -s /usr/src/sys/i386/include machine $ cc -m32 -B/usr/lib32 -isystem. a.c $ ./a.out match: off=0 so=3 eo=4 match: off=4 so=3 eo=4 Same thing is happening for mmap() http://docs.freebsd.org/cgi/mid.cgi?20100524.134955.2300883222251175323.okuno.kohji
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868w4av1hp.fsf>