2020-02-02 14:55:39 +00:00
|
|
|
diff -rup binutils.orig/gas/config/obj-elf.c binutils-2.34/gas/config/obj-elf.c
|
|
|
|
--- binutils.orig/gas/config/obj-elf.c 2020-02-02 11:34:11.858321477 +0000
|
|
|
|
+++ binutils-2.34/gas/config/obj-elf.c 2020-02-02 11:34:30.099247619 +0000
|
|
|
|
@@ -78,9 +78,11 @@ static void obj_elf_gnu_attribute (int);
|
2018-09-28 13:19:31 +00:00
|
|
|
static void obj_elf_tls_common (int);
|
|
|
|
static void obj_elf_lcomm (int);
|
|
|
|
static void obj_elf_struct (int);
|
|
|
|
+static void obj_elf_attach_to_group (int);
|
|
|
|
|
|
|
|
static const pseudo_typeS elf_pseudo_table[] =
|
|
|
|
{
|
|
|
|
+ {"attach_to_group", obj_elf_attach_to_group, 0},
|
|
|
|
{"comm", obj_elf_common, 0},
|
|
|
|
{"common", obj_elf_common, 1},
|
|
|
|
{"ident", obj_elf_ident, 0},
|
2020-02-02 14:55:39 +00:00
|
|
|
@@ -1003,6 +1005,27 @@ obj_elf_section_name (void)
|
2018-09-28 13:19:31 +00:00
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
+static void
|
|
|
|
+obj_elf_attach_to_group (int dummy ATTRIBUTE_UNUSED)
|
|
|
|
+{
|
|
|
|
+ const char * gname = obj_elf_section_name ();
|
|
|
|
+
|
|
|
|
+ if (gname == NULL)
|
|
|
|
+ {
|
|
|
|
+ as_warn ("group name not parseable");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (elf_group_name (now_seg))
|
|
|
|
+ {
|
|
|
|
+ as_warn ("already has a group");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ elf_group_name (now_seg) = xstrdup (gname);
|
|
|
|
+ elf_section_flags (now_seg) |= SHF_GROUP;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
void
|
|
|
|
obj_elf_section (int push)
|
|
|
|
{
|
2020-02-02 14:55:39 +00:00
|
|
|
Only in binutils-2.34/gas/config: obj-elf.c.orig
|
|
|
|
diff -rup binutils.orig/gas/doc/as.texi binutils-2.34/gas/doc/as.texi
|
|
|
|
--- binutils.orig/gas/doc/as.texi 2020-02-02 11:34:11.850321509 +0000
|
|
|
|
+++ binutils-2.34/gas/doc/as.texi 2020-02-02 11:35:11.359080560 +0000
|
|
|
|
@@ -4359,6 +4359,7 @@ Some machine configurations provide addi
|
2018-09-28 13:19:31 +00:00
|
|
|
* Altmacro:: @code{.altmacro}
|
|
|
|
* Ascii:: @code{.ascii "@var{string}"}@dots{}
|
|
|
|
* Asciz:: @code{.asciz "@var{string}"}@dots{}
|
|
|
|
+* Attach_to_group:: @code{.attach_to_group @var{name}}
|
2020-02-02 14:55:39 +00:00
|
|
|
* Balign:: @code{.balign [@var{abs-expr}[, @var{abs-expr}]]}
|
2018-09-28 13:19:31 +00:00
|
|
|
* Bundle directives:: @code{.bundle_align_mode @var{abs-expr}}, etc
|
|
|
|
* Byte:: @code{.byte @var{expressions}}
|
2020-02-02 14:55:39 +00:00
|
|
|
@@ -4656,6 +4657,12 @@ trailing zero byte) into consecutive add
|
2018-09-28 13:19:31 +00:00
|
|
|
@code{.asciz} is just like @code{.ascii}, but each string is followed by
|
|
|
|
a zero byte. The ``z'' in @samp{.asciz} stands for ``zero''.
|
|
|
|
|
|
|
|
+@node Attach_to_group
|
|
|
|
+@section @code{.attach_to_group @var{name}}
|
|
|
|
+Attaches the current section to the named group. This is like declaring
|
|
|
|
+the section with the @code{G} attribute, but can be done after the section
|
|
|
|
+has been created.
|
|
|
|
+
|
|
|
|
@node Balign
|
2020-02-02 14:55:39 +00:00
|
|
|
@section @code{.balign[wl] [@var{abs-expr}[, @var{abs-expr}[, @var{abs-expr}]]]}
|
2018-09-28 13:19:31 +00:00
|
|
|
|
2020-02-02 14:55:39 +00:00
|
|
|
Only in binutils-2.34/gas/doc: as.texi.orig
|
|
|
|
Only in binutils-2.34/gas/doc: as.texi.rej
|