Message ID | 1438716772-2250-1-git-send-email-rth@twiddle.net |
---|---|
State | New |
Headers | show |
On 08/04/2015 12:32 PM, Richard Henderson wrote:
> Building alphaev67-linux with gcc6 results in Werror...
Ignore this, and follow up on the "Another GLIBC build error with GCC6" thread
that Steve Ellcey started, and I just (attempted to) reply to.
r~
diff --git a/elf/elf.h b/elf/elf.h index fbadda4..daab08f 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -801,7 +801,7 @@ typedef struct range. Be compatible. */ #define DT_AUXILIARY 0x7ffffffd /* Shared object to load before self */ #define DT_FILTER 0x7fffffff /* Shared object to get values from */ -#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1) +#define DT_EXTRATAGIDX(tag) (-((Elf32_Sword)((Elf32_Word)(tag) * 2) / 2 + 1)) #define DT_EXTRANUM 3 /* Values of `d_un.d_val' in the DT_FLAGS entry. */