Skip to content

Commit 6e1131b

Browse files
committed
[Headers] Declare start/stop/end symbols as arrays in cheri_init_globals.h
1 parent 0fba5da commit 6e1131b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Headers/cheri_init_globals.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ static const __SIZE_TYPE__ global_pointer_permissions_mask =
6565
~(__SIZE_TYPE__)(__CHERI_CAP_PERMISSION_PERMIT_SEAL__ |
6666
__CHERI_CAP_PERMISSION_PERMIT_EXECUTE__);
6767

68-
__attribute__((weak)) extern struct capreloc __start___cap_relocs;
69-
__attribute__((weak)) extern struct capreloc __stop___cap_relocs;
68+
__attribute__((weak)) extern struct capreloc __start___cap_relocs[];
69+
__attribute__((weak)) extern struct capreloc __stop___cap_relocs[];
7070

71-
__attribute__((weak)) extern void *__capability __cap_table_start;
72-
__attribute__((weak)) extern void *__capability __cap_table_end;
71+
__attribute__((weak)) extern void *__capability __cap_table_start[];
72+
__attribute__((weak)) extern void *__capability __cap_table_end[];
7373

7474
/*
7575
* Sandbox data segments are relocated by moving DDC, since they're compiled as

0 commit comments

Comments
 (0)