Re: [PATCH bpf-next] libbpf: ignore STT_SECTION symbols in 'maps' section

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

 



On Mon, Sep 27, 2021 at 1:58 PM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote:
>
> When parsing legacy map definitions, libbpf would error out when
> encountering an STT_SECTION symbol. This becomes a problem because some
> versions of binutils will produce SECTION symbols for every section when
> processing an ELF file, so BPF files run through 'strip' will end up with
> such symbols, making libbpf refuse to load them.
>
> There's not really any reason why erroring out is strictly necessary, so
> change libbpf to just ignore SECTION symbols when parsing the ELF.
>
> Cc: Jiri Benc <jbenc@xxxxxxxxxx>
> Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
> ---

Applied to bpf-next, thanks.

[...]




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux