13.07.2015 Views

Full Generic System V ABI

Full Generic System V ABI

Full Generic System V ABI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Symbol TableAn object file’s symbol table holds information needed to locate and relocate aprogram’s symbolic definitions and references. A symbol table index is a subscriptinto this array. Index 0 both designates the first entry in the table and servesas the undefined symbol index. The contents of the initial entry are specified laterin this section.__________________Name ValueS T N _ U N D E F ⎜ 0__________________A symbol table entry has the following format.Figure 4-15: Symbol Table Entryt y p e d e f s t r u c t {E l f 32 _ W o r d s t _ n a m e ;E l f 32 _ A d d r s t _ v a l u e ;E l f 32 _ W o r d s t _ s i z e ;u n s i g n e d c h a r s t _ i n f o ;u n s i g n e d c h a r s t _ o t h e r ;E l f 32 _ H a l f s t _ s h n d x ;} E l f 32 _ S y m ;s t _ n a m eThis member holds an index into the object file’s symbol stringtable, which holds the character representations of the symbolnames. If the value is non-zero, it represents a string table indexthat gives the symbol name. Otherwise, the symbol table entryhas no name.NOTEExternal C symbols have the same names in C and object files’ symbol tables.s t _ v a l u eThis member gives the value of the associated symbol. Dependingon the context, this may be an absolute value, an address, etc.;details appear below.4-22 OBJECT FILES

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

Saved successfully!

Ooh no, something went wrong!