aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 13:24:13 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit28d476eada6b49fdbd331171c6a487466e709a66 (patch)
tree89b9d62bd875ca3e6fc16cc951a2ac3b5bcaa6ab /drivers/mtd
parentb83120df7923eb572ab6d88505f234b6784a2b6b (diff)
downloadu-boot-28d476eada6b49fdbd331171c6a487466e709a66.zip
u-boot-28d476eada6b49fdbd331171c6a487466e709a66.tar.gz
u-boot-28d476eada6b49fdbd331171c6a487466e709a66.tar.bz2
ARM: fix LTO for apf27
When apf27_defconfig is built with LTO, linking complains about undefined reference to `nand_boot`. This is because it is referenced from inline assembly. Make it visible. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/mxc_nand_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c
index e1e5425..2f054b6 100644
--- a/drivers/mtd/nand/raw/mxc_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxc_nand_spl.c
@@ -326,7 +326,7 @@ int nand_spl_load_image(uint32_t from, unsigned int size, void *buf)
* configured and available since this code loads the main U-Boot image
* from NAND into SDRAM and starts it from there.
*/
-void nand_boot(void)
+__used void nand_boot(void)
{
__attribute__((noreturn)) void (*uboot)(void);