Commit 9850db7
committed
elf_reader: tolerate untyped/local map relocations from llvm 7/9
Symbols for anonymous constants are somewhat irregular on older versions
of LLVM. This commit relaxes the constraints on symbols those compilers
emit map relocations against.
LLVM 7:
1: 0000000000000000 0 NOTYPE LOCAL DEFAULT 16 .Lconstinit.1
LLVM 9:
1: 0000000000000000 32 OBJECT LOCAL DEFAULT 22 .Lconstinit.1
LLVM 14 has these symbols correctly sanitized.
Signed-off-by: Timo Beckers <[email protected]>1 parent 1e37e4f commit 9850db7
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
| 472 | + | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
477 | 486 | | |
478 | 487 | | |
479 | 488 | | |
| |||
0 commit comments