Ensure that space allocated by assembler directives converts from an octet count...
authorNick Clifton <nickc@redhat.com>
Fri, 18 Sep 2020 12:28:46 +0000 (13:28 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 18 Sep 2020 12:28:46 +0000 (13:28 +0100)
PR 26556
* read.c (bss_alloc): Convert size parameter from octets to
bytes.

gas/ChangeLog
gas/read.c

index 6b7888594872b8af98506a8a8d1a6c16aa18f05c..057feeb1ebfb4e91d325680b3b9257ee63722e76 100644 (file)
@@ -1,3 +1,9 @@
+2020-09-18  Tucker  <tuckkern+sourceware@gmail.com>
+
+       PR 26556
+       * read.c (bss_alloc): Convert size parameter from octets to
+       bytes.
+
 2020-09-17  Alan Modra  <amodra@gmail.com>
 
        * testsuite/gas/i386/i386.exp: Return early if not x86.
index ff4737ef2cb6f049dd2fd41394b19b139f0a13d1..7fd9af05fad7e6669d82e78f764d1a6114a1f9a2 100644 (file)
@@ -2547,7 +2547,7 @@ bss_alloc (symbolS *symbolP, addressT size, unsigned int align)
     symbol_get_frag (symbolP)->fr_symbol = NULL;
 
   symbol_set_frag (symbolP, frag_now);
-  pfrag = frag_var (rs_org, 1, 1, 0, symbolP, size, NULL);
+  pfrag = frag_var (rs_org, 1, 1, 0, symbolP, size * OCTETS_PER_BYTE, NULL);
   *pfrag = 0;
 
 #ifdef S_SET_SIZE