From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 972A53858D35 for ; Fri, 14 Jan 2022 14:33:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 972A53858D35 Received: by mail-pj1-x1032.google.com with SMTP id l10-20020a17090a384a00b001b22190e075so22110268pjf.3 for ; Fri, 14 Jan 2022 06:33:43 -0800 (PST) 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=sLfba4iSms51n7tw4VkKI3/ufMXFUkTnJdEo0v6jgVs=; b=uVDyFud+OXDaVAb2TGhm8uPNwJFLlHzh+fqXkv1BKs4sDI0PCg2VyHx5pv25SXzCQq YNwrzm27wmJPN0UBQmYSyP5Yl4qUFFg1r3nXT2eP2JWGksdOhex1IqWcOCyt3dVPqIEN +PeO7/gqOSrZAS19oLjT4oW1/MzcnQdmJbWlvDVQ+qZVWgmbS3RWAil9DJ8Ynk4WIpHj iSGXNtmBd5tE8ZvtpCV86RGPGCpj6mYfFhAeU/Qp9cwHrhB/DnPvQP6P6fKIYqoNY+u3 0HSvjMeVJlDfY89a6tOu9g1vGIWvUvt/F5WesW5XHPnZUGA9FdShGDJH9BcQVkBk6WJG GoAQ== X-Gm-Message-State: AOAM5307xkww9Uw/8bOdWXxZg+PubFOJN158ZDm0lVSkGei/VawnHZ9m bbSUqHpiKGkLXGAn+/0qGq9eYwD2DK8XObhNOM3oOkwf X-Google-Smtp-Source: ABdhPJx6PGcY8pkjQUn03AgEuOndjcpZHQBKwTa/COPptc6yw8pOKyHPKLJr9FSGdr6C+b+dS4Q/WciGT8SKGlKFL10= X-Received: by 2002:a17:90a:4e81:: with SMTP id o1mr20555244pjh.28.1642170822726; Fri, 14 Jan 2022 06:33:42 -0800 (PST) MIME-Version: 1.0 References: <87h7a6tmpd.fsf@oldenburg.str.redhat.com> In-Reply-To: <87h7a6tmpd.fsf@oldenburg.str.redhat.com> From: "H.J. Lu" Date: Fri, 14 Jan 2022 06:33:06 -0800 Message-ID: Subject: Re: [PATCH 4/7] Add --early-cflags configure option To: Florian Weimer Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3021.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2022 14:33:44 -0000 On Fri, Jan 14, 2022 at 6:29 AM Florian Weimer wrote: > > * H. J. Lu: > > >> +@item --with-early-cflags=@var{cflags} > >> +Use additional compiler flags @var{cflags} to build the early startup > >> +code of the dynamic linker. These flags can be used to enable early > >> +dynamic linker diagnostics to run on CPUs which are not compatible with > >> +the rest of @theglibc{}, for example, due to compiler flags which target > >> +a later instruction set architecture (ISA). > > > > Isn't it limited to rtld? If yes, I prefer --with-early-rtld-cflags > > It's currently restricted to ld.so. But we might enhance it to cover > static linking in the future, too. But static linking may need a different early CFLAGS. -- H.J.