出现“warning: creating dt_textrel in a pie”和“collect2: error: ld returned 1 exit status”错误通常是因为在生成位置无关可执行文件(PIE)时,链接器尝试将某些需要重定位的代码或数据放入了只读段中。 错误分析 DT_TEXTREL警告: 原因:当链接器尝试在只读段(通常是.text段)中创建重定位项时,会发出此警告...
> a dynamic library (on Linux) > warning: creating a DT_TEXTREL in object This means that you are including an object in the shared library which was compiled without the -fpic option. --->8--- http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2005-06/0060...
When compiling a library with the intel compiler icpc, I get the following warning: ld: warning: creating a DT_TEXTREL in object This happens with icc-9.0.030 and ld-2.16.1. However, this doesn't happen on a similar system but with ld-2.15. Is somethin