From: Kumba <kumba@gentoo.org>
To: Jerry <jerry@wicomtechnologies.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
linux-mips <linux-mips@linux-mips.org>
Subject: Re: relocation truncated to fit
Date: Wed, 25 May 2005 08:39:10 -0400 [thread overview]
Message-ID: <429471EE.3090307@gentoo.org> (raw)
In-Reply-To: <20050525104905.GI4383@linux-mips.org>
Ralf Baechle wrote:
> On Wed, May 25, 2005 at 11:51:43AM +0300, Jerry wrote:
>
>
>>drivers/sound/sounddrivers.o: In function `sound_insert_unit':
>>sound_core.c:(.text+0x1ac): undefined reference to `strcpy'
>>sound_core.c:(.text+0x1ac): relocation truncated to fit: R_MIPS_26 against `strcpy'
>>make[1]: *** [vmlinux] Ошибка 1
>>make[1]: Leaving directory `/work/video/kernel'
>>make: *** [vmlinux] Ошибка 2
>>
>>It's not a "sound drivers" problem, howewer without it kernel compiles
>>and run succesfully. Seems like gcc/bunitils bug/feature. What have to
>>be done to eliminate this error?
>>
>>GNU ld version 2.15.96 20050308
>>gcc version 3.4.3
>
>
> Don't use gcc 3.4 to compile Linux 2.4. It may work for some kernel
> configurations but it will fail for others.
>
> Ralf
I would've thought this was fixed in 2.4.x now. You might try using newer
sources. The below patch fixes the issue:
http://dev.gentoo.org/~kumba/tmp/gcc-strcpy-fix.patch
As the original patch I found stated about gcc-3.4.x:
From: Jan Hubicka <jh@suse.cz>
GCC now converts sprintf (a,"%s",b) to strcpy. This lose on kernel as
strcpy is not inlined and not present in library, so one gets linker
failure. It seems to make sense to apply this optimization by hand.
--Kumba
--
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
next prev parent reply other threads:[~2005-05-25 12:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-25 8:51 relocation truncated to fit Jerry
2005-05-25 10:49 ` Ralf Baechle
2005-05-25 12:39 ` Kumba [this message]
2005-05-25 13:07 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=429471EE.3090307@gentoo.org \
--to=kumba@gentoo.org \
--cc=jerry@wicomtechnologies.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox