aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/file_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/linux/file_id.h')
-rw-r--r--src/common/linux/file_id.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/linux/file_id.h b/src/common/linux/file_id.h
index 2cd4953e..4d5b52dc 100644
--- a/src/common/linux/file_id.h
+++ b/src/common/linux/file_id.h
@@ -49,8 +49,9 @@ class FileID {
// Load the identifier for the elf file path specified in the constructor into
// |identifier|. Return false if the identifier could not be created for the
// file.
- // The current implementation will XOR the first 4096 bytes of the
- // .text section to generate an identifier.
+ // The current implementation will look for a .note.gnu.build-id
+ // section and use that as the file id, otherwise it falls back to
+ // XORing the first 4096 bytes of the .text section to generate an identifier.
bool ElfFileIdentifier(uint8_t identifier[kMDGUIDSize]);
// Load the identifier for the elf file mapped into memory at |base| into