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:
>> . . .
> 
> 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.
> 
> 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.)

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

_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to