[uClibc] toolchain: ppc assembler error ( .section ".relocate_code", "xa") when compiling linux 2.6.1 kernel???

Ken McGuire kenm at desertweyr.com
Tue Aug 17 18:50:24 UTC 2004

I have had the same problem with both toolchain 2.95 and 3.3x from uClibc.org

It appears to be a binutils issue,  /toolchain/gcc-3.3.x/make/binutils-uclibc.mk and
/toolchain/gcc-2.95/make/binutils-uclibc.mk were regressed from
BINUTILS_DIR:=$(TOOL_BUILD_DIR)/binutils- to fix building for
arm, I  think that worked with ppc, and there are comments in binutils &.8 changelogs implying that some ppc issues were fixed, but .6 results in the uitl.S issue.

I found these references to the problen which (I believe) explains the issue (better than I can).

http://sources.redhat.com/ml/binutils/2003-09/msg00380.html  and 

This applies to kernel versions 2.4.18 and above as well as the 2.6 series. The util.S
code appeared somewhere between 2.4.18pre6 and 2.4.18.

The 3.4.x toolchain uses bunutils (when I tried it, but now uses and I haven't gotten past an initial error due to stdargs.h not being found.
 I think somehow my 3.4.x toolchain wasn't built properly, but I haven't figured out why yet.


On 13 Aug 2004 at 16:14, Philip Van-Houtte wrote:

> Anyone come across the following...
> I downloaded 'buildroot.tar.bz2' (dated July 25 2004), and successfully
> built the tool chain for powerpc: gcc-3.3.4 as-
> When I tried to build a 2.6.1 kernel (zImage.initrd):
> arch/ppc/boot/common/util.S: Assembler messages:
> arch/ppc/boot/common/util.S:220: Warning: setting incorrect section
> attributes for .relocate_code
> arch/ppc/boot/common//util.o: File truncated
> arch/ppc/boot/common/util.S:281: FATAL: Can't write
> arch/ppc/boot/common//util.o: File truncated
> make[2]: *** [arch/ppc/boot/common//util.o] Error 1
> make[1]: *** [arch/ppc/boot/common/] Error 2
> make: *** [zImage.initrd] Error 2
> [philip at pcstaging1 kernel]$
> Line 220 of util.S is
>     .section ".relocate_code","xa"
> Philip Van-Houtte


More information about the uClibc mailing list