From 6ee0385eb5d4edb77db03f80259cd856d03a7e94 Mon Sep 17 00:00:00 2001 From: Petr Zemek Date: Fri, 21 Aug 2020 20:24:58 +0200 Subject: [PATCH] Remove the copyright comment from the outputs generated by RetDec. It is a historical artifact from the times there was a decompilation service on https://retdec.com. Now that RetDec is open-source, it makes little sense to have the comment there. Even the usefulness of its presence in the past is debatable. Here is a quote from GPL FAQ [1], which I believe (but IANAL) applies to other licenses as well: > Q: Is there some way that I can GPL the output people get from use of my > program? For example, if my program is used to develop hardware designs, can I > require that these designs must be free? > > A: In general this is legally impossible; copyright law does not give you any > say in the use of the output people make from their data using your program. If > the user uses your program to enter or convert her own data, the copyright on > the output belongs to her, not you. More generally, when a program translates > its input into some other form, the copyright status of the output inherits > that of the input it was generated from. [1] https://www.gnu.org/licenses/gpl-faq.html#GPLOutput --- src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp | 2 -- src/llvmir2hll/hll/hll_writer.cpp | 6 ------ .../optimizations/writer_dsm/writer_dsm_tests.cpp | 1 - 3 files changed, 9 deletions(-) diff --git a/src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp b/src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp index 191bf8623..b7a1de440 100644 --- a/src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp +++ b/src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp @@ -112,8 +112,6 @@ void DsmWriter::generateHeader(std::ostream& ret) ret << ";;\n"; ret << ";; This file was generated by the Retargetable Decompiler\n"; ret << ";; Website: https://retdec.com\n"; - ret << ";; Copyright (c) " << retdec::utils::getCurrentYear() - << " Retargetable Decompiler \n"; ret << ";;\n"; ret << ";; Decompilation date: " << retdec::utils::getCurrentDate() << " " diff --git a/src/llvmir2hll/hll/hll_writer.cpp b/src/llvmir2hll/hll/hll_writer.cpp index 9c7b5d999..038d12b7f 100644 --- a/src/llvmir2hll/hll/hll_writer.cpp +++ b/src/llvmir2hll/hll/hll_writer.cpp @@ -359,12 +359,6 @@ bool HLLWriter::emitFileHeader() { out->commentLine(""); out->commentLine("This file was generated by the Retargetable Decompiler"); out->commentLine("Website: https://retdec.com"); - out->commentLine("Copyright (c)" - + (optionEmitTimeVaryingInfo - ? (" " + getCurrentYear()) - : ("")) - + " Retargetable Decompiler " - ); out->commentLine(""); return true; diff --git a/tests/bin2llvmir/optimizations/writer_dsm/writer_dsm_tests.cpp b/tests/bin2llvmir/optimizations/writer_dsm/writer_dsm_tests.cpp index 7442e4f56..3330a2964 100644 --- a/tests/bin2llvmir/optimizations/writer_dsm/writer_dsm_tests.cpp +++ b/tests/bin2llvmir/optimizations/writer_dsm/writer_dsm_tests.cpp @@ -51,7 +51,6 @@ TEST_F(DsmWriterTests, testHeaderGeneration) R"(^;; ;; This file was generated by the Retargetable Decompiler ;; Website: https://retdec.com -;; Copyright \(c\) 20.. Retargetable Decompiler ;; ;; Decompilation date: ....-..-.. ..:..:.. ;; Architecture: arm