From nobody Thu Apr 25 15:26:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=pass(p=reject dis=none) header.from=seabios.org ARC-Seal: i=1; a=rsa-sha256; t=1657676161; cv=none; d=zohomail.com; s=zohoarc; b=AcPvRZ1f6g4xBCtyvx3AiuyKH5g35I2h0MXMYzMHkleZUnM0ir2Vq2f7ffaiSGzK+egtcQj6ZFjp8aKOy5oDcT0xado0+XKwDB+uBBUrutPh9apC/SJN+B16aIYSwpIQ4xqKa3WV1HqWy870oz1SpyDMhOdohXdfSOh5P6zT6R8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657676161; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Subject:To; bh=AfrZJNxbGUtggMkoIrt0prd4+hpzQKZTPHkuiSX5xVU=; b=F7jfxYH1URdMmsMlRJtJOBs0e88W29ViThsfIPVJoBOjNMLTCSBwsKL7ubNmfTYfVYNbLPvJebV4STQl132QORYy+7zPRY/5iKng0F9LYyyAdD+C0tHTCqj+JZqAMS5sc6PrI3wIGaPmKp36Njexuoca0uSJjxexP9sKlSLft64= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1657676161500577.1829716851295; Tue, 12 Jul 2022 18:36:01 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 930AD2D9DE; Wed, 13 Jul 2022 01:35:56 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id BF3082D860 for ; Wed, 13 Jul 2022 01:35:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Tue, 12 Jul 2022 18:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seabios.org; s=dkim; t=1657676157; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-owner: list-unsubscribe:list-subscribe:list-post; bh=AfrZJNxbGUtggMkoIrt0prd4+hpzQKZTPHkuiSX5xVU=; b=qWRY6RfHjyVIywm0JMDIElsQ24tiub3QioXTbA3U5HCkrQBf6lN1QCoEFEiaqNecBNJUWw qUc8AY6M2xqsEHliF4uoaBfsEQypqxTJkKJ1tNQUTJoSOFvOfTnelM/7JSECjh7MoWuZ0R PsSlasrjDumzxDaXIYtVELgfH6r329w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=RF1UaKytpXcdJEEPQr8mczkIEP9xoB0VJMN/FFKpd5M=; b=lfnUqadSHumAsN3gnupiOvyUBGNwkLm4/wAaHkvQHxeTOhQAuC326dH6P2yWwM2I85 0XRTfT5viudmWj4rZ0YZPS78Ov4ahWD3+CKwsmZ0JoxLp+o8hZ1kIvGjzcbab/lZTdyY czMPYA9XLrYh//pKu4HTbGmvZyYGJE1R+73MpUrx+jpmUZ43qVi9w0qDmEevfTa7i2/9 Y27TTkeQqatI5ufCsRGQ2tMwusXmdpu/fOJhfrbeaVj8mH4DedTfwPVGO9yOdNswRSY/ kvnG63esIKDa+Gpepr1pfmxf5iUa6OCdxcQmSYsxsGojO6lUTbf0A797VkUueo35cc0H 8HaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=RF1UaKytpXcdJEEPQr8mczkIEP9xoB0VJMN/FFKpd5M=; b=3jLRapxORoJzZfrWWEIRfqVMgoDJt+bbAv/Pf3BbYu6ewZmT85hrQMAcz6hT7enMyq pv54enkPSOyMRq6zOwZl9hwhnNzI8e8giNqb2tmCiHesgJPVfGa2zo8PLg6ALdXfBahP G2KmiX0VDpmoV+a7DE2ka3pVkANSF3mxOhbJ5wiYzk27oQqgwrX866ui/DNbDNTGop+N +2+81o9T2FfF/ubMk5uKuA3V04jKHhCJf85jEEcZKhLR72XXORlRtqKCmcaOcbzOm7Tr QPSZsXhGC0gef+hP3C33gmSpfVu7eDrPpdV9MJkcKguHKviUNSrMibMtS7MprJ6Wyhs+ aPzA== X-Gm-Message-State: AJIora+BixE4Zh5V0lsrnCchAjeXNEqNihcxJgckEfmi5hf63K2pLZgU 614IHogxwYIvYGRL3fAtJF7lDvqV7U9kOGotPquwozAa7MD0FCHiyG29nHyNpStj8CD53qzpvEI cWFjPS7zW5o8jIJGPXbgxbqIKXB9BS+hJSLuk5Cmb9luU+ivV26WCyWJEZ0SZ X-Google-Smtp-Source: AGRyM1siXvMEZQKbCOs8LsYO4AK4akeRxQL09IURjgxxNYHeC/ZhOhCnPSLxuknE7luTiEcL57YwxNY0ciHs X-Received: from maskray1.svl.corp.google.com ([2620:15c:2ce:200:2d73:f468:8288:85ec]) (user=maskray job=sendgmr) by 2002:a17:90a:249:b0:1e0:a8a3:3c6c with SMTP id t9-20020a17090a024900b001e0a8a33c6cmr213842pje.0.1657676117399; Tue, 12 Jul 2022 18:35:17 -0700 (PDT) Date: Tue, 12 Jul 2022 18:35:06 -0700 In-Reply-To: <20220713013508.3428114-1-maskray@google.com> Message-Id: <20220713013508.3428114-3-maskray@google.com> Mime-Version: 1.0 References: <20220713013508.3428114-1-maskray@google.com> To: seabios@seabios.org, Brad Smith Message-ID-Hash: XLHPEI2D5XU52QFKDKIQG3OXBF4M5A5I X-Message-ID-Hash: XLHPEI2D5XU52QFKDKIQG3OXBF4M5A5I X-MailFrom: 3VSHOYgcKB-waOgYfOmUccUZS.QcagSOPWcggSOPWcg.cfU@flex--maskray.bounces.google.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Fangrui Song X-Mailman-Version: 3.3.5rc1 Precedence: list Subject: [SeaBIOS] [PATCH v4 2/4] Make rom16.o linkable with lld List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Fangrui Song via SeaBIOS Reply-To: Fangrui Song Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: ----- X-ZohoMail-DKIM: pass (identity @seabios.org) X-ZM-MESSAGEID: 1657676163360100001 Content-Type: text/plain; charset="utf-8" lld requires output section descriptions to be sorted by address. Just sort the addresses beforehand. -- Changes v2 -> v3 * Sort sections by finalloc unconditionally Signed-off-by: Fangrui Song --- scripts/layoutrom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index abebf02..fa270ef 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -321,6 +321,7 @@ def outXRefs(sections, useseg=3D0, exportsyms=3D[], for= cedelta=3D0): =20 # Write LD script includes for the given sections def outSections(sections, useseg=3D0): + sections =3D sorted(sections, key=3Dlambda x: x.finalloc) out =3D "" for section in sections: loc =3D section.finalloc --=20 2.37.0.144.g8ac04bfd2-goog _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org