aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2004-09-08 20:52:49 +0000
committerPaul Brook <paul@codesourcery.com>2004-09-08 20:52:49 +0000
commit10b016c223f165a06dbd20e46307c9a0bfbf0ee2 (patch)
treeea3895ea85fd89f144817cb51868ffd997141e03 /gas/config/obj-elf.c
parentb26a6851b5c525e74539c85ac34a5e1e417f18e0 (diff)
downloadgdb-10b016c223f165a06dbd20e46307c9a0bfbf0ee2.zip
gdb-10b016c223f165a06dbd20e46307c9a0bfbf0ee2.tar.gz
gdb-10b016c223f165a06dbd20e46307c9a0bfbf0ee2.tar.bz2
* config/obj-elf.c (obj_elf_section_type): Handle init_array,
fini_array and preinit_array section types. * config/tc-ia64.c (ia64_elf_section_type): Remove init_array and fini_array. * doc/as.texinfo: Document extra section types.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c6
1 files changed, 6 insertions, 0 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
{