summaryrefslogtreecommitdiff
path: root/src/amd/common/ac_rtld.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/common/ac_rtld.h')
-rw-r--r--src/amd/common/ac_rtld.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/common/ac_rtld.h b/src/amd/common/ac_rtld.h
index 01c29b50817..b13270b181d 100644
--- a/src/amd/common/ac_rtld.h
+++ b/src/amd/common/ac_rtld.h
@@ -42,8 +42,16 @@ struct ac_rtld_symbol {
unsigned part_idx; /* shader part in which this symbol appears */
};
+struct ac_rtld_options {
+ /* Loader will insert an s_sethalt 1 instruction as the
+ * first instruction. */
+ bool halt_at_entry:1;
+};
+
/* Lightweight wrapper around underlying ELF objects. */
struct ac_rtld_binary {
+ struct ac_rtld_options options;
+
/* Required buffer sizes, currently read/executable only. */
uint64_t rx_size;
@@ -75,6 +83,7 @@ typedef bool (*ac_rtld_get_external_symbol_cb)(
*/
struct ac_rtld_open_info {
const struct radeon_info *info;
+ struct ac_rtld_options options;
unsigned num_parts;
const char * const *elf_ptrs; /* in-memory ELF objects of each part */