binutils

unable to compile: unrecognized relocation 0x2a in section text

假装没事ソ 提交于 2020-05-29 03:16:17
问题 I have received an error message when compiled "make" $ make g++ -fopenmp -o lang.test main.o -I../../../include/Lheader -I../../../include -L../../../lib/ -llmi -lblas -lboost_regex -lpthread -lleveldb /usr/bin/ld: ../../../lib//liblmi.a(LMInterface.o): unrecognized relocation (0x2a) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status I cannot find any solution for above problem. GCC version and ld version are like these: $ gcc --version

unable to compile: unrecognized relocation 0x2a in section text

浪子不回头ぞ 提交于 2020-05-29 03:16:09
问题 I have received an error message when compiled "make" $ make g++ -fopenmp -o lang.test main.o -I../../../include/Lheader -I../../../include -L../../../lib/ -llmi -lblas -lboost_regex -lpthread -lleveldb /usr/bin/ld: ../../../lib//liblmi.a(LMInterface.o): unrecognized relocation (0x2a) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status I cannot find any solution for above problem. GCC version and ld version are like these: $ gcc --version

Glibc vs GCC vs binutils compatibility

丶灬走出姿态 提交于 2020-03-13 14:07:06
问题 Is there a sort of official documentation about version compatibility between binutils, glibc and GCC? I found this matrix for binutils vs GCC version compatibility. It would be good to have something like this for GCC vs glibc as well. The point I'm asking this for is that I need to know if I can build, say, cross GCC 4.9.2 with "embedded" glibc 2.2.4 to be able to support quite old targets like CentOS 5. Thank you. 回答1: it's extremely unlikely you'll be able to build such an old version of

Glibc vs GCC vs binutils compatibility

你离开我真会死。 提交于 2020-03-13 14:06:56
问题 Is there a sort of official documentation about version compatibility between binutils, glibc and GCC? I found this matrix for binutils vs GCC version compatibility. It would be good to have something like this for GCC vs glibc as well. The point I'm asking this for is that I need to know if I can build, say, cross GCC 4.9.2 with "embedded" glibc 2.2.4 to be able to support quite old targets like CentOS 5. Thank you. 回答1: it's extremely unlikely you'll be able to build such an old version of

关于gcc、glibc和binutils模块之间的关系,以及在现有系统上如何升级的总结(转)

不羁岁月 提交于 2020-03-01 07:40:24
一、关于gcc、glibc和binutils模块之间的关系 1、gcc(gnu collect compiler)是一组编译工具的总称。它主要完成的工作任务是“预处理”和“编译”,以及提供了与编译器紧密相关的运行库的支持,如libgcc_s.so、libstdc++.so等。 2、binutils提供了一系列用来创建、管理和维护二进制目标文件的工具程序,如汇编(as)、连接(ld)、静态库归档(ar)、反汇编(objdump)、elf结构分析工具(readelf)、无效调试信息和符号的工具(strip)等。通常,binutils与gcc是紧密相集成的,没有binutils的话,gcc是不能正常工作的。 3、glibc是gnu发布的libc库,也即c运行库。glibc是linux系统中最底层的api(应用程序开发接口),几乎其它任何的运行库都会倚赖于glibc。glibc除了封装linux操作系统所提供的系统服务外,它本身也提供了许多其它一些必要功能服务的实现,主要的如下: (1)string,字符串处理 (2)signal,信号处理 (3)dlfcn,管理共享库的动态加载 (4)direct,文件目录操作 (5)elf,共享库的动态加载器,也即interpreter (6)iconv,不同字符集的编码转换 (7)inet,socket接口的实现 (8)intl,国际化

Binutils stat illegal option -c

会有一股神秘感。 提交于 2020-01-13 09:44:12
问题 I use stat two times in my script once to find the file files permissions and once to find the size of the file. `stat -c %A "$directory/$file"` `stat -c %s "$directory/$file"` I am using OSX 10.7 and directory and file are variable of the current directory I am in and the file. 回答1: Darwin stat uses an -f argument, rather than -c , as it is a GNU extension. You should download the gnu binutils, either from homebrew, from macports or from fink, and then use gstat instead of stat . If you don

Building Gold linker in FreeBSD

坚强是说给别人听的谎言 提交于 2020-01-06 19:06:17
问题 I followed the steps on http://llvm.org/docs/GoldPlugin.html#lto-how-to-build to build the gold plugin on FreeBSD but ! Heres a link to the screenshot of the error:http://postimg.org/image/anlpuufbl/ This is the error message that it shows and so I am also unable to get ld-new. I checked and no CFLAGS were set in etc/make.conf. How to proceed with the installation? I am using the deault clang version supplied with FreeBSD 10.1. 回答1: I think you just need to install devel/binutils port or its