Skip to content
  • Rafael Espindola's avatar
    Correct ALIGN expression when inside a section. · b7147ad3
    Rafael Espindola authored
    When given
    
    foobar = ALIGN(., 0x100);
    
    my expectation from what the manual says is that the final address of
    foobar will be aligned. It seems that bfd aligns the offset in the
    section, which causes some odd results if the section is not 0x100
    aligned. Gold aligns the address.
    
    This changes lld to align the final address.
    
    llvm-svn: 312979
    b7147ad3
Loading