Subject: Re: CLD symbol table object on Itanium From: John Reagan Date: Fri, 25 Mar 2005 22:21:30 GMT Newsgroups: comp.os.vms VAXman- @SendSpamHere.ORG wrote: > > I've had my head in ELF image layouts all day too trying to understand how > to get at the image ident info in the .note section. Finally happened up- > on NHDR$ defs in $ELFDEF which was hiding in STARLET and not in LIB like > all of the VAX and Alpha image def files. Sheesh, so much for consistency. > Can't say what that happened other than a tip-o-the-hat to ELF's standardization (whatever that is worth)??? By now, you know that fishing the image ident out of an ELF image is not for the faint of heart. For the rest of the readers, the image ident is located at a somewhat fixed offset in the image header on Alpha and VAX. On ELF, there is no such concept. What ELF does provide is a "note" section that essentially allows any system to encode any sort of data. We use them in object files to hold the compiler name which compiled the module, the compilation date/time, etc. Getting at them from inside a program involves opening the file, finding the note section and processing all the notes. We are looking at adding some callable API in a future release to make it all easier. -- John Reagan HP Pascal/{A|I}MACRO for OpenVMS Project Leader Hewlett-Packard Company