Home
last modified time | relevance | path

Searched refs:link_order (Results 1 – 25 of 88) sorted by relevance

1234

/openbsd/src/gnu/usr.bin/binutils-2.17/ld/
Dldwrite.c46 struct bfd_link_order *link_order; in build_link_order() local
53 link_order = bfd_new_link_order (output_bfd, output_section); in build_link_order()
54 if (link_order == NULL) in build_link_order()
57 link_order->type = bfd_data_link_order; in build_link_order()
58 link_order->offset = statement->data_statement.output_offset; in build_link_order()
59 link_order->u.data.contents = xmalloc (QUAD_SIZE); in build_link_order()
140 bfd_put_64 (output_bfd, value, link_order->u.data.contents); in build_link_order()
152 (link_order->u.data.contents in build_link_order()
155 (link_order->u.data.contents in build_link_order()
158 link_order->size = QUAD_SIZE; in build_link_order()
[all …]
/openbsd/src/gnu/usr.bin/binutils/ld/
Dldwrite.c46 struct bfd_link_order *link_order; in build_link_order() local
53 link_order = bfd_new_link_order (output_bfd, output_section); in build_link_order()
54 if (link_order == NULL) in build_link_order()
57 link_order->type = bfd_data_link_order; in build_link_order()
58 link_order->offset = statement->data_statement.output_vma; in build_link_order()
59 link_order->u.data.contents = xmalloc (QUAD_SIZE); in build_link_order()
140 bfd_put_64 (output_bfd, value, link_order->u.data.contents); in build_link_order()
152 (link_order->u.data.contents in build_link_order()
155 (link_order->u.data.contents in build_link_order()
158 link_order->size = QUAD_SIZE; in build_link_order()
[all …]
/openbsd/src/gnu/usr.bin/binutils/bfd/
Dsimple.c138 struct bfd_link_order link_order; in bfd_simple_get_relocated_section_contents() local
175 memset (&link_order, 0, sizeof (link_order)); in bfd_simple_get_relocated_section_contents()
176 link_order.next = NULL; in bfd_simple_get_relocated_section_contents()
177 link_order.type = bfd_indirect_link_order; in bfd_simple_get_relocated_section_contents()
178 link_order.offset = 0; in bfd_simple_get_relocated_section_contents()
179 link_order.size = bfd_section_size (abfd, sec); in bfd_simple_get_relocated_section_contents()
180 link_order.u.indirect.section = sec; in bfd_simple_get_relocated_section_contents()
229 &link_order, in bfd_simple_get_relocated_section_contents()
Dreloc16.c241 link_order, in bfd_coff_reloc16_get_relocated_section_contents() argument
247 struct bfd_link_order *link_order;
253 bfd *input_bfd = link_order->u.indirect.section->owner;
254 asection *input_section = link_order->u.indirect.section;
265 link_order,
301 while (dst_address < link_order->size)
314 run = link_order->size - dst_address;
324 bfd_coff_reloc16_extra_cases (input_bfd, link_info, link_order,
Dlinker.c2460 struct bfd_link_order *link_order) in _bfd_generic_reloc_link_order() argument
2473 r->address = link_order->offset; in _bfd_generic_reloc_link_order()
2474 r->howto = bfd_reloc_type_lookup (abfd, link_order->u.reloc.p->reloc); in _bfd_generic_reloc_link_order()
2482 if (link_order->type == bfd_section_reloc_link_order) in _bfd_generic_reloc_link_order()
2483 r->sym_ptr_ptr = link_order->u.reloc.p->u.section->symbol_ptr_ptr; in _bfd_generic_reloc_link_order()
2490 link_order->u.reloc.p->u.name, in _bfd_generic_reloc_link_order()
2496 (info, link_order->u.reloc.p->u.name, NULL, NULL, 0))) in _bfd_generic_reloc_link_order()
2507 r->addend = link_order->u.reloc.p->addend; in _bfd_generic_reloc_link_order()
2521 (bfd_vma) link_order->u.reloc.p->addend, in _bfd_generic_reloc_link_order()
2533 (link_order->type == bfd_section_reloc_link_order in _bfd_generic_reloc_link_order()
[all …]
Dcoff-h8500.c167 extra_case (in_abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr) in extra_case() argument
170 struct bfd_link_order *link_order;
177 asection *input_section = link_order->u.indirect.section;
248 bfd_vma dot = link_order->offset
250 + link_order->u.indirect.section->output_section->vma;
271 bfd_vma dot = link_order->offset
273 + link_order->u.indirect.section->output_section->vma;
Dcoff-w65.c224 w65_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, in w65_reloc16_extra_cases() argument
228 struct bfd_link_order *link_order;
236 asection *input_section = link_order->u.indirect.section;
319 bfd_vma dot = link_order->offset
321 + link_order->u.indirect.section->output_section->vma;
342 bfd_vma dot = link_order->offset
344 + link_order->u.indirect.section->output_section->vma;
Dcoff-z8k.c159 struct bfd_link_order *link_order, in extra_case() argument
165 asection * input_section = link_order->u.indirect.section; in extra_case()
224 bfd_vma dot = (link_order->offset in extra_case()
251 bfd_vma dot = (link_order->offset in extra_case()
281 bfd_vma dot = (link_order->offset in extra_case()
309 bfd_vma dot = (link_order->offset in extra_case()
Dcoff-h8300.c659 struct bfd_link_order *link_order, arelent *reloc, in h8300_reloc16_extra_cases() argument
665 asection *input_section = link_order->u.indirect.section; in h8300_reloc16_extra_cases()
678 dot = (link_order->offset in h8300_reloc16_extra_cases()
680 + link_order->u.indirect.section->output_section->vma); in h8300_reloc16_extra_cases()
709 dot = (link_order->offset in h8300_reloc16_extra_cases()
711 + link_order->u.indirect.section->output_section->vma + 1); in h8300_reloc16_extra_cases()
821 dot = (link_order->offset in h8300_reloc16_extra_cases()
823 + link_order->u.indirect.section->output_section->vma + 1); in h8300_reloc16_extra_cases()
867 dot = (link_order->offset in h8300_reloc16_extra_cases()
869 + link_order->u.indirect.section->output_section->vma - 1); in h8300_reloc16_extra_cases()
[all …]
Dbfd.c1133 struct bfd_link_order *link_order, in bfd_get_relocated_section_contents() argument
1142 if (link_order->type == bfd_indirect_link_order) in bfd_get_relocated_section_contents()
1144 abfd2 = link_order->u.indirect.section->owner; in bfd_get_relocated_section_contents()
1153 return (*fn) (abfd, link_info, link_order, data, relocatable, symbols); in bfd_get_relocated_section_contents()
Dbout.c1300 b_out_bfd_get_relocated_section_contents (output_bfd, link_info, link_order, in b_out_bfd_get_relocated_section_contents() argument
1304 struct bfd_link_order *link_order;
1310 bfd *input_bfd = link_order->u.indirect.section->owner;
1311 asection *input_section = link_order->u.indirect.section;
1323 link_order,
1356 while (dst_address < link_order->size)
1370 run = link_order->size - dst_address;
Dcofflink.c2703 struct bfd_link_order *link_order) in _bfd_coff_reloc_link_order() argument
2709 howto = bfd_reloc_type_lookup (output_bfd, link_order->u.reloc.p->reloc); in _bfd_coff_reloc_link_order()
2716 if (link_order->u.reloc.p->addend != 0) in _bfd_coff_reloc_link_order()
2730 (bfd_vma) link_order->u.reloc.p->addend,\ in _bfd_coff_reloc_link_order()
2742 (link_order->type == bfd_section_reloc_link_order in _bfd_coff_reloc_link_order()
2744 link_order->u.reloc.p->u.section) in _bfd_coff_reloc_link_order()
2745 : link_order->u.reloc.p->u.name), in _bfd_coff_reloc_link_order()
2746 howto->name, link_order->u.reloc.p->addend, in _bfd_coff_reloc_link_order()
2754 loc = link_order->offset * bfd_octets_per_byte (output_bfd); in _bfd_coff_reloc_link_order()
2772 irel->r_vaddr = output_section->vma + link_order->offset; in _bfd_coff_reloc_link_order()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/
Dsimple.c158 struct bfd_link_order link_order; in bfd_simple_get_relocated_section_contents() local
197 memset (&link_order, 0, sizeof (link_order)); in bfd_simple_get_relocated_section_contents()
198 link_order.next = NULL; in bfd_simple_get_relocated_section_contents()
199 link_order.type = bfd_indirect_link_order; in bfd_simple_get_relocated_section_contents()
200 link_order.offset = 0; in bfd_simple_get_relocated_section_contents()
201 link_order.size = sec->size; in bfd_simple_get_relocated_section_contents()
202 link_order.u.indirect.section = sec; in bfd_simple_get_relocated_section_contents()
245 &link_order, in bfd_simple_get_relocated_section_contents()
Dreloc16.c242 link_order, in bfd_coff_reloc16_get_relocated_section_contents() argument
248 struct bfd_link_order *link_order;
254 bfd *input_bfd = link_order->u.indirect.section->owner;
255 asection *input_section = link_order->u.indirect.section;
267 link_order,
300 while (dst_address < link_order->size)
313 run = link_order->size - dst_address;
323 bfd_coff_reloc16_extra_cases (input_bfd, link_info, link_order,
Dlinker.c2016 for (p = o->map_head.link_order; p != NULL; p = p->next) in _bfd_generic_final_link()
2045 for (p = o->map_head.link_order; p != NULL; p = p->next) in _bfd_generic_final_link()
2101 for (p = o->map_head.link_order; p != NULL; p = p->next) in _bfd_generic_final_link()
2505 struct bfd_link_order *link_order) in _bfd_generic_reloc_link_order() argument
2518 r->address = link_order->offset; in _bfd_generic_reloc_link_order()
2519 r->howto = bfd_reloc_type_lookup (abfd, link_order->u.reloc.p->reloc); in _bfd_generic_reloc_link_order()
2527 if (link_order->type == bfd_section_reloc_link_order) in _bfd_generic_reloc_link_order()
2528 r->sym_ptr_ptr = link_order->u.reloc.p->u.section->symbol_ptr_ptr; in _bfd_generic_reloc_link_order()
2535 link_order->u.reloc.p->u.name, in _bfd_generic_reloc_link_order()
2541 (info, link_order->u.reloc.p->u.name, NULL, NULL, 0))) in _bfd_generic_reloc_link_order()
[all …]
Dcoff-h8500.c167 extra_case (in_abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr) in extra_case() argument
170 struct bfd_link_order *link_order;
177 asection *input_section = link_order->u.indirect.section;
Dcoff-h8300.c650 struct bfd_link_order *link_order, arelent *reloc, in h8300_reloc16_extra_cases() argument
656 asection *input_section = link_order->u.indirect.section; in h8300_reloc16_extra_cases()
671 + link_order->u.indirect.section->output_section->vma); in h8300_reloc16_extra_cases()
703 + link_order->u.indirect.section->output_section->vma + 1); in h8300_reloc16_extra_cases()
817 + link_order->u.indirect.section->output_section->vma + 1); in h8300_reloc16_extra_cases()
864 + link_order->u.indirect.section->output_section->vma - 1); in h8300_reloc16_extra_cases()
925 + link_order->u.indirect.section->output_section->vma + 2); in h8300_reloc16_extra_cases()
1064 + link_order->u.indirect.section->output_section->vma) + 1; in h8300_reloc16_extra_cases()
Dcoff-w65.c224 w65_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, in w65_reloc16_extra_cases() argument
228 struct bfd_link_order *link_order;
236 asection *input_section = link_order->u.indirect.section;
Dbfd.c1256 struct bfd_link_order *link_order, in bfd_get_relocated_section_contents() argument
1265 if (link_order->type == bfd_indirect_link_order) in bfd_get_relocated_section_contents()
1267 abfd2 = link_order->u.indirect.section->owner; in bfd_get_relocated_section_contents()
1276 return (*fn) (abfd, link_info, link_order, data, relocatable, symbols); in bfd_get_relocated_section_contents()
Dcoff-z80.c156 struct bfd_link_order *link_order, in extra_case() argument
162 asection * input_section = link_order->u.indirect.section; in extra_case()
Dcofflink.c698 for (p = o->map_head.link_order; p != NULL; p = p->next) in _bfd_coff_final_link()
893 for (p = o->map_head.link_order; p != NULL; p = p->next) in _bfd_coff_final_link()
2700 struct bfd_link_order *link_order) in _bfd_coff_reloc_link_order() argument
2706 howto = bfd_reloc_type_lookup (output_bfd, link_order->u.reloc.p->reloc); in _bfd_coff_reloc_link_order()
2713 if (link_order->u.reloc.p->addend != 0) in _bfd_coff_reloc_link_order()
2727 (bfd_vma) link_order->u.reloc.p->addend,\ in _bfd_coff_reloc_link_order()
2739 (link_order->type == bfd_section_reloc_link_order in _bfd_coff_reloc_link_order()
2741 link_order->u.reloc.p->u.section) in _bfd_coff_reloc_link_order()
2742 : link_order->u.reloc.p->u.name), in _bfd_coff_reloc_link_order()
2743 howto->name, link_order->u.reloc.p->addend, in _bfd_coff_reloc_link_order()
[all …]
Dcoff-z8k.c168 struct bfd_link_order *link_order, in extra_case() argument
174 asection * input_section = link_order->u.indirect.section; in extra_case()
Dbout.c1192 struct bfd_link_order *link_order, in b_out_bfd_get_relocated_section_contents() argument
1198 bfd *input_bfd = link_order->u.indirect.section->owner; in b_out_bfd_get_relocated_section_contents()
1199 asection *input_section = link_order->u.indirect.section; in b_out_bfd_get_relocated_section_contents()
1210 link_order, in b_out_bfd_get_relocated_section_contents()
1241 while (dst_address < link_order->size) in b_out_bfd_get_relocated_section_contents()
1254 run = link_order->size - dst_address; in b_out_bfd_get_relocated_section_contents()
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/doc/
Dlinker.texi261 @code{link_order} structures attached to the @code{map_head.link_order}
262 field (the @code{link_order} structure is defined in
274 @code{link_order} structures attached to each section of the
275 output file. Each @code{link_order} structure should either be
280 For efficiency, a @code{link_order} of type
283 specially. This type of @code{link_order} describes part of an
318 looking through the @code{link_order} structures, or it may be
/openbsd/src/gnu/usr.bin/binutils/bfd/doc/
Dlinker.texi261 @code{link_order} structures attached to the @code{link_order_head}
262 field (the @code{link_order} structure is defined in
274 @code{link_order} structures attached to each section of the
275 output file. Each @code{link_order} structure should either be
280 For efficiency, a @code{link_order} of type
283 specially. This type of @code{link_order} describes part of an
318 looking through the @code{link_order} structures, or it may be

1234