aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-03-23Simplification of GM-specific config bits.Stan Shebs2-23/+18
1994-03-23 Clean up the relaxing code for the new linker.Ian Lance Taylor1-0/+56
* targets.c (_bfd_relax_section): Take boolean *again argument rather than asymbol list. * bfd.c (bfd_relax_section): Change name of fourth argument from symbols to again. * reloc.c (bfd_generic_relax_section): Take boolean *again argument rather than asymbol list. Always return true. * bout.c: Include genlink.h. (aligncode, perform_slip): Declare. (perform_slip): Take BFD argument rather than asymbol list. Changed all callers. Get the symbols from the BFD. Change the hash table entry value as well as the symbol value. (abs32code): Take BFD argument rather than asymbol list. Changed all callers. (aligncode): Likewise. (b_out_relax_section): Take boolean *again argument rather than asymbol list. Only return false if an error occurred. Set *again to false. Get symbols from BFD. * reloc16.c: Include genlink.h. (bfd_perform_slip): Take BFD argument rather than asymbol list. Get the symbols from the BFD. Change the hash table entry value as well as the symbol value. (bfd_coff_reloc16_relax_section): Take boolean *again argument rather than asymbol list. Only return false if an error occurred. Set *again to false. Get symbols from BFD. * coffcode.h (bfd_coff_backend_data): Change _bfd_coff_reloc16_estimate to take BFD argument rather than asymbol list. (bfd_coff_reloc16_estimate): Corresponding change. (dummy_reloc16_estimate): Corresponding change. * libcoff-in.h (bfd_coff_reloc16_relax_section): Change declaration to take boolean * rather than asymbol list. (bfd_perform_slip): Change declaration to take BFD rather than asymbol list. * coff-h8300.c (h300_reloc16_estimate): Take BFD argument rather than asymbol list. Changed calls to bfd_perform_slip. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * libcoff.h: Rebuilt. * Makefile.in: Rebuilt dependencies.
1994-03-23 * emultemp/gld960.em: Include libiberty.hIan Lance Taylor1-0/+5
(gld960_before_parse): Pass NULL as final argument to concat.
1994-03-23 * gdbtypes.h, gdbtypes.c: Add comments regarding whether staticJim Kingdon3-1/+9
member functions have an element in args for a (nonexistent) this pointer.
1994-03-23 * stabs.texinfo: Move stuff on @ and # type descriptors from nodeJim Kingdon2-28/+49
Cplusplus to new nodes Member Type Descriptor and Method Type Descriptor. Re-write stuff for #.
1994-03-23 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.Jeff Law3-0/+10
* hppa-tdep.c (hppa_pop_frame): Do not restore the PC space queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1994-03-23 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argumentJeff Law3-5/+23
for the structure's type. All callers changed. * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR for each structure argument rather than assuming it's either true or false for all structure arguments. * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only on the length structure passed, not the compiler used. * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional argument for the structure's type.
1994-03-23Handle .gpword and .cpadd only for SVR4_PIC, not != NO_PIC. StillIan Lance Taylor1-2/+2
covered by last ChangeLog entry.
1994-03-23 * values.c (set_internalvar): Don't set var->value until we areJim Kingdon2-5/+20
sure there won't be an error().
1994-03-22 * scripttempl/aout.sc: Force _end and __end to be aligned to aIan Lance Taylor1-0/+3
four byte boundary.
1994-03-22 * remote.c (get_offsets): Reinstate comment which was inJim Kingdon1-0/+22
remote_wait about use of SECT_OFF_TEXT and so on.
1994-03-22 * config/tc-mips.c (enum mips_pic_level): New enum.Ian Lance Taylor2-124/+340
(mips_pic): Change from int to enum mips_pic_level. Change all uses (0 becomes NO_PIC, 2 becomes SVR4_PIC). (load_address): Handle EMBEDDED_PIC. (macro): Handle EMBEDDED_PIC in all PIC cases. (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept -non_shared to use NO_PIC (this is how the Irix 5 assembler works). Do not permit -G with SVR4_PIC. (s_abicalls): Warn if -G was used, and force -G 0. (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for anything but a.out, not just for ELF. For ECOFF, don't generate a BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
1994-03-22 * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16Ian Lance Taylor1-0/+6
reloc, used in embedded PIC code. (mips_adjust_reloc_in): Change sanity check to permit new reloc. (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into MIPS_R_PCREL16.
1994-03-22 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.Ian Lance Taylor1-0/+10
1994-03-22 * gprof.c (funcsymbol): Use bfd_get_symbol_info instead ofJeff Law2-2/+10
bfd_decode_symclass.
1994-03-22 * linker.c (_bfd_generic_final_link): Set reloc_count to 0 beforeIan Lance Taylor3-27/+142
counting relocs. Set SEC_RELOC flag for any section which has relocs. * linker.c (_bfd_default_link_order): Handle bfd_data_link_order. * linker.c (_bfd_generic_link_add_symbols): Just call generic_link_add_symbols. (_bfd_generic_link_add_symbols_collect): New function, like _bfd_generic_link_add_symbols but also collect constructors and destructors by name as collect2 does. (generic_link_add_symbols): New function, like old _bfd_generic_link_add_symbols but with collect argument. (generic_link_add_object_symbols): Take collect argument. (generic_link_check_archive_element_no_collect): New function. (generic_link_check_archive_element_collect): New function. (generic_link_check_archive_element): Take collect argument. (generic_link_add_symbol_list): Take collect argument. (_bfd_generic_link_add_one_symbol): Rename constructor argument to collect. * libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare. * libbfd.h: Rebuilt.
1994-03-22 * ldwrite.c (build_link_order): Handle lang_data_statement_enum byIan Lance Taylor1-0/+6
building a bfd_data_link_order, rather than by setting the section contents immediately.
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*-*.