|
|
381f6c |
diff -rup binutils.orig/gas/config/obj-elf.c binutils-2.30/gas/config/obj-elf.c
|
|
|
381f6c |
--- binutils.orig/gas/config/obj-elf.c 2018-09-24 17:50:06.974172867 +0100
|
|
|
381f6c |
+++ binutils-2.30/gas/config/obj-elf.c 2018-09-25 15:19:33.559830794 +0100
|
|
|
381f6c |
@@ -82,9 +82,11 @@ static void obj_elf_gnu_attribute (int);
|
|
|
381f6c |
static void obj_elf_tls_common (int);
|
|
|
381f6c |
static void obj_elf_lcomm (int);
|
|
|
381f6c |
static void obj_elf_struct (int);
|
|
|
381f6c |
+static void obj_elf_attach_to_group (int);
|
|
|
381f6c |
|
|
|
381f6c |
static const pseudo_typeS elf_pseudo_table[] =
|
|
|
381f6c |
{
|
|
|
381f6c |
+ {"attach_to_group", obj_elf_attach_to_group, 0},
|
|
|
381f6c |
{"comm", obj_elf_common, 0},
|
|
|
381f6c |
{"common", obj_elf_common, 1},
|
|
|
381f6c |
{"ident", obj_elf_ident, 0},
|
|
|
381f6c |
@@ -1007,6 +1009,27 @@ obj_elf_section_name (void)
|
|
|
381f6c |
return name;
|
|
|
381f6c |
}
|
|
|
381f6c |
|
|
|
381f6c |
+static void
|
|
|
381f6c |
+obj_elf_attach_to_group (int dummy ATTRIBUTE_UNUSED)
|
|
|
381f6c |
+{
|
|
|
381f6c |
+ const char * gname = obj_elf_section_name ();
|
|
|
381f6c |
+
|
|
|
381f6c |
+ if (gname == NULL)
|
|
|
381f6c |
+ {
|
|
|
381f6c |
+ as_warn ("group name not parseable");
|
|
|
381f6c |
+ return;
|
|
|
381f6c |
+ }
|
|
|
381f6c |
+
|
|
|
381f6c |
+ if (elf_group_name (now_seg))
|
|
|
381f6c |
+ {
|
|
|
381f6c |
+ as_warn ("already has a group");
|
|
|
381f6c |
+ return;
|
|
|
381f6c |
+ }
|
|
|
381f6c |
+
|
|
|
381f6c |
+ elf_group_name (now_seg) = xstrdup (gname);
|
|
|
381f6c |
+ elf_section_flags (now_seg) |= SHF_GROUP;
|
|
|
381f6c |
+}
|
|
|
381f6c |
+
|
|
|
381f6c |
void
|
|
|
381f6c |
obj_elf_section (int push)
|
|
|
381f6c |
{
|
|
|
381f6c |
diff -rup binutils.orig/gas/doc/as.texinfo binutils-2.30/gas/doc/as.texinfo
|
|
|
381f6c |
--- binutils.orig/gas/doc/as.texinfo 2018-09-24 17:50:06.984172788 +0100
|
|
|
381f6c |
+++ binutils-2.30/gas/doc/as.texinfo 2018-09-25 15:19:43.557748972 +0100
|
|
|
381f6c |
@@ -4407,6 +4407,7 @@ Some machine configurations provide addi
|
|
|
381f6c |
* Altmacro:: @code{.altmacro}
|
|
|
381f6c |
* Ascii:: @code{.ascii "@var{string}"}@dots{}
|
|
|
381f6c |
* Asciz:: @code{.asciz "@var{string}"}@dots{}
|
|
|
381f6c |
+* Attach_to_group:: @code{.attach_to_group @var{name}}
|
|
|
381f6c |
* Balign:: @code{.balign @var{abs-expr} , @var{abs-expr}}
|
|
|
381f6c |
* Bundle directives:: @code{.bundle_align_mode @var{abs-expr}}, etc
|
|
|
381f6c |
* Byte:: @code{.byte @var{expressions}}
|
|
|
381f6c |
@@ -4703,6 +4704,12 @@ trailing zero byte) into consecutive add
|
|
|
381f6c |
@code{.asciz} is just like @code{.ascii}, but each string is followed by
|
|
|
381f6c |
a zero byte. The ``z'' in @samp{.asciz} stands for ``zero''.
|
|
|
381f6c |
|
|
|
381f6c |
+@node Attach_to_group
|
|
|
381f6c |
+@section @code{.attach_to_group @var{name}}
|
|
|
381f6c |
+Attaches the current section to the named group. This is like declaring
|
|
|
381f6c |
+the section with the @code{G} attribute, but can be done after the section
|
|
|
381f6c |
+has been created.
|
|
|
381f6c |
+
|
|
|
381f6c |
@node Balign
|
|
|
381f6c |
@section @code{.balign[wl] @var{abs-expr}, @var{abs-expr}, @var{abs-expr}}
|
|
|
381f6c |
|
|
|
381f6c |
Only in binutils-2.30/gas/doc: as.texinfo.orig
|