Skip to content

Commit 036a650

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 622b697 commit 036a650

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
@@ -3275,6 +3275,7 @@ class CompartmentReportWriter {
32753275
static constexpr uint32_t ImportPermitsLoadStoreCapabilities =
32763276
(1UL << 29);
32773277
static constexpr uint32_t ImportPermitsLoadMutable = (1UL << 28);
3278+
static constexpr uint32_t ImportPermitsLoadGlobal = (1UL << 27);
32783279

32793280
imports.push_back(json::Object{
32803281
{"kind", "MMIO"},
@@ -3285,7 +3286,9 @@ class CompartmentReportWriter {
32853286
{"permits_load_store_capabilities",
32863287
(entry.length & ImportPermitsLoadStoreCapabilities) != 0},
32873288
{"permits_load_mutable",
3288-
(entry.length & ImportPermitsLoadMutable) != 0}});
3289+
(entry.length & ImportPermitsLoadMutable) != 0},
3290+
{"permits_load_global",
3291+
(entry.length & ImportPermitsLoadGlobal) != 0}});
32893292
}
32903293
continue;
32913294
}

0 commit comments

Comments
 (0)