First-sale doctrine?
Which, ironically, doesn’t apply in this case since the software wasn’t legally distributed.
I understand where you’re trying to go with your argument but if the author doesn’t have a means of legal distribution then there’s no way to have a legal copy on your computer to modify and run.
—edit—
And a license doesn’t restrict the rights to software but grants exceptions to the default “all rights reserved” copyright grant.
You can’t possibly have a legal copy of the software without expressed permission of the author. They may not care who does what with it (IDK, implied permission?) but they could change their mind at any time and chose to enforce their copyright. Which also means first-sale doctrine doesn’t apply as there was no “first sale”.
I also “make copies for my own use” of TV shows, written things, &etc and don’t think anyone would claim that isn’t violating copyright law, especially the producers of said content. In fact, I know this to be true as they have sent me nastygrams via email before. Also, by your reasoning, any company, like a cloud service, could take any code they want as long as they weren’t committing acts of distribution and use it however they want. I think we all know this isn’t the way it works because the anti-cloud licenses which have become popular lately would mean absolutely nothing.
And fair use is not really applicable to the current discussion because statically linking a library without permission isn’t fair use.
By what law or principle? IIRC most software is licensed and not sold. And the copyright dictates who defines the terms of the license for software which can be copied. Otherwise how would 'freeware' and trial software be practical if folks could just modify them to bypass any limiters therein?