1/* Definitions for PA_RISC with ELF-32 format 2 Copyright (C) 2000, 2002 Free Software Foundation, Inc. 3 4This file is part of GCC. 5 6GCC is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2, or (at your option) 9any later version. 10 11GCC is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with GCC; see the file COPYING. If not, write to 18the Free Software Foundation, 59 Temple Place - Suite 330, 19Boston, MA 02111-1307, USA. */ 20 21/* Turn off various SOM crap we don't want. */ 22#undef TARGET_ELF32 23#define TARGET_ELF32 1 24 25/* The libcall __canonicalize_funcptr_for_compare is referenced in 26 crtend.o and the reference isn't resolved in objects that don't 27 compare function pointers. Thus, we need to play games to provide 28 a reference in crtbegin.o. The rest of the define is the same 29 as that in crtstuff.c */ 30#define CTOR_LIST_BEGIN \ 31 asm (".type __canonicalize_funcptr_for_compare,@function\n" \ 32" .text\n" \ 33" .word __canonicalize_funcptr_for_compare-$PIC_pcrel$0"); \ 34 STATIC func_ptr __CTOR_LIST__[1] \ 35 __attribute__ ((__unused__, section(".ctors"), \ 36 aligned(sizeof(func_ptr)))) \ 37 = { (func_ptr) (-1) } 38