syms.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 1996 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include <libelf.h>
#include "rdb.h"
char ** str)
{
char * strs;
int i;
else
return (RET_FAILED);
return (RET_FAILED);
}
continue;
continue;
return (RET_OK);
}
return (RET_FAILED);
}
/*
* If two syms are of equal value this routine will
* favor one over the other based off of it's symbol
* type.
*/
static GElf_Sym
{
return (*s1);
return (*s2);
}
if (t1 == STT_OBJECT)
return (*s1);
return (*s2);
}
if (t1 == STT_OBJECT)
return (*s1);
return (*s2);
}
return (*s1);
}
char ** str)
{
int i;
else
return (RET_FAILED);
/*
* normalize address
*/
return (RET_FAILED);
}
continue;
/*
* track both the best local and best
* global fit for this address. Later
* we will favor the global over the local
*/
((lsymr == 0) ||
else {
}
} else if ((symr == 0) ||
else {
}
}
}
}
return (RET_FAILED);
if (lsymr) {
/*
* If a possible local symbol was found should
* we use it.
*/
else if (symr == 0)
}
return (RET_OK);
}
{
map_info_t * mip;
return (RET_FAILED);
}
{
map_info_t * mip;
return (RET_OK);
}
return (RET_OK);
return (RET_FAILED);
}