Re: [linux-next:master] BUILD REGRESSION 543b9b2fe10b2e12b8d773af65314d322f91e479

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 9 Jan 2023 at 14:31, kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> branch HEAD: 543b9b2fe10b2e12b8d773af65314d322f91e479  Add linux-next specific files for 20230109
>
> Error/Warning: (recently discovered and may have been fixed)
>
> aarch64-linux-ld: ID map text too big or misaligned

This is caused by linker veneers ('stubs') that are emitted into the
ID map text section:

 *(.idmap.text)
 .idmap.text    0xffffffc018c04000       0x38 arch/arm64/kernel/hyp-stub.o
 .idmap.text    0xffffffc018c04038       0x28 arch/arm64/kernel/sleep.o
                0xffffffc018c04038                cpu_resume
 .idmap.text    0xffffffc018c04060       0x38 arch/arm64/kernel/cpu-reset.o
                0xffffffc018c04060                cpu_soft_restart
 .idmap.text    0xffffffc018c04098      0x468 arch/arm64/kernel/head.o
                0xffffffc018c04098                init_kernel_el
                0xffffffc018c04290                secondary_holding_pen
                0xffffffc018c042c8                secondary_entry
                0xffffffc018c043c4                __enable_mmu
                0xffffffc018c0440c                __cpu_secondary_check52bitva
 .idmap.text    0xffffffc018c04500      0x3c4 arch/arm64/mm/proc.o
                0xffffffc018c04500                cpu_do_resume
                0xffffffc018c045a8                idmap_cpu_replace_ttbr1
                0xffffffc018c045d4                idmap_kpti_install_ng_mappings
                0xffffffc018c047bc                __cpu_setup
 *fill*         0xffffffc018c048c4        0x4
 .idmap.text.stub
                0xffffffc018c048c8     0xf7c8 linker stubs
                0xffffffc018c1c8c8                __idmap_text_end = .

It seems unlikely that the entire .idmap.text.stub section is
dedicated to veneers for code in .idmap.text, and the linker probably
dumps them here because the next output section is non-executable.

I have patches on the list that move the ID map out of the .text
section altogether (among other things) and this seems like a suitable
workaround for this issue as well.

https://lore.kernel.org/all/20221129161418.1968319-3-ardb@xxxxxxxxxx/



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux