diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-10-05 10:02:54 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-10-05 10:02:54 -0700 |
| commit | 742adaa16db994ba1748465b95548e2f28aa18ca (patch) | |
| tree | 77f1ac112398a95257d804c18a41a8f687d13a79 /arch/openrisc/kernel/module.c | |
| parent | 21fbefc5886cc38cf7b57b28c35bd619efbce914 (diff) | |
| parent | 8c30b0018f9d93391573e091960d257fd9de120a (diff) | |
Merge tag 'for-linus' of https://github.com/openrisc/linux
Pull OpenRISC updates from Stafford Horne:
"I picked up one series from Chen Miao, our Google Summer of Code
contributor, which adds OpenRISC support for static keys"
* tag 'for-linus' of https://github.com/openrisc/linux:
openrisc: Add jump label support
openrisc: Regenerate defconfigs.
openrisc: Add R_OR1K_32_PCREL relocation type module support
openrisc: Add text patching API support
Diffstat (limited to 'arch/openrisc/kernel/module.c')
| -rw-r--r-- | arch/openrisc/kernel/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/module.c b/arch/openrisc/kernel/module.c index c9ff4c4a0b29..4ac4fbaa827c 100644 --- a/arch/openrisc/kernel/module.c +++ b/arch/openrisc/kernel/module.c @@ -55,6 +55,10 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, value |= *location & 0xfc000000; *location = value; break; + case R_OR1K_32_PCREL: + value -= (uint32_t)location; + *location = value; + break; case R_OR1K_AHI16: /* Adjust the operand to match with a signed LO16. */ value += 0x8000; |