From: H.J. Lu Date: Mon, 11 Jun 2012 16:48:35 +0000 (+0000) Subject: Reindent assign_file_positions_for_non_load_sections X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3944f72246f5b88b62d3d4158d62e4e35ed82eb;p=binutils-gdb.git Reindent assign_file_positions_for_non_load_sections * elf.c (assign_file_positions_for_non_load_sections): Reindent. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0f022863773..220afe3a4fc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2012-06-11 H.J. Lu + + * elf.c (assign_file_positions_for_non_load_sections): Reindent. + 2012-06-11 H.J. Lu * elf.c (_bfd_elf_map_sections_to_segments): Reindent. diff --git a/bfd/elf.c b/bfd/elf.c index 6c923d92764..6de314bebd7 100644 --- 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 {