diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index b6db388552f86f36dc065aa338359406a56b4307..4446600dc1873cb9a923260a280ff0ab64d17909 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -27,11 +27,11 @@ def L: JoinedOrSeparate<["-"], "L">, MetaVarName<"">, def O: Joined<["-"], "O">, HelpText<"Optimize output file size">; -def Tbss: Separate<["-"], "Tbss">, HelpText<"Same as --section-start with .bss as the sectionname">; +def Tbss: S<"Tbss">, HelpText<"Same as --section-start with .bss as the sectionname">; -def Tdata: Separate<["-"], "Tdata">, HelpText<"Same as --section-start with .data as the sectionname">; +def Tdata: S<"Tdata">, HelpText<"Same as --section-start with .data as the sectionname">; -def Ttext: Separate<["-"], "Ttext">, HelpText<"Same as --section-start with .text as the sectionname">; +def Ttext: S<"Ttext">, HelpText<"Same as --section-start with .text as the sectionname">; def allow_multiple_definition: F<"allow-multiple-definition">, HelpText<"Allow multiple definitions">; diff --git a/lld/test/ELF/sectionstart.s b/lld/test/ELF/sectionstart.s index d0f5293dd9e16ba714903602d2d3d8cc2f1ee3c7..31cfbbb3b8d179598817e8206be1d1ae81744959 100644 --- a/lld/test/ELF/sectionstart.s +++ b/lld/test/ELF/sectionstart.s @@ -39,15 +39,15 @@ # RUN: not ld.lld %t.o -Ttext=1w0000 -o %t6 2>&1 \ # RUN: | FileCheck -check-prefix=ERR3 %s -# ERR3: invalid argument: -Ttext 1w0000 +# ERR3: invalid argument: --Ttext 1w0000 # RUN: not ld.lld %t.o -Tbss=1w0000 -o %t6 2>&1 \ # RUN: | FileCheck -check-prefix=ERR4 %s -# ERR4: invalid argument: -Tbss 1w0000 +# ERR4: invalid argument: --Tbss 1w0000 # RUN: not ld.lld %t.o -Tdata=1w0000 -o %t6 2>&1 \ # RUN: | FileCheck -check-prefix=ERR5 %s -# ERR5: invalid argument: -Tdata 1w0000 +# ERR5: invalid argument: --Tdata 1w0000 .text .globl _start