aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-10-25 15:37:47 +0000
committerIan Lance Taylor <ian@airs.com>1995-10-25 15:37:47 +0000
commit28a0c103996c49ab0784f19e3813f3b6ac4a6619 (patch)
tree070da518b79f3e5e634784b3a71946271262db3b /bfd/coffcode.h
parente54bf1c1a4f0c267c2903e5a6c5cc64219ad4f62 (diff)
downloadgdb-28a0c103996c49ab0784f19e3813f3b6ac4a6619.zip
gdb-28a0c103996c49ab0784f19e3813f3b6ac4a6619.tar.gz
gdb-28a0c103996c49ab0784f19e3813f3b6ac4a6619.tar.bz2
* xcofflink.c: Extensive changes to support linking shared objects
and generating a .loader section. * libcoff-in.h (struct xcoff_tdata): Add import_file_id field. (struct xcoff_section_tdata): Add first_symndx, last_symndx, and ldrel_count fields. * libcoff.h: Rebuild. * coff-rs6000.c (xcoff_howto_table): Correct reloc names. * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD is set. * bfd-in.h (bfd_xcoff_import_symbol): Declare. (bfd_xcoff_export_symbol): Declare. (bfd_xcoff_size_dynamic_sections): Declare. * bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 3d9d288..e3eeb13 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -477,6 +477,10 @@ styp_to_sec_flags (abfd, hdr, name)
sec_flags |= SEC_DEBUGGING;
#endif
}
+ else if (styp_flags & STYP_PAD)
+ {
+ sec_flags = 0;
+ }
else if (strcmp (name, _TEXT) == 0)
{
if (sec_flags & SEC_NEVER_LOAD)
@@ -2299,6 +2303,8 @@ coff_write_object_contents (abfd)
if (bss_sec)
{
internal_a.bsize = bfd_get_section_size_before_reloc (bss_sec);
+ if (internal_a.bsize && bss_sec->vma < internal_a.data_start)
+ internal_a.data_start = bss_sec->vma;
}
internal_a.entry = bfd_get_start_address (abfd);