Bertho Stultiens <[EMAIL PROTECTED]> writes:
> This is not covered in elf-dlls because libwine.so will never occur in
> the dll-list (it is not a dll).
But we will want to do that for all dlls, not only for libwine.so.
> If you can do with the PE-header anywhere, then you must adjust the RVAs
> to be negative (they should wrap). I don't know whether VC will like it,
> but it should basically not complain here.
I don't think we should rely on negative offsets to work, so we
probably want a linker script to put the PE header first. Also we
probably should ensure that it is 64k aligned, which I don't think you
can do directly with a link directive. I'd suggest reserving a 64k+
block before the .text section and build the PE header in there at
run-time.
> You can't get the absolute
> addresses of .text and .data/.rodata normally, but you can link in a
> couple of dummy objects that declare some global labels in each
> section.
If we have a linker script we should be able to declare symbols
directly in there, which will make things somewhat easier.
--
Alexandre Julliard
[EMAIL PROTECTED]