This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Why GNU LD puts ".?tor*" sections into ".text" section when linking a PE image?


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


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