Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 530168

Summary: sys-libs/binutils - 76_all_use-new-ld-dtags.patch should not be applied if elibc_musl
Product: Gentoo Linux Reporter: Felix Janda <felix.janda>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Felix Janda 2014-11-23 12:09:16 UTC
76_all_use-new-ld-dtags.patch makes binutils ld generate DT_RUNPATH instead of DT_RPATH entries in the dynamic table. This is contraproductive for the dynamic linker of musl libc since it does not consider DT_RUNPATH at all. See the bottom http://www.openwall.com/lists/musl/2014/03/28/6 for a comparison of the path lookup between glibc and musl.

In particular, it makes binutils generated using crossdev on a musl based system not find the right libbfd.


Reproducible: Always
Comment 1 Felix Janda 2014-11-23 21:21:42 UTC
will be fixed in musl-1.1.6.
Comment 2 SpanKY gentoo-dev 2015-05-26 03:05:41 UTC
for posterity, DT_RUNPATH isn't a GNU-ism ... it's in the official ELF spec
Comment 3 Felix Janda 2015-06-14 14:41:58 UTC
http://refspecs.linuxbase.org/elf/elf.pdf

looks like the elf spec, but does not mention DT_RUNPATH.
(It mentionsDT_RPATH, though.)
Comment 4 SpanKY gentoo-dev 2015-06-15 12:41:50 UTC
(In reply to Felix Janda from comment #3)

you want http://www.sco.com/developers/gabi/