[PATCH] D37480: [ELF] Rewrite --symbol-ordering-file path in reproducer
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 5 08:23:53 PDT 2017
jhenderson created this revision.
Herald added a subscriber: emaste.
The --symbol-ordering-file path was not being rewritten in the response file when using --reproduce. This patch adds this to the list of switches that are rewritten.
https://reviews.llvm.org/D37480
Files:
ELF/DriverUtils.cpp
test/ELF/reproduce.s
Index: test/ELF/reproduce.s
===================================================================
--- test/ELF/reproduce.s
+++ test/ELF/reproduce.s
@@ -33,10 +33,12 @@
# RUN: echo "{};" > dyn
# RUN: echo > file
# RUN: echo > file2
+# RUN: echo "_start" > order
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o 'foo bar'
# RUN: ld.lld --reproduce repro2.tar 'foo bar' -L"foo bar" -Lfile -Tfile2 \
-# RUN: --dynamic-list dyn -rpath file --script=file --version-script ver \
-# RUN: --dynamic-linker "some unusual/path" -soname 'foo bar' -soname='foo bar'
+# RUN: --dynamic-list dyn -rpath file --script=file --symbol-ordering-file order \
+# RUN: --version-script ver --dynamic-linker "some unusual/path" -soname 'foo bar' \
+# RUN: -soname='foo bar'
# RUN: tar xf repro2.tar
# RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt
# RSP2: --chroot .
@@ -47,14 +49,16 @@
# RSP2-NEXT: --dynamic-list {{.+}}dyn
# RSP2-NEXT: -rpath {{.+}}file
# RSP2-NEXT: --script {{.+}}file
-# RSP2-NEXT: --version-script [[PATH:.*]]ver
+# RSP2-NEXT: --symbol-ordering-file [[PATH:.+]]order
+# RSP2-NEXT: --version-script [[PATH]]ver
# RSP2-NEXT: --dynamic-linker "some unusual/path"
# RSP2-NEXT: -soname "foo bar"
# RSP2-NEXT: -soname "foo bar"
# RUN: tar tf repro2.tar | FileCheck %s
# CHECK: repro2/response.txt
# CHECK-NEXT: repro2/version.txt
+# CHECK-NEXT: repro2/{{.*}}/order
# CHECK-NEXT: repro2/{{.*}}/dyn
# CHECK-NEXT: repro2/{{.*}}/ver
# CHECK-NEXT: repro2/{{.*}}/foo bar
Index: ELF/DriverUtils.cpp
===================================================================
--- ELF/DriverUtils.cpp
+++ ELF/DriverUtils.cpp
@@ -160,6 +160,7 @@
case OPT_library_path:
case OPT_rpath:
case OPT_script:
+ case OPT_symbol_ordering_file:
case OPT_version_script:
OS << Arg->getSpelling() << " " << quote(rewritePath(Arg->getValue()))
<< "\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37480.113865.patch
Type: text/x-patch
Size: 1959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170905/133d6679/attachment.bin>
More information about the llvm-commits
mailing list