Po libxa libxa libxa libya libya and libya libxa po 77

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ssed by any other module. It is good programming practice to protect your variables and functions with the static attribute wherever possible. End Symbol tables are built by assemblers, using symbols exported by the compiler into the assembly language .s file. An ELF symbol table is contained in the .symtab section. It contains an array of entries. Figure 7.4 shows the format of each entry. The name is a byte offset into the string table that points to the null-terminated string name of the symbol. The value is the symbol’s address. For relocatable modules, the value is an offset from the beginning of the section where the object is defined. For executable object files, the value is an absolute run-time address. The size is the size (in bytes) of the object. The type is usually either data or function. The symbol table can also contain entries for the individual sections and for the path name of the original source file. So there 356 CHAPTER 7. LINKING code/link/elfstructs.c 1 2 3 4 5 6 7 8 9 10 typedef struct { int name; int value; int size; ch...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online