aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-12 15:17:10 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-12 15:17:10 +0000
commit5d4ef2968b50593fef90cfb97c37fae359142c95 (patch)
tree1fc6922a4968cd2b84cc87f70ea76ecc1d29ee8e /gas/config/obj-elf.c
parente7affb090d4bd0ffc66040f3fd45a9f3c99102dc (diff)
downloadgdb-5d4ef2968b50593fef90cfb97c37fae359142c95.zip
gdb-5d4ef2968b50593fef90cfb97c37fae359142c95.tar.gz
gdb-5d4ef2968b50593fef90cfb97c37fae359142c95.tar.bz2
config/obj-elf.c (obj_elf_section): Allow `@' to introduce an attribute name.
Handle `execinstr' attribute.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 45eecfa..95ea6df 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -101,7 +101,7 @@ obj_elf_section (xxx)
char *p, oldp;
input_line_pointer++;
- if (*input_line_pointer != '#')
+ if (*input_line_pointer != '#' && *input_line_pointer != '@')
{
as_bad ("unrecognized syntax in .section command");
ignore_rest_of_line ();
@@ -115,6 +115,7 @@ obj_elf_section (xxx)
CHECK ("write", SEC_READONLY, 1);
CHECK ("alloc", SEC_ALLOC, 0);
+ CHECK ("execinstr", SEC_CODE, 1);
#undef CHECK
p = input_line_pointer;