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> 2012-06-11 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_map_sections_to_segments): Reindent. * 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 else
abort (); abort ();
p->p_memsz = p->p_filesz; p->p_memsz = p->p_filesz;
/* Preserve the alignment and flags if they are valid. The gold /* Preserve the alignment and flags if they are valid. The
linker generates RW/4 for the PT_GNU_RELRO section. It is better gold linker generates RW/4 for the PT_GNU_RELRO section.
for objcopy/strip to honor these attributes otherwise gdb will It is better for objcopy/strip to honor these attributes
choke when using separate debug files. */ otherwise gdb will choke when using separate debug files.
if (!m->p_align_valid) */
p->p_align = 1; if (!m->p_align_valid)
if (!m->p_flags_valid) p->p_align = 1;
p->p_flags = (lp->p_flags & ~PF_W); if (!m->p_flags_valid)
p->p_flags = (lp->p_flags & ~PF_W);
} }
else else
{ {