[PATCH] gcc3/ld patch for direct-linking-to-dll and auto-import support

Ralf Habacker Ralf.Habacker at freenet.de
Thu Aug 28 22:59:34 CEST 2003


Hi

while compiling trolltechs qt/xfree library with gcc3 (3.2x) on cygwin I
recognized, that the auto-import stuff in combination of recent ld does not work
in case of const variables in a dll when using direct linking to a dll, because
gcc put those variables into a readonly, that means the .text section.

The patch and a testcase is appended. A documentation could be found in the
patch file.

A binary update (only containing ld) could be found here:

http://kde-cygwin.sourceforge.net/snapshots/ld-gcc3-const-var-patch.tar.bz2


Cheers
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-gcc3-const-var-patch-testcase.tar.bz2
Type: application/octet-stream
Size: 882 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20030828/746f9da5/ld-gcc3-const-var-patch-testcase.tar.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-gcc3-const-var-patch.patch
Type: application/octet-stream
Size: 6580 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20030828/746f9da5/ld-gcc3-const-var-patch.obj


More information about the kde-cygwin mailing list