From: Samuel Thibault Date: Sun, 21 Jul 2019 18:46:30 +0000 (+0200) Subject: MC: complete workaround in the error msg seen on modern systems X-Git-Tag: v3.24~278^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/112849de03f2fae9fb4755887bc15322dbe03206 MC: complete workaround in the error msg seen on modern systems Ref #35 --- diff --git a/src/mc/inspect/ObjectInformation.cpp b/src/mc/inspect/ObjectInformation.cpp index a2440d954b..75b39d40f9 100644 --- a/src/mc/inspect/ObjectInformation.cpp +++ b/src/mc/inspect/ObjectInformation.cpp @@ -234,8 +234,8 @@ void find_object_address(std::vector const& maps, simgrid:: // This is the GNU_RELRO-part of the data segment: else if (reg.prot == PROT_READ) { xbt_assert(not result->start_ro, - "Multiple read-only segments for %s, not supported. Compiling with the following may help: -Wl,-z " - "-Wl,noseparate-code", + "Multiple read-only segments for %s, not supported. Compiling with the following may help: " + "-Wl,-znorelro -Wl,-znoseparate-code", maps[i].pathname.c_str()); result->start_ro = (char*)reg.start_addr; result->end_ro = (char*)reg.end_addr;