From: RomikB <ro...@ma...> - 2003-06-20 12:23:34
|
Hello Luke, Friday, June 20, 2003, 1:02:46 PM, you wrote: LD> First please see this page about what information you need to include when LD> reporting a problem: http://www.mingw.org/bugs.shtml LD> I can't reproduce this with a trivial example so you'll need to provide a LD> small test case, and you can try comparing the DLLs yourself to find out LD> what is changing with "-s", for example with this command: LD> objdump -p file.dll In gcc manual(linker options): -s Remove all symbol table and relocation information from the executable. In ld manual: -s, -strip-all Omit all symbol information from the output file. So when i using -s I lost relocation information, but .reloc section still exist, and dll's that have the same or crossing base addreses can't be loaded succesfuly. GCC 3.2.3 MinGW 2.0.0-3 GNU ld version 2.13.90 20030104 >> I create a set of dll's. >> I use: >> gcc -O2 -shared -Wl,-s -o file.dll file.c >> But when i try load them, I get an error: not all dll's can be loaded. >> When I remove -Wl,-s switch a problem disapear, but dll's now it TOOO >> BIG. >> Please answer how can I reduse the size of dll. >> (I don't need debug or symbol info. Need only relocation info.) -- Best regards, RomikB mailto:ro...@ma... |