Lines Matching refs:link_order
37 /* Build link_order structures for the BFD linker. */
47 struct bfd_link_order *link_order;
58 link_order = bfd_new_link_order (link_info.output_bfd, output_section);
59 if (link_order == NULL)
62 link_order->type = bfd_data_link_order;
63 link_order->offset = statement->data_statement.output_offset;
64 link_order->u.data.contents = bfd_alloc (link_info.output_bfd,
66 if (link_order->u.data.contents == NULL)
113 link_order->u.data.contents);
125 (link_order->u.data.contents
128 (link_order->u.data.contents
131 link_order->size = QUAD_SIZE;
135 link_order->u.data.contents);
136 link_order->size = LONG_SIZE;
140 link_order->u.data.contents);
141 link_order->size = SHORT_SIZE;
145 link_order->u.data.contents);
146 link_order->size = BYTE_SIZE;
151 link_order->u.data.size = link_order->size;
159 struct bfd_link_order *link_order;
171 link_order = bfd_new_link_order (link_info.output_bfd, output_section);
172 if (link_order == NULL)
175 link_order->offset = rs->output_offset;
176 link_order->size = bfd_get_reloc_size (rs->howto);
178 link_order->u.reloc.p = (struct bfd_link_order_reloc *)
180 if (link_order->u.reloc.p == NULL)
183 link_order->u.reloc.p->reloc = rs->reloc;
184 link_order->u.reloc.p->addend = rs->addend_value;
188 link_order->type = bfd_section_reloc_link_order;
190 link_order->u.reloc.p->u.section = rs->section;
193 link_order->u.reloc.p->u.section = rs->section->output_section;
194 link_order->u.reloc.p->addend += rs->section->output_offset;
199 link_order->type = bfd_symbol_reloc_link_order;
200 link_order->u.reloc.p->u.name = rs->name;
207 /* Create a new link_order in the output section with this
215 struct bfd_link_order *link_order;
224 link_order = bfd_new_link_order (link_info.output_bfd,
226 if (link_order == NULL)
234 link_order->type = bfd_data_link_order;
235 link_order->u.data.contents = (unsigned char *) "";
236 link_order->u.data.size = 1;
240 link_order->type = bfd_indirect_link_order;
241 link_order->u.indirect.section = i;
244 link_order->size = i->size;
245 link_order->offset = i->output_offset;
251 /* Make a new link_order with the right filler */
254 struct bfd_link_order *link_order;
265 link_order = bfd_new_link_order (link_info.output_bfd,
267 if (link_order == NULL)
269 link_order->type = bfd_data_link_order;
270 link_order->size = statement->padding_statement.size;
271 link_order->offset = statement->padding_statement.output_offset;
272 link_order->u.data.contents = statement->padding_statement.fill->data;
273 link_order->u.data.size = statement->padding_statement.fill->size;
378 struct bfd_link_order *l = s->map_head.link_order;
406 for (p = s->map_head.link_order; p; p = p->next)
443 for (l = NULL, p = cursor->map_head.link_order; p != NULL; p = l->next)
484 n->map_head.link_order = p;
485 n->map_tail.link_order = cursor->map_tail.link_order;
486 cursor->map_tail.link_order = l;