Skip to content

Commit

Permalink
Remove the copyright comment from the outputs generated by RetDec.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
s3rvac authored and PeterMatula committed Aug 26, 2020
1 parent 45fd7b8 commit 6ee0385
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/bin2llvmir/optimizations/writer_dsm/writer_dsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <info@retdec.com>\n";
ret << ";;\n";
ret << ";; Decompilation date: "
<< retdec::utils::getCurrentDate() << " "
Expand Down
6 changes: 0 additions & 6 deletions src/llvmir2hll/hll/hll_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <info@retdec.com>"
);
out->commentLine("");

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <info@retdec.com>
;;
;; Decompilation date: ....-..-.. ..:..:..
;; Architecture: arm
Expand Down

0 comments on commit 6ee0385

Please sign in to comment.