summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2016-05-17 20:29:58 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-05-17 20:29:58 +0000
commitcc160c2199d6d3d8b64dcc578ece5eb5e75a4b80 (patch)
tree3fc94ba4a94bacfa87f11131c74f6278d5a192a1
parent2b51ecbab101466172f47f38953929b1653210c1 (diff)
parent881d3cd7545c511c99f208f1eb518582b16e67a9 (diff)
downloadtoolchain_binutils-cc160c2199d6d3d8b64dcc578ece5eb5e75a4b80.zip
toolchain_binutils-cc160c2199d6d3d8b64dcc578ece5eb5e75a4b80.tar.gz
toolchain_binutils-cc160c2199d6d3d8b64dcc578ece5eb5e75a4b80.tar.bz2
GOLD/DWP: exit without segfault if the binary is not built with debug fission. am: 21efffa54e
am: 881d3cd754 * commit '881d3cd7545c511c99f208f1eb518582b16e67a9': GOLD/DWP: exit without segfault if the binary is not built with debug fission. Change-Id: I57bfd9c5e6b5f5a8d0492103881abce197f34f47
-rw-r--r--binutils-2.25/gold/dwp.cc4
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