[committed, PATCH] Check file size before getting section contents

Alan Modra amodra@gmail.com
Mon Jun 26 23:15:00 GMT 2017


On Mon, Jun 26, 2017 at 03:49:12PM -0700, H.J. Lu wrote:
>    filesz = bfd_get_file_size (abfd);
> +  if (filesz < 0)
>      {
>        /* This should never happen.  */
>        abort ();

This will abort for 2G files on some host/target combinations.  Why is
that correct?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list