Use is_pic field instead of reading ELF header
[babeltrace.git] / include / babeltrace / so-info.h
index 453aa8a75146b460c46b218b97b58af74562c5a9..7badeb2fa43940e4b4cd5e37670866831db06f2d 100644 (file)
@@ -87,12 +87,14 @@ int so_info_init(void);
  * @param path         Path to the ELF file
  * @param low_addr     Base address of the executable
  * @param memsz        In-memory size of the executable
+ * @param is_pic       Whether the executable is position independent
+ *                     code (PIC)
  * @returns            Pointer to the new so_info on success,
  *                     NULL on failure.
  */
 BT_HIDDEN
 struct so_info *so_info_create(const char *path, uint64_t low_addr,
-               uint64_t memsz);
+               uint64_t memsz, bool is_pic);
 
 /**
  * Destroy the given so_info instance
This page took 0.022442 seconds and 4 git commands to generate.