[LLVMdev] ELF / COFF Summary

Reid Spencer reid at x10sys.com
Fri Jun 17 08:16:47 PDT 2005


On Fri, 2005-06-17 at 08:17 -0500, Andrew Lenharth wrote:
> > In the case of the ELF writer, we want a similar structure.  Anything that 
> > can be simple exposed as data should be (e.g. whether the target is 32- or 
> > 64-bit), anything more complex should be exposed as virtual methods that 
> > are overloaded.  The ELF spec makes it very clear what parts of the file 
> > format are common across targets and what the variations are caused by.
> 
> The only catch here is elf32 and elf64 use different data structures.
> Other than than, I agree.  I suspect we are going to need two base
> implementations to handle that difference.

The interface that I'm suggesting would abstract away the differences.
The user of ELFWriter would have to declare whether they want 32-bit or
64-bit, but that's about it. I'll probably use the GELF interface to
implement ELFWriter to make it easier to work with either elf32 or
elf64.

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050617/d2de2480/attachment.sig>


More information about the llvm-dev mailing list