xref: /titanic_52/usr/src/man/man3ext/rtld_audit.3ext (revision 9d12795f87b63c2e39e87bff369182edd34677d3)
te
Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
RTLD_AUDIT 3EXT "Oct 6, 2004"
NAME
rtld_audit, la_activity, la_i86_pltenter, la_objsearch, la_objopen, la_objfilter, la_pltexit, la_pltexit64, la_preinit, la_sparcv8_pltenter, la_sparcv9_pltenter, la_amd64_pltenter, la_symbind32, la_symbind64, la_version - runtime linker auditing functions
SYNOPSIS

void la_activity(uintptr_t *cookie, uint_t flag);

uintptr_t la_i86_pltenter(Elf32_Sym *sym, uint_t ndx, uintptr_t *refcook,
 uintptr_t *defcook, La_i86_regs *regs, uint_t *flags);

char *la_objsearch(const char *name, uintptr_t *cookie, uint_t flag);

uint_t la_objopen(Link_map *lmp, Lmid_t lmid, uintptr_t *cookie);

int la_objfilter(uintptr_t *fltrcook, uintptr_t *fltecook,
 uint_t *flags);

uintptr_t la_pltexit(Elf32_Sym *sym, uint_t ndx, uintptr_t *refcook,
 uintptr_t *defcook, uintptr_t retval);

uintptr_t la_pltexit64(Elf64_Sym *sym, uint_t ndx, uintptr_t *refcook,
 uintptr_t *defcook, uintptr_t retval, const char *sym_name);

void la_preinit(uintptr_t *cookie);

uintptr_t la_sparcv8_pltenter(Elf32_Sym *sym, uint_t ndx,
 uintptr_t *refcook, uintptr_t *defcook, La_amd64_regs *regs,
 uint_t *flags);

uintptr_t la_sparcv9_pltenter(Elf64_Sym *sym, uint_t ndx,
 uintptr_t *refcook, uintptr_t *defcook, La_sparcv8_regs *regs,
 uint_t *flags, const char *sym_name);

uintptr_t la_amd64_pltenter(Elf32_Sym *sym, uint_t ndx,
 uintptr_t *refcook, uintptr_t *defcook, La_sparcv8_regs *regs,
 uint_t *flags, const char *sym_name);

uintptr_t la_symbind32(Elf32_Sym *sym, uint_t ndx, uintptr_t *refcook,
 uintptr_t *defcook, uint_t *flags);

uintptr_t la_symbind64(Elf64_Sym *sym, uint_t ndx,
 uintptr_t *refcook,uintptr_t *defcook, uint_t *flags,
 const char *sym_name);

uint_t la_version(uint_t version);
DESCRIPTION

A runtime linker auditing library is a user-created shared object offering one or more of these interfaces. The runtime linker ld.so.1(1), calls these interfaces during process execution. See the Linker and Libraries Guide for a full description of the link auditing mechanism.

SEE ALSO

ld.so.1(1)

Linker and Libraries Guide