Skip to content

Commit

Permalink
ARC: SMP resurrect #24: Makefile fix for relo errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vineet Gupta <[email protected]>
  • Loading branch information
vineetgarc committed Oct 25, 2012
1 parent d2a7b41 commit 805b0d4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions arch/arc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,16 @@ bootpImage uImage: vmlinux
archclean:
$(Q)$(MAKE) $(clean)=$(boot)

# vineetg Feb 2010:
# We switched OFF -mlong-calls for overall kernel build
# Hacks to enable final link due to absence of link-time branch relexation
# and gcc choosing optimal(shorter) branches at -O3
#
# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
# However lib/decompress_inflate.o (.init.text) calls
# zlib_inflate_workspacethere (.text) causing relocation error.
# zlib_inflate_workspacesize (.text) causing relocation errors.
# Thus forcing all exten calls in this file to be long calls
export CFLAGS_decompress_inflate.o = -mlong-calls

# some debug printk getting out of range from sched code
ifdef CONFIG_SMP
export CFLAGS_sched.o = -mmedium-calls
endif

0 comments on commit 805b0d4

Please sign in to comment.