Opened 14 years ago

Last modified 12 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 Changed 13 years ago by bird

Milestone: libc-0.6.4

comment:2 Changed 13 years ago by bird

Status: newassigned

comment:4 Changed 12 years ago by Yuri Dario

This has been fixed in gcc 4.4.6.

comment:5 Changed 12 years ago by bird

Milestone: libc-0.6.5libc-0.7
Note: See TracTickets for help on using tickets.