All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abhijit Kadlag <abhijit@csa.iisc.ernet.in>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] linker
Date: Tue, 26 Nov 2002 16:14:14 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590709805484@msgid-missing> (raw)

i am trying to instrument the elf-binaries
on itanium. the task is to write a tool
like 'pixie' available on sgi machines.
 since i need to add counters for each basic block, which
have to be in memory, i need some way of referencing memory.
all i could find is itanium has only register indirect mode
of specifying memory address and then again loading
an address is done by the linker. i tried looking 
at the dis-assmebled code to discover how the linker
does the offset calculation, but i could not find
any correlation between program order of declaring
variables and their offsets , which are added to r1(gp).
 does it use the sections like .got or .plt in 
elf binary ? if yes, how ? 
  shall anyone please tell me , how to add instructions
to the binary of an executable,
which can specify the memory they want to 
access?
 

-- 
----------------------
Abhijit Kadlag
I sem ME,CSE,
Dept. of CSA,
IISc,Banagalore.



             reply	other threads:[~2002-11-26 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 16:14 Abhijit Kadlag [this message]
2002-11-26 17:47 ` [Linux-ia64] linker Jim Wilson
2002-11-26 22:49 ` Ian Wienand

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=marc-linux-ia64-105590709805484@msgid-missing \
    --to=abhijit@csa.iisc.ernet.in \
    --cc=linux-ia64@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.