This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386 freebsd-elf and sysv4 jump table patch
- To: egcs-patches at cygnus dot com
- Subject: i386 freebsd-elf and sysv4 jump table patch
- From: john at feith dot com (John Wehle)
- Date: Sun, 21 Jun 1998 20:31:16 -0400
This patch follows Intel's recommendation of not placing data (in this
case jump tables) in the code segment.
ChangeLog:
Sun Jun 21 16:57:54 EDT 1998 John Wehle (john@feith.com)
* i386/freebsd-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Define as flag_pic.
* i386/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Define as flag_pic.
Enjoy!
-- John Wehle
------------------8<------------------------8<------------------------
*** gcc/config/i386/freebsd-elf.h.ORIGINAL Thu May 21 20:01:09 1998
--- gcc/config/i386/freebsd-elf.h Sun Jun 21 15:04:00 1998
***************
*** 38,44 ****
/* Indicate that jump tables go in the text section. This is
necessary when compiling PIC code. */
! #define JUMP_TABLES_IN_TEXT_SECTION 1
/* Copy this from the svr4 specifications... */
/* Define the register numbers to be used in Dwarf debugging information.
--- 38,44 ----
/* Indicate that jump tables go in the text section. This is
necessary when compiling PIC code. */
! #define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
/* Copy this from the svr4 specifications... */
/* Define the register numbers to be used in Dwarf debugging information.
*** gcc/config/i386/sysv4.h.ORIGINAL Thu May 21 20:01:15 1998
--- gcc/config/i386/sysv4.h Sun Jun 21 12:38:53 1998
***************
*** 242,248 ****
/* Indicate that jump tables go in the text section. This is
necessary when compiling PIC code. */
! #define JUMP_TABLES_IN_TEXT_SECTION 1
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named
--- 242,248 ----
/* Indicate that jump tables go in the text section. This is
necessary when compiling PIC code. */
! #define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------