ubsan: undefined shift in mach-o.c
authorAlan Modra <amodra@gmail.com>
Sat, 6 Nov 2021 08:01:38 +0000 (18:31 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 6 Nov 2021 10:45:49 +0000 (21:15 +1030)
commite8f81980cee2d21605e60414a025f8b795147d9f
treedc8fe79916241edf32e552b5e9427a15279b81f5
parentdd207c1302d28d2d2b33cff058bb3fbf5138b480
ubsan: undefined shift in mach-o.c

This one was logically wrong too.  If file_ptr was 64 bits, then -1U
is extended to 0x00000000ffffffff, probably not what was intended
here.

* mach-o.c (FILE_ALIGN): Correct expression.
bfd/mach-o.c