Subject: Re: CVS commit: syssrc
To: Simon Burge <simonb@netbsd.org>
From: Klaus Klein <kleink@ira.uka.de>
List: tech-toolchain
Date: 10/26/1999 15:41:54
Simon Burge <simonb@netbsd.org> writes:
> [[ tech-toolchain seemed like the best guess for this... ]
>
> Klaus Klein wrote:
>
> > Module Name: syssrc
> > Committed By: kleink
> > Date: Mon Oct 25 14:02:54 UTC 1999
> >
> > Modified Files:
> >
> > syssrc/sys/arch/pmax/stand/scsiboot: bootxx.c
> > syssrc/sys/arch/pmax/stand/smallnet/setnetimage: setnetimage.c
> >
> > Log Message:
> >
> > Update to match new SVR4-style definition names in <sys/exec_elf.h>.
>
> At the moment, ELFCLASS isn't defined because ELFSIZE isn't set to
> 32 or 64. Is there any for a default that suits the current build
> environment to be chosen without needing to define ELFSIZE prior to
> incluging <sys/exec_elf.h>? At the moment, it looks like I either
> have to use
>
> #include <sys/param.h>
> #define ELFSIZE 32
> #include <sys/exec_elf.h>
> #include <stand.h>
> #include <machine/dec_prom.h>
>
> or use ELFCLASS32 directly. Neither seems aestheticly pleasing at first
> glance (hmm, I'm already using Elf32_Ehdr instead of Elf_Ehdr anyways)...
Since pmaxen are 32-bit-only machines I'd say explicitly using ELF32
symbols would be the appropriate solution. (... and apologies for
missing this one!)
-klaus