struct lttng_ust_elf {
/* Offset in bytes to start of section names string table. */
- uint64_t section_names_offset;
+ off_t section_names_offset;
/* Size in bytes of section names string table. */
- uint64_t section_names_size;
+ size_t section_names_size;
char *path;
- FILE *file;
+ int fd;
struct lttng_ust_elf_ehdr *ehdr;
uint8_t bitness;
uint8_t endianness;
struct lttng_ust_elf *lttng_ust_elf_create(const char *path);
void lttng_ust_elf_destroy(struct lttng_ust_elf *elf);
+uint8_t lttng_ust_elf_is_pic(struct lttng_ust_elf *elf);
int lttng_ust_elf_get_memsz(struct lttng_ust_elf *elf, uint64_t *memsz);
int lttng_ust_elf_get_build_id(struct lttng_ust_elf *elf, uint8_t **build_id,
size_t *length, int *found);