mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
* config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
of object. From Ronald F. Guilmette <rfg@monkeys.com>.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
|
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.
|
* ecoff.c (localsym_t): Add addend field.
|
||||||
(add_ecoff_symbol): Add addend argument. Change all callers.
|
(add_ecoff_symbol): Add addend argument. Change all callers.
|
||||||
(coff_sym_value): Make static.
|
(coff_sym_value): Make static.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ELF object file format
|
/* 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.
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
@ -13,9 +13,10 @@
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
|
||||||
the GNU General Public License for more details.
|
the GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with GAS; see the file COPYING. If not, write
|
along with GAS; see the file COPYING. If not, write to the Free
|
||||||
to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
02111-1307, USA. */
|
||||||
|
|
||||||
#define OBJ_HEADER "obj-elf.h"
|
#define OBJ_HEADER "obj-elf.h"
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
@ -36,6 +37,10 @@
|
|||||||
#include "elf/mips.h"
|
#include "elf/mips.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TC_PPC
|
||||||
|
#include "elf/ppc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NEED_ECOFF_DEBUG
|
#ifdef NEED_ECOFF_DEBUG
|
||||||
static boolean elf_get_extr PARAMS ((asymbol *, EXTR *));
|
static boolean elf_get_extr PARAMS ((asymbol *, EXTR *));
|
||||||
static void elf_set_index PARAMS ((asymbol *, bfd_size_type));
|
static void elf_set_index PARAMS ((asymbol *, bfd_size_type));
|
||||||
@ -934,10 +939,7 @@ obj_elf_size (ignore)
|
|||||||
.type SYM,@function
|
.type SYM,@function
|
||||||
The third (reportedly to be used on Irix 6.0) is
|
The third (reportedly to be used on Irix 6.0) is
|
||||||
.type SYM STT_FUNC
|
.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
|
static void
|
||||||
obj_elf_type (ignore)
|
obj_elf_type (ignore)
|
||||||
@ -971,7 +973,7 @@ obj_elf_type (ignore)
|
|||||||
type = BSF_FUNCTION;
|
type = BSF_FUNCTION;
|
||||||
else if (strcmp (typename, "object") == 0
|
else if (strcmp (typename, "object") == 0
|
||||||
|| strcmp (typename, "STT_OBJECT") == 0)
|
|| strcmp (typename, "STT_OBJECT") == 0)
|
||||||
;
|
type = BSF_OBJECT;
|
||||||
else
|
else
|
||||||
as_bad ("ignoring unrecognized symbol type \"%s\"", typename);
|
as_bad ("ignoring unrecognized symbol type \"%s\"", typename);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user