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

Re: not much success with kernel builds



Thiemo Seufer wrote:
> Noah L. Meyerhans wrote:
[snip]
> > gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-cvs/linux/include \
> >     -I /usr/src/linux-cvs/linux/include/asm/gcc -G 0 -mno-abicalls \
> >     -fno-pic -pipe -mips2 -Wa,--trap   -c -o scall_o32.o scall_o32.S
> > scall_o32.S: Assembler messages:
> > scall_o32.S:305: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation 
> > in this object file format
> > make[2]: *** [scall_o32.o] Error 1
> > make[2]: Leaving directory `/usr/src/linux-cvs/linux/arch/mips/kernel'
> 
> A known problem in recent MIPS gas (newer than binutils CVS 12-12-2003).
[snip]
> > If anybody can help me get these problems sorted out, I'd be quite
> > grateful.
> 
> Discussion and a possible fix for GAS can be found at
> http://sources.redhat.com/ml/binutils/2003-02/msg00179.html

As it turned out, a better solution is to fix the offending assembly code
by adding an additional local label and branch to this instead of the
global one:

	.global label
label:
.Llabel				# added line
	<some code>
	...


	b	.Llabel		# changed line


A kernel patch is in the works.


Thiemo



Reply to: