Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Mar 2017 13:46:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217610] ELF loader should have a special case for program headers with p_filesz == 0
Message-ID:  <bug-217610-8-tw9XJ7Pn26@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217610-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217610-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217610

--- Comment #1 from Robert Clausecker <fuz@fuz.su> ---
As an example, save the following file in test.S and type

    cc -c test.S
    ld -o test test.o
    ./test

on an amd64 machine to reproduce the problem. test.S:

    #include <sys/syscall.h>
        .bss
        .align 4096
    x:  .space 16

        .text
        .globl _start
    _start:
        mov $SYS_exit,%eax
        xor %edi,%edi
        syscall

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217610-8-tw9XJ7Pn26>