* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
This commit is contained in:
parent
97a4bb053f
commit
e1ee1229a2
|
@ -2560,9 +2560,7 @@ assign_file_positions_for_segments (abfd)
|
||||||
p->p_type = m->p_type;
|
p->p_type = m->p_type;
|
||||||
|
|
||||||
if (m->p_flags_valid)
|
if (m->p_flags_valid)
|
||||||
p->p_flags = m->p_flags;
|
p->p_flags |= m->p_flags;
|
||||||
else
|
|
||||||
p->p_flags = 0;
|
|
||||||
|
|
||||||
if (p->p_type == PT_LOAD
|
if (p->p_type == PT_LOAD
|
||||||
&& m->count > 0
|
&& m->count > 0
|
||||||
|
|
Loading…
Reference in New Issue