[Bug ld/16821] x86_64 PE/COFF: ld truncates addresses of symbols from linker scripts to 32 bit
https://sourceware.org/bugzilla/show_bug.cgi?id=16821 asmwarrior changed: What|Removed |Added CC||asmwarrior at gmail dot com --- Comment #8 from asmwarrior --- (In reply to Eric Botcazou from comment #7) > This doesn't compile on 32-bit hosts: > > peigen.c: In function ‘abs_finder’: > peigen.c:215:3: error: left shift count >= width of type [-Werror] I got the same build error on MinGW 32-bit hosts, the patch below fixes the build failure. Yuanhui Zhang bfd/peXXigen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 36d90cc..6d80f96 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -212,7 +212,7 @@ abs_finder (bfd * abfd ATTRIBUTE_UNUSED, asection * sec, void * data) { bfd_vma abs_val = * (bfd_vma *) data; - return (sec->vma <= abs_val) && ((sec->vma + (1L << 32)) > abs_val); + return (sec->vma <= abs_val) && ((sec->vma + (1LL << 32)) > abs_val); } unsigned int -- 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
[Bug binutils/14289] bfd_pef_xlib_read_header reads beyond array bounds
https://sourceware.org/bugzilla/show_bug.cgi?id=14289 --- Comment #5 from asmwarrior --- Hi, Nick, thanks. BTW: Is it possible to use my real name instead of the nick name in the change log message? My real name is Yuanhui Zhang. My nick name is Asmwarrior. Thanks. Yuanhui Zhang -- 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
[Bug binutils/14289] bfd_pef_xlib_read_header overwrites stack memory
https://sourceware.org/bugzilla/show_bug.cgi?id=14289 --- Comment #2 from asmwarrior --- Is this the patch to fix this issue? diff --git a/bfd/pef.c b/bfd/pef.c index 6c52e0f..64925e5 100644 --- a/bfd/pef.c +++ b/bfd/pef.c @@ -1065,11 +1065,11 @@ const bfd_target pef_vec = static int bfd_pef_xlib_read_header (bfd *abfd, bfd_pef_xlib_header *header) { - unsigned char buf[76]; + unsigned char buf[80]; bfd_seek (abfd, 0, SEEK_SET); - if (bfd_bread ((void *) buf, 76, abfd) != 76) + if (bfd_bread ((void *) buf, 80, abfd) != 80) return -1; header->tag1 = bfd_getb32 (buf); -- 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
[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW
https://sourceware.org/bugzilla/show_bug.cgi?id=11539 asmwarrior changed: What|Removed |Added CC||asmwarrior at gmail dot com -- 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
[Bug binutils/14289] bfd_pef_xlib_read_header overwrites stack memory
http://sourceware.org/bugzilla/show_bug.cgi?id=14289 asmwarrior changed: What|Removed |Added CC||asmwarrior at gmail dot com -- 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