Fix ld --just-symbols
[deliverable/binutils-gdb.git] / bfd / elf.c
index f8fdbd2a9fdde47fe1c177b7174f542c4df76ca0..c3339f93b7a66bd96635a513a60f20b44be276eb 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -814,6 +814,19 @@ _bfd_elf_merge_sections (abfd, info)
                         merge_sections_remove_hook);
   return true;
 }
+
+void
+_bfd_elf_link_just_syms (sec, info)
+     asection *sec;
+     struct bfd_link_info *info;
+{
+  sec->output_section = bfd_abs_section_ptr;
+  sec->output_offset = sec->vma;
+  if (!is_elf_hash_table (info))
+    return;
+
+  elf_section_data (sec)->sec_info_type = ELF_INFO_TYPE_JUST_SYMS;
+}
 \f
 /* Copy the program header and other data from one object module to
    another.  */
This page took 0.023815 seconds and 4 git commands to generate.