summaryrefslogtreecommitdiff
path: root/gas/ChangeLog
diff options
context:
space:
mode:
authorDan Gisselquist <dgisselq@verizon.net>2016-02-18 09:47:31 +0000
committerNick Clifton <nickc@redhat.com>2016-02-18 09:49:04 +0000
commit9136aa49abcb3f23171e01ebd16ee03cc1032943 (patch)
treee1267f52546b36fca957fdba4bae52e55a5d15f2 /gas/ChangeLog
parent0748bf3e5804e9a93c788ffba95473168a4397f6 (diff)
downloadbinutils-gdb-9136aa49abcb3f23171e01ebd16ee03cc1032943.tar.gz
Avoid setting or recording negative alignments when the target stores multiple octets in a single byte.
gas * read.c (finish_bundle): Avoid recording a negative alignment. (do_align): Use unsigned values for n, len and max. Only create a frag if the alignment requirement is greater than the minimum byte alignment. Avoid recording a negative alignment. (s_align): Use unsigned values where appropriate. (bss_alloc): Use an unsigned value for the alignment. (sizeof_sleb128): Add a comment noting that we encode one octet per byte, regardless of the value of OCTETS_PER_BYTE_POWER. (emit_leb129_expr): Abort if the emitted encoding was longer than expected. * read.h (output_leb128): Update prototype. (sizeof_leb128): Update prototype. (bss_alloc): Update prototype. * write.c (record_alignment): Use an unsigned value for the alignment. Do not record alignments less than the minimum alignment for a byte. * write.h (record_alignment): Update prototype.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r--gas/ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3688728f2a6..7236c3ee82f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,24 @@
+2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
+ Nick Clifton <nickc@redhat.com>
+
+ * read.c (finish_bundle): Avoid recording a negative alignment.
+ (do_align): Use unsigned values for n, len and max. Only create
+ a frag if the alignment requirement is greater than the minimum
+ byte alignment. Avoid recording a negative alignment.
+ (s_align): Use unsigned values where appropriate.
+ (bss_alloc): Use an unsigned value for the alignment.
+ (sizeof_sleb128): Add a comment noting that we encode one octet
+ per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
+ (emit_leb129_expr): Abort if the emitted encoding was longer than
+ expected.
+ * read.h (output_leb128): Update prototype.
+ (sizeof_leb128): Update prototype.
+ (bss_alloc): Update prototype.
+ * write.c (record_alignment): Use an unsigned value for the
+ alignment. Do not record alignments less than the minimum
+ alignment for a byte.
+ * write.h (record_alignment): Update prototype.
+
2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
* config/tc-xtensa.c (xtensa_move_literals): Fix check for