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