On Mon, 23 Jan 2017, Sebastien Marie wrote:
> I am just seeing that rustc segfault at runtime with latest ld.so
> (tested on i386).
>
> $ rustc -vV
> Segmentation fault (core dumped)
Gah, lost this chunk somewhere. rustc -vV is happy with this on my amd64
box; can you confirm it works for your use of rust?
Philip
Index: resolve.c
===================================================================
RCS file: /cvs/src/libexec/ld.so/resolve.c,v
retrieving revision 1.76
diff -u -p -r1.76 resolve.c
--- resolve.c 22 Jan 2017 01:20:36 -0000 1.76
+++ resolve.c 23 Jan 2017 12:48:54 -0000
@@ -327,6 +327,8 @@ _dl_finalize_object(const char *objname,
object->Dyn.info[DT_SONAME] += object->Dyn.info[DT_STRTAB];
if (object->Dyn.info[DT_RPATH])
object->Dyn.info[DT_RPATH] += object->Dyn.info[DT_STRTAB];
+ if (object->Dyn.info[DT_RUNPATH])
+ object->Dyn.info[DT_RUNPATH] += object->Dyn.info[DT_STRTAB];
if (object->Dyn.info[DT_REL])
object->Dyn.info[DT_REL] += obase;
if (object->Dyn.info[DT_INIT])