[patch i386]: always allow for pe-coff that relocations can be put into readonly memory

2012-06-27 Thread Kai Tietz
Hello, this patch makes sure that for pe(+)-coff targets always relocations are allowed in readonly memory. This fixes for x86_64-w64-mingw32 target some testcases. ChangeLog 2012-06-27 Kai Tietz * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function. *

Re: [patch i386]: always allow for pe-coff that relocations can be put into readonly memory

2012-06-27 Thread Mike Stump
On Jun 27, 2012, at 1:13 PM, Richard Henderson wrote: Would it be of any use to introduce an .rdata$N section (equivalent to .data.ro) so that most of the runtime relocations are adjacent, and more of the executable image is sharable? I can't help but think that grouping them together would be

Re: [patch i386]: always allow for pe-coff that relocations can be put into readonly memory

2012-06-27 Thread Kai Tietz
2012/6/27 Richard Henderson r...@redhat.com: On 06/27/2012 12:47 PM, Kai Tietz wrote: 2012-06-27  Kai Tietz       * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.       * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add       prototype.       * config/i386/cygming.h