aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-05-04 23:41:32 +0000
committerKen Raeburn <raeburn@cygnus>1995-05-04 23:41:32 +0000
commit5b9a7bef314c53d6abcb216ae844153849936946 (patch)
tree3fcd6d6cc93aa1d77ae5b638bd96dd399041516b /gas
parent8c5e0f5e05c7fdb514f85596b4967411584d9774 (diff)
downloadfsf-binutils-gdb-5b9a7bef314c53d6abcb216ae844153849936946.zip
fsf-binutils-gdb-5b9a7bef314c53d6abcb216ae844153849936946.tar.gz
fsf-binutils-gdb-5b9a7bef314c53d6abcb216ae844153849936946.tar.bz2
* config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument, ignored.
* config/obj-elf.h (OBJ_PROCESS_STAB) [ECOFF_DEBUGGING]: Ditto. * config/obj-ecoff.h (ECOFF_DEBUGGING): Define to 1, not empty. * config/obj-elf.h (ECOFF_DEBUGGING): Ditto. Test value, not whether it's defined.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-ecoff.h10
-rw-r--r--gas/config/obj-elf.h27
2 files changed, 20 insertions, 17 deletions
diff --git a/gas/config/obj-ecoff.h b/gas/config/obj-ecoff.h
index 5d7a32d..92676e6 100644
--- a/gas/config/obj-ecoff.h
+++ b/gas/config/obj-ecoff.h
@@ -22,7 +22,9 @@
#define OBJ_ECOFF 1
/* Use the generic ECOFF debugging code. */
-#define ECOFF_DEBUGGING
+#define ECOFF_DEBUGGING 1
+
+#define OUTPUT_FLAVOR bfd_target_ecoff_flavour
#include "targ-cpu.h"
@@ -51,11 +53,11 @@ extern void ecoff_frob_file PARAMS ((void));
#define obj_symbol_new_hook ecoff_symbol_new_hook
/* At the moment we don't want to do any stabs processing in read.c. */
-#define OBJ_PROCESS_STAB(what, string, type, other, desc) \
+#define OBJ_PROCESS_STAB(seg, what, string, type, other, desc) \
ecoff_stab ((what), (string), (type), (other), (desc))
-#define OBJ_GENERATE_ASM_LINE_STAB(lineno) \
- ecoff_generate_asm_line_stab ((lineno))
+#define OBJ_GENERATE_ASM_LINENO(filename, lineno) \
+ ecoff_generate_asm_lineno ((filename), (lineno))
#define EMIT_SECTION_SYMBOLS 0
#define obj_sec_sym_ok_for_reloc(SEC) 1
diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h
index b014182..4348b6c 100644
--- a/gas/config/obj-elf.h
+++ b/gas/config/obj-elf.h
@@ -26,10 +26,16 @@
#define OBJ_ELF 1
+#define OUTPUT_FLAVOR bfd_target_elf_flavour
+
#include <bfd.h>
#define BYTES_IN_WORD 4 /* for now */
-#include "../bfd/libelf.h"
+#include "bfd/libelf.h"
+
+/* Use this to keep track of .size expressions that involve differences
+ that we can't compute yet. */
+#define OBJ_SYMFIELD_TYPE expressionS *
/* Symbol fields used by the ELF back end. */
#define ELF_TARGET_SYMBOL_FIELDS int local:1; unsigned long sy_name_offset;
@@ -57,16 +63,11 @@
extern asection *gdb_section;
-/* Copy over the function bit and size of a forwarded symbol. */
-#define obj_frob_forward_symbol(sym) \
- (((sym)->bsym->flags |= \
- ((sym)->sy_value.X_add_symbol->bsym->flags & BSF_FUNCTION)), \
- S_SET_SIZE ((sym), S_GET_SIZE ((sym)->sy_value.X_add_symbol)))
-
#define obj_frob_file() elf_frob_file()
extern void elf_frob_file PARAMS ((void));
extern void elf_file_symbol PARAMS ((char *));
+#define obj_app_file elf_file_symbol
extern void obj_elf_section PARAMS ((int));
extern void obj_elf_previous PARAMS ((int));
@@ -92,10 +93,10 @@ extern void obj_elf_init_stab_section PARAMS ((segT));
/* For now, always set ECOFF_DEBUGGING for a MIPS target. */
#ifdef TC_MIPS
-#define ECOFF_DEBUGGING
+#define ECOFF_DEBUGGING 1
#endif
-#ifdef ECOFF_DEBUGGING
+#if ECOFF_DEBUGGING
/* If we are generating ECOFF debugging information, we need some
additional fields for each symbol. */
@@ -110,15 +111,15 @@ extern void obj_elf_init_stab_section PARAMS ((segT));
The Irix linker can not handle a separate stabs section. */
#undef SEPARATE_STAB_SECTIONS
#undef INIT_STAB_SECTION
-#define OBJ_PROCESS_STAB(what, string, type, other, desc) \
+#define OBJ_PROCESS_STAB(seg, what, string, type, other, desc) \
ecoff_stab ((what), (string), (type), (other), (desc))
#define OBJ_GENERATE_ASM_LINENO(filename, lineno) \
ecoff_generate_asm_lineno ((filename), (lineno))
-/* ECOFF requires that we call the ecoff_frob_symbol hook. */
-#define obj_frob_symbol(symp, punt) ecoff_frob_symbol (symp)
-
#endif /* ECOFF_DEBUGGING */
+extern void elf_frob_symbol PARAMS ((struct symbol *));
+#define obj_frob_symbol(symp, punt) elf_frob_symbol (symp)
+
#endif /* _OBJ_ELF_H */