aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-01-28 18:21:36 +0000
committerSteve Chamberlain <sac@cygnus>1992-01-28 18:21:36 +0000
commit870f54b2c887f03258f78baf5e772cb055c69b06 (patch)
tree22bef9ed29165e535059ab56d5b52a478784eda9 /ld/ldsym.c
parentdaa91756f11404bc87d38eb1e1a6bc9435e0326a (diff)
downloadgdb-870f54b2c887f03258f78baf5e772cb055c69b06.zip
gdb-870f54b2c887f03258f78baf5e772cb055c69b06.tar.gz
gdb-870f54b2c887f03258f78baf5e772cb055c69b06.tar.bz2
* ldgram.y: map -M behave in the same way as -Map (sets file name
to be "-". * ldsym.c, ldlang.c: remember that size of a section is dependent on whether or not relaxing has been done. * ldmain.c: don't open a map file if it doesn't have a name * relax.c: all the brains have moved into bfd. * ldwrite.c: ammend comment
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r--ld/ldsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldsym.c b/ld/ldsym.c
index e6b7afc..007d191 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -227,7 +227,7 @@ DEFUN(print_file_stuff,(f),
s != (asection *)NULL;
s = s->next) {
print_address(s->output_offset);
- if (s->flags & SEC_HAS_CONTENTS)
+ if (s->reloc_done)
{
fprintf (config.map_file, " %08x 2**%2ud %s\n",
(unsigned)bfd_get_section_size_after_reloc(s),