mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-12 14:37:43 +00:00
85051959f4
just a longword: * struc-symbol.h: New field sy_value. * as.h: Include expr.h before struc-symbol.h. * expr.h: Use struct symbol rather than symbolS. * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value of sy_value field; compile unconditionally, not just if BFD_ASSEMBLER. * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally. * write.c (write_object_file): Set BFD symbol value to gas symbol value. * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h, config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h (S_GET_VALUE, S_SET_VALUE): Removed macro definitions. * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed. * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use S_GET_VALUE rather than ost_entry.n_value. * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars), config/obj-coffbfd.c (symbol_to_chars): Get value to write out using S_GET_VALUE--don't assume it is already set. * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas symbol value. * config/obj-vms.c (various): Don't assign directly to S_GET_VALUE; use S_SET_VALUE instead.
81 lines
2.2 KiB
C
81 lines
2.2 KiB
C
/* This file is obj-generic.h
|
|
Copyright (C) 1987-1992 Free Software Foundation, Inc.
|
|
|
|
This file is part of GAS, the GNU Assembler.
|
|
|
|
GAS is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
GAS is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
/*
|
|
* This file is obj-generic.h and is intended to be a template for
|
|
* object format specific header files.
|
|
*/
|
|
|
|
/* define an obj specific macro off which target cpu back ends may key. */
|
|
#define OBJ_GENERIC 1
|
|
|
|
/* include whatever target cpu is appropriate. */
|
|
#include "targ-cpu.h"
|
|
|
|
/*
|
|
* SYMBOLS
|
|
*/
|
|
|
|
/*
|
|
* If your object format needs to reorder symbols, define this. When
|
|
* defined, symbols are kept on a doubly linked list and functions are
|
|
* made available for push, insert, append, and delete. If not defined,
|
|
* symbols are kept on a singly linked list, only the append and clear
|
|
* facilities are available, and they are macros.
|
|
*/
|
|
|
|
/* #define SYMBOLS_NEED_PACKPOINTERS */
|
|
|
|
/* */
|
|
typedef struct
|
|
{
|
|
void *nothing;
|
|
}
|
|
|
|
obj_symbol_type; /* should be the format's symbol structure */
|
|
|
|
typedef void *object_headers;
|
|
|
|
/* symbols have names */
|
|
#define S_GET_NAME(s) ("foo") /* get the name of a symbolP */
|
|
#define S_SET_NAME(s,v) ;
|
|
/* symbols have segments */
|
|
#define S_GET_SEGMENT(s) (SEG_UNKNOWN)
|
|
#define S_SET_SEGMENT(s,v) ;
|
|
/* symbols may be external */
|
|
#define S_IS_EXTERNAL(s) (0)
|
|
#define S_SET_EXTERNAL(s) ;
|
|
|
|
/* symbols may or may not be defined */
|
|
#define S_IS_DEFINED(s) (0)
|
|
|
|
|
|
#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */
|
|
|
|
#define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
|
|
|
|
/*
|
|
* Local Variables:
|
|
* comment-column: 0
|
|
* fill-column: 131
|
|
* End:
|
|
*/
|
|
|
|
/* end of obj-generic.h */
|