* [U-Boot] U-boot UBI breaks build with -O0
@ 2015-09-16 20:58 Kevin Smith
2015-09-17 6:57 ` Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Smith @ 2015-09-16 20:58 UTC (permalink / raw)
To: u-boot
Some of the debug functions for UBI are preprocessed out for U-boot
(ifndef __UBOOT__), but their calls are optimized out at higher
optimization levels, so this does not cause a problem. When building
with -O0, the linker gives an error:
fs/ubifs/io.c:162: undefined reference to `dbg_leb_unmap'
This function is in a #ifndef __UBOOT__ section.
Kevin Smith
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] U-boot UBI breaks build with -O0
2015-09-16 20:58 [U-Boot] U-boot UBI breaks build with -O0 Kevin Smith
@ 2015-09-17 6:57 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2015-09-17 6:57 UTC (permalink / raw)
To: u-boot
Hello Kevin,
Am 16.09.2015 um 22:58 schrieb Kevin Smith:
> Some of the debug functions for UBI are preprocessed out for U-boot
> (ifndef __UBOOT__), but their calls are optimized out at higher
> optimization levels, so this does not cause a problem. When building
> with -O0, the linker gives an error:
>
> fs/ubifs/io.c:162: undefined reference to `dbg_leb_unmap'
>
> This function is in a #ifndef __UBOOT__ section.
Good catch. Could you provide a patch?
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-17 6:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 20:58 [U-Boot] U-boot UBI breaks build with -O0 Kevin Smith
2015-09-17 6:57 ` Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox