Home
last modified time | relevance | path

Searched refs:input_bfd (Results 1 – 25 of 174) sorted by relevance

1234567

/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Delf32-avr.c488 avr_final_link_relocate (howto, input_bfd, input_section, in avr_final_link_relocate() argument
491 bfd * input_bfd;
516 x = bfd_get_16 (input_bfd, contents);
518 bfd_put_16 (input_bfd, x, contents);
540 switch (bfd_get_mach (input_bfd))
551 x = bfd_get_16 (input_bfd, contents);
553 bfd_put_16 (input_bfd, x, contents);
559 x = bfd_get_16 (input_bfd, contents);
561 bfd_put_16 (input_bfd, x, contents);
568 x = bfd_get_16 (input_bfd, contents);
[all …]
H A Dcoff-alpha.c764 bfd *input_bfd = link_order->u.indirect.section->owner; local
766 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section);
781 if (! bfd_get_section_contents (input_bfd, input_section, data,
789 reloc_count = bfd_canonicalize_reloc (input_bfd, input_section,
867 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
879 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
910 insn = bfd_get_32 (input_bfd, data + rel->address);
915 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
943 insn1 = bfd_get_32 (input_bfd, data + rel->address);
944 insn2 = bfd_get_32 (input_bfd, data + rel->address + rel->addend);
[all …]
H A Delf32-m68hc1x.c222 bfd *input_bfd; in elf32_m68hc11_setup_section_lists() local
242 for (input_bfd = info->input_bfds, bfd_count = 0, top_id = 0; in elf32_m68hc11_setup_section_lists()
243 input_bfd != NULL; in elf32_m68hc11_setup_section_lists()
244 input_bfd = input_bfd->link_next) in elf32_m68hc11_setup_section_lists()
247 for (section = input_bfd->sections; in elf32_m68hc11_setup_section_lists()
251 const char* name = bfd_get_section_name (input_bfd, section); in elf32_m68hc11_setup_section_lists()
314 bfd *input_bfd; in elf32_m68hc11_size_stubs() local
328 for (input_bfd = info->input_bfds, bfd_count = 0; in elf32_m68hc11_size_stubs()
329 input_bfd != NULL; in elf32_m68hc11_size_stubs()
330 input_bfd = input_bfd->link_next) in elf32_m68hc11_size_stubs()
[all …]
H A Delf32-msp430.c311 msp430_final_link_relocate (howto, input_bfd, input_section, in msp430_final_link_relocate() argument
314 bfd *input_bfd;
345 x = bfd_get_16 (input_bfd, contents);
347 bfd_put_16 (input_bfd, x, contents);
362 bfd_put_16 (input_bfd, srel & 0xffff, contents);
374 bfd_put_16 (input_bfd, srel & 0xffff, contents);
381 bfd_put_16 (input_bfd, srel & 0xffff, contents);
392 bfd_put_16 (input_bfd, srel & 0xffff, contents);
396 r = _bfd_final_link_relocate (howto, input_bfd, input_section,
407 elf32_msp430_relocate_section (output_bfd, info, input_bfd, input_section, in elf32_msp430_relocate_section() argument
[all …]
H A Delf32-i860.c902 elf32_i860_relocate_splitn (bfd *input_bfd, in elf32_i860_relocate_splitn() argument
910 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_splitn()
919 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_splitn()
927 elf32_i860_relocate_pc16 (bfd *input_bfd, in elf32_i860_relocate_pc16() argument
936 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc16()
951 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc16()
959 elf32_i860_relocate_pc26 (bfd *input_bfd, in elf32_i860_relocate_pc26() argument
968 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc26()
982 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc26()
989 elf32_i860_relocate_highadj (bfd *input_bfd, in elf32_i860_relocate_highadj() argument
[all …]
H A Dpe-mips.c637 coff_pe_mips_relocate_section (output_bfd, info, input_bfd, in coff_pe_mips_relocate_section() argument
642 bfd *input_bfd;
661 bfd_archive_filename (input_bfd));
666 BFD_ASSERT (input_bfd->xvec->byteorder
671 input_bfd->filename, input_section->name,
706 h = obj_coff_sym_hashes (input_bfd)[symndx];
720 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h,
754 if (! obj_pe (input_bfd))
774 (info, h->root.root.string, input_bfd, input_section,
796 bfd_archive_filename (input_bfd), x); \
[all …]
H A Delf32-fr30.c394 fr30_final_link_relocate (howto, input_bfd, input_section, contents, rel, in fr30_final_link_relocate() argument
397 bfd *input_bfd;
416 x = bfd_get_32 (input_bfd, contents);
418 bfd_put_32 (input_bfd, x, contents);
424 bfd_put_32 (input_bfd, relocation, contents);
441 bfd_put_8 (input_bfd, srel >> 1, contents);
458 x = bfd_get_16 (input_bfd, contents);
460 bfd_put_16 (input_bfd, x, contents);
464 r = _bfd_final_link_relocate (howto, input_bfd, input_section,
503 fr30_elf_relocate_section (output_bfd, info, input_bfd, input_section, in fr30_elf_relocate_section() argument
[all …]
H A Delf32-openrisc.c262 openrisc_final_link_relocate (howto, input_bfd, input_section, contents, rel, in openrisc_final_link_relocate() argument
265 bfd *input_bfd;
277 r = _bfd_final_link_relocate (howto, input_bfd, input_section,
283 r = _bfd_final_link_relocate (howto, input_bfd, input_section,
322 openrisc_elf_relocate_section (output_bfd, info, input_bfd, input_section, in openrisc_elf_relocate_section() argument
326 bfd *input_bfd;
341 symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
342 sym_hashes = elf_sym_hashes (input_bfd);
381 (input_bfd, symtab_hdr->sh_link, sym->st_name);
382 name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name;
[all …]
H A Dcofflink.c1297 mark_relocs (struct coff_final_link_info *finfo, bfd *input_bfd) in mark_relocs() argument
1301 if ((bfd_get_file_flags (input_bfd) & HAS_SYMS) == 0) in mark_relocs()
1304 for (a = input_bfd->sections; a != (asection *) NULL; a = a->next) in mark_relocs()
1318 (input_bfd, a, FALSE, in mark_relocs()
1345 _bfd_coff_link_input_bfd (struct coff_final_link_info *finfo, bfd *input_bfd) in _bfd_coff_link_input_bfd() argument
1347 unsigned int n_tmask = coff_data (input_bfd)->local_n_tmask; in _bfd_coff_link_input_bfd()
1348 unsigned int n_btshft = coff_data (input_bfd)->local_n_btshft; in _bfd_coff_link_input_bfd()
1350 unsigned int n_btmask = coff_data (input_bfd)->local_n_btmask; in _bfd_coff_link_input_bfd()
1377 isymesz = bfd_coff_symesz (input_bfd); in _bfd_coff_link_input_bfd()
1379 linesz = bfd_coff_linesz (input_bfd); in _bfd_coff_link_input_bfd()
[all …]
H A Dreloc.c1343 bfd *input_bfd, in _bfd_final_link_relocate() argument
1380 return _bfd_relocate_contents (howto, input_bfd, relocation, in _bfd_final_link_relocate()
1388 bfd *input_bfd, in _bfd_relocate_contents() argument
1411 x = bfd_get_8 (input_bfd, location); in _bfd_relocate_contents()
1414 x = bfd_get_16 (input_bfd, location); in _bfd_relocate_contents()
1417 x = bfd_get_32 (input_bfd, location); in _bfd_relocate_contents()
1421 x = bfd_get_64 (input_bfd, location); in _bfd_relocate_contents()
1443 addrmask = N_ONES (bfd_arch_bits_per_address (input_bfd)) | fieldmask; in _bfd_relocate_contents()
1562 bfd_put_8 (input_bfd, x, location); in _bfd_relocate_contents()
1565 bfd_put_16 (input_bfd, x, location); in _bfd_relocate_contents()
[all …]
H A Delf32-mcore.c391 mcore_elf_relocate_section (output_bfd, info, input_bfd, input_section, in mcore_elf_relocate_section() argument
395 bfd * input_bfd;
402 Elf_Internal_Shdr * symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
403 struct elf_link_hash_entry ** sym_hashes = elf_sym_hashes (input_bfd);
411 bfd_archive_filename (input_bfd),
412 bfd_section_name(input_bfd, input_section),
442 bfd_archive_filename (input_bfd),
457 bfd_archive_filename (input_bfd),
477 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
489 oldinst = bfd_get_16 (input_bfd, contents + offset);
[all …]
H A Delf32-d10v.c424 elf32_d10v_relocate_section (output_bfd, info, input_bfd, input_section, in elf32_d10v_relocate_section() argument
428 bfd *input_bfd;
440 symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
441 sym_hashes = elf_sym_hashes (input_bfd);
487 val += extract_rel_addend (input_bfd, where, howto);
488 insert_rel_addend (input_bfd, where, howto, val);
510 addend = extract_rel_addend (input_bfd, where, howto);
515 insert_rel_addend (input_bfd, where, howto, addend);
522 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
533 (input_bfd, symtab_hdr->sh_link, sym->st_name));
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Dcoff-alpha.c781 bfd *input_bfd = link_order->u.indirect.section->owner; local
783 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section);
800 if (! bfd_get_section_contents (input_bfd, input_section, data, 0, sz))
803 reloc_count = bfd_canonicalize_reloc (input_bfd, input_section,
881 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
893 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
924 insn = bfd_get_32 (input_bfd, data + rel->address);
929 r = bfd_perform_relocation (input_bfd, rel, data, input_section,
957 insn1 = bfd_get_32 (input_bfd, data + rel->address);
958 insn2 = bfd_get_32 (input_bfd, data + rel->address + rel->addend);
[all …]
H A Delf32-avr.c572 bfd * input_bfd, in avr_final_link_relocate() argument
597 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
599 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
625 switch (bfd_get_mach (input_bfd)) in avr_final_link_relocate()
636 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
638 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
644 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
646 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
657 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
659 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
[all …]
H A Delf32-m68hc1x.c223 bfd *input_bfd; in elf32_m68hc11_setup_section_lists() local
243 for (input_bfd = info->input_bfds, bfd_count = 0, top_id = 0; in elf32_m68hc11_setup_section_lists()
244 input_bfd != NULL; in elf32_m68hc11_setup_section_lists()
245 input_bfd = input_bfd->link_next) in elf32_m68hc11_setup_section_lists()
248 for (section = input_bfd->sections; in elf32_m68hc11_setup_section_lists()
252 const char* name = bfd_get_section_name (input_bfd, section); in elf32_m68hc11_setup_section_lists()
315 bfd *input_bfd; in elf32_m68hc11_size_stubs() local
329 for (input_bfd = info->input_bfds, bfd_count = 0; in elf32_m68hc11_size_stubs()
330 input_bfd != NULL; in elf32_m68hc11_size_stubs()
331 input_bfd = input_bfd->link_next) in elf32_m68hc11_size_stubs()
[all …]
H A Delf32-xc16x.c230 bfd *input_bfd, in elf32_xc16x_final_link_relocate() argument
251 bfd_put_16 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
255 bfd_put_8 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
264 bfd_put_16 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
273 bfd_put_16 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
282 bfd_put_16 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
291 bfd_put_16 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
303 bfd_put_32 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
308 bfd_put_32 (input_bfd, value, hit_data); in elf32_xc16x_final_link_relocate()
320 bfd *input_bfd, in elf32_xc16x_relocate_section() argument
[all …]
H A Delf32-i860.c902 elf32_i860_relocate_splitn (bfd *input_bfd, in elf32_i860_relocate_splitn() argument
910 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_splitn()
919 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_splitn()
927 elf32_i860_relocate_pc16 (bfd *input_bfd, in elf32_i860_relocate_pc16() argument
936 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc16()
951 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc16()
959 elf32_i860_relocate_pc26 (bfd *input_bfd, in elf32_i860_relocate_pc26() argument
968 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc26()
982 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc26()
989 elf32_i860_relocate_highadj (bfd *input_bfd, in elf32_i860_relocate_highadj() argument
[all …]
H A Dcoff-mips.c62 bfd *input_bfd, asection *input_section, bfd_byte *contents,
779 mips_relocate_hi (refhi, reflo, input_bfd, input_section, contents, in mips_relocate_hi() argument
783 bfd *input_bfd;
795 insn = bfd_get_32 (input_bfd,
800 vallo = (bfd_get_32 (input_bfd,
819 bfd_put_32 (input_bfd, (bfd_vma) insn,
826 mips_relocate_section (output_bfd, info, input_bfd, input_section, in mips_relocate_section() argument
830 bfd *input_bfd;
846 BFD_ASSERT (input_bfd->xvec->byteorder
852 symndx_to_section = ecoff_data (input_bfd)->symndx_to_section;
[all …]
H A Delf32-fr30.c394 fr30_final_link_relocate (howto, input_bfd, input_section, contents, rel, in fr30_final_link_relocate() argument
397 bfd *input_bfd;
416 x = bfd_get_32 (input_bfd, contents);
418 bfd_put_32 (input_bfd, x, contents);
424 bfd_put_32 (input_bfd, relocation, contents);
441 bfd_put_8 (input_bfd, srel >> 1, contents);
458 x = bfd_get_16 (input_bfd, contents);
460 bfd_put_16 (input_bfd, x, contents);
464 r = _bfd_final_link_relocate (howto, input_bfd, input_section,
503 fr30_elf_relocate_section (output_bfd, info, input_bfd, input_section, in fr30_elf_relocate_section() argument
[all …]
H A Dpe-mips.c570 bfd *input_bfd, in coff_pe_mips_relocate_section() argument
588 (_("%B: `ld -r' not supported with PE MIPS objects\n"), input_bfd); in coff_pe_mips_relocate_section()
593 BFD_ASSERT (input_bfd->xvec->byteorder in coff_pe_mips_relocate_section()
622 h = obj_coff_sym_hashes (input_bfd)[symndx]; in coff_pe_mips_relocate_section()
636 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h, in coff_pe_mips_relocate_section()
670 if (! obj_pe (input_bfd)) in coff_pe_mips_relocate_section()
690 (info, h->root.root.string, input_bfd, input_section, in coff_pe_mips_relocate_section()
705 input_bfd, x); \ in coff_pe_mips_relocate_section()
719 tmp = bfd_get_32 (input_bfd, mem); in coff_pe_mips_relocate_section()
722 bfd_put_32 (input_bfd, tmp, mem); in coff_pe_mips_relocate_section()
[all …]
H A Delf32-openrisc.c235 bfd *input_bfd, in openrisc_final_link_relocate() argument
247 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in openrisc_final_link_relocate()
253 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in openrisc_final_link_relocate()
294 bfd *input_bfd, in openrisc_elf_relocate_section() argument
309 symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr; in openrisc_elf_relocate_section()
310 sym_hashes = elf_sym_hashes (input_bfd); in openrisc_elf_relocate_section()
349 (input_bfd, symtab_hdr->sh_link, sym->st_name); in openrisc_elf_relocate_section()
350 name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name; in openrisc_elf_relocate_section()
356 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, in openrisc_elf_relocate_section()
362 r = openrisc_final_link_relocate (howto, input_bfd, input_section, in openrisc_elf_relocate_section()
[all …]
H A Delf32-mt.c192 (bfd * input_bfd, in mt_elf_relocate_hi16() argument
199 insn = bfd_get_32 (input_bfd, contents + relhi->r_offset); in mt_elf_relocate_hi16()
205 bfd_put_32 (input_bfd, insn, contents + relhi->r_offset); in mt_elf_relocate_hi16()
232 bfd * input_bfd, in mt_final_link_relocate() argument
238 return _bfd_final_link_relocate (howto, input_bfd, input_section, in mt_final_link_relocate()
280 bfd * input_bfd, in mt_elf_relocate_section() argument
292 symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr; in mt_elf_relocate_section()
293 sym_hashes = elf_sym_hashes (input_bfd); in mt_elf_relocate_section()
325 (input_bfd, symtab_hdr->sh_link, sym->st_name); in mt_elf_relocate_section()
326 name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name; in mt_elf_relocate_section()
[all …]
H A Dreloc.c1335 bfd *input_bfd, in _bfd_final_link_relocate() argument
1345 if (address > bfd_get_section_limit (input_bfd, input_section)) in _bfd_final_link_relocate()
1372 return _bfd_relocate_contents (howto, input_bfd, relocation, in _bfd_final_link_relocate()
1380 bfd *input_bfd, in _bfd_relocate_contents() argument
1403 x = bfd_get_8 (input_bfd, location); in _bfd_relocate_contents()
1406 x = bfd_get_16 (input_bfd, location); in _bfd_relocate_contents()
1409 x = bfd_get_32 (input_bfd, location); in _bfd_relocate_contents()
1413 x = bfd_get_64 (input_bfd, location); in _bfd_relocate_contents()
1436 addrmask = N_ONES (bfd_arch_bits_per_address (input_bfd)) | fieldmask; in _bfd_relocate_contents()
1528 bfd_put_8 (input_bfd, x, location); in _bfd_relocate_contents()
[all …]
H A Dcofflink.c1298 mark_relocs (struct coff_final_link_info *finfo, bfd *input_bfd) in mark_relocs() argument
1302 if ((bfd_get_file_flags (input_bfd) & HAS_SYMS) == 0) in mark_relocs()
1305 for (a = input_bfd->sections; a != (asection *) NULL; a = a->next) in mark_relocs()
1319 (input_bfd, a, FALSE, in mark_relocs()
1346 _bfd_coff_link_input_bfd (struct coff_final_link_info *finfo, bfd *input_bfd) in _bfd_coff_link_input_bfd() argument
1348 unsigned int n_tmask = coff_data (input_bfd)->local_n_tmask; in _bfd_coff_link_input_bfd()
1349 unsigned int n_btshft = coff_data (input_bfd)->local_n_btshft; in _bfd_coff_link_input_bfd()
1375 isymesz = bfd_coff_symesz (input_bfd); in _bfd_coff_link_input_bfd()
1377 linesz = bfd_coff_linesz (input_bfd); in _bfd_coff_link_input_bfd()
1387 if (! _bfd_coff_get_external_symbols (input_bfd)) in _bfd_coff_link_input_bfd()
[all …]
H A Dcoff-mcore.c343 coff_mcore_relocate_section (output_bfd, info, input_bfd, input_section, in coff_mcore_relocate_section() argument
347 bfd * input_bfd;
366 if ( input_bfd->xvec->byteorder != output_bfd->xvec->byteorder
371 input_bfd,
372 bfd_big_endian (input_bfd) ? _("big endian") : _("little endian"),
408 h = obj_coff_sym_hashes (input_bfd)[symndx];
415 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h,
438 my_name = obj_coff_strings (input_bfd) + sym->_n._n_n._n_offset;
463 (info, h->root.root.string, input_bfd, input_section,
478 input_bfd, r_type);
[all …]

1234567