fpic
Compiling ghc with -fPIC support
I\'m trying to install GHC with -fPIC support in Fedora. I\'ve grabbed a source tarball since it seems no binary one has this.[详细]
2023-04-11 06:05 分类:问答Why is fPIC absolutely necessary on 64 and not on 32bit platforms?
I recently received a: ...relocation R_X86_64_32 against `a local symbol\' can not be used when making a shared object; recompile with -fPIC[详细]
2023-03-31 09:41 分类:问答PIC on OSX's GCC
Why does th开发者_运维知识库e GCC on OSX 10.5 has the -fPIC option turned on by default? Afterall, doesn\'t it generate larger and slower code?Unless your program has a lot of very small functions, al[详细]
2023-03-28 05:13 分类:问答Avoiding linking against static libraries when using libtool
I am trying to cross compile ImageMagick on a linux machine. The libstdc++.a that comes with the toolchain is not compiled with fPIC. I would like to use the so 开发者_运维技巧file instead. However li[详细]
2023-03-22 07:18 分类:问答PIC (Position Independedent Code)
Is there any way to check if开发者_Go百科 an object file(.o file) is PIC-enabled?Not sure how portable this is, but for x86 and x86_64, ELF format, you can use readelf -r and look at the relocation ty[详细]
2023-03-02 19:40 分类:问答Mixing static libraries and shared libraries
I have a project where I have one static library libhelper.a and another with my actual shared object library, libtestlib.so. My goal is to link libhelper.a i开发者_如何转开发nto libtestlib.so. Is tha[详细]
2023-02-20 01:58 分类:问答GCC -fPIC option
I have read about GCC\'s Options for Code Generation Conventions, but could not understand wh开发者_Go百科at \"Generate position-independent code (PIC)\" does. Please give an example to explain me wha[详细]
2023-02-16 18:44 分类:问答Problems with static local variables with relocatable code
I am building a project which has relocatable code on bare metal.It is a Cortex M3 embedded application.I do not have a dynamic linker and have implemented all the relocations in my startup code.[详细]
2023-02-12 18:17 分类:问答Is there a way to determine that a .a or .so library has been compiled as position indepenent code?
I am getting a linking error when compiling the numpy library a开发者_如何学Gogainst lapack indicating I need to compile lapack with -fPIC.I thought I had done just that.Is there a way to determine th[详细]
2023-01-12 13:21 分类:问答Generating %pc relative address of constant data
Is there a way to have gcc generate %pc relative addresses of constants?Even when the string appears in the text segment, arm-elf-gcc will generate a constant pointer to the data, load the address of[详细]
2023-01-01 08:20 分类:问答