[Bug gas/976] New: Superfluous 0 displacment added in x86 code
Assemble something like this: movl 0(%edi),%eax An explicit zero byte of displacment is being emitted into the code making this a 3 byte instruction rather than two bytes. The latest source I examined looked like this was probably somewhat easy to fix in the instruction emitter by just checking if a displacement was included (and zero) then whacking the disp field pointer to null, or something along those lines. That should keep the existing "fake EBP 0" logic pretty intact and unaffected. A lot of app header files I've seen seemed to use explicit zeros like above for clarity reasons when there are a series of related displacements, or to make the code line up nice on the page, etc. What tipped me off on this was I saw the explicit zero displacement show up in an ASM listings of some of the Linux 387 emulator code and it jumped out at me. -- Summary: Superfluous 0 displacment added in x86 code Product: binutils Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: cutaway at bellsouth dot net CC: bug-binutils at gnu dot org http://sources.redhat.com/bugzilla/show_bug.cgi?id=976 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/976] Superfluous 0 displacment added in x86 code
-- What|Removed |Added Version|unspecified |2.17 (HEAD) http://sources.redhat.com/bugzilla/show_bug.cgi?id=976 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/977] New: ld test weak fails on cygwin
Windows XP/SP2 cygwin on pentium4 single i686: binutils 20050520-1 OK bison20030307-1 OK cygwin 1.5.17-1 OK dejagnu 20021217-2 OK expect 20030128-1 OK gcc 3.3.3-3OK make 3.80-1 OK tcltk20030901-1 OK LAST_UPDATED: Sun May 29 10:40:29 UTC 2005 Native configuration is i686-pc-cygwin Running /usr/local/src/trunk/src/ld/testsuite/ld-scripts/weak.exp ... /usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new -o tmpdir/weak1.o /usr/local/src/trunk/src/ld/testsuite/ld-scripts/weak1.s /usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new -o tmpdir/weak2.o /usr/local/src/trunk/src/ld/testsuite/ld-scripts/weak2.s /usr/local/src/trunk/objdir-binutils32/ld/ld-new -o tmpdir/weak --image-base 0 -T /usr/local/src/trunk/src/ld/testsuite/ld-scripts/weak.t tmpdir/weak1.o tmpdir/weak2.o /usr/local/src/trunk/objdir-binutils32/ld/../binutils/objdump -s tmpdir/weak tmpdir/weak: file format pei-i386 Contents of section .text: 1000 0810 1820 12121212 34343434 . .. Contents of section .data: 2000 1010 0c20 56565656 78787878 . .. FAIL: weak symbols testcase /usr/local/src/trunk/src/ld/testsuite/ld-scripts/weak.exp completed in 0 seconds -- Summary: ld test weak fails on cygwin Product: binutils Version: 2.17 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: christian dot joensson at gmail dot com CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-cygwin GCC host triplet: i686-pc-cygwin GCC target triplet: i686-pc-cygwin http://sources.redhat.com/bugzilla/show_bug.cgi?id=977 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/817] FAIL: S-records with constructors
--- Additional Comments From christian dot joensson at gmail dot com 2005-05-29 11:25 --- uhm... seems fixed... -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sources.redhat.com/bugzilla/show_bug.cgi?id=817 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/977] ld test weak fails on cygwin
-- What|Removed |Added Status|NEW |ASSIGNED http://sources.redhat.com/bugzilla/show_bug.cgi?id=977 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
`typeinfo for foo' referenced in section `.text' of bar.o: defined in discarded section `.gnu.linkonce.d._ZTI4foo' of r2.o
Hi, the linker told me to report this: g++ *.o -L../lib -lxml2 -ldl -lstdc++ -o r2 `typeinfo for foo' referenced in section `.text' of bar.o: defined in discarded section `.gnu.linkonce.d._ZTI4foo' of r2.o /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: BFD 2.15.91.0.2 20040727 (SuSE Linux) internal error, aborting at ../../bfd/elf32-i386.c line 2224 in elf_i386_relocate_section /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: Please report this bug. collect2: ld returned 1 exit status make: *** [r2] Error 1 $ gcc -v Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3.4 (pre 3.3.5 20040809) $ gcc -v GNU ld version 2.15.91.0.2 20040727 (SuSE Linux) Hope it helps, Kendy PS: request for improvement: include in the error message how to report the bug. -- pgpgHYHvkfO8l.pgp Description: PGP signature ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils