Genetics of adaptation: the roles of pleiotropy and linkage