diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-04-06 00:53:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-04-06 00:53:41 +0000 |
commit | 46bc1bf6ba9884c991be5a82a64ccb6dac7206cf (patch) | |
tree | 911d9229361010a904b8a0030a99b8d67bd7ad43 /bfd/seclet.c | |
parent | d802b9481b4736694b3210d50bd560d64bb21fd9 (diff) | |
download | gdb-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.c | 5 |
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, |