Skip to content
  • George Rimar's avatar
    [ELF] - Properly handle R_386_GOTPC relocation. · d6029872
    George Rimar authored
    This is PR33243. R_GOTONLY_PC_FROM_END was not in a list of link time constant
    expressions and that was a result of confusiing messages like PR shows:
    
    /usr/bin/ld.lld: error: /usr/lib/go/src/runtime/alg.go:47: 
    can't create dynamic relocation R_386_GOTPC against local symbol in readonly segment defined in /tmp/nice/go-link-597453838/go.o
    
    Though in reality we just should not have try to create a dynamic relocation for this case at all.
    
    Patch fixes the issue.
    
    Differential revision: https://reviews.llvm.org/D33717
    
    llvm-svn: 304393
    d6029872
Loading