diff options
| author | Fangrui Song <maskray@google.com> | 2019-07-03 15:38:59 +0000 | 
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-07-03 15:38:59 +0000 | 
| commit | 4e225deab4de4c0c9ca353e611b1a5b1c7d89ec2 (patch) | |
| tree | c0867f35d2239ba2d3f827bd7201d8a7a7539e4d /llvm/lib | |
| parent | b9bc9f67f573dc5bc1bc4546bfee85877cae4061 (diff) | |
| download | bcm5719-llvm-4e225deab4de4c0c9ca353e611b1a5b1c7d89ec2.tar.gz bcm5719-llvm-4e225deab4de4c0c9ca353e611b1a5b1c7d89ec2.zip | |
[ELF][RISCV] Error on R_RISCV_PCREL_LO12_[IS] that point to absolute symbols
The referenced symbol is expected to point to an R_RISCV_*_HI20
relocation. An absolute symbol has no associated section, therefore
there cannot be a matching R_RISCV_*_HI20.
This fixes the crash reported by PR42038. For reference, ld.bfd errors:
    (.init+0x4): dangerous relocation: %pcrel_lo missing matching %pcrel_hi
Differential Revision: https://reviews.llvm.org/D63273
llvm-svn: 365049
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

