]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/i386/sol2-10.h
configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine whether the assemb...
[thirdparty/gcc.git] / gcc / config / i386 / sol2-10.h
index af51b4cb37682cd8abcdde3c861af7a6ef8d7bc6..587e56fe7fa9351a8373f35c81192e9a5de7f97f 100644 (file)
@@ -1,5 +1,5 @@
 /* Solaris 10 configuration.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006 Free Software Foundation, Inc.
    Contributed by CodeSourcery, LLC.
 
 This file is part of GCC.
@@ -34,6 +34,14 @@ Boston, MA 02110-1301, USA.  */
                 "-s %(asm_cpu)"
 #endif
 
+/* The native Solaris assembler can't calculate the difference between
+   symbols in different sections, which causes problems for -fPIC jump
+   tables in .rodata.  */
+#ifndef HAVE_AS_IX86_DIFF_SECT_DELTA
+#undef JUMP_TABLES_IN_TEXT_SECTION
+#define JUMP_TABLES_IN_TEXT_SECTION 1
+#endif
+
 #undef NO_PROFILE_COUNTERS
 
 #undef MCOUNT_NAME