]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: Update objcopy's --section-alignment option
authorAlan Modra <amodra@gmail.com>
Thu, 11 Apr 2024 03:42:21 +0000 (13:12 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 11 Apr 2024 07:35:15 +0000 (17:05 +0930)
commitef70c9e7b26ec5e95b073944a9ed19d495c4fe88
treec4e818d86b5eed141c67bc6ce550ddbb9bf41e6f
parentbf649e72d3d5bc0784080438f550095d71769904
Re: Update objcopy's --section-alignment option

ubsan: shift exponent 255 is too large for 64-bit type

I should have known oss-fuzz wouldn't be satisfied so easily.  The pef
format allows quite silly section alignments in object files.

* objcopy.c (setup_section): Limit shift exponent when checking
vma and lma for alignment.
binutils/objcopy.c