aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-04-26 21:28:49 +0000
committerKen Raeburn <raeburn@cygnus>1994-04-26 21:28:49 +0000
commitfb51366fe8f21e74072763d781fd43980dd66d2f (patch)
tree0f2c84c7c56188c41a889033244ada32fe2f1c83 /gas/config
parentb46f83f2d92edf22f771477e62741fbbac8ab439 (diff)
downloadgdb-fb51366fe8f21e74072763d781fd43980dd66d2f.zip
gdb-fb51366fe8f21e74072763d781fd43980dd66d2f.tar.gz
gdb-fb51366fe8f21e74072763d781fd43980dd66d2f.tar.bz2
* config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
also before setting STYP_NOLOAD for .bss section.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-coffbfd.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 46c2302..1bb00f3 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -513,13 +513,18 @@ DEFUN (fill_section, (abfd, h, file_cursor),
{
s->s_scnptr = 0;
s->s_flags |= STYP_BSS;
+
+ /* @@ Should make the i386 and a29k coff targets define
+ COFF_NOLOAD_PROBLEM, and have only one test here. */
#ifndef TC_I386
#ifndef TC_A29K
- /* Apparently the SVR3 linker is confused by noload
- sections. So is the UDI mondfe program. */
+#ifndef COFF_NOLOAD_PROBLEM
+ /* Apparently the SVR3 linker (and exec syscall) and UDI
+ mondfe progrem are confused by noload sections. */
s->s_flags |= STYP_NOLOAD;
#endif
#endif
+#endif
}
else if (strcmp (s->s_name, ".lit") == 0)
s->s_flags = STYP_LIT | STYP_TEXT;