From: Ian Lance Taylor Date: Mon, 29 Jan 1996 22:11:12 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e78d072415b4f1f916fc09afdfd27fb16a9804a;p=binutils-gdb.git * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type of object. From Ronald F. Guilmette . --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 22561c8ca71..3a28f27ea63 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Mon Jan 29 12:21:30 1996 Ian Lance Taylor + * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type + of object. From Ronald F. Guilmette . + * ecoff.c (localsym_t): Add addend field. (add_ecoff_symbol): Add addend argument. Change all callers. (coff_sym_value): Make static. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index f589264e0bb..aaf00950c91 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1,5 +1,5 @@ /* ELF object file format - Copyright (C) 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -13,9 +13,10 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public - License along with GAS; see the file COPYING. If not, write - to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU General Public License + along with GAS; see the file COPYING. If not, write to the Free + Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ #define OBJ_HEADER "obj-elf.h" #include "as.h" @@ -36,6 +37,10 @@ #include "elf/mips.h" #endif +#ifdef TC_PPC +#include "elf/ppc.h" +#endif + #ifdef NEED_ECOFF_DEBUG static boolean elf_get_extr PARAMS ((asymbol *, EXTR *)); static void elf_set_index PARAMS ((asymbol *, bfd_size_type)); @@ -934,10 +939,7 @@ obj_elf_size (ignore) .type SYM,@function The third (reportedly to be used on Irix 6.0) is .type SYM STT_FUNC - - FIXME: We do not fully support this pseudo-op. In fact, the only - case we do support is setting the type to STT_FUNC, which we do by - setting the BSF_FUNCTION flag. */ + */ static void obj_elf_type (ignore) @@ -971,7 +973,7 @@ obj_elf_type (ignore) type = BSF_FUNCTION; else if (strcmp (typename, "object") == 0 || strcmp (typename, "STT_OBJECT") == 0) - ; + type = BSF_OBJECT; else as_bad ("ignoring unrecognized symbol type \"%s\"", typename);