Commit be5636e
libbpf: Silence newly-added and unused sections
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]>1 parent da4ec66 commit be5636e
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3788 | 3788 | | |
3789 | 3789 | | |
3790 | 3790 | | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
3791 | 3799 | | |
3792 | 3800 | | |
3793 | 3801 | | |
| |||
0 commit comments