diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbf0c5d07ae..92bd5db1d3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-10-16 Krister Walfridsson + + * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define. + (JUMP_TABLES_IN_TEXT_SECTION): Define. + Wed Oct 17 00:21:31 CEST 2001 Jan Hubicka * cfg.c (free_edge): Break out from .... diff --git a/gcc/config/i386/netbsd-elf.h b/gcc/config/i386/netbsd-elf.h index e37b1c11c02..48d8129163f 100644 --- a/gcc/config/i386/netbsd-elf.h +++ b/gcc/config/i386/netbsd-elf.h @@ -168,6 +168,16 @@ Boston, MA 02111-1307, USA. */ } #endif +/* This is how to output an element of a case-vector that is relative. + This is only used for PIC code. */ +#undef ASM_OUTPUT_ADDR_DIFF_ELT +#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, 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 (flag_pic) + /* * We always use gas here, so we don't worry about ECOFF assembler problems. */