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. _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel