Re: [PATCH 3/7] powerpc/64s: tool to flag direct branches from unrelocated interrupt vectors

From
Nicholas Piggin <npiggin@gmail.com>
Date
2016-10-19 06:02:00
Reply to
Balbir Singh, 2016-10-19
On Wed, 19 Oct 2016 15:28:40 +1100
Balbir Singh [off-list ref] wrote:
On 19/10/16 14:15, Nicholas Piggin wrote:
quoted
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 <pnv_restore_hyp_resource>
    c00000000000013c b-> 0xc0000000001068a4 <kvm_start_guest>
    c000000000000148 b-> 0xc00000000003919c <pnv_wakeup_loss>
    c00000000000014c b-> 0xc00000000003923c <pnv_wakeup_noloss>
    c0000000000005a4 b-> 0xc000000000106ffc <kvmppc_interrupt_hv>
    c000000000001af0 b-> 0xc000000000106ffc <kvmppc_interrupt_hv>
    c000000000001b24 b-> 0xc000000000106ffc <kvmppc_interrupt_hv>
    c000000000001b58 b-> 0xc000000000106ffc <kvmppc_interrupt_hv>

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---  
If this is the same script I gave you, you can add my SOB line as well
I can't remember now, but I know you had something... I'm usually careful
to get attributions right. I'll add your SOB.
Thread (22 messages) 22 messages, 5 authors, last reply 2017-05-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help