This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf
- From: Jiong Wang <jiong dot wang at arm dot com>
- To: "nickc at redhat dot com" <nickc at redhat dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 04 Nov 2014 10:30:16 +0000
- Subject: pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf
- Authentication-results: sourceware.org; auth=none
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