public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <9411091915.AA00347@titanic.nynexst.com> (raw)

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 <foo> call   00000002 <foo+2>
00000005 <foo+5> Address 0x6 is out of bounds.
Disassembly of section .fini:
00000000 <bar> ret    
00000001 <bar+1> nop    
00000002 <bar+2> nop    
00000003 <bar+3> nop    
00000004 <bar+4> nop    
00000005 <bar+5> nop    
00000006 <bar+6> nop    
00000007 <bar+7> nop    
00000008 <bar+8> nop    
00000009 <bar+9> nop    
0000000a <bar+a> nop    
0000000b <bar+b> nop    
0000000c <bar+c> nop    
0000000d <bar+d> nop    
0000000e <bar+e> nop    
0000000f <bar+f> 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


                 reply	other threads:[~1994-11-09 11:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9411091915.AA00347@titanic.nynexst.com \
    --to=hjl@nynexst.com \
    --cc=eric@aib.com \
    --cc=gas2@cygnus.com \
    --cc=ian@cygnus.com \
    --cc=raeburn@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).