From owner-svn-src-all@freebsd.org Sat May 30 23:29:09 2020 Return-Path: Delivered-To: svn-src-all@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 1AEB12FB095; Sat, 30 May 2020 23:29:09 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZHh370yKz3g5X; Sat, 30 May 2020 23:29:07 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io1-f67.google.com with SMTP id k18so3282309ion.0; Sat, 30 May 2020 16:29:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lqscQ7QXgRZF5l3zvZGOTo+0VGME9RBdKTh6YXuKZN4=; b=h1uvcaDF8to2hpHMWoFp45rwIu981qGcKilg07jSou1UimtxXLOzzcwxCjLDknq5YA kll97Vzc9yOpSGGrPhI5ymJUoXMR/IZRpokaekCRFrDQXLOAzIg6J+tCM70YSNEuDaWI rDvmI+D+C/kIoDAc+FdISjVupf9p/ukzJg+1E7oOth5ZtFkGoiSFQ0X8fw7ikb6iiG0K e7lZKTAJjlYEGvDB03KiSOsoreI4JlbovqPzfMQUlm32ROA0LtGYB8RxfmNqR+8k1AMV CnCTwyxTKMlIc191934LOPO8E+igNMIwJS2xzmK76pyl9b7zsOTgPo5rjVwVmFs4HlYL yfxg== X-Gm-Message-State: AOAM531VFB+rjVuBgylzpxcBPUp5YGBJ7Tle9rE0xvHz+Qn1WAyA62Cr UlhtMMIQajvO9I/81/zGx/1ybIloGOe9Uw7st94= X-Google-Smtp-Source: ABdhPJxPRLtDTsQ19s/ReAQPUc7JaonHYbrgWSqCqzu3riCzLMjYXPS7pZ6oVlvN+WDpyUvNxjgMOfHv4/t+4De9qOc= X-Received: by 2002:a6b:7c45:: with SMTP id b5mr12969356ioq.31.1590881346937; Sat, 30 May 2020 16:29:06 -0700 (PDT) MIME-Version: 1.0 References: <202005301957.04UJvRkb020021@repo.freebsd.org> <20200530201405.GL48478@kib.kiev.ua> In-Reply-To: From: Ed Maste Date: Sat, 30 May 2020 19:28:55 -0400 Message-ID: Subject: Re: svn commit: r361657 - head/sys/sys To: Konstantin Belousov Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49ZHh370yKz3g5X X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.67 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-1.77 / 15.00]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-0.65)[-0.647]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.89)[-0.889]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.24)[-0.235]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.67:from]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.67:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 23:29:09 -0000 On Sat, 30 May 2020 at 16:17, Ed Maste wrote: > > On Sat, 30 May 2020 at 16:14, Konstantin Belousov wrote: > > > > On Sat, May 30, 2020 at 07:57:27PM +0000, Ed Maste wrote: > > > Author: emaste > > > Date: Sat May 30 19:57:26 2020 > > > New Revision: 361657 > > > URL: https://svnweb.freebsd.org/changeset/base/361657 > > > > > > Log: > > > elf_common.h: define DF_1_PIE > > > > > > DF_1_PIE indicates that the object is a position-independent executable. > > Only on Solaris. > > Apparently GNU ld sets it broadly now, and there's a patch to have lld > start doing it: https://reviews.llvm.org/D80872 It looks like GNU ld has done it since 2015 in fact. Further, glibc will refuse to dlopen() an object with DF_1_PIE set, as of last June; this seems like it would be a reasonable thing for us to do too. glibc bug for this: https://sourceware.org/bugzilla/show_bug.cgi?id=24323