re PR target/65780 (Uninitialized common handling in executables)
authorJakub Jelinek <jakub@redhat.com>
Mon, 11 May 2015 07:09:04 +0000 (09:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 11 May 2015 07:09:04 +0000 (09:09 +0200)
PR target/65780
* config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
default_binds_local_p_2.
* config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
* config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.

From-SVN: r222992

gcc/ChangeLog
gcc/config/aarch64/aarch64-linux.h
gcc/config/arm/linux-elf.h
gcc/config/s390/linux.h

index c305d2efa45f61804e2ede82b144d9989c710cc2..c6130e2b4bd4edc71c52c1614c939d17bb829a92 100644 (file)
@@ -1,3 +1,11 @@
+2015-05-11  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/65780
+       * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
+       default_binds_local_p_2.
+       * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
+       * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
+
 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
index 7973268e757f3767d2b9a10b33e9dc289390e85c..ba7fc3b4d1d6619569359498f6c6b563e73a581b 100644 (file)
 
 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 
+/* Uninitialized common symbols in non-PIE executables, even with
+   strong definitions in dependent shared libraries, will resolve
+   to COPY relocated symbol in the executable.  See PR65780.  */
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
+
 #endif  /* GCC_AARCH64_LINUX_H */
index 1279cbaf6f2c25845e25ddebaf60ea80385f4122..6455e62489d74db53748eb576c8ba83ba6b09939 100644 (file)
 /* Add .note.GNU-stack.  */
 #undef NEED_INDICATE_EXEC_STACK
 #define NEED_INDICATE_EXEC_STACK       1
+
+/* Uninitialized common symbols in non-PIE executables, even with
+   strong definitions in dependent shared libraries, will resolve
+   to COPY relocated symbol in the executable.  See PR65780.  */
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
index 2048ddc0251403feef6c68e07826b53006dc66b2..21f9825bf6596e0f1467aa9c59bf177f95fa2425 100644 (file)
@@ -90,4 +90,10 @@ along with GCC; see the file COPYING3.  If not see
 #undef TARGET_LIBC_HAS_FUNCTION
 #define TARGET_LIBC_HAS_FUNCTION gnu_libc_has_function
 
+/* Uninitialized common symbols in non-PIE executables, even with
+   strong definitions in dependent shared libraries, will resolve
+   to COPY relocated symbol in the executable.  See PR65780.  */
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
+
 #endif