Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhT06-0002EM-BZ for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2022 09:21:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nhT04-0000Li-UT for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2022 09:21:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhT04-0000LY-J3 for pgsql-hackers@lists.postgresql.org; Thu, 21 Apr 2022 09:21:20 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nhT01-0003Bs-QW for pgsql-hackers@lists.postgresql.org; Thu, 21 Apr 2022 09:21:20 +0000 Received: by mail-qt1-x832.google.com with SMTP id f22so2796278qtp.13 for ; Thu, 21 Apr 2022 02:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k2GPKnPFxIl4r4vXLX7ito/rxom4Bf6w7AR5nwBu9nU=; b=qmHikA4b818df7FZDMd71ByDLgH295Nbp4D7SvT08JhZq3kxSyLSb7R/X99HKOaJmy 6f1NDbrEyFD2Qhe2Tnil7tV91h4rfVgNW0U9bpkGiTdvBBsYaw5KA61cgCT9TTO1X/Cj nI8aHxqRRfMB7B8QQzKK3i1lOg6WLnRRLM91elRU9O7QvNigV3LmYQmXxSwzacfvoEqa A1OHYiKHq91AD3dOgeAwB8VxV4cw52cQ7NBErZj6HhlDNIQ1usCpKdk98t0GJqCyQUAE /lT6mlK7wpgn3vmKXeC63gizDLNwToD9/FEf96lLboTJCapAtQ8uQ+mnp3wZSrUW+DkT k+9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k2GPKnPFxIl4r4vXLX7ito/rxom4Bf6w7AR5nwBu9nU=; b=V40HflVVx0mVyFEyxFCVO0loslHQ7Ak/gOr+fo0Xg2NcYCArvvnJoT7t5x6CUNFUFT 7C7ynlKcXpewyZ4lPHVqOKwdFa7kcWxSokFxa+5Ie7VMQTRrItCMvRMHLoySwCHyHkH2 GW1OjNE0JbJtzJtkzTSgyirHzwGg4JBzjjmVr1gZAfb5GBcKfMdbf1Nn/HuoMHigaLYx +ZzzHj2rOWkzU5R6WKwnZfxr/2uensB66O/ozl6NJdjHzUx5l83OSiKF5LJmiovRV/+g IM7doS+AVLEsDe1UtP9jhLTGKUDsugTRMTg51kVoQH3qDdn+xqikaVScQ3W6oe8pNPKH W5RA== X-Gm-Message-State: AOAM530EjZcCMxLWmHZmOGl8a+in3pP0oex2qjrOO9AHLHN7FXScLNIN tQKvjrVnrSzuFWbT4gftPKm3iGqjL4bdc1KC936iQA== X-Google-Smtp-Source: ABdhPJwsiZB0op5A3sY//w91I0aRuiYKMb7I4r6j34BnyZDlXIXxBXaGl9dqQH+nx5sxomfS76HjBThxFYKrvjtnSuA= X-Received: by 2002:ac8:7088:0:b0:2f1:e898:2971 with SMTP id y8-20020ac87088000000b002f1e8982971mr16515551qto.152.1650532875270; Thu, 21 Apr 2022 02:21:15 -0700 (PDT) MIME-Version: 1.0 References: <20220324011531.va6z5pst5ygtu6zu@alap3.anarazel.de> <3278490.1649338843@sss.pgh.pa.us> <20220407172258.uj5lgd6k25sngeno@alap3.anarazel.de> <3385302.1649353369@sss.pgh.pa.us> <20220407175359.h7gzgmmnbicq75d6@alap3.anarazel.de> In-Reply-To: From: Niyas Sait Date: Thu, 21 Apr 2022 10:21:04 +0100 Message-ID: Subject: Re: [PATCH] Add native windows on arm64 support To: Michael Paquier Cc: Andres Freund , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000b8977d05dd26a1b1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b8977d05dd26a1b1 Content-Type: text/plain; charset="UTF-8" > Why does it not allow that? Is that just a limitation of the > compiler? If yes, what is the error happening? This question is not > exactly answered yet as of this thread. I may be missing a reference > about that in the upstream docs, but I see nowhere an explanation > about the reason and the why. That's also one of the first questions > from Thomas upthread. The following error occurs: LINK : fatal error LNK1246: '/DYNAMICBASE:NO' not compatible with 'ARM64' target machine; link without '/DYNAMICBASE:NO This seems to be a deliberate restriction for Arm64 targets. However, no references were provided. To clarify, I have posted a question [1] on the community channel of Visual Studio. Niyas [1] https://developercommunity.visualstudio.com/t/LINK-:-fatal-error-LNK1246:-DYNAMICBAS/10020163 On Thu, 21 Apr 2022 at 05:07, Michael Paquier wrote: > On Wed, Apr 20, 2022 at 10:43:06AM +0100, Niyas Sait wrote: > >> This issue is still lying around, and you may have been lucky. Would > >> there be any issues to remove this change to get a basic support in? > >> As mentioned upthread, there is a long history of Postgres with ASLR. > > > > MSVC linker doesn't allow non-random base addresses for Arm64 platforms. > > It is needed for basic support. > > Why does it not allow that? Is that just a limitation of the > compiler? If yes, what is the error happening? This question is not > exactly answered yet as of this thread. I may be missing a reference > about that in the upstream docs, but I see nowhere an explanation > about the reason and the why. That's also one of the first questions > from Thomas upthread. > -- > Michael > --000000000000b8977d05dd26a1b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Why does it not allow that?=C2=A0 Is that just a limi= tation of the
> compiler?=C2=A0 If yes, what is the error happening?= =C2=A0 This question is not
> exactly answered yet as of this thread.= =C2=A0 I may be missing a reference
> about that in the upstream docs= , but I see nowhere an explanation
> about the reason and the why.=C2= =A0 That's also one of the first questions
> from Thomas upthread= .

The following error occurs:

LINK : fatal error LNK1246: '/DYNAMICBASE:NO' not compatibl= e with 'ARM64' target machine; link without '/DYNAMICBASE:NO

This seems to be a deliberate restriction for Ar= m64 targets. However, no references were provided. To clarify, I have poste= d a question [1] on the community channel of Visual Studio.

=
Niyas






On Thu, 21 Apr 2022 = at 05:07, Michael Paquier <michael@paquier.xyz> wrote:
On Wed, Apr 20, 2022 at 10:43:06AM +0100, = Niyas Sait wrote:
>> This issue is still lying around, and you may have been lucky.=C2= =A0 Would
>> there be any issues to remove this change to get a basic support i= n?
>> As mentioned upthread, there is a long history of Postgres with AS= LR.
>
> MSVC linker doesn't allow non-random base addresses for Arm64 plat= forms.
> It is needed for basic support.

Why does it not allow that?=C2=A0 Is that just a limitation of the
compiler?=C2=A0 If yes, what is the error happening?=C2=A0 This question is= not
exactly answered yet as of this thread.=C2=A0 I may be missing a reference<= br> about that in the upstream docs, but I see nowhere an explanation
about the reason and the why.=C2=A0 That's also one of the first questi= ons
from Thomas upthread.
--
Michael
--000000000000b8977d05dd26a1b1--