'\" te .\" Copyright 1989 AT&T Copyright (c) 2001, 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] .TH ELF_GETBASE 3ELF "Jul 11, 2001" .SH NAME elf_getbase \- get the base offset for an object file .SH SYNOPSIS .LP .nf cc [ \fIflag\fR ... ] \fIfile\fR ... \fB-lelf\fR [ \fIlibrary\fR ... ] #include \fBoff_t\fR \fBelf_getbase\fR(\fBElf *\fR\fIelf\fR); .fi .SH DESCRIPTION .sp .LP The \fBelf_getbase()\fR function returns the file offset of the first byte of the file or archive member associated with \fIelf\fR, if it is known or obtainable, and \fB\(mi1\fR otherwise. A null \fIelf\fR is allowed, to simplify error handling; the return value in this case is \fB\(mi1\fR\&. The base offset of an archive member is the beginning of the member's information, \fInot\fR the beginning of the archive member header. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Stable _ MT-Level MT-Safe .TE .SH SEE ALSO .sp .LP \fBar.h\fR(3HEAD), \fBelf\fR(3ELF), \fBelf_begin\fR(3ELF), \fBlibelf\fR(3LIB), \fBattributes\fR(5)