Reindent assign_file_positions_for_non_load_sections

* elf.c (assign_file_positions_for_non_load_sections): Reindent.
This commit is contained in:
H.J. Lu 2012-06-11 16:48:35 +00:00
parent be01b34487
commit f3944f7224
2 changed files with 13 additions and 8 deletions

View 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.

View File

@ -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
{