aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-04-18 02:21:27 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-04-18 02:21:27 +0000
commitb9af77f58f609c230732b9acdbf1a6f747766733 (patch)
tree0cb26da3871aa90de804d13bc8089d3970d61b79 /bfd/coffcode.h
parent63fa1674919c94757f30a6e050f015eba30ee229 (diff)
downloadgdb-b9af77f58f609c230732b9acdbf1a6f747766733.zip
gdb-b9af77f58f609c230732b9acdbf1a6f747766733.tar.gz
gdb-b9af77f58f609c230732b9acdbf1a6f747766733.tar.bz2
Clean up load page support for tic54x.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 40ba6ae..a6e8b08 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1531,6 +1531,10 @@ coff_set_alignment_hook (abfd, section, scnhdr)
i = COFF_DECODE_ALIGNMENT(hdr->s_flags);
#endif
section->alignment_power = i;
+
+#ifdef coff_set_section_load_page
+ coff_set_section_load_page (section, hdr->s_page);
+#endif
}
#else /* ! COFF_ALIGN_IN_SECTION_HEADER */
@@ -3249,6 +3253,9 @@ coff_write_object_contents (abfd)
section.s_vaddr = current->vma;
section.s_paddr = current->lma;
section.s_size = current->_raw_size;
+#ifdef coff_get_section_load_page
+ section.s_page = coff_get_section_load_page (current);
+#endif
#ifdef COFF_WITH_PE
section.s_paddr = 0;