[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/5715] Binutils is broken on 32bit mingw host for 64bit target
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug gas/5715] Binutils is broken on 32bit mingw host for 64bit target |
Date: |
2 Feb 2008 16:24:05 -0000 |
------- Additional Comments From hjl dot tools at gmail dot com 2008-02-02
16:24 -------
Created an attachment (id=2228)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2228&action=view)
A patch
My gcc 4.1 cross compiler for 32bit mingw doesn't understand %I64. This patch
allows me to build binutils hosted on 32bit mingw for 64bit target.
If %ll was never supported on 32bit mingw, mingw should use things like
#define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))
#define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
#define fprintf_vma(s,x) \
fprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
#define sprintf_vma(s,x) \
sprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
to print out 64bit value.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5715
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.