* elf-bfd.h (struct elf_backend_data): Add minpagesize.
* elf32-arm.c (ELF_MINPAGESIZE): Define. * elf32-ppc.c (ELF_MINPAGESIZE): Define. * elfcode.h (elf_object_p): Use minpagesize instead of maxpagesize. * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE. (elfNN_bed): Include ELF_MINPAGESIZE.
This commit is contained in:
parent
319850b451
commit
b134237006
6 changed files with 25 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/* ELF executable support for BFD.
|
||||
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
||||
2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
Written by Fred Fish @ Cygnus Support, from information published
|
||||
in "UNIX System V Release 4, Programmers Guide: ANSI C and
|
||||
|
@ -680,7 +680,7 @@ elf_object_p (bfd *abfd)
|
|||
&& (i_shdrp[shindex].sh_flags & SHF_ALLOC) != 0
|
||||
&& i_shdrp[shindex].sh_type != SHT_NOBITS
|
||||
&& (((i_shdrp[shindex].sh_addr - i_shdrp[shindex].sh_offset)
|
||||
% ebd->maxpagesize)
|
||||
% ebd->minpagesize)
|
||||
!= 0))
|
||||
abfd->flags &= ~D_PAGED;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue