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 75631c9 commit bacee5cCopy full SHA for bacee5c
compiler-rt/lib/cfi/cfi.cc
@@ -231,7 +231,8 @@ uptr find_cfi_check_in_dso(dl_phdr_info *info) {
231
if (p->st_name >= strsz) break;
232
char *name = (char*)(strtab + p->st_name);
233
if (strcmp(name, "__cfi_check") == 0) {
234
- assert(p->st_info == ELF32_ST_INFO(STB_GLOBAL, STT_FUNC));
+ assert(p->st_info == ELF32_ST_INFO(STB_GLOBAL, STT_FUNC) ||
235
+ p->st_info == ELF32_ST_INFO(STB_WEAK, STT_FUNC));
236
uptr addr = info->dlpi_addr + p->st_value;
237
return addr;
238
}
0 commit comments