Is do_relax too late to be calling Layout::add_output_section_data? If I try that with a section needing a new output section, I hit gold_assert(!this->is_max_align_known_); in Output_segment::add_output_section_to_load. -- Alan Modra Australia Development Lab, IBM