.so dynamic library mangling tool

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Mon Dec 6 18:14:09 UTC 2004


On Mon, 6 Dec 2004, Steve Harvey wrote:

> On Mon, Dec 06, 2004 at 10:31:49AM +0200, Peter L. Peres wrote:
>>
>> On Sun, 5 Dec 2004, Steve Harvey wrote:
>>
>>> On Sun, Dec 05, 2004 at 06:35:41PM +0200, Peter L. Peres wrote:
>>>>
>>>> Also try to use the flags --whole-archive and --export-all-symbols . Be
>>>> careful what you do with libc, it can break the system. Imho try to make a
>>>> chrooted environment for experimenting.
>>>
>>> Isn't --export-all-symbols used only for building (Windows) DLLs?
>>> My version of ld doesn't recognize it as an option.  I agree that
>>> modifying libc should be done *gingerly*.
>>
>> Yesterday mine took it under linux.
>
>  Excised from the output of  ld --help   (Slackware 9.0)
>
> ld: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32
>    elf64-x86-64 elf64-little elf64-big elf32-little elf32-big
>    srec symbolsrec tekhex binary ihex trad-core
> ld: supported emulations: elf_i386 i386linux elf_x86_64
>
>  Perhaps your build of ld includes support for the i386 PE target.

It does, and you are right, it is not what is needed here.

I went and I looked in my records:

-shared -fpic -nostdlib

was what I used to make a .so library.

Also, I had luck using ar on *.a libs to do relinking. The .so relinking 
above *should* work imho but I just checked using an old example of 
mine and it does not.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list