Situation
The disassembler does not inform on the relocations performed when type is R_X86_64_32S with a non-null addend.
In the test.ko there is a relocation for kmalloc_caches + 0x460. The .text gets patched correctly but there is no visual indication in the disassembly. asm.comments does not provide such information either. See the patched relocation for kmalloc_caches at the address 0x08000094:
Situation The disassembler does not inform on the relocations performed when type is R_X86_64_32S with a non-null addend.
In the test.ko there is a relocation for kmalloc_caches + 0x460. The .text gets patched correctly but there is no visual indication in the disassembly.
asm.comments
does not provide such information either. See the patched relocation for kmalloc_caches at the address 0x08000094:Proposal A way to directly find out the operand corresponds to the result of a relocation. Any of the already existing mechanisms would be fine.
The information is present when
-e io.cache=false
:This is working as expected as well when the addend is 0 (test_no_addend.ko.zip):