/* $Id$
*
* $Log$
- * Revision 1.3 1991/03/27 00:52:49 steve
+ * Revision 1.4 1991/03/27 02:29:22 steve
+ * *** empty log message ***
+ *
+ * Revision 1.3 1991/03/27 00:52:49 steve
* *** empty log message ***
*
* Revision 1.2 1991/03/22 23:02:34 steve
char *section;
char *name;
{
- if (ldsym_get_soft(name) == (asymbol *)NULL) {
+ if (ldsym_undefined(name)) {
extern bfd *output_bfd;
extern asymbol *create_symbol();
asection *s = bfd_get_section_by_name(output_bfd, section);
char *section;
char *name;
{
- if (ldsym_get_soft(name) == (asymbol *)NULL) {
+ if (ldsym_undefined(name)){
extern bfd *output_bfd;
extern asymbol *create_symbol();
asection *s = bfd_get_section_by_name(output_bfd, section);
* $Id$
*
* $Log$
- * Revision 1.2 1991/03/22 23:02:38 steve
- * Brought up to sync with Intel again.
+ * Revision 1.3 1991/03/27 02:29:21 steve
+ * *** empty log message ***
+ *
+ * Revision 1.2 1991/03/22 23:02:38 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.1 1991/03/13 00:48:32 chrisb
* Initial revision
bfd_set_symtab(output_bfd, symbol_table, (unsigned)( tablep - symbol_table));
}
}
+
+/*
+return true if the supplied symbol name is not in the
+linker symbol table
+*/
+boolean
+ldsym_undefined(sym)
+char *sym;
+{
+ ldsym_type *from_table = ldsym_get_soft(sym);
+ if (from_table != (ldsym_type *)NULL) {
+ if (from_table->sdefs_chain != (asymbol **)NULL) return false;
+ }
+ return true;
+}
PROTO(ldsym_type *, ldsym_get_soft, (char *));
PROTO(void, ldsym_print_symbol_table,(void));
PROTO(void, ldsym_write, (void));
-
+PROTO(boolean, ldsym_undefined, (char *));
#define FOR_EACH_LDSYM(x) \
extern ldsym_type *symbol_head; \
ldsym_type *x; \
for (x = symbol_head; x != (ldsym_type *)NULL; x = x->next)
+