Skip to content
  • Rafael Espindola's avatar
    Allow use define symbols to override linker defined ones. · dab02d4b
    Rafael Espindola authored
    I hit an internal linker script that was defining _DYNAMIC instead of
    letting the linker do it. It turns out that both bfd and gold allow
    that.
    
    This is pretty easy to implement, just make the linker defined symbol
    weak. This should have no impact in the case where there is no user
    defined symbol: The visibility is hidden, which causes the output to
    still be local.
    
    llvm-svn: 287260
    dab02d4b
Loading