Doctrine of first sale prohibits renting and leasing phonorecords (recorded music) and computer software although private non-profit archives and libraries are allowed to lend these items provided thay include a copyright notice on the copy.
US courts upheld doctrine of first sale in Softman v. Adobe  and Novell, Inc. v. CPU Distrib., Inc when applied to software even if the software contains an End User License Agreement (EULA) prohibiting resale. In this case Softman, after purchasing bundled software from Adobe, unbundled it and then resold the component programs. The courts ruled that consumers can resell bundled software, no matter what the EULA stipulates. Specifically, the ruling decreed that software purchases be treated as sales transactions, rather than explicit license agreements. In other words, consumers should have the same rights they would enjoy under existing copyright legislation when buying a CD or a book. They cannot make copies outside of the exemption in section 117 Limitations on exclusive rights: Computer programs , but may resell what they own.