This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] ld [pei]: Do not produce code thunks for DATA exports


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]