Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2018 17:51:25 -0700
From:      Mark Millard <marklmi26-fbsd@yahoo.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        svn-src-head@freebsd.org, Alexander Richardson <arichardson@freebsd.org>
Subject:   Re: svn commit: r339876 - head/libexec/rtld-elf
Message-ID:  <34554290-D26E-4FED-A598-4FB3E313EA92@yahoo.com>
In-Reply-To: <20181102185014.GP5335@kib.kiev.ua>
References:  <8E5A5F3A-F1A7-4702-A2F7-65D74CC5B2E5@yahoo.com> <20181102004101.GI5335@kib.kiev.ua> <E44F5772-1F8A-40B8-9C4E-B8362B768F37@yahoo.com> <003A49D7-6E8B-4775-A70B-E0EB44505D4B@yahoo.com> <20181102113827.GM5335@kib.kiev.ua> <7B29A4C8-228D-41CB-B594-98DFA456E9C8@yahoo.com> <20181102155234.GN5335@kib.kiev.ua> <E93B3880-281E-482C-9DA7-851398543B97@yahoo.com> <20181102185014.GP5335@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Nov-2, at 11:50 AM, Konstantin Belousov <kostikbel at gmail.com> =
wrote:

> On Fri, Nov 02, 2018 at 10:38:08AM -0700, Mark Millard wrote:
>> . . .
>=20
> There seems to be an issue with the direct execution mode on ppc.
> Even otherwise working ld-elf.so.1 segfaults if I try to use it as
> standalone binary.
>=20
> But if I specify patched ld-elf.so.1 as the interpreter for some =
program,
> using 'cc -Wl,-I,<path>/ld-elf.so.1' it works.  So I see there two =
bugs,
> one is regression due to textsize calculation, which should be fixed =
by
> my patch.  Another is the direct exec problem.

My head -r339076 based powerpc64 and armv7 contexts also
fail for:

# /libexec/ld-elf.so.1 /bin/ls

The armv7 (a Cortext-A7 context) is interestingly different
in how it fails:

# /libexec/ld-elf.so.1 /bin/ls
ld-elf.so.1: /bin/ls: mmap of entire address space failed: Cannot =
allocate memory

My aarch64 context (a Cortext-A53 context) had no problem.

(All 3 examples are without any of the the recent updates
or patches to ld-elf.so.1 source code.)

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34554290-D26E-4FED-A598-4FB3E313EA92>