aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-09-18 13:28:46 +0100
committerNick Clifton <nickc@redhat.com>2020-09-18 13:28:46 +0100
commit5947daaf7545b2887abb977af6700b4cc9a807be (patch)
tree3341c8ba5459bb3efc51ec314ff33f81091212e6 /gas/read.c
parentd0edc2b8060e78eebf3dc39321e5546e9a94842c (diff)
downloadgdb-5947daaf7545b2887abb977af6700b4cc9a807be.zip
gdb-5947daaf7545b2887abb977af6700b4cc9a807be.tar.gz
gdb-5947daaf7545b2887abb977af6700b4cc9a807be.tar.bz2
Ensure that space allocated by assembler directives converts from an octet count to a byte count.
PR 26556 * read.c (bss_alloc): Convert size parameter from octets to bytes.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index ff4737e..7fd9af0 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -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