arm64: vmlinux.lds.S: don't discard .exit.* sections at link-time
authorWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:26:13 +0000 (15:26 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:56:45 +0000 (15:56 +0000)
commit07c802bd7c3951410b105356787d655e273ab537
treef065565bf5b98c4a4e307a9b2bc7ef2ca5e53781
parentaf86e5974d3069bd26ebcf7c046c6e59726acaaa
arm64: vmlinux.lds.S: don't discard .exit.* sections at link-time

.exit.* sections may be subject to patching by the new alternatives
framework and so shouldn't be discarded at link-time. Without this patch,
such a section will result in the following linker error:

`.exit.text' referenced in section `.altinstructions' of
 drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/vmlinux.lds.S