Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-26 Thread Luis R. Rodriguez
On Fri, Aug 26, 2016 at 05:33:38PM +1000, Nicholas Piggin wrote: > On Thu, 25 Aug 2016 23:38:44 -0700 > "Luis R. Rodriguez" wrote: > > > > > > Ah, thing is we use this for both linktables and section ranges. > > > > > > Or do we want macros for both that do the same thing ? >

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-26 Thread Nicholas Piggin
On Fri, 26 Aug 2016 15:22:19 +0200 "Luis R. Rodriguez" wrote: > On Fri, Aug 26, 2016 at 05:33:38PM +1000, Nicholas Piggin wrote: > > On Thu, 25 Aug 2016 23:38:44 -0700 > > "Luis R. Rodriguez" wrote: > > > > > > > Ah, thing is we use this for both

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-26 Thread Nicholas Piggin
On Thu, 25 Aug 2016 23:38:44 -0700 "Luis R. Rodriguez" wrote: > On Aug 25, 2016 8:00 PM, "Nicholas Piggin" wrote: > > > > On Thu, 25 Aug 2016 19:52:39 +0200 > > "Luis R. Rodriguez" wrote: > > > > > On Thu, Aug 25, 2016 at 04:51:21PM

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-26 Thread Luis R. Rodriguez
On Aug 25, 2016 8:00 PM, "Nicholas Piggin" wrote: > > On Thu, 25 Aug 2016 19:52:39 +0200 > "Luis R. Rodriguez" wrote: > > > On Thu, Aug 25, 2016 at 04:51:21PM +1000, Nicholas Piggin wrote: > > > On Thu, 25 Aug 2016 08:05:40 +0200 > > > "Luis R. Rodriguez"

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Nicholas Piggin
On Thu, 25 Aug 2016 19:52:39 +0200 "Luis R. Rodriguez" wrote: > On Thu, Aug 25, 2016 at 04:51:21PM +1000, Nicholas Piggin wrote: > > On Thu, 25 Aug 2016 08:05:40 +0200 > > "Luis R. Rodriguez" wrote: > > > > Oh, that makes more sense. The SECTION stuff and

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Luis R. Rodriguez
On Thu, Aug 25, 2016 at 04:51:21PM +1000, Nicholas Piggin wrote: > On Thu, 25 Aug 2016 08:05:40 +0200 > "Luis R. Rodriguez" wrote: > > > Oh, that makes more sense. The SECTION stuff and custom sections was > > > confusing me. I would prefer just to drop all the LINUX_SECTION

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Nicholas Piggin
On Thu, 25 Aug 2016 08:05:40 +0200 "Luis R. Rodriguez" wrote: > On Thu, Aug 25, 2016 at 12:06:33PM +1000, Nicholas Piggin wrote: > > On Wed, 24 Aug 2016 22:12:53 +0200 > > "Luis R. Rodriguez" wrote: > > > But: > > > > > > git grep SECTION_TEXT works as

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Luis R. Rodriguez
On Thu, Aug 25, 2016 at 12:06:33PM +1000, Nicholas Piggin wrote: > On Wed, 24 Aug 2016 22:12:53 +0200 > "Luis R. Rodriguez" wrote: > > But: > > > > git grep SECTION_TEXT works as expected immediately. > > > > I guess its a matter of perspective. > > > > > They are also > > >

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Nicholas Piggin
On Wed, 24 Aug 2016 22:12:53 +0200 "Luis R. Rodriguez" wrote: > On Wed, Aug 24, 2016 at 01:51:41PM +1000, Nicholas Piggin wrote: > > On Tue, 23 Aug 2016 19:33:06 +0200 > > "Luis R. Rodriguez" wrote: > > > > > On Tue, Aug 23, 2016 at 11:26:33AM +1000,

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Luis R. Rodriguez
On Wed, Aug 24, 2016 at 01:51:41PM +1000, Nicholas Piggin wrote: > On Tue, 23 Aug 2016 19:33:06 +0200 > "Luis R. Rodriguez" wrote: > > > On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > > > On Fri, 19 Aug 2016 14:34:02 -0700 > > > mcg...@kernel.org wrote: >

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-23 Thread Nicholas Piggin
On Tue, 23 Aug 2016 19:33:06 +0200 "Luis R. Rodriguez" wrote: > On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > > On Fri, 19 Aug 2016 14:34:02 -0700 > > mcg...@kernel.org wrote: > > > +/** > > > + * DOC: Standard ELF section use in Linux > > > + * > > > +

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-23 Thread Luis R. Rodriguez
On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > On Fri, 19 Aug 2016 14:34:02 -0700 > mcg...@kernel.org wrote: > > +/** > > + * DOC: Standard ELF section use in Linux > > + * > > + * Linux makes use of the standard ELF sections, this sections documents > > + * these. > > + */ > >

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-22 Thread Nicholas Piggin
On Fri, 19 Aug 2016 14:34:02 -0700 mcg...@kernel.org wrote: > From: "Luis R. Rodriguez" > > Linux makes extensive use of custom ELF header sections, > documentation for these are well scatterred. Unify this > documentation in a central place and provide helpers to > build

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 02:47:48PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > From: "Luis R. Rodriguez" > > > > +SECTION_RODATA > > +-- > > +.. kernel-doc:: include/asm-generic/section-core.h > > + :doc:

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-19 Thread Kees Cook
On Fri, Aug 19, 2016 at 2:32 PM, wrote: > From: "Luis R. Rodriguez" > > Linux makes extensive use of custom ELF header sections, > documentation for these are well scatterred. Unify this > documentation in a central place and provide helpers to > build

[Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-19 Thread mcgrof
From: "Luis R. Rodriguez" Linux makes extensive use of custom ELF header sections, documentation for these are well scatterred. Unify this documentation in a central place and provide helpers to build custom Linux sections. This also generalizes sections code to enable

[Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-19 Thread mcgrof
From: "Luis R. Rodriguez" Linux makes extensive use of custom ELF header sections, documentation for these are well scatterred. Unify this documentation in a central place and provide helpers to build custom Linux sections. This also generalizes sections code to enable