aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/mmo.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-27 00:38:25 +0000
committerAlan Modra <amodra@gmail.com>2003-06-27 00:38:25 +0000
commit0c7a8e5acd399d1d36dbe0cda815844dd5308c10 (patch)
tree1b0c74e9719dfd6d6b6b1b396373870147643680 /ld/emultempl/mmo.em
parenta9232bb2657c979e51dd77e8d823cd90c749e784 (diff)
downloadgdb-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/mmo.em')
-rw-r--r--ld/emultempl/mmo.em26
1 files changed, 6 insertions, 20 deletions
diff --git a/ld/emultempl/mmo.em b/ld/emultempl/mmo.em
index 84d1197..9e19af1 100644
--- a/ld/emultempl/mmo.em
+++ b/ld/emultempl/mmo.em
@@ -32,22 +32,13 @@ EOF
cat >>e${EMULATION_NAME}.c <<EOF
-static bfd_boolean mmo_place_orphan
- PARAMS ((lang_input_statement_type *, asection *));
-static asection *output_prev_sec_find
- PARAMS ((lang_output_section_statement_type *));
-static void mmo_finish PARAMS ((void));
-static void mmo_wipe_sec_reloc_flag PARAMS ((bfd *, asection *, PTR));
-static void mmo_after_open PARAMS ((void));
-
/* Find the last output section before given output statement.
Used by place_orphan. */
static asection *
-output_prev_sec_find (os)
- lang_output_section_statement_type *os;
+output_prev_sec_find (lang_output_section_statement_type *os)
{
- asection *s = (asection *) NULL;
+ asection *s = NULL;
lang_statement_union_type *u;
lang_output_section_statement_type *lookup;
@@ -85,9 +76,7 @@ struct orphan_save {
from elf32.em. */
static bfd_boolean
-mmo_place_orphan (file, s)
- lang_input_statement_type *file;
- asection *s;
+mmo_place_orphan (lang_input_statement_type *file, asection *s)
{
static struct orphan_save hold_text;
struct orphan_save *place;
@@ -227,10 +216,7 @@ mmo_place_orphan (file, s)
paper over the bug similarly. */
static void
-mmo_wipe_sec_reloc_flag (abfd, sec, ptr)
- bfd *abfd;
- asection *sec;
- PTR ptr ATTRIBUTE_UNUSED;
+mmo_wipe_sec_reloc_flag (bfd *abfd, asection *sec, void *ptr ATTRIBUTE_UNUSED)
{
bfd_set_section_flags (abfd, sec,
bfd_get_section_flags (abfd, sec) & ~SEC_RELOC);
@@ -239,7 +225,7 @@ mmo_wipe_sec_reloc_flag (abfd, sec, ptr)
/* Iterate with bfd_map_over_sections over mmo_wipe_sec_reloc_flag... */
static void
-mmo_finish ()
+mmo_finish (void)
{
bfd_map_over_sections (output_bfd, mmo_wipe_sec_reloc_flag, NULL);
}
@@ -251,7 +237,7 @@ mmo_finish ()
when all input files are seen, which is equivalent. */
static void
-mmo_after_open ()
+mmo_after_open (void)
{
/* When there's a mismatch between the output format and the emulation
(using weird combinations like "-m mmo --oformat elf64-mmix" for