[lld] b894071 - [ELF] --reproduce: support --export-dynamic-symbol-list
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 01:20:36 PDT 2022
Author: Fangrui Song
Date: 2022-07-25T01:20:32-07:00
New Revision: b89407153d19abdd275668e32692663768c5fed3
URL: https://github.com/llvm/llvm-project/commit/b89407153d19abdd275668e32692663768c5fed3
DIFF: https://github.com/llvm/llvm-project/commit/b89407153d19abdd275668e32692663768c5fed3.diff
LOG: [ELF] --reproduce: support --export-dynamic-symbol-list
Added:
Modified:
lld/ELF/DriverUtils.cpp
lld/test/ELF/reproduce.s
Removed:
################################################################################
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp
index 1fb6315244f0..51f3dc3a056e 100644
--- a/lld/ELF/DriverUtils.cpp
+++ b/lld/ELF/DriverUtils.cpp
@@ -180,6 +180,7 @@ std::string elf::createResponseFile(const opt::InputArgList &args) {
break;
case OPT_call_graph_ordering_file:
case OPT_dynamic_list:
+ case OPT_export_dynamic_symbol_list:
case OPT_just_symbols:
case OPT_library_path:
case OPT_retain_symbols_file:
diff --git a/lld/test/ELF/reproduce.s b/lld/test/ELF/reproduce.s
index cc2080493503..f143752b64d3 100644
--- a/lld/test/ELF/reproduce.s
+++ b/lld/test/ELF/reproduce.s
@@ -31,13 +31,14 @@
# RUN: cd %t.dir/build3
# RUN: echo "{ local: *; };" > ver
# RUN: echo "{};" > dyn
+# RUN: cp dyn dyn2
# RUN: echo > file
# RUN: echo > file2
# RUN: echo "_start" > order
# RUN: mkdir "sysroot with spaces"
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o 'foo bar'
# RUN: ld.lld --reproduce repro3.tar 'foo bar' -L"foo bar" -Lfile -Tfile2 \
-# RUN: --dynamic-list dyn -rpath file --script=file --symbol-ordering-file order \
+# RUN: --dynamic-list dyn --export-dynamic-symbol-list dyn2 -rpath file --script=file --symbol-ordering-file order \
# RUN: --sysroot "sysroot with spaces" --sysroot="sysroot with spaces" \
# RUN: --version-script ver --dynamic-linker "some unusual/path" -soname 'foo bar' \
# RUN: -soname='foo bar'
@@ -48,6 +49,7 @@
# RSP3-NEXT: -L [[BASEDIR]]/file
# RSP3-NEXT: --script [[BASEDIR]]/file2
# RSP3-NEXT: --dynamic-list [[BASEDIR]]/dyn
+# RSP3-NEXT: --export-dynamic-symbol-list [[BASEDIR]]/dyn2
# RSP3-NEXT: -rpath [[BASEDIR]]/file
# RSP3-NEXT: --script [[BASEDIR]]/file
# RSP3-NEXT: --symbol-ordering-file [[BASEDIR]]/order
@@ -63,6 +65,7 @@
# CHECK-NEXT: repro3/version.txt
# CHECK-NEXT: repro3/{{.*}}/order
# CHECK-NEXT: repro3/{{.*}}/dyn
+# CHECK-NEXT: repro3/{{.*}}/dyn2
# CHECK-NEXT: repro3/{{.*}}/ver
# CHECK-NEXT: repro3/{{.*}}/foo bar
# CHECK-NEXT: repro3/{{.*}}/file2
More information about the llvm-commits
mailing list