2001-10-19 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't clear D_PAGED if the section size is empty.
This commit is contained in:
parent
59d28a9467
commit
e0740195c7
@ -1,3 +1,8 @@
|
|||||||
|
2001-10-19 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* elfcode.h (elf_object_p): Don't clear D_PAGED if the section
|
||||||
|
size is empty.
|
||||||
|
|
||||||
2001-10-18 H.J. Lu <hjl@gnu.org>
|
2001-10-18 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
|
* elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
|
||||||
|
@ -656,7 +656,8 @@ elf_object_p (abfd)
|
|||||||
|
|
||||||
/* If the section is loaded, but not page aligned, clear
|
/* If the section is loaded, but not page aligned, clear
|
||||||
D_PAGED. */
|
D_PAGED. */
|
||||||
if ((i_shdrp[shindex].sh_flags & SHF_ALLOC) != 0
|
if (i_shdrp[shindex].sh_size != 0
|
||||||
|
&& (i_shdrp[shindex].sh_flags & SHF_ALLOC) != 0
|
||||||
&& i_shdrp[shindex].sh_type != SHT_NOBITS
|
&& i_shdrp[shindex].sh_type != SHT_NOBITS
|
||||||
&& (((i_shdrp[shindex].sh_addr - i_shdrp[shindex].sh_offset)
|
&& (((i_shdrp[shindex].sh_addr - i_shdrp[shindex].sh_offset)
|
||||||
% ebd->maxpagesize)
|
% ebd->maxpagesize)
|
||||||
|
Loading…
Reference in New Issue
Block a user