From: Lado B. <lbrisar@MailAndNews.com> - 2000-09-20 18:12:44
|
On 19 Sep 2000, at 19:21, Earnie Boyd wrote: > I wasn't being sarcastic, I was actually trying to find out if it was > or wasn't. The next question would be, should it, and if so does > someone want to supply a patch to gcc/binutils to allow it to? IMHO, there's no need to make a patch. I can use "-Wl,--file-alignment" option in my makefile. When commandline equivalents exists, we don't need additional pragmas. The situation is worse when I can't find the commandline equivalents for msvc options. For example, I've found that mingw always produces larger dll's than msvc. The reason is simple, mingw dll has more sections (8 vs 6 for one project) and image size is therefore at least 8K larger. Also, in msvc it's even possible to merge some segments with /MERGE linker option; the resulted dll has then only 5 or 4 sections. Unfortunately, I don't know how can I force ld to use less sections?? Is this possible through ld scripts? There are 5 files in ldscripts directory, 3 of them are identical and I didn't find any documentation about these files. Regards, Lado Brisar. http://lbrisar.htmlplanet.com |