Take into account MEMORY regions when creating a segment map.

This commit is contained in:
Nick Clifton
2007-02-21 16:43:50 +00:00
parent 7885946881
commit 2889e75bfb
8 changed files with 70 additions and 1 deletions

View File

@@ -3953,6 +3953,10 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
new_segment = FALSE;
}
/* Allow interested parties a chance to override our decision. */
if (last_hdr && info->callbacks->override_segment_assignment)
new_segment = info->callbacks->override_segment_assignment (info, abfd, hdr, last_hdr, new_segment);
if (! new_segment)
{
if ((hdr->flags & SEC_READONLY) == 0)