Re: [PATCH v3 01/11] kvm: arm64: Partially link nVHE hyp code, simplify HYPCOPY

2020-09-22 Thread David Brazdil
> > +#define HYP_SECTION_NAME(NAME) .hyp##NAME > > + > > +/* Defines an ELF hyp section from input section @NAME and its > > subsections. */ > > +#define HYP_SECTION(NAME) \ > > + HYP_SECTION_NAME(NAME) : { *(NAME NAME##.[0-9a-zA-Z_]*) } > > I still don't get why we can't just use NAME ##

Re: [PATCH v3 01/11] kvm: arm64: Partially link nVHE hyp code, simplify HYPCOPY

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:29PM +0100, David Brazdil wrote: > Relying on objcopy to prefix the ELF section names of the nVHE hyp code > is brittle and prevents us from using wildcards to match specific > section names. > > Improve the build rules by partially linking all '.nvhe.o' files and >

[PATCH v3 01/11] kvm: arm64: Partially link nVHE hyp code, simplify HYPCOPY

2020-09-16 Thread David Brazdil
Relying on objcopy to prefix the ELF section names of the nVHE hyp code is brittle and prevents us from using wildcards to match specific section names. Improve the build rules by partially linking all '.nvhe.o' files and prefixing their ELF section names using a linker script. Continue using