From: Wolfgang Denk Date: Sun, 27 Oct 2013 21:07:15 +0100 Subject: [U-Boot] [PATCH] JFFS2: Fix undefined reference to `__aeabi_uldivmod' error In-Reply-To: <1382865251-17302-1-git-send-email-wd@denx.de> References: <52671A0A.3020907@gtsys.com.hk> <1382865251-17302-1-git-send-email-wd@denx.de> Message-ID: <20131027200715.30C633811DD@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1382865251-17302-1-git-send-email-wd@denx.de> I wrote: > Building boards that have JFFS2 support enabled will fail when using > U-Boot's builtin GCC library, for example like this: > > USE_PRIVATE_LIBGCC=yes ./MAKEALL omap3_evm > ... > fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists': > fs/jffs2/jffs2_1pass.c:1441: undefined reference to `__aeabi_uldivmod' > > This is caused by a u64 / u32 division in jffs2_1pass.c; the problem > can be avoided by using do_div() instead of plain division. > > Signed-off-by: Wolfgang Denk > Reported-by: Chris Ruehl > Cc: Chris Ruehl I would like to withdraw this patch. It appears nobody has been running a MAKEALL with USE_PRIVATE_LIBGCC enabled for a long, long time. There are a number of other places that show similar problems. Instead of fixing these one by one, I think we should rather bundle this. I'm working on a more complete patch (or patch series). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Save yourself! Reboot in 5 seconds!