ld
In shared library's constructor (_init section), how to know what function is interrupted?
On x86 linux, process A.exe invokes dlopen() to load a sha开发者_运维知识库red library B.so. In B.so, there\'s a constructor, who wants to know which function in process A.exe is interrupted right bef[详细]
2023-03-22 01:06 分类:问答How to remove unused C/C++ symbols with GCC and ld?
I need to optimize the size of my executable severely (ARM development) and I noticed that in my current build scheme (gcc + ld) unused symbols are not getting stripped.[详细]
2023-03-20 08:25 分类:问答compling error on libmicrohttpd using ld
http://www.gnu.org/s/libmicrohttpd/tutorial.html#Hello-browser-example gcc helloworld.c-lmicrohttpd -I/opt/local/include/[详细]
2023-03-19 18:04 分类:问答Linux shared library global constructors interdependency
Operating system Centos 5.6 i686 2.6.18-53.1.4.el5vm. gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) ld version 2.17.50.0.6-6.el5 20061020[详细]
2023-03-19 03:58 分类:问答LD_PRELOAD changes the LD_LIBRARY_PATH
I am having a peculiar problem. I have a shared library \'my_tracker.so\' that I built using gcc-4.2. This shared library now has a dependency on libgcc_s.so.1 (GCC 4.2). I did \'ldd my_tracker.so\' a[详细]
2023-03-19 03:33 分类:问答Using -dynamic-linker with a linker script?
I am using Linux 2.6.31-14 on Intel 32-bit processor. C file: #include <stdio.h> main() { printf(\"Hello World!\\n\");[详细]
2023-03-19 01:08 分类:问答OpenSSL error building Erlang OTP from source
Trying to build a completely self-contained OTP that can be moved around independently of libs installed on a system.[详细]
2023-03-18 08:14 分类:问答linking libraries under Linux
I exp开发者_开发技巧erienced a (for me) strange behaviour today: Using QMake with the PkgConfig-options etc. I was able to link the opencv libraries, but then I switched to CMake using PkgConfig. Once[详细]
2023-03-17 15:10 分类:问答ld: library not found for -llinphone
I am facing linker error in Xcode, I compiled Iphone code in Mac Virtual Machine (snow leopard 10.6.6) by following instruction in it Readme file for Mac OS, It compiled successfully,[详细]
2023-03-17 03:08 分类:问答Why does the -r option (relocatable) make ld not find any libraries?
Running Debian/Linux x86_64 with GNU ld 2.21. Quite simply, if I link with ld -o main main.o /usr/lib/crti.o /usr/lib/crt1.o /usr/lib/crtn.o -lc -lm[详细]
2023-03-16 22:54 分类:问答