I have installed a new glibc in /root/tools/ in debian which already has a pre-installed glibc. For testing the new glibc, I type : produces a.out, then type: it shows But type ls -l /root/tools/lib/ld-linux-x86-64.so.2 , it shows /root/tools/lib/ld-linux-x86-64.so.2 -> ld-2.33.so Why does ld.so in new gli…
Tag: binutils
How to embed data in shared library?
For example, I want to embed dicmap.bin to a shared library libxxx.so. I write a program to verify it. But its _start, _end and _size is invalid. end-start and size should be sizeof dicmap.bin (198600798). My objcopy is binutils-2.30-54.el7 of rhel7 with devtoolset-8. I try to add share flags to the .o file, …