X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=T2+66cPHH2aTqm/0tiV6G7e1t6HfI9M0h0d0YxeJxMg=; b=mbCa/VSE9+4j35w2k9H9PHfotqPVaoEa2Dr8bhyUXaZKGjudU0nKO/VQESZH3lN980 /Ct4KjoaCFm/CDtWuB/5/mDwYPjAeou1I8mQNREUMT3fNTS7f0WaDL1KVO1cukbt5Wkr zoWWxdD05iqv213FGNJbT4jeWA+Zcj36D6J0Gpn36lOH7+EwgxnvqPo+CLbeVML4BwdA FyXK4mUOko+l8ec5/Ij8JWd2hidCzhfJ+9iwj4UpBOOGVJJtjjOTKg3BZ6PvfNt68HxK G9//I+umzwP9eGRmP5u3Oj9TVphVjtzA05L0brnHfoOTxnh1P4DtqCCrjVdgH85h1YjY G4OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T2+66cPHH2aTqm/0tiV6G7e1t6HfI9M0h0d0YxeJxMg=; b=q4yDK+fLy3jthZneq+eDtut+mJrSG31nPGOUbNCcLDJZBVjebTG6aSVU2HRCHPJTNo i4k+vQ5jSMZH3O1Ta07k9ZC0wPYC3ceKXqrwHX1TY2YfpJkdCZtBpYNzHSYsEWKlo3kh UVjg8BsL966Hw+BclRagEQZogvQtDfmCPYf+v3L/WSMUDl8o1vuJNik4Xe5SmqABGWZD jxDSIGDh4/iGIwxQfH6l32l1svnEuFre8EQqFrAJfHzU4fEbxEbtbbZSyciensEkLzAE B5lghtnZ1O65dzgXdF4Xus6ZjdTAxV09EyJiC3q225mAJiNPagIAJmIujoHxwVgm6qbF kx8Q== X-Gm-Message-State: AFqh2kphN6Atw5tOojlksvQdaWGt+y/Ea7BFIGHJTOoOX8g8fErAxoCR 0bPfnDqIKtAAzKp4mWevkRaSh+1uLIHZsg== X-Google-Smtp-Source: AMrXdXsaV9ncjb6MOZC/c0cYEQ8r6gSynNoRWgi+DfP3mym6TlNn/OwJVP0z0ZEe5AQKKS/bCc1xBg== X-Received: by 2002:a17:907:a585:b0:872:ec40:65e9 with SMTP id vs5-20020a170907a58500b00872ec4065e9mr45593651ejc.18.1674976517795; Sat, 28 Jan 2023 23:15:17 -0800 (PST) Message-ID: Date: Sun, 29 Jan 2023 08:15:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3] dxe3gen: invoke ld/as via gcc Content-Language: en-US To: djgpp AT delorie DOT com References: <83sfft981m DOT fsf AT gnu DOT org> From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" In-Reply-To: <83sfft981m.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 2023-01-29 07:19, Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com] wrote: >> Date: Sat, 28 Jan 2023 23:09:30 +0100 >> From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" >> >> Posting this in a new thread since the other became way too long. >> >> This applies to current cvs, and should address all raised concerns. I >> additionally noticed and fixed a small inconsistency in the -h text, as >> linker options are now wrapped via -Wl. > > Thanks. I have only one question: > >> + new_argv[0] = dxe_cc; >> + new_argv[1] = "-nostdlib"; >> + new_argv[2] = "-Wl,-X,-S,-r"; >> + new_argv[3] = "-o"; >> + new_argv[4] = TEMP_O_FILE; >> + new_argv[5] = "-T"; >> + new_argv[6] = dxe_sc; > > Why do we need -nostdlib? It wasn't used before, AFAICT. This prevents gcc from implicitly linking in any libraries (libc, libgcc and crt0.o), as it wants to do by default. It wasn't there before, since it's a gcc-specific option.