Skip to content

Commit 7bd87d0

Browse files
maciej-czekajgerekon
authored andcommitted
[Xtensa] Add --text-section-literals option
This option is passed to GNU AS and makes Xtensa compiler driver compatible with GCC.
1 parent ba47c30 commit 7bd87d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/Xtensa.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ void tools::xtensa::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
264264
if (!A->getOption().matches(options::OPT_g0))
265265
CmdArgs.push_back("-g");
266266

267+
if (Args.getLastArg(options::OPT_mtext_section_literals))
268+
CmdArgs.push_back("--text-section-literals");
269+
267270
if (Args.hasFlag(options::OPT_fverbose_asm, options::OPT_fno_verbose_asm,
268271
false))
269272
CmdArgs.push_back("-fverbose-asm");

0 commit comments

Comments
 (0)