aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c6
-rw-r--r--gas/config/tc-ia64.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 94f53b1..84f5a84 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -771,6 +771,12 @@ obj_elf_section_type (char *str, size_t len)
return SHT_NOBITS;
if (len == 4 && strncmp (str, "note", 4) == 0)
return SHT_NOTE;
+ if (len == 10 && strncmp (str, "init_array", 10) == 0)
+ return SHT_INIT_ARRAY;
+ if (len == 10 && strncmp (str, "fini_array", 10) == 0)
+ return SHT_FINI_ARRAY;
+ if (len == 13 && strncmp (str, "preinit_array", 13) == 0)
+ return SHT_PREINIT_ARRAY;
#ifdef md_elf_section_type
{
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 1d43e77..b2e599f 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -996,12 +996,6 @@ ia64_elf_section_type (str, len)
if (STREQ ("unwind"))
return SHT_IA_64_UNWIND;
- if (STREQ ("init_array"))
- return SHT_INIT_ARRAY;
-
- if (STREQ ("fini_array"))
- return SHT_FINI_ARRAY;
-
return -1;
#undef STREQ
}