aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-08Fix copyright noticesNick Clifton1-1/+1
2000-11-162000-11-16 H.J. Lu <hjl@gnu.org>H.J. Lu1-6/+2
* config/obj-elf.c (obj_elf_symver): Don't check the missing version name.
2000-11-142000-11-14 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-2/+2
* config/aout_gnu.h: Fix formatting. * config/atof-vax.c: Likewise. * config/m68k-parse.h: Likewise. * config/m88k-opcode.h: Likewise. * config/obj-elf.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-cris.c: Likewise. * config/tc-i386.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-mn10300.c: Likewise. * config/te-386bsd.h: Likewise. * config/te-hppa.h: Likewise. * config/te-nbsd.h: Likewise. * config/te-ppcnw.h: Likewise. * config/te-sparcaout.h: Likewise. * config/te-tmips.h: Likewise. * config/vax-inst.h: Likewise. * config/vms-conf.h: Likewise.
2000-11-132000-11-13 H.J. Lu <hjl@gnu.org>H.J. Lu1-30/+63
* config/obj-elf.c (elf_frob_symbol): Support ".symver name,name2@@@nodename". (elf_frob_file_before_adjust): Likewise. * doc/as.texinfo: Updated for ".symver name,name2@@@nodename" and ".symver name,name2@@@nodename". Fix a typo.
2000-11-132000-11-12 H.J. Lu (hjl@gnu.org)H.J. Lu1-2/+6
* config/obj-elf.c (obj_elf_symver): Check missing version name.
2000-11-082000-11-07 H.J. Lu <hjl@gnu.org>H.J. Lu1-15/+44
* doc/as.texinfo (.symver): Updated for versioned symbol reference. * obj.h (format_ops): Add the frob_file_before_adjust field. * config/obj-aout.c (aout_format_ops): Set the frob_file_before_adjust field to 0. * config/obj-coff.c (coff_format_ops): Likewise. * config/obj-ecoff.c (ecoff_format_ops): Likewise. * config/obj-elf.c (obj_elf_symver): Allow duplicated version name. (elf_frob_file_before_adjust): New function to remove unneeded versioned symbols from the symbol table. (elf_format_ops): Set the frob_file_before_adjust field to elf_frob_file_before_adjust. * config/obj-elf.h (obj_frob_file_before_adjust): Defined if not defined. * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
2000-10-11Revert 2000-10-07 link-once section symbol changes.Alan Modra1-15/+0
2000-10-07Make elf section symbols global for link-once sections.Alan Modra1-0/+15
2000-09-142000-09-13 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-10/+8
* config/obj-ecoff.c: Fix formatting. * config/obj-elf.c: Likewise. * config/obj-elf.h: Likewise. * config/obj-evax.h: Likewise. * config/obj-generic.h: Likewise. * config/obj-hp300.c: Likewise. * config/obj-hp300.h: Likewise. * config/obj-ieee.h: Likewise. * config/obj-vms.c: Likewise. * config/obj-vms.h: Likewise.
2000-09-05Munge in vtable support for tc-hppa.c, inform elf back-end aboutAlan Modra1-16/+20
millicode, and make $PIC_pcrel$0 work.
2000-07-292000-07-28 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt1-1/+7
* configure.in: Add bits for i860-stardent-{sysv4, elf}*. * configure: Regenerated. * config/obj-elf.c (obj_elf_type): Recognize a fifth type of operand to the .type directive (.e.g, "type").
2000-06-19Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add supportNick Clifton1-1/+1
for m68hc11 and m68hc12 processors.
2000-05-22 * obj.h (struct format_ops): New members begin, app_file,Hans-Peter Nilsson1-2/+41
s_set_other, s_set_desc, s_get_type, s_set_type, separate_stab_sections, init_stab_section. * config/obj-multi.h: Update GPL notice to v2. (obj_begin): New. (obj_app_file): New. (S_SET_SIZE): Test s_set_size for NULL before calling. (S_SET_ALIGN): Similar for s_set_align. (S_SET_OTHER): New. (S_SET_DESC): New. (S_GET_TYPE): New. (S_SET_TYPE): New. (SEPARATE_STAB_SECTIONS): New. (INIT_STAB_SECTION): New. (EMIT_SECTION_SYMBOLS): New. (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define. * config/obj-elf.h: Update GPL notice to v2. Mention that this file is included from obj-multi.h. (obj_begin): Wrap definition in ifndef. (elf_file_symbol): Constify declaration. (obj_app_file): Ditto. (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB): Wrap in ifndef SEPARATE_STAB_SECTIONS. * config/obj-elf.c (elf_s_set_other): New. (elf_file_symbol): Constify argument. (elf_separate_stab_sections): New. (elf_init_stab_section): New. (elf_format_ops): Add new members. Remove comma at end. * config/obj-ecoff.c (ecoff_separate_stab_sections): New. (ecoff_format_ops): Add new fields. Remove comma at end. Mention inconsistency for emit_section_symbols. * config/obj-coff.h (c_dot_file_symbol): Constify declaration. * config/obj-coff.c (c_dot_file_symbol): Constify argument. (coff_separate_stab_sections): New. (coff_format_ops): Add new members. * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New. (obj_aout_s_set_other): New. (obj_aout_s_set_desc): New. (obj_aout_s_get_type): New. (obj_aout_s_set_type): New. (obj_aout_separate_stab_sections): New. (aout_format_ops): New members added. Use obj_aout_process_stab, not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0. (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as appropriate. (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
2000-04-20Check for changed section attributes.Alan Modra1-37/+57
2000-02-282000-02-27 Thomas de Lellis <tdel@windriver.com>Ian Lance Taylor1-3/+5
* config/obj-elf.c (elf_frob_symbol): Remove code which when TC_PPC was defined forced the type of a symbol with no other type to be BSF_OBJECT.
2000-02-23Add IBM 370 support.Alan Modra1-0/+6
2000-01-26Make copyright date lists comply with GNU requirementAlan Modra1-20/+21
2000-01-26This set of patches add support for aout emulation on the x86Alan Modra1-11/+20
assembler. ie. You will be able to do "as --em=i386aout" on an x86 linux-elf assembler to generate aout format object files, rather than using a separate assembler. The aout emulation is enabled by giving "--enable-targets=i386-linuxaout" to configure. Oh yeah, there's a couple of fixes too. Error messages shouldn't be passed to printf in the format arg just in case someone puts a `%' in the message.
2000-01-03ELF visibility patch from Martin LoewisNick Clifton1-0/+48
1999-11-03 * config/obj-elf.c (obj_elf_ident): Call md_flush_pending_outputIan Lance Taylor1-3/+11
if it is defined. * config/obj-elf.c (elf_set_index): Add ATTRIBUTE_UNUSED. * config/obj-elf.c (elf_frob_file_after_relocs): Don't pass NULL to bfd_set_section_contents.
1999-07-11 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-15/+17
as appropriate. Fill in structure initializations. Add variable initializations. Add casts. * dwarf2dbg.c (print_stats): Change i to size_t. * listing.c (listing_listing): Change list_line to unsigned int.
1999-06-23Make the mcore even more paranoid about section switchingNick Clifton1-6/+3
1999-06-07 * config/obj-elf.c (obj_elf_common): In MRI mode if called asAndreas Schwab1-3/+9
`common' pass on to s_mri_common. (elf_pseudo_table): Pass 1 to obj_elf_common for `common'.
1999-06-06 * config/obj-elf.c (obj_elf_section): Don't free the returnRichard Henderson1-2/+0
value of demand_copy_C_string.
1999-06-05 * dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbolRichard Henderson1-206/+272
creation logic from obj_elf_create_section. * config/obj-elf.c (elf_pseudo_tab): Add pushsection/popsection. (section_stack): New. (special_sections): Make const. (obj_elf_section): Gut and rewrite parsing. (obj_elf_change_section): New function broken out of obj_elf_section. (obj_elf_parse_section_letters): Likewise. (obj_elf_section_word): Likewise. (obj_elf_section_type): Likewise. (obj_elf_previous): Treat as a toggle. (obj_elf_popsection): New. * config/tc-ppc.c (ppc_section_word): Take str+len not ptr_str. (ppc_section_type): Likewise. * config/tc-ppc.h: Likewise. * expr.h (struct expressionS): Don't make X_op a bitfield. * config/tc-alpha.c: Update for symbol handling changes. (md_apply_fix) [case GPREL]: Use now_seg instead of absolute_section. (load_expression, emit_ir_load, emit_loadstore, emit_jsrjmp): Likewise.
1999-06-03 * config/obj-elf.c (elf_pseudo_table): Add `common'.Richard Henderson1-0/+1
1999-06-03 Add support for storing local symbols in a small structure to saveIan Lance Taylor1-45/+59
memory when assembling large files. * as.h: Don't include struc-symbol.h. (symbolS): Add typedef. * symbols.c: Include struc-symbol.h. (local_hash): New static variable. (save_symbol_name): New static function, from symbol_create. (symbol_create): Call save_symbol_name. (local_symbol_count): New static variable. (local_symbol_conversion_count): Likewise. (LOCAL_SYMBOL_CHECK): Define. (local_symbol_make): New static function. (local_symbol_convert): New static function. (colon): Handle local symbols. Create local symbol for local label name. (symbol_table_insert): Handle local symbols. (symbol_find_or_make): Create local symbol for local label name. (symbol_find_base): Check for local symbol. (symbol_append, symbol_insert): Check for local symbols. (symbol_clear_list_pointers, symbol_remove): Likewise. (verify_symbol_chain): Likewise. (copy_symbol_attributes): Likewise. (resolve_symbol_value): Handle local symbols. (resolve_local_symbol): New static function. (resolve_local_symbol_values): New function. (S_GET_VALUE, S_SET_VALUE): Handle local symbols. (S_IS_FUNCTION, S_IS_EXTERNAL, S_IS_WEAK, S_IS_COMMON): Likewise. (S_IS_DEFINED, S_IS_DEBUG, S_IS_LOCAL, S_GET_NAME): Likewise. (S_GET_SEGMENT, S_SET_SEGMENT, S_SET_EXTERNAL): Likewise. (S_CLEAR_EXTERNAL, S_SET_WEAK, S_SET_NAME): Likewise. (symbol_previous, symbol_next): New functions. (symbol_get_value_expression): Likewise. (symbol_set_value_expression): Likewise. (symbol_set_frag, symbol_get_frag): Likewise. (symbol_mark_used, symbol_clear_used, symbol_used_p): Likewise. (symbol_mark_used_in_reloc): Likewise. (symbol_clear_used_in_reloc, symbol_used_in_reloc_p): Likewise. (symbol_mark_mri_common, symbol_clear_mri_common): Likewise. (symbol_mri_common_p): Likewise. (symbol_mark_written, symbol_clear_written): Likewise. (symbol_written_p): Likewise. (symbol_mark_resolved, symbol_resolved_p): Likewise. (symbol_section_p, symbol_equated_p): Likewise. (symbol_constant_p): Likewise. (symbol_get_bfdsym, symbol_set_bfdsym): Likewise. (symbol_get_obj, symbol_set_obj): Likewise. (symbol_get_tc, symbol_set_tc): Likewise. (symbol_begin): Initialize local_hash. (print_symbol_value_1): Handle local symbols. (symbol_print_statistics): Print local symbol statistics. * symbols.h: Include "struc-symbol.h" if not BFD_ASSEMBLER. Declare new symbols.c functions. Move many declarations here from struc-symbol.h. (SYMBOLS_NEED_BACKPOINTERS): Define if needed. * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Don't set. (struct symbol): Move bsym to make it clearly the first field. Remove TARGET_SYMBOL_FIELDS. (symbolS): Don't typedef. (struct broken_word): Remove. (N_TYPE_seg, seg_N_TYPE): Move to symbol.h. (SEGMENT_TO_SYMBOL_TYPE, N_REGISTER): Likewise. (symbol_clear_list_pointers): Likewise. (symbol_insert, symbol_remove): Likewise. (symbol_previous, symbol_append): Likewise. (verify_symbol_chain, verify_symbol_chain_2): Likewise. (struct local_symbol): Define. (local_symbol_converted_p, local_symbol_mark_converted): Define. (local_symbol_resolved_p, local_symbol_mark_resolved): Define. (local_symbol_get_frag, local_symbol_set_frag): Define. (local_symbol_get_real_symbol): Define. (local_symbol_set_real_symbol): Define. Define. * write.c (write_object_file): Call resolve_local_symbol_values. * config/obj-ecoff.h (OBJ_SYMFIELD_TYPE): Define. (TARGET_SYMBOL_FIELDS): Don't define. * config/obj-elf.h (OBJ_SYMFIELD_TYPE): Add local field. If ECOFF_DEBUGGING, add ECOFF fields. (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define. * config/obj-multi.h (struct elf_obj_sy): Add local field. If ECOFF_DEBUGGING, add ECOFF fields. (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define. (ECOFF_DEBUG_TARGET_SYMBOL_FIELDS): Don't define. * config/tc-mcore.h: Don't include struc-symbol.h. (TARGET_SYMBOL_FIELDS): Don't define. (struct mcore_tc_sy): Define. (TC_SYMFIELD_TYPE): Define. * Many files: Use symbolS instead of struct symbol. Use new accessor functions rather than referring to symbolS fields directly. * read.c (s_mri_common): Don't add in value of line_label. * config/tc-mips.c (md_apply_fix): Correct parenthesization when checking for SEC_LINK_ONCE. * config/tc-sh.h (sh_fix_adjustable): Declare.
1999-05-28 -Wchar-subscripts cleanupDoug Evans1-1/+1
* listing.c (listing_newline): Use unsigned char variable, so calls to isascii,iscntrl are correct. * atof-generic.c (atof_generic): Cast arg to isdigit, et. al. with (unsigned char). * ecoff.c (ecoff_directive_ent,ecoff_stab): Ditto. * config/obj-elf.c (obj_elf_vtable_inherit): Ditto. * config/tc-mips.c (mips_ip,mips16_ip): Ditto. (my_getSmallExpression,get_number,s_mips_ent): Ditto.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+1764