aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-04-06 00:53:41 +0000
committerIan Lance Taylor <ian@airs.com>1993-04-06 00:53:41 +0000
commit46bc1bf6ba9884c991be5a82a64ccb6dac7206cf (patch)
tree911d9229361010a904b8a0030a99b8d67bd7ad43 /bfd/seclet.c
parentd802b9481b4736694b3210d50bd560d64bb21fd9 (diff)
downloadgdb-46bc1bf6ba9884c991be5a82a64ccb6dac7206cf.zip
gdb-46bc1bf6ba9884c991be5a82a64ccb6dac7206cf.tar.gz
gdb-46bc1bf6ba9884c991be5a82a64ccb6dac7206cf.tar.bz2
These changes make shared library support work again on 386 COFF
systems. * coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a STYP_NOLOAD | STYP_BSS section. Don't set SEC_NEVER_LOAD for a STYP_INFO section. (coff_compute_section_file_positions): Force vma and lma of _LIB section to be zero. (coff_set_section_contents): Count number of entries in new lma field, not in vma. * coffgen.c (make_a_section_from_file): Force lineno_count of SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the SCO 3.2v4 shared library. * seclet.c (rel): Copy over any section with contents, not just loadable sections. * coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated symbol.
Diffstat (limited to 'bfd/seclet.c')
-rw-r--r--bfd/seclet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/seclet.c b/bfd/seclet.c
index 5b4d764..5dcc59a 100644
--- a/bfd/seclet.c
+++ b/bfd/seclet.c
@@ -79,10 +79,7 @@ DEFUN(rel,(abfd, seclet, output_section, data, relocateable),
PTR data AND
boolean relocateable)
{
-
- if (output_section->flags & SEC_HAS_CONTENTS
- && !(output_section->flags & SEC_NEVER_LOAD)
- && (output_section->flags & SEC_LOAD)
+ if ((output_section->flags & SEC_HAS_CONTENTS) != 0
&& seclet->size)
{
data = (PTR) bfd_get_relocated_section_contents(abfd, seclet, data,