diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-11 12:02:52 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-11 12:02:52 +1000 |
commit | 0cd6fcb3d6622eed323ed73891ea3a47d0d595ab (patch) | |
tree | 11fecc29055fd4604d28a25ca38ef88dd3cbc37c | |
parent | 78bf83de4af9136bce6bfc93fa9e1c8ccbad2e10 (diff) | |
download | cf-fsi-0cd6fcb3d6622eed323ed73891ea3a47d0d595ab.tar.gz cf-fsi-0cd6fcb3d6622eed323ed73891ea3a47d0d595ab.zip |
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 <benh@kernel.crashing.org>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | cf-code/cf-fsi-fw.S | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ M68KCPPFLAGS = -DFW_VERSION=$(FW_VERSION) ifeq ($(DEBUG),1) M68KCPPFLAGS += -DENABLE_TRACE endif -M68KAFLAGS = -march=isac +M68KAFLAGS = -march=isac --pcrel -k M68KLDFLAGS = -Ttext 0 # FW code files 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 */ |