We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f42b354 commit 51f7cc3Copy full SHA for 51f7cc3
lld/ELF/Writer.cpp
@@ -3266,7 +3266,13 @@ class CompartmentReportWriter {
3266
imports.push_back(json::Object{
3267
{"kind", "MMIO"},
3268
{"start", entry.start},
3269
- {"length", entry.length & 0xfffffff},
+ /*
3270
+ * Length and permissions are bit-stuffed into the same 32-bit
3271
+ * word, with the top 8 bits reserved for permission flags and
3272
+ * the bottom 24 for length. See CHERIoT-RTOS's
3273
+ * sdk/core/loader/types.h ReservedPermissionsMask
3274
+ */
3275
+ {"length", entry.length & 0x00ffffff},
3276
{"permits_load", (entry.length & ImportPermitsLoad) != 0},
3277
{"permits_store", (entry.length & ImportPermitsStore) != 0},
3278
{"permits_load_store_capabilities",
0 commit comments