aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/obj-elf.c20
2 files changed, 14 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 22561c8..3a28f27 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
+ * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
+ of object. From Ronald F. Guilmette <rfg@monkeys.com>.
+
* 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 f589264..aaf0095 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);