From nobody Sat Feb 05 01:34:13 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1F3C919B367E for ; Sat, 5 Feb 2022 01:34:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JrFLg1LWdz4V52 for ; Sat, 5 Feb 2022 01:34:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644024857; bh=hHVvGoZX1F4txkixWaghao2QX6uHhbpjFn00fIQ4ISY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=T1gt/o5A6wvUF4mmNj+0qAVLkBFEgA3pcIwEOTOqyt87nh9znm9LzsiyXZG1Q6LOz1ajAcsF8+1j7zOyU9x3Sck9eWuhTintdCSCu0NucwXErINQ1hvGvvKpVN4TXJCTqDdM8pT6mIQuZkzAFBb+OMJ4YZzjrGaHQiXM2mRy/uHHqnyq7wagPEfIpZFQ1b6rv1U1K3MfDA70rhJW19voMNv+6OvfaIJhBYTd5pV6CwORq2Jaz3wMWDa1tr2AiOyodo7unCpd1UhKCSeSB6W+f56rpGgrGur0YLvwUuvLLe559Uj76CbmwdjulwDHwBiMTd9+jTvxrHulgidbV/cRlw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644024857; bh=rGJa74YcoomA8to8xh0CUFo7ga7YRIxoJvpsLClEFMv=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=GiSmGgIwtfNM28N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zwKShGGWNFYWWtZ8Vys3T 2koTegV5REwsCa8IFuiAwj4lnRxTc8Cf7qbdbDZ1Prjf290h8zh7s_AOYNVkE1O5zbTJw2rKIBfE Yfgqxc10Ulbf_JpU0jIferx2IEAANn7pzgaiZqdtIQgMJczxt4LGSz2Hfcjwf60TVH7L8m7VPg_b z4WjIx11pwDdlQOdZsQvtM90v2XzM7CZTOriKFfQ9gyRdGvW4yGR4JmcX0.LoC2P84BVmWYLzSBn Bg8dvDtwoBQpstuAM1Y4_QjXk8qIdp7uAC93ta3kOlBUiR_uGFg7nvLxmfsAA9C4LkHjLcDTwU_6 sFHvopQQ_CF3zanD0.iyp5xfq.CwjcRztfdKveSOgZLOw4qF_px0XErVEQVsMpK4D8_2.JIw8mNI vQtYuRZODCpwoOv72BGOb4FuDzV3c.92SYO9kZ1x35WOJHr_Z1CsJtppKMEI5oQnVRBR40M01kEh 1ky75Eo7VcXtUEWPcpsPuG_peEo.hUGN6yi46qP1rfuBLDU8.9QEDZpgRQq3UE9qLDM3UtCUUTiY eiRI4OCbxWXJP X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 5 Feb 2022 01:34:17 +0000 Received: by kubenode518.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 53bad5f26baf459c3bfd8cc0c760001b; Sat, 05 Feb 2022 01:34:14 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Troubles building world on stable/13 [How to set just the compiler to avoid ASLR being enabled for it] From: Mark Millard In-Reply-To: <51D494E4-6D8D-49C7-8F0C-FD53311264A5@yahoo.com> Date: Fri, 4 Feb 2022 17:34:13 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <0E1C03AD-7600-4680-A27A-985E6DC64B0C@yahoo.com> References: <20220124165449.GA39982@www.zefox.net> <5FAC2B2C-7740-435E-A183-FB3EF1FCE7F9@yahoo.com> <20220202223208.GA78110@www.zefox.net> <70550346-BC53-458F-B01B-68559E5C9847@yahoo.com> <20220203015149.GA78722@www.zefox.net> <8A85F917-F4E8-4382-B777-15AF7401E616@yahoo.com> <20220204214403.GA85107@www.zefox.net> <20220205000800.GA85644@www.zefox.net> <51D494E4-6D8D-49C7-8F0C-FD53311264A5@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JrFLg1LWdz4V52 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="T1gt/o5A"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N The following shows how to examine and control the compiler's ASLR status (notation shown presumes first cd'ing to where the c++ file is): # elfctl c++ File 'c++' features: noaslr 'Disable ASLR' is unset. noprotmax 'Disable implicit PROT_MAX' is unset. nostackgap 'Disable stack gap' is unset. wxneeded 'Requires W+X mappings' is unset. la48 'amd64: Limit user VA to 48bit' is unset. noaslrstkgap 'Disable ASLR stack gap' is unset. # elfctl -e +noaslr c++ # elfctl c++ File 'c++' features: noaslr 'Disable ASLR' is set. noprotmax 'Disable implicit PROT_MAX' is unset. nostackgap 'Disable stack gap' is unset. wxneeded 'Requires W+X mappings' is unset. la48 'amd64: Limit user VA to 48bit' is unset. noaslrstkgap 'Disable ASLR stack gap' is unset. (noaslrstkgap may be fairly specific to the vintage of main [so: 14] that I'm at and so might not show up.) Being tied to the file, this survives reboots. This should avoid needing the system wide disable that I'd previously listed. In other words: no need for: # sysctl kern.elf64.aslr.enable=0 (which would not survive a reboot). === Mark Millard marklmi at yahoo.com