mailing list of musl libc
 help / color / mirror / code / Atom feed
* Loader for musl on ARM
@ 2012-10-17  6:16 Brian Wang
  2012-10-17  6:26 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Wang @ 2012-10-17  6:16 UTC (permalink / raw)
  To: musl

Hello all,

I finally got time to test out musl.
I have successfully cross compiled my linux kernel and rootfs with a
musl-based toolchain after some header file problems.

However, ld-xxx seems to be missing on my target/toolchain.  busybox
can execute if built with static library, and it doesn't if built
with libc.so.

Is there something I did wrong?  I built my cross toolchain with the
handy scripts at
  https://bitbucket.org/GregorR/musl-cross

Thanks in advance.


Brian

-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Loader for musl on ARM
  2012-10-17  6:16 Loader for musl on ARM Brian Wang
@ 2012-10-17  6:26 ` Rich Felker
  2012-10-17  7:00   ` Brian Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Rich Felker @ 2012-10-17  6:26 UTC (permalink / raw)
  To: musl

On Wed, Oct 17, 2012 at 02:16:22PM +0800, Brian Wang wrote:
> Hello all,
> 
> I finally got time to test out musl.
> I have successfully cross compiled my linux kernel and rootfs with a
> musl-based toolchain after some header file problems.
> 
> However, ld-xxx seems to be missing on my target/toolchain.  busybox
> can execute if built with static library, and it doesn't if built
> with libc.so.
> 
> Is there something I did wrong?  I built my cross toolchain with the
> handy scripts at
>   https://bitbucket.org/GregorR/musl-cross

You should have a symlink named /lib/ld-musl-$ARCH.so.1 (replace $ARCH
with i386, x86_64, arm, or mips) pointing to libc.so in order to be
able to run dynamic-linked programs.

Rich


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Loader for musl on ARM
  2012-10-17  7:00   ` Brian Wang
@ 2012-10-17  6:55     ` Rich Felker
  2012-10-17  7:19       ` Brian Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Rich Felker @ 2012-10-17  6:55 UTC (permalink / raw)
  To: musl

On Wed, Oct 17, 2012 at 03:00:39PM +0800, Brian Wang wrote:
> > You should have a symlink named /lib/ld-musl-$ARCH.so.1 (replace $ARCH
> > with i386, x86_64, arm, or mips) pointing to libc.so in order to be
> > able to run dynamic-linked programs.
> 
> I could not find one (ld-*so*) within the toolchain installation
> directory or the build directory.
> What should I do to get this file?
> 
> Thank you.

It's not a separate file, it's just a symlink to libc.so.

Rich


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Loader for musl on ARM
  2012-10-17  6:26 ` Rich Felker
@ 2012-10-17  7:00   ` Brian Wang
  2012-10-17  6:55     ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Wang @ 2012-10-17  7:00 UTC (permalink / raw)
  To: musl

On Wed, Oct 17, 2012 at 2:26 PM, Rich Felker <dalias@aerifal.cx> wrote:
> On Wed, Oct 17, 2012 at 02:16:22PM +0800, Brian Wang wrote:
>> Hello all,
>>
>> I finally got time to test out musl.
>> I have successfully cross compiled my linux kernel and rootfs with a
>> musl-based toolchain after some header file problems.
>>
>> However, ld-xxx seems to be missing on my target/toolchain.  busybox
>> can execute if built with static library, and it doesn't if built
>> with libc.so.
>>
>> Is there something I did wrong?  I built my cross toolchain with the
>> handy scripts at
>>   https://bitbucket.org/GregorR/musl-cross
>
> You should have a symlink named /lib/ld-musl-$ARCH.so.1 (replace $ARCH
> with i386, x86_64, arm, or mips) pointing to libc.so in order to be
> able to run dynamic-linked programs.

I could not find one (ld-*so*) within the toolchain installation
directory or the build directory.
What should I do to get this file?

Thank you.


Brian

>
> Rich



-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Loader for musl on ARM
  2012-10-17  6:55     ` Rich Felker
@ 2012-10-17  7:19       ` Brian Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Wang @ 2012-10-17  7:19 UTC (permalink / raw)
  To: musl

On Wed, Oct 17, 2012 at 2:55 PM, Rich Felker <dalias@aerifal.cx> wrote:
> On Wed, Oct 17, 2012 at 03:00:39PM +0800, Brian Wang wrote:
>> > You should have a symlink named /lib/ld-musl-$ARCH.so.1 (replace $ARCH
>> > with i386, x86_64, arm, or mips) pointing to libc.so in order to be
>> > able to run dynamic-linked programs.
>>
>> I could not find one (ld-*so*) within the toolchain installation
>> directory or the build directory.
>> What should I do to get this file?
>>
>> Thank you.
>
> It's not a separate file, it's just a symlink to libc.so.

Thank you.  I read it too fast...  The loader works now.
I am going to try out more stuff.

Thank you for the prompt response (I thought we are in different time zones :-)


Brian

>
> Rich



-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-17  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-17  6:16 Loader for musl on ARM Brian Wang
2012-10-17  6:26 ` Rich Felker
2012-10-17  7:00   ` Brian Wang
2012-10-17  6:55     ` Rich Felker
2012-10-17  7:19       ` Brian Wang

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).