From 0cd6fcb3d6622eed323ed73891ea3a47d0d595ab Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 11 Jun 2018 12:02:52 +1000 Subject: Make sure we are fully PC relative With of course the notable exception of the exception vectors, but this will make it easier should we want to relocate the code. Signed-off-by: Benjamin Herrenschmidt --- cf-code/cf-fsi-fw.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cf-code/cf-fsi-fw.S') diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S index 3d70efc..6089448 100644 --- a/cf-code/cf-fsi-fw.S +++ b/cf-code/cf-fsi-fw.S @@ -228,7 +228,7 @@ _start: move.l %d0,%a1@(INT_CNT) /* Install external interrupt vector */ - lea _int,%a0 + lea %pc@(_int),%a0 move.l %a0,(0x46*4) /* Mask interrupts */ -- cgit v1.2.1