Use function sections and gc-sections on unix also.