Yet more signed overflow fixes
[deliverable/binutils-gdb.git] / bfd / elf-bfd.h
index 6cfd1ac27f6035112ed4b137677afed82bfedf8a..2db6fcdb41c69765bb18b07aff447c11676b839a 100644 (file)
@@ -2836,8 +2836,8 @@ extern asection _bfd_elf_large_com_section;
 /* Hash for local symbol with the first section id, ID, in the input
    file and the local symbol index, SYM.  */
 #define ELF_LOCAL_SYMBOL_HASH(ID, SYM) \
-  (((((ID) & 0xff) << 24) | (((ID) & 0xff00) << 8)) \
-   ^ (SYM) ^ ((ID) >> 16))
+  (((((ID) & 0xffU) << 24) | (((ID) & 0xff00) << 8)) \
+   ^ (SYM) ^ (((ID) & 0xffff0000U) >> 16))
 
 /* This is the condition under which finish_dynamic_symbol will be called.
    If our finish_dynamic_symbol isn't called, we'll need to do something
This page took 0.023084 seconds and 4 git commands to generate.