aboutsummaryrefslogtreecommitdiff
path: root/ld/relax.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-10-25 20:10:35 +0000
committerIan Lance Taylor <ian@airs.com>1993-10-25 20:10:35 +0000
commitdb4b5ad081dd5aa728663efeba30dc2a05cb09a0 (patch)
treec54bdbdcbc455b3e5b944545dadb94bb95d334a3 /ld/relax.c
parentdf34342bde777c2565334574e0cbf3872b8f51e0 (diff)
downloadgdb-db4b5ad081dd5aa728663efeba30dc2a05cb09a0.zip
gdb-db4b5ad081dd5aa728663efeba30dc2a05cb09a0.tar.gz
gdb-db4b5ad081dd5aa728663efeba30dc2a05cb09a0.tar.bz2
* relax.c (write_relax): Check return value of bfd_seclet_link.
Diffstat (limited to 'ld/relax.c')
-rw-r--r--ld/relax.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/ld/relax.c b/ld/relax.c
index af96f8a..eb3f6e0 100644
--- a/ld/relax.c
+++ b/ld/relax.c
@@ -185,19 +185,13 @@ write_relax (output_bfd, data, relocateable)
boolean relocateable;
{
/* Tie up all the statements to generate an output bfd structure which
- bfd can mull over */
-
-
+ bfd can mull over */
lang_for_each_statement (build_it);
- bfd_seclet_link (output_bfd, data, relocateable);
-
+ if (bfd_seclet_link (output_bfd, data, relocateable) == false)
+ einfo ("%F%P: %B: %E\n", output_bfd);
}
-
-
-
-
/* See if we can change the size of this section by shrinking the
relocations in it. If this happens, then we'll have to renumber the
symbols in it, and shift around the data too.