/external/elfutils/backends/ |
common-reloc.c | 1 /* Common code for ebl reloc functions. 36 #define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def) 41 /* Provide a table of reloc type names, in a PIC-friendly fashion. */ 83 EBLHOOK(reloc_type_name) (int reloc, 87 if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0) 88 return &reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]]; 93 EBLHOOK(reloc_type_check) (int reloc) 95 return reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0 [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/listfmts/nasm/ |
nasm-listfmt.c | 53 unsigned long offset; /* start of reloc from start of bytecode */ 54 size_t size; /* size of reloc in bytes */ 102 /* Generate reloc if needed */ 104 bcreloc *reloc = yasm_xmalloc(sizeof(bcreloc)); local 105 reloc->offset = offset; 106 reloc->size = destsize; 107 reloc->rel = value->curpos_rel; 108 STAILQ_INSERT_TAIL(&info->bcrelocs, reloc, link); 110 /* Get next reloc's info */ 154 /*@null@*/ bcreloc *reloc = NULL local [all...] |
/external/llvm/test/CodeGen/AArch64/ |
tls-execs.ll | 2 ; RUN: llc -mtriple=aarch64-none-linux-gnu -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s 15 ; CHECK-RELOC: R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 16 ; CHECK-RELOC: R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 30 ; CHECK-RELOC: R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 31 ; CHECK-RELOC: R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 46 ; CHECK-RELOC: R_AARCH64_TLSLE_MOVW_TPREL_G1 47 ; CHECK-RELOC: R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 61 ; CHECK-RELOC: R_AARCH64_TLSLE_MOVW_TPREL_G1 62 ; CHECK-RELOC: R_AARCH64_TLSLE_MOVW_TPREL_G0_NC
|
tls-dynamics.ll | 2 ; RUN: llc -mtriple=aarch64-none-linux-gnu -relocation-model=pic -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s 21 ; CHECK-RELOC: R_AARCH64_TLSDESC_ADR_PAGE 22 ; CHECK-RELOC: R_AARCH64_TLSDESC_ADD_LO12_NC 23 ; CHECK-RELOC: R_AARCH64_TLSDESC_LD64_LO12_NC 24 ; CHECK-RELOC: R_AARCH64_TLSDESC_CALL 42 ; CHECK-RELOC: R_AARCH64_TLSDESC_ADR_PAGE 43 ; CHECK-RELOC: R_AARCH64_TLSDESC_ADD_LO12_NC 44 ; CHECK-RELOC: R_AARCH64_TLSDESC_LD64_LO12_NC 45 ; CHECK-RELOC: R_AARCH64_TLSDESC_CALL 68 ; CHECK-RELOC: R_AARCH64_TLSDESC_ADR_PAG [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/ |
elf-x86-x86.c | 139 elf_reloc_entry *reloc, 142 if (!reloc->wrt && reloc->is_GOT_sym && reloc->valsize == 32 && offset != 0) 152 elf_x86_x86_map_reloc_info_to_type(elf_reloc_entry *reloc) 154 if (reloc->wrt) { 156 yasm_symrec_get_data(reloc->wrt, &elf_ssym_symrec_data); 157 if (!ssym || reloc->valsize != ssym->size) 164 esym = yasm_symrec_get_data(reloc->reloc.sym, &elf_symrec_data) [all...] |
elf-x86-amd64.c | 140 elf_reloc_entry *reloc, 144 reloc->addend = yasm_intnum_copy(intn); 149 elf_x86_amd64_map_reloc_info_to_type(elf_reloc_entry *reloc) 151 if (reloc->wrt) { 153 yasm_symrec_get_data(reloc->wrt, &elf_ssym_symrec_data); 154 if (!ssym || reloc->valsize != ssym->size) 161 esym = yasm_symrec_get_data(reloc->reloc.sym, &elf_symrec_data); 166 if (reloc->rtype_rel && ssym->reloc == R_X86_64_GOT32 [all...] |
elf-machine.h | 59 elf_reloc_entry *reloc, 61 typedef unsigned int(*func_map_reloc_info_to_type)(elf_reloc_entry *reloc); 63 elf_reloc_entry *reloc, 80 const unsigned int reloc; /* relocation type */ member in struct:__anon16376
|
/external/clang/test/PCH/ |
reloc.c | 2 // RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h 7 #include <reloc.h> 13 // expected-note@libroot/usr/include/reloc.h:13{{previous definition}}
|
/external/llvm/test/Object/ |
elf-reloc-no-sym.test | 1 RUN: llvm-readobj -r %p/Inputs/elf-reloc-no-sym.x86_64 | FileCheck %s
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/ |
nv30_vertprog.c | 88 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; local 89 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc); 106 inst = vp->insns[reloc->location].data; 107 target = vp->exec->start + reloc->target; 111 reloc++; 115 inst = vp->insns[reloc->location].data; 116 target = vp->exec->start + reloc->target; 122 reloc++; 131 struct nv30_shader_reloc *reloc = vp->const_relocs.data; local 132 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc); [all...] |
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_vertprog.c | 88 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; local 89 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc); 106 inst = vp->insns[reloc->location].data; 107 target = vp->exec->start + reloc->target; 111 reloc++; 115 inst = vp->insns[reloc->location].data; 116 target = vp->exec->start + reloc->target; 122 reloc++; 131 struct nv30_shader_reloc *reloc = vp->const_relocs.data; local 132 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc); [all...] |
/external/llvm/include/llvm/MC/ |
MCCodeGenInfo.h | 25 Reloc::Model RelocationModel; 36 void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default, 40 Reloc::Model getRelocationModel() const { return RelocationModel; }
|
/external/llvm/lib/Target/SystemZ/ |
SystemZSubtarget.cpp | 33 // Return true if GV binds locally under reloc model RM. 34 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { 36 if (RM == Reloc::Static) 43 Reloc::Model RM,
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests/nasm32/ |
Makefile.inc | 7 EXTRA_DIST += modules/objfmts/macho/tests/nasm32/macho-reloc.asm 8 EXTRA_DIST += modules/objfmts/macho/tests/nasm32/macho-reloc.hex
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
MipsELFStreamer.cpp | 66 Reloc::Model RM = Subtarget.getRelocationModel(); 67 if (RM == Reloc::PIC_ || RM == Reloc::Default) 69 else if (RM == Reloc::Static) 70 ; // Do nothing for Reloc::Static
|
/external/llvm/lib/Target/Mips/ |
MipsCodeEmitter.cpp | 70 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {} 92 void emitGlobalAddress(const GlobalValue *GV, unsigned Reloc, 94 void emitExternalSymbolAddress(const char *ES, unsigned Reloc) const; 95 void emitConstPoolAddress(unsigned CPI, unsigned Reloc) const; 96 void emitJumpTableAddress(unsigned JTIndex, unsigned Reloc) const; 97 void emitMachineBasicBlock(MachineBasicBlock *BB, unsigned Reloc) const; 114 void emitGlobalAddressUnaligned(const GlobalValue *GV, unsigned Reloc, 240 void MipsCodeEmitter::emitGlobalAddress(const GlobalValue *GV, unsigned Reloc, 242 MCE.addRelocation(MachineRelocation::getGV(MCE.getCurrentPCOffset(), Reloc, 248 unsigned Reloc, int Offset) const [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/xdf/ |
xdf-objfmt.c | 41 yasm_reloc reloc; member in struct:xdf_reloc 186 xdf_reloc *reloc; local 188 reloc = yasm_xmalloc(sizeof(xdf_reloc)); 189 reloc->reloc.addr = yasm_intnum_create_uint(bc->offset + offset); 190 reloc->reloc.sym = value->rel; 191 reloc->base = NULL; 192 reloc->size = valsize/8; 193 reloc->shift = value->rshift 288 xdf_reloc *reloc; local [all...] |
/frameworks/compile/mclinker/lib/Fragment/ |
FragmentLinker.cpp | 105 // bypass the reloc section if 108 // 2. it has no reloc data. (All symbols in the input relocs are in the 112 RelocData::iterator reloc, rEnd = (*rs)->getRelocData()->end(); local 113 for (reloc = (*rs)->getRelocData()->begin(); reloc != rEnd; ++reloc) { 114 Relocation* relocation = llvm::cast<Relocation>(reloc); 154 // bypass the reloc section if 157 // 2. it has no reloc data. (All symbols in the input relocs are in the 161 RelocData::iterator reloc, rEnd = (*rs)->getRelocData()->end() local 185 Relocation* reloc = *iter; local 208 Relocation* reloc = llvm::cast<Relocation>(relocIter); local [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/rdf/ |
rdf-objfmt.c | 69 yasm_reloc reloc; member in struct:rdf_reloc 228 rdf_reloc *reloc; local 232 reloc = yasm_xmalloc(sizeof(rdf_reloc)); 233 reloc->reloc.addr = yasm_intnum_create_uint(bc->offset + offset); 234 reloc->reloc.sym = value->rel; 235 reloc->size = valsize/8; 238 reloc->type = RDF_RELOC_SEG; 240 reloc->type = RDF_RELOC_REL 385 rdf_reloc *reloc; local [all...] |
/external/llvm/lib/Target/ |
TargetMachineC.cpp | 91 char* CPU, char* Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, 93 Reloc::Model RM; 94 switch (Reloc){ 96 RM = Reloc::Static; 99 RM = Reloc::PIC_; 102 RM = Reloc::DynamicNoPIC; 105 RM = Reloc::Default;
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/macho/ |
macho-objfmt.c | 237 yasm_reloc reloc; member in struct:macho_reloc 416 macho_reloc *reloc = NULL; local 447 reloc = yasm_xcalloc(sizeof(macho_reloc), 1); 448 reloc->reloc.addr = yasm_intnum_create_uint(bc->offset + offset); 449 reloc->reloc.sym = value->rel; 452 reloc->length = 3; 455 reloc->length = 2; 458 reloc->length = 1 650 macho_reloc *reloc; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/ |
radeon_drm_cs.c | 40 Reloc writes and space checking are faster and simpler than their 49 The adding is skipped if the reloc is already present in the list, but it 60 cs_write_reloc(cs, buf) just writes a reloc that has been added using 199 static INLINE void update_reloc_domains(struct drm_radeon_cs_reloc *reloc, 204 *added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain); 206 reloc->read_domains |= rd; 207 reloc->write_domain |= wd; 212 struct drm_radeon_cs_reloc *reloc; local 218 reloc = &csc->relocs[i] 253 struct drm_radeon_cs_reloc *reloc; local [all...] |
/external/mesa3d/src/gallium/winsys/radeon/drm/ |
radeon_drm_cs.c | 40 Reloc writes and space checking are faster and simpler than their 49 The adding is skipped if the reloc is already present in the list, but it 60 cs_write_reloc(cs, buf) just writes a reloc that has been added using 199 static INLINE void update_reloc_domains(struct drm_radeon_cs_reloc *reloc, 204 *added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain); 206 reloc->read_domains |= rd; 207 reloc->write_domain |= wd; 212 struct drm_radeon_cs_reloc *reloc; local 218 reloc = &csc->relocs[i] 253 struct drm_radeon_cs_reloc *reloc; local [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests/ |
win64-dataref.asm | 47 ; MASM generates a REL32 reloc for this even though it's in 49 ; below doesn't cause a reloc, so the linker can't be moving 55 ; MASM generates a REL32 reloc for this even though it's in 57 ; below doesn't cause a reloc, so the linker can't be moving
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
SparcMCTargetDesc.cpp | 55 // SunCC Reloc CodeModel Constraints 64 static MCCodeGenInfo *createSparcMCCodeGenInfo(StringRef TT, Reloc::Model RM, 71 CM = RM == Reloc::PIC_ ? CodeModel::Medium : CodeModel::Small; 77 static MCCodeGenInfo *createSparcV9MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|