Wrong expansion of $PLATFORM by ld.so on 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
It seems that expansion of the $PLATFORM dynamic linker variable has changed between xenial and bionic:
rojer@xenial$ apt-cache policy libc6
libc6:
Installed: 2.23-0ubuntu10
Candidate: 2.23-0ubuntu10
rojer@xenial$ LD_PRELOAD=
open("/
rojer@bionic$ apt-cache policy libc6
libc6:
Installed: 2.27-3ubuntu1
Candidate: 2.27-3ubuntu1
rojer@bionic$ LD_PRELOAD=
openat(AT_FDCWD, "/foo/lib/
What was `x86_64` before has changed to `haswell` which is way too specific and also doesn't match the man page for ld.so which clearly states:
$PLATFORM (or equivalently ${PLATFORM})
This expands to a string corresponding to the processor type of the host system (e.g., "x86_64"). On some architectures, the Linux kernel doesn't provide a platform string to the dynamic linker. The value of this string is taken
from the AT_PLATFORM value in the auxiliary vector (see getauxval(3)).
I verified that `getauxval(
tags: | added: bionic |