[patch PE-COFF]: Some minor nits
Tue Mar 17 09:07:00 GMT 2009
Dave Korn <firstname.lastname@example.org> wrote on 17.03.2009 00:15:12:
> Kai Tietz wrote:
> > Hello,
> Hi Kai,
> > Some minor nits I found in coffcode.h. One is that debugging sections
> > to have readonly flag set (abstracted by the section flags of '.debug'
> > pe-coff spec).
> Can you point us at a reference for this? And have you run the GDB
> testsuite to see if it causes any changes? (As I discovered recently,
> sometimes the other tools have come to depend on these minor
> of ours!)
Well, see pe-coff-v8 specification in section "46 Special Sections". Here
are the used section flags given.
I tested it with gdb for w64 and found no regression here. Other platforms
I didn't tested with gdb, just by binutil's testsuite.
> > Secondly a clean-up about NOREAD sections.
> http://www.national.com/rap/files/datasheet.pdf :)
> > I introduced a helper flag for
> > section's flags to indicated, that a section has no memory flag set,
> > I tested this patch for i686-pc-cygwin and for x86_64-pc-ming32 and
> > regressions on testrun.
> Does anything actually currently use NOREAD?
Heh, I don't thought about write-only ram. It is more near than that. See
e.g ".cormeta" (for .NET), ".idlsym", and ".drective".
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
More information about the Binutils