Skip to content
  • Eugene Leviant's avatar
    cc1ba8c7
    Alternative fix for reloc tareting discarded section · cc1ba8c7
    Eugene Leviant authored
    r283984 introduced a problem of too many warning messages being shown
    when -ffunction-sections and -fdata-sections were used in conjunction 
    with --gc-sections linker flag and debugging information present. This
    happens because lot of relocations from .debug_line section may become
    invalid in such case. The newer fix doesn't show any warning message but
    zeroes OutSec pointer in createInputSectionList() to avoid crash, when
    relocations are written
    
    llvm-svn: 284010
    cc1ba8c7
    Alternative fix for reloc tareting discarded section
    Eugene Leviant authored
    r283984 introduced a problem of too many warning messages being shown
    when -ffunction-sections and -fdata-sections were used in conjunction 
    with --gc-sections linker flag and debugging information present. This
    happens because lot of relocations from .debug_line section may become
    invalid in such case. The newer fix doesn't show any warning message but
    zeroes OutSec pointer in createInputSectionList() to avoid crash, when
    relocations are written
    
    llvm-svn: 284010
Loading