Home
last modified time | relevance | path

Searched refs:reloc (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/netbsd/src/external/gpl3/binutils/dist/bfd/
Dcoff-z8k.c167 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
168 reloc_processing(relent, reloc, symbols, abfd, section)
172 struct internal_reloc *reloc, in reloc_processing() argument
177 relent->address = reloc->r_vaddr; in reloc_processing()
178 rtype2howto (relent, reloc); in reloc_processing()
180 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
182 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
183 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
189 abfd, reloc->r_symndx); in reloc_processing()
192 relent->addend = reloc->r_offset; in reloc_processing()
[all …]
Dcoff-z80.c304 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
305 reloc_processing(relent, reloc, symbols, abfd, section)
309 struct internal_reloc *reloc, in reloc_processing() argument
314 relent->address = reloc->r_vaddr; in reloc_processing()
315 rtype2howto (relent, reloc); in reloc_processing()
317 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
319 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
320 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
326 abfd, reloc->r_symndx); in reloc_processing()
329 relent->addend = reloc->r_offset; in reloc_processing()
[all …]
Dmach-o-arm.c156 bfd_mach_o_reloc_info reloc; in bfd_mach_o_arm_canonicalize_one_reloc() local
158 if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms)) in bfd_mach_o_arm_canonicalize_one_reloc()
161 if (reloc.r_scattered) in bfd_mach_o_arm_canonicalize_one_reloc()
163 switch (reloc.r_type) in bfd_mach_o_arm_canonicalize_one_reloc()
173 if (reloc.r_length == 2) in bfd_mach_o_arm_canonicalize_one_reloc()
179 else if (reloc.r_length == 1) in bfd_mach_o_arm_canonicalize_one_reloc()
186 "invalid length: %d"), reloc.r_length); in bfd_mach_o_arm_canonicalize_one_reloc()
190 if (reloc.r_length == 2) in bfd_mach_o_arm_canonicalize_one_reloc()
195 else if (reloc.r_length == 1) in bfd_mach_o_arm_canonicalize_one_reloc()
201 "invalid length: %d"), reloc.r_length); in bfd_mach_o_arm_canonicalize_one_reloc()
[all …]
Dmach-o-aarch64.c156 bfd_mach_o_reloc_info reloc; in bfd_mach_o_arm64_canonicalize_one_reloc() local
167 bfd_mach_o_swap_in_non_scattered_reloc (abfd, &reloc, raw->r_symbolnum); in bfd_mach_o_arm64_canonicalize_one_reloc()
169 if (reloc.r_type == BFD_MACH_O_ARM64_RELOC_ADDEND) in bfd_mach_o_arm64_canonicalize_one_reloc()
171 if (reloc.r_length == 2 && reloc.r_pcrel == 0) in bfd_mach_o_arm64_canonicalize_one_reloc()
174 res->addend = reloc.r_value; in bfd_mach_o_arm64_canonicalize_one_reloc()
181 if (!bfd_mach_o_canonicalize_non_scattered_reloc (abfd, &reloc, res, syms)) in bfd_mach_o_arm64_canonicalize_one_reloc()
184 switch (reloc.r_type) in bfd_mach_o_arm64_canonicalize_one_reloc()
187 switch ((reloc.r_length << 1) | reloc.r_pcrel) in bfd_mach_o_arm64_canonicalize_one_reloc()
215 if (reloc.r_pcrel) in bfd_mach_o_arm64_canonicalize_one_reloc()
217 switch (reloc.r_length) in bfd_mach_o_arm64_canonicalize_one_reloc()
[all …]
Dmach-o-x86-64.c134 bfd_mach_o_reloc_info reloc; in bfd_mach_o_x86_64_canonicalize_one_reloc() local
136 if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms)) in bfd_mach_o_x86_64_canonicalize_one_reloc()
140 if (reloc.r_scattered) in bfd_mach_o_x86_64_canonicalize_one_reloc()
143 switch (reloc.r_type) in bfd_mach_o_x86_64_canonicalize_one_reloc()
146 if (reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
148 switch (reloc.r_length) in bfd_mach_o_x86_64_canonicalize_one_reloc()
160 if (reloc.r_length == 2 && reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
167 if (!reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
169 switch (reloc.r_length) in bfd_mach_o_x86_64_canonicalize_one_reloc()
179 if (reloc.r_length == 2 && reloc.r_pcrel && reloc.r_extern) in bfd_mach_o_x86_64_canonicalize_one_reloc()
[all …]
Dcoff-tic30.c151 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
152 reloc_processing(relent, reloc, symbols, abfd, section)
156 struct internal_reloc *reloc, in reloc_processing() argument
161 relent->address = reloc->r_vaddr; in reloc_processing()
162 rtype2howto (relent, reloc); in reloc_processing()
164 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
166 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
167 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
173 abfd, reloc->r_symndx); in reloc_processing()
176 relent->addend = reloc->r_offset; in reloc_processing()
Dreloc16.c44 bfd_coff_reloc16_get_value (arelent *reloc, in bfd_coff_reloc16_get_value() argument
49 asymbol *symbol = *(reloc->sym_ptr_ptr); in bfd_coff_reloc16_get_value()
84 input_section->owner, input_section, reloc->address, true); in bfd_coff_reloc16_get_value()
96 value += reloc->addend; in bfd_coff_reloc16_get_value()
294 arelent *reloc; in bfd_coff_reloc16_get_relocated_section_contents() local
303 reloc = *parent; in bfd_coff_reloc16_get_relocated_section_contents()
304 if (reloc) in bfd_coff_reloc16_get_relocated_section_contents()
309 if (reloc->address > link_order->size in bfd_coff_reloc16_get_relocated_section_contents()
310 || reloc->address < src_address) in bfd_coff_reloc16_get_relocated_section_contents()
315 input_bfd, input_section, reloc); in bfd_coff_reloc16_get_relocated_section_contents()
[all …]
/netbsd/src/external/gpl3/gdb/dist/bfd/
Dcoff-z8k.c167 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
168 reloc_processing(relent, reloc, symbols, abfd, section)
172 struct internal_reloc *reloc, in reloc_processing() argument
177 relent->address = reloc->r_vaddr; in reloc_processing()
178 rtype2howto (relent, reloc); in reloc_processing()
180 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
182 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
183 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
189 abfd, reloc->r_symndx); in reloc_processing()
192 relent->addend = reloc->r_offset; in reloc_processing()
[all …]
Dcoff-z80.c304 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
305 reloc_processing(relent, reloc, symbols, abfd, section)
309 struct internal_reloc *reloc, in reloc_processing() argument
314 relent->address = reloc->r_vaddr; in reloc_processing()
315 rtype2howto (relent, reloc); in reloc_processing()
317 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
319 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
320 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
326 abfd, reloc->r_symndx); in reloc_processing()
329 relent->addend = reloc->r_offset; in reloc_processing()
[all …]
Dmach-o-arm.c156 bfd_mach_o_reloc_info reloc; in bfd_mach_o_arm_canonicalize_one_reloc() local
158 if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms)) in bfd_mach_o_arm_canonicalize_one_reloc()
161 if (reloc.r_scattered) in bfd_mach_o_arm_canonicalize_one_reloc()
163 switch (reloc.r_type) in bfd_mach_o_arm_canonicalize_one_reloc()
173 if (reloc.r_length == 2) in bfd_mach_o_arm_canonicalize_one_reloc()
179 else if (reloc.r_length == 1) in bfd_mach_o_arm_canonicalize_one_reloc()
186 "invalid length: %d"), reloc.r_length); in bfd_mach_o_arm_canonicalize_one_reloc()
190 if (reloc.r_length == 2) in bfd_mach_o_arm_canonicalize_one_reloc()
195 else if (reloc.r_length == 1) in bfd_mach_o_arm_canonicalize_one_reloc()
201 "invalid length: %d"), reloc.r_length); in bfd_mach_o_arm_canonicalize_one_reloc()
[all …]
Dmach-o-aarch64.c156 bfd_mach_o_reloc_info reloc; in bfd_mach_o_arm64_canonicalize_one_reloc() local
167 bfd_mach_o_swap_in_non_scattered_reloc (abfd, &reloc, raw->r_symbolnum); in bfd_mach_o_arm64_canonicalize_one_reloc()
169 if (reloc.r_type == BFD_MACH_O_ARM64_RELOC_ADDEND) in bfd_mach_o_arm64_canonicalize_one_reloc()
171 if (reloc.r_length == 2 && reloc.r_pcrel == 0) in bfd_mach_o_arm64_canonicalize_one_reloc()
174 res->addend = reloc.r_value; in bfd_mach_o_arm64_canonicalize_one_reloc()
181 if (!bfd_mach_o_canonicalize_non_scattered_reloc (abfd, &reloc, res, syms)) in bfd_mach_o_arm64_canonicalize_one_reloc()
184 switch (reloc.r_type) in bfd_mach_o_arm64_canonicalize_one_reloc()
187 switch ((reloc.r_length << 1) | reloc.r_pcrel) in bfd_mach_o_arm64_canonicalize_one_reloc()
215 if (reloc.r_pcrel) in bfd_mach_o_arm64_canonicalize_one_reloc()
217 switch (reloc.r_length) in bfd_mach_o_arm64_canonicalize_one_reloc()
[all …]
Dmach-o-x86-64.c134 bfd_mach_o_reloc_info reloc; in bfd_mach_o_x86_64_canonicalize_one_reloc() local
136 if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms)) in bfd_mach_o_x86_64_canonicalize_one_reloc()
140 if (reloc.r_scattered) in bfd_mach_o_x86_64_canonicalize_one_reloc()
143 switch (reloc.r_type) in bfd_mach_o_x86_64_canonicalize_one_reloc()
146 if (reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
148 switch (reloc.r_length) in bfd_mach_o_x86_64_canonicalize_one_reloc()
160 if (reloc.r_length == 2 && reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
167 if (!reloc.r_pcrel) in bfd_mach_o_x86_64_canonicalize_one_reloc()
169 switch (reloc.r_length) in bfd_mach_o_x86_64_canonicalize_one_reloc()
179 if (reloc.r_length == 2 && reloc.r_pcrel && reloc.r_extern) in bfd_mach_o_x86_64_canonicalize_one_reloc()
[all …]
Dcoff-tic30.c151 #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ argument
152 reloc_processing(relent, reloc, symbols, abfd, section)
156 struct internal_reloc *reloc, in reloc_processing() argument
161 relent->address = reloc->r_vaddr; in reloc_processing()
162 rtype2howto (relent, reloc); in reloc_processing()
164 if (reloc->r_symndx == -1 || symbols == NULL) in reloc_processing()
166 else if (reloc->r_symndx >= 0 && reloc->r_symndx < obj_conv_table_size (abfd)) in reloc_processing()
167 relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; in reloc_processing()
173 abfd, reloc->r_symndx); in reloc_processing()
176 relent->addend = reloc->r_offset; in reloc_processing()
Dreloc16.c44 bfd_coff_reloc16_get_value (arelent *reloc, in bfd_coff_reloc16_get_value() argument
49 asymbol *symbol = *(reloc->sym_ptr_ptr); in bfd_coff_reloc16_get_value()
84 input_section->owner, input_section, reloc->address, true); in bfd_coff_reloc16_get_value()
96 value += reloc->addend; in bfd_coff_reloc16_get_value()
294 arelent *reloc; in bfd_coff_reloc16_get_relocated_section_contents() local
303 reloc = *parent; in bfd_coff_reloc16_get_relocated_section_contents()
304 if (reloc) in bfd_coff_reloc16_get_relocated_section_contents()
309 if (reloc->address > link_order->size in bfd_coff_reloc16_get_relocated_section_contents()
310 || reloc->address < src_address) in bfd_coff_reloc16_get_relocated_section_contents()
315 input_bfd, input_section, reloc); in bfd_coff_reloc16_get_relocated_section_contents()
[all …]
/netbsd/src/external/gpl3/binutils/dist/gas/config/
Dtc-rx.c714 int reloc; member
813 rx_bytes.fixups[rx_bytes.n_fixups].reloc = exp.X_md; in rx_fixup()
1200 if (rx_bytes.fixups[i].reloc) in md_assemble()
1201 rel = rx_bytes.fixups[i].reloc; in md_assemble()
1239 int reloc; member
1250 int reloc = 0; in md_operand() local
1261 reloc = reloc_functions[i].reloc; in md_operand()
1266 if (reloc == 0) in md_operand()
1273 exp->X_md = reloc; in md_operand()
2453 static arelent * reloc[5]; in tc_gen_reloc() local
[all …]
Dtc-pdp11.c39 } reloc; member
434 seg = expression (&operand->reloc.exp); in parse_expression()
445 operand->reloc.pc_rel = 0; in parse_expression()
488 operand->word = operand->reloc.exp.X_add_number; in parse_op_no_deferred()
489 switch (operand->reloc.exp.X_op) in parse_op_no_deferred()
496 operand->reloc.type = BFD_RELOC_16; in parse_op_no_deferred()
497 operand->reloc.pc_rel = 0; in parse_op_no_deferred()
500 if (operand->reloc.exp.X_add_number > 0) in parse_op_no_deferred()
506 know (operand->reloc.exp.X_add_number < 0); in parse_op_no_deferred()
549 operand->reloc.type = BFD_RELOC_16_PCREL; in parse_op_no_deferred()
[all …]
Dtc-tilegx.c506 bfd_reloc_code_real_type reloc = operand->default_reloc; in emit_tilegx_instruction() local
516 switch (reloc) \ in emit_tilegx_instruction()
519 reloc = BFD_RELOC_TILEGX_IMM16_X0_##suffix; \ in emit_tilegx_instruction()
522 reloc = BFD_RELOC_TILEGX_IMM16_X1_##suffix; \ in emit_tilegx_instruction()
637 switch (reloc) in emit_tilegx_instruction()
640 reloc = BFD_RELOC_TILEGX_JUMPOFF_X1_PLT; in emit_tilegx_instruction()
651 switch (reloc) in emit_tilegx_instruction()
654 reloc = BFD_RELOC_TILEGX_TLS_GD_CALL; in emit_tilegx_instruction()
665 switch (reloc) in emit_tilegx_instruction()
668 reloc = BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD; in emit_tilegx_instruction()
[all …]
Dtc-mn10300.c101 bfd_reloc_code_real_type reloc; member
987 fixup->reloc = BFD_RELOC_32_GOT_PCREL; in mn10300_check_fixup()
994 fixup->reloc = BFD_RELOC_32_GOT_PCREL; in mn10300_check_fixup()
998 fixup->reloc = exp->X_md; in mn10300_check_fixup()
1000 if (fixup->reloc == BFD_RELOC_32_PLT_PCREL in mn10300_check_fixup()
1023 fixup.reloc = BFD_RELOC_UNUSED; in mn10300_cons_fix_new()
1027 if (fixup.reloc == BFD_RELOC_MN10300_GOT32) in mn10300_cons_fix_new()
1031 fixup.reloc = BFD_RELOC_MN10300_GOT16; in mn10300_cons_fix_new()
1035 fixup.reloc = BFD_RELOC_MN10300_GOT24; in mn10300_cons_fix_new()
1044 else if (fixup.reloc == BFD_RELOC_UNUSED) in mn10300_cons_fix_new()
[all …]
Dtc-s390.c728 bfd_reloc_code_real_type reloc; member
775 return ptr->reloc; in s390_tls_suffix()
904 bfd_reloc_code_real_type reloc; member
971 bfd_reloc_code_real_type reloc; in s390_lit_suffix() local
991 reloc = BFD_RELOC_UNUSED; in s390_lit_suffix()
995 reloc = BFD_RELOC_390_GOT16; in s390_lit_suffix()
997 reloc = BFD_RELOC_32_GOT_PCREL; in s390_lit_suffix()
999 reloc = BFD_RELOC_390_GOT64; in s390_lit_suffix()
1004 reloc = BFD_RELOC_390_PLT32; in s390_lit_suffix()
1006 reloc = BFD_RELOC_390_PLT64; in s390_lit_suffix()
[all …]
Dtc-wasm32.c342 struct reloc_list *reloc; in wasm32_leb128() local
371 reloc = XNEW (struct reloc_list); in wasm32_leb128()
372 reloc->u.a.offset_sym = expr_build_dot (); in wasm32_leb128()
375 reloc->u.a.sym = ex.X_add_symbol; in wasm32_leb128()
376 reloc->u.a.addend = ex.X_add_number; in wasm32_leb128()
380 reloc->u.a.sym = make_expr_symbol (&ex); in wasm32_leb128()
381 reloc->u.a.addend = 0; in wasm32_leb128()
439 reloc->u.a.howto = bfd_reloc_name_lookup (stdoutput, relname); in wasm32_leb128()
440 if (!reloc->u.a.howto) in wasm32_leb128()
442 reloc->file = as_where (&reloc->line); in wasm32_leb128()
[all …]
Dtc-tilepro.c429 bfd_reloc_code_real_type reloc = operand->default_reloc; in emit_tilepro_instruction() local
439 switch (reloc) \ in emit_tilepro_instruction()
442 reloc = BFD_RELOC_TILEPRO_IMM16_X0_##suffix; \ in emit_tilepro_instruction()
445 reloc = BFD_RELOC_TILEPRO_IMM16_X1_##suffix; \ in emit_tilepro_instruction()
548 switch (reloc) in emit_tilepro_instruction()
551 reloc = BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT; in emit_tilepro_instruction()
562 switch (reloc) in emit_tilepro_instruction()
565 reloc = BFD_RELOC_TILEPRO_TLS_GD_CALL; in emit_tilepro_instruction()
576 switch (reloc) in emit_tilepro_instruction()
579 reloc = BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD; in emit_tilepro_instruction()
[all …]
Dtc-spu.c47 bfd_reloc_code_real_type reloc[MAX_RELOCS]; member
185 bfd_reloc_code_real_type reloc; member
298 insn.reloc[i] = BFD_RELOC_NONE; in md_assemble()
357 bfd_reloc_code_real_type reloc = insn.reloc[i]; in md_assemble() local
360 if (reloc == BFD_RELOC_SPU_PCREL9a in md_assemble()
361 || reloc == BFD_RELOC_SPU_PCREL9b in md_assemble()
362 || reloc == BFD_RELOC_SPU_PCREL16) in md_assemble()
369 reloc); in md_assemble()
698 insn->reloc[reloc_i] = BFD_RELOC_SPU_HI16; in get_imm()
700 insn->reloc[reloc_i] = BFD_RELOC_SPU_LO16; in get_imm()
[all …]
Dtc-score.c395 }reloc; member
1361 if (s3_my_get_expression (&s3_inst.reloc.exp, &pp) == (int) s3_FAIL) in s3_data_op2()
1370 if (s3_my_get_expression (&s3_inst.reloc.exp, str) == (int) s3_FAIL) in s3_data_op2()
1416 if ((s3_inst.reloc.exp.X_add_number == 0) in s3_data_op2()
1431 if ((s3_inst.reloc.exp.X_add_symbol) in s3_data_op2()
1450 if (s3_inst.reloc.exp.X_add_symbol) in s3_data_op2()
1457 s3_inst.reloc.type = BFD_RELOC_HI16_S; in s3_data_op2()
1458 s3_inst.reloc.pc_rel = 0; in s3_data_op2()
1461 s3_inst.reloc.type = BFD_RELOC_LO16; in s3_data_op2()
1462 s3_inst.reloc.pc_rel = 0; in s3_data_op2()
[all …]
/netbsd/src/external/gpl3/binutils/dist/gold/
Dtarget-reloc.h65 Reltype reloc(prelocs); in scan_relocs()
69 reloc.get_r_offset())) in scan_relocs()
72 unsigned int r_sym = Classify_reloc::get_r_sym(&reloc); in scan_relocs()
73 unsigned int r_type = Classify_reloc::get_r_type(&reloc); in scan_relocs()
101 output_section, reloc, r_type, lsym, is_discarded); in scan_relocs()
111 output_section, reloc, r_type, gsym); in scan_relocs()
333 Reltype reloc(prelocs); in relocate_section()
336 convert_to_section_size_type(reloc.get_r_offset()); in relocate_section()
347 unsigned int r_sym = Classify_reloc::get_r_sym(&reloc); in relocate_section()
536 get_r_sym(const Reltype* reloc) in get_r_sym() argument
[all …]
Dtilegx.cc465 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type,
474 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type,
483 const elfcpp::Rela<size, big_endian>& reloc,
493 const elfcpp::Rela<size, big_endian>& reloc,
598 Symbol* sym, const elfcpp::Rela<size, big_endian>& reloc) in copy_reloc() argument
600 unsigned int r_type = elfcpp::elf_r_type<size>(reloc.get_r_info()); in copy_reloc()
604 r_type, reloc.get_r_offset(), in copy_reloc()
605 reloc.get_r_addend(), in copy_reloc()
829 Valtype reloc = 0; in rela() local
831 reloc = Bits<32>::sign_extend(psymval->value(object, addend)) >> srshift; in rela()
[all …]

12345678910>>...29