Re: can't compile kernel for parisc

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

 



> Thanks for you help
> Is it more clear?

Yes.  This is good stuff.

> #6  0x40074c94 in elf32_hppa_relocate_section (output_bfd=0x78d28,
> info=0x68c00, input_bfd=0xd9060, input_section=0xf21c0,
>     contents=0x43571008 "cows can fly", relocs=0x12b520,
> local_syms=0x1891808, local_sections=0x1b350d8)

The bug is in this bit of code:

          (*_bfd_error_handler)
	    (_("%B(%A+0x%lx): cannot reach %s, recompile with -ffunction-sections"),
	      hsh->target_section->owner,
	      stub_sec,
	      (long) hsh->stub_offset,
	      hsh->bh_root.string);

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?

> 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