where is 'ldd'?
Hi,
I just cann't find what is the menu item in buildroot to enable building of 'ldd' for my target. Does anyone know it?
Thanks in advance.
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Quoted 7 lines · Woody Wu
Hi,
I just cann't find what is the menu item in buildroot to enable building of 'ldd' for my target. Does anyone know it?
Thanks in advance.
Sure you don't have it already on your system? What toolchain / libc are you using?
Signature · 4 lines
br, Zoltan Gyarmati mail: mr.zoltan.gyarmati at gmail.com freenode nick: zgyarmati
Quoted 10 lines · Zoltan Gyarmati
Quoted 7 lines · Woody Wu
Hi,
I just cann't find what is the menu item in buildroot to enable building of 'ldd' for my target. Does anyone know it?
Thanks in advance.
Sure you don't have it already on your system? What toolchain / libc are you using?
I also feel strange, but its sure. I am using Code Sorucery, downloaded it's lite version (arm linux eabi version, 2013-05-24). It comes with an installer, which created a seperated directory in my home. I searched through its installation directory (via 'find'), sure not have anything like "*ldd".
-
woody
Hi,
Quoted 9 lines · Woody Wu
Quoted 8 lines · Zoltan Gyarmati
Quoted 7 lines · Woody Wu
Hi,
I just cann't find what is the menu item in buildroot to enable building of 'ldd' for my target. Does anyone know it?
Thanks in advance.
Quoted 8 lines
Quoted 2 lines
Sure you don't have it already on your system? What toolchain / libc are you using?
I also feel strange, but its sure. I am using Code Sorucery, downloaded it's lite version (arm linux eabi version, 2013-05-24). It comes with an installer, which created a seperated directory in my home. I searched through its installation directory (via 'find'), sure not have anything like "*ldd".
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), it just runs:
# LD_TRACE_LOADED_OBJECTS=1 <executable>
For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1 /bin/busybox
linux-vdso32.so.1 => (0x00100000)
libc.so.6 => /lib/libc.so.6 (0x0fe70000)
/lib/ld.so.1 (0x48000000So for sporadic usage, an ldd script isn't even needed.
See 'man ld.so' for information on this LD_TRACE_LOADED_OBJECTS variable (and several other useful variables that change the behavior of the executable.
See also: http://www.catonmat.net/blog/ldd-arbitrary-code-execution/
Best regards,
Thomas
Quoted 31 lines · Thomas De Schampheleire
Hi,
Quoted 9 lines · Woody Wu
Quoted 8 lines · Zoltan Gyarmati
Quoted 7 lines · Woody Wu
Hi,
I just cann't find what is the menu item in buildroot to enable building of 'ldd' for my target. Does anyone know it?
Thanks in advance.
Quoted 8 lines
Quoted 2 lines
Sure you don't have it already on your system? What toolchain / libc are you using?
I also feel strange, but its sure. I am using Code Sorucery, downloaded it's lite version (arm linux eabi version, 2013-05-24). It comes with an installer, which created a seperated directory in my home. I searched through its installation directory (via 'find'), sure not have anything like "*ldd".
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), it just runs:
# LD_TRACE_LOADED_OBJECTS=1 <executable>For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1/bin/busyboxlinux-vdso32.so.1 => (0x00100000) libc.so.6 => /lib/libc.so.6 (0x0fe70000) /lib/ld.so.1 (0x48000000
Quoted 8 lines
So for sporadic usage, an ldd script isn't even needed.
See 'man ld.so' for information on this
LD_TRACE_LOADED_OBJECTSvariable (and several other useful variables that change the behavior of the executable.See also: http://www.catonmat.net/blog/ldd-arbitrary-code-execution/
Cool! learned a thing!
Dear Thomas De Schampheleire,
Quoted 11 lines · Thomas De Schampheleire
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), it just runs:
# LD_TRACE_LOADED_OBJECTS=1 <executable>For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1/bin/busyboxlinux-vdso32.so.1 => (0x00100000) libc.so.6 => /lib/libc.so.6 (0x0fe70000) /lib/ld.so.1 (0x48000000So for sporadic usage, an ldd script isn't even needed.
Right, but does this work with the uClibc dynamic loader? Anyway, if those features don't exist with the uClibc dynamic loader, then implementing ldd is simply impossible.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Op 9-jul.-2013 12:40 schreef "Thomas Petazzoni" < [email protected]> het volgende:
Quoted 7 lines
Dear Thomas De Schampheleire,
Quoted 2 lines · Thomas De Schampheleire
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), it
just runs:
Quoted 8 lines
Quoted 8 lines
# LD_TRACE_LOADED_OBJECTS=1 <executable>
For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1/bin/busyboxlinux-vdso32.so.1 => (0x00100000) libc.so.6 => /lib/libc.so.6 (0x0fe70000) /lib/ld.so.1 (0x48000000
Quoted 5 lines
Quoted 1 line
So for sporadic usage, an ldd script isn't even needed.
Right, but does this work with the uClibc dynamic loader? Anyway, if those features don't exist with the uClibc dynamic loader, then implementing ldd is simply impossible.
I haven't tried this on uClibc yet. Anyone that has such a target at hand
willing to give it a shot?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130709/4e9803f9/attachment-0001.html>
Hi Thomas,
Quoted 18 lines · Thomas De Schampheleire
Op 9-jul.-2013 12:40 schreef "Thomas Petazzoni" < thomas.petazzoni at free-electrons.com> het volgende:
Quoted 7 lines
Dear Thomas De Schampheleire,
Quoted 2 lines · Thomas De Schampheleire
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), itjust runs:
Quoted 8 lines
Quoted 8 lines
# LD_TRACE_LOADED_OBJECTS=1 <executable>
For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1/bin/busyboxlinux-vdso32.so.1 => (0x00100000) libc.so.6 => /lib/libc.so.6 (0x0fe70000) /lib/ld.so.1 (0x48000000
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
So for sporadic usage, an ldd script isn't even needed.
Right, but does this work with the uClibc dynamic loader? Anyway, if those features don't exist with the uClibc dynamic loader, then implementing ldd is simply impossible.
I haven't tried this on uClibc yet. Anyone that has such a target at hand willing to give it a shot?
Trying on uClibc (0.9.33.2) xtensa target I see:
# LD_TRACE_LOADED_OBJECTS=1 /bin/busybox
libc.so.0 => /lib/libc.so.0 (0x20008000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x20000000)baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -Op 9-jul.-2013 19:43 schreef "Baruch Siach" <[email protected]> het volgende:
Quoted 29 lines
Hi Thomas,
Quoted 25 lines · Thomas De Schampheleire
Op 9-jul.-2013 12:40 schreef "Thomas Petazzoni" < thomas.petazzoni at free-electrons.com> het volgende:
Quoted 7 lines
Dear Thomas De Schampheleire,
Quoted 2 lines · Thomas De Schampheleire
You really don't need a special ldd.
ldd is just a script. In its most basic usage (ldd <executable>), itjust runs:
Quoted 8 lines
Quoted 8 lines
# LD_TRACE_LOADED_OBJECTS=1 <executable>
For example on busybox:
# LD_TRACE_LOADED_OBJECTS=1/bin/busyboxlinux-vdso32.so.1 => (0x00100000) libc.so.6 => /lib/libc.so.6 (0x0fe70000) /lib/ld.so.1 (0x48000000Quoted 5 lines
Quoted 1 line
So for sporadic usage, an ldd script isn't even needed.
Right, but does this work with the uClibc dynamic loader? Anyway, if those features don't exist with the uClibc dynamic loader, then implementing ldd is simply impossible.
I haven't tried this on uClibc yet. Anyone that has such a target at
hand
Quoted 7 lines
Quoted 1 line
willing to give it a shot?
Trying on uClibc (0.9.33.2) xtensa target I see:
# LD_TRACE_LOADED_OBJECTS=1
/bin/busyboxlibc.so.0 => /lib/libc.so.0 (0x20008000) ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x20000000)
Thanks! So, it seems to work fine on uClibc as well...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130709/8afdf76a/attachment.html>
Dear Baruch Siach,
Quoted 5 lines · Baruch Siach
Trying on uClibc (0.9.33.2) xtensa target I see:
# LD_TRACE_LOADED_OBJECTS=1
/bin/busyboxlibc.so.0 => /lib/libc.so.0 (0x20008000) ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x20000000)
Nice, thanks for testing!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com