end.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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]
*
* CDDL HEADER END
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
#include "syn.h"
#include <ar.h>
#include <stdlib.h>
#include "libelf.h"
#include "decl.h"
#include "member.h"
int
{
Elf_Scn * s;
Dnode * d;
int rc;
if (elf == 0)
return (0);
return (rc);
}
#ifndef __lock_lint
if (trail != 0)
}
continue;
for (d = s->s_hdnode; d != 0; ) {
register Dnode *t;
if (d->db_buf != 0)
if ((t = d->db_raw) != 0) {
if (t->db_buf != 0)
if (t->db_myflags & DBF_ALLOC)
free(t);
}
t = d->db_next;
if (d->db_myflags & DBF_ALLOC)
free(d);
d = t;
}
}
if (trail != 0) {
trail = 0;
}
{
register Memlist *l;
register Memident *i;
i++)
free(l);
}
}
/*
* Don't release the image until the last reference dies.
* If the image was introduced via elf_memory() then
* we don't release it at all, it's not ours to release.
*/
}
if (elf == 0)
break;
/*
* If parent is inactive we close
* it too, so we need to lock it too.
*/
}
if (elf) {
}
#else
/*
* This sill stuff is here to make warlock happy
* durring it's lock checking. The problem is that it
* just can't track the multiple dynamic paths through
* the above loop so we just give it a simple one it can
* look at.
*/
#endif
return (0);
}