Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: libbpf: Silence newly-added and unused sections
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004523

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 5612ea8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004523
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 5a427fd
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004523
version: 1

With latest llvm22, when building bpf selftest, I got the following info
emitted by libbpf:
  ...
  libbpf: elf: skipping unrecognized data section(14) .comment
  libbpf: elf: skipping section(15) .note.GNU-stack (size 0)
  ...

The reason is due to llvm patch [1]. Previously, bpf class BPFMCAsmInfo
inherits class MCAsmInfo. With [1], BPFMCAsmInfo inherits class
MCAsmInfoELF. Such a change added two more sections in the bpf binary, e.g.
  [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
  ...
  [23] .comment          PROGBITS        0000000000000000 0035ac 00006d 01  MS  0   0  1
  [24] .note.GNU-stack   PROGBITS        0000000000000000 003619 000000 00      0   0  1
  ...

Adding the above two sections in elf section ignore list can avoid the
above info dump during selftest build.

  [1] llvm/llvm-project@d9489fd

Signed-off-by: Yonghong Song <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1004523 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant