public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFC: Disallow protected data symbol with copy relocation?
@ 2005-01-21  4:57 H. J. Lu
  2005-01-21  5:07 ` Ian Lance Taylor
  0 siblings, 1 reply; 10+ messages in thread
From: H. J. Lu @ 2005-01-21  4:57 UTC (permalink / raw)
  To: binutils; +Cc: gcc, hongjiu.lu

Protected data symbol with copy relocation never works as intended.
The problem is with copy relocation, main and DSO see different
copies of the protected data symbol. Updating one won't change
the other. You can't compare their addresses either. There is no
easy way to get it to work unless the psABI is changed. I am proposing
to make linker to reject protected data symbol with copy relocation.
Any comments?


H.J.

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

end of thread, other threads:[~2005-01-24 22:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-21  4:57 RFC: Disallow protected data symbol with copy relocation? H. J. Lu
2005-01-21  5:07 ` Ian Lance Taylor
2005-01-21  5:18   ` H. J. Lu
2005-01-21  5:46     ` Ian Lance Taylor
2005-01-21  5:52       ` H. J. Lu
2005-01-21  6:26         ` Ian Lance Taylor
2005-01-21  6:45           ` H. J. Lu
2005-01-22  1:33             ` RFC: Properly handle protected data symbol with copy relocation H. J. Lu
2005-01-24 19:48               ` Ian Lance Taylor
2005-01-24 22:32                 ` Alan Modra

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