R_RISCV_ALIGN semantics .
Umesh Kalappa
umesh.kalappa0@gmail.com
Fri Jul 31 08:32:22 GMT 2020
Hi All,
We have loadable kernel module for our custom OS ,where we do partial
linking and by default LLVM enable relaxation for RISCV and for some
instance we need to enable relaxation and need to get rid of R_RISCV_ALIGN
relocs and for other relocs we just patch the address and don't do any code
size linker optimisations .
So given this scenario ,we are trying to address the R_RISCV_ALIGN reloc at
load time and currently we are patching the nop with pad value like default
zero or any value .
patching pad values is the right R_RISCV_ALIGN semantics in our scenario ?
Thank you
~Umesh
More information about the Binutils
mailing list