memory size for the alignment of a SEC_ALLOC section, not just a
SEC_LOAD section.
+Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * elf.c (assign_file_positions_for_segments): Adjust the segment
+ memory size for the alignment of a SEC_ALLOC section, not just a
+ SEC_LOAD section.
+
Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68klinux.c: New file.
/* The section VMA must equal the file position modulo
the page size. */
- if ((flags & SEC_LOAD) != 0)
+ if ((flags & SEC_ALLOC) != 0)
{
adjust = (sec->vma - off) % bed->maxpagesize;
if (adjust != 0)
abort ();
p->p_memsz += adjust;
if ((flags & SEC_LOAD) != 0)
- p->p_filesz += adjust;
- off += adjust;
+ {
+ p->p_filesz += adjust;
+ off += adjust;
+ }
}
}