Re: ELF branding / magic numbers

2004-02-05 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Philip Reynolds <[EMAIL PROTECTED]> writes: : Ruslan Ermilov <[EMAIL PROTECTED]> 35 lines of wisdom included: : > On Thu, Feb 05, 2004 at 08:39:45AM +, Philip Reynolds wrote: : > [...] : > > Does the magic number not then support multiple ABI's per sy

Re: My new fdisk(8) program.

2004-02-05 Thread epi bug
> Oh, just curious, why are you opposed to the use of structs? Does it make > the code less portable due to alignment restrictions or something? > > Fred to quote him: "structures are not portable" -- epibug - EPIT{A,ECH} *BSD User Group l'asso des codeurs qui aiment les systemes BSD

Re: ELF branding / magic numbers

2004-02-05 Thread Philip Reynolds
Ruslan Ermilov <[EMAIL PROTECTED]> 35 lines of wisdom included: > On Thu, Feb 05, 2004 at 08:39:45AM +, Philip Reynolds wrote: > [...] > > Does the magic number not then support multiple ABI's per system > > architecture, or is there some part of the puzzle I'm missing? > > > There's an EI_ABI

Re: ELF branding / magic numbers

2004-02-05 Thread Ruslan Ermilov
On Thu, Feb 05, 2004 at 08:39:45AM +, Philip Reynolds wrote: [...] > Does the magic number not then support multiple ABI's per system > architecture, or is there some part of the puzzle I'm missing? > There's an EI_ABIVERSION byte following the EI_OSABI byte, which is both documented in the el

ELF branding / magic numbers

2004-02-05 Thread Philip Reynolds
Hi, At the moment, on both OpenBSD and FreeBSD (you're going to have to excuse my lack of familiarity with NetBSD but I presume this situation is similar) ELF files are branded via the CSU library, inside a PT_NOTE section. I've looked through as much documentation and list archives that I could