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

Ralf Habacker Ralf.Habacker@freenet.de
Thu Aug 28 20:24:00 GMT 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://cygwin.com/pipermail/cygwin/attachments/20030828/746f9da5/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-gcc3-const-var-patch.patch
Type: application/octet-stream
Size: 6581 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030828/746f9da5/attachment-0001.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list