aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorRong Xu <[email protected]>2025-04-25 20:05:41 +0000
committerPeter Zijlstra <[email protected]>2025-04-30 11:58:34 +0000
commit2cb291596e2c1837238bc322ae3545dacb99d584 (patch)
tree91b813f51f974fc511e3983e7b70d297c755656f /rust/helpers/xarray.c
parentLinux 6.15-rc4 (diff)
downloadkernel-2cb291596e2c1837238bc322ae3545dacb99d584.tar.gz
kernel-2cb291596e2c1837238bc322ae3545dacb99d584.zip
objtool: Fix up st_info in COMDAT group section
When __elf_create_symbol creates a local symbol, it relocates the first global symbol upwards to make space. Subsequently, elf_update_symbol() is called to refresh the symbol table section. However, this isn't sufficient, as other sections might have the reference to the old symbol index, for instance, the sh_info field of an SHT_GROUP section. This patch updates the `sh_info` field when necessary. This field serves as the key for the COMDAT group. An incorrect key would prevent the linker's from deduplicating COMDAT symbols, leading to duplicate definitions in the final link. Signed-off-by: Rong Xu <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions