Home > Uncategorized > glibc 2.5

glibc 2.5

Debian Sid now include glibc 2.5. Compiled programs on Debian Sid may or may not run on distro with older libc. If this command display something it means that the executable contains glibc 2.5 specific calls:

objdump -T myexec | grep GLIBC_2.5

To list 2.5 specific primitive just do:

objdump -T /lib/libc.so.6 | grep GLIBC_2.5

Note that libc 2.5 do not add many symbols. See the progression:

$ objdump -T /lib/libc.so.6 | grep GLIBC_2.0 | wc -l
$ objdump -T /lib/libc.so.6 | grep GLIBC_2.1 | wc -l
$ objdump -T /lib/libc.so.6 | grep GLIBC_2.2 | wc -l
$ objdump -T /lib/libc.so.6 | grep GLIBC_2.3 | wc -l
$ objdump -T /lib/libc.so.6 | grep GLIBC_2.4 | wc -l
$ objdump -T /lib/libc.so.6 | grep GLIBC_2.5 | wc -l

Unfortunnatly debian package will require libc 2.5 even if 2.5 extension are not used. See this extract from #debian-glibc:

[me] [french sorry for my english] Does shlibdeps handle glibc symbol version ? For example if an executable only use GLIBC_2.0 symbols, will it required libc >= 2.5 or only lib >= 2.0 ?
[Clint] no, it's not that smart yet
[me] May be one day ? As it already been discussed ?
[Clint] it's been discussed, but people usually say that it's not worth the effort
[me] ok. Thanks !
[Clint] if you want to write a patch to do it though, that might be useful
[me] Hu ! I would glad to but I guess I would have to learn perl first :-/

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: