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 | 0472f4e84f43475b667db3a50a921601c1c27fd5 (patch) | |
tree | c935b42cb1f61239993a9fb782ce2f156db5b9d4 /bfd | |
parent | ebceccdf9f20091dc910840880552156c34644e1 (diff) | |
download | gdb-0472f4e84f43475b667db3a50a921601c1c27fd5.tar.gz |
Reindent assign_file_positions_for_non_load_sections
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf.c | 17 |
2 files changed, 13 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0f022863773..220afe3a4fc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 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. 2012-06-06 Alan Modra <amodra@gmail.com> 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 { |