Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 387055
Collapse All | Expand All

(-)src/ld/emultempl/mipself.em (+12 lines)
Lines 6272-6277 Link Here
6272
      || obfd->xvec->flavour != bfd_target_elf_flavour)
6272
      || obfd->xvec->flavour != bfd_target_elf_flavour)
6273
    return TRUE;
6273
    return TRUE;
6274
6274
6275
  BFD_ASSERT (elf_section_data (osec) != NULL);
6276
6275
  /* For objcopy and relocatable link, don't copy the output ELF
6277
  /* For objcopy and relocatable link, don't copy the output ELF
6276
     section type from input if the output BFD section flags have been
6278
     section type from input if the output BFD section flags have been
6277
     set to something different.  For a final link allow some flags
6279
     set to something different.  For a final link allow some flags
Lines 1727-1732 Link Here
1727
1727
1728
  if (mips_elf_local_pic_function_p (h))
1728
  if (mips_elf_local_pic_function_p (h))
1729
    {
1729
    {
1730
      /* PR 12845: If H is in a section that has been garbage
1731
	 collected it will have its output section set to *ABS*.  */
1732
      if (bfd_is_abs_section (h->root.root.u.def.section->output_section))
1733
	return TRUE;
1734
1730
      /* H is a function that might need $25 to be valid on entry.
1735
      /* H is a function that might need $25 to be valid on entry.
1731
	 If we're creating a non-PIC relocatable object, mark H as
1736
	 If we're creating a non-PIC relocatable object, mark H as
1732
	 being PIC.  If we're creating a non-relocatable object with
1737
	 being PIC.  If we're creating a non-relocatable object with
Lines 138-143 Link Here
138
  lang_output_section_statement_type *os;
138
  lang_output_section_statement_type *os;
139
  struct hook_stub_info info;
139
  struct hook_stub_info info;
140
140
141
  /* PR 12845: If the input section has been garbage collected it will
142
     not have its output section set to *ABS*.  */
143
  if (bfd_is_abs_section (output_section))
144
    return NULL;
145
141
  /* Create the stub file, if we haven't already.  */
146
  /* Create the stub file, if we haven't already.  */
142
  if (stub_file == NULL)
147
  if (stub_file == NULL)
143
    {
148
    {

Return to bug 387055