[Bug 2109333] Re: glibc package metadata in all binaries

2025-05-11 Thread Matthias Klose
if that's true, that also would effect all the .o files shipped by GCC -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2109333 Title: glibc package metadata in all binaries To manage notifications ab

[Bug 2109333] Re: glibc package metadata in all binaries

2025-04-25 Thread Benjamin Drung
Thanks Zbigniew for the analysis. We should fix our glibc build to not include the packaging metadata in /usr/lib/x86_64-linux-gnu/Scrt1.o and then check if that is enough. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.l

[Bug 2109333] Re: glibc package metadata in all binaries

2025-04-25 Thread Benjamin Drung
The environment variable ELF_PACKAGE_METADATA needs to be unset for that. We should probably do that for all startup object files (crt0.o, crt1.o, crti.o, crtn.o, Scrt1.o, gcrt1.o, Mcrt1.o). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubun

[Bug 2109333] Re: glibc package metadata in all binaries

2025-04-25 Thread Zbigniew Jędrzejewski-Szmek
$ gcc -v -o foo foo.c ... /usr/libexec/gcc/x86_64-linux-gnu/14/collect2 -plugin /usr/libexec/gcc/x86_64-linux-gnu/14/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-linux-gnu/14/lto-wrapper -plugin-opt=-fresolution=/tmp/cc30VlqL.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through

[Bug 2109333] Re: glibc package metadata in all binaries

2025-04-25 Thread Benjamin Drung
Simple reproducer: ``` printf "int main() {\nreturn 0;\n}\n" > foo.c gcc -o foo foo.c readelf --notes foo ``` That results in: ``` Displaying notes found in: .note.package Besitzer Datengröße Description FDO 0x0060 FDO_PACKAGING_METADATA Packa