<div dir="ltr">On 11 November 2013 12:03, James Lyon <span dir="ltr"><<a href="mailto:jameslyon0@gmail.com" target="_blank">jameslyon0@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>I think __aeabi is ARM EABI not Android
EABI, e.g. <a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0043d/index.html" target="_blank">http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0043d/index.html</a>.</div></div></blockquote>
<div><br></div><div>Indeed, this is why I was surprised that Android used it with GCC.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div>
The problem is not that the __aeabi functions are missing on
Android, they're defined in libgcc.a, the problem is that they
don't get linked in unless they're referenced. I don't know how
this problem is avoided on ARM/Linux/glibc normally, but something
pulls them in there according to my testing.<br></div></div></blockquote><div><br></div><div>Knowing how Linux avoids it would help deciding which is the best solution. Prior art is always a good start. ;)</div><div>
<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div>The way to avoid disabling setLastModificationAndAccessTime is to
rewrite it to take a path and use utime/utimes instead
(incidentally the setLastModificationAndAccessTime function is
only used by llvm-ar). I don't know why it was written the way it
is now; i.e. I'm not sure what systems have futimens but not
futimes and vice-verse. I would guess that the utime function
should be universal though. There's a HAVE_UTIME_H test in
Config.h but it doesn't seem to be used anywhere.</div></div></blockquote><div></div></div><br></div><div class="gmail_extra">I'd guess utime should be used. This looks like a bug in llvm-ar, though.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">--renato</div></div>