PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
build_id.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  ElfExternalNote
 ELF note, the format the linker uses to insert the build ID. More...
 

Macros

#define BUILD_ID_EXPECTED_LEN   (20)
 Length of the build ID, a SHA-1 hash.
 
#define BUILD_ID_NAME_EXPECTED_LEN   (4)
 Length of the build ID note name, "GNU" and its terminator.
 
#define BUILD_ID_TOTAL_EXPECTED_LEN    (sizeof(ElfExternalNote) + BUILD_ID_NAME_EXPECTED_LEN + BUILD_ID_EXPECTED_LEN)
 Total size of a build ID note.
 

Functions

bool build_id_contains_gnu_build_id (const ElfExternalNote *note)
 Check whether a note holds a GNU build ID of the expected length.