Commit 4267cbc
committed
btf: return an error if type has no signedness
Refuse to create a fixup for reloFieldSigned if the type isn't an
Int or an Enum. On clang-14 it's not even possible to create such
a relocation, so no need to be extra lenient.
Add a unit test since we can't get clang to emit a wonky relocation.
Signed-off-by: Lorenz Bauer <[email protected]>1 parent 9faf24e commit 4267cbc
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
464 | | - | |
| 466 | + | |
465 | 467 | | |
466 | 468 | | |
467 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
676 | 684 | | |
677 | 685 | | |
678 | 686 | | |
| |||
0 commit comments