diff options
author | Nick Clifton <nickc@redhat.com> | 2008-07-24 07:51:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-07-24 07:51:25 +0000 |
commit | 4ff738568a8db39bbdce0b660f8065740c67df18 (patch) | |
tree | 206385d89514b79b48c4620ee4e53dce2f6c6413 /bfd/elf.c | |
parent | aa86f06bb6dbe70fb2b8b65ff54e9304c7b5eed7 (diff) | |
download | gdb-4ff738568a8db39bbdce0b660f8065740c67df18.zip gdb-4ff738568a8db39bbdce0b660f8065740c67df18.tar.gz gdb-4ff738568a8db39bbdce0b660f8065740c67df18.tar.bz2 |
* elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
error assigning sections to segments.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3728,7 +3728,7 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info) else if ((BFD_ALIGN (last_hdr->lma + last_size, maxpagesize) + maxpagesize > last_hdr->lma) && (BFD_ALIGN (last_hdr->lma + last_size, maxpagesize) + maxpagesize - < hdr->lma)) + <= hdr->lma)) { /* If putting this section in this segment would force us to skip a page in the segment, then we need a new segment. */ |