https://bugs.kde.org/show_bug.cgi?id=499747

--- Comment #1 from Sam James <s...@gentoo.org> ---
Looking at
https://develop.sentry.dev/sdk/data-model/event-payloads/debugmeta/#elf-images,
it looks like we need to calculate our own when a build-id is missing:
```
code_id
    Optional. Identifier of the dynamic library or executable. If the program
    was compiled with a relatively recent compiler, this should be the hex
    representation of the NT_GNU_BUILD_ID program header (type PT_NOTE), or
    the value of the .note.gnu.build-id note section (type SHT_NOTE).
    Otherwise, leave this value empty.
```
and
```
debug_id
    Required. Debug identifier of the dynamic library or executable. If a code
    identifier is available, the debug identifier is the little-endian UUID
    representation of the first 16-bytes of that identifier. Spaces are
inserted
    for readability, note the byte order of the first fields:

[...]

If no code id is available, the debug id should be computed by XORing the first
4096 bytes of the .text section in 16-byte chunks, and representing it as a
little-endian UUID (again swapping the byte order).
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to