Home
last modified time | relevance | path

Searched refs:ELF (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp71 llvm::ELF::SHT_PROGBITS, in initStdSections()
72 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_EXECINSTR, in initStdSections()
76 llvm::ELF::SHT_NULL, in initStdSections()
80 llvm::ELF::SHT_PROGBITS, in initStdSections()
81 llvm::ELF::SHF_ALLOC, in initStdSections()
86 llvm::ELF::SHT_NOBITS, in initStdSections()
87 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections()
91 llvm::ELF::SHT_PROGBITS, in initStdSections()
96 llvm::ELF::SHT_PROGBITS, in initStdSections()
97 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections()
[all …]
DELFDynObjFileFormat.cpp22 llvm::ELF::SHT_DYNSYM, in initObjectFormat()
23 llvm::ELF::SHF_ALLOC, in initObjectFormat()
27 llvm::ELF::SHT_STRTAB, in initObjectFormat()
28 llvm::ELF::SHF_ALLOC, in initObjectFormat()
32 llvm::ELF::SHT_PROGBITS, in initObjectFormat()
33 llvm::ELF::SHF_ALLOC, in initObjectFormat()
37 llvm::ELF::SHT_HASH, in initObjectFormat()
38 llvm::ELF::SHF_ALLOC, in initObjectFormat()
42 llvm::ELF::SHT_DYNAMIC, in initObjectFormat()
43 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initObjectFormat()
[all …]
DELFExecFileFormat.cpp23 llvm::ELF::SHT_DYNSYM, in initObjectFormat()
24 llvm::ELF::SHF_ALLOC, in initObjectFormat()
28 llvm::ELF::SHT_STRTAB, in initObjectFormat()
29 llvm::ELF::SHF_ALLOC, in initObjectFormat()
33 llvm::ELF::SHT_PROGBITS, in initObjectFormat()
34 llvm::ELF::SHF_ALLOC, in initObjectFormat()
38 llvm::ELF::SHT_HASH, in initObjectFormat()
39 llvm::ELF::SHF_ALLOC, in initObjectFormat()
43 llvm::ELF::SHT_DYNAMIC, in initObjectFormat()
44 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initObjectFormat()
[all …]
DELFReader.cpp48 const llvm::ELF::Elf32_Ehdr* hdr = in isELF()
49 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF()
50 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF()
74 size_t entsize = pRegion.size()/sizeof(llvm::ELF::Elf32_Sym); in readSymbols()
75 const llvm::ELF::Elf32_Sym* symtab = in readSymbols()
76 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.begin()); in readSymbols()
111 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
112 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
114 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
134 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
[all …]
DELFReaderIf.cpp33 if (llvm::ELF::SHN_ABS == pShndx && ResolveInfo::Section == result) { in getSymType()
47 if (pShndx == llvm::ELF::SHN_UNDEF) in getSymDesc()
50 if (pShndx < llvm::ELF::SHN_LORESERVE) { in getSymDesc()
60 if (pShndx == llvm::ELF::SHN_ABS) in getSymDesc()
63 if (pShndx == llvm::ELF::SHN_COMMON) in getSymDesc()
66 if (pShndx >= llvm::ELF::SHN_LOPROC && in getSymDesc()
67 pShndx <= llvm::ELF::SHN_HIPROC) in getSymDesc()
83 case llvm::ELF::STB_LOCAL: in getSymBinding()
85 case llvm::ELF::STB_GLOBAL: in getSymBinding()
86 if (pShndx == llvm::ELF::SHN_ABS) in getSymBinding()
[all …]
DELFBinaryReader.cpp48 llvm::ELF::SHT_NULL, in readBinary()
56 llvm::ELF::SHF_WRITE | llvm::ELF::SHF_ALLOC, in readBinary()
69 llvm::ELF::SHT_STRTAB, in readBinary()
76 llvm::ELF::SHT_SYMTAB, in readBinary()
132 llvm::ELF::SHT_STRTAB, in readBinary()
/frameworks/compile/mclinker/lib/Target/
DELFDynamic.cpp101 reserveOne(llvm::ELF::DT_SONAME); // DT_SONAME in reserveEntries()
104 reserveOne(llvm::ELF::DT_SYMBOLIC); // DT_SYMBOLIC in reserveEntries()
108 reserveOne(llvm::ELF::DT_INIT); // DT_INIT in reserveEntries()
111 reserveOne(llvm::ELF::DT_FINI); // DT_FINI in reserveEntries()
114 reserveOne(llvm::ELF::DT_PREINIT_ARRAY); // DT_PREINIT_ARRAY in reserveEntries()
115 reserveOne(llvm::ELF::DT_PREINIT_ARRAYSZ); // DT_PREINIT_ARRAYSZ in reserveEntries()
119 reserveOne(llvm::ELF::DT_INIT_ARRAY); // DT_INIT_ARRAY in reserveEntries()
120 reserveOne(llvm::ELF::DT_INIT_ARRAYSZ); // DT_INIT_ARRAYSZ in reserveEntries()
124 reserveOne(llvm::ELF::DT_FINI_ARRAY); // DT_FINI_ARRAY in reserveEntries()
125 reserveOne(llvm::ELF::DT_FINI_ARRAYSZ); // DT_FINI_ARRAYSZ in reserveEntries()
[all …]
DGNULDBackend.cpp139 return sizeof(llvm::ELF::Elf32_Ehdr) + in sectionStartOffset()
140 elfSegmentTable().size() * sizeof(llvm::ELF::Elf32_Phdr); in sectionStartOffset()
142 return sizeof(llvm::ELF::Elf64_Ehdr) + in sectionStartOffset()
143 elfSegmentTable().size() * sizeof(llvm::ELF::Elf64_Phdr); in sectionStartOffset()
596 elfSegmentTable().find(llvm::ELF::PT_LOAD, 0x0, 0x0); in finalizeStandardSymbols()
609 elfSegmentTable().find(llvm::ELF::PT_LOAD, in finalizeStandardSymbols()
610 llvm::ELF::PF_X, in finalizeStandardSymbols()
611 llvm::ELF::PF_W); in finalizeStandardSymbols()
642 elfSegmentTable().find(llvm::ELF::PT_LOAD, llvm::ELF::PF_W, 0x0); in finalizeStandardSymbols()
697 elfSegmentTable().find(llvm::ELF::PT_TLS, llvm::ELF::PF_R, 0x0); in finalizeTLSSymbol()
[all …]
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonRelocator.cpp35 if (pType == llvm::ELF::R_HEX_RELATIVE || NULL == pSym) in helper_DynRel_init()
72 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_HEX_RELATIVE, in helper_GOT_init()
77 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_HEX_GLOB_DAT, in helper_GOT_init()
108 rela_entry.setType(llvm::ELF::R_HEX_JMP_SLOT); in helper_PLT_init()
207 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) in scanRelocation()
237 case llvm::ELF::R_HEX_LO16: in scanLocalReloc()
238 case llvm::ELF::R_HEX_HI16: in scanLocalReloc()
239 case llvm::ELF::R_HEX_16: in scanLocalReloc()
240 case llvm::ELF::R_HEX_8: in scanLocalReloc()
241 case llvm::ELF::R_HEX_32_6_X: in scanLocalReloc()
[all …]
DHexagonAbsoluteStub.cpp43 addFixup(8u, 0x0, llvm::ELF::R_HEX_HI16); in HexagonAbsoluteStub()
44 addFixup(12u, 0x0, llvm::ELF::R_HEX_LO16); in HexagonAbsoluteStub()
68 case llvm::ELF::R_HEX_B22_PCREL: in isMyDuty()
71 case llvm::ELF::R_HEX_B15_PCREL: in isMyDuty()
74 case llvm::ELF::R_HEX_B7_PCREL: in isMyDuty()
77 case llvm::ELF::R_HEX_B13_PCREL: in isMyDuty()
80 case llvm::ELF::R_HEX_B9_PCREL: in isMyDuty()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsRelocator.cpp23 namespace ELF { namespace
45 if (llvm::ELF::R_MIPS_NONE == pType) in HasSubType()
49 llvm::ELF::R_MIPS_NONE != (type & 0xff); type >>= 8) { in HasSubType()
64 if (pIsRel && (type() < llvm::ELF::R_MIPS_LA25_LUI || in MipsRelocationInfo()
65 type() > llvm::ELF::R_MIPS_LA25_ADD)) in MipsRelocationInfo()
73 return llvm::ELF::R_MIPS_NONE == type(); in isNone()
78 return llvm::ELF::R_MIPS_NONE == (m_Type >> 8); in isLast()
242 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) in scanRelocation()
298 case llvm::ELF::R_MIPS_NONE: in scanLocalReloc()
299 case llvm::ELF::R_MIPS_16: in scanLocalReloc()
[all …]
DMipsELFDynamic.cpp31 reserveOne(llvm::ELF::DT_PLTGOT); in reserveTargetEntries()
33 reserveOne(llvm::ELF::DT_MIPS_RLD_VERSION); in reserveTargetEntries()
34 reserveOne(llvm::ELF::DT_MIPS_FLAGS); in reserveTargetEntries()
35 reserveOne(llvm::ELF::DT_MIPS_BASE_ADDRESS); in reserveTargetEntries()
36 reserveOne(llvm::ELF::DT_MIPS_LOCAL_GOTNO); in reserveTargetEntries()
37 reserveOne(llvm::ELF::DT_MIPS_SYMTABNO); in reserveTargetEntries()
38 reserveOne(llvm::ELF::DT_MIPS_GOTSYM); in reserveTargetEntries()
41 reserveOne(llvm::ELF::DT_MIPS_PLTGOT); in reserveTargetEntries()
47 applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOT().addr()); in applyTargetEntries()
49 applyOne(llvm::ELF::DT_MIPS_RLD_VERSION, 1); in applyTargetEntries()
[all …]
DMipsGNUInfo.cpp34 return llvm::ELF::EM_MIPS; in machine()
52 uint64_t val = llvm::ELF::EF_MIPS_NOREORDER | m_PICFlags; in flags()
55 val |= llvm::ELF::EF_MIPS_ARCH_32R2 | llvm::ELF::EF_MIPS_ABI_O32; in flags()
57 val |= llvm::ELF::EF_MIPS_ARCH_64R2; in flags()
DMipsLDBackend.h138 void emitSymbol32(llvm::ELF::Elf32_Sym& pSym32,
161 bool readRelocation(const llvm::ELF::Elf32_Rel& pRel,
167 bool readRelocation(const llvm::ELF::Elf32_Rela& pRel,
174 bool readRelocation(const llvm::ELF::Elf64_Rel& pRel,
180 bool readRelocation(const llvm::ELF::Elf64_Rela& pRel,
187 void emitRelocation(llvm::ELF::Elf32_Rel& pRel,
193 void emitRelocation(llvm::ELF::Elf32_Rela& pRel,
200 void emitRelocation(llvm::ELF::Elf64_Rel& pRel,
206 void emitRelocation(llvm::ELF::Elf64_Rela& pRel,
214 typedef llvm::DenseMap<const Input*, llvm::ELF::Elf64_Addr> GP0MapType;
/frameworks/compile/mclinker/include/mcld/ADT/
DSizeTraits.h49 typedef llvm::ELF::Elf32_Addr Addr; // Program address
50 typedef llvm::ELF::Elf32_Off Off; // File offset
51 typedef llvm::ELF::Elf32_Half Half;
52 typedef llvm::ELF::Elf32_Word Word;
53 typedef llvm::ELF::Elf32_Sword Sword;
55 typedef llvm::ELF::Elf32_Ehdr Ehdr;
56 typedef llvm::ELF::Elf32_Shdr Shdr;
57 typedef llvm::ELF::Elf32_Sym Sym;
58 typedef llvm::ELF::Elf32_Rel Rel;
59 typedef llvm::ELF::Elf32_Rela Rela;
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMRelocator.cpp113 rel_entry.setType(llvm::ELF::R_ARM_RELATIVE); in helper_GOT_init()
119 rel_entry.setType(llvm::ELF::R_ARM_GLOB_DAT); in helper_GOT_init()
160 rel_entry.setType(llvm::ELF::R_ARM_JUMP_SLOT); in helper_PLT_init()
183 if (pType == llvm::ELF::R_ARM_RELATIVE) in helper_DynRel_init()
375 rel_entry.setType(llvm::ELF::R_ARM_COPY); in addCopyReloc()
444 case llvm::ELF::R_ARM_RELATIVE: in checkValidReloc()
445 case llvm::ELF::R_ARM_COPY: in checkValidReloc()
446 case llvm::ELF::R_ARM_GLOB_DAT: in checkValidReloc()
447 case llvm::ELF::R_ARM_JUMP_SLOT: in checkValidReloc()
448 case llvm::ELF::R_ARM_ABS32: in checkValidReloc()
[all …]
DARMToARMStub.cpp40 addFixup(8u, -4, llvm::ELF::R_ARM_REL32); in ARMToARMStub()
45 addFixup(4u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToARMStub()
72 case llvm::ELF::R_ARM_PC24: in isMyDuty()
73 case llvm::ELF::R_ARM_CALL: in isMyDuty()
74 case llvm::ELF::R_ARM_JUMP24: in isMyDuty()
75 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
DARMToTHMStub.cpp42 addFixup(12u, 0x0, llvm::ELF::R_ARM_REL32); in ARMToTHMStub()
47 addFixup(8u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToTHMStub()
74 case llvm::ELF::R_ARM_CALL: { in isMyDuty()
86 case llvm::ELF::R_ARM_PC24: in isMyDuty()
87 case llvm::ELF::R_ARM_JUMP24: in isMyDuty()
88 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
/frameworks/compile/mclinker/lib/Target/X86/
DX86Relocator.cpp42 if (pType == llvm::ELF::R_386_RELATIVE || NULL == pSym) in helper_DynRel_init()
85 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_386_RELATIVE, in helper_GOT_init()
90 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_386_GLOB_DAT, in helper_GOT_init()
132 rel_entry.setType(llvm::ELF::R_386_JUMP_SLOT); in helper_PLT_init()
194 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) in scanRelocation()
330 case llvm::ELF::R_386_32: in mayHaveFunctionPointerAccess()
331 case llvm::ELF::R_386_16: in mayHaveFunctionPointerAccess()
332 case llvm::ELF::R_386_8: in mayHaveFunctionPointerAccess()
333 case llvm::ELF::R_386_GOTOFF: in mayHaveFunctionPointerAccess()
334 case llvm::ELF::R_386_GOT32: { in mayHaveFunctionPointerAccess()
[all …]
/frameworks/compile/libbcc/lib/ExecutionEngine/
DELFObjectLoaderImpl.cpp77 llvm::ELF::Elf64_Ehdr *elf_header = in prepareDebugImage()
78 reinterpret_cast<llvm::ELF::Elf64_Ehdr *>(pDebugImg); in prepareDebugImage()
80 llvm::ELF::Elf32_Ehdr *elf_header = in prepareDebugImage()
81 reinterpret_cast<llvm::ELF::Elf32_Ehdr *>(pDebugImg); in prepareDebugImage()
96 sizeof(llvm::ELF::Elf32_Shdr) * elf_header->e_shnum) > pDebugImgSize) { in prepareDebugImage()
110 llvm::ELF::Elf64_Shdr *section_header_table = in prepareDebugImage()
111 reinterpret_cast<llvm::ELF::Elf64_Shdr *>( in prepareDebugImage()
114 llvm::ELF::Elf32_Shdr *section_header_table = in prepareDebugImage()
115 reinterpret_cast<llvm::ELF::Elf32_Shdr *>( in prepareDebugImage()
120 if (section_header_table[i].sh_flags & llvm::ELF::SHF_ALLOC) { in prepareDebugImage()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFReader.h42 typedef llvm::ELF::Elf32_Ehdr ELFHeader;
43 typedef llvm::ELF::Elf32_Shdr SectionHeader;
44 typedef llvm::ELF::Elf32_Sym Symbol;
45 typedef llvm::ELF::Elf32_Rel Rel;
46 typedef llvm::ELF::Elf32_Rela Rela;
132 typedef llvm::ELF::Elf64_Ehdr ELFHeader;
133 typedef llvm::ELF::Elf64_Shdr SectionHeader;
134 typedef llvm::ELF::Elf64_Sym Symbol;
135 typedef llvm::ELF::Elf64_Rel Rel;
136 typedef llvm::ELF::Elf64_Rela Rela;
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64Relocator.cpp161 case llvm::ELF::R_AARCH64_ABS64: in scanLocalReloc()
179 case llvm::ELF::R_AARCH64_ABS32: in scanLocalReloc()
180 case llvm::ELF::R_AARCH64_ABS16: in scanLocalReloc()
196 case llvm::ELF::R_AARCH64_ADR_GOT_PAGE: in scanLocalReloc()
197 case llvm::ELF::R_AARCH64_LD64_GOT_LO12_NC: { in scanLocalReloc()
225 case llvm::ELF::R_AARCH64_ABS64: in scanGlobalReloc()
226 case llvm::ELF::R_AARCH64_ABS32: in scanGlobalReloc()
227 case llvm::ELF::R_AARCH64_ABS16: in scanGlobalReloc()
253 if (llvm::ELF::R_AARCH64_ABS64 == pReloc.type() && in scanGlobalReloc()
274 case llvm::ELF::R_AARCH64_PREL64: in scanGlobalReloc()
[all …]
/frameworks/rs/cpu_ref/linkloader/android/
Dlibrsloader.cpp106 llvm::ELF::Elf64_Ehdr* header = reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(buf); in rsloaderUpdateSectionHeaders()
108 llvm::ELF::Elf32_Ehdr* header = reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(buf); in rsloaderUpdateSectionHeaders()
112 llvm::ELF::Elf64_Shdr* shtab = in rsloaderUpdateSectionHeaders()
113 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(buf + header->e_shoff); in rsloaderUpdateSectionHeaders()
115 llvm::ELF::Elf32_Shdr* shtab = in rsloaderUpdateSectionHeaders()
116 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(buf + header->e_shoff); in rsloaderUpdateSectionHeaders()
131 shtab[i].sh_addr = reinterpret_cast<llvm::ELF::Elf64_Addr>(addr); in rsloaderUpdateSectionHeaders()
133 shtab[i].sh_addr = reinterpret_cast<llvm::ELF::Elf32_Addr>(addr); in rsloaderUpdateSectionHeaders()
/frameworks/compile/mclinker/include/mcld/Target/
DELFDynamic.h55 typedef llvm::ELF::Elf32_Dyn Pair;
56 typedef llvm::ELF::Elf32_Sym Symbol;
57 typedef llvm::ELF::Elf32_Rel Rel;
58 typedef llvm::ELF::Elf32_Rela Rela;
92 typedef llvm::ELF::Elf64_Dyn Pair;
93 typedef llvm::ELF::Elf64_Sym Symbol;
94 typedef llvm::ELF::Elf64_Rel Rel;
95 typedef llvm::ELF::Elf64_Rela Rela;
/frameworks/compile/mclinker/lib/Core/
DIRBuilder.cpp30 if (pFlag & mcld::ELF::SHF_EXCLUDE) in GetELFSectionKind()
33 if (pFlag & llvm::ELF::SHF_MASKPROC) in GetELFSectionKind()
60 case llvm::ELF::SHT_NULL: in GetELFSectionKind()
62 case llvm::ELF::SHT_INIT_ARRAY: in GetELFSectionKind()
63 case llvm::ELF::SHT_FINI_ARRAY: in GetELFSectionKind()
64 case llvm::ELF::SHT_PREINIT_ARRAY: in GetELFSectionKind()
65 case llvm::ELF::SHT_PROGBITS: { in GetELFSectionKind()
66 if ((pFlag & llvm::ELF::SHF_EXECINSTR) != 0) in GetELFSectionKind()
71 case llvm::ELF::SHT_SYMTAB: in GetELFSectionKind()
72 case llvm::ELF::SHT_DYNSYM: in GetELFSectionKind()
[all …]

123