Versions in this module Expand all Collapse all v0 v0.5.1 Jul 21, 2023 Changes in this version + const Header64Size + const ProgramHeader64Size + const SectionHeader64Size + type ELF64 struct + Programs []*Program + Sections []*Section + func New(a *asm.Assembler) *ELF64 + func (elf *ELF64) AddProgram(data []byte, typ ProgramType, flags ProgramFlags) + func (elf *ELF64) AddSection(data []byte, typ SectionType, flags SectionFlags) + func (elf *ELF64) WriteToFile(fileName string) error + type Header64 struct + ABIVersion byte + Architecture int16 + Class byte + Endianness byte + EntryPointInMemory int64 + FileVersion int32 + Flags int32 + Magic [4]byte + OSABI byte + ProgramHeaderEntryCount int16 + ProgramHeaderEntrySize int16 + ProgramHeaderOffset int64 + SectionHeaderEntryCount int16 + SectionHeaderEntrySize int16 + SectionHeaderOffset int64 + SectionNameStringTableIndex int16 + Size int16 + Type int16 + Version byte + type Program struct + Data []byte + Header ProgramHeader64 + Padding []byte + type ProgramFlags int32 + const ProgramFlagsExecutable + const ProgramFlagsReadable + const ProgramFlagsWritable + type ProgramHeader64 struct + Align int64 + Flags ProgramFlags + Offset int64 + PhysicalAddress int64 + SizeInFileImage int64 + SizeInMemory int64 + Type ProgramType + VirtualAddress int64 + type ProgramType int32 + const ProgramTypeDYNAMIC + const ProgramTypeINTERP + const ProgramTypeLOAD + const ProgramTypeNOTE + const ProgramTypeNULL + const ProgramTypePHDR + const ProgramTypeSHLIB + const ProgramTypeTLS + type Section struct + Data []byte + Header SectionHeader64 + Padding []byte + type SectionFlags int64 + const SectionFlagsAllocate + const SectionFlagsExecutable + const SectionFlagsWritable + type SectionHeader64 struct + Align int64 + EntrySize int64 + Flags SectionFlags + Info int32 + Link int32 + NameOffset int32 + Offset int64 + SizeInFileImage int64 + Type SectionType + VirtualAddress int64 + type SectionType int32 + const SectionTypeDYNAMIC + const SectionTypeDYNSYM + const SectionTypeHASH + const SectionTypeNOBITS + const SectionTypeNOTE + const SectionTypeNULL + const SectionTypeNUM + const SectionTypePROGBITS + const SectionTypeREL + const SectionTypeRELA + const SectionTypeSHLIB + const SectionTypeSTRTAB + const SectionTypeSYMTAB