[LLVMdev] ELF / COFF Summary
Andrew Lenharth
andrewl at lenharth.org
Fri Jun 17 06:17:30 PDT 2005
> 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.
Andrew
More information about the llvm-dev
mailing list