Skip to content

Commit 8f584e3

Browse files
nwfresistor
authored andcommitted
[CHERIoT] ELF/Writer: import entry LoadGlobal flag
I'm stealing one of the heretofore unused flags for PermitLoadGlobal. See CHERIoT-Platform/cheriot-rtos#547
1 parent 0a94750 commit 8f584e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lld/ELF/Writer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,7 @@ class CompartmentReportWriter {
32613261
static constexpr uint32_t ImportPermitsLoadStoreCapabilities =
32623262
(1UL << 29);
32633263
static constexpr uint32_t ImportPermitsLoadMutable = (1UL << 28);
3264+
static constexpr uint32_t ImportPermitsLoadGlobal = (1UL << 27);
32643265

32653266
imports.push_back(json::Object{
32663267
{"kind", "MMIO"},
@@ -3271,7 +3272,9 @@ class CompartmentReportWriter {
32713272
{"permits_load_store_capabilities",
32723273
(entry.length & ImportPermitsLoadStoreCapabilities) != 0},
32733274
{"permits_load_mutable",
3274-
(entry.length & ImportPermitsLoadMutable) != 0}});
3275+
(entry.length & ImportPermitsLoadMutable) != 0},
3276+
{"permits_load_global",
3277+
(entry.length & ImportPermitsLoadGlobal) != 0}});
32753278
}
32763279
continue;
32773280
}

0 commit comments

Comments
 (0)