[LLD] [MinGW] Implement --disable-reloc-section, mapped to /fixed
authorMartin Storsjö <martin@martin.st>
Fri, 10 Jun 2022 07:57:40 +0000 (10:57 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 15 Jun 2022 13:51:20 +0000 (16:51 +0300)
commitaefa11166f203386017f0eff36f7392bc0c2fa23
tree1349e18306233ab73b7cb47ae628834b5472ad4c
parentb209b9e11c265e52f5897b2e014aa6933eb26703
[LLD] [MinGW] Implement --disable-reloc-section, mapped to /fixed

Since binutils 2.36, GNU ld defaults to emitting base relocations,
and that version added the new option --disable-reloc-section to
disable it.

Differential Revision: https://reviews.llvm.org/D127478
lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/test/MinGW/driver.test