aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-17 18:12:17 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-17 18:12:17 +0000
commit5bcb7f28e189de403b9efaffe57fec3221f9d16e (patch)
treeea8d833210cf45dde1f377c32ffaad66ac236683 /ld/ldlang.c
parent7681bc7b30b1ec5006484d892121ce6c0059442a (diff)
downloadgdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.zip
gdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.tar.gz
gdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.tar.bz2
* ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
bfd_set_error and new error names.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 52f371a..e8be015 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -867,7 +867,7 @@ open_output (name)
if (output == (bfd *) NULL)
{
- if (bfd_error == invalid_target)
+ if (bfd_get_error () == bfd_error_invalid_target)
{
einfo ("%P%F: target %s not found\n", output_target);
}
@@ -1792,10 +1792,10 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax)
i->owner->symcount = is->ifile->symbol_count;
}
- bfd_error = no_error;
+ bfd_set_error (bfd_error_no_error);
if (bfd_relax_section (i->owner, i, &link_info, is->ifile->asymbols))
had_relax = true;
- else if (bfd_error != no_error)
+ else if (bfd_get_error () != bfd_error_no_error)
einfo ("%P%F: can't relax section: %E");
}
else {