diff options
author | Steve Chamberlain <sac@cygnus> | 1992-02-04 23:29:33 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-02-04 23:29:33 +0000 |
commit | aa34a7c3c1ace898a37733c7eac0923f6e3e8759 (patch) | |
tree | c94f6d0d2d73fe1848e654a57e86a615e315d5ca /ld/ldlang.c | |
parent | 58216160ef6573acb817676795cadab967afea2d (diff) | |
download | gdb-aa34a7c3c1ace898a37733c7eac0923f6e3e8759.zip gdb-aa34a7c3c1ace898a37733c7eac0923f6e3e8759.tar.gz gdb-aa34a7c3c1ace898a37733c7eac0923f6e3e8759.tar.bz2 |
* ldlex.l: Put pack -noinhibit-exec and -sort-common
* ldlang.c (print_data_statement): print the right address.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index b99f129..ef4fdf7 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1018,7 +1018,7 @@ DEFUN(print_input_section,(in), lang_input_section_type *in) { asection *i = in->section; - int size = i->flags & SEC_HAS_CONTENTS ? + int size = i->reloc_done ? bfd_get_section_size_after_reloc(i) : bfd_get_section_size_before_reloc(i); @@ -1097,7 +1097,7 @@ DEFUN(print_data_statement,(data), print_space(); /* ASSERT(print_dot == data->output_vma);*/ - print_address(data->output_vma); + print_address(data->output_vma + data->output_section->vma); print_space(); print_address(data->value); print_space(); @@ -1136,6 +1136,7 @@ DEFUN(print_padding_statement,(s), print_space(); print_fill(s->fill); print_nl(); + print_dot = s->output_offset + s->output_section->vma + s->size; } static void |