Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530168 - sys-libs/binutils - 76_all_use-new-ld-dtags.patch should not be applied if elibc_musl
Summary: sys-libs/binutils - 76_all_use-new-ld-dtags.patch should not be applied if el...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-23 12:09 UTC by Felix Janda
Modified: 2015-06-15 12:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/