]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: x86: Drop discarding of command linker-lists
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:04:49 +0000 (14:04 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
Since we can now cleanly disable CMDLINE when needed, drop the rules
which discard the command code.  It will not be built in the first
place.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/cpu/u-boot.lds
arch/x86/cpu/u-boot-64.lds
arch/x86/cpu/u-boot-spl.lds
arch/x86/cpu/u-boot.lds

index fc4f63d83489f7447ece164cf776926ecd1c3a15..7724c9332c3b012d08b7df05612ae28e5aa528e6 100644 (file)
@@ -14,9 +14,6 @@ OUTPUT_ARCH(arm)
 ENTRY(_start)
 SECTIONS
 {
-#ifndef CONFIG_CMDLINE
-       /DISCARD/ : { *(__u_boot_list_2_cmd_*) }
-#endif
 #if defined(CONFIG_ARMV7_SECURE_BASE) && defined(CONFIG_ARMV7_NONSEC)
        /*
         * If CONFIG_ARMV7_SECURE_BASE is true, secure code will not
index d0398ff00d712d8e7404506f25b8ea4c2ecc43eb..00a6d8691211a4fa6ff7a97539e2c49d394aaa21 100644 (file)
@@ -11,10 +11,6 @@ ENTRY(_start)
 
 SECTIONS
 {
-#ifndef CONFIG_CMDLINE
-       /DISCARD/ : { *(__u_boot_list_2_cmd_*) }
-#endif
-
 #ifdef CONFIG_TEXT_BASE
        . = CONFIG_TEXT_BASE;   /* Location of bootcode in flash */
 #endif
index a0a2a06a18cd6d897fdbd9af37c3163933782bce..50b4b1608552721473f768a12cb3d20f249206fc 100644 (file)
@@ -11,10 +11,6 @@ ENTRY(_start)
 
 SECTIONS
 {
-#ifndef CONFIG_CMDLINE
-       /DISCARD/ : { *(__u_boot_list_2_cmd_*) }
-#endif
-
        . = IMAGE_TEXT_BASE;    /* Location of bootcode in flash */
        __text_start = .;
        .text  : {
index a31f4220a0008547d8e1e44e713130ba9642381b..c418ff44aa086ab1aae4a27209d126b3274970f1 100644 (file)
@@ -11,10 +11,6 @@ ENTRY(_start)
 
 SECTIONS
 {
-#ifndef CONFIG_CMDLINE
-       /DISCARD/ : { *(__u_boot_list_2_cmd_*) }
-#endif
-
        . = CONFIG_TEXT_BASE;   /* Location of bootcode in flash */
        __text_start = .;