diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-26 17:39:58 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-26 23:23:44 +0930 |
commit | d8d6da137d7ececcd0e10c575aa187bb8c9b24e0 (patch) | |
tree | f57f56b1a46cb23bcdbbbbd50cc3c914d0d4cfa9 /gas/Makefile.am | |
parent | b2f386b99caeab72eae26ca5bc9024421de145d9 (diff) | |
download | gdb-d8d6da137d7ececcd0e10c575aa187bb8c9b24e0.zip gdb-d8d6da137d7ececcd0e10c575aa187bb8c9b24e0.tar.gz gdb-d8d6da137d7ececcd0e10c575aa187bb8c9b24e0.tar.bz2 |
PR26448 UBSAN: symbols.c:1586 left shift of negative value
Besides avoiding the UB, this also makes right shifts inside
expression symbols unsigned, consistent with the way gas evaluates
expressions in source.
PR 26448
* symbols.c: Include limits.h.
(resolve_symbol_value <O_left_shift, O_right_shift>): Do an
unsigned shift. Warn if shift count larger than valueT size.
Diffstat (limited to 'gas/Makefile.am')
0 files changed, 0 insertions, 0 deletions