首页 > 其他分享 >Relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile wi

Relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile wi

时间:2022-08-16 19:00:21浏览次数:82  
标签:used X86 Relocation make object fPIE 64 rodata sudo

1、一种情况是由于gcc默认使用-fPIE,所以要求链接的库也必须由-fPIE库。

解决方法是在编译是加入 -no-pie

2、还有一种情况是没有吧上次make 生成的文件清理干净。导致更改参数后make时出现这中情况

  sudo make clean

       sudo make

标签:used,X86,Relocation,make,object,fPIE,64,rodata,sudo
From: https://www.cnblogs.com/Maker-Liu/p/16592611.html

相关文章