bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld segfaults on parisc


From: Alexander Beregalov
Subject: Re: ld segfaults on parisc
Date: Wed, 18 Mar 2009 14:09:38 +0300

2009/3/17 Andreas Schwab <address@hidden>:
> Alexander Beregalov <address@hidden> 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  <address@hidden>
>
>        * 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]