This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Elf include files


Folks,

I'm in the process of getting readelf to dump ELF files generated on
HP-UX running on the IA64. These use a variety of HP extensions to
ELF, some of which we already have in include/elf/hppa.h

This seems wrong, the extensions are really HP-UX specific rather than
PA architecture specific.

So what's the right way to handle this ?

Should we have an include/elf/hpux.h to hold these ? 

This seems the right solution to me, but at the moment all of the
files in include/elf appear to be tagged with processor architecture
names, rather than operating system names.

For the sake of concreteness, the defines in question are things like
this
  /*============================================================================
     The SHF_* macros are the allowed values of the sh_flags field of 
     ElfXX_Shdr.  These 1-bit flags define attributes of a section.
  ============================================================================*/
  /*============================================================================
     The SHI_* macros are the special values of the sh_info field of 
     ElfXX_Shdr.
  ============================================================================*/
  /*============================================================================
     SHN_* macros are reserved section header indices.  An object file will
     not have sections for these special indices.
  ============================================================================*/
  /*============================================================================
     SHT_* macros are the values of sh_type in ElfXX_Shdr
  ============================================================================*/
  /*============================================================================
     The STB_* macros are the defined values of the binding information part
     of st_info in ElfXX_Sym.
  ============================================================================*/
  /*============================================================================
     The NOTE_* macros are the note types for SHT_NOTE sections
  ============================================================================*/
  ... etc ...

Suggestions, opinions ?

-- Jim

James Cownie	<jcownie@etnus.com>
Etnus, LLC.     +44 117 9071438
http://www.etnus.com


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