Home
last modified time | relevance | path

Searched refs:link_info (Results 1 – 25 of 142) sorted by relevance

123456

/toolchain/binutils/binutils-2.25/ld/
Dlexsup.c733 link_info.notice_all = TRUE; in parse_args()
777 link_info.export_dynamic = TRUE; in parse_args()
780 link_info.export_dynamic = FALSE; in parse_args()
826 link_info.gc_sections = TRUE; in parse_args()
829 link_info.print_gc_sections = TRUE; in parse_args()
872 link_info.gc_sections = FALSE; in parse_args()
875 link_info.print_gc_sections = FALSE; in parse_args()
878 link_info.keep_memory = FALSE; in parse_args()
881 link_info.unresolved_syms_in_objects in parse_args()
885 link_info.unresolved_syms_in_shared_libs = RM_IGNORE; in parse_args()
[all …]
Dldmain.h38 extern struct bfd_link_info link_info;
42 (link_info.disable_target_specific_optimizations < 0)
44 (link_info.disable_target_specific_optimizations > 1)
46 (link_info.disable_target_specific_optimizations == 0 \
47 || link_info.disable_target_specific_optimizations == 1)
49 (link_info.disable_target_specific_optimizations == 0)
51 do { link_info.disable_target_specific_optimizations = 1; } while (0)
53 do { link_info.disable_target_specific_optimizations = 2; } while (0)
55 do { link_info.disable_target_specific_optimizations = 0; } while (0)
Dldwrite.c51 ASSERT (output_section->owner == link_info.output_bfd); in build_link_order()
58 link_order = bfd_new_link_order (link_info.output_bfd, output_section); in build_link_order()
73 if (bfd_big_endian (link_info.output_bfd)) in build_link_order()
75 else if (bfd_little_endian (link_info.output_bfd)) in build_link_order()
139 ASSERT (output_section->owner == link_info.output_bfd); in build_link_order()
145 bfd_put_64 (link_info.output_bfd, value, in build_link_order()
157 bfd_put_32 (link_info.output_bfd, high, in build_link_order()
160 bfd_put_32 (link_info.output_bfd, value, in build_link_order()
167 bfd_put_32 (link_info.output_bfd, value, in build_link_order()
172 bfd_put_16 (link_info.output_bfd, value, in build_link_order()
[all …]
Dldmain.c163 struct bfd_link_info link_info; variable
264 link_info.disable_target_specific_optimizations = -1; in main()
284 link_info.allow_undefined_version = TRUE; in main()
285 link_info.keep_memory = TRUE; in main()
286 link_info.combreloc = TRUE; in main()
287 link_info.strip_discarded = TRUE; in main()
288 link_info.emit_hash = TRUE; in main()
289 link_info.callbacks = &link_callbacks; in main()
290 link_info.input_bfds_tail = &link_info.input_bfds; in main()
293 link_info.init_function = "_init"; in main()
[all …]
Dldlang.c156 if (link_info.path_separator == 0) in archive_path()
159 p = strchr (pattern, link_info.path_separator); in archive_path()
161 if (p == NULL || link_info.path_separator != ':') in archive_path()
167 p = strchr (p + 1, link_info.path_separator); in archive_path()
193 *sep = link_info.path_separator; in input_statement_is_archive_path()
206 if (link_info.relocatable in unique_section_p()
1531 if (match_type && !match_type (link_info.output_bfd, in lang_output_section_find_by_flags()
1558 if (match_type && !match_type (link_info.output_bfd, in lang_output_section_find_by_flags()
1579 if (match_type && !match_type (link_info.output_bfd, in lang_output_section_find_by_flags()
1636 if (match_type && !match_type (link_info.output_bfd, in lang_output_section_find_by_flags()
[all …]
/toolchain/binutils/binutils-2.25/bfd/
Dsimple.c28 simple_dummy_warning (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_warning()
39 simple_dummy_undefined_symbol (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_undefined_symbol()
50 simple_dummy_reloc_overflow (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_reloc_overflow()
63 simple_dummy_reloc_dangerous (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_reloc_dangerous()
73 simple_dummy_unattached_reloc (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_unattached_reloc()
83 simple_dummy_multiple_definition (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, in simple_dummy_multiple_definition()
185 struct bfd_link_info link_info; in bfd_simple_get_relocated_section_contents() local
208 memset (&link_info, 0, sizeof (link_info)); in bfd_simple_get_relocated_section_contents()
209 link_info.output_bfd = abfd; in bfd_simple_get_relocated_section_contents()
210 link_info.input_bfds = abfd; in bfd_simple_get_relocated_section_contents()
[all …]
Dcoff-h8300.c405 unsigned int shrink, struct bfd_link_info *link_info) in h8300_reloc16_estimate() argument
430 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_estimate()
488 last_value = bfd_coff_reloc16_get_value (last_reloc, link_info, in h8300_reloc16_estimate()
519 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section) + 1; in h8300_reloc16_estimate()
546 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_estimate()
567 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_estimate()
590 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_estimate()
622 h8300_reloc16_extra_cases (bfd *abfd, struct bfd_link_info *link_info, in h8300_reloc16_extra_cases() argument
640 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_extra_cases()
651 if (! ((*link_info->callbacks->reloc_overflow) in h8300_reloc16_extra_cases()
[all …]
Dcoff-w65.c112 struct bfd_link_info *link_info) in w65_reloc16_estimate() argument
136 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate()
155 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate()
177 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate()
215 struct bfd_link_info *link_info, in w65_reloc16_extra_cases() argument
231 unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, in w65_reloc16_extra_cases()
241 unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, in w65_reloc16_extra_cases()
252 unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, in w65_reloc16_extra_cases()
263 unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, in w65_reloc16_extra_cases()
273 unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, in w65_reloc16_extra_cases()
[all …]
Dcoff-z8k.c191 struct bfd_link_info *link_info, in extra_case() argument
204 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case()
215 bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
221 bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
238 & bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
247 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case()
255 bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
268 if (! ((*link_info->callbacks->reloc_overflow) in extra_case()
269 (link_info, NULL, in extra_case()
283 bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
[all …]
Dcoff-h8500.c161 struct bfd_link_info *link_info, in extra_case() argument
175 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case()
183 (bfd_coff_reloc16_get_value (reloc, link_info, input_section) in extra_case()
192 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case()
200 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case()
209 (bfd_coff_reloc16_get_value (reloc, link_info, input_section) in extra_case()
219 int v = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
229 int v = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
238 bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
248 if (! ((*link_info->callbacks->reloc_overflow) in extra_case()
[all …]
Dreloc16.c46 struct bfd_link_info *link_info, in bfd_coff_reloc16_get_value() argument
65 h = bfd_wrapped_link_hash_lookup (input_section->owner, link_info, in bfd_coff_reloc16_get_value()
83 if (!((*link_info->callbacks->undefined_symbol) in bfd_coff_reloc16_get_value()
84 (link_info, bfd_asymbol_name (symbol), in bfd_coff_reloc16_get_value()
145 struct bfd_link_info *link_info, in bfd_coff_reloc16_relax_section() argument
156 if (link_info->relocatable) in bfd_coff_reloc16_relax_section()
157 (*link_info->callbacks->einfo) in bfd_coff_reloc16_relax_section()
221 shrinks[i], link_info); in bfd_coff_reloc16_relax_section()
248 struct bfd_link_info *link_info, in bfd_coff_reloc16_get_relocated_section_contents() argument
267 return bfd_generic_get_relocated_section_contents (in_abfd, link_info, in bfd_coff_reloc16_get_relocated_section_contents()
[all …]
Dcoff-z80.c175 struct bfd_link_info *link_info, in extra_case() argument
188 val = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
192 if (! ((*link_info->callbacks->reloc_overflow) in extra_case()
193 (link_info, NULL, in extra_case()
206 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
214 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
223 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
232 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case()
240 bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info, in extra_case()
251 if (! ((*link_info->callbacks->reloc_overflow) in extra_case()
[all …]
/toolchain/binutils/binutils-2.25/ld/emultempl/
Delf32.em319 abfd = bfd_openr (name, bfd_get_target (link_info.output_bfd));
338 if (abfd->xvec != link_info.output_bfd->xvec)
446 if (! bfd_link_add_symbols (abfd, &link_info))
983 struct elf_obj_tdata *t = elf_tdata (link_info.output_bfd);
1007 htab = elf_hash_table (&link_info);
1016 for (abfd = link_info.input_bfds;
1031 if (link_info.relocatable)
1033 if (link_info.execstack == ! link_info.noexecstack)
1040 (void) bfd_make_section_with_flags (link_info.input_bfds,
1042 SEC_READONLY | (link_info.execstack ? SEC_CODE : 0));
[all …]
Delf-generic.em37 if (link_info.output_bfd->xvec->flavour == bfd_target_elf_flavour
38 && !link_info.relocatable)
42 phdr_size = elf_program_header_size (link_info.output_bfd);
46 elf_seg_map (link_info.output_bfd) = NULL;
47 if (!_bfd_elf_map_sections_to_segments (link_info.output_bfd,
48 &link_info))
51 if (phdr_size != elf_program_header_size (link_info.output_bfd))
58 < elf_program_header_size (link_info.output_bfd))
62 elf_program_header_size (link_info.output_bfd) = phdr_size;
Dhppaelf.em53 if (link_info.relocatable)
71 if (!(bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
72 && (elf_object_id (link_info.output_bfd) == HPPA32_ELF_DATA
73 || elf_object_id (link_info.output_bfd) == HPPA64_ELF_DATA)))
79 stub_file->the_bfd = bfd_create ("linker stubs", link_info.output_bfd);
82 bfd_get_arch (link_info.output_bfd),
83 bfd_get_mach (link_info.output_bfd)))
232 && i->output_section->owner == link_info.output_bfd)
234 elf32_hppa_next_input_section (&link_info, i);
251 ret = bfd_elf_discard_info (link_info.output_bfd, &link_info);
[all …]
Dnios2elf.em46 if (link_info.output_bfd->xvec != &nios2_elf32_le_vec
47 && link_info.output_bfd->xvec != &nios2_elf32_be_vec)
53 if (!link_info.relocatable && RELAXATION_DISABLED_BY_DEFAULT)
61 stub_file->the_bfd = bfd_create ("linker stubs", link_info.output_bfd);
64 bfd_get_arch (link_info.output_bfd),
65 bfd_get_mach (link_info.output_bfd)))
226 && i->output_section->owner == link_info.output_bfd)
228 nios2_elf32_next_input_section (&link_info, i);
245 ret = bfd_elf_discard_info (link_info.output_bfd, &link_info);
256 if (stub_file != NULL && !link_info.relocatable && RELAXATION_ENABLED)
[all …]
Darmelf.em59 bfd_elf32_arm_set_byteswap_code (&link_info, byteswap_code);
63 bfd_elf32_arm_set_vfp11_fix (link_info.output_bfd, &link_info);
66 bfd_elf32_arm_set_cortex_a8_fix (link_info.output_bfd, &link_info);
70 if (elf_hash_table (&link_info)->dynobj == NULL)
79 &link_info)
80 || !bfd_elf32_arm_vfp11_erratum_scan (is->the_bfd, &link_info))
86 bfd_elf32_arm_allocate_interworking_sections (& link_info);
244 && i->output_section->owner == link_info.output_bfd)
245 elf32_arm_next_input_section (& link_info, i);
276 if (!link_info.relocatable)
[all …]
Dmipself.em45 if (link_info.emit_gnu_hash)
48 link_info.emit_hash = TRUE;
49 link_info.emit_gnu_hash = FALSE;
154 stub_bfd = bfd_create ("linker stubs", link_info.output_bfd);
157 bfd_get_arch (link_info.output_bfd),
158 bfd_get_mach (link_info.output_bfd)))
204 htab = elf_hash_table (&link_info);
205 if (is_elf_hash_table (htab) && is_mips_elf (link_info.output_bfd))
206 _bfd_mips_elf_insn32 (&link_info, insn32);
208 if (is_mips_elf (link_info.output_bfd))
[all …]
Daix.em149 /* The link_info.[init|fini]_functions are initialized in ld/lexsup.c.
150 Override them here so we can use the link_info.init_function as a
153 link_info.init_function = NULL;
154 link_info.fini_function = NULL;
456 link_info.init_function = i;
464 link_info.fini_function = f;
469 link_info.static_link = FALSE;
473 link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
474 link_info.unresolved_syms_in_shared_libs = RM_GENERATE_ERROR;
478 link_info.unresolved_syms_in_objects = RM_IGNORE;
[all …]
Dppc64elf.em76 if (!(bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
77 && elf_object_id (link_info.output_bfd) == PPC64_ELF_DATA))
80 link_info.wrap_char = '.';
85 stub_file->the_bfd = bfd_create ("linker stubs", link_info.output_bfd);
88 bfd_get_arch (link_info.output_bfd),
89 bfd_get_mach (link_info.output_bfd)))
99 params.save_restore_funcs = !link_info.relocatable;
100 if (!ppc64_elf_init_stub_bfd (&link_info, &params))
249 && !ppc64_elf_edit_opd (&link_info))
252 if (ppc64_elf_tls_setup (&link_info)
[all …]
Dmetagelf.em50 if (link_info.output_bfd->xvec != &metag_elf32_vec)
56 stub_file->the_bfd = bfd_create ("linker stubs", link_info.output_bfd);
59 bfd_get_arch (link_info.output_bfd),
60 bfd_get_mach (link_info.output_bfd)))
209 && i->output_section->owner == link_info.output_bfd)
211 elf_metag_next_input_section (&link_info, i);
228 ret = bfd_elf_discard_info (link_info.output_bfd, &link_info);
239 if (stub_file != NULL && !link_info.relocatable)
241 ret = elf_metag_setup_section_lists (link_info.output_bfd, &link_info);
253 if (! elf_metag_size_stubs (link_info.output_bfd,
[all …]
Dtic6xdsbt.em46 return (link_info.output_bfd->xvec == &tic6x_elf32_le_vec
47 || link_info.output_bfd->xvec == &tic6x_elf32_be_vec
48 || link_info.output_bfd->xvec == &tic6x_elf32_linux_le_vec
49 || link_info.output_bfd->xvec == &tic6x_elf32_linux_be_vec
50 || link_info.output_bfd->xvec == &tic6x_elf32_c6000_le_vec
51 || link_info.output_bfd->xvec == &tic6x_elf32_c6000_be_vec);
66 elf32_tic6x_setup (&link_info, &params);
100 if (!link_info.relocatable)
143 if (elf32_tic6x_fix_exidx_coverage (sec_list, sec_count, &link_info,
153 ret = bfd_elf_discard_info (link_info.output_bfd, & link_info);
Dsolaris2.em56 if (!link_info.relocatable)
63 h = elf_link_hash_lookup (elf_hash_table (&link_info), *sym,
73 bfd_elf_link_record_dynamic_symbol (&link_info, h);
78 if (link_info.shared
79 && (link_info.version_info != NULL
80 || link_info.create_default_symver))
99 soname = bfd_elf_get_dt_soname (link_info.output_bfd);
101 soname = lbasename (bfd_get_filename (link_info.output_bfd));
130 if (!link_info.relocatable)
137 h = elf_link_hash_lookup (elf_hash_table (&link_info), *sym,
Dalphaelf.em42 if (bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
43 && elf_object_id (link_info.output_bfd) == ALPHA_ELF_DATA)
75 link_info.relax_pass = 2;
76 if (limit_32bit && !link_info.shared && !link_info.relocatable)
93 if (link_info.optimize && !link_info.relocatable && ! RELAXATION_DISABLED_BY_USER)
101 elf_elfheader (link_info.output_bfd)->e_flags |= EF_ALPHA_32BIT;
Dvms.em35 link_info.emit_hash = FALSE;
36 link_info.spare_dynamic_tags = 0;
104 if (link_info.relocatable
191 if (!is_elf_hash_table (link_info.hash))
194 bed = get_elf_backend_data (link_info.output_bfd);
198 if (elf_hash_table (&link_info)->dynamic_sections_created
200 && ! (*bed->elf_backend_size_dynamic_sections) (link_info.output_bfd,
201 &link_info))
210 int need_layout = bfd_elf_discard_info (link_info.output_bfd, &link_info);
221 link_info.relax_pass = 2;

123456