aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-01-16 01:28:21 +0000
committerAlan Modra <amodra@gmail.com>2008-01-16 01:28:21 +0000
commit14ac84b444873e8a901fa46c8fd11f2ae182843d (patch)
tree42835da289fc79296f2cd218001a3e987d238372 /ld/ldlang.c
parent662fb31bbc0c190ce42fc4cb5d1a2f7db1111e6a (diff)
downloadgdb-14ac84b444873e8a901fa46c8fd11f2ae182843d.zip
gdb-14ac84b444873e8a901fa46c8fd11f2ae182843d.tar.gz
gdb-14ac84b444873e8a901fa46c8fd11f2ae182843d.tar.bz2
* ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 8aee9a3..c5ad76d 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4702,8 +4702,7 @@ lang_size_sections_1
should have space allocated to it, unless the
user has explicitly stated that the section
should never be loaded. */
- if (!(output_section_statement->flags
- & (SEC_NEVER_LOAD | SEC_ALLOC)))
+ if (!(output_section_statement->flags & SEC_NEVER_LOAD))
output_section_statement->bfd_section->flags |= SEC_ALLOC;
}
dot = newdot;