Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 29 May 2017 18:23:53 -0300
From: Matias Fonzo <selk@...gora.org>
To: Jorge Almeida <jjalmeida@...il.com>
Cc: musl@...ts.openwall.com
Subject: Re: -m32

Hola Jorge,

On Mon, 29 May 2017 22:07:47 +0100
Jorge Almeida <jjalmeida@...il.com> wrote:

> On Mon, May 29, 2017 at 9:08 PM, Laurent Bercot
> <ska-dietlibc@...rnet.org> wrote:
> >> I tried to compile a "hello world" program (on a x86_64 system)
> >> with the -m32 flag of gcc:  
> >
> >
> >  AIUI, musl doesn't support multi-arch, and considers that x86 and
> > x86_64 are two different architectures. You cannot use the musl-gcc
> > wrapper for this, you need a cross-toolchain actually targetting
> > your 32-bit arch.  
> 
> Thanks, Laurent. I want to run my binaries on a 64bit system, and I
> would prefer to take advantage of its capabilities. But I have no use
> for  64 bit pointers, which, in my case, are responsable for a large
> size overhead. Since the m32 flg is not supported, I suppose the
> target should be x32, which the musl site says is experimental (maybe
> that information is outdated?)
> >
> >  Fortunately, these are easy to make with the musl-cross-make
> > tool.  
> I'll try and see if I'm able to grokk it!

Yes. musl-cross-make is an option.  If you are looking for an already
made x32 -- from time to time I publish pre-built cross-compilers based
on musl, check:

http://gungre.ch/dragora/mirror/current/compilers/darkcrusade_2017Jan05/


Regards,
Matías


Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.