[MC,x86-32] Remove a gold<2.34 workaround
authorFangrui Song <i@maskray.me>
Thu, 22 Jun 2023 20:44:15 +0000 (13:44 -0700)
committerFangrui Song <i@maskray.me>
Thu, 22 Jun 2023 20:44:15 +0000 (13:44 -0700)
commita699921baa91e6c2979ec0f0482430c57f51761d
tree1d6ab977349397f07521305691ad49983a4ef2d0
parent213709e7be031751170f04b05203b3228f87850a
[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
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/ELF/relocation-386.s