40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
|
From 6511aedea2259bd09facc410f6b30eca8dc89b3d Mon Sep 17 00:00:00 2001
|
||
|
From: Tom Stellard <tstellar@redhat.com>
|
||
|
Date: Wed, 30 Mar 2022 21:26:09 -0700
|
||
|
Subject: [PATCH] Add back ignored option --no-add-needed
|
||
|
|
||
|
This partially reverts commit 815a1207bfe121c8dcf3804a4f4638e580f63519.
|
||
|
gcc 12.0.1 passes this option to the linker when compiling with -fuse-ld=lld.
|
||
|
---
|
||
|
lld/ELF/Options.td | 1 +
|
||
|
lld/test/ELF/silent-ignore.test | 1 +
|
||
|
2 files changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td
|
||
|
index ca9fdcde791f..dedf5447d956 100644
|
||
|
--- a/lld/ELF/Options.td
|
||
|
+++ b/lld/ELF/Options.td
|
||
|
@@ -695,6 +695,7 @@ def plugin_opt_eq : J<"plugin-opt=">;
|
||
|
def: F<"detect-odr-violations">;
|
||
|
def: Flag<["-"], "g">;
|
||
|
def: F<"long-plt">;
|
||
|
+def: F<"no-add-needed">;
|
||
|
def: F<"no-copy-dt-needed-entries">;
|
||
|
def: F<"no-ctors-in-init-array">;
|
||
|
def: F<"no-keep-memory">;
|
||
|
diff --git a/lld/test/ELF/silent-ignore.test b/lld/test/ELF/silent-ignore.test
|
||
|
index 91b57434765f..2a4bf02ad95f 100644
|
||
|
--- a/lld/test/ELF/silent-ignore.test
|
||
|
+++ b/lld/test/ELF/silent-ignore.test
|
||
|
@@ -2,6 +2,7 @@ RUN: ld.lld --version \
|
||
|
RUN: -detect-odr-violations \
|
||
|
RUN: -g \
|
||
|
RUN: -long-plt \
|
||
|
+RUN: -no-add-needed \
|
||
|
RUN: -no-copy-dt-needed-entries \
|
||
|
RUN: -no-ctors-in-init-array \
|
||
|
RUN: -no-keep-memory \
|
||
|
--
|
||
|
2.27.0
|
||
|
|