X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=arch%2FKconfig;h=11d349561ece37a33c7f43eeeeee97a16fe83b55;hb=1a892b485f328224b4882818f84fcc0a3208677d;hp=180ea33164dc45821a78c08043dc95119c1bdb7e;hpb=911f9dab301e8583143c7e75b552eadd434ea0a8;p=cascardo%2Flinux.git diff --git a/arch/Kconfig b/arch/Kconfig index 180ea33164dc..11d349561ece 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -450,6 +450,27 @@ config CC_STACKPROTECTOR_STRONG endchoice +config THIN_ARCHIVES + bool + help + Select this if the architecture wants to use thin archives + instead of ld -r to create the built-in.o files. + +config LD_DEAD_CODE_DATA_ELIMINATION + bool + help + Select this if the architecture wants to do dead code and + data elimination with the linker by compiling with + -ffunction-sections -fdata-sections and linking with + --gc-sections. + + This requires that the arch annotates or otherwise protects + its external entry points from being discarded. Linker scripts + must also merge .text.*, .data.*, and .bss.* correctly into + output sections. Care must be taken not to pull in unrelated + sections (e.g., '.text.init'). Typically '.' in section names + is used to distinguish them from label names / C identifiers. + config HAVE_ARCH_WITHIN_STACK_FRAMES bool help