[all-commits] [llvm/llvm-project] a69992: [MC, x86-32] Remove a gold<2.34 workaround

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jun 22 13:44:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a699921baa91e6c2979ec0f0482430c57f51761d
      https://github.com/llvm/llvm-project/commit/a699921baa91e6c2979ec0f0482430c57f51761d
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/test/MC/ELF/relocation-386.s

  Log Message:
  -----------
  [MC,x86-32] Remove a gold<2.34 workaround

This workaround appears to apply with gold<2.34 -O2/-O3 (linker -O2, not
compiler driver -O2). This used to be more visible as we used -Wl,-O3 in
CMake, but the option is generally not recommended and has been removed
by d63016a86548e8231002a760bbe9eb817cd1eb00 (Dec 2021).

This finishes a workaround removal work started by D64327 (2019).

Link: https://github.com/llvm/llvm-project/issues/45269




More information about the All-commits mailing list