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]

Re: ld segfaults on parisc


2009/3/17 Andreas Schwab <schwab@linux-m68k.org>:
> Alexander Beregalov <a.beregalov@gmail.com> writes:
>
>> #0 Âstrlen (str=0xc84 <Address 0xc84 out of bounds>) at strlen.c:64
>> #1 Â0x407b7530 in _IO_vfprintf_internal (s=0xfb1487a0,
>> Â Â format=0xfb147d80 "arch/parisc/kernel/built-in.o(.text+0x%lx):
>> cannot reach %s, recompile with -ffunction-sections", ap=0xfb147d0c)
>> Â Â at vfprintf.c:1581
>> #2 Â0x407b8284 in buffered_vfprintf (s=0x408bfb98, format=0xfb147da9
>> "): cannot reach %s, recompile with -ffunction-sections",
>> Â Â args=0xfb14a850) at vfprintf.c:2188
>> #3 Â0x407b42e0 in _IO_vfprintf_internal (s=0x408bfb98,
>> Â Â format=0xfb147d80 "arch/parisc/kernel/built-in.o(.text+0x%lx):
>> cannot reach %s, recompile with -ffunction-sections", ap=0xfb147d14)
>> Â Â at vfprintf.c:1288
>> #4 Â0x40113064 in _bfd_default_error_handler (fmt=0x401ce5a9 "+0x%lx):
>> cannot reach %s, recompile with -ffunction-sections")
>> Â Â at /var/tmp/portage/sys-devel/binutils-2.19.51.0.3/work/binutils-2.19.51.0.3/bfd/bfd.c:698
>> #5 Â0x40153db0 in final_link_relocate (input_section=0x1067b8,
>> contents=0x43647008 "cows can fly", rela=0x140bb8,
>> Â Â value=18446744073709532028, htab=0x8eae8, sym_sec=0x1067b8,
>> hh=0x0, info=0x7bf78)
>> Â Â at /var/tmp/portage/sys-devel/binutils-2.19.51.0.3/work/binutils-2.19.51.0.3/bfd/elf32-hppa.c:3574
>
> Could you please try this patch?
>
> Andreas.
>
> 2009-03-17 ÂAndreas Schwab Â<schwab@linux-m68k.org>
>
> Â Â Â Â* elf32-hppa.c (final_link_relocate): Cast bfd_vma value to long
> Â Â Â Âfor format string.
>
It works, thanks!

  LD      .tmp_vmlinux1
ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach
000000b2_b2:46+4068, recompile with -ffunction-sections
ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle
R_PARISC_PCREL12F for .text
ld: final link failed: Bad value


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