Jivin Mike Frysinger lays it down ...
> On Sun, Nov 2, 2008 at 6:42 PM, David McCullough wrote:
> > Jivin Mike Frysinger lays it down ...
> >> On Sun, Nov 2, 2008 at 6:17 PM, David McCullough wrote:
> >> > Would be nice if it could/did use the code in "flat.h" and "asm/flat.h"
> >> > to do the reloc addr thing, gets rid of the BF ifdef and will then also
> >> > work for MB and more.
> >> >
> >> > The flat_get_relocate_addr(...) should already be there shouldn't it ?
> >>
> >> that would be nice indeed ... i guess we want to start exporting
> >> asm/flat.h to userspace ?  that would of course force people to use
> >> latest kernel headers and generally the uClinux guys like to support
> >> everyone ... plus, we want asm/flat.h from the target rather than the
> >> build system ...
> >
> > Yep,  just a few issues with that idea ;-)
> 
> just mirror the structure locally ?
> flat.h -> include/linux/flat.h
> include/asm-blackfin/flat.h
> include/asm-m32r/flat.h
> ....
> and then we make an include/flat.h that does the ugly multiplexing:
> #ifdef TARGET_bfin
> #include "asm-blackfin/flat.h"
> #elif defined(TARGET_m32r)
> #include "asm-m32r/flat.h"
> ...
> #endif
> #include "linux/flat.h"

If you want to have a go at it.  If we assume the kernels sources have
recent flat support then it's easier.  Not sure how that translates for
most people though.  It's not ugly yet so there's no rush on it,
just thinking ahead a little.

I really don't want to see copies of the Linux headers creeping into
elf2flt,  nor duplication of the logic within them. I know thats' not
what we talking about,  but it's easy for it to start happening.

Cheers,
Davidm

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org   http://www.snapgear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to