diff options
author | Steve Chamberlain <steve@cygnus> | 1991-06-04 23:05:54 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-06-04 23:05:54 +0000 |
commit | 48491e2e15d8230b37b05e682c6947527b5859ce (patch) | |
tree | 3cebc0a7ae8b8e24888f92da9bd0a528429dd125 /ld/ldsym.c | |
parent | eb2022d7dd7cb350b0757f38ba30260dc510e143 (diff) | |
download | gdb-48491e2e15d8230b37b05e682c6947527b5859ce.zip gdb-48491e2e15d8230b37b05e682c6947527b5859ce.tar.gz gdb-48491e2e15d8230b37b05e682c6947527b5859ce.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r-- | ld/ldsym.c | 74 |
1 files changed, 35 insertions, 39 deletions
@@ -169,45 +169,46 @@ static void print_file_stuff(f) lang_input_statement_type *f; { - fprintf (stdout, " %s", f->filename); - fprintf (stdout, " "); + fprintf (stdout, " %s\n", f->filename); if (f->just_syms_flag) - { - fprintf (stdout, " symbols only\n"); - } + { + fprintf (stdout, " symbols only\n"); + } else - { - asection *s; - if (true || option_longmap) { - for (s = f->the_bfd->sections; - s != (asection *)NULL; - s = s->next) { - print_address(s->output_offset); - printf ( "%08x 2**%2ud %s\n", - (unsigned)s->size, s->alignment_power, s->name); + { + asection *s; + if (true || option_longmap) { + for (s = f->the_bfd->sections; + s != (asection *)NULL; + s = s->next) { + print_address(s->output_offset); + printf (" %08x 2**%2ud %s\n", + (unsigned)s->size, s->alignment_power, s->name); + } } - } - else { - for (s = f->the_bfd->sections; - s != (asection *)NULL; - s = s->next) { - printf("%s ", s->name); - print_address(s->output_offset); - printf("(%x)", (unsigned)s->size); + else { + for (s = f->the_bfd->sections; + s != (asection *)NULL; + s = s->next) { + printf("%s ", s->name); + print_address(s->output_offset); + printf("(%x)", (unsigned)s->size); + } + printf("hex \n"); } - printf("hex \n"); } - } + fprintf (stdout, "\n"); } void ldsym_print_symbol_table () { - fprintf (stdout, "\nFiles:\n\n"); + fprintf (stdout, "**FILES**\n\n"); lang_for_each_file(print_file_stuff); - fprintf (stdout, "\nGlobal symbols:\n\n"); + fprintf(stdout, "**GLOBAL SYMBOLS**\n\n"); + fprintf(stdout, "offset section offset symbol\n"); { register ldsym_type *sp; @@ -220,11 +221,11 @@ ldsym_print_symbol_table () print_address(defsym->value); if (defsec) { - print_space(); - print_address(defsym->value+defsec->vma); - printf("%7s", + printf(" %-10s", bfd_section_name(output_bfd, defsec)); + print_space(); + print_address(defsym->value+defsec->vma); } else @@ -233,23 +234,18 @@ ldsym_print_symbol_table () } } - else { - printf("undefined"); - } if (sp->scoms_chain) { - printf(" common size "); + printf("common "); print_address((*(sp->scoms_chain))->value); - printf("%s ",sp->name); + printf(" %s ",sp->name); } - if (sp->sdefs_chain) { - printf(" symbol def "); - print_address((*(sp->sdefs_chain))->value); - printf("%s ",sp->name); + else if (sp->sdefs_chain) { + printf(" %s ",sp->name); } else { - printf(" undefined "); + printf("undefined "); printf("%s ",sp->name); } print_nl(); |