| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | sunos.c | 613 bfd *dynobj; member 690 ret->dynobj = NULL; in sunos_link_hash_table_create() 740 sunos_hash_table (info)->dynobj = abfd; in sunos_create_dynamic_sections() 808 bfd *dynobj; in sunos_create_dynamic_sections() local 810 dynobj = sunos_hash_table (info)->dynobj; in sunos_create_dynamic_sections() 812 s = bfd_get_section_by_name (dynobj, ".got"); in sunos_create_dynamic_sections() 833 bfd *dynobj; in sunos_add_dynamic_symbols() local 850 dynobj = sunos_hash_table (info)->dynobj; in sunos_add_dynamic_symbols() 859 if (abfd != dynobj) in sunos_add_dynamic_symbols() 888 if (bfd_get_section_by_name (dynobj, ".need") == NULL) in sunos_add_dynamic_symbols() [all …]
|
| H A D | elf32-vax.c | 552 bfd *dynobj; in elf_vax_check_relocs() local 564 dynobj = elf_hash_table (info)->dynobj; in elf_vax_check_relocs() 599 if (dynobj == NULL) in elf_vax_check_relocs() 602 elf_hash_table (info)->dynobj = dynobj = abfd; in elf_vax_check_relocs() 603 if (!_bfd_elf_create_got_section (dynobj, info)) in elf_vax_check_relocs() 609 sgot = bfd_get_section_by_name (dynobj, ".got"); in elf_vax_check_relocs() 616 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); in elf_vax_check_relocs() 619 srelgot = bfd_make_section_with_flags (dynobj, in elf_vax_check_relocs() 628 || !bfd_set_section_alignment (dynobj, srelgot, 2)) in elf_vax_check_relocs() 745 sreloc = bfd_get_section_by_name (dynobj, name); in elf_vax_check_relocs() [all …]
|
| H A D | elf32-m88k.c | 457 bfd *dynobj; local 470 dynobj = elf_hash_table (info)->dynobj; 503 if (dynobj == NULL) 506 elf_hash_table (info)->dynobj = dynobj = abfd; 507 if (!_bfd_elf_create_got_section (dynobj, info)) 513 sgot = bfd_get_section_by_name (dynobj, ".got"); 520 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 523 srelgot = bfd_make_section_with_flags (dynobj, 532 || !bfd_set_section_alignment (dynobj, srelgot, 2)) 689 sreloc = bfd_get_section_by_name (dynobj, name); [all …]
|
| H A D | elf32-xstormy16.c | 387 bfd *dynobj; in xstormy16_elf_check_relocs() local 396 dynobj = elf_hash_table(info)->dynobj; in xstormy16_elf_check_relocs() 429 if (dynobj == NULL) in xstormy16_elf_check_relocs() 430 elf_hash_table (info)->dynobj = dynobj = abfd; in xstormy16_elf_check_relocs() 433 splt = bfd_get_section_by_name (dynobj, ".plt"); in xstormy16_elf_check_relocs() 436 splt = bfd_make_section_with_flags (dynobj, ".plt", in xstormy16_elf_check_relocs() 446 || ! bfd_set_section_alignment (dynobj, splt, 1)) in xstormy16_elf_check_relocs() 559 xstormy16_elf_relax_section (bfd *dynobj, in xstormy16_elf_relax_section() argument 574 if (dynobj != elf_hash_table (info)->dynobj in xstormy16_elf_relax_section() 690 bfd *dynobj; in xstormy16_elf_always_size_sections() local [all …]
|
| H A D | elf32-i370.c | 446 bfd *dynobj = elf_hash_table (info)->dynobj; in i370_elf_adjust_dynamic_symbol() local 456 BFD_ASSERT (dynobj != NULL in i370_elf_adjust_dynamic_symbol() 463 s = bfd_get_section_by_name (dynobj, ".rela.text"); in i370_elf_adjust_dynamic_symbol() 510 if (h->size <= elf_gp_size (dynobj)) in i370_elf_adjust_dynamic_symbol() 511 s = bfd_get_section_by_name (dynobj, ".dynsbss"); in i370_elf_adjust_dynamic_symbol() 513 s = bfd_get_section_by_name (dynobj, ".dynbss"); in i370_elf_adjust_dynamic_symbol() 524 if (h->size <= elf_gp_size (dynobj)) in i370_elf_adjust_dynamic_symbol() 525 srel = bfd_get_section_by_name (dynobj, ".rela.sbss"); in i370_elf_adjust_dynamic_symbol() 527 srel = bfd_get_section_by_name (dynobj, ".rela.bss"); in i370_elf_adjust_dynamic_symbol() 541 if (power_of_two > bfd_get_section_alignment (dynobj, s)) in i370_elf_adjust_dynamic_symbol() [all …]
|
| H A D | elf32-cris.c | 928 bfd *dynobj; local 941 dynobj = elf_hash_table (info)->dynobj; 951 if (dynobj != NULL) 953 splt = bfd_get_section_by_name (dynobj, ".plt"); 954 sgot = bfd_get_section_by_name (dynobj, ".got"); 1080 = bfd_get_section_by_name (dynobj, ".got.plt"); 1211 s = bfd_get_section_by_name (dynobj, ".rela.got"); 1396 sreloc = bfd_get_section_by_name (dynobj, name); 1546 bfd *dynobj; local 1574 dynobj = elf_hash_table (info)->dynobj; [all …]
|
| H A D | elf32-m68k.c | 574 bfd *dynobj; local 587 dynobj = elf_hash_table (info)->dynobj; 628 if (dynobj == NULL) 631 elf_hash_table (info)->dynobj = dynobj = abfd; 632 if (!_bfd_elf_create_got_section (dynobj, info)) 638 sgot = bfd_get_section_by_name (dynobj, ".got"); 645 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 648 srelgot = bfd_make_section_with_flags (dynobj, 657 || !bfd_set_section_alignment (dynobj, srelgot, 2)) 819 sreloc = bfd_get_section_by_name (dynobj, name); [all …]
|
| H A D | elf64-hppa.c | 518 bfd *dynobj; local 533 dynobj = hppa_info->root.dynobj; 534 if (!dynobj) 535 hppa_info->root.dynobj = dynobj = abfd; 537 srel = bfd_get_section_by_name (dynobj, srel_name); 540 srel = bfd_make_section_with_flags (dynobj, srel_name, 548 || !bfd_set_section_alignment (dynobj, srel, 3)) 1016 && ! get_opd (hppa_info->root.dynobj, info, hppa_info)) 1233 bfd *dynobj; local 1238 dynobj = hppa_info->root.dynobj; [all …]
|
| H A D | elf64-sh64.c | 1431 bfd *dynobj; in sh_elf64_relocate_section() local 1441 dynobj = elf_hash_table (info)->dynobj; in sh_elf64_relocate_section() 1717 sreloc = bfd_get_section_by_name (dynobj, name); in sh_elf64_relocate_section() 1802 sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in sh_elf64_relocate_section() 1825 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 1919 s = bfd_get_section_by_name (dynobj, ".rela.got"); in sh_elf64_relocate_section() 1954 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 1979 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 2017 splt = bfd_get_section_by_name (dynobj, ".plt"); in sh_elf64_relocate_section() 2430 bfd *dynobj; in sh_elf64_check_relocs() local [all …]
|
| H A D | elf-m10300.c | 670 bfd * dynobj; local 689 dynobj = elf_hash_table (info)->dynobj; 709 if (dynobj == NULL) 721 elf_hash_table (info)->dynobj = dynobj = abfd; 722 if (! _bfd_mn10300_elf_create_got_section (dynobj, info)) 753 sgot = bfd_get_section_by_name (dynobj, ".got"); 760 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 763 srelgot = bfd_make_section_with_flags (dynobj, 772 || ! bfd_set_section_alignment (dynobj, srelgot, 2)) 890 sreloc = bfd_get_section_by_name (dynobj, name); [all …]
|
| H A D | elf32-m32c.c | 340 bfd *dynobj; in m32c_elf_relocate_section() local 347 dynobj = elf_hash_table (info)->dynobj; in m32c_elf_relocate_section() 349 if (dynobj != NULL) in m32c_elf_relocate_section() 350 splt = bfd_get_section_by_name (dynobj, ".plt"); in m32c_elf_relocate_section() 647 bfd *dynobj; in m32c_elf_check_relocs() local 656 dynobj = elf_hash_table(info)->dynobj; in m32c_elf_check_relocs() 686 if (dynobj == NULL) in m32c_elf_check_relocs() 687 elf_hash_table (info)->dynobj = dynobj = abfd; in m32c_elf_check_relocs() 690 splt = bfd_get_section_by_name (dynobj, ".plt"); in m32c_elf_check_relocs() 693 splt = bfd_make_section (dynobj, ".plt"); in m32c_elf_check_relocs() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | sunos.c | 650 bfd *dynobj; member 729 ret->dynobj = NULL; 783 sunos_hash_table (info)->dynobj = abfd; 851 bfd *dynobj; local 853 dynobj = sunos_hash_table (info)->dynobj; 855 s = bfd_get_section_by_name (dynobj, ".got"); 877 bfd *dynobj; local 895 dynobj = sunos_hash_table (info)->dynobj; 906 if (abfd != dynobj || ((*ps)->flags & SEC_LINKER_CREATED) == 0) 928 if (bfd_get_section_by_name (dynobj, ".need") == NULL) [all …]
|
| H A D | elf32-vax.c | 572 bfd *dynobj; local 584 dynobj = elf_hash_table (info)->dynobj; 614 if (dynobj == NULL) 617 elf_hash_table (info)->dynobj = dynobj = abfd; 618 if (!_bfd_elf_create_got_section (dynobj, info)) 624 sgot = bfd_get_section_by_name (dynobj, ".got"); 631 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 634 srelgot = bfd_make_section (dynobj, ".rela.got"); 636 || !bfd_set_section_flags (dynobj, srelgot, 643 || !bfd_set_section_alignment (dynobj, srelgot, 2)) [all …]
|
| H A D | elf32-m88k.c | 461 bfd *dynobj; local 474 dynobj = elf_hash_table (info)->dynobj; 502 if (dynobj == NULL) 505 elf_hash_table (info)->dynobj = dynobj = abfd; 506 if (!_bfd_elf_create_got_section (dynobj, info)) 512 sgot = bfd_get_section_by_name (dynobj, ".got"); 519 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 522 srelgot = bfd_make_section (dynobj, ".rela.got"); 524 || !bfd_set_section_flags (dynobj, srelgot, 531 || !bfd_set_section_alignment (dynobj, srelgot, 2)) [all …]
|
| H A D | elf32-m68k.c | 420 bfd *dynobj; local 433 dynobj = elf_hash_table (info)->dynobj; 469 if (dynobj == NULL) 472 elf_hash_table (info)->dynobj = dynobj = abfd; 473 if (!_bfd_elf_create_got_section (dynobj, info)) 479 sgot = bfd_get_section_by_name (dynobj, ".got"); 486 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 489 srelgot = bfd_make_section (dynobj, ".rela.got"); 491 || !bfd_set_section_flags (dynobj, srelgot, 498 || !bfd_set_section_alignment (dynobj, srelgot, 2)) [all …]
|
| H A D | elf32-cris.c | 792 bfd *dynobj; local 805 dynobj = elf_hash_table (info)->dynobj; 815 if (dynobj != NULL) 817 splt = bfd_get_section_by_name (dynobj, ".plt"); 818 sgot = bfd_get_section_by_name (dynobj, ".got"); 945 = bfd_get_section_by_name (dynobj, ".got.plt"); 1080 s = bfd_get_section_by_name (dynobj, ".rela.got"); 1263 sreloc = bfd_get_section_by_name (dynobj, name); 1414 bfd *dynobj; local 1417 dynobj = elf_hash_table (info)->dynobj; [all …]
|
| H A D | elf32-xstormy16.c | 424 bfd *dynobj; local 433 dynobj = elf_hash_table(info)->dynobj; 466 if (dynobj == NULL) 467 elf_hash_table (info)->dynobj = dynobj = abfd; 470 splt = bfd_get_section_by_name (dynobj, ".plt"); 473 splt = bfd_make_section (dynobj, ".plt"); 475 || ! bfd_set_section_flags (dynobj, splt, 483 || ! bfd_set_section_alignment (dynobj, splt, 1)) 600 xstormy16_elf_relax_section (dynobj, splt, info, again) in xstormy16_elf_relax_section() argument 601 bfd *dynobj; in xstormy16_elf_relax_section() [all …]
|
| H A D | elf32-i370.c | 492 bfd *dynobj = elf_hash_table (info)->dynobj; local 502 BFD_ASSERT (dynobj != NULL 512 s = bfd_get_section_by_name (dynobj, ".rela.text"); 552 if (h->size <= elf_gp_size (dynobj)) 553 s = bfd_get_section_by_name (dynobj, ".dynsbss"); 555 s = bfd_get_section_by_name (dynobj, ".dynbss"); 566 if (h->size <= elf_gp_size (dynobj)) 567 srel = bfd_get_section_by_name (dynobj, ".rela.sbss"); 569 srel = bfd_get_section_by_name (dynobj, ".rela.bss"); 584 if (power_of_two > bfd_get_section_alignment (dynobj, s)) [all …]
|
| H A D | elf64-hppa.c | 515 bfd *dynobj; local 530 dynobj = hppa_info->root.dynobj; 531 if (!dynobj) 532 hppa_info->root.dynobj = dynobj = abfd; 534 srel = bfd_get_section_by_name (dynobj, srel_name); 537 srel = bfd_make_section (dynobj, srel_name); 539 || !bfd_set_section_flags (dynobj, srel, 546 || !bfd_set_section_alignment (dynobj, srel, 3)) 1011 && ! get_opd (hppa_info->root.dynobj, info, hppa_info)) 1227 bfd *dynobj; local [all …]
|
| H A D | elf64-sh64.c | 1490 bfd *dynobj; in sh_elf64_relocate_section() local 1500 dynobj = elf_hash_table (info)->dynobj; in sh_elf64_relocate_section() 1778 sreloc = bfd_get_section_by_name (dynobj, name); in sh_elf64_relocate_section() 1864 sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in sh_elf64_relocate_section() 1887 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 1981 s = bfd_get_section_by_name (dynobj, ".rela.got"); in sh_elf64_relocate_section() 2016 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 2041 sgot = bfd_get_section_by_name (dynobj, ".got"); in sh_elf64_relocate_section() 2079 splt = bfd_get_section_by_name (dynobj, ".plt"); in sh_elf64_relocate_section() 2491 bfd *dynobj; in sh_elf64_check_relocs() local [all …]
|
| H A D | elf32-arm.h | 91 PARAMS ((bfd * dynobj, struct bfd_link_info * info)); 93 PARAMS ((bfd * dynobj, struct bfd_link_info * info)); 297 create_got_section (dynobj, info) in create_got_section() argument 298 bfd *dynobj; in create_got_section() 303 if (! _bfd_elf_create_got_section (dynobj, info)) 307 htab->sgot = bfd_get_section_by_name (dynobj, ".got"); 308 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); 312 htab->srelgot = bfd_make_section (dynobj, ".rel.got"); 314 || ! bfd_set_section_flags (dynobj, htab->srelgot, 318 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 2)) [all …]
|
| H A D | elf64-sparc.c | 1095 bfd *dynobj; local 1108 dynobj = elf_hash_table (info)->dynobj; 1136 if (dynobj == NULL) 1139 elf_hash_table (info)->dynobj = dynobj = abfd; 1140 if (! _bfd_elf_create_got_section (dynobj, info)) 1146 sgot = bfd_get_section_by_name (dynobj, ".got"); 1152 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 1155 srelgot = bfd_make_section (dynobj, ".rela.got"); 1157 || ! bfd_set_section_flags (dynobj, srelgot, 1164 || ! bfd_set_section_alignment (dynobj, srelgot, 3)) [all …]
|
| H A D | elf-m10300.c | 712 bfd * dynobj; local 731 dynobj = elf_hash_table (info)->dynobj; 746 if (dynobj == NULL) 758 elf_hash_table (info)->dynobj = dynobj = abfd; 759 if (! _bfd_mn10300_elf_create_got_section (dynobj, info)) 790 sgot = bfd_get_section_by_name (dynobj, ".got"); 797 srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); 800 srelgot = bfd_make_section (dynobj, ".rela.got"); 802 || ! bfd_set_section_flags (dynobj, srelgot, 809 || ! bfd_set_section_alignment (dynobj, srelgot, 2)) [all …]
|
| H A D | elf64-x86-64.c | 448 create_got_section (bfd *dynobj, struct bfd_link_info *info) in create_got_section() argument 452 if (! _bfd_elf_create_got_section (dynobj, info)) in create_got_section() 456 htab->sgot = bfd_get_section_by_name (dynobj, ".got"); in create_got_section() 457 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in create_got_section() 461 htab->srelgot = bfd_make_section (dynobj, ".rela.got"); in create_got_section() 463 || ! bfd_set_section_flags (dynobj, htab->srelgot, in create_got_section() 467 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 3)) in create_got_section() 477 elf64_x86_64_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info) in elf64_x86_64_create_dynamic_sections() argument 482 if (!htab->sgot && !create_got_section (dynobj, info)) in elf64_x86_64_create_dynamic_sections() 485 if (!_bfd_elf_create_dynamic_sections (dynobj, info)) in elf64_x86_64_create_dynamic_sections() [all …]
|
| /openbsd-src/libexec/ld.so/ |
| H A D | dlfcn.c | 167 elf_object_t *dynobj; in dlsym() local 196 dynobj = _dl_objects; in dlsym() 197 while (dynobj && dynobj != object) in dlsym() 198 dynobj = dynobj->next; in dlsym() 200 if (!dynobj || object != dynobj) { in dlsym() 323 elf_object_t *dynobj; in _dl_real_close() local 327 dynobj = _dl_objects; in _dl_real_close() 328 while (dynobj && dynobj != object) in _dl_real_close() 329 dynobj = dynobj->next; in _dl_real_close() 331 if (!dynobj || object != dynobj) { in _dl_real_close() [all …]
|