tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] constructor/destructor support


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] constructor/destructor support
Date: Tue, 26 Nov 2019 08:06:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

Sorry for the delay. I had a long vacation.

Before I went on vacation I read some Microsoft documentation.
This documentation send me in the wrong direction.
So the patch is now much simpler (see attachment).

Regards,

    Herman

On 2019-10-30 15:58, Michael Matz wrote:
Hi,

On Wed, 30 Oct 2019, Herman ten Brugge via Tinycc-devel wrote:

I had a good night sleep and realized that I could copy the .init/.fini
arrays relocations to the text section
Why to the text section (and not, say .data, .init_array contains
pointers, not code), and why copying at all?  The link process (i.e.
pe_assign_addresses) merely needs to make sure that .init/.fini becomes
part of the loaded image (which should already be the case without any
changes?), then the start/stop symbols (why aren't you using
add_init_array_defines?) point to the correct areas in that image and
should be accessible just fine from the crt startup code.


Ciao,
Michael.

Attachment: patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]