8000
Skip to content

Update libcdb buildid offsets#1703

Merged
Arusekk merged 2 commits intoGallopsled:devfrom
peace-maker:libcdb_buildid_offsets
Oct 20, 2020
Merged

Update libcdb buildid offsets#1703
Arusekk merged 2 commits intoGallopsled:devfrom
peace-maker:libcdb_buildid_offsets

Conversation

@peace-maker
Copy link
Copy Markdown
Member

Recent libcs from Debian and Ubuntu have different offsets for the build id.
Running the following to count buildid offsets on a local libc-database with ubuntu and debian:

function check_arch() {
readelf -SW $(file -L * | grep -i "$1" | cut -d ':' -f 1) \
      | grep .note.gnu.build-id \
      | sort \
      | uniq -c
}
$ check_arch 80386
     83   [ 1] .note.gnu.build-id NOTE            00000174 000174 000024 00   A  0   0  4
     19   [ 1] .note.gnu.build-id NOTE            000001b4 0001b4 000024 00   A  0   0  4
     16   [ 1] .note.gnu.build-id NOTE            000001d4 0001d4 000024 00   A  0   0  4
$ check_arch "x86-64"
     84   [ 1] .note.gnu.build-id NOTE            0000000000000270 000270 000024 00   A  0   0  4
     14   [ 1] .note.gnu.build-id NOTE            00000000000002e0 0002e0 000024 00   A  0   0  4
     16   [ 2] .note.gnu.build-id NOTE            0000000000000370 000370 000024 00   A  0   0  4

Recent libcs from Debian and Ubuntu have different offsets for the build id.
@Arusekk Arusekk merged commit cd 81B4 e5106 into Gallopsled:dev Oct 20, 2020
@peace-maker peace-maker deleted the libcdb_buildid_offsets branch October 20, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0