http://sourceware.org/bugzilla/show_bug.cgi?id=14693



             Bug #: 14693

           Summary: [PATCH] Allow building for Android hosts

           Product: binutils

           Version: 2.24 (HEAD)

            Status: NEW

          Severity: normal

          Priority: P2

         Component: binutils

        AssignedTo: unassig...@sourceware.org

        ReportedBy: bernhard.rosenkran...@linaro.org

    Classification: Unclassified





Created attachment 6676

  --> http://sourceware.org/bugzilla/attachment.cgi?id=6676

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

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).



The patch is relative to hjl's 2.23.51.0.3 release, but will probably apply to

2.24.



-- 

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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to