[PATCH] D18091: ELF: Implement --build-id.

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 12:28:33 PST 2016


emaste added a comment.

One issue, if possible the build-id note should be in a loadable note segment and in the first page of the binary. The intent is that it will be copied into a core file so that the original binary can be identified.

from readelf -S, gold:

  [ 3] .note.gnu.build-i NOTE             0000000000400248  00000248
       0000000000000024  0000000000000000   A       0     0     4

patched lld:

  [34] .note.gnu.build-i NOTE             0000000000000000  00003d41
       0000000000000018  0000000000000000           0     0     0


http://reviews.llvm.org/D18091





More information about the llvm-commits mailing list