Write section and section table entries in the same order.