Home
last modified time | relevance | path

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

12345678910>>...48

/netbsd-src/external/gpl3/binutils/dist/bfd/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A 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) 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 …]
H A 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 …]
H A 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) 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 …]
H A 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 …]
H A 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 …]
/netbsd-src/external/gpl3/binutils.old/dist/gas/config/
H A Dtc-rx.c727 int reloc; member
826 rx_bytes.fixups[rx_bytes.n_fixups].reloc = exp.X_md; in rx_fixup()
1213 if (rx_bytes.fixups[i].reloc) in md_assemble()
1214 rel = rx_bytes.fixups[i].reloc; in md_assemble()
1252 int reloc; member
1263 int reloc = 0; in md_operand() local
1274 reloc = reloc_functions[i].reloc; in md_operand()
1279 if (reloc == 0) in md_operand()
1286 exp->X_md = reloc; in md_operand()
2466 static arelent * reloc[5]; in tc_gen_reloc() local
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dtc-s390.c726 bfd_reloc_code_real_type reloc; member
773 return ptr->reloc; in s390_tls_suffix()
902 bfd_reloc_code_real_type reloc; member
969 bfd_reloc_code_real_type reloc; in s390_lit_suffix() local
989 reloc = BFD_RELOC_UNUSED; in s390_lit_suffix()
993 reloc = BFD_RELOC_390_GOT16; in s390_lit_suffix()
995 reloc = BFD_RELOC_32_GOT_PCREL; in s390_lit_suffix()
997 reloc = BFD_RELOC_390_GOT64; in s390_lit_suffix()
1002 reloc = BFD_RELOC_390_PLT32; in s390_lit_suffix()
1004 reloc = BFD_RELOC_390_PLT64; in s390_lit_suffix()
[all …]
H A 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 …]
/netbsd-src/external/gpl3/binutils/dist/gas/config/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_r600_cs.c975 struct radeon_bo_list *reloc; in r600_cs_check_reg() local
1020 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r600_cs_check_reg()
1026 ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); in r600_cs_check_reg()
1038 r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm); in r600_cs_check_reg()
1047 if (reloc->tiling_flags & RADEON_TILING_MACRO) { in r600_cs_check_reg()
1080 r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm); in r600_cs_check_reg()
1088 ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); in r600_cs_check_reg()
1089 track->vgt_strmout_bo[tmp] = reloc->robj; in r600_cs_check_reg()
1090 track->vgt_strmout_bo_mc[tmp] = reloc->gpu_offset; in r600_cs_check_reg()
1103 r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm); in r600_cs_check_reg()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gold/
H A 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 …]
/netbsd-src/external/gpl3/binutils.old/dist/gold/
H A 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 …]

12345678910>>...48