From owner-freebsd-toolchain@freebsd.org Sun Feb 23 15:31:33 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E57A723FD6D for ; Sun, 23 Feb 2020 15:31:33 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48QTgl0VPvz4dQ8 for ; Sun, 23 Feb 2020 15:31:30 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from garrigue.home ([2.7.71.138]) by mwinf5d38 with ME id 6FXT2200L2z0Kde03FXUmc; Sun, 23 Feb 2020 16:31:28 +0100 X-ME-Helo: garrigue.home X-ME-Auth: cGpmbG95ZEB3YW5hZG9vLmZy X-ME-Date: Sun, 23 Feb 2020 16:31:28 +0100 X-ME-IP: 2.7.71.138 From: Paul Floyd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: RO Elf program headers Message-Id: <9AAE92C0-4FD7-43DF-A805-EFEE7EA06B56@wanadoo.fr> Date: Sun, 23 Feb 2020 16:31:27 +0100 To: freebsd-toolchain@freebsd.org X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48QTgl0VPvz4dQ8 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of pjfloyd@wanadoo.fr has no SPF policy when checking 80.12.242.125) smtp.mailfrom=pjfloyd@wanadoo.fr X-Spamd-Result: default: False [3.40 / 15.00]; FREEMAIL_FROM(0.00)[wanadoo.fr]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[138.71.7.2.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[wanadoo.fr]; ASN(0.00)[asn:3215, ipnet:80.12.240.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (3.75), ipnet: 80.12.240.0/20(1.58), asn: 3215(1.67), country: FR(0.00)]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; RCVD_IN_DNSWL_NONE(0.00)[125.242.12.80.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[wanadoo.fr]; RWL_MAILSPIKE_POSSIBLE(0.00)[125.242.12.80.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2020 15:31:34 -0000 Hi I=E2=80=99ve been working on getting Valgrind to work again on FreeBSD. Probably the biggest problem at the moment is that Valgrind doesn=E2=80=99= t (yet) handle the read-only program headers. If I run =E2=80=9Creadelf -l libc++.so.1.0=E2=80=9D on Linux I see two = LOAD headers, the first one =E2=80=9CR E=E2=80=9D (read-execute) and the = second one =E2=80=9CRW=E2=80=9D (read-write). If I do the same on = FreeBSD then I see a third program header which is =E2=80=9CR=E2=80=9D = (read-only), before the other two. My questions are - Does anyone know when this extra header was added? (I assume that it = was added sometime in the past 5 years or so) - What is in these segments, and is it safe to assume that multiple = shared libraries can map the same RO content to the same address? A+ Paul= From owner-freebsd-toolchain@freebsd.org Sun Feb 23 21:00:51 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3EAC0248A7A for ; Sun, 23 Feb 2020 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48Qczk6W9Qz492Z for ; Sun, 23 Feb 2020 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id C312C248A58; Sun, 23 Feb 2020 21:00:50 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BBD79248A56 for ; Sun, 23 Feb 2020 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Qczk2qdgz4922 for ; Sun, 23 Feb 2020 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1B5B71A772 for ; Sun, 23 Feb 2020 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01NL0nFe093896 for ; Sun, 23 Feb 2020 21:00:49 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01NL0nrQ093895 for toolchain@FreeBSD.org; Sun, 23 Feb 2020 21:00:49 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202002232100.01NL0nrQ093895@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: toolchain@FreeBSD.org Subject: Problem reports for toolchain@FreeBSD.org that need special attention Date: Sun, 23 Feb 2020 21:00:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2020 21:00:51 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 234232 | clang Assertion failed when building the port dev 1 problems total for which you should take action. From owner-freebsd-toolchain@freebsd.org Sun Feb 23 22:17:11 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8886C24A7FB for ; Sun, 23 Feb 2020 22:17:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Qfgn6cVpz4b6n; Sun, 23 Feb 2020 22:17:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 848A212EEC; Sun, 23 Feb 2020 22:17:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::3957:54:206:71ec] (unknown [IPv6:2001:470:7a58:0:3957:54:206:71ec]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1B7BF2CB4A; Sun, 23 Feb 2020 23:17:07 +0100 (CET) From: Dimitry Andric Content-Type: multipart/signed; boundary="Apple-Mail=_EF1978AC-F62F-4553-819B-7D35F4D7C9E2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: RO Elf program headers Date: Sun, 23 Feb 2020 23:17:01 +0100 References: <9AAE92C0-4FD7-43DF-A805-EFEE7EA06B56@wanadoo.fr> To: Paul Floyd , FreeBSD Toolchain In-Reply-To: <9AAE92C0-4FD7-43DF-A805-EFEE7EA06B56@wanadoo.fr> Message-Id: <0A123A6C-F16C-4BBE-8816-CA94BCAEBABF@FreeBSD.org> X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2020 22:17:11 -0000 --Apple-Mail=_EF1978AC-F62F-4553-819B-7D35F4D7C9E2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 2020-02-23 16:31, Paul Floyd wrote: > I=E2=80=99ve been working on getting Valgrind to work again on = FreeBSD. > Probably the biggest problem at the moment is that Valgrind doesn=E2=80=99= t (yet) handle the read-only program headers. > If I run =E2=80=9Creadelf -l libc++.so.1.0=E2=80=9D on Linux I see two = LOAD headers, the first one =E2=80=9CR E=E2=80=9D (read-execute) and the = second one =E2=80=9CRW=E2=80=9D (read-write). If I do the same on = FreeBSD then I see a third program header which is =E2=80=9CR=E2=80=9D = (read-only), before the other two. > My questions are > - Does anyone know when this extra header was added? (I assume that it = was added sometime in the past 5 years or so) Most likely a very long time ago. > - What is in these segments, and is it safe to assume that multiple = shared libraries can map the same RO content to the same address? If you use readelf -l, you will see a "Section to Segment mapping": $ readelf -lW /usr/lib/libc++.so.1 Elf file type is DYN (Shared object file) Entry point 0x5c000 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz = MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 = 0x0001f8 R 0x8 LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x05b1d4 = 0x05b1d4 R 0x1000 LOAD 0x05c000 0x000000000005c000 0x000000000005c000 0x06bbe0 = 0x06bbe0 R E 0x1000 LOAD 0x0c8000 0x00000000000c8000 0x00000000000c8000 0x004c78 = 0x004c78 RW 0x1000 LOAD 0x0cd000 0x00000000000cd000 0x00000000000cd000 0x000de0 = 0x0032f8 RW 0x1000 DYNAMIC 0x0cc5c0 0x00000000000cc5c0 0x00000000000cc5c0 0x0001a0 = 0x0001a0 RW 0x8 GNU_RELRO 0x0c8000 0x00000000000c8000 0x00000000000c8000 0x004c78 = 0x004c78 R 0x1 GNU_EH_FRAME 0x046c34 0x0000000000046c34 0x0000000000046c34 0x003244 = 0x003244 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 = 0x000000 RW 0 Section to Segment mapping: Segment Sections... 00 01 .dynsym .gnu.version .gnu.version_r .gnu.hash .hash .dynstr = .rela.dyn .rela.plt .rodata .gcc_except_table .eh_frame_hdr .eh_frame 02 .text .init .fini .plt 03 .ctors .dtors .jcr .data.rel.ro .init_array .dynamic .got 04 .data .got.plt .bss 05 .dynamic 06 .ctors .dtors .jcr .data.rel.ro .init_array .dynamic .got 07 .eh_frame_hdr 08 E.g, segment 01 is R, and contains things like the dynamic symbol table, = relocations, exception handling information, and so on. It is fairly = safe to say that these can be shared. -Dimitry --Apple-Mail=_EF1978AC-F62F-4553-819B-7D35F4D7C9E2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXlL53QAKCRCwXqMKLiCW o0k3AKC5NIowfqjaky6Vo+3DD5gO5Im9ZQCZATfSumuduazV5iBXX+0MnW1WRlo= =AL6S -----END PGP SIGNATURE----- --Apple-Mail=_EF1978AC-F62F-4553-819B-7D35F4D7C9E2-- From owner-freebsd-toolchain@freebsd.org Wed Feb 26 20:11:53 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 89E13243949 for ; Wed, 26 Feb 2020 20:11:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48SRls1gH0z491n for ; Wed, 26 Feb 2020 20:11:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 134D1243948; Wed, 26 Feb 2020 20:11:53 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00F42243947 for ; Wed, 26 Feb 2020 20:11:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48SRlr40PNz4918 for ; Wed, 26 Feb 2020 20:11:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 495645116 for ; Wed, 26 Feb 2020 20:11:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01QKBqXW045647 for ; Wed, 26 Feb 2020 20:11:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01QKBqWv045646 for toolchain@FreeBSD.org; Wed, 26 Feb 2020 20:11:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 214855] head -r309179 TARGET_ARCH=powerpc64 clang 3.9.0 based cross build: powerpc.powerpc64/usr/src/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal error Date: Wed, 26 Feb 2020 20:11:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhibbits@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2020 20:11:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214855 Justin Hibbits changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |Overcome By Events --- Comment #7 from Justin Hibbits --- We don't use ancient binutils on powerpc64 anymore --=20 You are receiving this mail because: You are the assignee for the bug.=