aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index b27a4b4..9291b98 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2558,9 +2558,7 @@ assign_file_positions_for_segments (abfd)
elf_sort_sections);
p->p_type = m->p_type;
-
- if (m->p_flags_valid)
- p->p_flags |= m->p_flags;
+ p->p_flags = m->p_flags;
if (p->p_type == PT_LOAD
&& m->count > 0