Bug 11603 - Linker always assumes symbols with '.' are Forwarding RVA
Summary: Linker always assumes symbols with '.' are Forwarding RVA
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Dave Korn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-15 13:01 UTC by Doug Semler
Modified: 2010-06-10 00:40 UTC (History)
2 users (show)

See Also:
Host:
Target: *-mingw32 *-cygwin
Build:
Last reconfirmed:


Attachments
allow export of symbols with a dot (818 bytes, patch)
2010-05-15 13:04 UTC, Dave Korn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Semler 2010-05-15 13:01:34 UTC
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
Comment 1 Dave Korn 2010-05-15 13:04:55 UTC
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.
Comment 2 Dave Korn 2010-05-15 13:47:19 UTC
Posted at http://sourceware.org/ml/binutils/2010-05/msg00171.html.
Comment 3 Sourceware Commits 2010-06-09 18:17:32 UTC
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

Comment 4 Dave Korn 2010-06-10 00:40:31 UTC
I have to specify a comment on the change, so: "Set to fixed, because it is fixed."