This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ELF header files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]