.kcfi_traps contains references to kCFI trap instruction locations. When a KCFI type check fails at an indirect call, the trap handler looks up the faulting address in this section. Add it to the special sections list so the entries get extracted for the changed functions they reference.
Unified · Split
| @@ -291,6 +291,7 @@ static bool is_special_section(struct section *sec) · 290 unmodified lines | |||
| 291 | { | 291 | { |
| 292 | static const char * const specials[] = { | 292 | static const char * const specials[] = { |
| 293 | ".altinstructions", | 293 | ".altinstructions", |
| 294 | ".kcfi_traps", | ||
| 294 | ".smp_locks", | 295 | ".smp_locks", |
| 295 | "__bug_table", | 296 | "__bug_table", |
| 296 | "__ex_table", | 297 | "__ex_table", |