diff options
author | Fangrui Song <i@maskray.me> | 2022-07-25 01:20:32 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-07-25 01:20:32 -0700 |
commit | b89407153d19abdd275668e32692663768c5fed3 (patch) | |
tree | dec47531aad0ccc089d072b2f2dbd9893f354c07 /lld | |
parent | 3a35bcef222844c20efa450cc1b47e96aa9be9b0 (diff) | |
download | llvm-b89407153d19abdd275668e32692663768c5fed3.zip llvm-b89407153d19abdd275668e32692663768c5fed3.tar.gz llvm-b89407153d19abdd275668e32692663768c5fed3.tar.bz2 |
[ELF] --reproduce: support --export-dynamic-symbol-list
Diffstat (limited to 'lld')
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 1 | ||||
-rw-r--r-- | lld/test/ELF/reproduce.s | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 1fb6315..51f3dc3a 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 cc20804..f143752 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 |