diff options
-rw-r--r-- | ELF/Options.td | 1 | ||||
-rw-r--r-- | test/ELF/pie.s | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ELF/Options.td b/ELF/Options.td index 735046728..2bd6e4460 100644 --- a/ELF/Options.td +++ b/ELF/Options.td @@ -351,6 +351,7 @@ def alias_filter: Separate<["-"], "F">, Alias<filter>; def alias_format_b: S<"b">, Alias<format>; def alias_library: JoinedOrSeparate<["-"], "l">, Alias<library>; def alias_library_path: JoinedOrSeparate<["-"], "L">, Alias<library_path>; +def alias_nopie: F<"nopie">, Alias<no_pie>; def alias_omagic: Flag<["-"], "N">, Alias<omagic>; def alias_o_output: Joined<["--"], "output=">, Alias<o>; def alias_o_output2 : Separate<["--"], "output">, Alias<o>; diff --git a/test/ELF/pie.s b/test/ELF/pie.s index 3efd6e337..f5e6150be 100644 --- a/test/ELF/pie.s +++ b/test/ELF/pie.s @@ -47,9 +47,11 @@ # CHECK: Type: PT_DYNAMIC -## Check -nopie +## Check -no-pie # RUN: ld.lld -no-pie %t1.o -o %t2 # RUN: llvm-readobj -file-headers -r %t2 | FileCheck %s --check-prefix=NOPIE +# RUN: ld.lld -nopie %t1.o -o %t2 +# RUN: llvm-readobj -file-headers -r %t2 | FileCheck %s --check-prefix=NOPIE # NOPIE-NOT: Type: SharedObject .globl _start |