[PATCH] D70468: [ELF] Error if -Ttext-segment is specified

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 00:21:34 PST 2019


grimar accepted this revision.
grimar added a comment.

LGTM with a test.



================
Comment at: lld/ELF/Driver.cpp:1020
+  if (args.hasArg(OPT_Ttext_segment))
+    error("-Ttext-segment is not supported. Use --image-base if you "
+          "intend to set the base address");
----------------
`-Ttext-segment`->`--Ttext-segment`?
(here and in the comment)

I'd also suggest to add a test for this error. At least testing errors is useful for people who wants to search for a test for a particular option to see if it is supported and how.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70468/new/

https://reviews.llvm.org/D70468





More information about the llvm-commits mailing list