From: Richard Henderson Date: Tue, 13 Jul 1999 17:30:21 +0000 (+0000) Subject: * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags. X-Git-Tag: gdb-1999-07-19~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1ee1229a2384e923b73ef5943141fa39d51fdff;p=platform%2Fupstream%2Fbinutils.git * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags. --- diff --git a/bfd/elf.c b/bfd/elf.c index 025fb8e..b27a4b4 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2560,9 +2560,7 @@ assign_file_positions_for_segments (abfd) p->p_type = m->p_type; if (m->p_flags_valid) - p->p_flags = m->p_flags; - else - p->p_flags = 0; + p->p_flags |= m->p_flags; if (p->p_type == PT_LOAD && m->count > 0