Re: Kernel build error on BTFIDS vmlinux

2020-08-20 Thread Nick Clifton
Hi Guys, >> so when I take empty object and compile like: >> >> $ echo 'int main(int argc, char **argv) { return 0; }' | gcc -c -o ex.o -g >> -gz=zlib -x c - >> $ ld -o ex --compress-debug-sections=zlib ex.o Thanks Mark. I have now created a binutils PR for this bug, and I am looking into

Re: Kernel build error on BTFIDS vmlinux

2020-08-19 Thread Mark Wielaard
Hi, On Wed, 2020-08-19 at 19:18 +0200, Jiri Olsa wrote: > On Wed, Aug 19, 2020 at 04:34:30PM +0100, Nick Clifton wrote: > > > So it would be nice if binutils ld could also be fixed to write out > > > compressed sections with the correct alignment. > > > > OK, I will look into doing this. > > >

Re: Kernel build error on BTFIDS vmlinux

2020-08-19 Thread Jiri Olsa
On Wed, Aug 19, 2020 at 04:34:30PM +0100, Nick Clifton wrote: > Hi Mark, > > > Adding Nick, the binutils maintainer, so we can make sure > > binutils/elfutils agree on some ELF section compression corner case. > > Thanks for doing this. > > > But it would obviously be better if that wasn't

Re: Kernel build error on BTFIDS vmlinux

2020-08-19 Thread Nick Clifton
Hi Mark, > Adding Nick, the binutils maintainer, so we can make sure > binutils/elfutils agree on some ELF section compression corner case. Thanks for doing this. > But it would obviously be better if that wasn't necessary. So I'll try > to fix libelf so that if it fixes up the alignment when

Re: Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Mark Wielaard
Hi, Adding Nick, the binutils maintainer, so we can make sure binutils/elfutils agree on some ELF section compression corner case. On Tue, 2020-08-18 at 18:33 +0200, Jesper Dangaard Brouer wrote: > On Tue, 18 Aug 2020 15:45:43 +0200 > Jiri Olsa wrote: > > > On Tue, Aug 18, 2020 at 12:56:08PM

Re: Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Jesper Dangaard Brouer
On Tue, 18 Aug 2020 15:45:43 +0200 Jiri Olsa wrote: > On Tue, Aug 18, 2020 at 12:56:08PM +0200, Jiri Olsa wrote: > > On Tue, Aug 18, 2020 at 11:14:10AM +0200, Jiri Olsa wrote: > > > On Tue, Aug 18, 2020 at 10:55:55AM +0200, Jesper Dangaard Brouer wrote: > > > > > > > > On latest DaveM

Re: Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Jiri Olsa
On Tue, Aug 18, 2020 at 12:56:08PM +0200, Jiri Olsa wrote: > On Tue, Aug 18, 2020 at 11:14:10AM +0200, Jiri Olsa wrote: > > On Tue, Aug 18, 2020 at 10:55:55AM +0200, Jesper Dangaard Brouer wrote: > > > > > > On latest DaveM net-git tree (06a4ec1d9dc652), after linking (LD vmlinux) > > > the > >

Re: Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Jiri Olsa
On Tue, Aug 18, 2020 at 11:14:10AM +0200, Jiri Olsa wrote: > On Tue, Aug 18, 2020 at 10:55:55AM +0200, Jesper Dangaard Brouer wrote: > > > > On latest DaveM net-git tree (06a4ec1d9dc652), after linking (LD vmlinux) > > the > > "BTFIDS vmlinux" fails. Are anybody else experiencing this? Are there

Re: Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Jiri Olsa
On Tue, Aug 18, 2020 at 10:55:55AM +0200, Jesper Dangaard Brouer wrote: > > On latest DaveM net-git tree (06a4ec1d9dc652), after linking (LD vmlinux) the > "BTFIDS vmlinux" fails. Are anybody else experiencing this? Are there already > a > fix? (just returned from vacation so not fully

Kernel build error on BTFIDS vmlinux

2020-08-18 Thread Jesper Dangaard Brouer
On latest DaveM net-git tree (06a4ec1d9dc652), after linking (LD vmlinux) the "BTFIDS vmlinux" fails. Are anybody else experiencing this? Are there already a fix? (just returned from vacation so not fully up-to-date on ML yet) The tool which is called and error message: