This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: --enable-runtime-pseudo-reloc support in cygwin, take 3.


Hi!

Monday, 02 December, 2002 Earnie Boyd earnie_boyd@yahoo.com wrote:

EB> egor duda wrote:
>> Monday, 02 December, 2002 egor duda deo@logos-m.ru wrote:
>> 
>> ed> 2002-12-02  Egor Duda <deo@logos-m.ru>
>> ed>         * cygwin/lib/pseudo-reloc.c: New file.
>> 
>> I guess i should put it to the public domain, so that mingw folks can
>> also use it.
>> 

EB> Is it usable without Cygwin?

Yes. It doesn't use any cygwin functionality. Recent binutils should
export __RUNTIME_PSEUDO_RELOC_LIST__ and __RUNTIME_PSEUDO_RELOC_LIST_END__
symbols for all PE-based targets, including Mingw.

I'm not that familiar with Mingw internals, but you just have to
add a call to _pei386_runtime_relocator() to the application startup
(to the crt2.o, IIRC) and link with pseudo-reloc.o.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


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