Reindent assign_file_positions_for_non_load_sections
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jun 2012 16:48:35 +0000 (16:48 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jun 2012 16:48:35 +0000 (16:48 +0000)
* elf.c (assign_file_positions_for_non_load_sections): Reindent.

bfd/ChangeLog
bfd/elf.c

index 0f02286377384ecd644412385646b7d68c96374c..220afe3a4fc0b168b2e101548d97ae75fd36a8b8 100644 (file)
@@ -1,3 +1,7 @@
+2012-06-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (assign_file_positions_for_non_load_sections): Reindent.
+
 2012-06-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
index 6c923d92764402547a32362b694311e0b950c43d..6de314bebd770f3184a6c3c1f519ac8acd8fe522 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4949,14 +4949,15 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
              else
                abort ();
              p->p_memsz = p->p_filesz;
-          /* Preserve the alignment and flags if they are valid. The gold
-             linker generates RW/4 for the PT_GNU_RELRO section. It is better
-             for objcopy/strip to honor these attributes otherwise gdb will
-             choke when using separate debug files. */
-          if (!m->p_align_valid)
-            p->p_align = 1;
-          if (!m->p_flags_valid)
-            p->p_flags = (lp->p_flags & ~PF_W);
+             /* Preserve the alignment and flags if they are valid. The
+                gold linker generates RW/4 for the PT_GNU_RELRO section.
+                It is better for objcopy/strip to honor these attributes
+                otherwise gdb will choke when using separate debug files.
+              */
+             if (!m->p_align_valid)
+               p->p_align = 1;
+             if (!m->p_flags_valid)
+               p->p_flags = (lp->p_flags & ~PF_W);
            }
          else
            {