Skip to content
  • George Rimar's avatar
    14460e02
    [ELF] - Do not crash when move location counter backward. · 14460e02
    George Rimar authored
    PR31335 shows that we do that in next case:
    SECTIONS { .text 0x2000 : {. = 0x100 ; *(.text) } }
    
    though documentations says that "If . is used inside a section 
    description however, it refers to the byte offset from the start
    of that section, not an absolute address. " looks does not work 
    as documented in bfd (as mentioned in comments for PR31335).
    
    Until we find out the expected behavior was suggested at least not
    to 'crash', what we do after trying to generate huge file.
    
    Differential revision: https://reviews.llvm.org/D27712
    
    llvm-svn: 289782
    14460e02
    [ELF] - Do not crash when move location counter backward.
    George Rimar authored
    PR31335 shows that we do that in next case:
    SECTIONS { .text 0x2000 : {. = 0x100 ; *(.text) } }
    
    though documentations says that "If . is used inside a section 
    description however, it refers to the byte offset from the start
    of that section, not an absolute address. " looks does not work 
    as documented in bfd (as mentioned in comments for PR31335).
    
    Until we find out the expected behavior was suggested at least not
    to 'crash', what we do after trying to generate huge file.
    
    Differential revision: https://reviews.llvm.org/D27712
    
    llvm-svn: 289782
Loading