* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.

This commit is contained in:
Richard Henderson 1999-07-13 17:30:21 +00:00
parent 97a4bb053f
commit e1ee1229a2
1 changed files with 1 additions and 3 deletions

View File

@ -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