/bionic/tools/relocation_packer/src/ |
delta_encoder_unittest.cc | 18 T relocation; local 19 relocation.r_offset = addr; 20 relocation.r_info = info; 21 relocation.r_addend = addend; 22 relocations->push_back(relocation); 29 const T& relocation) { 30 return relocation.r_offset == addr && 31 relocation.r_info == info && 32 relocation.r_addend == addend; 50 // Initial relocation [all...] |
packer_unittest.cc | 18 typename ELF::Rela relocation; local 19 relocation.r_offset = addr; 20 relocation.r_info = info; 21 relocation.r_addend = addend; 23 relocations->push_back(relocation); 30 const typename ELF::Rela& relocation) { 31 return relocation.r_offset == addr && 32 relocation.r_info == info && 33 relocation.r_addend == addend; 43 // Initial relocation [all...] |
delta_encoder.cc | 41 // Start with the relocation count, then append groups 87 const ElfRela* relocation = &relocations[group_start + i]; local 90 packed->push_back(relocation->r_offset - previous_offset); 92 previous_offset = relocation->r_offset; 95 packed->push_back(relocation->r_info); 100 packed->push_back(relocation->r_addend - previous_addend); 101 previous_addend = relocation->r_addend; 105 // If the relocation group does not have an addend - reset it to 0
|
/toolchain/binutils/binutils-2.25/bfd/ |
coff-m88k.c | 65 /* This is a partial relocation, and we want to apply the 66 relocation to the reloc entry rather than the raw data. 77 long relocation = 0; local 79 /* Work out which section the relocation is targeted at and the 80 initial relocation command value. */ 84 relocation = 0; 86 relocation = symbol->value; 96 relocation += output_base + symbol->section->output_offset; 99 relocation += ((reloc_entry->addend << howto->bitsize) + x); 103 relocation >>= (bfd_vma) howto->rightshift [all...] |
cpu-ns32k.c | 153 bfd_vma relocation; local 176 /* Is the address of the relocation really within the section? */ 180 /* Work out which section the relocation is targeted at and the 181 initial relocation command value. */ 185 relocation = 0; 187 relocation = symbol->value; 197 relocation += output_base + symbol->section->output_offset; 200 relocation += reloc_entry->addend; 202 /* Here the variable relocation holds the final address of the 207 /* This is a PC relative relocation. We want to set RELOCATIO 777 bfd_vma relocation; local [all...] |
elf32-d30v.c | 40 bfd_signed_vma relocation; local 69 /* Is the address of the relocation really within the section? */ 73 /* Work out which section the relocation is targeted at and the 74 initial relocation command value. */ 78 relocation = 0; 80 relocation = symbol->value; 86 relocation += output_base + symbol->section->output_offset; 89 relocation += reloc_entry->addend; 91 /* Here the variable relocation holds the final address of the 98 relocation -= tmp_addr 149 bfd_vma relocation; local [all...] |
aout-arm.c | 161 r_neg = howto->type & 8; /* Negative relocation. */ 208 relocation is done. */ 244 bfd_vma relocation; 254 /* If the sections are different, and we are doing a partial relocation, 260 relocation = (target & 0x00ffffff) << 2; 261 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ 262 relocation += symbol->value; 263 relocation += symbol->section->output_section->vma; 264 relocation += symbol->section->output_offset 243 bfd_vma relocation; local [all...] |
elf32-d10v.c | 48 /* An PC Relative 10-bit relocation, shifted by 2, right container. */ 63 /* An PC Relative 10-bit relocation, shifted by 2, left container. */ 78 /* A 16 bit absolute relocation. */ 93 /* An 18 bit absolute relocation, right shifted 2. */ 108 /* A relative 18 bit relocation, right shifted by 2. */ 123 /* A 32 bit absolute relocation. */ 297 /* This relocation describes the C++ object vtable hierarchy. 304 /* This relocation describes which C++ vtable entries are actually 415 bfd_vma relocation; local 433 relocation = (sec->output_section->vm [all...] |
elf32-dlx.c | 62 bfd_vma relocation; local 87 relocation = (bfd_is_com_section (symbol->section)) ? 0 : symbol->value; 88 relocation += symbol->section->output_section->vma; 89 relocation += symbol->section->output_offset; 90 relocation += reloc_entry->addend; 91 relocation += bfd_get_16 (abfd, (bfd_byte *)data + reloc_entry->address); 96 bfd_put_16 (abfd, (short)((relocation >> 16) & 0xFFFF), 237 /* No relocation. */ 252 /* 8 bit relocation. */ 267 /* 16 bit relocation. * [all...] |
elf32-epiphany.c | 47 /* Relocation tables. */ 72 /* A 32 bit absolute relocation. */ 75 /* 8 bit relative relocation */ 77 /* 16 bit relative relocation */ 79 /* 32 bit relative relocation */ 82 /* 8 bit pc-relative relocation */ 84 /* 24 bit pc-relative relocation */ 112 table *must* match the order of the relocation types defined in 376 /* Perform a single relocation. 385 bfd_vma relocation) 491 bfd_vma relocation; local [all...] |
elf32-fr30.c | 52 /* An 8 bit absolute relocation. */ 67 /* A 20 bit absolute relocation. */ 82 /* A 32 bit absolute relocation. */ 97 /* A 32 bit into 48 bits absolute relocation. */ 112 /* A 6 bit absolute relocation. */ 127 /* An 8 bit absolute relocation. */ 142 /* A 9 bit absolute relocation. */ 157 /* A 10 bit absolute relocation. */ 172 /* A PC relative 9 bit relocation, right shifted by 1. */ 187 /* A PC relative 12 bit relocation, right shifted by 1. * 243 bfd_vma relocation; local 287 bfd_vma relocation; local 518 bfd_vma relocation; local [all...] |
elf32-i860.c | 29 /* special_function for R_860_PC26 relocation. */ 40 bfd_vma relocation; local 58 relocation = 0; 60 relocation = symbol->value; 62 relocation += symbol->section->output_section->vma; 63 relocation += symbol->section->output_offset; 64 relocation += reloc_entry->addend; 69 /* Adjust for PC-relative relocation. */ 70 relocation -= (input_section->output_section->vma 76 if ((bfd_signed_vma)relocation > (0x3ffffff << 2 103 bfd_vma relocation; local 167 bfd_vma relocation; local 220 bfd_vma relocation; local 1097 bfd_vma relocation; local [all...] |
elf32-mcore.c | 99 _bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n"), 126 /* A standard 32 bit relocation. */ 204 /* Like PCRELIMM11BY2, this relocation indicates that there is a 205 'jsri' at the specified address. There is a separate relocation 210 is a relocation that we are allowed to safely ignore. */ 421 bfd_vma relocation; 427 /* Unknown relocation handling. */ 431 _bfd_error_handler (_("%B: Unknown relocation type %d\n"), 442 /* Complain about known relocation that are not yet supported. */ 445 _bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n") 417 bfd_vma relocation; local [all...] |
elf32-moxie.c | 49 /* A 32 bit absolute relocation. */ 64 /* A 10 bit PC-relative relocation. */ 140 /* Perform a single relocation. By default we use the standard BFD 149 bfd_vma relocation) 158 relocation, rel->r_addend); 221 bfd_vma relocation; 237 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); 249 h, sec, relocation, 263 contents, rel, relocation); 288 msg = _("internal error: unsupported relocation error") 218 bfd_vma relocation; local [all...] |
elf32-mt.c | 45 /* Relocation tables. */ 63 /* A 16 bit absolute relocation. */ 78 /* A 32 bit absolute relocation. */ 93 /* A 32 bit pc-relative relocation. */ 108 /* A 16 bit pc-relative relocation. */ 163 table *must* match the order of the relocation types defined in 243 /* Perform a single relocation. By default we use the standard BFD 253 bfd_vma relocation) 257 relocation, rel->r_addend); 320 bfd_vma relocation; 319 bfd_vma relocation; local [all...] |
elf32-xc16x.c | 47 /* An 8 bit absolute relocation. */ 62 /* A 16 bit absolute relocation. */ 92 /* A PC relative 8 bit relocation. */ 107 /* Relocation regarding page number. */ 123 /* Relocation regarding page number. */ 139 /* Relocation regarding segment number. */ 154 /* Relocation regarding segment offset. */ 193 /* This function is used to search for correct relocation type from 226 called to finalise the type of relocation. */ 360 bfd_vma relocation; local [all...] |
mipsbsd.c | 107 /* Determine the size of a relocation entry, based on the architecture */ 125 file header, symbols, and relocation. */ 177 /* MIPS relocation types. */ 185 /* This is only called when performing a BFD_RELOC_MIPS_JMP relocation. 201 bfd_vma relocation, pc; local 203 /* If this is a partial relocation, just continue. */ 212 /* Work out which section the relocation is targeted at and the 213 initial relocation command value. */ 215 relocation = 0; 217 relocation = symbol->value 246 bfd_vma relocation; local [all...] |
reloc.c | 1 /* BFD support for handling relocation entries. 36 a <<struct reloc_cache_entry>> for each relocation 61 This is the structure of a relocation entry: 70 . {* The relocation was performed, but there was an overflow. *} 79 . {* Unsupported relocation size requested. *} 88 . {* The relocation was performed, but may not be ok - presently 105 . {* addend for relocation value. *} 108 . {* Pointer to how to perform the required relocation. *} 124 associated with the relocation request. It is the pointer 129 modifying only one pointer. The relocation routine looks i 579 bfd_vma relocation; local 965 bfd_vma relocation; local 1334 bfd_vma relocation; local [all...] |
coff-mips.c | 215 /* FIXME: This relocation is used (internally only) to represent branches 412 /* Do a REFHI relocation. This has to be done in combination with a 415 relocation when we see the REFLO. MIPS ECOFF requires that the 442 bfd_vma relocation; 461 relocation = 0; 463 relocation = symbol->value; 465 relocation += symbol->section->output_section->vma; 466 relocation += symbol->section->output_offset; 467 relocation += reloc_entry->addend; 472 /* Save the information, and let REFLO do the actual relocation. * 437 bfd_vma relocation; local 558 bfd_vma relocation; local 868 bfd_vma relocation; local [all...] |
elf-m10200.c | 46 /* Dummy relocation. Does nothing. */ 227 /* Perform a relocation as part of a final link. */ 357 bfd_vma relocation; 371 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); 379 h, sec, relocation, 393 relocation, rel->r_addend, 433 msg = _("internal error: unsupported relocation error"); 716 /* Fix the relocation's type. */ 766 /* Fix the relocation's type. */ 814 /* Also make sure the next relocation applies to the nex 356 bfd_vma relocation; local [all...] |
elf32-cr16c.c | 37 /* reloc_map_index array maps CRASM relocation type into a BFD 38 relocation enum. The array's indices are synchronized with 145 /* printf ("CR16C Relocation Type is - %x\n", code); */ 150 /* printf ("This relocation Type is not supported - %x\n", code); */ 187 /* Perform a relocation as part of a final link. */ 699 bfd_vma relocation; local 713 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); 721 h, sec, relocation, 743 relocation, rel->r_addend, 783 msg = _("internal error: unsupported relocation error") [all...] |
elf32-crx.c | 48 /* crx_reloc_map array maps BFD relocation enum into a CRGAS relocation type. */ 52 bfd_reloc_code_real_type bfd_reloc_enum; /* BFD relocation enum. */ 53 unsigned short crx_reloc_type; /* CRX relocation type. */ 399 printf ("This relocation Type is not supported -0x%x\n", code); 419 /* Retrieve a howto ptr using an internal relocation entry. */ 430 /* Perform a relocation as part of a final link. */ 460 relocation offset. Advance it to account for the exact offset. */ 465 /* This relocation type is used only in 'Branch if Equal to 0' 559 /* Relocation on DATA is purely little-endian, that is, for 849 bfd_vma relocation; local [all...] |
elf32-iq2000.c | 50 /* A 16 bit absolute relocation. */ 65 /* A 32 bit absolute relocation. */ 188 /* A 32 bit absolute debug relocation. */ 249 bfd_vma relocation; 262 relocation = 0; 264 relocation = symbol->value; 266 relocation += symbol->section->output_section->vma; 267 relocation += symbol->section->output_offset; 268 relocation += reloc_entry->addend; 271 if (relocation & 0x8000 247 bfd_vma relocation; local 586 bfd_vma relocation; local [all...] |
/frameworks/compile/mclinker/lib/Core/ |
IRBuilder.cpp | 85 return LDFileFormat::Relocation; 115 // FIXME: where to set up Relocation? 116 Relocation::SetUp(m_Config); 292 /// CreateRelocData - To create a relocation data for given pSection. 294 assert(!pSection.hasRelocData() && "pSection already has relocation data."); 368 /// AppendRelocation - To append an relocation to the given RelocData pRD. 369 void IRBuilder::AppendRelocation(Relocation& pRelocation, RelocData& pRD) { 586 /// AddRelocation - add a relocation entry 589 Relocation* IRBuilder::AddRelocation(LDSection& pSection, 590 Relocation::Type pType 596 Relocation* relocation = Relocation::Create(pType, *frag_ref, pAddend); local [all...] |
/frameworks/compile/mclinker/lib/Target/AArch64/ |
AArch64LDBackend.cpp | 219 "static linkage should not result in a dynamic relocation section"); 228 "static linkage should not result in a dynamic relocation section"); 340 Relocation* reloc = 341 Relocation::Create(llvm::ELF::R_AARCH64_JUMP26, 385 Relocation* relocation = llvm::cast<Relocation>(reloc); local 387 switch (relocation->type()) { 392 LDSymbol* symbol = relocation->symInfo()->outSymbol(); 399 if ((relocation->symInfo()->reserved() [all...] |