aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-02-21 16:43:50 +0000
committerNick Clifton <nickc@redhat.com>2007-02-21 16:43:50 +0000
commit2889e75bfb63b5638dffb3bf9ae598e85af86af9 (patch)
tree9168e9b39e394aadd1093391a9a676fdec981099 /bfd/elf.c
parent788594688132bc8f503e1b1345006e321a19c09a (diff)
downloadgdb-2889e75bfb63b5638dffb3bf9ae598e85af86af9.zip
gdb-2889e75bfb63b5638dffb3bf9ae598e85af86af9.tar.gz
gdb-2889e75bfb63b5638dffb3bf9ae598e85af86af9.tar.bz2
Take into account MEMORY regions when creating a segment map.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 460502c..95f3401 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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)