The linker always generates forwarding RVAs when exporting symbols with '.' in them, rather than looking to see if it's an actual symbol. cf. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44139
Created attachment 4794 [details] allow export of symbols with a dot now testing this minor refactoring that lets the export of a defined symbol take precedence over any possible interpretation as a forwarder.
Posted at http://sourceware.org/ml/binutils/2010-05/msg00171.html.
Subject: Bug 11603 CVSROOT: /cvs/src Module name: src Changes by: davek@sourceware.org 2010-06-09 18:17:11 Modified files: ld : pe-dll.c ChangeLog Log message: PR ld/11603 * pe-dll.c (process_def_file_and_drectve): Reorder check for forwarded export name after check for ordinary export. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/pe-dll.c.diff?cvsroot=src&r1=1.131&r2=1.132 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2156&r2=1.2157
I have to specify a comment on the change, so: "Set to fixed, because it is fixed."