]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Put the gpr save/restore functions in their own section
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 5 Jul 2012 21:09:40 +0000 (21:09 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jul 2012 04:19:59 +0000 (14:19 +1000)
commit82c0eb1873b8a5184aff875afc9724d60f5b6834
tree6a9609e6213ae60fc3f5e62ab2b6046bea1d8089
parent97cb735f45ba0c97538083a377eb8749c84499d9
powerpc: Put the gpr save/restore functions in their own section

This allows the linker to know that calls to them do not need to switch
TOC and stop errors like the following when linking large configurations:

powerpc64-linux-ld: drivers/built-in.o: In function `.gpiochip_is_requested':
(.text+0x4): sibling call optimization to `_savegpr0_29' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_savegpr0_29' extern

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/crtsavres.S