aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-06-11 16:48:35 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-06-11 16:48:35 +0000
commitf3944f72246f5b88b62d3d4158d62e4e35ed82eb (patch)
tree89b96388cc44ec55422f3ea12ad02311c788d662 /bfd/elf.c
parentbe01b34487d7ea31b1b7298dac40ac3b45855fc3 (diff)
downloadgdb-f3944f72246f5b88b62d3d4158d62e4e35ed82eb.zip
gdb-f3944f72246f5b88b62d3d4158d62e4e35ed82eb.tar.gz
gdb-f3944f72246f5b88b62d3d4158d62e4e35ed82eb.tar.bz2
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.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 6c923d9..6de314b 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
{