]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Work around ld bug in older binutils
authorPaul Mackerras <paulus@samba.org>
Wed, 22 Oct 2008 18:43:45 +0000 (18:43 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 31 Oct 2008 05:11:52 +0000 (16:11 +1100)
commit91a43319e36a1e18215dfa8a9a8d5e26fd2db468
tree6c9ee42eef037f833603cf1ba310d54fa59f1920
parent727b322eb6f9f58b4685fd8f83c5c417a3029baf
powerpc: Work around ld bug in older binutils

Commit 1cf89b38aeaa72f79cda2efb9b42f9930f750710 ("powerpc: Make the
64-bit kernel as a position-independent executable") added lines to
vmlinux.lds.S to add the extra sections needed to implement a
relocatable kernel.  However, those lines seem to trigger a bug in
older versions of GNU ld (such as 2.16.1) when building a
non-relocatable kernel.  Since ld 2.16.1 is still a popular choice for
cross-toolchains, this adds an #ifdef to vmlinux.lds.S so the added
lines are only included when building a relocatable kernel.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/vmlinux.lds.S