There's been a discussion recently on the OSI mailing lists of including the source code to GPLed programs as a mountable file system executable inside the ELF image.  The general feeling was that people wouldn't be inclined to trust such tools, since they would be only rarely used.

On Sat, Oct 12, 2019 at 11:40 PM Arthur A. Gleckler <xxxxxx@speechcode.com> wrote:
On Fri, Oct 11, 2019 at 4:40 PM Lassi Kortela <xxxxxx@lassi.io> wrote:
 
(It's generally simplest when executables are as self-contained as
possible. I've long wondered why programs don't store their manual pages
in a special section of their ELF executable. It wouldn't be hard and
would solve the common problem of missing or out-of-sync manual pages.) 

Yes, that's a good idea.  It's my understanding that the old TOPS-20 operating system also stored what amounted to the grammar of each command in the command's executable.  That way, the TOPS-20 command line could automatically and reliably provide command completion and help for every command, always in sync with the current version.  From a user's perspective, it was a pleasure to use.  I never had a chance to program that, though.