Seeks to the relocation entries of a section of an XCOFF file.
Object File Access Routine Library (libld.a)
#include <stdio.h>
#include <ldfcn.h>
int ldrseek ( ldPointer, SectionIndex)
ldfile *ldPointer;
unsigned short SectionIndex;
int ldnrseek (ldPointer, SectionName)
ldfile *ldPointer;
char *SectionName;
The ldrseek subroutine seeks to the relocation entries of the section specified by the SectionIndex parameter of the common object file currently associated with the ldPointer parameter.
The ldnrseek subroutine seeks to the relocation entries of the section specified by the SectionName parameter.
For AIX 4.3.2 and above, both subroutines determine the object mode of the associated file before seeking to the relocation entries of the indicated section.
The ldrseek and ldnrseek subroutines return a SUCCESS or FAILURE value.
The ldrseek subroutine fails if the contents of the SectionIndex parameter are greater than the number of sections in the object file. The ldnrseek subroutine fails if there is no section name corresponding with the SectionName parameter. Either function fails if the specified section has no relocation entries or if it cannot seek to the specified relocation entries.
Note: The first section has an index of 1.
These subroutines are part of Base Operating System (BOS) Runtime.
The ldohseek (ldohseek Subroutine) subroutine, ldlseek or ldnlseek (ldlseek or ldnlseek Subroutine) subroutine, ldsseek or ldnsseek (ldsseek or ldnsseek Subroutine)subroutine, ldtbseek (ldtbseek Subroutine) subroutine.
Subroutines, Example Programs, and Libraries in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.