diff options
author | Andrii Nakryiko <[email protected]> | 2024-10-07 20:28:53 -0700 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-10-07 20:28:54 -0700 |
commit | 1d943a238b167d1571799ced65b0902f118cdda3 (patch) | |
tree | c28120e0e644495f7e481267a12db2132fa0f8b7 /drivers/fpga/xilinx-selectmap.c | |
parent | c50fc1cbfd71dcb1d70fd593b2af7c92af465921 (diff) | |
parent | 3c591de2854381e313ec149bc1bbd8360f9ed53b (diff) |
Merge branch 'bpf-static-linker-fix-linking-duplicate-extern-functions'
Eric Long via says:
====================
BPF static linker: fix linking duplicate extern functions
Currently, if `bpftool gen object` tries to link two objects that
contains the same extern function prototype, libbpf will try to get
their (non-existent) size by calling bpf__resolve_size like extern
variables and fail with:
libbpf: global 'whatever': failed to resolve size of underlying type: -22
This should not be the case, and this series adds conditions to update
size only when the BTF kind is not function.
Fixes: a46349227cd8 ("libbpf: Add linker extern resolution support for functions and global variables")
Signed-off-by: Eric Long <[email protected]>
---
Changes in v4:
- Remove redundant FUNC_PROTO check.
- Merge tests into linked_funcs.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Simplifiy changes and shorten subjects, according to reviews.
- Remove unused includes in selftests.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Fix compile errors. Oops!
- Link to v1: https://lore.kernel.org/r/[email protected]
---
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions