thus it was that the sons of galdor were fostered in brethil by haldir their uncle , according to the custom of men in that time ; and they went both to that battle with the orcs , even huor , for he would not be restrained , though he was but thirteen years old .