| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | nlm32-i386.c | 72 arelent *rel) in nlm_i386_read_reloc() argument 110 rel->sym_ptr_ptr = bfd_get_section_by_name (abfd, name)->symbol_ptr_ptr; in nlm_i386_read_reloc() 111 rel->howto = &nlm_i386_abs_howto; in nlm_i386_read_reloc() 116 rel->sym_ptr_ptr = NULL; in nlm_i386_read_reloc() 118 rel->howto = &nlm_i386_pcrel_howto; in nlm_i386_read_reloc() 121 rel->howto = &nlm_i386_abs_howto; in nlm_i386_read_reloc() 134 rel->address = val; in nlm_i386_read_reloc() 135 rel->addend = 0; in nlm_i386_read_reloc() 143 nlm_i386_write_import (bfd * abfd, asection * sec, arelent * rel) in nlm_i386_write_import() argument 153 if (rel->addend != 0 in nlm_i386_write_import() [all …]
|
| H A D | nlm32-ppc.c | 436 arelent *rel) in nlm_powerpc_read_reloc() argument 464 rel->sym_ptr_ptr = NULL; in nlm_powerpc_read_reloc() 481 rel->sym_ptr_ptr = sec->symbol_ptr_ptr; in nlm_powerpc_read_reloc() 484 rel->addend = 0; in nlm_powerpc_read_reloc() 488 rel->howto = nlm_powerpc_howto_table + (l_rtype & 0xff); in nlm_powerpc_read_reloc() 490 BFD_ASSERT (rel->howto->name != NULL in nlm_powerpc_read_reloc() 492 ? (rel->howto->complain_on_overflow in nlm_powerpc_read_reloc() 494 : (rel->howto->complain_on_overflow in nlm_powerpc_read_reloc() 496 && ((l_rtype >> 8) & 0x1f) == rel->howto->bitsize - 1); in nlm_powerpc_read_reloc() 511 rel->address = l_vaddr; in nlm_powerpc_read_reloc() [all …]
|
| H A D | nlm32-alpha.c | 394 arelent *rel) in nlm_alpha_read_reloc() argument 432 rel->sym_ptr_ptr = NULL; in nlm_alpha_read_reloc() 433 rel->addend = 0; in nlm_alpha_read_reloc() 445 rel->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; in nlm_alpha_read_reloc() 446 rel->addend = 0; in nlm_alpha_read_reloc() 450 rel->sym_ptr_ptr = code_sec->symbol_ptr_ptr; in nlm_alpha_read_reloc() 452 rel->addend = 0; in nlm_alpha_read_reloc() 456 rel->sym_ptr_ptr = data_sec->symbol_ptr_ptr; in nlm_alpha_read_reloc() 457 rel->addend = - bfd_get_section_vma (abfd, data_sec); in nlm_alpha_read_reloc() 462 rel->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; in nlm_alpha_read_reloc() [all …]
|
| H A D | elf32-openrisc.c | 238 Elf_Internal_Rela *rel, in openrisc_final_link_relocate() argument 248 contents, rel->r_offset, in openrisc_final_link_relocate() 249 relocation, rel->r_addend); in openrisc_final_link_relocate() 254 contents, rel->r_offset, in openrisc_final_link_relocate() 255 relocation, rel->r_addend); in openrisc_final_link_relocate() 303 Elf_Internal_Rela *rel; in openrisc_elf_relocate_section() local 313 for (rel = relocs; rel < relend; rel++) in openrisc_elf_relocate_section() 325 r_type = ELF32_R_TYPE (rel->r_info); in openrisc_elf_relocate_section() 326 r_symndx = ELF32_R_SYM (rel->r_info); in openrisc_elf_relocate_section() 337 howto = openrisc_elf_howto_table + ELF32_R_TYPE (rel->r_info); in openrisc_elf_relocate_section() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | nlm32-i386.c | 80 nlm_i386_read_reloc (abfd, sym, secp, rel) in nlm_i386_read_reloc() argument 84 arelent *rel; 122 rel->sym_ptr_ptr = bfd_get_section_by_name (abfd, name)->symbol_ptr_ptr; 123 rel->howto = &nlm_i386_abs_howto; 128 rel->sym_ptr_ptr = NULL; 130 rel->howto = &nlm_i386_pcrel_howto; 133 rel->howto = &nlm_i386_abs_howto; 146 rel->address = val; 147 rel->addend = 0; 155 nlm_i386_write_import (abfd, sec, rel) in nlm_i386_write_import() argument [all …]
|
| H A D | nlm32-ppc.c | 135 nlm_powerpc_read_reloc (abfd, sym, secp, rel) in nlm_powerpc_read_reloc() argument 139 arelent *rel; 183 rel->sym_ptr_ptr = bfd_get_section_by_name (abfd, name)->symbol_ptr_ptr; 186 rel->howto = &nlm_powerpc_howto; 188 rel->address = val << 2; 189 rel->addend = 0; 551 nlm_powerpc_read_reloc (abfd, sym, secp, rel) in nlm_powerpc_read_reloc() argument 555 arelent *rel; 584 rel->sym_ptr_ptr = NULL; 602 rel->sym_ptr_ptr = sec->symbol_ptr_ptr; [all …]
|
| H A D | elf32-avr.c | 400 elf32_avr_gc_mark_hook (sec, info, rel, h, sym) in elf32_avr_gc_mark_hook() argument 403 Elf_Internal_Rela *rel; 409 switch (ELF32_R_TYPE (rel->r_info)) 456 const Elf_Internal_Rela *rel; local 469 for (rel = relocs; rel < rel_end; rel++) 474 r_symndx = ELF32_R_SYM (rel->r_info); 489 contents, rel, relocation) in avr_final_link_relocate() 494 Elf_Internal_Rela * rel; 504 contents += rel->r_offset; 506 srel += rel->r_addend; [all …]
|
| H A D | nlm32-alpha.c | 412 nlm_alpha_read_reloc (abfd, sym, secp, rel) in nlm_alpha_read_reloc() argument 416 arelent *rel; 454 rel->sym_ptr_ptr = NULL; 455 rel->addend = 0; 467 rel->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; 468 rel->addend = 0; 472 rel->sym_ptr_ptr = code_sec->symbol_ptr_ptr; 474 rel->addend = 0; 478 rel->sym_ptr_ptr = data_sec->symbol_ptr_ptr; 479 rel->addend = - bfd_get_section_vma (abfd, data_sec); [all …]
|
| H A D | elf32-msp430.c | 222 elf32_msp430_gc_mark_hook (sec, info, rel, h, sym) in elf32_msp430_gc_mark_hook() argument 225 Elf_Internal_Rela *rel; 231 switch (ELF32_R_TYPE (rel->r_info)) 278 const Elf_Internal_Rela *rel; local 292 for (rel = relocs; rel < rel_end; rel++) 297 r_symndx = ELF32_R_SYM (rel->r_info); 312 contents, rel, relocation) in msp430_final_link_relocate() 317 Elf_Internal_Rela *rel; 327 contents += rel->r_offset; 329 srel += rel->r_addend; [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/ld/scripttempl/ |
| H A D | elfd30v.sc | 61 .rel.text ${RELOCATING-0} : { *(.rel.text) *(.rel.gnu.linkonce.t*) } 63 .rel.data ${RELOCATING-0} : { *(.rel.data) *(.rel.gnu.linkonce.d*) } 65 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 67 .rel.stext ${RELOCATING-0} : { *(.rel.stest) } 69 .rel.etext ${RELOCATING-0} : { *(.rel.etest) } 71 .rel.sdata ${RELOCATING-0} : { *(.rel.sdata) } 73 .rel.edata ${RELOCATING-0} : { *(.rel.edata) } 75 .rel.eit_v ${RELOCATING-0} : { *(.rel.eit_v) } 77 .rel.sbss ${RELOCATING-0} : { *(.rel.sbss) } 79 .rel.ebss ${RELOCATING-0} : { *(.rel.ebss) } [all …]
|
| H A D | elf32msp430_3.sc | 23 .rel.init ${RELOCATING-0} : { *(.rel.init) } 25 .rel.text ${RELOCATING-0} : 27 *(.rel.text) 28 ${RELOCATING+*(.rel.text.*)} 29 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 37 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 39 .rel.rodata ${RELOCATING-0} : 41 *(.rel.rodata) 42 ${RELOCATING+*(.rel.rodata.*)} 43 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | armbpabi.sc | 32 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }" 55 …REL_SDATA=".rel.sdata ${RELOCATING-0} : { *(.rel.sdata${RELOCATING+ .rel.sdata.* .rel.gnu.linko… 57 …REL_SBSS=".rel.sbss ${RELOCATING-0} : { *(.rel.sbss${RELOCATING+ .rel.sbss.* .rel.gnu.linkonce… 59 …REL_SDATA2=".rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2${RELOCATING+ .rel.sdata2.* .rel.gnu.li… 61 …REL_SBSS2=".rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2${RELOCATING+ .rel.sbss2.* .rel.gnu.linko… 372 .rel.init 0 : { *(.rel.init) } 374 .rel.text 0 : { *(.rel.text${RELOCATING+ .rel.text.* .rel.gnu.linkonce.t.*}) } 376 .rel.fini 0 : { *(.rel.fini) } 378 .rel.rodata 0 : { *(.rel.rodata${RELOCATING+ .rel.rodata.* .rel.gnu.linkonce.r.*}) } 381 .rel.data.rel.ro 0 : { *(.rel.data.rel.ro${RELOCATING+*}) } [all …]
|
| H A D | elf32msp430.sc | 47 .rel.init ${RELOCATING-0} : { *(.rel.init) } 49 .rel.text ${RELOCATING-0} : 51 *(.rel.text) 52 ${RELOCATING+*(.rel.text.*)} 53 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 61 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 63 .rel.rodata ${RELOCATING-0} : 65 *(.rel.rodata) 66 ${RELOCATING+*(.rel.rodata.*)} 67 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | elfm68hc12.sc | 182 .rel.text ${RELOCATING-0} : 184 *(.rel.text) 185 ${RELOCATING+*(.rel.text.*)} 186 ${RELOCATING+*(.rel.gnu.linkonce.t.*)} 194 .rel.data ${RELOCATING-0} : 196 *(.rel.data) 197 ${RELOCATING+*(.rel.data.*)} 198 ${RELOCATING+*(.rel.gnu.linkonce.d.*)} 206 .rel.rodata ${RELOCATING-0} : 208 *(.rel.rodata) [all …]
|
| H A D | elfm68hc11.sc | 182 .rel.text ${RELOCATING-0} : 184 *(.rel.text) 185 ${RELOCATING+*(.rel.text.*)} 186 ${RELOCATING+*(.rel.gnu.linkonce.t.*)} 194 .rel.data ${RELOCATING-0} : 196 *(.rel.data) 197 ${RELOCATING+*(.rel.data.*)} 198 ${RELOCATING+*(.rel.gnu.linkonce.d.*)} 206 .rel.rodata ${RELOCATING-0} : 208 *(.rel.rodata) [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/ld/scripttempl/ |
| H A D | elfd30v.sc | 61 .rel.text ${RELOCATING-0} : { *(.rel.text) *(.rel.gnu.linkonce.t*) } 63 .rel.data ${RELOCATING-0} : { *(.rel.data) *(.rel.gnu.linkonce.d*) } 65 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 67 .rel.stext ${RELOCATING-0} : { *(.rel.stest) } 69 .rel.etext ${RELOCATING-0} : { *(.rel.etest) } 71 .rel.sdata ${RELOCATING-0} : { *(.rel.sdata) } 73 .rel.edata ${RELOCATING-0} : { *(.rel.edata) } 75 .rel.eit_v ${RELOCATING-0} : { *(.rel.eit_v) } 77 .rel.sbss ${RELOCATING-0} : { *(.rel.sbss) } 79 .rel.ebss ${RELOCATING-0} : { *(.rel.ebss) } [all …]
|
| H A D | elf32avr.sc | 23 .rel.init ${RELOCATING-0} : { *(.rel.init) } 25 .rel.text ${RELOCATING-0} : 27 *(.rel.text) 28 ${RELOCATING+*(.rel.text.*)} 29 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 37 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 39 .rel.rodata ${RELOCATING-0} : 41 *(.rel.rodata) 42 ${RELOCATING+*(.rel.rodata.*)} 43 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | elf32msp430_3.sc | 23 .rel.init ${RELOCATING-0} : { *(.rel.init) } 25 .rel.text ${RELOCATING-0} : 27 *(.rel.text) 28 ${RELOCATING+*(.rel.text.*)} 29 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 37 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 39 .rel.rodata ${RELOCATING-0} : 41 *(.rel.rodata) 42 ${RELOCATING+*(.rel.rodata.*)} 43 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | avr.sc | 23 .rel.init ${RELOCATING-0} : { *(.rel.init) } 25 .rel.text ${RELOCATING-0} : 27 *(.rel.text) 28 ${RELOCATING+*(.rel.text.*)} 29 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 37 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 39 .rel.rodata ${RELOCATING-0} : 41 *(.rel.rodata) 42 ${RELOCATING+*(.rel.rodata.*)} 43 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | elf32msp430.sc | 47 .rel.init ${RELOCATING-0} : { *(.rel.init) } 49 .rel.text ${RELOCATING-0} : 51 *(.rel.text) 52 ${RELOCATING+*(.rel.text.*)} 53 ${RELOCATING+*(.rel.gnu.linkonce.t*)} 61 .rel.fini ${RELOCATING-0} : { *(.rel.fini) } 63 .rel.rodata ${RELOCATING-0} : 65 *(.rel.rodata) 66 ${RELOCATING+*(.rel.rodata.*)} 67 ${RELOCATING+*(.rel.gnu.linkonce.r*)} [all …]
|
| H A D | elfm68hc12.sc | 182 .rel.text ${RELOCATING-0} : 184 *(.rel.text) 185 ${RELOCATING+*(.rel.text.*)} 186 ${RELOCATING+*(.rel.gnu.linkonce.t.*)} 194 .rel.data ${RELOCATING-0} : 196 *(.rel.data) 197 ${RELOCATING+*(.rel.data.*)} 198 ${RELOCATING+*(.rel.gnu.linkonce.d.*)} 206 .rel.rodata ${RELOCATING-0} : 208 *(.rel.rodata) [all …]
|
| H A D | elfm68hc11.sc | 182 .rel.text ${RELOCATING-0} : 184 *(.rel.text) 185 ${RELOCATING+*(.rel.text.*)} 186 ${RELOCATING+*(.rel.gnu.linkonce.t.*)} 194 .rel.data ${RELOCATING-0} : 196 *(.rel.data) 197 ${RELOCATING+*(.rel.data.*)} 198 ${RELOCATING+*(.rel.gnu.linkonce.d.*)} 206 .rel.rodata ${RELOCATING-0} : 208 *(.rel.rodata) [all …]
|
| /openbsd-src/gnu/llvm/lld/wasm/ |
| H A D | InputChunks.cpp | 112 for (const WasmRelocation &rel : relocations) { in relocate() local 113 uint8_t *loc = buf + rel.Offset - inputSectionOffset; in relocate() 114 LLVM_DEBUG(dbgs() << "apply reloc: type=" << relocTypeToString(rel.Type)); in relocate() 115 if (rel.Type != R_WASM_TYPE_INDEX_LEB) in relocate() 116 LLVM_DEBUG(dbgs() << " sym=" << file->getSymbols()[rel.Index]->getName()); in relocate() 117 LLVM_DEBUG(dbgs() << " addend=" << rel.Addend << " index=" << rel.Index in relocate() 118 << " offset=" << rel.Offset << "\n"); in relocate() 122 uint64_t value = file->calcNewValue(rel, tombstone, this); in relocate() 124 switch (rel.Type) { in relocate() 180 for (const WasmRelocation &rel : relocations) { in writeRelocations() local [all …]
|
| /openbsd-src/libexec/ld.so/arm/ |
| H A D | ld.script | 49 .data.rel.ro : { *(.data.rel.ro.local*) *(.data.rel.ro*) } :data :relro 57 .rel.dyn : 59 *(.rel.text .rel.text.*) 60 *(.rel.rodata .rel.rodata.*) 61 *(.rel.data .rel.data.*) 62 *(.rel.got) 63 *(.rel.bss .rel.bss.*) 65 /* XXX .rel.plt is unused but cannot delete: ld.bfd zeros DT_RELASZ then! */ 66 .rel.plt : { *(.rel.plt) } :data
|
| /openbsd-src/gnu/llvm/lld/ELF/Arch/ |
| H A D | AVR.cpp | 48 void relocate(uint8_t *loc, const Relocation &rel, 96 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 97 switch (rel.type) { in relocate() 99 checkUInt(loc, val, 8, rel); in relocate() 109 checkAlignment(loc, val, 2, rel); in relocate() 110 checkUInt(loc, val >> 1, 16, rel); in relocate() 114 checkUInt(loc, val, 32, rel); in relocate() 119 checkUInt(loc, val, 8, rel); in relocate() 149 checkAlignment(loc, val, 2, rel); in relocate() 153 checkAlignment(loc, val, 2, rel); in relocate() [all …]
|