This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]