This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] -pie fix


Hi!

One forgotten fix which I had in my tree for almost a month.
Commited as obvious.

2003-07-04  Jakub Jelinek  <jakub@redhat.com>

	* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
	true even if -pie.

--- bfd/elf-bfd.h.jj	2003-07-04 09:19:23.000000000 -0400
+++ bfd/elf-bfd.h	2003-07-04 09:24:30.000000000 -0400
@@ -217,7 +217,7 @@ struct elf_link_hash_entry
    it's necessary for shared libs to also reference the .plt even
    though the symbol is really local to the shared lib.  */
 #define SYMBOL_REFERENCES_LOCAL(INFO, H)				\
-  ((! (INFO)->shared							\
+  (((INFO)->executable							\
     || (INFO)->symbolic							\
     || (H)->dynindx == -1						\
     || ELF_ST_VISIBILITY ((H)->other) == STV_INTERNAL			\
@@ -227,7 +227,7 @@ struct elf_link_hash_entry
 
 /* Will _calls_ to this symbol always call the version in this object?  */
 #define SYMBOL_CALLS_LOCAL(INFO, H)					\
-  ((! (INFO)->shared							\
+  (((INFO)->executable							\
     || (INFO)->symbolic							\
     || (H)->dynindx == -1						\
     || ELF_ST_VISIBILITY ((H)->other) != STV_DEFAULT			\

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]