[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: KEEP Re: [PATCH 2/2] xen: Add CONFIG_GC_SECTIONS
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Fri, 9 Jan 2026 18:32:37 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WTPdD+wsNFbIreyF1eJxYrPMA7/rnYYOGUgwVpftcbs=; b=u6cHYBXqOSV0mEBGVa8lthAzvVE18jE491UdHcNcOOHjEEV+0BuXDZNUFKuu3fJOKDngKy/aGO1u2LQGlluP59ZZXlbqw11WKU7dos8mQqJqS0PexJNpBDRfDTLcSsU6nHuviwlZPnOeLU8Z197Y+Ap2E3ELvvLGg05pQm46VPALIWDKAx2n7Ht8mH8izOImzgAuN/H3wvhOSj5QpAkTjmWB69aUfZ/7GeAEHryyFUF+6eD4M29AamubwjzrSbZAOfpkd3ykbEA48KJwGBWvY4K1HgdFHWRRFv4gHCd2u0H1ahQm3up+aGgmhxZswW8OI42bECYtJYGuv2VrGl5d4g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HHVfCkK3JHhDVJ0vvogfReXujRlOkJv+kiG04vTPW04G0/2CiQPruvWPoH/bVp4piHfr+0z7J4icopt4udT/m+XgALTfUUlC22c2ygHU2C/cIHKtZsHaTeFNvwyqACcdlJd5ZVcagOBjltMXoGc1+7n9KeALiqQFLIpBo3M0YmdgMtnRrNhBqD+vMhXag+85ykL7x+fjn63TB6ay5g7pvoGJJ3VOR9zMmEauwWwa28Fneop1yNNYO13ZUK6wRbZVnadRgEg6NXj/bidyv5KcNI6fKBU4O/Y/fhO+Quym+3VUVZU4nmGDWRyJNQpZyS99kJclc5h7vaBrAeOrWSezHQ==
- Cc: Victor Lira <victorm.lira@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Grygorii Strashko <grygorii_strashko@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Delivery-date: Sat, 10 Jan 2026 00:33:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
(trimmed the CC list down)
On 2025-12-12 08:22, Jan Beulich wrote:
On 12.12.2025 02:34, Jason Andryuk wrote:
The alternative is section groups? I'm trying that, and it kinda works
sometimes, but .attach_to_group fails when .init.text is involved.
Here's an example that I think would work, I could make it to
--gc-sectrions:
group section [ 3] `.group' [.text.vpmu_do_msr] contains 5 sections:
[Index] Name
[ 43] .text.vpmu_do_msr
[ 44] .rela.text.vpmu_do_msr
[ 45] .altinstructions..text.vpmu_do_msr
[ 46] .rela.altinstructions..text.vpmu_do_msr
[ 47] .altinstr_replacement..text.vpmu_do_msr
But I don't make it that far. Other files blow up with tons of:
{standard input}:9098: Warning: dwarf line number information for
.init.text ignored
and
{standard input}:50083: Error: leb128 operand is an undefined symbol:
.LVU4040
Line 9098 of apic.s is .loc below:
"""
.section .init.text
Earlier in the file, there is
.section .init.text,"ax",@progbits
but the later .section .init.text entries don't have the extra string.
tl;dr: If I add "ax",@progbits to all the .init.text entries, the file
assembles.
I opened a bug here: https://sourceware.org/bugzilla/show_bug.cgi?id=33779
Regards,
Jason
|