aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-10-15 22:22:08 +0000
committerSteve Chamberlain <sac@cygnus>1992-10-15 22:22:08 +0000
commitba2c2b1c42378e876c8565de3053d6d8d1076398 (patch)
treecf982a9d1a564430fef1d04967c54d97bd56ee4c
parent58c319d00b9922186c72dfe37d96145d7709a2d4 (diff)
downloadgdb-ba2c2b1c42378e876c8565de3053d6d8d1076398.zip
gdb-ba2c2b1c42378e876c8565de3053d6d8d1076398.tar.gz
gdb-ba2c2b1c42378e876c8565de3053d6d8d1076398.tar.bz2
* ldlang.c (size_input_section): count the sizes of all sections
we allocate.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 72e7ead..5a9b0b5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
+
+ * ldlang.c (size_input_section): count the sizes of all sections
+ we allocate.
+
Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 87a492f..ed152ab 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1429,7 +1429,7 @@ DEFUN (size_input_section, (this_ptr, output_section_statement, fill,
needed for the output stage. Only remember the size of sections
which we will actually allocate */
if (((i->flags &
- (SEC_HAS_CONTENTS | SEC_LOAD)) == (SEC_HAS_CONTENTS | SEC_LOAD))
+ (SEC_HAS_CONTENTS | SEC_ALLOC)) == (SEC_HAS_CONTENTS | SEC_ALLOC))
&& (bfd_get_section_size_before_reloc (i) > largest_section))
{
largest_section = bfd_get_section_size_before_reloc (i);