Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13235 closed defect (worksforme)

uClibc-ld dynamic loader

Reported by: dryukovz@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: uClibc ld-uClibc.so.0 dynamic loader Cc:

Description

mips47xx board - Dlink 320
kernel 3.8.2 + /trunk/target/linux/brcm47xx/patches-3.8 + roboswitch
gcc 4.7.2 + trunk/toolchain/gcc/patches/4.7.2
uClibc 0.9.33.2 + trunk/toolchain/uClibc/patches-0.9.33.2
busybox 1.21.0

/ # gcc -v
COLLECT_GCC=mipsel-uclibc-linux-gcc
COLLECT_LTO_WRAPPER=/mips/mipsel/toolchain/libexec/gcc/mipsel-uclibc-linux/4.7.2/lto-wrapper
Target: mipsel-uclibc-linux
Configured with: /mips/src/gcc-4.7.2/configure --target=mipsel-uclibc-linux --prefix=/mips/mipsel/toolchain/ --with-headers=/mips/mipsel/toolchain/include/ --disable-multilib --disable-nls --enable-threads=posix --enable-tls --enable-languages=c,c++ --with-libs=/mips/mipsel/toolchain/lib --with-dynamic-linker=ld-uClibc.so.0 --with-dynamic-linker-prefix=/lib
Thread model: posix
gcc version 4.7.2 (GCC)

=========================
gcc work.
Kernel 3.8.2 work.
all static linked utils work.
busybox work if compiled static version.

dynamic elf file loader not start from sh.
hands start corectly.

/s - static hello world
/d - dynamic hello world

/s
Hello uClibc Dynamic link World (staic version)
/ # /d
sh: can't execute '/d': No such file or directory
/ # /lib/ld-uClibc.so /d
Hello uClibc Dynamic link World (dynamic version)

ldd - from uClibc utils.

/ # ldd /d
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.0'
checking sub-depends for '/lib/ld-uClibc.so.0'

libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
not a dynamic executable

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

all work fine !

Me create symlink /lib/ld-uClibc.0.9.33.2.so to /lib/ld.so.1

Thanks )

comment:2 Changed 5 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.