
30 Jan
2005
30 Jan
'05
1:20 a.m.
On Fri, Jan 28, 2005 at 06:13:23PM -0800, Dan Malek wrote:
Unless I'm doing something wrong, I also have to use binutils with the 'allow_branch_to_undefined' patch.
Hmm, why do you need this?
The only problematic place IIRC is in start.S which is trivially fixable without any additional toolchain patches or hacks like "mips_allow_branch_to_undefined". Just move initialization of GOT pointer right after CONFIG0 and use la/jalr instead of bal when calling memsetup, mips_cache_reset etc. This is what I did for MVL 3.1 based MIPS toolchain.
As a side note, "Setup temporary stack" is completely bogus and isn't needed, at least for 4kc which has a write-through dcache (4kc is the only MIPS arch currently supported, btw).
-- Eugene