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=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Zatgo+t1v+t565FsFcylyyeJJJVVu8JwSlLEQplt1n4=; b=CQ2gHbyrf4fSF0r+51b6Ab8hUEVCvZR9qIP/wTkELzJcXaaY6jLZ8UtM4zZAAMUlqt 4bDdYvgE3y+g0GfkCOgzYhRnp6Yyrs2eod6aE60ODJ0QOHvWwMZ9QsSSKbjcIyv80/5G nX+4Jkg4dbU0n38D0U3htMUDi5o4Mp0IKi4vHd72MxUtufv8SmzQATq3tw+XFNYZE3rv 8KsiwQPAd4RNh8mG6BIZg23481myjz0D6hZkkoAqQGZc99kUYRLPvkOboSI6FyTWU6JU VPW9ZWmZEG8Vq4e1KrjGKHzhXDzUelwE/SW8xpwhlh2UJ6dlTZeUkx9Ol/YORCFvd+wK X1Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zatgo+t1v+t565FsFcylyyeJJJVVu8JwSlLEQplt1n4=; b=GV0gxOSSBglq6dD0kl4rRUhkEQ+EZiaMFwteScJQPYnitNlAy+cfpFQ/IQoIoKr+0h 4wvptQ30OQVy5fW7A2fX1AAScx4gSDb+TGiMbJTNSOLTJrD8qu/k8arw3GZZyO0SeNkc +x3sZmskwTyURVvhfXVsSBkHq4hh3kM4ePIMcRHC2ajozXvPlpIYQQQCuBIfZ+irvRay DzvS6accwEA0Gneau4Qlvx70rCrNcJJSmK/EOr315XLQCrjMsIG5r1Z/na7HytRdlNQz WgV2JbeSZyZjWW4aV44SRGSNDtjA6QXVMoyDzLXCWoTwOeRGQ+9kr/3XZY/AemHgs/KE vtmg== X-Gm-Message-State: AO0yUKUWx1LcifPibWYwnRExnr41J7Vr75jzW1Miqght2HkMD6GFjyiD T3svjl5jxNcgREeDaJ541NwqD0SThm/h54rY/6iI84gj X-Google-Smtp-Source: AK7set9JXXWn6q4DeD1iY36d44xZ0NgWY4+oboZBUmyTNfRJSRCFEgE8WqS4R/1NdesVQSeL8BCWDVLz+KaQxOjuv+0= X-Received: by 2002:a5d:5b0b:0:b0:2bf:bc64:bb40 with SMTP id bx11-20020a5d5b0b000000b002bfbc64bb40mr375167wrb.34.1675032608755; Sun, 29 Jan 2023 14:50:08 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Mon, 30 Jan 2023 01:50:08 +0300 Message-ID: Subject: Re: [PATCH v3] dxe3gen: invoke ld/as via gcc To: djgpp AT delorie DOT com Content-Type: text/plain; charset="UTF-8" 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 >>> + 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. Ah, that would be this new line and its use in next to it libdir_argc = libdir ? 2 : 0; Missed that one, sorry.