Re: [PATCH] MIPS: Use Makefile.postlink to insert relocations into vmlinux

From: Steven J. Hill
Date: Fri Dec 02 2016 - 14:38:56 EST


On 11/10/2016 04:02 AM, Matt Redfearn wrote:
> When relocatable support for MIPS was merged, there was no support for
> an architecture to add a postlink step for vmlinux. This meant that only
> invoking a target within the boot directory, such as uImage, caused the
> relocations to be inserted into vmlinux. Building just the vmlinux
> target would result in a relocatable kernel with no relocation
> information present.
>
> Commit fbe6e37dab97 ("kbuild: add arch specific post-link Makefile")
> recified this situation, so MIPS can now define a postlink step to add
> relocation information into vmlinux, and remove the additional steps
> tacked onto boot targets.
>
> Signed-off-by: Matt Redfearn <matt.redfearn@xxxxxxxxxx>
>
Tested on OCTEON III with relocatable kernel.

Tested-by: Steven J. Hill <steven.hill@xxxxxxxxxx>