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

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


emaste added inline comments.

================
Comment at: ELF/OutputSections.cpp:1543
@@ +1542,3 @@
+  write32<E>(Buf + 4, sizeof(Hash));    // Content size
+  write32<E>(Buf + 8, NT_GNU_BUILD_ID); // Type
+  memcpy(Buf + 12, "GNU", 4);           // Name string
----------------
Where is this defined (maybe I haven't updated something)?

```
../tools/lld/ELF/OutputSections.cpp:1562:23: error: use of undeclared identifier 'NT_GNU_BUILD_ID'
  write32<E>(Buf + 8, NT_GNU_BUILD_ID); // Type (NT_GNU_BUILD_ID = 3)
```



http://reviews.llvm.org/D18091





More information about the llvm-commits mailing list