From 28a0c103996c49ab0784f19e3813f3b6ac4a6619 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor <ian@airs.com> Date: Wed, 25 Oct 1995 15:37:47 +0000 Subject: * 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. --- bfd/coffcode.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bfd/coffcode.h') 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); -- cgit v1.1