diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-10 17:52:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-10 17:58:02 +1030 |
commit | e10ac147c80240c2d0aa0a2ae2ec7f6a934c198f (patch) | |
tree | 4eb11742f904472d1c144630429ae6cf27baf267 /include/som/lst.h | |
parent | 41da082238bbc3bbe8bac1b0fbcab716fe7c87f2 (diff) | |
download | binutils-e10ac147c80240c2d0aa0a2ae2ec7f6a934c198f.zip binutils-e10ac147c80240c2d0aa0a2ae2ec7f6a934c198f.tar.gz binutils-e10ac147c80240c2d0aa0a2ae2ec7f6a934c198f.tar.bz2 |
ubsan: som: left shift of 1 by 31 places
* som/aout.h (SOM_AUX_ID_MANDATORY, SOM_SPACE_IS_LOADABLE),
(SOM_SYMBOL_HIDDEN, SOM_SYMBOL_HAS_LONG_RETURN): Use 1u << 31.
* som/lst.h (LST_SYMBOL_HIDDEN): Likewise.
Diffstat (limited to 'include/som/lst.h')
-rw-r--r-- | include/som/lst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/som/lst.h b/include/som/lst.h index f97237f..014fc7a 100644 --- a/include/som/lst.h +++ b/include/som/lst.h @@ -69,7 +69,7 @@ struct som_external_lst_symbol_record }; /* Fields of flags. */ -#define LST_SYMBOL_HIDDEN (1 << 31) +#define LST_SYMBOL_HIDDEN (1u << 31) #define LST_SYMBOL_SECONDARY_DEF (1 << 30) #define LST_SYMBOL_SYMBOL_TYPE_SH 24 #define LST_SYMBOL_SYMBOL_SCOPE_SH 20 |