Add linker sections necessary for driver model operation. Signed-off-by: Marek Vasut <ma...@denx.de> --- arch/sandbox/cpu/u-boot.lds | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-)
diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds index 9960138..d83ee66 100644 --- a/arch/sandbox/cpu/u-boot.lds +++ b/arch/sandbox/cpu/u-boot.lds @@ -24,9 +24,38 @@ SECTIONS { - __u_boot_cmd_start = .; - _u_boot_cmd : { *(.u_boot_cmd) } - __u_boot_cmd_end = .; + .u_boot_cmd : { + __u_boot_cmd_start = .; + *(SORT(.u_boot_cmd.*)) + __u_boot_cmd_end = .; + } + + .u_boot_driver : { + __u_boot_driver_start = .; + __u_boot_driver_generic_start = .; + *(SORT(.u_boot_driver.generic.*)) + __u_boot_driver_generic_end = .; + + /* + * PCI and USB drivers have special needs, + * hence the separate lists + */ + __u_boot_driver_pci_start = .; + *(SORT(.u_boot_driver.pci.*)) + __u_boot_driver_pci_end = .; + + __u_boot_driver_usb_start = .; + *(SORT(.u_boot_driver.usb.*)) + __u_boot_driver_usb_end = .; + + __u_boot_driver_end = .; + } + + .u_boot_core : { + __u_boot_core_start = .; + *(SORT(.u_boot_core.*)) + __u_boot_core_end = .; + } __u_boot_sandbox_option_start = .; _u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) } -- 1.7.10.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot