From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 92E223858D32 for ; Tue, 3 Jan 2023 01:35:31 +0000 (GMT) Received: by mail-pj1-x1029.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so34430037pjj.2 for ; Mon, 02 Jan 2023 17:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=K86YqLQcbzeYYo8Tq5ohH5u+SHDFvbdSu8sKIprymY4=; b=nB1CQh25d0lG2OH6cnu/u8fuuTRoKxT0VJmpi6vYSAu8BWmiLlyJWQrLoq2LYdNIoQ y0MTXtbWk+/Qn8XbkwPxREn/2SvseU+DvP9fGt6h2ZpO/aTBBmv7FGuoWsAV9KkkYiiA Qsax0p6Wm7f6IlVLW0F8cYotxreckR8sPBo2arRrz5bLtIXycVpOGbhyNi/T/9Sn0uR1 pMJh09fIZicG7ceUmyNFlFLbHoHu0wesU7vL2LVtCctByp/BwRV4jAnAQ58q4ebvc2Mm uHH/G2kv6u1eDWmYUP9Mo8+jZb57HGRkm3RS+jiyq8nshTqKzh3lbQLv0jVjSscgFw79 UcRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=K86YqLQcbzeYYo8Tq5ohH5u+SHDFvbdSu8sKIprymY4=; b=chTcXfFp/gAyX34bGOAOHRw8u+0gD+glcITx3MzwhFQmNI5+60n/TsvG/trnOObWDM 8BwyHEawTNskBTpMccnGC5TlzN5GwUBvWXqFRfxwVUtMXOW0mNJu8igYT5MM5mwsnQTb owqV0hk6360C8RYXROzU0zXAkERI6RsiBDUobqJXDQrhHtQkKoHseexmjAEKBpJfLsac c/4TqrhnGo1k4VP5DUPgfAB43vP+PHxzBS9MKnqCsJfF1LSSiXkXBcLDuqreZCfbXEUq 1MzhezshQSAe/ZkURiB/lTcg4UCo/HylL5MvLGf7p8dHEfudyvXM69iH22Jf0PNlPGjj 1bFw== X-Gm-Message-State: AFqh2ko6wlJpVYH3yDaBzB5ss6mzAEGcv5bFPkskFQslWSV+4fv4xjgT DAEKR0Ahg6FxVe2JwkQBMS6eFT9Z6/Y= X-Google-Smtp-Source: AMrXdXvWD3EKAup/pqvv5q+y1+pIxGAwMvIsL3M5+JGBbEB4j7+obG21Yty5uc/ajRbee9PcobGG4A== X-Received: by 2002:a17:902:6a83:b0:192:7258:dfb1 with SMTP id n3-20020a1709026a8300b001927258dfb1mr34614432plk.59.1672709730533; Mon, 02 Jan 2023 17:35:30 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:fdf1:1b66:cff8:1ab8]) by smtp.gmail.com with ESMTPSA id p2-20020a170902c70200b001898aa48d17sm11412615plp.185.2023.01.02.17.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 17:35:29 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 86FA61142DF3; Tue, 3 Jan 2023 12:05:27 +1030 (ACDT) Date: Tue, 3 Jan 2023 12:05:27 +1030 From: Alan Modra To: Hans-Peter Nilsson Cc: binutils@sourceware.org Subject: Re: [PATCH] Fix ld bloat introduced between binutils-2.38 and 2.39 Message-ID: References: <20230102160857.ABA7F2042C@pchp3.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230102160857.ABA7F2042C@pchp3.se.axis.com> X-Spam-Status: No, score=-3027.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Jan 02, 2023 at 05:08:57PM +0100, Hans-Peter Nilsson via Binutils wrote: > That may sound like an argument for setting the bfd_arch_arm > ELF_MAXPAGESIZE to 4 KiB, but then the obscure corner-case > wouldn't be properly handled. Agreed. It's what x86 did when facing the same thing. If anybody cares about the obscure corner-case you identify then they can just use -z max-page-size. Or edit elf32-arm.c. > Instead, I suggest simply making ELF_MAXPAGESIZE generally > overridable by means of a --with option at linker > configuration time. I dislike configure time options that affect linker behaviour, but I realise I'm flogging a dead horse since we already have a lot of them. However, this particular option is worse than most since it affects all ELF targets. That can't be correct or useful with --enable-targets=all. -- Alan Modra Australia Development Lab, IBM