| Summary: | app-portage/autodep-0.2 Enhancements for ebuild and buildsystem | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
| Component: | Current packages | Assignee: | Jesus Rivero (RETIRED) <neurogeek> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | nikoli, rhill |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
0001-bgo-386873.patch
build.log |
||
|
Description
Justin Lecher (RETIRED)
2011-10-12 07:50:33 UTC
Created attachment 289635 [details]
0001-bgo-386873.patch
bgo-386873.patch
Thank you for your patch!
Unfortunately, program fails to link properly with --as-needed switch.
$ ld -O1 -shared -o file_hook.so -ldl -lc file_hook.o
$ ldd file_hook.so
linux-vdso.so.1 => (0x00007fff747ff000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f2ceb1ff000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2ceae73000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2ceb63e000)
$ ld -O1 --as-needed -shared -o file_hook.so -ldl -lc file_hook.o
$ ldd file_hook.so
statically linked
This causes:
symbol lookup error: /usr/lib/file_hook.so: undefined symbol: dlsym
when library is loaded using LD_PRELOAD
I am trying to solve this situation.
$ ldd -r /usr/lib64/file_hook.so linux-vdso.so.1 => (0x00007fffe33ff000) libdl.so.2 => /lib64/libdl.so.2 (0x00002ae4a8854000) libc.so.6 => /lib64/libc.so.6 (0x00002ae4a8a58000) /lib64/ld-linux-x86-64.so.2 (0x00002ae4a8631000) Created attachment 290355 [details]
build.log
this is not the tree |