【发布时间】:2017-06-04 05:46:52
【问题描述】:
我在 ELF 二进制文件中发现了这个有用的功能 -- Build ID。 "It ... is (normally) the SHA1 hash over all code sections in the ELF image." 可以使用 GNU 实用程序阅读:
$ readelf -n /bin/bash
...
Displaying notes found at file offset 0x00000274 with length 0x00000024:
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)
Build ID: 54967822da027467f21e65a1eac7576dec7dd821
我想知道是否有一种简单的方法可以自己重新计算构建 ID?检查它是否没有损坏等。
【问题讨论】: