syms.c revision dc0f59e5324b0cb0a8b1062e2d385e5c016661b2
/*
* 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
*/
/*
*/
#include <stdio.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;
}
MSG_CAP_SYM_DEFAULT, /* MSG_INTL(MSG_CAP_SYM_DEFAULT) */
MSG_CAP_SYM_USED, /* MSG_INTL(MSG_CAP_SYM_USED) */
MSG_CAP_SYM_CANDIDATE, /* MSG_INTL(MSG_CAP_SYM_CANDIDATE) */
MSG_CAP_SYM_REJECTED, /* MSG_INTL(MSG_CAP_SYM_REJECTED) */
MSG_CAP_SYM_HW_1, /* MSG_INTL(MSG_CAP_SYM_HW_1) */
MSG_CAP_SYM_SF_1, /* MSG_INTL(MSG_CAP_SYM_SF_1) */
MSG_CAP_SYM_HW_2, /* MSG_INTL(MSG_CAP_SYM_HW_2) */
MSG_CAP_SYM_PLAT, /* MSG_INTL(MSG_CAP_SYM_PLAT) */
MSG_CAP_SYM_MACH /* MSG_INTL(MSG_CAP_SYM_MACH) */
};
void
{
return;
switch (type) {
case DBG_CAP_HW_1:
break;
case DBG_CAP_SF_1:
break;
case DBG_CAP_HW_2:
break;
case DBG_CAP_MACH:
break;
case DBG_CAP_PLAT:
break;
}
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
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;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
char *alloc_mem;
const char *file;
return;
if (DBG_NOTDETAIL())
return;
} else
}
void
{
const char *file;
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;
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
}
void
{
return;
if (DBG_NOTDETAIL())
return;
}
void
{
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 (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
}
}
void
{
if (DBG_NOTCLASS(DBG_C_SYMBOLS))
return;
if (DBG_NOTDETAIL())
return;
}