| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
|
| 7 | . "$(dirname "$0")/../lib.sh"
|
| 8 |
|
| 9 | setup
|
| 10 | build_pair special_section.c
|
| 11 |
|
| 12 | in_symbols orig.o | grep -q 'trap_marker' ||
|
| 13 | probe_skip "fixture produced no .kcfi_traps on this arch"
|
| 14 |
|
| 15 | run_diff
|
| 16 |
|
| 17 | assert_patched target
|
| 18 | assert_section ".kcfi_traps"
|
| 19 |
|
| 20 | pass ".kcfi_traps extracted despite a local label at offset 0"
|