https://sourceware.org/bugzilla/show_bug.cgi?id=25477
Bug ID: 25477
Summary: ld 2.34 tries to load ${prefix}/etc/ld.so.conf without
expanding ${prefix}
Product: binutils
Version: 2.34
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: romain.geissler at amadeus dot com
Target Milestone: ---
Hi,
I noticed a regression between GNU ld 2.33 and GNU ld 2.34 (git branch). I
don't install ld in the default $prefix, and I do have some custom
etc/ld.so.conf in this prefix. With binutils 2.34, it looks like the file
${prefix}/etc/ld.so.conf is ignored and instead it falls back on
/etc/ld.so.conf.
Doing so strace, I saw that actually ld doesn't actually expand the variable
${prefix} and keeps it as is:
[pid 187638] openat(AT_FDCWD, "${prefix}/etc/ld.so.conf", O_RDONLY) = -1 ENOENT
(No such file or directory)
[pid 187638] openat(AT_FDCWD, "/etc/ld.so.conf", O_RDONLY) = 29
It looks like this was caused by commit
d871d478061f10b0879c688e2fa941407e9137aa which did move some code from .em
files (in which I think things like ${XXX} were expanded) to .c files where
expansion do not happen.
Cheers,
Romain
--
You are receiving this mail because:
You are on the CC list for the bug.