mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
*** empty log message ***
This commit is contained in:
parent
cb9d20492a
commit
c660714fb1
@ -19,6 +19,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
/* $Id$
|
||||
*
|
||||
* $Log$
|
||||
* 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 ***
|
||||
*
|
||||
@ -2170,7 +2173,7 @@ lang_abs_symbol_at_beginning_of(section, name)
|
||||
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);
|
||||
@ -2198,7 +2201,7 @@ lang_abs_symbol_at_end_of(section, name)
|
||||
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);
|
||||
|
18
ld/ldsym.c
18
ld/ldsym.c
@ -20,6 +20,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
* $Id$
|
||||
*
|
||||
* $Log$
|
||||
* 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.
|
||||
*
|
||||
@ -450,3 +453,18 @@ ldsym_write()
|
||||
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;
|
||||
}
|
||||
|
@ -51,9 +51,10 @@ PROTO(ldsym_type *, ldsym_get, (char *));
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user