Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Arvind Sankar
On Wed, Jun 24, 2020 at 10:26:20AM -0700, Fangrui Song wrote: > > On 2020-06-24, Arvind Sankar wrote: > >On Wed, Jun 24, 2020 at 09:16:43AM -0700, Fangrui Song wrote: > >> > >> On 2020-06-24, Arvind Sankar wrote: > >> >On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: > >> >> When

Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Fangrui Song
On 2020-06-24, Arvind Sankar wrote: On Wed, Jun 24, 2020 at 09:16:43AM -0700, Fangrui Song wrote: On 2020-06-24, Arvind Sankar wrote: >On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: >> When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, >> and .shstrtab are

Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Arvind Sankar
On Wed, Jun 24, 2020 at 09:16:43AM -0700, Fangrui Song wrote: > > On 2020-06-24, Arvind Sankar wrote: > >On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: > >> When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, > >> and .shstrtab are listed as orphaned. Add them to

Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Fangrui Song
On 2020-06-24, Arvind Sankar wrote: On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, and .shstrtab are listed as orphaned. Add them to the STABS_DEBUG section so there will be no warnings when

Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Arvind Sankar
On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: > When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, > and .shstrtab are listed as orphaned. Add them to the STABS_DEBUG section > so there will be no warnings when --orphan-handling=warn is used more > widely. (They

[PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-23 Thread Kees Cook
When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, and .shstrtab are listed as orphaned. Add them to the STABS_DEBUG section so there will be no warnings when --orphan-handling=warn is used more widely. (They are added above comment as it is the more common order[1].) ld.lld: