diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-06-11 16:48:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-06-11 16:48:35 +0000 |
commit | a1a745212a4a60b43ad05da18356aef204e22443 (patch) | |
tree | 6398223dabfa7b9413ad3ffd7cc8094f6a4861d6 /bfd/elf.c | |
parent | d0400ea9248d9b16776f5f8ed66ca27ae4942614 (diff) | |
download | binutils-redhat-a1a745212a4a60b43ad05da18356aef204e22443.tar.gz |
Reindent assign_file_positions_for_non_load_sections
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 { |