aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-03-22 * archive.c (bfd_construct_extended_name_table): Use ar_padcharJeff Law1-0/+8
for first character in an extended name. (_bfd_write_archive_contents): If ar_padchar == '/', then use "//" as the name of the special archive member holding the extended name table.
1994-03-22 Support for link_order types which generate relocs in order toIan Lance Taylor5-56/+319
support -Ur in the linker. * linker.c (generic_link_add_symbol_list): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (_bfd_generic_link_add_one_symbol): Remove bitsize argument. Don't pass bitsize to constructor call back. Pass BFD_RELOC_CTOR instead of bitsize to add_to_set call back. (_bfd_generic_final_link): Account for link_order relocs when allocating space for relocations. Handle them in link_order loop. (_bfd_generic_reloc_link_order): New function. (_bfd_default_link_order): If a reloc_link_order is seen here, abort. (_bfd_count_link_order_relocs): New function. * libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize argument from declaration. (_bfd_generic_reloc_link_order): Declare. (_bfd_count_link_order_relocs): Declare. * libbfd.h: Rebuilt. * aoutx.h (aout_link_add_symbols): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (NAME(aout,final_link)): Account for link_order relocs when allocating space for relocations. Handle them after handling all input BFDs. (aout_link_reloc_link_order): New function. * ecoff.c (ecoff_link_add_externals): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (ecoff_bfd_final_link): Account for link_order relocs when allocating space for relocations. Handle them in link_order loop. (ecoff_link_write_external): Set the storage class of a defined linker created symbol based on the section it is in. Correct bfd_link_hash_weak case to use .sc rather than .st. (ecoff_reloc_link_order): New function. * coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR. * coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.
1994-03-22 Changes to make -Ur work again.Ian Lance Taylor3-6/+208
* ldmain.c (add_to_set): Now takes reloc argument rather than bitsize. Check config.build_constructors here. If an new hash table entry is created, mark it as undefined. (constructor_callback): No longer takes bitsize argument. Pass BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the BFD backend supports it. (reloc_overflow): Handle a NULL abfd argument. (reloc_dangerous, unattached_reloc): Likewise. * ldctor.c: Include ldmain.h. (struct set_info): Change bitsize field to reloc. (ldctor_add_set_entry): Now takes reloc argument rather than bitsize. Don't bother to check config.build_constructors here. (ldctor_build_sets): Get the size from the reloc howto. If generating relocateable output, call lang_add_reloc rather than lang_add_data. * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc instead of bitsize. * ldlang.h (statement_enum): Add lang_reloc_statement_enum. (lang_reloc_statement_type): New structure. (lang_statement_union_type): Add reloc_statement field. (lang_add_reloc): Declare new function. * ldlang.c (lang_for_each_statement_worker): Handle lang_reloc_statement_enum. (map_input_to_output_sections, print_statement): Likewise. (lang_size_sections, lang_do_assignments): Likewise. (print_reloc_statement): New function. (lang_add_reloc): New function. * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
1994-03-22 * bfdlink.h (struct bfd_link_callbacks): Change bitsize argumentIan Lance Taylor2-0/+410
to add_to_set to reloc. Remove bitsize argument from constructor. Comment that reloc_overflow, reloc_dangerous and unattached_reloc must handle NULL pointers for reloc location. (enum bfd_link_order_type): Add bfd_section_reloc_link_order and bfd_symbol_reloc_link_order. (struct bfd_link_order): Add reloc field to union. (struct bfd_link_order_reloc): Define.
1994-03-21 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,Peter Schauer7-8/+12
config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo. * config/i386/tm-symmetry.h: Make comment inside #if 0 a real comment. * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument to write_memory to avoid warnings from gcc. * config/i386/xm-symmetry.h: Add missing #endif. * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix. * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o. * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1994-03-21 * symmisc.c (maintenance_check_symtabs): New function to checkPeter Schauer1-1/+5
consistency of psymtabs and symtabs. * symtab.h (maintenance_check_symtabs): Add prototype. * maint.c: Add new `maint check-symtabs' command.
1994-03-21Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)Stu Grossman6-236/+450
* alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to improve remote debugging efficiency. Also fixed problems with doing function calls for programs with no entry points. * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of entry_point_address. * inferior.h (PC_IN_CALL_DUMMY): ditto. * mdebugread.c (parse_symbol, parse_procedure, parse_external, parse_lines): Pass section_offsets info to these routines so that we can relocate symbol table entries upon readin. * (psymtab_to_symtab_1): Set symtab->primary to tell objfile_relocate to do relocations for our symbols. * (ecoff_relocate_efi): New routine to relocate adr field of PDRs (which hang off of the symbol table). * Use prim_record_minimal_symbols_and_info instead of prim_record_minimal_symbols to supply section info to make minimal symbol relocations work. * minsyms.c (prim_record_minimal_symbols_and_info): If section is -1, try to deduce it from ms_type. * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where appropriate. Handle relocation of MIPS_EFI symbols special. Also, add code to relocate objfile->sections data structure. * remote.c (get_offsets): Use new protocol message to acquire section offsets from the target. * (remote_wait): Get rid of relocation stuff. That's all handled by objfile_relocate now. * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h. * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and VM_MIN_ADDRESS. * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1994-03-21 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.Jeff Law2-2/+7
(hppa_push_arguments): Likewise.
1994-03-21 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) toStu Grossman2-1/+11
improve remote debugging efficiency. Also fixed problems with doing function calls for programs with no entry points. * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of entry_point_address. * inferior.h (PC_IN_CALL_DUMMY): ditto. * mdebugread.c (parse_symbol, parse_procedure, parse_external, parse_lines): Pass section_offsets info to these routines so that we can relocate symbol table entries upon readin. * (psymtab_to_symtab_1): Set symtab->primary to tell objfile_relocate to do relocations for our symbols. * (ecoff_relocate_efi): New routine to relocate adr field of PDRs (which hang off of the symbol table). * Use prim_record_minimal_symbols_and_info instead of prim_record_minimal_symbols to supply section info to make minimal symbol relocations work. * minsyms.c (prim_record_minimal_symbols_and_info): If section is -1, try to deduce it from ms_type. * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where appropriate. Handle relocation of MIPS_EFI symbols special. Also, add code to relocate objfile->sections data structure. * remote.c (get_offsets): Use new protocol message to acquire section offsets from the target. * (remote_wait): Get rid of relocation stuff. That's all handled by objfile_relocate now. * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h. * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and VM_MIN_ADDRESS. * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1994-03-21 * objdump.c (objdump_print_address): Make static. Declare withIan Lance Taylor1-0/+7
prototype. Change vardiff from int to bfd_signed_vma. Correct binary search termination condition. When looking for same section symbol in relocatable file, handle final symbol correctly.
1994-03-21 * bfd/som.c (som_begin_writing): Fix thinko (off by one error).Jeff Law1-0/+2
1994-03-21 * som.c (bfd_section_from_som_symbol): Only to do the valueJeff Law2-4/+12
comparison for function symbols within executables.
1994-03-20* config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.David Edelsohn1-0/+5
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function. * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles). (TARGET_PTR_BIT): Must be a constant now, fix at 64.
1994-03-20 * Makefile.in: Avoid bug in hpux sed.Jeff Law4-2/+8
1994-03-20(FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles).David Edelsohn1-11/+12
(TARGET_PTR_BIT): Must be a constant now, fix at 64.
1994-03-20(SIMFILES): Use remote-sim.o instead of remote-sp64sim.o.David Edelsohn1-1/+4
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
1994-03-20 * som.c (bfd_section_from_som_symbol): Renamed fromJeff Law2-13/+41
som_section_from_subspace_index. Pass in a native SOM symbol. For executables, iterate through the sections to find out which contains the symbol's address rather than using the symbol_info field. (symbol_info has a different meaning for dynamicly linked executables.)
1994-03-20sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE instead of 4.David Edelsohn1-2/+5
1994-03-20sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted, can no longer setDavid Edelsohn1-0/+7
this at run time.
1994-03-20(target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set thisDavid Edelsohn1-12/+0
at run time.
1994-03-20 * trad-core.c (trad_unix_core_file_p): Don't pass abfd toJeff Law1-0/+3
bfd_zmalloc.
1994-03-20* Makefile.in (config-stamp): If `defs' is defined, emit a preprocessorKen Raeburn13-24/+31
directive to create a macro named by this value into config.new; don't explicitly go for BFD_ASSEMBLER. * configure.in: Define `defs', not `BFDDEF'. Set it to MANY_SEGMENTS for any obj-coffbfd target. * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define. * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS, BFD_HEADERS. (LOCAL_LOADLIBES): Deleted. * config/m68kcoff.mt (TDEFINES): Don't define those macros. * config/m88kcoff.mt (TDEFINES): Ditto. * config/ebmon29k.mt: Deleted. * config/h8300hds.mt: Deleted. * config/ic960coff.mt: Deleted. * config/sparc.mt: Deleted. * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. * config/z8k.mt (LOCAL_LOADLIBES): Deleted. (TDEFINES): Don't define the coffbfd macros. * Makefile.in: Insert makefile fragments before OBJS definition. (OBJS): Add $(TE_OBJS).
1994-03-20* config/obj-coff.c (obj_pseudo_table): Supply "section" unconditionally.Ken Raeburn1-0/+3
1994-03-20 * write.c (set_symtab): Define only if BFD_ASSEMBLER.Ken Raeburn1-0/+4
1994-03-20Remove v9 sanitization.David Edelsohn1-28/+0
1994-03-20 * Makefile.in (STAGESTUFF): Add gasp.new.Jeff Law2-9/+22
1994-03-20 * configure.in (hppa*-*-*): Enable binutils.Jeff Law1-1/+1
1994-03-20 * objcopy.c: Changes to keep it from stripping symbols usedJeff Law1-0/+10
in output relocations. (mark_symbols_used_in_relocations): New function. Mark symbols used in output relocations with BSF_KEEP. (filter_symbols): Do not strip symbols marked with BSF_KEEP. (copy_object): Reorder actions. First setup sections, then build the output symbol table, then copy the section contents.
1994-03-20 * som.c (som_begin_writing): Fix braino (one call to alignJeff Law2-1/+6
space/subspace data was done unconditionally rather than just for executables.)
1994-03-20 * som.c (som_begin_writing): Align text in all executables toJeff Law2-1/+11
make HPUX kernel happy. Fixes strip/objcopy for shared executables.
1994-03-19 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.Jim Kingdon2-19/+11
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makefile.in: Change accordingly. * configure.in: Recognize cisco_core_vec. * config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec. * targets.c: Add cisco_core_vec. * bfd-in2.h: Rebuilt.
1994-03-19* config/m68k/{cisco.mt,tm-cisco.h}: New files.Jim Kingdon1-0/+5
1994-03-19 * config/m68k/{cisco.mt,tm-cisco.h}: New files.Jim Kingdon5-0/+59
* Makefile.in (ALLPARAM, ALLCONFIG): Add them. * configure.in: Recognize m68*-cisco*-*.
1994-03-19* config.sub: Recognize cisco.Jim Kingdon1-0/+4
1994-03-19New for ciscoJim Kingdon2-0/+0
1994-03-19 * Makefile.in (TAGS): Use variables directly, rather than usingJim Kingdon11-65/+231
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster and means that these filenames no longer need be unique across all the config/* directories. * configure.in: Put the config/*/ into TM_FILE, etc. * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk and trapv exceptions. * target.h (struct section_table), objfiles.h (struct obj_section): Change name of field sec_ptr to the_bfd_section. More mnemonic and avoids the (sort of, for the ptx compiler) name clash with the name of the typedef. * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c, solib.c, irix5-nat.c, objfiles.c, remote.c: Change users. * utils.c: Include readline.h. * Makefile.in (utils.o): Add dependency. * remote.c (getpkt): Add support for run-length encoding.
1994-03-19* cisco-core.c: New file.Jim Kingdon1-3/+60
1994-03-19 * som.c (som_begin_writing): Account for alignment needs ofJeff Law2-0/+30
subspaces too when writing executables. Never request a negative bss size. Fixes some problems with demand paged executables, still having problems with pure executables and shared executables.
1994-03-19 * som.h (som_copyable_section_data_struct): New structureJeff Law2-92/+237
containing all the private section information which needs to be copied from input section to output section during objcopy or strip. (som_section_data_struct): Remove several fields now in som_copyable_section_data_struct. Make the space and subspace dictionaries be pointers (to save space when only reading objects). * som.c (bfd_som_set_section_attributes): Now returns a boolean; some references changed. Allocate a copyable data stucture if none exists. Store info into the copyable data structure. (bfd_som_set_subsection_attributes): Likewise. (som_is_space, som_is_subspace, som_is_container): New functions. Use these instead of directly accessing private data. (som_prep_headers): Allocate space and subspace headers here. Fill in some fields in the space/subspace headers from the copyable data. (som_bfd_copy_private_section_data): Only copy the stuff that we really need to make objcopy and strip work. Allocate the copy_data structure for the output bfd before copying.
1994-03-19 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.Jim Kingdon1-0/+1
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makfile.in: Change accordingly. * bfd-in2.h: Rebuilt.
1994-03-19* utils.c (prompt_for_continue): Call readline, not gdb_readline.Jim Kingdon1-0/+3
1994-03-19 * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc notJim Kingdon3-1/+347
bfd_zalloc for rawptr, because later on we may call free, not bfd_release, on it. * bfd.c (struct _bfd): Add cisco_core_struct to tdata union. * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makfile.in: Change accordingly. * bfd-in2.h: Rebuilt.
1994-03-19 * som.h (struct som_exec_data): New structure to hold execJeff Law3-41/+124
info that must be preserved when running objcopy/strip. (struct somdata): Add new "exec_data" field and accessor macro. Add some comments on how the various fields are used. (som_section_data_struct): Make is_space and is_subspace bitfields. Delete unused subspace_index. All references now use the target_index field within the section structure itself. * som.c (make_unique_section): Delete unused declaration. (som_bfd_copy_private_bfd_data): New function. (som_object_setup): Allocate space for and save exec information that needs to be copied during objcopy/strip. (som_mkobject): Do not allocate space for a file header here. It is not used when only reading SOM objects. (som_prep_headers): Allocate space for and attach a file header to the output bfd. For executables, use the saved system_id value rather than trying to guess the right value. Do not abort wwhen setting file_hdr->entry* for executables. (som_begin_writing): For executables, set the exec_entry and exec_flags fields. (som_copy_private_backend_section_data): Always return a value.
1994-03-19 * libhppa.h (PA_PAGESIZE): Define.Jeff Law2-7/+115
* som.c (SOM_ALIGN): Define. (som_begin_writing): If writing an executable, initialize all fields in the exec header to zero. Update fields in the exec header as sizes of loadable subspaces are computed. Carefully preserve alignments when building executables. Actually write the exec after all the fields are filled in.
1994-03-19 * utils.c (prompt_for_continue): Call readline, not gdb_readline.Steve Chamberlain2-2/+21
1994-03-19* write.c (symbol_table_frozen): New variable, to be set after bfd_set_symtabKen Raeburn2-72/+130
is called. (dump_section_relocs): Note whether a symbol is a section symbol or not. (adjust_reloc_syms): For now, always supply an absolute symbol for fixups without symbols but not yet `done'. Use section_symbol to get the symbol, instead of going directly for abs_symbol. (write_relocs) [DEBUG4]: Abort if any symbol referred to by a reloc is not a section symbol and is not in the symbol table. (set_symtab): New function, broken out from write_object_file. Counts symbol table instead of relying on an earlier count. (write_object_file): Call set_symtab, but do it after potentially invoking the *_frob_file macros. Don't bother counting symbols. Call symbol_remove, instead of expanding it in place. Moved the conditionalized `object_file_size' declaration down to conditionalized block where it's used. When using the absolute symbol for a fixup without a symbol, set sy_used_in_reloc. (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get the correct symbol for the absolute section.
1994-03-19 * Better long-filename handling. Reads SOM ABI compliant extendedJeff Law2-16/+70
names, but doesn't quite write compliant extended names yet. * som.c (som_slurp_extended_name_table): Delete function. The generic code will handle things correctly. (som_slurp_armap): Seek to the beginning of the next member. (normalize): New function. (som_bfd_ar_write_symbol_stuff): Take the size of the extended name table into account when computing the file offsets in the SOM dictionary. Make sure to align to an even boundary. (som_write_armap): Initialize the checksum to zero. (ar_maxchars): Fix. Opps.
1994-03-19new for cisco crash dumpsJim Kingdon1-0/+0
1994-03-19sparc *13 relocs, obj_sec_sym_ok_for_reloc stuffKen Raeburn1-0/+22
1994-03-19 * dstread.c (record_minimal_symbol): New arg objfile. Pass it toJim Kingdon2-7/+14
prim_record_minimal_symbol. Callers: Pass it.