Lines Matching refs:elf
15 package elf package
88 ident := [elf.EI_NIDENT]byte{}
89 identBuf := bytes.NewBuffer(ident[0:0:elf.EI_NIDENT])
91 binary.Write(identBuf, binary.LittleEndian, elf.ELFCLASS64)
92 binary.Write(identBuf, binary.LittleEndian, elf.ELFDATA2LSB)
93 binary.Write(identBuf, binary.LittleEndian, elf.EV_CURRENT)
94 binary.Write(identBuf, binary.LittleEndian, elf.ELFOSABI_LINUX)
97 header := elf.Header64{
99 Type: uint16(elf.ET_EXEC),
100 Machine: uint16(elf.EM_X86_64),
101 Version: uint32(elf.EV_CURRENT),
103 Phoff: uint64(binary.Size(elf.Header64{})),
104 Shoff: uint64(binary.Size(elf.Header64{})),
106 Ehsize: uint16(binary.Size(elf.Header64{})),
122 ident := [elf.EI_NIDENT]byte{}
123 identBuf := bytes.NewBuffer(ident[0:0:elf.EI_NIDENT])
125 binary.Write(identBuf, binary.LittleEndian, elf.ELFCLASS64)
126 binary.Write(identBuf, binary.LittleEndian, elf.ELFDATA2LSB)
127 binary.Write(identBuf, binary.LittleEndian, elf.EV_CURRENT)
128 binary.Write(identBuf, binary.LittleEndian, elf.ELFOSABI_LINUX)
131 header := elf.Header64{
133 Type: uint16(elf.ET_EXEC),
134 Machine: uint16(elf.EM_X86_64),
135 Version: uint32(elf.EV_CURRENT),
137 Phoff: uint64(binary.Size(elf.Header64{})),
138 Shoff: uint64(binary.Size(elf.Header64{})),
140 Ehsize: uint16(binary.Size(elf.Header64{})),