pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf
Jiong Wang
jiong.wang@arm.com
Tue Nov 4 10:30:00 GMT 2014
Hi Nick,
I haven't seen this patch on mailing list, but it breaks libgfortran cross linking on arm-none-linux-gnueabihf.
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 180) /* PR binutils/17512: Avoid malloc or file reading errors due to
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 181) ridiculous section sizes. But ignore linker created objects
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 182) with no contents (yet). */
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 183) if (bfd_get_size (abfd) > 0
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 184) && sz > (bfd_size_type) bfd_get_size (abfd))
5a3f568b (Nick Clifton 2014-11-03 17:44:00 +0000 185) return FALSE;
with the following error
"ld/ld-new: cannot size stub section: Invalid operation|
because "sz > (bfd_size_type) bfd_get_size (abfd)"
it's trigger from
elf32-arm.c(cortex_a8_erratum_scan)
else if (! bfd_malloc_and_get_section (input_bfd, section, &contents))
return TRUE;
Regards,
Jiong
More information about the Binutils
mailing list