From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6222B3858D28 for ; Wed, 30 Nov 2022 07:40:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6222B3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669794053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Rh2ldz8JxLT/ZLrzUPNCjVtv+ziu/zl+pSQWVg6q2Ys=; b=BmgDAu0QRDZuaU1a1xOmWg+s4hU75N0BEdcteV4BHDl3bGMVO0d8XRWhKYZCRQ5rnLH8DM hW0LOr9weEyIsivCIKGhgi9wfnzJ7rIqak0tf+coXf+Z4u5c1C3YYAjDrt01tIj681G0yb nG7XRIcNwymf08r7PMwzu5r9kPc4eM8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-550-Q7H5QxTfObuZBY8s8ERd5A-1; Wed, 30 Nov 2022 02:40:49 -0500 X-MC-Unique: Q7H5QxTfObuZBY8s8ERd5A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 12B0A185A7A3; Wed, 30 Nov 2022 07:40:49 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.98]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 664AB1121314; Wed, 30 Nov 2022 07:40:47 +0000 (UTC) From: Florian Weimer To: Xi Ruoyao Cc: caiyinyu , adhemerval.zanella@linaro.org, libc-alpha@sourceware.org, i.swmail@xen0n.name, xuchenghua@loongson.cn Subject: Re: [PATCH] LoongArch: Use medium cmodel build libc_nonshared.a. In-Reply-To: <33054b9098f4ef690cd1639e96b2c148e9e9e490.camel@xry111.site> (Xi Ruoyao's message of "Wed, 23 Nov 2022 19:18:18 +0800") References: <20221123070905.1618136-1-caiyinyu@loongson.cn> <87zgcim07m.fsf@oldenburg.str.redhat.com> <33054b9098f4ef690cd1639e96b2c148e9e9e490.camel@xry111.site> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Date: Wed, 30 Nov 2022 08:40:43 +0100 Message-ID: <87sfi099fo.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Xi Ruoyao: > On Wed, 2022-11-23 at 11:31 +0100, Florian Weimer wrote: >> But shouldn't the medium model be the GCC default if it is required for >> building applications? > > Small code model can support a 128MiB .text section, and most > applications have a .text section < 128MiB. But Firefox libxul.so can > be extremely large. > > It's not worthy to pay the cost everywhere just for satisfying a > monster application. I see, I wasn't aware that the limit was that large. Thanks, Florian