public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How to adjust the name of symbols added to the GOT ?
@ 2020-03-26  0:02 William Tambe
  2020-03-26 19:17 ` William Tambe
  0 siblings, 1 reply; 3+ messages in thread
From: William Tambe @ 2020-03-26  0:02 UTC (permalink / raw)
  To: Binutils

We would like to adjust the name of symbols added to the GOT such that
objdump disassembling can display something like: name@GOT.

How can it be accomplished ?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to adjust the name of symbols added to the GOT ?
  2020-03-26  0:02 How to adjust the name of symbols added to the GOT ? William Tambe
@ 2020-03-26 19:17 ` William Tambe
  2020-03-26 23:39   ` Hans-Peter Nilsson
  0 siblings, 1 reply; 3+ messages in thread
From: William Tambe @ 2020-03-26 19:17 UTC (permalink / raw)
  To: Binutils

On Wed, Mar 25, 2020 at 8:02 PM William Tambe <tambewilliam@gmail.com> wrote:
>
> We would like to adjust the name of symbols added to the GOT such that objdump disassembling can display something like: name@GOT.

Is it as simply as replacing the string pointed by
(struct elf_link_hash_entry *)->root.root.string ?

>
> How can it be accomplished ?
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to adjust the name of symbols added to the GOT ?
  2020-03-26 19:17 ` William Tambe
@ 2020-03-26 23:39   ` Hans-Peter Nilsson
  0 siblings, 0 replies; 3+ messages in thread
From: Hans-Peter Nilsson @ 2020-03-26 23:39 UTC (permalink / raw)
  To: William Tambe; +Cc: Binutils

(ITYM the PLT part of the GOT.)

On Thu, 26 Mar 2020, William Tambe via Binutils wrote:

> On Wed, Mar 25, 2020 at 8:02 PM William Tambe <tambewilliam@gmail.com> wrote:
> >
> > We would like to adjust the name of symbols added to the GOT such that objdump disassembling can display something like: name@GOT.
>
> Is it as simply as replacing the string pointed by
> (struct elf_link_hash_entry *)->root.root.string ?

No.

> > How can it be accomplished ?

git grep plt_sym_val.  UTSL.  Happy hacking.

brgds, H-P

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-26 23:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26  0:02 How to adjust the name of symbols added to the GOT ? William Tambe
2020-03-26 19:17 ` William Tambe
2020-03-26 23:39   ` Hans-Peter Nilsson

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).