aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-01-21 14:33:14 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-01-21 14:33:14 -0800
commitc7f0da1dcfccfa3292e9d68fe0aa8b5c5e52d55a (patch)
tree62c3487df3d3790ecbf1be049c7b6a93575de203 /gcc
parenta4796c80627e34e3fa2828225c70dfc3b65c62e6 (diff)
downloadgcc-c7f0da1dcfccfa3292e9d68fe0aa8b5c5e52d55a.zip
gcc-c7f0da1dcfccfa3292e9d68fe0aa8b5c5e52d55a.tar.gz
gcc-c7f0da1dcfccfa3292e9d68fe0aa8b5c5e52d55a.tar.bz2
i386.c (ix86_asm_file_end): Disable putting pic_label_name in a linkonce section.
* config/i386/i386.c (ix86_asm_file_end): Disable putting pic_label_name in a linkonce section. From-SVN: r39176
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4b5f68b..ecf3a2c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-21 Richard Henderson <rth@redhat.com>
+
+ * config/i386/i386.c (ix86_asm_file_end): Disable putting
+ pic_label_name in a linkonce section.
+
2001-01-17 Philipp Thomas <pthomas@suse.de>
* aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 15e7c2e4..2bd4aa3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA. */
#include "expr.h"
#include "toplev.h"
#include "basic-block.h"
+#include "defaults.h"
#include "ggc.h"
#ifndef CHECK_STACK_LIMIT
@@ -1703,7 +1704,10 @@ ix86_asm_file_end (file)
if (! TARGET_DEEP_BRANCH_PREDICTION || pic_label_name[0] == 0)
return;
-#ifdef ASM_OUTPUT_SECTION_NAME
+ /* ??? Binutils 2.10 and earlier has a linkonce elimination bug related
+ to updating relocations to a section being discarded such that this
+ doesn't work. Ought to detect this at configure time. */
+#if 0 && defined (ASM_OUTPUT_SECTION_NAME)
/* The trick here is to create a linkonce section containing the
pic label thunk, but to refer to it with an internal label.
Because the label is internal, we don't have inter-dso name