10 |
to compile use cc rsym.c -o rsym -I../h |
to compile use cc rsym.c -o rsym -I../h |
11 |
*/ |
*/ |
12 |
|
|
13 |
|
#include <stdlib.h> |
14 |
#include <string.h> |
#include <string.h> |
15 |
#ifdef __linux__ |
#ifdef __linux__ |
16 |
/* Needed these to get it working with Linux. Bill Metzenthen 23 May 95 */ |
/* Needed these to get it working with Linux. Bill Metzenthen 23 May 95 */ |
41 |
char *start_address; |
char *start_address; |
42 |
int symbol_index; |
int symbol_index; |
43 |
|
|
44 |
static void get_myself(); |
static void get_myself(char *); |
45 |
|
|
46 |
#ifdef RSYM_AUX |
#ifdef RSYM_AUX |
47 |
#include RSYM_AUX |
#include RSYM_AUX |
67 |
/* this program will get the external symbols from a file writing |
/* this program will get the external symbols from a file writing |
68 |
them out to a file together with their addresses */ |
them out to a file together with their addresses */ |
69 |
static char *outfile; |
static char *outfile; |
70 |
|
int |
71 |
|
output_externals(char *); |
72 |
|
|
73 |
int |
int |
74 |
main(argc,argv) |
main(argc,argv) |
133 |
{ |
{ |
134 |
unsigned int i; |
unsigned int i; |
135 |
FILE *fp; |
FILE *fp; |
|
int string_size=0; |
|
136 |
int symsize; |
int symsize; |
137 |
extern char *malloc(); |
extern char *malloc(); |
138 |
|
|