Ejemplo n.º 1
0
        internal ElfObjectFile(bool addDefaultSections)
        {
            _segments = new List <ElfSegment>();
            _sections = new List <ElfSection>();
            Layout    = new ElfObjectLayout();

            if (addDefaultSections)
            {
                AddSection(new ElfNullSection());
                AddSection(new ElfProgramHeaderTable());
            }
        }
Ejemplo n.º 2
0
        internal ElfObjectFile(bool addDefaultSections)
        {
            _segments = new List <ElfSegment>();
            _sections = new List <ElfSection>();
            FileClass = ElfFileClass.Is64;
            OSABI     = ElfOSABI.NONE;
            Encoding  = ElfEncoding.Lsb;
            FileType  = ElfFileType.Relocatable;
            Arch      = ElfArch.X86_64;
            Version   = ElfNative.EV_CURRENT;
            Layout    = new ElfObjectLayout();

            if (addDefaultSections)
            {
                AddSection(new ElfNullSection());
                AddSection(new ElfProgramHeaderTable());
            }
        }