| Index: src/IceTranslator.cpp
|
| diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp
|
| index 954da474018d51d3cac732fb5af66432f9b05430..ea65d2eb483138b13f1865be6d111257048c784e 100644
|
| --- a/src/IceTranslator.cpp
|
| +++ b/src/IceTranslator.cpp
|
| @@ -97,8 +97,13 @@ void Translator::translateFcn(Cfg *Fcn) {
|
| }
|
|
|
| void Translator::emitConstants() {
|
| - if (!Ctx->getFlags().DisableTranslation && Func)
|
| - Func->getTarget()->emitConstants();
|
| + if (!Ctx->getFlags().DisableTranslation && Func) {
|
| + if (!Ctx->getFlags().UseELFWriter) {
|
| + Func->getTarget()->emitConstants();
|
| + } else {
|
| + // create the rodata.cst.{4,8} sections!
|
| + }
|
| + }
|
| }
|
|
|
| void Translator::lowerGlobals(
|
|
|