[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/14693] [PATCH] Allow building for Android hosts
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/14693] [PATCH] Allow building for Android hosts |
Date: |
Wed, 10 Oct 2012 04:54:11 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14693
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-10 04:54:11
UTC ---
(In reply to comment #0)
> Created attachment 6676 [details]
> Patch
>
> Currently, binutils can be built for Android targets, but not for Android
> hosts
> -- it just requires 2 minor changes:
> The getpagesize() implementation in libiberty has to be commented out because
> Bionic (Android's libc) defines getpagesize() in <unistd.h>, and a time() call
You should update getpagesize detection instead.
> in bfd/archive.c has to cast &status.st_mtime to time_t (st_mtime is, as
> expected, an unsigned long -- but time_t is typedef'ed to (signed) int.
> Probably a bug in Bionic - but casting explicitly can't hurt).
>
I think it is a bug in Bionic.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.