AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

LDOPEN(3X) LDOPEN(3X) example, one pointer may be used to step sequentially through the relocation information, while the other is used to read indexed symbol table entries. Both ldopen and ldaopen open filename for reading. Both functions return NULL if filename cannot be opened, or if memory for the LDFILE structure cannot be allocated. A successful open does not insure that the given file is a common object file or an archived object file. The program must be loaded with the object file access routine library libld.a. SEE ALSO fopen(3S), ldclose(3X), ldfcn( 4). - 2-

LDRSEEK ( 3X ) LDRSEEK ( 3X ) NAME ldrseek, ldnrseek - seek to relocation entries of a section of a common object file SYNOPSIS #include #include #include int ldrseek {ldptr, sectindx) LDFILE •ldptr; unsigned short sectindx; int ldnrseek (ldptr, sectna.me) LDFILE •ldptr; cha.r •sectna.me; DESCRIPTION Ldrseek seeks to the relocation entries of the section specified by sectindx of the common object file currently associated with ldptr . Ldnrseek seeks to the relocation entries of the section specified by sectname . Ldrseek and ldnrseek return SUCCESS or F AlLURE. Ldrseek will fail if sectindx is greater than the number of sections in the object file; ldnrseek will fail if there is no section name corresponding with sectname. Either function will fail if the specified section has no relocation entries or if it cannot seek to the specified relocation entries. Note that the first section has an index of one . The program must be loaded with the object file access routine library libld.a.. SEE ALSO ldclose(3X), ldopen(3X), ldshread(3X), ldfcn( 4). - 1 -

LDRSEEK ( 3X ) LDRSEEK ( 3X )<br />

NAME<br />

ldrseek, ldnrseek - seek to relocation entries of a section of a common<br />

object file<br />

SYNOPSIS<br />

#include <br />

#include <br />

#include <br />

int ldrseek {ldptr, sectindx)<br />

LDFILE •ldptr;<br />

unsigned short sectindx;<br />

int ldnrseek (ldptr, sectna.me)<br />

LDFILE •ldptr;<br />

cha.r •sectna.me;<br />

DESCRIPTION<br />

Ldrseek seeks to the relocation entries of the section specified by<br />

sectindx of the common object file currently associated with ldptr .<br />

Ldnrseek seeks to the relocation entries of the section specified by<br />

sectname .<br />

Ldrseek and ldnrseek return SUCCESS or F AlLURE. Ldrseek<br />

will fail if sectindx is greater than the number of sections in the<br />

object file; ldnrseek will fail if there is no section name corresponding<br />

with sectname. Either function will fail if the specified section<br />

has no relocation entries or if it cannot seek to the specified relocation<br />

entries.<br />

Note that the first section has an index of one .<br />

The program must be loaded with the object file access routine<br />

library libld.a..<br />

SEE ALSO<br />

ldclose(3X), ldopen(3X), ldshread(3X), ldfcn( 4).<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!