ELF header files
Michael Eager
eager@eagerm.com
Sun Dec 5 17:02:00 GMT 2010
Ralf Corsepius wrote:
> On 12/03/2010 04:33 PM, Sebastian Huber wrote:
>> It would be
>> nice if a boot loader program can use the ELF header files. Since the
>> ELF
>> format description is platform independent I thought that Newlib could
>> be the
>> right place to provide these header files.
>
> bootloader == an application. Would you mind to explain why an
> application would require an OS's libc to provide functions to access
> object file internals and why this can't be achieved by using an
> external library?
Glibc and uClibc both provide elf.h for the target.
One could argue that by analogy, Newlib should also.
But the argument that a libc has nothing to do with
the object format is correct.
Since binutils is the package which manipulates ELF
files, I think that binutils should install elf.h in
the target include directory. (Several targets I've
worked with do this as a local mod.)
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Newlib
mailing list