]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Define a region for device priv/plat data
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:39 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
Collect this together in one place, so driver model can access set it up
in a new place if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/u-boot-spl.lds

index 649abeb5ee739e59c4c7af0c32107586ad2381d3..18160436a36e7c10ef89dedcb3f6c03bde78f70d 100644 (file)
@@ -13,6 +13,14 @@ SECTIONS
                KEEP(*(SORT(.u_boot_list*)));
        }
 
+       /* Private data for devices with OF_PLATDATA_RT */
+       . = ALIGN(4);
+       .priv_data : {
+               __priv_data_start = .;
+               *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.priv_data*)))
+               __priv_data_end = .;
+       }
+
        __u_boot_sandbox_option_start = .;
        _u_boot_sandbox_getopt : { KEEP(*(.u_boot_sandbox_getopt)) }
        __u_boot_sandbox_option_end = .;