Why GNU LD puts ".?tor*" sections into ".text" section when linking a PE image?
Nick Clifton
nickc@redhat.com
Mon Dec 5 15:08:00 GMT 2016
Hi Igor,
> I've checked the behavior of MS tools and it looks like they use input
> sections ".CRT$XCU" for the same tasks as "ctor*" sections. The content
> of these sections goes to ".rdata" output section.
>
> I'm going to propose a patch to make the behavior of GNU ld more close
> to MS tools. What do you think?
I think that this is an excellent idea. You will need to be a bit paranoid
and run lots of tests I think - just to make sure that the patch does not
break anything. But in principle I am all for this patch.
Cheers
Nick
More information about the Binutils
mailing list