syms.c revision a194faf8907a6722dcf10ad16c6ca72c9b7bd0ba
/*
* CDDL HEADER START
*
* 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
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <dlfcn.h>
#include "msg.h"
#include "_debug.h"
#include "libld.h"
#if !(defined(_ELF64))
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
#endif
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
switch (flag) {
case DBG_DLSYM_NEXT:
break;
case DBG_DLSYM_DEFAULT:
break;
case DBG_DLSYM_SELF:
break;
case DBG_DLSYM_PROBE:
break;
case DBG_DLSYM_SINGLETON:
break;
default:
}
if (next == 0)
else
}
void
{
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
const char *name)
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
const char *fmt;
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (flag)
else
fname);
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
const char *file;
return;
if (DBG_NOTDETAIL())
return;
const char *sec;
} else
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (symbol_title) {
}
if (DBG_NOTDETAIL())
return;
}
void
const char *sname)
{
return;
if (sym_reduce_title && isfromglobal) {
} else if (sym_retain_title && isfromretain) {
}
else if (isfromglobal)
else
if (DBG_NOTDETAIL())
return;
}
void
{
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}
void
{
const char *needed;
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
else
needed = 0;
}
/*
* Symbol table output can differ slightly depending on the caller. However,
* the final diagnostic is maintained here so hat the various message strings
* remain consistent
*
* elfdump: index value size type bind oth ver shndx name
* ld: value size type bind oth ver shndx
*/
void
{
if (caller == ELF_DBG_ELFDUMP) {
if (DBG_NOTLONG())
else
return;
}
if (caller == ELF_DBG_LD) {
if (DBG_NOTLONG())
else
return;
}
}
void
{
const char *msg;
if ((caller == ELF_DBG_ELFDUMP) ||
(caller == ELF_DBG_LD)) {
if (DBG_NOTLONG())
else
}
}