Skip to content

Commit fcf8ada

Browse files
committed
[Driver] Render -e for Gnu.cpp
1 parent ad48367 commit fcf8ada

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def emit_merged_ifs : Flag<["-"], "emit-merged-ifs">,
693693
HelpText<"Generate Interface Stub Files, emit merged text not binary.">;
694694
def interface_stub_version_EQ : JoinedOrSeparate<["-"], "interface-stub-version=">, Flags<[CC1Option]>;
695695
def exported__symbols__list : Separate<["-"], "exported_symbols_list">;
696-
def e : JoinedOrSeparate<["-"], "e">, Group<Link_Group>;
696+
def e : JoinedOrSeparate<["-"], "e">, Flags<[LinkerInput]>, Group<Link_Group>;
697697
def fmax_tokens_EQ : Joined<["-"], "fmax-tokens=">, Group<f_Group>, Flags<[CC1Option]>,
698698
HelpText<"Max total number of preprocessed tokens for -Wmax-tokens.">;
699699
def fPIC : Flag<["-"], "fPIC">, Group<f_Group>;

clang/test/Driver/Xlinker-args.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
/// -T is reordered to the last to make sure -L takes precedence.
1010
// RUN: %clang -target x86_64-pc-linux-gnu -### \
11-
// RUN: -T a.lds -Xlinker one -Xlinker --no-demangle \
11+
// RUN: -e _start -T a.lds -Xlinker one -Xlinker --no-demangle \
1212
// RUN: -Wl,two,--no-demangle,three -Xlinker four -z five -r %s 2> %t
1313
// RUN: FileCheck -check-prefix=LINUX < %t %s
1414
//
1515
// DARWIN-NOT: --no-demangle
1616
// DARWIN: "one" "two" "three" "four" "-z" "five" "-r"
17-
// LINUX: "--no-demangle" "one" "two" "three" "four" "-z" "five" "-r" {{.*}} "-T" "a.lds"
17+
// LINUX: "--no-demangle" "-e" "_start" "one" "two" "three" "four" "-z" "five" "-r" {{.*}} "-T" "a.lds"
1818

1919
// Check that we forward '-Xlinker' and '-Wl,' on Windows.
2020
// RUN: %clang -target i686-pc-win32 -### \

0 commit comments

Comments
 (0)