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>
This commit is contained in:
Will Deacon 2014-11-25 15:26:13 +00:00
Родитель af86e5974d
Коммит 07c802bd7c
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -11,8 +11,9 @@
#include "image.h" #include "image.h"
#define ARM_EXIT_KEEP(x) /* .exit.text needed in case of alternative patching */
#define ARM_EXIT_DISCARD(x) x #define ARM_EXIT_KEEP(x) x
#define ARM_EXIT_DISCARD(x)
OUTPUT_ARCH(aarch64) OUTPUT_ARCH(aarch64)
ENTRY(_text) ENTRY(_text)