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), eric@aib.com (Eric Youngdale), gas2@cygnus.com Subject: gas/gld cannot handle section switches Date: Wed, 09 Nov 1994 11:16:00 -0000 Message-id: <9411091915.AA00347@titanic.nynexst.com> X-SW-Source: 1994/msg00165.html As you can see, gas mishandled it. I think gld may have a simliar bug. -- H.J. Lu NYNEX Science and Technology, Inc. hjl@nynexst.com --- # objdump --disassemble foo.o foo.o: file format elf32-i386 Disassembly of section .text: 00000000 call 00000002 00000005 Address 0x6 is out of bounds. Disassembly of section .fini: 00000000 ret 00000001 nop 00000002 nop 00000003 nop 00000004 nop 00000005 nop 00000006 nop 00000007 nop 00000008 nop 00000009 nop 0000000a nop 0000000b nop 0000000c nop 0000000d nop 0000000e nop 0000000f Address 0x10 is out of bounds. --- .section .fini .align 16 .type bar,@function bar: ret .Lfe1: .size bar,.Lfe1-bar .align 16 .type foo,@function .text foo: call bar ret .Lfe2: .size foo,.Lfe2-foo