]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: make [248]byte directives available everywhere
authorMike Frysinger <vapier@gentoo.org>
Thu, 14 Jan 2021 03:14:10 +0000 (22:14 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 15 Jan 2021 01:43:40 +0000 (20:43 -0500)
These aren't specific to ELF at all, and seem generally useful.
So pull them out of the ELF backend and into the common core.

gas/ChangeLog
gas/config/obj-elf.c
gas/doc/as.texi
gas/read.c

index adf7ad15a0ffce296b635a2322d4341d0cb90c1c..502148e083c9532ccfb7453bd2061ac361fa586f 100644 (file)
@@ -1,3 +1,10 @@
+2021-01-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
+       Delete warning that these are only available with ELF targets.
+       * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
+       * read.c (potable): ... here.
+
 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
index 6c0a6ae9ee215ee50ff090dc7d92cdc3e60ff018..f52dc69f0c371327bb8a416834962f6d40986576 100644 (file)
@@ -121,10 +121,6 @@ static const pseudo_typeS elf_pseudo_table[] =
   /* A GNU extension for object attributes.  */
   {"gnu_attribute", obj_elf_gnu_attribute, 0},
 
-  /* These are used for dwarf.  */
-  {"2byte", cons, 2},
-  {"4byte", cons, 4},
-  {"8byte", cons, 8},
   /* These are used for dwarf2.  */
   { "file", dwarf2_directive_file, 0 },
   { "loc",  dwarf2_directive_loc,  0 },
index cf3597f89831e4905d0001ea4bbfca6746c4b11e..e0559cf0f1dc05effb49e86ecec0dd72b04e0972 100644 (file)
@@ -4537,11 +4537,9 @@ Some machine configurations provide additional directives.
 @ifclear no-space-dir
 * Zero::                        @code{.zero @var{size}}
 @end ifclear
-@ifset ELF
 * 2byte::                       @code{.2byte @var{expressions}}
 * 4byte::                       @code{.4byte @var{expressions}}
 * 8byte::                       @code{.8byte @var{bignums}}
-@end ifset
 * Deprecated::                  Deprecated Directives
 @end menu
 
@@ -7505,7 +7503,6 @@ so it can take an optional second argument of the value to store in the bytes
 instead of zero.  Using @samp{.zero} in this way would be confusing however.
 @end ifclear
 
-@ifset ELF
 @node 2byte
 @section @code{.2byte @var{expression} [, @var{expression}]*}
 @cindex @code{2byte} directive
@@ -7525,8 +7522,6 @@ This directive does not apply any alignment before or after inserting the
 values.  As a result of this, if relocations are generated, they may be
 different from those used for inserting values with a guaranteed alignment.
 
-This directive is only available for ELF targets,
-
 @node 4byte
 @section @code{.4byte @var{expression} [, @var{expression}]*}
 @cindex @code{4byte} directive
@@ -7545,8 +7540,6 @@ long values into the output.
 Like the @option{.2byte} directive, except that it inserts unaligned, eight
 byte long bignum values into the output.
 
-@end ifset
-
 @node Deprecated
 @section Deprecated Directives
 
index be6e3e03d4589d4278030b4652a590cb3b6e31b7..06ca7fbb95f7b567df875279bc642558ef22a268 100644 (file)
@@ -530,6 +530,9 @@ static const pseudo_typeS potable[] = {
   {"weakref", s_weakref, 0},
   {"word", cons, 2},
   {"zero", s_space, 0},
+  {"2byte", cons, 2},
+  {"4byte", cons, 4},
+  {"8byte", cons, 8},
   {NULL, NULL, 0}                      /* End sentinel.  */
 };