Skip to content
  • Rui Ueyama's avatar
    Create GOT and PLT entries early in scanRelocs(). · 5036cc67
    Rui Ueyama authored
    scanRelocs() does a lot of things. It fills InputSection's Relocations vector,
    making a decision whether a TLS relocation should be relaxed or not,
    and making a decision whether a GOT/PLT slot needs to be created or not.
    
    They don't actually have to be done in a single loop. I want to separate
    them so that some of them can be run concurently. As a first step, this
    patch moves PLT/GOT slot assignment to beginning of the loop, so that
    they just fall through to the next statements. This should make it clear
    that that code doesn't affect other parts of the loop.
    
    llvm-svn: 299615
    5036cc67
Loading