From ba2c2b1c42378e876c8565de3053d6d8d1076398 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 15 Oct 1992 22:22:08 +0000 Subject: * ldlang.c (size_input_section): count the sizes of all sections we allocate. --- ld/ldlang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/ldlang.c') 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); -- cgit v1.1