OSDN Git Service

* elf.c (assign_file_positions_for_segments): Thinko last change.
authorrth <rth>
Tue, 13 Jul 1999 20:10:24 +0000 (20:10 +0000)
committerrth <rth>
Tue, 13 Jul 1999 20:10:24 +0000 (20:10 +0000)
        Always overwrite p_flags.

bfd/ChangeLog
bfd/elf.c

index f359ff7..230dbca 100644 (file)
@@ -1,5 +1,10 @@
 1999-07-13  Richard Henderson  <rth@cygnus.com>
 
+       * elf.c (assign_file_positions_for_segments): Thinko last change.
+       Always overwrite p_flags.
+
+1999-07-13  Richard Henderson  <rth@cygnus.com>
+
        * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
        * elflink.c (_bfd_elf_create_dynamic_sections): Only create
        .dynbss and .rel[a].bss if want_dynbss.
index b27a4b4..9291b98 100644 (file)
--- 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