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=D09Be1J9nQiFIpgix0ZuWUp+n5CioIl2O4JUecAS8RI=; b=IZKD3n4ipm3BV1Qmv6396lHQKZGXKqwQQkdRVV4L8alT/t5o7NJu4nZcR/OZJWVrkm lgxW+5DMcncNR02A0qAg2RqgZjkVo/PX+VXcR2qlF9COzmSmE6HfX7d54qu4s4Mq03sY fC/GvFNRNPniDJe6ExIVp5Fx4aZSKs3KObpV98yhWRWdWgElkoLLouLxLCPlbNB+31vy syXH4QsyofjqAMU+JHEKWfiJeWa2a/wR9QIxCgLFkHK8xNwqSJSZIVuTlMIk5EpQZl55 KL+Mak42Xoyfdf3bp7fb9zgHyp1l+XBpOMJmZRHvzH2gflPPp1iLbJPcX5vZvVCTotPZ fitA== 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=D09Be1J9nQiFIpgix0ZuWUp+n5CioIl2O4JUecAS8RI=; b=FImCuQGUCtkuJVEd4Gv/vbhg0vjLeS7g6rK/9x98dcFRFDa5Mp3O1iyErXHFmmHCqx KfLJWnYaoXtL7r+JK/FujtRkHASCMzCM45Gk3ULMht9r5PcpzSzxZsyWi0KkxBtrLRD3 qLESFf4WOJD/QXzh1vKblLfu4I/3DHqkz7Q1gIriubFN3RZcs8uyuaEdqvb+k3QAJxit ZfUyy5G9qcpRK+rg45E0wZeUyWLiV236fFbya656vrT8yHlcb8eqpGsXjvXjz8HEcRio FIQ0ZCu8AZQHtYEMLdxSNtNpZd/ePuLmmZpgc4DOxSeHcQe9YTaLnrFwGGs/ICrEd9Ra 6szQ== X-Gm-Message-State: AO0yUKUKqJ23kydg27O5IDVIEieyMaVmJxEYCauU3ZXcDJWwNeyrc+M2 rnuqfoopiSwurtZt5olpeejb2cdElNiOYA== X-Google-Smtp-Source: AK7set/9ut6QbEMtRCwQ86EsTexiSbd4yoJ3Tq+RIDldE0WmCC2n06MQ0ifM6xHktJuLzLoWjOF87g== X-Received: by 2002:a05:6402:b68:b0:4a2:223d:3bfa with SMTP id cb8-20020a0564020b6800b004a2223d3bfamr9085825edb.3.1675031555376; Sun, 29 Jan 2023 14:32:35 -0800 (PST) Message-ID: Date: Sun, 29 Jan 2023 23:32:34 +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: From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" In-Reply-To: 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 08:50, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: >> + if (libdir) >> { >> - fprintf(stderr, "Error: neither DXE_LD_LIBRARY_PATH nor DJDIR are set >> in environment\n"); >> - exit(1); >> + /* For compatibility with version 1.0.4 and earlier, also search >> + $DXE_LD_LIBRARY_PATH or $DJDIR/lib, if set. */ >> + new_argv[new_argc++] = "-L"; >> + new_argv[new_argc++] = libdir; > > How will this work with NUMBER_OF_LINKER_ARGS being 7? Forgot to reply to your question, sorry. In main(), additional space for 2 more arguments is allocated if libdir is set.