From: Alan Modra Date: Tue, 3 Jul 2007 03:29:40 +0000 (+0000) Subject: PR 4713 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae4a729bff61b571c63a35ffa265d321cf8f9c89;p=binutils-gdb.git PR 4713 * config/obj-elf.c (elf_ecoff_set_ext): Make static when OBJ_MAYBE_ELF. * config/obj-elf.h (obj_ecoff_set_ext): Comment. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 170934edb8d..a9b086840eb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2007-07-03 Alan Modra + + PR 4713 + * config/obj-elf.c (elf_ecoff_set_ext): Make static when OBJ_MAYBE_ELF. + * config/obj-elf.h (obj_ecoff_set_ext): Comment. + 2007-07-03 Mikkel Lauritsen PR 4722 diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index b826803f9ff..2f93990e721 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1,6 +1,7 @@ /* ELF object file format Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1693,6 +1694,9 @@ adjust_stab_sections (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED) this at the moment, so we do it ourselves. We save the information in the symbol. */ +#ifdef OBJ_MAYBE_ELF +static +#endif void elf_ecoff_set_ext (symbolS *sym, struct ecoff_extr *ext) { diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h index 6fc08d4b663..29356ab3b06 100644 --- a/gas/config/obj-elf.h +++ b/gas/config/obj-elf.h @@ -1,6 +1,6 @@ /* ELF object file format. Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2006 Free Software Foundation, Inc. + 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -236,6 +236,7 @@ extern void elf_pop_insert (void); #endif #ifndef OBJ_MAYBE_ELF +/* If OBJ_MAYBE_ELF then obj-multi.h will define obj_ecoff_set_ext. */ #define obj_ecoff_set_ext elf_ecoff_set_ext struct ecoff_extr; extern void elf_ecoff_set_ext (symbolS *, struct ecoff_extr *);