mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
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:
@ -656,7 +656,8 @@ elf_object_p (abfd)
|
||||
|
||||
/* If the section is loaded, but not page aligned, clear
|
||||
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_addr - i_shdrp[shindex].sh_offset)
|
||||
% ebd->maxpagesize)
|
||||
|
Reference in New Issue
Block a user