ld_ehframe.c:745:14: error: left shift of negative value
[-Werror=shift-negative-value]
   ret |= (-1 << shift);

Fix (not sure which include picks limits.h, though):

Index: ld/ld_ehframe.c
===================================================================
--- ld/ld_ehframe.c     (revision 3619)
+++ ld/ld_ehframe.c     (working copy)
@@ -742,7 +742,7 @@
        } while ((b & 0x80) != 0);
 
        if (shift < 32 && (b & 0x40) != 0)
-               ret |= (-1 << shift);
+               ret |= (UINT_MAX << shift);
 
        *dp = src;
 
-- 
Alex

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to