diff options
author | Ian Lance Taylor <iant@google.com> | 2006-09-29 19:58:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-09-29 19:58:17 +0000 |
commit | 61ba1cf93601b0a0877a8ade94ba3c674a09f77e (patch) | |
tree | ffa744ec1dffd7f2dae13150b1dd7784728ed0a4 /gold/fileread.cc | |
parent | 4dba4b2419ccdbf48fd016edb7e0e10016897827 (diff) | |
download | gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.zip gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.tar.gz gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.tar.bz2 |
Snapshot. Now able to produce a minimal executable which actually
runs.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index a92da9d..987408e 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -256,15 +256,15 @@ Input_file::open(const General_options& options, const Dirsearch& dirpath) else { std::string n1("lib"); - n1 += this->input_argument_.lib_basename(); + n1 += this->input_argument_.name(); std::string n2; - if (options.is_static()) + if (!options.is_static()) n2 = n1 + ".so"; n1 += ".a"; name = dirpath.find(n1, n2); if (name.empty()) { - fprintf(stderr, _("%s: cannot find %s"), program_name, + fprintf(stderr, _("%s: cannot find %s\n"), program_name, this->input_argument_.name()); gold_exit(false); } @@ -272,8 +272,8 @@ Input_file::open(const General_options& options, const Dirsearch& dirpath) if (!this->file_.open(name)) { - fprintf(stderr, _("%s: cannot open %s: %s"), program_name, name.c_str(), - strerror(errno)); + fprintf(stderr, _("%s: cannot open %s: %s\n"), program_name, + name.c_str(), strerror(errno)); gold_exit(false); } } |