From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wcSX74hdQzDqBQ for ; Tue, 30 May 2017 19:11:19 +1000 (AEST) In-Reply-To: <20170511174040.19728-2-npiggin@gmail.com> To: Nicholas Piggin , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Nicholas Piggin Subject: Re: [1/3] powerpc/64s: tool to flag direct branches from unrelocated interrupt vectors Message-Id: <3wcSX73tslz9s65@ozlabs.org> Date: Tue, 30 May 2017 19:11:19 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2017-05-11 at 17:40:38 UTC, Nicholas Piggin wrote: > Direct banches from code below __end_interrupts to code above > __end_interrupts when built with CONFIG_RELOCATABLE are disallowed > because they will break when the kernel is not located at 0. > > Sample output: > > WARNING: Unrelocated relative branches > c000000000000118 bl-> 0xc000000000038fb8 > c00000000000013c b-> 0xc0000000001068a4 > c000000000000148 b-> 0xc00000000003919c > c00000000000014c b-> 0xc00000000003923c > c0000000000005a4 b-> 0xc000000000106ffc > c000000000001af0 b-> 0xc000000000106ffc > c000000000001b24 b-> 0xc000000000106ffc > c000000000001b58 b-> 0xc000000000106ffc > > Signed-off-by: Balbir Singh > Signed-off-by: Nicholas Piggin Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/4ea80652dc75482dca1739762075dd cheers