Previous: , Up: IO procedures   [Contents][Index]


2.2.4 Seeking

Sometimes there is a need to grab a specific header entry from the program header table or the section header table given its index. For this purpose, the following procedures are provided.

Procedure: seek-to-program-header! elf-header port index

Sets the position of port to the program header entry indexed by index. This procedure does not validate the index variable and it is the responsibility of the user to pass a value within the bounds of the program header table.

Procedure: seek-to-section-header! elf-header port index

Sets the position of port to the section header entry indexed by index. This procedure does not validate the index variable and it is the responsibility of the user to pass a value within the bounds of the section header table.