From owner-freebsd-toolchain@freebsd.org Wed Jan 11 21:23:57 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BCC7CAAC48 for ; Wed, 11 Jan 2017 21:23:57 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EC1B195C for ; Wed, 11 Jan 2017 21:23:57 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x236.google.com with SMTP id l66so3686409ioi.1 for ; Wed, 11 Jan 2017 13:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QUttNBXBj/VkWExKezfqCkItLelf0yxe6FAnSckcBAc=; b=oMmxhvwxVDl0USn1tTD6w6pPKLdpzwjDfna1F2gFaNpF17zNBS5bihqYtbClWR/sC0 mhqHLd4XB+2ji8QoRGtXtitHgwCQbN+t2HpVILwhTq8ab7Ac3rvwP0rqonGmNMMjCDdR mivXCcx1Nd6QqfClaskPq5t7AmEgip6FhkcXRDfGtL74ePguJ6IToHif6voKjzNX5h+r s8YvGosjwSaE27HyPLf1nlZDc4NqRhc1wEEXrh30Mq2b08b8ni41+6t0LCZYSS+Rci78 +gEEoeZD3+B5cDWiKJZNs8tVITkdaDg3HioZlLRUXaY23Opis8/OVpRN04AS7okk9i4I VjEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QUttNBXBj/VkWExKezfqCkItLelf0yxe6FAnSckcBAc=; b=lE8tHi7gJIfxPvMn2hoSIM56Kpe+QHSKQbe+RoyPoz8xiSTu6qvxGlmT7fBmcIVRG2 amLD8TuiCGU5LNCBqiJRir01Flb+bA/ii1lZE6KEvT+71dT1UlUS+HxwIu1vVeCYyROZ 7AY387Dm7bjTbnmzfaLzEB7rtc4g8Xfm6BoBTYhH2ekYgBjnefehzklhtJ/Fc8TmeslD 0VIvXxinw5mb294VZ4lyh4Ik5jVzkMmYiaB8BZm7wRTcTTT2zllj9KEmBsPfnCXrfhJ9 J5H4mGOs+fFyd/evi2BEDrhaVgjBQgcMZzgJiQuaFPXmxXOKcY5dVmgyIaldEve04fse 7+Dg== X-Gm-Message-State: AIkVDXIlen0aNieHE1CktVUrykHajHHNHa2dn9OWeWIz/G9fCsdWua1kR4b41LJbwKX5U2fa4MLg1EQeXWy0xQ== X-Received: by 10.107.23.198 with SMTP id 189mr3772070iox.162.1484169836627; Wed, 11 Jan 2017 13:23:56 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.175.159 with HTTP; Wed, 11 Jan 2017 13:23:36 -0800 (PST) In-Reply-To: <20170111210658.GA20265@vlakno.cz> References: <7139F615-8F18-4EDC-9051-5FFEC0C4057F@dsl-only.net> <20170111194844.GA16135@vlakno.cz> <8242A7B9-7ED3-4861-8209-F3728113D188@dsl-only.net> <20170111210658.GA20265@vlakno.cz> From: Ed Maste Date: Wed, 11 Jan 2017 21:23:36 +0000 X-Google-Sender-Auth: ykR-oqBCcxM4brJE9v0p9ge7mBw Message-ID: Subject: Re: /usr/bin/ld.lld on powerpc64: produces a.out for which: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/powerpc64/reloc.c:374 To: Roman Divacky Cc: Mark Millard , FreeBSD Toolchain Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 21:23:57 -0000 On 11 January 2017 at 21:06, Roman Divacky wrote: > Looks like a progress :) Three questions... > > Is the readelf -a reasonable now? FYI, I just committed an ELF Tool Chain fix (r311941) so readelf should display the relocation types properly now. > If you compile with -g, does the > backtrace make a bit more sense? And finally, can you try to "nexti/stepi" in gdb from > _start to see where things go wrong? Possibly doing it both for ld linked a.out > and lld linked a.out and compare where things differ. You can also build rtld with additional debugging by adding -DDEBUG to CFLAGS. In libexec/rtld-elf/Makefile there's an example command line for building it locally, but I've just added CFLAGS+=-DDEBUG to the Makefile in my test tree and built it along with the rest of my full cross build.