(ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Copy
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 5 Dec 1992 00:13:25 +0000 (19:13 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 5 Dec 1992 00:13:25 +0000 (19:13 -0500)
definitions from i386v4.h to get PIC code correct.

From-SVN: r2833

gcc/config/i386/386bsd.h

index 68b10961c8f0ca817fd44bddaf53c4428fc38da0..067be38cb2761f706ca342a4a42c1f21b939d082 100644 (file)
                                                                        \
   return ret;                                                          \
 }
+
+/* The following macros are stolen from i386v4.h */
+/* These have to be defined to get PIC code correct */
+
+/* This is how to output an element of a case-vector that is relative.
+   This is only used for PIC code.  See comments by the `casesi' insn in
+   i386.md for an explanation of the expression this outputs. */
+
+#undef ASM_OUTPUT_ADDR_DIFF_ELT
+#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
+  fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
+
+/* Indicate that jump tables go in the text section.  This is
+   necessary when compiling PIC code.  */
+
+#define JUMP_TABLES_IN_TEXT_SECTION