public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Bob Wilson <bwilson@tensilica.com>
To: rth@redhat.com
Cc: binutils@sources.redhat.com
Subject: Re: [RFC] unify dynamic_symbol_p implementations
Date: Fri, 18 Jul 2003 19:02:00 -0000	[thread overview]
Message-ID: <200307181202.40668.bwilson@tensilica.com> (raw)

I think the "ignore_protected" argument should be 0 for the Xtensa port.  A 
separate relocation (R_XTENSA_32) is used when taking the address of a 
function than when calling it (R_XTENSA_PLT), so there shouldn't be an issue 
with incorrectly comparing the PLT addresses instead of the function 
addresses.  Unless I'm missing something here, you shouldn't have to "assume 
the worst".

> --- elf32-xtensa.c      10 Jul 2003 19:01:47 -0000      1.5
> +++ elf32-xtensa.c      16 Jul 2003 23:35:31 -0000
> @@ -1838,38 +1838,9 @@ xtensa_elf_dynamic_symbol_p (info, h)
> 
[ stuff deleted from here ]
> +  /* ??? What, if anything, needs to happen wrt STV_PROTECTED and PLT
> +     entries?  For now assume the worst.  */
> +  return _bfd_elf_dynamic_symbol_p (h, info, 1);
>  }


Another very minor point is that I find your new comment below confusing.  It 
describes a difference from the generic version but then goes on to use the 
generic version.  I think you're referring to passing 0 for the 
"ignore_protected" argument, right?

--- elf64-alpha.c       4 Jul 2003 13:53:37 -0000       1.101
+++ elf64-alpha.c       16 Jul 2003 23:35:31 -0000
[ chunk deleted ]
@@ -269,49 +269,17 @@ struct alpha_elf_link_hash_table
 #define alpha_elf_sym_hashes(abfd) \
   ((struct alpha_elf_link_hash_entry **)elf_sym_hashes(abfd))
 
-/* Should we do dynamic things to this symbol?  */
+/* Should we do dynamic things to this symbol?  This differs from the 
+   generic version in that we never need to consider function pointer
+   equality wrt PLT entries -- we don't create a PLT entry if a symbol's
+   address is ever taken.  */

             reply	other threads:[~2003-07-18 19:02 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18 19:02 Bob Wilson [this message]
2003-07-18 19:57 ` Richard Henderson
2003-07-18 20:09   ` Bob Wilson
2003-07-18 20:56     ` Richard Henderson
2003-07-18 21:19       ` Bob Wilson
2003-07-18 22:02         ` Richard Henderson
2003-07-18 22:06           ` Daniel Jacobowitz
2003-07-18 22:16             ` Bob Wilson
2003-07-18 22:21               ` Richard Henderson
2003-07-19  2:46                 ` H. J. Lu
2003-07-19  4:13                   ` H. J. Lu
2003-07-19  4:48                     ` H. J. Lu
2003-07-19  5:57                     ` Alan Modra
2003-07-19  6:21                       ` H. J. Lu
2003-07-20 15:13                         ` Alan Modra
2003-07-20 15:26                           ` H. J. Lu
2003-07-21  0:24                             ` Alan Modra
2003-07-21  3:18                               ` H. J. Lu
2003-07-21 19:28                           ` H. J. Lu
2003-07-21 20:48                             ` Richard Henderson
2003-07-21 21:04                               ` H. J. Lu
2003-07-21 23:26                                 ` Ulrich Drepper
2003-07-22  1:18                                   ` Alan Modra
2003-07-22  3:37                                     ` Ulrich Drepper
2003-07-24  0:23                 ` Bob Wilson
  -- strict thread matches above, loose matches on Subject: below --
2003-07-16 23:47 Richard Henderson
2003-07-17 13:22 ` Alan Modra
2003-07-17 16:28   ` Richard Henderson
2003-07-17 19:28     ` H. J. Lu
2003-07-17 21:18       ` Hans-Peter Nilsson
2003-07-18 21:05         ` Richard Henderson

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=200307181202.40668.bwilson@tensilica.com \
    --to=bwilson@tensilica.com \
    --cc=binutils@sources.redhat.com \
    --cc=rth@redhat.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).