git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b83120d
)
ARM: fix LTO for apf27
author
Marek Behún
<marek.behun@nic.cz>
Thu, 20 May 2021 11:24:13 +0000
(13:24 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000
(14:21 -0400)
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>
drivers/mtd/nand/raw/mxc_nand_spl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/mxc_nand_spl.c
b/drivers/mtd/nand/raw/mxc_nand_spl.c
index
e1e5425
..
2f054b6
100644
(file)
--- 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);