| Message ID | CAMe9rOpYNsOw-ESSSj1-K098mGUS-hCxGKRN4E9hDd9O82d7Wg@mail.gmail.com |
|---|---|
| State | New |
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id AE2AD4BA23CC for <patchwork@sourceware.org>; Thu, 16 Apr 2026 01:48:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE2AD4BA23CC Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=doNo8tJX X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org 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 5A0A24BA2E0E for <binutils@sourceware.org>; Thu, 16 Apr 2026 01:47:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A0A24BA2E0E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5A0A24BA2E0E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2607:f8b0:4864:20::1029 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776304049; cv=pass; b=F1RuAdY/EFgYXgdpNXrGcj+9HzStIISpEN8SjJHMB/Nk7AkSgQYEEIhIbBzMg2zvoBV+rNJrML+yDtJW5LCjaORlOKFDo7UntjxdkDYNikA7KhveYWHDGulGFQ85AZhjiN5lNHLygE8qnDMWE8jIJGu1TqIAGujf8zAm+g2rgQA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776304049; c=relaxed/simple; bh=PUUkx1b2kbrGZZFdRuJYtwEy+odYXYDOQHOrxAIhzQ4=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=LcodIiDq9qwRTFk59h2I1FquOv4IKHvxB+lkEWvkv/bPDT8udDOJ8pdvaE/00FjkqUv1z5cxkuUI9QK1n7TZRQQM4SOXm7ewaiqgF00z9nVrMvceYXkO4PQbuqtVKGHOXCXI32Cs5Qz9bam8HixVsqiADpnknWDcd3vavcleLtA= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A0A24BA2E0E Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-3590042fa8eso5468783a91.1 for <binutils@sourceware.org>; Wed, 15 Apr 2026 18:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776304047; cv=none; d=google.com; s=arc-20240605; b=RhmKI82eF+pzTzuHuIzVFwYZ2QknAwvbysiRj5cQBMPIcD5fiOEtIYucd8zM+flNnY OQS9/YWoQCPo4dc+7XdB789LoRWDkBzCMD48KMTOgbsYA5xmfuG3IPyZGXMF0+NXLaaZ IdvgLlqshhdngyXvgekkEMWTqxl+W7E33xjXlhgEITNiAY+HP3hxp8Vpon/qNI/azVfh RBwZ7f4DlWq/m4iq4nIUHYn1C/OGIM/wEHYkKBLWWL3gBus/2LNweADGpqd1ZRshXA4p N90n/nrNVN7w32b/sfRb2Tt5kKTbSrleFVqxzWoR8IJryGTB3naO7xgzjd6FGdbxwq5C wY5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PwwFmRr0gtDvSm9tsOOCWW8c3JMyVF9H6oWyIk9PZto=; fh=HobqrqT7OVVJXYNLZLhTNQSngMLb7joE+rqP63Hsd54=; b=jpuFlxF/yN40mSYXFOGyx+FesiGwXYA8kPvZKIRTDhIRQK1sU4yh6PEs5P04HZ/dVi vdwK5B9cw9EWAl4SH4j0m2cuEEpFv6pqeeznz4FE8/bRF8sxylD7ytOBpy5ZSVNKdD3P bDPr3slOPzNSr88B8+uo+QuTUqAs2J2U9yVwJzB69ect4pEZFQDQrhXUUCkdwikiqywb WRRH8VZ3kDi5+NAN0JRcIMXQO4k+Gd1TGO4bilEu1GdsWsU/4QztxXTtdgCmjLf1aRLD N3d9H52U+6gpKQsDYPDH44NfCg0e8VLVR2WchtwW9tIBvHFRpYB3bGZEoFcAaJDUbnr7 Oq1A==; darn=sourceware.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776304047; x=1776908847; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PwwFmRr0gtDvSm9tsOOCWW8c3JMyVF9H6oWyIk9PZto=; b=doNo8tJXi+wVbzLMr5IMpTjKqfQsnMXfEL7h7zAU+FARytD4sAyKN7xBXGybaUvxgc sB3cU+CWuft1fPdL7m9w0FMzw5joptjK5nnqMwjHvax++zNE/a+x2MBMrz2/RzHK9DmG TFA0nS7T6DHsiTwgvp93EG1Fl5Ef8lc5OyGvAT14RO+iDiku1I6NLDBRA/4Z3S++vqF9 VxSA+j3FjmjrinqiwlrxcXVq1vcsWeEgbX3n5CwEYb5xVEpisfaem67ZpHRJ3pRTXfUi Mq0XXzVfrYiiA2bwsJliMWdlHcMlvvaWwBPvxs9R72mAl2aVi/OxWvwFIofL8fBcVxg9 jXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776304047; x=1776908847; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=PwwFmRr0gtDvSm9tsOOCWW8c3JMyVF9H6oWyIk9PZto=; b=l2RRmvh+0NFsdDo+Hj/fY74HS2N/sMq1RaXHXWIO/EA37Xdcawch4KAdHcIlbMMRgb vXu3liwlqpZZJEvBFZKbmwCMcUMDOdU6ZLVCK5ygCX8NzU4lxJKNsQwg0ZZMKjRqLXde HWHh5CrclZtOx7LqeYyvDsnJGQLkn0hWxokmw9BYCSjxounhVqoxnbDE3tEwkTPE64lg xfz/0bED/O6n7EzyBfAyo5OOFui3RPHFUj5wiTH2J8NbBwe+UCJhSEYzasHZq7+NiwFm WmDsp3CCcf4ITrBUCY2KskhgO2diBK/yf9P81iKcnER0lShM2YSZYLAnhmefgRfZu7NU 2v9A== X-Forwarded-Encrypted: i=1; AFNElJ9O3Vg3d0h1OhRllG6dkQUCmrietBKfZlVtSXauJtzOPFBZ7fMdiMEHXjScK7kian+9ysoSKXjkPA==@sourceware.org X-Gm-Message-State: AOJu0YzAWt421CeMQ6+TNEHPtcd01Zylumeg18qEKX7jcihPBsuouq7x tq8r24rw7BRBWYB0FSSugz/6h1KiJBc1AzU+gVoMm3TqAfcWfdRyWKcwqoM9RGgQSu03PBkqmSd nKn6NlLppkVs4O8T6vQ4IjC4VI/kHyjAwa5XIqtyW0A== X-Gm-Gg: AeBDietpwwRl+4a8cMqP8/AZV/bJJAP2UIMXwHNVNhp37iS+DH+tHvccljW81Z8kAOg qOh5ZwjGF86KHTecVkBHIOLx6h0Di7eyvBnJyOv1N9EvGu+Pjc9p1FkxkTOGabcAFkstFxHhCq5 tgtZEmyU6SVbE3XXIJ8ZYQXExxhvF/8Tkt5h+mDbuq62MagZ5ZPJVH6xRR/KobjrvhOwkHPs3x9 WNP2d7Klu/Sx9A5j6G48lQHy5M2GfTAEznXWiP+UtruuIOQkVt0ZB0P4/iCffOzVpQ05VNRuKTq BODI1Eu/Fx7Cn/WmGdU= X-Received: by 2002:a17:90b:3f0e:b0:35d:997c:8ebf with SMTP id 98e67ed59e1d1-35e4285b69bmr23900196a91.21.1776304047476; Wed, 15 Apr 2026 18:47:27 -0700 (PDT) MIME-Version: 1.0 References: <87zf45jrkm.fsf@redhat.com> <e9c7efea-e86a-4bae-a053-66d4867ee760@suse.com> <86v7es19vn.fsf@baylibre.com> <792221e9-05d1-4202-983c-ce4413e3e999@redhat.com> <mvmbjgcko4f.fsf@suse.de> <9b7b9a70-1727-4664-b8cc-0835f4d9cebe@redhat.com> In-Reply-To: <9b7b9a70-1727-4664-b8cc-0835f4d9cebe@redhat.com> From: "H.J. Lu" <hjl.tools@gmail.com> Date: Thu, 16 Apr 2026 09:46:49 +0800 X-Gm-Features: AQROBzChlJQhcmcTMzHvLYCaZMbTylP4uNZdAMtk8oK1RaYag5towga90K2OXNM Message-ID: <CAMe9rOpYNsOw-ESSSj1-K098mGUS-hCxGKRN4E9hDd9O82d7Wg@mail.gmail.com> Subject: [PATCH, COMMITTED] ld: Move "-O 0" option to binutils 2.47 section To: Nick Clifton <nickc@redhat.com> Cc: Andreas Schwab <schwab@suse.de>, Jan Beulich <jbeulich@suse.com>, Fangrui Song <i@maskray.me>, =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me>, Binutils <binutils@sourceware.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3010.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
[COMMITTED] ld: Move "-O 0" option to binutils 2.47 section
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
H.J. Lu
April 16, 2026, 1:46 a.m. UTC
On Thu, Apr 9, 2026 at 5:03 PM Nick Clifton <nickc@redhat.com> wrote: > > Hi Guys, > > OK, attached is version 3 of the patch. It adds "-O default" as means > to reset the optimization behaviour back to the default, and just for > completeness it also adds "-O fast" as an alias for "-O 0". > > How does this version look to you ? Since "-O 0" option is added to binutils 2.47, move it to binutils 2.47 section. * NEWS: Move "-O 0" option to binutils 2.47 section. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> --- ld/NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 16.04.2026 03:46, H.J. Lu wrote: > --- a/ld/NEWS > +++ b/ld/NEWS > @@ -1,12 +1,12 @@ > -*- text -*- > > +Changes in 2.47: > + > * Add a linker optimization level of zero. Using "-O 0" on the linker command > line will stop it from combining the contents of mergeable sections. This > can significantly speed up the link process at the cost of producing larger > binaries. > > -Changes in 2.47: > - > * Add linker support for --start-lib/--end-lib options and LIB linker script > statement for treating a list of object files as members of an artificial > archive. Wasn't that "Changes in 2.47:" put there prematurely anyway? Doesn't this normally get added while cutting a release? Jan
On Thu, Apr 16, 2026 at 2:17 PM Jan Beulich <jbeulich@suse.com> wrote: > > On 16.04.2026 03:46, H.J. Lu wrote: > > --- a/ld/NEWS > > +++ b/ld/NEWS > > @@ -1,12 +1,12 @@ > > -*- text -*- > > > > +Changes in 2.47: > > + > > * Add a linker optimization level of zero. Using "-O 0" on the linker command > > line will stop it from combining the contents of mergeable sections. This > > can significantly speed up the link process at the cost of producing larger > > binaries. > > > > -Changes in 2.47: > > - > > * Add linker support for --start-lib/--end-lib options and LIB linker script > > statement for treating a list of object files as members of an artificial > > archive. > > Wasn't that "Changes in 2.47:" put there prematurely anyway? Doesn't this normally > get added while cutting a release? > > Jan If they aren't taken out before 2.47 release, they are in 2.47 release.
Only put labels in first column of tests, for hppa64-hpux. Also trim off trailing whitespace. The test will continue to fail on hppa64-hpux until Dave's dummy milli.a testsuite change is committed. diff --git a/ld/testsuite/ld-elf/merge5.a.s b/ld/testsuite/ld-elf/merge5.a.s index 8fe6a6967f2..8a635d09834 100644 --- a/ld/testsuite/ld-elf/merge5.a.s +++ b/ld/testsuite/ld-elf/merge5.a.s @@ -1,4 +1,4 @@ -.section .rodata.str,"aMS","progbits",1 -.global .merge1 -.merge1: - .asciz "abc" + .section .rodata.str,"aMS","progbits",1 + .global .merge1 +.merge1: + .asciz "abc" diff --git a/ld/testsuite/ld-elf/merge5.b.s b/ld/testsuite/ld-elf/merge5.b.s index 79ac2fc4e6c..8ed36dfeacb 100644 --- a/ld/testsuite/ld-elf/merge5.b.s +++ b/ld/testsuite/ld-elf/merge5.b.s @@ -1,4 +1,4 @@ -.section .rodata.str,"aMS","progbits",1 -.global .merge2 -.merge2: - .asciz "abc" + .section .rodata.str,"aMS","progbits",1 + .global .merge2 +.merge2: + .asciz "abc"
diff --git a/ld/NEWS b/ld/NEWS index aa7a9251821..2de87ae227c 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,12 +1,12 @@ -*- text -*- +Changes in 2.47: + * Add a linker optimization level of zero. Using "-O 0" on the linker command line will stop it from combining the contents of mergeable sections. This can significantly speed up the link process at the cost of producing larger binaries. -Changes in 2.47: - * Add linker support for --start-lib/--end-lib options and LIB linker script statement for treating a list of object files as members of an artificial archive.