Cast shift expression
PR ld/18176 * ldlang.c (lang_size_sections): Cast shift expression.
This commit is contained in:
parent
d3e454b956
commit
0fad6e4b94
2 changed files with 6 additions and 1 deletions
|
@ -5424,7 +5424,7 @@ lang_size_sections (bfd_boolean *relax, bfd_boolean check_regions)
|
|||
between sections won't change. This is better than
|
||||
simply subtracting 1 << max_alignment_power which is
|
||||
what we used to do here. */
|
||||
expld.dataseg.base &= ~((1 << max_alignment_power) - 1);
|
||||
expld.dataseg.base &= ~(((bfd_vma) 1 << max_alignment_power) - 1);
|
||||
/* It doesn't make much sense to go lower than the initial
|
||||
base. That can only increase padding. */
|
||||
if (expld.dataseg.base < initial_base)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue