2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / bfd / elf.c
index 130ec7a71d028b6b3091e4a85dd550c5509cacd2..ff46a5e2ea97ee11a30826fab7b82da610f5b376 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2339,15 +2339,27 @@ _bfd_elf_get_special_section (const char *name,
 }
 
 const struct bfd_elf_special_section *
-_bfd_elf_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
+_bfd_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
   int i;
   const struct bfd_elf_special_section *spec;
+  const struct elf_backend_data *bed;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
     return NULL;
 
+  bed = get_elf_backend_data (abfd);
+  spec = bed->special_sections;
+  if (spec)
+    {
+      spec = _bfd_elf_get_special_section (sec->name,
+                                          bed->special_sections,
+                                          sec->use_rela_p);
+      if (spec != NULL)
+       return spec;
+    }
+
   if (sec->name[0] != '.')
     return NULL;
 
This page took 0.02486 seconds and 4 git commands to generate.