Fabio Estevam 1b8a1be1a1 spl: spl_legacy: Fix spl_end address
Currently, spl_end points to the __bss_end address, which
is an external RAM address instead of the end of the SPL text
section in the internal RAM.

This causes boot failures on imx6-colibri, for example:

```
Trying to boot from MMC1
SPL: Image overlaps SPL
resetting ...
```
Fix this problem by assigning spl_end to _image_binary_end, as this
symbol properly represents the end of the SPL text section.

From u-boot-spl.map:

.end
 *(.__end)
                0x00000000009121a4                _image_binary_end = .

Fixes: 77aed22b48ab ("spl: spl_legacy: Add extra address checks")
Reported-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Tested-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Marek Vasut <marex@denx.de> # DH i.MX6Q DHCOM PDK2
2023-07-03 10:20:13 -04:00
..
2023-07-03 10:20:13 -04:00
2022-10-31 11:02:44 -04:00
2023-04-24 21:37:45 +02:00
2023-04-27 13:51:06 -04:00
2023-03-30 15:09:59 -04:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2023-02-10 07:41:39 -05:00
2022-08-04 16:18:47 -04:00
2023-02-09 16:32:26 -05:00
2023-05-05 09:36:08 -04:00
2023-02-06 13:04:53 -05:00
2023-03-14 16:08:51 -06:00
2023-01-09 11:30:08 -05:00
2023-06-23 14:38:16 -04:00
2021-04-20 07:31:12 -04:00
2023-02-07 14:33:50 -05:00
2023-05-13 09:52:32 -04:00