Re: can't compile kernel for parisc

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

 



> Either hsh->target_section->owner or hsh->bh_root.string is NULL.  Could
> you put a break on this line and print the struct hsh in gdb?

bfd/elf32-hppa.c:
3568   /* Make sure we can reach the stub.  */
3569   if (max_branch_offset != 0
3570       && value + addend + max_branch_offset >= 2*max_branch_offset)
3571     {
3572       (*_bfd_error_handler)
3573         (_("%B(%A+0x%lx): cannot reach %s, recompile with
-ffunction-sections"),
3574          input_bfd,
3575          input_section,
3576          offset,
3577          hsh->bh_root.string);
3578       bfd_set_error (bfd_error_bad_value);
3579       return bfd_reloc_notsupported;
3580     }

(gdb) step
3572          (*_bfd_error_handler)

(gdb) info locals
howto = <value optimized out>
sym = (Elf_Internal_Sym *) 0x189ed40
sym_name = <value optimized out>
warned_undef = 0
r_symndx = <value optimized out>
hh = (struct elf32_hppa_link_hash_entry *) 0x0
sym_sec = (asection *) 0xf0870
relocation = 18446744073709532028
plabel = <value optimized out>
r_type = 8
rstatus = bfd_reloc_notsupported
local_got_offsets = (bfd_vma *) 0x137018
htab = (struct elf32_hppa_link_hash_table *) 0x78f70
rela = (Elf_Internal_Rela *) 0x12abd0
relend = (Elf_Internal_Rela *) 0x12b128
__PRETTY_FUNCTION__ = "elf32_hppa_relocate_section"

(gdb) print input_bfd
$4 = (bfd *) 0xae460

(gdb) print input_section
$5 = (asection *) 0xf0870

(gdb) print offset
No symbol "offset" in current context.

(gdb) print hsh->bh_root.string
No symbol "hsh" in current context.

(gdb) step
/usr/bin/ld:
Program received signal SIGSEGV, Segmentation fault.

I do not understand why there is no such symbols.
>
>> Should I really recompile glibc with -ffunction-sections ?
>
> It probably will help.  If you are building for a PA 2.0 machine,
> -mpa-risc-2-0 may also help as the branch the branch distance for
> pc-relative calls is much bigger.
>
> I thought -ffunction-sections was always used for kernel builds.
>
> It's a bit of a puzzle as to why this error is triggered.  I think
> this is coming from ./arch/parisc/kernel/traps.c.  I wouldn't have
> thought the text in this file is large enough to trigger this error.
>
> Dave
> --
> J. David Anglin                                  dave.anglin@xxxxxxxxxxxxxx
> National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux