diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-27 00:38:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-27 00:38:25 +0000 |
commit | 0c7a8e5acd399d1d36dbe0cda815844dd5308c10 (patch) | |
tree | 1b0c74e9719dfd6d6b6b1b396373870147643680 /ld/emultempl/mipself.em | |
parent | a9232bb2657c979e51dd77e8d823cd90c749e784 (diff) | |
download | gdb-0c7a8e5acd399d1d36dbe0cda815844dd5308c10.zip gdb-0c7a8e5acd399d1d36dbe0cda815844dd5308c10.tar.gz gdb-0c7a8e5acd399d1d36dbe0cda815844dd5308c10.tar.bz2 |
* emultempl/aix.em: Convert to C90, remove unnecessary prototypes
and casts. Replace PTR with void *. Formatting.
* emultempl/alphaelf.em: Likewise
* emultempl/armcoff.em: Likewise
* emultempl/armelf.em: Likewise
* emultempl/armelf_oabi.em: Likewise
* emultempl/beos.em: Likewise
* emultempl/elf32.em: Likewise
* emultempl/generic.em: Likewise
* emultempl/gld960.em: Likewise
* emultempl/gld960c.em: Likewise
* emultempl/hppaelf.em: Likewise
* emultempl/linux.em: Likewise
* emultempl/lnk960.em: Likewise
* emultempl/m68hc1xelf.em: Likewise
* emultempl/m68kcoff.em: Likewise
* emultempl/m68kelf.em: Likewise
* emultempl/mipsecoff.em: Likewise
* emultempl/mipself.em: Likewise
* emultempl/mmix-elfnmmo.em: Likewise
* emultempl/mmixelf.em: Likewise
* emultempl/mmo.em: Likewise
* emultempl/needrelax.em: Likewise
* emultempl/netbsd.em: Likewise
* emultempl/pe.em: Likewise
* emultempl/sh64elf.em: Likewise
* emultempl/sunos.em: Likewise
* emultempl/ticoff.em: Likewise
* emultempl/vanilla.em: Likewise
* emultempl/xtensaelf.em: Likewise
* Makefile.am: Correct dependencies.
* Makefile.in: Regenerate.
Diffstat (limited to 'ld/emultempl/mipself.em')
-rw-r--r-- | ld/emultempl/mipself.em | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em index 944fbe1..a950fb1 100644 --- a/ld/emultempl/mipself.em +++ b/ld/emultempl/mipself.em @@ -1,3 +1,4 @@ +# This shell script emits a C file. -*- C -*- # Copyright 2002, 2003 Free Software Foundation, Inc. # Written by Mitch Lichtenberg <mpl@broadcom.com> and # Chris Demetriou <cgd@broadcom.com> based on m68kelf.em and mipsecoff.em. @@ -17,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# This shell script emits a C file. -*- C -*- # This file is sourced from elf32.em, and defines some extra routines for m68k @@ -33,17 +33,14 @@ esac cat >>e${EMULATION_NAME}.c <<EOF -static void mips_elf${ELFSIZE}_after_open PARAMS ((void)); #ifdef SUPPORT_EMBEDDED_RELOCS -static void mips_elf${ELFSIZE}_check_sections PARAMS ((bfd *, asection *, - PTR)); +static void mips_elf${ELFSIZE}_check_sections (bfd *, asection *, void *); #endif -static void mips_elf${ELFSIZE}_after_allocation PARAMS ((void)); /* This function is run after all the input files have been opened. */ static void -mips_elf${ELFSIZE}_after_open() +mips_elf${ELFSIZE}_after_open (void) { /* Call the standard elf routine. */ gld${EMULATION_NAME}_after_open (); @@ -105,7 +102,7 @@ mips_elf${ELFSIZE}_after_open() /* Double check that all other data sections have no relocs, as is required for embedded PIC code. */ bfd_map_over_sections (abfd, mips_elf${ELFSIZE}_check_sections, - (PTR) datasec); + datasec); } } #endif /* SUPPORT_EMBEDDED_RELOCS */ @@ -116,13 +113,10 @@ mips_elf${ELFSIZE}_after_open() relocs. This is called via bfd_map_over_sections. */ static void -mips_elf${ELFSIZE}_check_sections (abfd, sec, sdatasec) - bfd *abfd; - asection *sec; - PTR sdatasec; +mips_elf${ELFSIZE}_check_sections (bfd *abfd, asection *sec, void *sdatasec) { if ((bfd_get_section_flags (abfd, sec) & SEC_DATA) - && sec != (asection *) sdatasec + && sec != sdatasec && sec->reloc_count != 0) einfo ("%B%X: section %s has relocs; cannot use --embedded-relocs\n", abfd, bfd_get_section_name (abfd, sec)); @@ -134,7 +128,7 @@ mips_elf${ELFSIZE}_check_sections (abfd, sec, sdatasec) BFD backend routine to do the work. */ static void -mips_elf${ELFSIZE}_after_allocation () +mips_elf${ELFSIZE}_after_allocation (void) { /* Call the standard elf routine. */ after_allocation_default (); |