From owner-freebsd-bugs@freebsd.org Wed Mar 2 03:58:05 2016 Return-Path: Delivered-To: freebsd-bugs@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 55EB4AC073F for ; Wed, 2 Mar 2016 03:58:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3AE6F11C9 for ; Wed, 2 Mar 2016 03:58:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u223w43M072176 for ; Wed, 2 Mar 2016 03:58:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207631] rtld requires the first PT_LOAD segment to be .text and is incompatible with output produced by lld Date: Wed, 02 Mar 2016 03:58:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2016 03:58:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207631 --- Comment #1 from Ed Maste --- For reference here is the segment layout currently produced by lld: % readelf -l bin/sh Elf file type is EXEC (Executable file) Entry point 0x19000 There are 10 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align PHDR 0x0000000000000040 0x0000000000010040 0x0000000000010040 0x0000000000000230 0x0000000000000230 R 8 INTERP 0x0000000000000270 0x0000000000010270 0x0000000000010270 0x0000000000000015 0x0000000000000015 R 1 [Requesting program interpreter: /libexec/ld-elf.so.1] LOAD 0x0000000000000000 0x0000000000010000 0x0000000000010000 0x000000000000875c 0x000000000000875c R 1000 LOAD 0x0000000000009000 0x0000000000019000 0x0000000000019000 0x000000000001b220 0x000000000001b220 R E 1000 LOAD 0x0000000000025000 0x0000000000035000 0x0000000000035000 0x0000000000001500 0x0000000000003a50 RW 1000 DYNAMIC 0x0000000000025028 0x0000000000035028 0x0000000000035028 0x0000000000000130 0x0000000000000130 RW 8 GNU_RELRO 0x0000000000025000 0x0000000000035000 0x0000000000035000 0x0000000000000160 0x0000000000000160 R 1 GNU_EH_FRAME 0x0000000000007f18 0x0000000000017f18 0x0000000000017f18 0x0000000000000844 0x0000000000000844 R 1 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0 NOTE 0x0000000000000288 0x0000000000010288 0x0000000000010288 0x0000000000000030 0x0000000000000030 R 4 Section to Segment mapping: Segment Sections... 00=20=20=20=20=20 01 .interp=20 02 .interp .note.tag .rodata .eh_frame .rodata .rodata .rodata .dyns= ym .gnu.hash .hash .dynstr .rela.dyn .rela.plt .eh_frame_hdr=20 03 .text .init .fini .plt=20 04 .ctors .dtors .jcr .dynamic .got .data .got.plt .bss=20 05 .dynamic=20 06 .ctors .dtors .jcr .dynamic .got=20 07 .eh_frame_hdr=20 08=20=20=20=20=20 09 .note.tag --=20 You are receiving this mail because: You are the assignee for the bug.=