This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] ld [pei]: Do not produce code thunks for DATA exports
- To: binutils at sources dot redhat dot com
- Subject: [patch] ld [pei]: Do not produce code thunks for DATA exports
- From: Paul Sokolovsky <paul-ml at is dot lg dot ua>
- Date: Wed, 4 Oct 2000 21:33:01 +0200
- Reply-To: Paul Sokolovsky <paul-ml at is dot lg dot ua>
Hello binutils,
This is forward port of the same facility in dlltool. It is very
important to distinguish between data and text exports, and generate
appropriate to each type implib info, otherwise careless using dlls
may cause confusing runtime segfaults, whereas with this patch there
will be a link error.
Also note that this patch deduces DATA flag only for explicit
.def/auto-export case; there are also cases of specifying exports in
.drectve, and linking directly against dll. I'll go for them later.
2000-10-04 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
* pe-dll.c (make_one): Do not generate code thunk for DATA
exports. (process_def_file): deduce DATA flag for
auto-export sumbols.
--
Paul Sokolovsky, IT Specialist
http://www.brainbench.com/transcript.jsp?pid=11135
binutils.diff.3