This allows checking dynamic relocation addends for -z rel and
--apply-dynamic-relocs output.
Depends on D101451 (not functionally, just to apply cleanly)
Differential D101455
[ELF] Implement RISCV::getImplicitAddend() arichardson on Apr 28 2021, 6:59 AM. Authored by
Details
This allows checking dynamic relocation addends for -z rel and Depends on D101451 (not functionally, just to apply cleanly)
Diff Detail
Event TimelineComment Actions Honestly this seems rather academic, surely we should just mandate Elf_Rela for RISC-V? I've filed https://github.com/riscv/riscv-elf-psabi-doc/issues/186. Comment Actions I don't think this should be a supported configuration, but it appears that -z rel is being used with AArch64, so it might make sense to allow it for RISC-V too. Comment Actions AAELF64 explicitly permits both, whereas RISC-V is silent on the matter and AFAIK nobody is using Elf_Rel because why would you inflict that pain upon yourself. Comment Actions Looks reasonable to me. The base patches need a bit more work, though. I think the overall complexity (generic code plus target-specific code) supporting REL isn't that high.
|
The value at this location is not used.
ld.so implementations don't use addend for JUMP_SLOT/GLOB_DAT. NONE is just ignored.