From 2ae0844c54c3f0b7057547a5b41b2399be5683ba Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 9 Jun 2005 19:22:15 +0000 Subject: [PATCH] * coffcode.h (sec_to_styp_flags): Set appropriate section flags when either SEC_ALLOC OR SEC_LOAD. --- bfd/ChangeLog | 5 +++++ bfd/coffcode.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 45627cb2388..0fab521198a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-06-09 Christopher Faylor + + * coffcode.h (sec_to_styp_flags): Set appropriate section flags when + either SEC_ALLOC OR SEC_LOAD. + 2005-06-09 Christopher Faylor * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f6f1bc903b0..917c0e4522b 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -560,7 +560,7 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags) /* skip LINK_DUPLICATES */ /* skip LINKER_CREATED */ - if (sec_flags & SEC_ALLOC) + if (sec_flags & (SEC_ALLOC | SEC_LOAD)) { /* For now, the read/write bits are mapped onto SEC_READONLY, even though the semantics don't quite match. The bits from the input -- 2.30.2