Subject: Re: Turning off pic/abicalls on mips?
To: None <simonb@telstra.com.au>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-toolchain
Date: 03/17/1999 01:30:51
simonb@telstra.com.au wrote:

> I'm moving the pmax bootblocks over to using libsa/libkern,
> but run into a little problem.  In bsd.lib.mk, there's an
> unconditional
> 
> 	AINC+=-DPIC -DABICALLS
> 
> for mips.  Other ports use APICFLAGS for setting PIC, but
> for the mips we use PIC code _all_ the time.  However, I
> don't want PIC code for the bootblocks.

I saw this problem when I built newsmips kernel.
I changed `#ifdef ABICALLS' in libkern/arch/mips/byte_swap_[24].S
to `#if defined(ABICALLS) && !defined(_KERNEL)',
but I have no idea about bootblocks.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp