* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
This commit is contained in:
parent
97a4bb053f
commit
e1ee1229a2
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue