1. Got table profile

The global offset table contains an import table and an export table. The export table refers to the function symbols of the current dynamic library reserved for external calls. The functions in the imported table actually call the external export functions in the dynamic library

2. Explain in detail

The.got section is used to hold the address values of global variables

Got. PLT is used to hold the address value of the imported function

.rel. Dyn holds corrections to global variables

.rel. PLT holds modifications to imported functions

.txt code segment

.data data segment

.radata Records constant data

Symtab records the symbol table (equivalent to the exported table of the PE file)

. Strtab string table

. Shstrtab has segment table string table segment

.rel. PLT records the relocated content of an extent (equivalent to the import table of a PE file)

Rel. PLT: The relocation is within the.got. PLT segment. It’s mainly for external function notation. Usually the function is relocated when it is first called. The first call will relocate the address of the function, putting the final address into the.got, and then reading the.got will get the final address directly. This Section is used by the dynamic linker to change the. Got table value by finding the. Got entry at r_offset during relocation.

“.rel. Dyn “and”.rel. PLT “respectively save the information such as variables, function symbols and the module where the module needs to import. The symbol table in the ELF file indicates whether the symbol is an import symbol or an export symbol

Dynamic linker, delayed binding

The Procedure Linkage Table is used to Linkage the Linkage Table. this