[PATCH] D23124: ELF lld: Ignore -EL and -EB options
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 10:22:13 PDT 2016
emaste created this revision.
emaste added reviewers: compnerd, dsanders.
emaste added a subscriber: llvm-commits.
Herald added a reviewer: vkalintiris.
GNU ld supports `-EL` and `-EB` options to choose a default output format (big- or little-endian). We choose the appropriate endianness based on the format of the input objects and can ignore these options.
We could produce an error if `-EL` / `-EB` did not match the endianness of the input objects, but I don't think it's worthwhile.
https://reviews.llvm.org/D23124
Files:
ELF/Options.td
Index: ELF/Options.td
===================================================================
--- ELF/Options.td
+++ ELF/Options.td
@@ -263,6 +263,8 @@
def warn_execstack: F<"warn-execstack">;
def warn_shared_textrel: F<"warn-shared-textrel">;
def G: Separate<["-"], "G">;
+def EB : Separate<["-"], "EB">;
+def EL : Separate<["-"], "EL">;
// Aliases for ignored options
def alias_define_common_d: Flag<["-"], "d">, Alias<define_common>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23124.66675.patch
Type: text/x-patch
Size: 440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160803/7e43e90b/attachment.bin>
More information about the llvm-commits
mailing list