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

Zbigniew Jędrzejewski-Szmek 2109333 at bugs.launchpad.net
Fri Apr 25 15:00:06 UTC 2025


$ 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
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2109333

Title:
  glibc package metadata in all binaries

Status in glibc package in Ubuntu:
  New

Bug description:
  glibc appears in the ELF package metadata of (all?) binary packages.
  Examples:

  ```
  $ readelf --notes /usr/bin/hd | tail -n6
  Displaying notes found in: .note.package
    Besitzer             Datengröße	Description
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"glibc","version":"2.40-4ubuntu1","architecture":"amd64"}
    FDO                  0x00000068	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"util-linux","version":"2.40.2-14ubuntu1","architecture":"amd64"}
  ```

  or

  ```
  $ readelf --notes /usr/bin/sleep | tail -n6
  Displaying notes found in: .note.package
    Besitzer             Datengröße	Description
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"glibc","version":"2.40-4ubuntu1","architecture":"amd64"}
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"coreutils","version":"9.5-1ubuntu1","architecture":"amd64"}
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2109333/+subscriptions




More information about the foundations-bugs mailing list