Re: [PATCH bpf-next v4 3/8] libbpf: Fix output .symtab byte-order during linking

2024-08-31 Thread Tony Ambardar
On Fri, Aug 30, 2024 at 03:15:10PM -0700, Eduard Zingerman wrote: > On Fri, 2024-08-30 at 00:29 -0700, Tony Ambardar wrote: > > Object linking output data uses the default ELF_T_BYTE type for '.symtab' > > section data, which disables any libelf-based translation. Explicitly set > > the ELF_T_SYM t

Re: [PATCH bpf-next v4 3/8] libbpf: Fix output .symtab byte-order during linking

2024-08-30 Thread Eduard Zingerman
On Fri, 2024-08-30 at 00:29 -0700, Tony Ambardar wrote: > Object linking output data uses the default ELF_T_BYTE type for '.symtab' > section data, which disables any libelf-based translation. Explicitly set > the ELF_T_SYM type for output to restore libelf's byte-order conversion, > noting that in

[PATCH bpf-next v4 3/8] libbpf: Fix output .symtab byte-order during linking

2024-08-30 Thread Tony Ambardar
Object linking output data uses the default ELF_T_BYTE type for '.symtab' section data, which disables any libelf-based translation. Explicitly set the ELF_T_SYM type for output to restore libelf's byte-order conversion, noting that input '.symtab' data is already correctly translated. Fixes: faf6