Richard Henderson
edc27ea5da
* as.h (debug_info_type): Add entries for unspecified and dwarf*.
...
* ecoff.c (ecoff_generate_asm_lineno): Take no arguments; call
as_where ourselves. Provide a stub for !ECOFF_DEBUGGING.
* ecoff.h: Move ECOFF_DEBUGGING protection inside GAS_ECOFF_H.
Move ecoff_generate_asm_lineno outside ECOFF_DEBUGGING protection.
* read.c (generate_lineno_debug): Tidy ECOFF bits. Use
DEBUG_UNSPECIFIED rather than DEBUG_NONE for initial test.
* config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Define to a variable.
(SEPARATE_STAB_SECTIONS): Conditionalize on value of ECOFF_DEBUGGING.
(INIT_STAB_SECTION): Likewise.
(OBJ_PROCESS_STAB): Likewise.
* config/tc-alpha.c (md_longopts): New options -mdebug/-no-mdebug.
(md_parse_option): Watch for them.
(alpha_cur_ent_sym, alpha_flag_mdebug): New variables.
(md_begin): Kill neverdef code.
(s_alpha_ent, s_alpha_end, s_alpha_mask, s_alpha_frame): New.
(s_alpha_prologue): Watch alpha_cur_ent_sym.
(s_alpha_coff_wrapper): New.
(md_pseudo_table): Trap all ECOFF pseudos.
1998-08-02 02:39:52 +00:00
Ron Unrau
4f528afaf1
Start of changes to remove mdebug section from mips*-elf
...
Based on MIPS_STAB_ELF definition
* acconfig.h: undef if not configured
* config.in: undef if not configured
* config/mips-elf.h: only set ECOFF debugging if not stabs-in-elf
* config/tc-mips.c (s_ent): set BSF_FUNCTION
* stabs.c (s_stab_generic): flush frag
1998-07-31 21:56:15 +00:00
Ian Lance Taylor
d88cc85dbb
From Eric Youngdale <eric@andante.jic.com>:
...
* config/obj-elf.h (struct elf_obj_sy): Define.
(OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct. Change all
users.
* config/obj-elf.c (obj_elf_symver): Just record the name.
(obj_symbol_new_hook): Initialized versioned_name field.
(elf_frob_symbol): If there is a versioned_name, either rename the
symbol, or add an alias with that name.
1997-03-10 04:53:55 +00:00
Ian Lance Taylor
0bd28bc4f4
* config/obj-elf.c (elf_begin): New function.
...
(obj_elf_section): Add the section symbol to the symbol table.
* config/obj-elf.h (obj_begin): Define.
(elf_begin): Declare.
* as.c (perform_an_assembly_pass): Call obj_begin if it is
defined.
1996-10-07 15:25:58 +00:00
Ian Lance Taylor
8095b665cb
* as.c (emulation_name): Remove unused static variable.
...
(default_emul_bfd_name): Add return NULL to avoid warning.
* ecoff.c (ecoff_stab): Remove unused variables name and
name_end.
* frags.c (frag_new): Remove unused variable tmp.
* hash.c (hash_grow): Parenthesize + within <<.
(hash_print_statistics): Use %lu, not %d, to print unsigned
long variables.
* messages.c: Include "libiberty.h".
(fprint_value): Add cast to avoid printf warning.
(sprint_value): Likewise.
* read.c: Include "ecoff.h".
(emit_expr): Add casts to avoid printf warnings.
* read.h: Use extern for function declarations.
(pop_insert): Declare.
* stabs.c: Include "ecoff.h".
* subsegs.c (subseg_set_rest): Remove unused variables tmp,
former_last_fragP, and new_fragP.
* subsegs.h (subsegs_print_statistics): Declare.
* symbols.c (debug_verify_symchain): Change macro to discard
arguments.
* write.c (dump_section_relocs): Likewise.
* write.h: Use extern for function declarations.
(write_print_statistics): Declare.
* config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
warning.
* config/e-mipself.c (mipself_bfd_name): Likewise.
* config/obj-elf.h (elf_ecoff_set_ext): Declare.
1996-06-19 18:42:42 +00:00
Ken Raeburn
e51a3912ef
SEPARATE_STAB_SECTIONS should be defined to 1, not empty.
1995-05-05 21:44:11 +00:00
Ken Raeburn
5b9a7bef31
* 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.
1995-05-04 23:41:32 +00:00
Ken Raeburn
9a36b83fcb
* read.c (pseudo_set, case O_symbol): If OBJ_COPY_SYMBOL_ATTRIBUTES is defined,
...
invoke it.
[BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
1994-09-19 16:37:32 +00:00
Kung Hsu
ad14517d3c
Modified Files:
...
obj-ecoff.h obj-elf.h
* config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO,
and generate_asm_lineno.
* config/obj-elf.h : ditto.
1994-09-09 01:02:48 +00:00
Kung Hsu
6f89cd429c
Modified Files:
...
obj-ecoff.h obj-elf.h
* config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB.
* config/obj-elf.h: ditto.
1994-07-08 19:36:55 +00:00
Ian Lance Taylor
c6858c1be5
* ecoff.c (ecoff_frob_symbol): New function. Put undefined
...
symbols of known size in the undefined section. Put small common
symbols in a .scommon section.
* ecoff.h (ecoff_frob_symbol): Declare.
* config/obj-ecoff.h (obj_frob_symbol): Define.
* config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
obj_elf_frob_symbol): Removed unused functions.
* config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
unused macros.
(obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
of unused functions.
(obj_frob_symbol): Define if ECOFF_DEBUGGING.
1994-01-25 00:26:33 +00:00
Ian Lance Taylor
80903ca67b
* config/obj-elf.h (S_GET_SIZE): Define.
...
(obj_frob_forward_symbol): Define.
* config/tc-i386.c (line_comment_chars): Initialize in all cases.
1993-09-17 22:16:29 +00:00
Ian Lance Taylor
58d4951d00
gcc lint. See ChangeLog for details. Also:
...
* config/obj-elf.h (S_SET_SIZE): Actually set the size.
1993-09-10 16:01:07 +00:00
Ken Raeburn
6a54ad639f
(elf_symbol): Fixed name of elf_symbol_type.
...
No longer conditionalized on sparcv9.
1993-09-03 22:19:09 +00:00
Ken Raeburn
bd4d4b8aca
(obj_elf_frob_symbol, elf_frob_file, elf_file_symbol): Declare.
...
(elf_symbol): For sparc v9, use 64-bit symbol type.
1993-07-07 16:22:12 +00:00