Home
last modified time | relevance | path

Searched refs:relocation (Results 1 – 25 of 489) sorted by relevance

12345678910>>...20

/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Dcpu-ns32k.c170 bfd_vma relocation; local
202 relocation = 0;
204 relocation = symbol->value;
214 relocation += output_base + symbol->section->output_offset;
217 relocation += reloc_entry->addend;
251 relocation -=
255 relocation -= reloc_entry->address;
265 reloc_entry->addend = relocation;
356 relocation -= reloc_entry->addend;
361 reloc_entry->addend = relocation;
[all …]
H A Delf32-d30v.c41 bfd_signed_vma relocation; in bfd_elf_d30v_reloc() local
79 relocation = 0; in bfd_elf_d30v_reloc()
81 relocation = symbol->value; in bfd_elf_d30v_reloc()
87 relocation += output_base + symbol->section->output_offset; in bfd_elf_d30v_reloc()
90 relocation += reloc_entry->addend; in bfd_elf_d30v_reloc()
99 relocation -= tmp_addr; in bfd_elf_d30v_reloc()
112 relocation += num; in bfd_elf_d30v_reloc()
119 if (relocation > MAX32 || relocation < MIN32) in bfd_elf_d30v_reloc()
121 relocation = (relocation + tmp_addr) & 0xffffffff; in bfd_elf_d30v_reloc()
126 in1 |= (relocation >> 26) & 0x3F; /* Top 6 bits. */ in bfd_elf_d30v_reloc()
[all …]
H A Dreloc.c495 bfd_vma relocation) in bfd_check_overflow() argument
507 a = (relocation & addrmask) >> rightshift;; in bfd_check_overflow()
583 bfd_vma relocation; in bfd_perform_relocation() local
629 relocation = 0; in bfd_perform_relocation()
631 relocation = symbol->value; in bfd_perform_relocation()
642 relocation += output_base + symbol->section->output_offset; in bfd_perform_relocation()
645 relocation += reloc_entry->addend; in bfd_perform_relocation()
680 relocation -= in bfd_perform_relocation()
684 relocation -= reloc_entry->address; in bfd_perform_relocation()
694 reloc_entry->addend = relocation; in bfd_perform_relocation()
[all …]
H A Delf32-i860.c40 bfd_vma relocation; in i860_howto_pc26_reloc() local
58 relocation = 0; in i860_howto_pc26_reloc()
60 relocation = symbol->value; in i860_howto_pc26_reloc()
62 relocation += symbol->section->output_section->vma; in i860_howto_pc26_reloc()
63 relocation += symbol->section->output_offset; in i860_howto_pc26_reloc()
64 relocation += reloc_entry->addend; in i860_howto_pc26_reloc()
70 relocation -= (input_section->output_section->vma in i860_howto_pc26_reloc()
76 if ((bfd_signed_vma)relocation > (0x3ffffff << 2) in i860_howto_pc26_reloc()
77 || (bfd_signed_vma)relocation < (-0x4000000 << 2)) in i860_howto_pc26_reloc()
83 relocation >>= reloc_entry->howto->rightshift; in i860_howto_pc26_reloc()
[all …]
H A Delf32-fr30.c262 bfd_vma relocation; local
279 relocation =
285 if (relocation > (((bfd_vma) 1 << 20) - 1))
289 x = (x & 0xff0f0000) | (relocation & 0x0000ffff) | ((relocation & 0x000f0000) << 4);
308 bfd_vma relocation; local
324 relocation =
330 bfd_put_32 (abfd, relocation, (char *) data + reloc_entry->address + 2);
395 relocation) in fr30_final_link_relocate() argument
401 bfd_vma relocation;
411 relocation += rel->r_addend;
[all …]
H A Dmipsbsd.c208 bfd_vma relocation, pc; local
222 relocation = 0;
224 relocation = symbol->value;
226 relocation += symbol->section->output_section->vma;
227 relocation += symbol->section->output_offset;
228 relocation += reloc_entry->addend;
233 if ((relocation & 0xF0000000) != (pc & 0xF0000000))
259 bfd_vma relocation; local
273 relocation = 0;
275 relocation = symbol->value;
[all …]
H A Dcoff-arm.c571 bfd_vma relocation; in aoutarm_fix_pcrel_26() local
587 relocation = (target & 0x00ffffff) << 2; in aoutarm_fix_pcrel_26()
588 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ in aoutarm_fix_pcrel_26()
589 relocation += symbol->value; in aoutarm_fix_pcrel_26()
590 relocation += symbol->section->output_section->vma; in aoutarm_fix_pcrel_26()
591 relocation += symbol->section->output_offset; in aoutarm_fix_pcrel_26()
592 relocation += reloc_entry->addend; in aoutarm_fix_pcrel_26()
593 relocation -= input_section->output_section->vma; in aoutarm_fix_pcrel_26()
594 relocation -= input_section->output_offset; in aoutarm_fix_pcrel_26()
595 relocation -= addr; in aoutarm_fix_pcrel_26()
[all …]
H A Dcoff-m88k.c86 long relocation = 0; local
93 relocation = 0;
95 relocation = symbol->value;
105 relocation += output_base + symbol->section->output_offset;
108 relocation += ((reloc_entry->addend << howto->bitsize) + x);
112 relocation >>= (bfd_vma) howto->rightshift;
116 relocation <<= (bfd_vma) howto->bitpos;
118 if (relocation)
119 bfd_put_16 (abfd, (bfd_vma) relocation,
H A Dcoff-mips.c63 bfd_vma relocation));
475 bfd_vma relocation; local
494 relocation = 0;
496 relocation = symbol->value;
498 relocation += symbol->section->output_section->vma;
499 relocation += symbol->section->output_offset;
500 relocation += reloc_entry->addend;
510 n->addend = relocation;
610 bfd_vma relocation; local
693 relocation = 0;
[all …]
H A Daout-tic30.c158 bfd_vma relocation = 1; in tic30_aout_fix_pcrel_16() local
165 relocation -= 3; in tic30_aout_fix_pcrel_16()
167 relocation -= 1; in tic30_aout_fix_pcrel_16()
168 bfd_put_16 (abfd, relocation, (bfd_byte *) data + reloc_entry->address); in tic30_aout_fix_pcrel_16()
188 bfd_vma relocation; in tic30_aout_fix_16() local
195 relocation = (symbol->section->vma >> 2); in tic30_aout_fix_16()
196 relocation += bfd_get_16 (abfd, (bfd_byte *) data + reloc_entry->address); in tic30_aout_fix_16()
197 bfd_put_16 (abfd, relocation, (bfd_byte *) data + reloc_entry->address); in tic30_aout_fix_16()
213 bfd_vma relocation; in tic30_aout_fix_32() local
220 relocation = (symbol->section->vma >> 2); in tic30_aout_fix_32()
[all …]
H A Driscix.c202 bfd_vma relocation; in riscix_fix_pcrel_26() local
218 relocation = (target & 0x00ffffff) << 2; in riscix_fix_pcrel_26()
219 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ in riscix_fix_pcrel_26()
220 relocation += symbol->value; in riscix_fix_pcrel_26()
221 relocation += symbol->section->output_section->vma; in riscix_fix_pcrel_26()
222 relocation += symbol->section->output_offset; in riscix_fix_pcrel_26()
223 relocation += reloc_entry->addend; in riscix_fix_pcrel_26()
224 relocation -= input_section->output_section->vma; in riscix_fix_pcrel_26()
225 relocation -= input_section->output_offset; in riscix_fix_pcrel_26()
226 relocation -= addr; in riscix_fix_pcrel_26()
[all …]
H A Daout-arm.c243 bfd_vma relocation; in MY() local
259 relocation = (target & 0x00ffffff) << 2; in MY()
260 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ in MY()
261 relocation += symbol->value; in MY()
262 relocation += symbol->section->output_section->vma; in MY()
263 relocation += symbol->section->output_offset; in MY()
264 relocation += reloc_entry->addend; in MY()
265 relocation -= input_section->output_section->vma; in MY()
266 relocation -= input_section->output_offset; in MY()
267 relocation -= addr; in MY()
[all …]
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Dcpu-ns32k.c170 bfd_vma relocation; local
202 relocation = 0;
204 relocation = symbol->value;
214 relocation += output_base + symbol->section->output_offset;
217 relocation += reloc_entry->addend;
251 relocation -=
255 relocation -= reloc_entry->address;
265 reloc_entry->addend = relocation;
357 relocation -= reloc_entry->addend;
363 reloc_entry->addend = relocation;
[all …]
H A Dreloc.c494 bfd_vma relocation) in bfd_check_overflow() argument
499 a = relocation; in bfd_check_overflow()
588 bfd_vma relocation; in bfd_perform_relocation() local
635 relocation = 0; in bfd_perform_relocation()
637 relocation = symbol->value; in bfd_perform_relocation()
648 relocation += output_base + symbol->section->output_offset; in bfd_perform_relocation()
651 relocation += reloc_entry->addend; in bfd_perform_relocation()
686 relocation -= in bfd_perform_relocation()
690 relocation -= reloc_entry->address; in bfd_perform_relocation()
700 reloc_entry->addend = relocation; in bfd_perform_relocation()
[all …]
H A Delf32-i860.c40 bfd_vma relocation; in i860_howto_pc26_reloc() local
58 relocation = 0; in i860_howto_pc26_reloc()
60 relocation = symbol->value; in i860_howto_pc26_reloc()
62 relocation += symbol->section->output_section->vma; in i860_howto_pc26_reloc()
63 relocation += symbol->section->output_offset; in i860_howto_pc26_reloc()
64 relocation += reloc_entry->addend; in i860_howto_pc26_reloc()
70 relocation -= (input_section->output_section->vma in i860_howto_pc26_reloc()
76 if ((bfd_signed_vma)relocation > (0x3ffffff << 2) in i860_howto_pc26_reloc()
77 || (bfd_signed_vma)relocation < (-0x4000000 << 2)) in i860_howto_pc26_reloc()
83 relocation >>= reloc_entry->howto->rightshift; in i860_howto_pc26_reloc()
[all …]
H A Delf32-d30v.c263 bfd_signed_vma relocation; local
301 relocation = 0;
303 relocation = symbol->value;
309 relocation += output_base + symbol->section->output_offset;
312 relocation += reloc_entry->addend;
321 relocation -= tmp_addr;
334 relocation += num;
341 if (relocation > MAX32 || relocation < MIN32)
343 relocation = (relocation + tmp_addr) & 0xffffffff;
348 in1 |= (relocation >> 26) & 0x3F; /* top 6 bits */
[all …]
H A Dcpu-h8500.c44 long relocation = 0;
48 HOWTO_PREPARE(relocation, symbol_in);
50 x = (x + relocation + reloc_entry->addend);
66 long relocation = 0;
70 HOWTO_PREPARE(relocation, symbol_in);
72 x = (x + relocation + reloc_entry->addend);
88 long relocation = 0;
93 HOWTO_PREPARE(relocation, symbol_in);
95 x = (x + relocation + reloc_entry->addend);
111 long relocation = 0;
[all …]
H A Delf32-fr30.c262 bfd_vma relocation; local
279 relocation =
285 if (relocation > (((bfd_vma) 1 << 20) - 1))
289 x = (x & 0xff0f0000) | (relocation & 0x0000ffff) | ((relocation & 0x000f0000) << 4);
308 bfd_vma relocation; local
324 relocation =
330 bfd_put_32 (abfd, relocation, (char *) data + reloc_entry->address + 2);
395 relocation) in fr30_final_link_relocate() argument
401 bfd_vma relocation;
411 relocation += rel->r_addend;
[all …]
H A Dmipsbsd.c212 bfd_vma relocation, pc; local
226 relocation = 0;
228 relocation = symbol->value;
230 relocation += symbol->section->output_section->vma;
231 relocation += symbol->section->output_offset;
232 relocation += reloc_entry->addend;
237 if ((relocation & 0xF0000000) != (pc & 0xF0000000))
263 bfd_vma relocation; local
277 relocation = 0;
279 relocation = symbol->value;
[all …]
H A Dcoff-m88k.c86 long relocation = 0; local
93 relocation = 0;
95 relocation = symbol->value;
105 relocation += output_base + symbol->section->output_offset;
108 relocation += ((reloc_entry->addend << howto->bitsize) + x);
112 relocation >>= (bfd_vma) howto->rightshift;
116 relocation <<= (bfd_vma) howto->bitpos;
118 if (relocation)
119 bfd_put_16 (abfd, (bfd_vma) relocation,
H A Dcoff-arm.c631 bfd_vma relocation; local
647 relocation = (target & 0x00ffffff) << 2;
648 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */
649 relocation += symbol->value;
650 relocation += symbol->section->output_section->vma;
651 relocation += symbol->section->output_offset;
652 relocation += reloc_entry->addend;
653 relocation -= input_section->output_section->vma;
654 relocation -= input_section->output_offset;
655 relocation -= addr;
[all …]
H A Daout-tic30.c244 bfd_vma relocation; local
251 relocation = (symbol->section->vma >> 2);
252 relocation += bfd_get_16 (abfd, (bfd_byte *) data + reloc_entry->address);
253 bfd_put_16 (abfd, relocation, (bfd_byte *) data + reloc_entry->address);
271 bfd_vma relocation; local
278 relocation = (symbol->section->vma >> 2);
279 relocation += bfd_get_32 (abfd, (bfd_byte *) data + reloc_entry->address);
280 bfd_put_32 (abfd, relocation, (bfd_byte *) data + reloc_entry->address);
302 bfd_vma relocation = 1; local
309 relocation -= 3;
[all …]
H A Delf32-avr.c489 contents, rel, relocation) in avr_final_link_relocate() argument
495 bfd_vma relocation;
505 srel = (bfd_signed_vma) relocation;
523 srel = (bfd_signed_vma) relocation;
558 srel = (bfd_signed_vma) relocation + rel->r_addend;
566 srel = (bfd_signed_vma) relocation + rel->r_addend;
575 srel = (bfd_signed_vma) relocation + rel->r_addend;
584 srel = (bfd_signed_vma) relocation + rel->r_addend;
593 srel = (bfd_signed_vma) relocation + rel->r_addend;
603 srel = (bfd_signed_vma) relocation + rel->r_addend;
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ELFRelocs/
H A DLanai.def6 // No relocation
8 // 21-bit symbol relocation
10 // 21-bit symbol relocation with last two bits masked to 0
14 // General 32-bit relocation
16 // Upper 16-bits of a symbolic relocation
18 // Lower 16-bits of a symbolic relocation
/openbsd-src/gnu/llvm/llvm/bindings/python/llvm/tests/
H A Dtest_object.py63 for relocation in section.get_relocations():
64 assert isinstance(relocation, Relocation)
65 assert isinstance(relocation.address, Integral)
66 assert isinstance(relocation.offset, Integral)
67 assert isinstance(relocation.type_number, Integral)
68 assert isinstance(relocation.type_name, str)
69 assert isinstance(relocation.value_string, str)

12345678910>>...20