Home | History | Annotate | Download | only in ld

Lines Matching defs:bfd_section

1418   abs_output_section->bfd_section = bfd_abs_section_ptr;
1698 if (look->bfd_section != NULL)
1700 look_flags = look->bfd_section->flags;
1702 look->bfd_section,
1725 if (look->bfd_section != NULL)
1727 look_flags = look->bfd_section->flags;
1729 look->bfd_section,
1746 if (look->bfd_section != NULL)
1748 look_flags = look->bfd_section->flags;
1750 look->bfd_section,
1774 if (look->bfd_section != NULL)
1775 look_flags = look->bfd_section->flags;
1803 if (look->bfd_section != NULL)
1805 look_flags = look->bfd_section->flags;
1807 look->bfd_section,
1826 if (look->bfd_section != NULL)
1828 look_flags = look->bfd_section->flags;
1830 look->bfd_section,
1846 if (look->bfd_section != NULL)
1848 look_flags = look->bfd_section->flags;
1850 look->bfd_section,
1865 if (look->bfd_section != NULL)
1866 look_flags = look->bfd_section->flags;
1893 if (lookup->bfd_section != NULL)
1894 return lookup->bfd_section;
1956 asection *s = (*where)->output_section_statement.bfd_section;
2033 if (after != NULL && os->bfd_section != NULL)
2039 snew = os->bfd_section;
2046 asection *bfd_section = after->bfd_section;
2049 sections (and thus doesn't have an output bfd_section),
2052 if (bfd_section == NULL)
2053 bfd_section = output_prev_sec_find (after);
2055 if (bfd_section != NULL
2056 && bfd_section->owner != NULL
2057 && bfd_section != snew)
2058 place->section = &bfd_section->next;
2181 if (stmt->bfd_section == after_sec)
2193 if (next && next->bfd_section == after_sec)
2210 if (stmt->bfd_section == after_sec)
2221 if (stmt->next->bfd_section == after_sec)
2511 s->bfd_section = bfd_get_section_by_name (link_info.output_bfd, s->name);
2512 if (s->bfd_section == NULL)
2513 s->bfd_section = bfd_make_section_anyway_with_flags (link_info.output_bfd,
2515 if (s->bfd_section == NULL)
2521 s->bfd_section->output_section = s->bfd_section;
2522 s->bfd_section->output_offset = 0;
2526 bfd_set_section_userdata (s->bfd_section, s);
2538 s->bfd_section->alignment_power = exp_get_power (s->section_alignment, s,
2598 if (os != NULL && os->bfd_section == NULL)
2720 if (section->output_section == output->bfd_section)
2723 if (link_info.non_contiguous_regions_warnings && output->bfd_section)
2728 output->bfd_section);
2825 if (output->bfd_section == NULL)
2830 output->bfd_section->flags &= flags | ~SEC_READONLY;
2832 if (output->bfd_section->linker_has_input)
2839 if (output->bfd_section->entsize != section->entsize)
2841 output->bfd_section->entsize = 0;
2846 if ((output->bfd_section->flags ^ flags) & SEC_MERGE)
2848 output->bfd_section->flags &= ~SEC_MERGE;
2851 if ((output->bfd_section->flags ^ flags) & SEC_STRINGS)
2853 output->bfd_section->flags &= ~SEC_STRINGS;
2857 output->bfd_section->flags |= flags;
2859 if (!output->bfd_section->linker_has_input)
2861 output->bfd_section->linker_has_input = 1;
2867 output->bfd_section,
2869 output->bfd_section->entsize = section->entsize;
2883 && strcmp (output->bfd_section->name, ".init_array") == 0)
2885 && strcmp (output->bfd_section->name, ".fini_array") == 0))
2889 if (section->alignment_power > output->bfd_section->alignment_power)
2890 output->bfd_section->alignment_power = section->alignment_power;
2892 section->output_section = output->bfd_section;
2896 asection *s = output->bfd_section->map_tail.s;
2897 output->bfd_section->map_tail.s = section;
2903 output->bfd_section->map_head.s = section;
4404 if (os->bfd_section == NULL)
4407 os->bfd_section->flags |= flags;
4408 os->bfd_section->type = type;
4417 if (os != NULL && os->bfd_section == NULL)
4422 if (os != NULL && os->bfd_section == NULL)
4453 if (tos->bfd_section == NULL)
4578 if (os->bfd_section != NULL
4579 && os->bfd_section->owner != NULL)
4581 last_sec = os->bfd_section;
4590 asection *sec = where->bfd_section;
4713 output_section = os->bfd_section;
4742 /* We don't set bfd_section to NULL since bfd_section of the
4773 output_section = os->bfd_section;
4791 asection *section = output_section_statement->bfd_section;
4851 osec = output_section->bfd_section;
5558 asection *o = output_section_statement->bfd_section;
5888 os->bfd_section->owner,
5889 os->bfd_section->name,
5897 os->bfd_section->owner,
5898 os->bfd_section->name,
5959 init_opb (os->bfd_section);
5987 if (os->bfd_section == NULL)
5999 && (os->bfd_section->flags & SEC_COFF_SHARED_LIBRARY) != 0)
6011 bfd_set_section_vma (os->bfd_section,
6013 if (!(os->bfd_section->flags & SEC_FIXED_SIZE))
6014 os->bfd_section->size = input->size;
6020 if (bfd_is_abs_section (os->bfd_section))
6023 ASSERT (os->bfd_section->vma == 0);
6032 || ((os->bfd_section->flags & (SEC_ALLOC | SEC_LOAD))
6037 os->region = lang_memory_default (os->bfd_section);
6044 && !IGNORE_SECTION (os->bfd_section)
6067 bfd_section_name (os->bfd_section));
6071 bfd_section_name (os->bfd_section));
6075 section_alignment = os->bfd_section->alignment_power;
6096 diff = newdot - os->bfd_section->vma;
6108 bfd_set_section_vma (os->bfd_section, newdot);
6110 os->bfd_section->output_offset = 0;
6118 if (bfd_is_abs_section (os->bfd_section) || os->ignored)
6124 ASSERT (os->bfd_section->size == 0);
6127 dot = os->bfd_section->vma;
6132 + TO_ADDR (os->bfd_section->size)
6136 if (!(os->bfd_section->flags & SEC_FIXED_SIZE))
6137 os->bfd_section->size = TO_SIZE (after
6138 - os->bfd_section->vma);
6149 os->bfd_section->lma = lma;
6171 os->bfd_section->lma = lma;
6174 && (os->bfd_section->flags & SEC_ALLOC) != 0)
6179 last = r->last_os->output_section_statement.bfd_section;
6186 && os->bfd_section->size != 0
6187 && dot + TO_ADDR (os->bfd_section->size) <= last->vma)
6209 lma = os->bfd_section->vma + last->lma - last->vma;
6213 os->bfd_section->lma = lma;
6232 if (((!IGNORE_SECTION (os->bfd_section)
6233 && (os->bfd_section->size != 0
6235 && os->bfd_section->vma != os->bfd_section->lma)
6238 .bfd_section->vma))))
6244 if (bfd_is_abs_section (os->bfd_section) || os->ignored)
6248 if (!IS_TBSS (os->bfd_section)
6250 dotdelta = TO_ADDR (os->bfd_section->size);
6263 && (os->bfd_section->flags & (SEC_ALLOC | SEC_LOAD)))
6270 os->bfd_section->vma);
6273 && ((os->bfd_section->flags & SEC_LOAD)
6276 os->lma_region->current = os->bfd_section->lma + dotdelta;
6280 os->bfd_section->lma);
6295 s->data_statement.output_offset = dot - current_os->bfd_section->vma;
6296 s->data_statement.output_section = current_os->bfd_section;
6324 if (!(current_os->bfd_section->flags & SEC_FIXED_SIZE))
6325 current_os->bfd_section->size
6326 = TO_SIZE (dot - current_os->bfd_section->vma);
6336 = dot - current_os->bfd_section->vma;
6338 = current_os->bfd_section;
6341 if (!(current_os->bfd_section->flags & SEC_FIXED_SIZE))
6342 current_os->bfd_section->size
6343 = TO_SIZE (dot - current_os->bfd_section->vma);
6354 link_info.create_object_symbols_section = current_os->bfd_section;
6355 current_os->bfd_section->flags |= SEC_KEEP;
6384 s->fill_statement.output_section = current_os->bfd_section;
6396 exp_fold_tree (tree, os, current_os->bfd_section, &newdot);
6424 current_os->bfd_section, dot);
6437 current_os->bfd_section->flags |= SEC_ALLOC;
6458 = dot - current_os->bfd_section->vma;
6728 init_opb (os->bfd_section);
6730 if (os->bfd_section != NULL)
6732 if (!os->ignored && (os->bfd_section->flags & SEC_ALLOC) != 0)
6737 newdot = os->bfd_section->vma;
6743 if (os->bfd_section != NULL)
6745 newdot = os->bfd_section->vma;
6748 if (!IS_TBSS (os->bfd_section)
6750 newdot += TO_ADDR (os->bfd_section->size);
6849 (current_os->bfd_section != NULL
6850 ? current_os->bfd_section : bfd_und_section_ptr),
6921 && (os->bfd_section == NULL
6922 || (os->bfd_section->flags & SEC_EXCLUDE) != 0
6924 os->bfd_section)))
6930 s = os->bfd_section;
6944 s = current_section->bfd_section;
9235 || os->bfd_section == NULL
9236 || (os->bfd_section
9267 if (os->bfd_section == NULL)
9280 secs[c] = os->bfd_section;
9313 || os->bfd_section == NULL)