13.07.2015 Views

Full Generic System V ABI

Full Generic System V ABI

Full Generic System V ABI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ELF HeaderSome object file control structures can grow, because the ELF header contains theiractual sizes. If the object file format changes, a program may encounter controlstructures that are larger or smaller than expected. Programs might thereforeignore ‘‘extra’’ information. The treatment of ‘‘missing’’ information depends oncontext and will be specified when and if extensions are defined.Figure 4-3: ELF Header# d e f i n e E I _ N I D E N T 1 6t y p e d e f s t r u c t {u n s i g n e d c h a r e _ i d e n t [ E I _ N I D E N T ];E l f 32 _ H a l f e _ t y p e ;E l f 32 _ H a l f e _ m a c h i n e ;E l f 32 _ W o r d e _ v e r s i o n ;E l f 32 _ A d d r e _ e n t r y ;E l f 32 _ O f f e _ p h o f f ;E l f 32 _ O f f e _ s h o f f ;E l f 32 _ W o r d e _ f l a g s ;E l f 32 _ H a l f e _ e h s i z e ;E l f 32 _ H a l f e _ p h e n t s i z e ;E l f 32 _ H a l f e _ p h n u m ;E l f 32 _ H a l f e _ s h e n t s i z e ;E l f 32 _ H a l f e _ s h n u m ;E l f 32 _ H a l f e _ s h s t r n d x ;} E l f 32 _ E h d r ;e _ i d e n tThe initial bytes mark the file as an object file and providemachine-independent data with which to decode and interpretthe file’s contents. Complete descriptions appear below, in‘‘ELF Identification.’’4-4 OBJECT FILES

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!