public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How to avoid unnecessary R_IA64_FPTR64LSB in executable?
@ 2005-04-28  7:00 H. J. Lu
  2005-04-29  1:36 ` PATCH: Avoid unnecessary R_IA64_FPTR64LSB in executable H. J. Lu
  2005-04-30  0:38 ` How to avoid unnecessary R_IA64_FPTR64LSB in executable? James E Wilson
  0 siblings, 2 replies; 11+ messages in thread
From: H. J. Lu @ 2005-04-28  7:00 UTC (permalink / raw)
  To: binutils

The ia64 linker creates unnecessary R_IA64_FPTR64LSB relocations:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=883

Basically, the ia64 linker creates R_IA64_FPTR64LSB relocations in
executable when there is any reference in DSO even though it is only
needed for dynamic R_IA64_FPTR64LSB relocations. I have 2 questions:

1. When we export a function in executable, whose function pointer is
used in executable and which is referenced by a DSO, can we create a
R_IA64_FPTR64LSB in executable only when there is a dynamic
R_IA64_FPTR64LSB reference? The only problem I can see is the different
version of the DSO may have dynamic R_IA64_FPTR64LSB reference. But
I think it is the same problem that the different version of the DSO 
may reference functions in executable which weren't referenced and
weren't exported before.
2. Assuming, we create a R_IA64_FPTR64LSB in executable only when
there is a dynamic R_IA64_FPTR64LSB relocation, how does linker
know there is a dynamic R_IA64_FPTR64LSB relocation? I am thinking to
allow the backend to read dynamic relocations after all input files
have been opened. The ia64 backend will have enough information to
decide what to do.


H.J.

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

end of thread, other threads:[~2005-05-05 22:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28  7:00 How to avoid unnecessary R_IA64_FPTR64LSB in executable? H. J. Lu
2005-04-29  1:36 ` PATCH: Avoid unnecessary R_IA64_FPTR64LSB in executable H. J. Lu
2005-04-29  6:30   ` Richard Henderson
2005-04-29  7:56     ` H. J. Lu
2005-04-30  0:38 ` How to avoid unnecessary R_IA64_FPTR64LSB in executable? James E Wilson
2005-04-30 19:37   ` H. J. Lu
2005-05-03  2:02     ` James E Wilson
2005-05-03  2:53       ` Allow linker script on executable and hidden symbol H. J. Lu
2005-05-05 19:26         ` H. J. Lu
2005-05-05 22:24           ` James E Wilson
2005-05-05 23:25             ` H. J. Lu

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