Example #1
0
 public override void VisitSectionCollection(SectionCollection coll)
 {
     for (int i = 0; i < m_image.PEFileHeader.NumberOfSections; i++)
     {
         coll.Add(new Section());
     }
 }
Example #2
0
        public override void VisitSectionCollection(SectionCollection coll)
        {
            Section text = new Section();

            text.Name            = Section.Text;
            text.Characteristics = SectionCharacteristics.ContainsCode |
                                   SectionCharacteristics.MemoryRead | SectionCharacteristics.MemExecute;
            m_image.TextSection = text;

            Section reloc = new Section();

            reloc.Name            = Section.Relocs;
            reloc.Characteristics = SectionCharacteristics.ContainsInitializedData |
                                    SectionCharacteristics.MemDiscardable | SectionCharacteristics.MemoryRead;

            coll.Add(text);
            coll.Add(reloc);
        }
Example #3
0
 public override void VisitSectionCollection(SectionCollection coll)
 {
     for (int i = 0; i < m_image.PEFileHeader.NumberOfSections; i++)
         coll.Add (new Section ());
 }
Example #4
0
        public override void VisitSectionCollection(SectionCollection coll)
        {
            Section text = new Section ();
            text.Name = Section.Text;
            text.Characteristics = SectionCharacteristics.ContainsCode |
                SectionCharacteristics.MemoryRead | SectionCharacteristics.MemExecute;
            m_image.TextSection = text;

            Section reloc = new Section ();
            reloc.Name =  Section.Relocs;
            reloc.Characteristics = SectionCharacteristics.ContainsInitializedData |
                SectionCharacteristics.MemDiscardable | SectionCharacteristics.MemoryRead;

            coll.Add (text);
            coll.Add (reloc);
        }