Constant assignment in the link stage
Jacob Wang
Jacob.Wang@synopsys.com
Mon Feb 15 05:31:55 GMT 2021
Hi,
Currently, many NPUs only support fixed constant loops, and many MPUs only support immediate shift instructions.
Therefore, it is a reasonable requirement to relocate constants during linking or even dynamic loading.
I tried to use R_X86_64_32 relocation,
a) in the partial link, the R_x86_64_32 is not resolved.
b) in the shared object, the R_x86_64_32 relocation is not supported.
It is recommended to add R_x86_64_CONST_32 relocation
a) Assignment of absolute immediate data in the partial link stage and,
b) Assignment of immediate data in the dynamic loading of a single instance.
Best Regards
Jacob Wang
AI Laboratory, Synopsys Inc.
Email: Jacob.wang@synopsys.com<mailto:Jacob.wang@synopsys.com>
More information about the Binutils
mailing list