Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 21:23:36 +0000
From:      Ed Maste <emaste@freebsd.org>
To:        Roman Divacky <rdivacky@vlakno.cz>
Cc:        Mark Millard <markmi@dsl-only.net>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
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
Message-ID:  <CAPyFy2DG3ucUkxDCwRJ10a-nhC1=YvVrwR7v0dw6LJk=e61nvQ@mail.gmail.com>
In-Reply-To: <20170111210658.GA20265@vlakno.cz>
References:  <7139F615-8F18-4EDC-9051-5FFEC0C4057F@dsl-only.net> <CAPyFy2CSmNyUjQcXyq4qUWp_A=Qr81O7fpRbZ5GcfFHFhdSntw@mail.gmail.com> <CF2D86C8-8EEB-4536-8D83-6F8C676EFEF6@dsl-only.net> <20170111194844.GA16135@vlakno.cz> <8242A7B9-7ED3-4861-8209-F3728113D188@dsl-only.net> <20170111210658.GA20265@vlakno.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 January 2017 at 21:06, Roman Divacky <rdivacky@vlakno.cz> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2DG3ucUkxDCwRJ10a-nhC1=YvVrwR7v0dw6LJk=e61nvQ>