Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <542C615B.3050202@sholland.net>
Date: Wed, 01 Oct 2014 15:17:31 -0500
From: Samuel Holland <samuel@...lland.net>
To: musl@...ts.openwall.com
Subject: Re: converting gcc from glibc to musl

On 10/01/2014 02:44 PM, stephen Turner wrote:
> That is incorrect i gave you a bad readout. (im using debian as a host
> system which is the gcc i provided)
>
>
> COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
>   /bin/../libexec/gcc/i686-pc-linux-gnu/4.6.4/collect2 --eh-frame-hdr -m
> elf_i386 -dynamic-linker /lib/ld-linux.so.2
> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crt1.o
> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crti.o
> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtbegin.o
> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4 -L/bin/../lib/gcc
> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../../i686-pc-linux-gnu/lib
> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../.. /tmp/ccgPcLnb.o -lgcc
> -lc -lgcc /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtend.o
> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crtn.o

Okay, that makes more sense. Note that your 'dynamic-linker' is still 
set to glibc's, but you are linking to /lib/libc.so (the last -L 
option), which is the correct musl libc. Are you using the musl-cross 
gcc patch[0]? It will solve that for you.

[0] 
https://bitbucket.org/GregorR/musl-cross/src/default/patches/gcc-4.6.4-musl.diff

-- 
Regards,
Samuel Holland <samuel@...lland.net>

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.