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: [Gold] problem building linux kernel


My system is a 64-bit x86_64 running Ubuntu Lucid and have gcc-4.4.3.
I built a kernel tool-chain with top of trunk gold and gcc-4.5.1 then
I use it to build the kernel again.  I now got the __jump_table
section but objcopy worked fine.

I am sure I used the right tools:

$ ld -v
GNU gold (GNU Binutils 2.21.51.20101118) 1.10
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/dougkwan/kernel-toolchain/install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.5.1/configure --enable-languages=c
--with-mpfr=/home/dougkwan/gcc-lib --disable-bootstrap
Thread model: posix
gcc version 4.5.1 (GCC)


On Wed, Nov 17, 2010 at 10:39 PM, Markus Trippelsdorf
<markus@trippelsdorf.de> wrote:
> On 2010.11.17 at 16:24 -0800, Doug Kwan (éæå) wrote:
>> I tried your config file and I had also found the Radeon firmware
>> before you sent me. ÂHowever, I could not reproduce the problem. ÂOne
>> thing I noticed is that my kernel is slighly different from yours.
>> Mine does not have a __jump_table section and the .text section starts
>> at 0x200000 in the file, where as yours has .text starting at 0x1000.
>
> This is strange. Yes, I figured out that you have to use
> "-z max-page-size=0x200000O" to get the correct .text offset.
>
> Are you doing a cross-compile from a 32-bit host?
> (As you can see from my kernel config I'm running x86_64. My gcc version
> is 4.5.1)
>
> Sorry if this may sound offensive, but are you sure you're using gold?
>
> Because what was at first irritating to me are the garbage alignment
> values in the elf "program header" (I guess they are simply ignored).
> And your "Align" values all look sane...
>
> --
> Markus
>


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