Skip to content
  • Cary Coutant's avatar
    Don't align start of segment unless alignment is larger than page size. · a5cd8f05
    Cary Coutant authored
    This fixes an issue where a page-aligned data section, combined with -z relro,
    could lead to a gap between text and data segments larger than a page, and
    we would fail to overlap the segments in the file.
    
    gold/
    	* layout.cc (Layout::set_segment_offsets): Don't align start of segment
    	unless alignment is larger than page size.
    a5cd8f05