Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Branch relocation fixing at Kernel-compiling with Debian-toolchain
@ 2003-05-14 10:31 Achim Hensel
  2003-05-14 10:40 ` Guido Guenther
  2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
  0 siblings, 2 replies; 7+ messages in thread
From: Achim Hensel @ 2003-05-14 10:31 UTC (permalink / raw)
  To: linux-mips

Hello, folks 

[I try to build Linux for a R4k Indigo1. I'm using as and ld of the
debian-toolchain with mips-linux-as/mips-linux-ld 2.13.90.0.18
20030121. At the moment, the kernel just compiles, but is not bootable
due to further adaption.]

As I'm not much into MIPS or gas assembler (most experience with 6502),
I would like to have some hints how to work around some kernel-compiling
errors:

When compiling the linux-mips.org kernel from the CVS-MAIN branch,
compiling stopped, as expected at the two assembler files 
entry.S and scall_o32.S in linux/arch/mips/kernel/ (both recent
versions) with a BFD-RELOC_16_PCREL_S2. 

The fix of combining global/local label, mentioned in 
http://sources.redhat.com/ml/binutils/2003-02/msg00205.htm
and other places, got me around the problem. Not every branch needed the
fix. Just one error remains:

In entry.S rev 1.49, around line 63, the branch target label
resume_kernel is defined by either a line statement
(ENTRY(resume_kernel), l.79) or a #definition from an other label (l.
52), depending on some #Config-options.

As work around I hardwired the branch label to one of them.

Any hints to adapt the fix to this problem? 
Diff/Patch for the rest will be posted if requested.

[Now working on with ELF2ECOFF converting]

CU,
	Achim

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-14 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14 10:31 Branch relocation fixing at Kernel-compiling with Debian-toolchain Achim Hensel
2003-05-14 10:40 ` Guido Guenther
2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
2003-05-14 18:00   ` Ralf Baechle
2003-05-14 18:32     ` Guido Guenther
2003-05-14 18:42       ` Guido Guenther
2003-05-14 19:30         ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox