Opened 15 years ago
Last modified 13 years ago
#216 assigned defect
32Kb limit building .dll files
Reported by: | dmacias | Owned by: | bird |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.7 |
Component: | gcc | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
In Harbour for OS/2 development ( www.harbour-project.org ) we face from long time a problem using os2gcc compilers when we try to build some .dll files
Tracing I found an now famous 32 Kb limit:
Somewhere gcc is using 32 Kb limit for our case
gcc --> emxomfld.exe ( ld.exe )
( or is OS/2 limit ? :-) )
Below are first quick and clear Knut St. Osmundsen response
Thanks, David Macias
Yes, this is an OS/2 limitation. The usual workaround is to pass the arguments in a response file (emxomfld @filename.rsp). Without checking all the relevant code, I'm pretty sure that the compiler/linker driver (gcc) will not create a response file when invoking sub programs like as, ld or emxomfld. The easiest way to hack it into doing this would be to change pexecute() in libiberty/pexecute.c to create a response file for arguments exceeding, say, 24 KB. http://svn.netlabs.org/libc/browser/branches/libc-0.6/src/gcc/libiberty/pexecute.c#L803
Change History (5)
comment:1 by , 14 years ago
Milestone: | → libc-0.6.4 |
---|
comment:2 by , 14 years ago
Status: | new → assigned |
---|
comment:3 by , 14 years ago
comment:5 by , 13 years ago
Milestone: | libc-0.6.5 → libc-0.7 |
---|
mozilla is running into this as well: https://bug648134.bugzilla.mozilla.org/attachment.cgi?id=524988 (https://bugzilla.mozilla.org/show_bug.cgi?id=648134).