Commit 8e86ebe
committed
modpost: continue even with unknown relocation type
Currently, unknown relocation types are just skipped.
The value of r_addend is only needed to get the symbol name in case
is_valid_name(elf, sym) returns false.
Even if we do not know how to calculate r_addend, we should continue.
At worst, we will get "(unknown)" as the symbol name, but it is better
than failing to detect section mismatches.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>1 parent 8aa00e2 commit 8e86ebe
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
1270 | 1272 | | |
1271 | 1273 | | |
1272 | 1274 | | |
| |||
1382 | 1384 | | |
1383 | 1385 | | |
1384 | 1386 | | |
1385 | | - | |
| 1387 | + | |
1386 | 1388 | | |
1387 | 1389 | | |
1388 | 1390 | | |
| |||
1392 | 1394 | | |
1393 | 1395 | | |
1394 | 1396 | | |
1395 | | - | |
1396 | | - | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
| |||
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
1408 | 1410 | | |
1409 | 1411 | | |
1410 | 1412 | | |
| |||
1514 | 1516 | | |
1515 | 1517 | | |
1516 | 1518 | | |
1517 | | - | |
| 1519 | + | |
1518 | 1520 | | |
1519 | 1521 | | |
1520 | 1522 | | |
1521 | | - | |
1522 | | - | |
| 1523 | + | |
1523 | 1524 | | |
1524 | 1525 | | |
1525 | | - | |
1526 | | - | |
| 1526 | + | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
1530 | | - | |
| 1529 | + | |
1531 | 1530 | | |
1532 | 1531 | | |
1533 | 1532 | | |
| |||
0 commit comments