[patch] ld [pei]: Do not produce code thunks for DATA exports
Paul Sokolovsky
paul-ml@is.lg.ua
Wed Oct 4 23:00:00 GMT 2000
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils.diff.3
Type: text/x-diff
Size: 3255 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20001004/0b69e860/attachment.bin>
More information about the Binutils
mailing list