From nobody Fri Apr 19 10:43:50 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=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1621538693; cv=none; d=zohomail.com; s=zohoarc; b=PTNizBhT87Zvfk34ky04fv4x7AkjCNgg2I9KajE6GUb00QttsHrklrg1sveAaji6ytj4Kk24QVLhC0wMqRzQ0SYf9Z+g/N06FGtMJgNGT2/cA/vh5Mo+r9ctVYhR4bva9IVn6wmz6Dul3BEU2W6l09LiTNKPMw/SO3Vo9MRZay0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621538693; 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:References:Subject:To; bh=kXuRymsAN2nocYvsmZ9+3AIZjtnxpUG83BRbq49K/XU=; b=YCWI50gE6Il/vCwiUou20VriigGwt7sihsu9Y0E1mgg06UhcDHzlLIV6a2r+ktSWaYlkgeNDPqtnqv8BCF43cAitZ5qPposCzwWOci7MowuGcDeS5zSV9XvQ9lpJWSbg+JPvKlyOaYMKeHajlvo/svPl6R4el1NMv1Jnt7wNzJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1621538693503530.4593999405482; Thu, 20 May 2021 12:24:53 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 87C1A10619E4; Thu, 20 May 2021 19:24:49 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 4A1F810619D0 for ; Thu, 20 May 2021 19:24:35 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Thu, 20 May 2021 12:24:35 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id p2sm4129812wrj.10.2021.05.20.12.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 12:24:34 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id B5A975A22061; Thu, 20 May 2021 20:24:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yKrUYDy5UjEPvsoCgKgLp85fAo7EJtFHgX+0tmFsl/E=; b=bPSmznUm1/+Rw/wYs8t3/BfaIY+cmRU/T9c3HJkQDsapcKqBZ0Lpc+jt3UGveB6cMT mezoMas07SjZsTgDA1aoYukpwONDcRyWVQZqO6hJwdJFM/uThF+VAJknb20p+6WxBiDE 91c4K8VUym2yvnxXATdYowmFZjNDwIcknRX0ZQ8P2UNtZ1N6x7oDgO/2qNd9Yx+9R7pO Z8orQNdGKSR7DpBxwu7M743c9+1NEQ756Sm+lOrXa1kbbSGaU1zMwFZlEvhXeD6Bl82j bznHJJakhj/igPTpdhs7TsvqWrgXQr2E4uhKpQossM6TtaJeTNRxjJIwdHjZ012Bz1UD QBHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yKrUYDy5UjEPvsoCgKgLp85fAo7EJtFHgX+0tmFsl/E=; b=PBztF/TankN2BAx5LpPSUYmj9lUFQacRVGLEYMOIfjXpkhw3kbvHErMU8bhYvl0VMv ckzPX3hiY2VJOGb32st0HMyoreckzWikWzIFjXqF1kTor0vlkhUG9Qkk61Hy0u5rODdS rUyK/wy3GY8q9SJDkoHtSmn8TvujqxHwxhWed5g1plcs8G0FTJdDraqE1p8Bbmm91VAS D2JlsnbRq36iVVT4Ehdhsm8CsUdI60hLYglqy3W5IxbU1zV3JTy6HYMbIG4ohpJ1GAIW mOsFBDbuXxSh90eaeuibgyDziUDBVwCuHf3ukcqHbsU9N/v17NIIm8PgQiJ6jdTY4WS4 4p1Q== X-Gm-Message-State: AOAM530rML2NB9DjYyD2bYlLbB/1kwmNESpxKo7Z0LL24zZF2WJtmjP9 ZilcMhjdZp3ombIb5IexwkU= X-Google-Smtp-Source: ABdhPJwk4mDvJI2YrcFvFDLqNJGM59qcdLxuTcmY49SjvhkoFjY5QK4qBqT3rcCEQ7+rRGkbUJ8LaQ== X-Received: by 2002:a5d:4b87:: with SMTP id b7mr5595192wrt.129.1621538674748; Thu, 20 May 2021 12:24:34 -0700 (PDT) From: Sergei Trofimovich To: seabios@seabios.org Date: Thu, 20 May 2021 20:24:23 +0100 Message-Id: <20210520192423.164251-1-slyich@gmail.com> In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: VZIUFSKR25R4YCKDFD4YUD5DYEVRWNEI X-Message-ID-Hash: VZIUFSKR25R4YCKDFD4YUD5DYEVRWNEI X-MailFrom: slyich@gmail.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: Sergei Trofimovich X-Mailman-Version: 3.3.4 Precedence: list Subject: [SeaBIOS] [PATCH v2] vgasrc/vgalayout.lds.S: ignore .node.gnu.property (binutils-2.36 support) List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Sergei Trofimovich Modern binutils unconditionally tracks x86_64 ISA levels in intermediate files in .note.gnu.property. Custom liker script does not handle the section and complains about it: ld --gc-sections -T out/vgasrc/vgalayout.lds out/vgaccode16.o \ out/vgaentry.o out/vgaversion.o -o out/vgarom.o ld: section .note.gnu.property LMA [0000000000000000,0000000000000027] \ overlaps section .text LMA [0000000000000000,00000000000098af] The change ignores .note* sections. CC: Kevin O'Connor Signed-off-by: Sergei Trofimovich --- Change since v1: Use broader '.note*' glob as suggested by Kevin. While at it use newlines to avoid 80-bytes limit and ease review of future additions and removals. vgasrc/vgalayout.lds.S | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vgasrc/vgalayout.lds.S b/vgasrc/vgalayout.lds.S index 533734d..c3e4f60 100644 --- a/vgasrc/vgalayout.lds.S +++ b/vgasrc/vgalayout.lds.S @@ -19,5 +19,12 @@ SECTIONS =20 // Discard regular data sections to force a link error if // 16bit code attempts to access data not marked with VAR16. - /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) } + /DISCARD/ : { + *(.text*) + *(.rodata*) + *(.data*) + *(.bss*) + *(COMMON) + *(.note*) + } } --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org