summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-07-24 07:51:25 +0000
committerNick Clifton <nickc@redhat.com>2008-07-24 07:51:25 +0000
commit3064c23fcfec2a170dd1c86dc0955ff14c3d6487 (patch)
tree5849cfab9711a66614aa2b16843a5206018ed2a0 /bfd/elf.c
parent5561b4304c2069648004c333ea0cdb58c172af53 (diff)
downloadgdb-3064c23fcfec2a170dd1c86dc0955ff14c3d6487.tar.gz
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index a7cc4a596f6..e24b04e566c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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. */