[PATCH] D43008: [ELF] Process linker scripts deeper when declaring symbols.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 20:40:10 PST 2018
ruiu accepted this revision.
ruiu added a comment.
LGTM
================
Comment at: test/ELF/linkerscript/version-script.s:9
+# RUN: echo "SECTIONS { .text : { bar = foo; *(.text) } } \
+# RUN: VERSION { V { global: foo; bar; local: *; }; }" > %t.script
+# RUN: ld.lld -T %t.script -shared --no-undefined-version %t.o -o %t.so
----------------
Can you write this way so %t.script consists of two lines instead of one?
# RUN: echo "SECTIONS { .text : { bar = foo; *(.text) } }" > %t.script
# RUN: echo "VERSION { V { global: foo; bar; local: *; }; }" >> %t.script
If something goes wrong, lld prints out an error message with "^" marker to point out the error location, but that is almost useless if a line is too long.
https://reviews.llvm.org/D43008
More information about the llvm-commits
mailing list