[RFC] Cross core support

Daniel Jacobowitz dmj+@andrew.cmu.edu
Thu Jun 28 13:21:00 GMT 2001


On Thu, Jun 28, 2001 at 09:13:56PM +0100, Nick Clifton wrote:
> Hi Daniel,
> 
> > I'm not entirely sure what you mean by "protected by ifdefs"; how
> > would that help us compare them against the native values?
> 
> Sorry I wasn't very clear.  I imagined you creating the table like
> this:
> 
>   #define NOTE_foo_OFFSET_bar  55
>   #ifdef HAVE_PRSTATUS_T
>   #if offsetof (foo,bar) != NOT_foo_OFFSET_bar
>   #error "Offset of 'bar' in 'foo' has chnaged."
>   #endif
>   #endif
> 
> Obviously this is just a rough idea, but my though was to make the
> preprocessot check the offsets if the actual structure definitions
> were available.

I take it back.  How could we do this?  If you consider two different
OS note formats for the same ELF target, I don't want to hardcode in
the target format file (elfXX-arch.c) which one I'm building for if I
can help it.

But I'm not too worried about this.  They change prstatus, we can no
longer read core files - that's an ABI change anyway.  We can deal with
it if it happens.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list