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 ca91dd7 commit bc55459Copy full SHA for bc55459
lld/ELF/Writer.cpp
@@ -3280,7 +3280,13 @@ class CompartmentReportWriter {
3280
imports.push_back(json::Object{
3281
{"kind", "MMIO"},
3282
{"start", entry.start},
3283
- {"length", entry.length & 0xfffffff},
+ /*
3284
+ * Length and permissions are bit-stuffed into the same 32-bit
3285
+ * word, with the top 8 bits reserved for permission flags and
3286
+ * the bottom 24 for length. See CHERIoT-RTOS's
3287
+ * sdk/core/loader/types.h ReservedPermissionsMask
3288
+ */
3289
+ {"length", entry.length & 0x00ffffff},
3290
{"permits_load", (entry.length & ImportPermitsLoad) != 0},
3291
{"permits_store", (entry.length & ImportPermitsStore) != 0},
3292
{"permits_load_store_capabilities",
0 commit comments