diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-05-17 20:25:55 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-17 20:25:55 +0000 |
commit | 881d3cd7545c511c99f208f1eb518582b16e67a9 (patch) | |
tree | 3fc94ba4a94bacfa87f11131c74f6278d5a192a1 | |
parent | 1966aefbbe2e442cf8589e1b64e889fbc6e60272 (diff) | |
parent | 21efffa54e136e1b45d8016339bda25690b2b7fd (diff) | |
download | toolchain_binutils-881d3cd7545c511c99f208f1eb518582b16e67a9.zip toolchain_binutils-881d3cd7545c511c99f208f1eb518582b16e67a9.tar.gz toolchain_binutils-881d3cd7545c511c99f208f1eb518582b16e67a9.tar.bz2 |
GOLD/DWP: exit without segfault if the binary is not built with debug fission.
am: 21efffa54e
* commit '21efffa54e136e1b45d8016339bda25690b2b7fd':
GOLD/DWP: exit without segfault if the binary is not built with debug fission.
Change-Id: I62c6bbf195f2b6cf8fa18dfb21ddf0bd3c9d562f
-rw-r--r-- | binutils-2.25/gold/dwp.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils-2.25/gold/dwp.cc b/binutils-2.25/gold/dwp.cc index 121f37b..9eef68a 100644 --- a/binutils-2.25/gold/dwp.cc +++ b/binutils-2.25/gold/dwp.cc @@ -2427,6 +2427,10 @@ main(int argc, char** argv) if (exe_filename == NULL && files.empty()) gold_fatal(_("no input files and no executable specified")); + // If there are no DWO files, there is nothing to do. + if (files.empty()) + return EXIT_SUCCESS; + if (verify_only) { // Get list of DWO files in the DWP file and compare with |