diff options
author | Richard Henderson <rth@redhat.com> | 1999-07-13 17:30:21 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-07-13 17:30:21 +0000 |
commit | e1ee1229a2384e923b73ef5943141fa39d51fdff (patch) | |
tree | 606bad0342361c22d99c45f5d1b8b83339b7ea4f /bfd | |
parent | 97a4bb053f80d5c0aaf586131e82b8593443d320 (diff) | |
download | gdb-e1ee1229a2384e923b73ef5943141fa39d51fdff.zip gdb-e1ee1229a2384e923b73ef5943141fa39d51fdff.tar.gz gdb-e1ee1229a2384e923b73ef5943141fa39d51fdff.tar.bz2 |
* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 1 insertions, 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 |