public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@wasabisystems.com>
To: Narendra Kiran Chinnam <narendrakiran@yahoo.co.in>
Cc: binutils@sources.redhat.com
Subject: Re: Need to create new relocation node
Date: Sat, 30 Oct 2004 14:56:00 -0000	[thread overview]
Message-ID: <m3d5z0ntko.fsf@gossamer.airs.com> (raw)
In-Reply-To: <20041030122016.68775.qmail@web8501.mail.in.yahoo.com>

Narendra Kiran Chinnam <narendrakiran@yahoo.co.in> writes:

> When Iam trying to call a static function from another
> function, a 'jmp' instruction is placed instead of
> 'call' instruction. I have used "-O2" optimization.
> Without optimization flag, 'call' instruction is
> placed as expected. It is required that a relocation
> node be generated for function call. I have modified
> gas to emit relocations for static function calls. But
> when -O2 flag is used no relocation is generated.  Now
> I need to make sure that a relocation is generated for
> every 'jmp' instruction whose target is a function. I
> tried modifying "md_convert_flag" in "tc-i386.c", but
> to no avail. I would appreciate any help that would
> solve this problem.

What is generating the jmp instruction?  Sounds like you need to
modify the compiler, not the assembler.  You may want to try the
compiler option -fno-optimize-sibling-calls.

Ian

      reply	other threads:[~2004-10-30 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30 12:20 Narendra Kiran Chinnam
2004-10-30 14:56 ` Ian Lance Taylor [this message]

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=m3d5z0ntko.fsf@gossamer.airs.com \
    --to=ian@wasabisystems.com \
    --cc=binutils@sources.redhat.com \
    --cc=narendrakiran@yahoo.co.in \
    /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).