diff options
author | Will Deacon <will.deacon@arm.com> | 2014-11-25 10:26:13 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-11-25 10:56:45 -0500 |
commit | 07c802bd7c3951410b105356787d655e273ab537 (patch) | |
tree | f065565bf5b98c4a4e307a9b2bc7ef2ca5e53781 /arch/arm64 | |
parent | af86e5974d3069bd26ebcf7c046c6e59726acaaa (diff) |
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>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/vmlinux.lds.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 3236727be2b9..9965ec87cbec 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S | |||
@@ -11,8 +11,9 @@ | |||
11 | 11 | ||
12 | #include "image.h" | 12 | #include "image.h" |
13 | 13 | ||
14 | #define ARM_EXIT_KEEP(x) | 14 | /* .exit.text needed in case of alternative patching */ |
15 | #define ARM_EXIT_DISCARD(x) x | 15 | #define ARM_EXIT_KEEP(x) x |
16 | #define ARM_EXIT_DISCARD(x) | ||
16 | 17 | ||
17 | OUTPUT_ARCH(aarch64) | 18 | OUTPUT_ARCH(aarch64) |
18 | ENTRY(_text) | 19 | ENTRY(_text) |