Underwear and hosiery maker Hanesbrands Inc has bought a textile manufacturer in El Salvador for an undisclosed sum as part of plans to create a balanced supply chain in Central America.