$ 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=-lgcc_s -plugin-opt=-pass-through=-lc 
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id 
--eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker 
/lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o foo 
/usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o 
/usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/crti.o 
/usr/lib/gcc/x86_64-linux-gnu/14/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/14 
-L/usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu 
-L/usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib -L/lib/x86_64-linux-gnu 
-L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib 
-L/usr/lib/gcc/x86_64-linux-gnu/14/../../.. /tmp/ccvRfdrc.o -lgcc --push-state 
--as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s 
--pop-state /usr/lib/gcc/x86_64-linux-gnu/14/crtendS.o 
/usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/crtn.o
...
$ readelf  --notes 
/usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o|tail -n1
    Packaging Metadata: 
{"type":"deb","os":"ubuntu","name":"glibc","version":"2.41-6ubuntu1","architecture":"amd64"}

I guess that the note is copied from there. The other .o files don't
have the notes, afaict.

-- 
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 about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2109333/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to