From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@nynexst.com (H.J. Lu) To: raeburn@cygnus.com (Ken Raeburn) Cc: ian@cygnus.com (Ian Lance Taylor), gas2@cygnus.com, eric@aib.com (Eric Youngdale), jason@cygnus.com (Jason Merrill) Subject: A gas bug Date: Wed, 09 Nov 1994 15:10:00 -0000 Message-id: <9411092309.AA01279@titanic.nynexst.com> X-SW-Source: 1994/msg00169.html Hi, I have verified that it indeed is a gas bug which prevents the ELF support in gcc working properly. As you can see, foo.s is mis-assembled as 00000000 call 00000002 with 0000 e8fdffff ffc3 ...... I patched .o file by hand to 00000000 call 00000001 with 0000 e8fcffff ffc3 ...... It seems ok. I am not very familiar with gas and don't know hard to fix this bug. -- H.J. Lu NYNEX Science and Technology, Inc. hjl@nynexst.com --- foo.o: file format elf32-i386 Disassembly of section .text: 00000000 Address 0x1 is out of bounds. Disassembly of section .fini: 00000000 call 00000002 00000005 Address 0x6 is out of bounds. foo.o: file format elf32-i386 Contents of section .text: 0000 c3 . Contents of section .data: Contents of section .fini: 0000 e8fdffff ffc3 ...... ---- .text .type bar,@function bar: ret .section .fini .type foo,@function foo: call bar ret