Skip to contentSkip to conversation

relocation truncated to fit: GPREL16 against `.sbss'

DISCUSSION Tony Breeds 2 participants 3 messages Mar 28, 2013 Alpha port

lore
Share & tools
lore
#0 lore raw

Hi all,
I build the cross-compilers on kernel.org and those used for
linux-next. It seems linux-next is using an older (4.3.3) gcc because if we use a newer one we get several errors like the on in $subject.

In http://marc.info/?l=linux-arch&m=133580603202270&w=2
Matt explained that it was due to the kernel being to big to fit be compiled with -msmall-data. I was wondering if there is any possibility of correcting that?

I'm about to build anew batch of 4.8.0 compilers and it'd be nice if I could compile an alpha kernel :)

Yours Tony

#1 lore raw
Quoted 8 lines · Tony Breeds

I build the cross-compilers on kernel.org and those used for
linux-next. It seems linux-next is using an older (4.3.3) gcc because if we use a newer one we get several errors like the on in $subject.

In http://marc.info/?l=linux-arch&m=133580603202270&w=2
Matt explained that it was due to the kernel being to big to fit be compiled with -msmall-data. I was wondering if there is any possibility of correcting that?

We have a patch to remove the -msmall-data which I shall be forwarding to Linus in the next couple or so days. That will fix the relocation errors for those using recent gcc compilers.

Cheers
Michael.

#2 lore raw
Quoted 11 lines · Michael Cree
Quoted 9 lines · Tony Breeds

I build the cross-compilers on kernel.org and those used for
linux-next. It seems linux-next is using an older (4.3.3) gcc because if we use a newer one we get several errors like the on in $subject.

In http://marc.info/?l=linux-arch&m=133580603202270&w=2
Matt explained that it was due to the kernel being to big to fit be compiled with -msmall-data. I was wondering if there is any possibility
of correcting that?

Quoted 3 lines

We have a patch to remove the -msmall-data which I shall be forwarding to Linus in the next couple or so days. That will fix the relocation errors for those using recent gcc compilers.

Awesome thanks! I assume that's close to being in linux-next?

Yours Tony