mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user