[all-commits] [llvm/llvm-project] d9ef55: [ELF] -r: don't define __global_pointer$

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Nov 22 12:38:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9ef5574d4e37af394d7bd53ab7e2534949c5c63
      https://github.com/llvm/llvm-project/commit/d9ef5574d4e37af394d7bd53ab7e2534949c5c63
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M lld/ELF/Symbols.cpp
    M lld/ELF/Symbols.h
    M lld/ELF/Writer.cpp
    M lld/test/ELF/riscv-gp.s

  Log Message:
  -----------
  [ELF] -r: don't define __global_pointer$

This symbol is supposed to be defined by the final executable link. The new
behavor matches GNU ld.




More information about the All-commits mailing list