aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-05-10 18:29:19 +0000
committerIan Lance Taylor <ian@airs.com>1994-05-10 18:29:19 +0000
commitc16313f06cf9273b61a425a1cd3b9e5d04058a1b (patch)
tree9641300155bc095b6669e07c8da7bc5e4b704fad /bfd/ecoff.c
parent39a20ec6777401cc752d7766e0660cddacedc758 (diff)
downloadgdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.zip
gdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.tar.gz
gdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.tar.bz2
* section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
SEC_SHARED_LIBRARY for clarity. Changed all uses. * bfd-in2.h: Rebuilt. * coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is set, set STYP_NOLOAD. * coffgen.c (coff_section_from_bfd_index): Don't get an assertion failure because of a bad shared library.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index ce4d5f6..ba5214c 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -174,7 +174,7 @@ ecoff_new_section_hook (abfd, section)
else if (strcmp (section->name, _LIB) == 0)
{
/* An Irix 4 shared libary. */
- section->flags |= SEC_SHARED_LIBRARY;
+ section->flags |= SEC_COFF_SHARED_LIBRARY;
}
/* Probably any other section name is SEC_NEVER_LOAD, but I'm
@@ -356,7 +356,7 @@ ecoff_styp_to_sec_flags (abfd, hdr)
|| (styp_flags & STYP_ECOFF_FINI))
{
if (sec_flags & SEC_NEVER_LOAD)
- sec_flags |= SEC_CODE | SEC_SHARED_LIBRARY;
+ sec_flags |= SEC_CODE | SEC_COFF_SHARED_LIBRARY;
else
sec_flags |= SEC_CODE | SEC_LOAD | SEC_ALLOC;
}
@@ -367,7 +367,7 @@ ecoff_styp_to_sec_flags (abfd, hdr)
|| styp_flags == STYP_XDATA)
{
if (sec_flags & SEC_NEVER_LOAD)
- sec_flags |= SEC_DATA | SEC_SHARED_LIBRARY;
+ sec_flags |= SEC_DATA | SEC_COFF_SHARED_LIBRARY;
else
sec_flags |= SEC_DATA | SEC_LOAD | SEC_ALLOC;
if ((styp_flags & STYP_RDATA)
@@ -391,7 +391,7 @@ ecoff_styp_to_sec_flags (abfd, hdr)
}
else if (styp_flags & STYP_ECOFF_LIB)
{
- sec_flags |= SEC_SHARED_LIBRARY;
+ sec_flags |= SEC_COFF_SHARED_LIBRARY;
}
else
{