/*
* 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) 1997-1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <limits.h>
#include <libelf.h>
#include <link.h>
#include <elf.h>
#include <kstat.h>
typedef struct syment {
char *name;
} syment_t;
#ifdef _ELF64
#else
#endif
static void
{
maxsyms += 10000;
if (symbol_table == NULL) {
exit(3);
}
}
}
static void
{
int i;
}
static void
{
char *name;
return;
break;
/*
* For consistency, keep cpu[0] and toss cpu0
* or any other such symbols.
*/
if (ksp->ks_instance == 0)
sizeof (struct cpu));
}
}
(void) kstat_close(kc);
}
static int
{
return (-1);
return (1);
return (0);
}
int
symtab_init(void)
{
char *strtab;
int fd;
int i;
return (-1);
(void) elf_version(EV_CURRENT);
}
}
}
nsyms = 0;
/*
* Destroy all duplicate symbols, then sort it again.
*/
for (i = 0; i < nsyms - 1; i++)
symbol_table[i].addr = 0;
symbol_table++;
nsyms--;
}
symbol_table[0].addr = 0;
return (0);
}
char *
{
int lo = 0;
int mid;
} else {
}
}
}
{
int i;
for (i = 0; i < nsyms; i++) {
sep++;
}
return (NULL);
}
{
int i;
for (i = 0; i < nsyms; i++) {
sep++;
}
return (0);
}