* elf.c (map_sections_to_segments): Correct test for start of
writable section in the same page as end of read-only section.
This commit is contained in:
parent
c02920230d
commit
b89fe0ee4b
|
@ -1,3 +1,8 @@
|
||||||
|
2002-09-28 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf.c (map_sections_to_segments): Correct test for start of
|
||||||
|
writable section in the same page as end of read-only section.
|
||||||
|
|
||||||
2002-09-27 Matt Thomas <matt@3am-software.com>
|
2002-09-27 Matt Thomas <matt@3am-software.com>
|
||||||
|
|
||||||
* elf32-vax.c (elf_vax_check_relocs): Remove unused
|
* elf32-vax.c (elf_vax_check_relocs): Remove unused
|
||||||
|
|
|
@ -3317,8 +3317,9 @@ map_sections_to_segments (abfd)
|
||||||
}
|
}
|
||||||
else if (! writable
|
else if (! writable
|
||||||
&& (hdr->flags & SEC_READONLY) == 0
|
&& (hdr->flags & SEC_READONLY) == 0
|
||||||
&& (BFD_ALIGN (last_hdr->lma + last_hdr->_raw_size, maxpagesize)
|
&& (((last_hdr->lma + last_hdr->_raw_size - 1)
|
||||||
== hdr->lma))
|
& ~(maxpagesize - 1))
|
||||||
|
!= (hdr->lma & ~(maxpagesize - 1))))
|
||||||
{
|
{
|
||||||
/* We don't want to put a writable section in a read only
|
/* We don't want to put a writable section in a read only
|
||||||
segment, unless they are on the same page in memory
|
segment, unless they are on the same page in memory
|
||||||
|
|
Loading…
Reference in New Issue