aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-06-07 01:32:45 +0000
committerSteve Chamberlain <steve@cygnus>1991-06-07 01:32:45 +0000
commit357a1f38a539d43612122eb1c1842fd84859b165 (patch)
treea1cf61527f416bab396b7348df5218ee86756540 /ld
parent50a52c1a15d2bf6cf3d8c6355e833d5dba07d63a (diff)
downloadgdb-357a1f38a539d43612122eb1c1842fd84859b165.zip
gdb-357a1f38a539d43612122eb1c1842fd84859b165.tar.gz
gdb-357a1f38a539d43612122eb1c1842fd84859b165.tar.bz2
*** empty log message ***
Diffstat (limited to 'ld')
-rw-r--r--ld/ldlang.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index cabcf9de..00d1e16 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -486,6 +486,11 @@ DEFUN(init_os,(s),
ldmalloc((bfd_size_type)(sizeof(section_userdata_type)));
s->bfd_section = bfd_make_section(output_bfd, s->name);
+ if (s->bfd_section == (asection *)NULL) {
+ info("%P%F output format %s cannot represent section called %s\n",
+ output_bfd->xvec->name,
+ s->name);
+ }
s->bfd_section->output_section = s->bfd_section;
s->bfd_section->flags = SEC_NO_FLAGS;
/* We initialize an output sections output offset to minus its own */