ubsan: integer overflow in section filepos subtraction
authorAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:22:26 +0000 (13:52 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:52:09 +0000 (14:22 +1030)
commitaebb3d543da4d411d3d767912193c3849f59ff99
tree3386516764a12f078d71548b68e8080f3dcfc337
parentbb67763979c2084af185a8bf6ead4a05a50e7b9d
ubsan: integer overflow in section filepos subtraction

* elf.c (assign_file_positions_for_non_load_sections): Avoid
signed integer overflow.
bfd/elf.c