From owner-freebsd-emulation@FreeBSD.ORG Sat Jun 4 08:50:11 2011 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98F81106564A for ; Sat, 4 Jun 2011 08:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 50E6E8FC1C for ; Sat, 4 Jun 2011 08:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p548oBwr096955 for ; Sat, 4 Jun 2011 08:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p548oBhv096954; Sat, 4 Jun 2011 08:50:11 GMT (envelope-from gnats) Date: Sat, 4 Jun 2011 08:50:11 GMT Message-Id: <201106040850.p548oBhv096954@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Yuri Cc: Subject: RE: kern/153887: [linux] Linux emulator not understand STB_GNU_UNIQUE binding X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yuri List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2011 08:50:11 -0000 The following reply was made to PR kern/153887; it has been noted by GNATS. From: Yuri To: bug-followup@FreeBSD.org Cc: saper@saper.info Subject: RE: kern/153887: [linux] Linux emulator not understand STB_GNU_UNIQUE binding Date: Sat, 04 Jun 2011 01:36:19 -0700 Hi, > I don't think that this area belongs to the linux emulator, as this problem probably is related to the runtime linker and not the kernel. Two questions, though: Why it doesn't belong to emulator? Runtime linker for Linux executables is outdated, this is related to linux emulator. > (1) did you run "brandelf -t Linux" on your program binary? No I didn't, usually linux executables (like skype and acroread) don't need this. (2) can you provide us with a small testcase (like a one-line program trying to use libstdc++ in a smiliar way)? Regarding the testcase, my linux executable itself doesn't use the symbol _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE. Instead it links with some open source shared libraries, some of which probably links to this symbol. But looking at the readelf output it's pretty clear what triggers the problem. Yuri