]> git.ipfire.org Git - thirdparty/glibc.git/commit
ld.so: Decorate BSS mappings
authorPetr Malat <oss@malat.biz>
Tue, 28 Jan 2025 10:08:20 +0000 (11:08 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Jan 2025 13:16:37 +0000 (10:16 -0300)
commit4c43173eba874039c96eca893041745c6d7be38a
tree92c4c4d375832168075395633b0a9f9ce6a95b5e
parenta6fbe36b7f31292981422692236465ab56670ea9
ld.so: Decorate BSS mappings

Decorate BSS mappings with [anon: glibc: .bss <file>], for example
[anon: glibc: .bss /lib/libc.so.6]. The string ".bss" is already used
by bionic so use the same, but add the filename as well. If the name
would be longer than what the kernel allows, drop the directory part
of the path.

Refactor glibc.mem.decorate_maps check to a separate function and use
it to avoid assembling a name, which would not be used later.

Signed-off-by: Petr Malat <oss@malat.biz>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-map-segments.h
nptl/allocatestack.c
sysdeps/generic/setvmaname.h
sysdeps/unix/sysv/linux/setvmaname.c
sysdeps/unix/sysv/linux/setvmaname.h