diff options
author | Alan Modra <amodra@bigpond.net.au> | 2013-10-17 10:05:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2013-10-17 10:05:38 +0000 |
commit | 3b1c2e9a86a722fa8c770bbf2dfcc9c20ee1d41f (patch) | |
tree | f7361d2fe5c7b6f7c82c757f7e04852c286ae5cf /bfd/elf.c | |
parent | 82878411a4fd3eb1d8c17a9e819eae1a45d2a651 (diff) | |
download | binutils-redhat-3b1c2e9a86a722fa8c770bbf2dfcc9c20ee1d41f.tar.gz |
PR 16056
* elf.c (copy_elf_program_header): Only consider SEC_ALLOC sections
when finding lowest_section.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6226,12 +6226,13 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd) if (ELF_SECTION_IN_SEGMENT (this_hdr, segment)) { map->sections[isec++] = section->output_section; - if (section->lma < lowest_section->lma) - lowest_section = section; if ((section->flags & SEC_ALLOC) != 0) { bfd_vma seg_off; + if (section->lma < lowest_section->lma) + lowest_section = section; + /* Section lmas are set up from PT_LOAD header p_paddr in _bfd_elf_make_section_from_shdr. If this header has a p_paddr that disagrees |