aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-04-06 * targets.c (bfd_target): Rearranged fields in target vector.Ian Lance Taylor49-1426/+1714
Removed _bfd_debug_info_start, _bfd_debug_info_end and _bfd_debug_info_accumulate, which were never used. (BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined. (BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined. (BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined. (BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined. * All backends: Changed to use the new BFD_JUMP_TABLE_* macros rather than the single JUMP_TABLE macro. Removed many of the weird macro definitions needed to support the monolithic JUMP_TABLE. * bfd-in.h (JUMP_TABLE): Removed. * libbfd-in.h: Define a bunch of macros, and declare a few functions, for use with the new BFD_JUMP_TABLE_* macros. * libbfd.c (_bfd_dummy_new_section_hook): Removed. (bfd_false): Set bfd_error_invalid_operation. (bfd_nullvoidptr): Likewise. (bfd_n1): New function. (_bfd_nocore_core_file_matches_executable_p): Renamed from _bfd_dummy_core_file_matches_executable_p. (_bfd_nocore_core_file_failing_command): Similar rename. Set bfd_error_invalid_operation. (_bfd_nocore_core_file_failing_signal): Likewise. (_bfd_generic_get_section_contents): Renamed from bfd_generic_get_section_contents. Changed all callers. (_bfd_generic_set_section_contents): Similar rename. * ieee.c: #if 0 out ieee_bfd_debug_info_start, ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They were never called. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt.
1994-04-06 * mips-opc.c (mips_opcodes): Correct operands of "nor" with anIan Lance Taylor1-0/+5
immediate argument.
1994-04-06 * emultempl/hppaelf.em (hppaelf_finish): Only resize sectionsJeff Law1-0/+5
if building a final executable.
1994-04-06 * Crude support for examining dynamic libraries.Jeff Law2-15/+42
* som.c (som_object_setup): Set DYNAMIC flag for SHL_MAGIC and DL_MAGIC objects. (som_prep_headers): Preserve the system_id for DYNAMIC objects. Use SHL_MAGIC as the magic number of the DYNAMIC flag is set. Write exec headers for DYNAMIC objects. (som_begin_writing): DYNAMIC objects have the same alignment restrictions as D_PAGED objects. (bfd_section_from_som_symbol): Treat DYNAMIC objects like EXEC_P objects. (object_flags): Add DYNAMIC.
1994-04-06 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halvesJeff Law1-0/+5
to avoid expect lossage. (fmem_LRbug_tests): Likewise. * gdb.disasm/hppa.s: Corresponding changes.
1994-04-06 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-lineJeff Law2-598/+634
conditions to work with latest dejagnu/expect.
1994-04-06Fix typo in last change.Jeff Law1-2/+2
1994-04-06 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,Jeff Law3-3/+22
then gets its real address into FUN and its GOT/DP value into %r19. * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1994-04-06Tue Apr 5 17:54:07 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-0/+8
* hosts/mpw.h (CLOSE_BEFORE_UNLINK): Define.
1994-04-06Tue Apr 5 17:48:52 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+5
* i386lynx.c, sparclynx.c (NAME): Remove embedded whitespace in macro uses, confuses some non-ANSI compilers.
1994-04-06 * gdb.t15/funcargs.exp (finish from indirect call): No longerJeff Law1-0/+5
expected to fail on the PA. (backtrace in call with trampolines): Explicitly require main to be frame #1 (no trampolines should show up in backtrace).
1994-04-06 * hppa-tdep.c (frameless_function_invocation): If no unwindJeff Law2-8/+24
descriptor was found, then assume this was not a frameless function invocation. (frame_saved_pc): If the saved PC is in a linker stub, then return the return address which the linker stub will return to.
1994-04-06Tue Apr 5 16:22:19 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+4
* mpw-configure (BFD_MACHINES): Insert into Makefile if set.
1994-04-05 * som.c (som_bfd_free_cached_info): Add missing PARAMS decl.Jeff Law2-1/+11
Don't free anything if we don't have a bfd_object. (som_close_and_cleanup): Call som_bfd_free_cached_info.
1994-04-05 * xm-hppab.h: Never define USG.Jeff Law3-6/+5
* xm-hppah.h: Always define USG.
1994-04-05 * gdb.t00/default.exp: Use "exp_continue" rather than obsoleteJeff Law1-0/+9
"continue -expect". * gdb.t06/break.exp: Likewise. * gdb.t07/watchpoint.exp: Likewise. * gdb.t13/bitfields.exp: Likewise. * gdb.t15/{funcargs,return}.exp: Likewise. * gdb.stabs/weird.exp: Likewise. * config/{mips,udi}-gdb.exp: Likewise.
1994-04-05 * gdb.t00/default.exp: Use "exp_continue" rather than obsoleteJeff Law2-3/+3
"continue -expect". * gdb.t06/break.exp: Likewise. * gdb.t07/watchpoint.exp: Likewise. * gdb.t13/bitfields.exp: Likewise. * gdb.t15/{funcargs,return}.exp: Likewise. * gdb.stabs/weird.exp: Likewise. * config/{mips,udi}-gdb.exp: Likewise.
1994-04-05 * hppa.sed: Enclose comments within a sed command to avoidJeff Law1-0/+5
losing with the old OSF1 sed.
1994-04-05 * values.c (unpack_long, value_from_longest),Per Bothner2-0/+7
valarith.c (value_binop): Allow TYPE_CODE_RANGE.
1994-04-05 * config/tc-mips.c (mips_ip): For case 'o', when generatingIan Lance Taylor2-11/+54
embedded PIC code, accept the difference between two local symbols as being constant. (mips_force_relocation): Only force a reloc to be generated for a PC relative fixup. (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup value into the file if the fixup will not generate a reloc.
1994-04-05note that pa support is elf onlyKen Raeburn1-1/+43
1994-04-05sparc, doc/Makefile.in changesKen Raeburn1-0/+11
1994-04-05(install-info-as, install-info-gasp): New targets, now explicitly checkingKen Raeburn1-23/+41
$(srcdir) for info files. (install-info): Depend on both of them; do nothing more.
1994-04-05(s_reserve): If section passed isn't bss, don't spew remainder of input file inKen Raeburn1-2/+8
error message. (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error message with reloc type and try to process remainder of file.
1994-04-05 * elf32-mips.c (mips_elf_final_link): Don't remove empty sections.Ian Lance Taylor1-0/+6
It turns out not to be required on Irix 5, and it causes problems if the sections happen to contain symbols.
1994-04-05 * elfcode.h (write_shdrs_and_ehdr): Correct bfd_write check.Ian Lance Taylor1-1/+1
1994-04-05 * ldmain.c (main): Check the return value of bfd_close.Ian Lance Taylor1-0/+4
1994-04-05 * aoutx.h (NAME(aout,canonicalize_reloc)): Don't error out ifIan Lance Taylor11-26/+26
section->relocation is NULL; malloc might have returned NULL when given a zero size if there were no relocations. * bout.c (b_out_canonicalize_reloc): Likewise. * coffcode.h (coff_canonicalize_reloc): Likewise. * ecoff.c (ecoff_canonicalize_reloc): Likewise. * elfcode.h (elf_canonicalize_reloc): Likewise. * mipsbsd.c (MY(canonicalize_reloc)): Likewise. * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise. * nlmcode.h (nlm_canonicalize_reloc): Likewise. * som.c (som_canonicalize_reloc): Likewise. * hp300hpux.c (MY(slurp_reloc_table)): Likewise. Also, if malloc returns NULL, don't report an error if we asked for zero bytes. * i386lynx.c (NAME(lynx,slurp_reloc_table)): If malloc returns NULL, don't report an error if we asked for zero bytes. * nlmcode.h (nlm_slurp_reloc_fixups): Likewise.
1994-04-05 * Makefile.in (MY_MACHINE): Renamed from MACHINE to avoid losingJeff Law7-9/+15
makes (osf1) in which the value of MACHINE can not be changed. * config/*.mt: Changed appropriately.
1994-04-05* build-all.mk: Document all useful targets.David Edelsohn2-1/+40
If canonhost is sparc-sun-solaris2.3, change it to sparc-sun-solaris2. If canonhost is mips-sgi-irix4.0.5H, change it to mips-sgi-irix4.
1994-04-05 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.Jeff Law2-3/+6
1994-04-04 * aoutx.h (NAME(aout,bfd_free_cached_info)): Don't free anythingIan Lance Taylor2-0/+6
if we don't have a bfd_object.
1994-04-04* sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".David Edelsohn1-0/+4
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor22-369/+429
checks the return value and handled bfd_error correctly. These changes are not itemised.
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor1-35/+64
checks the return value and handled bfd_error correctly. These changes are not itemised. Also: * srec.c (srec_write_record): Change return type to boolean. (srec_write_header): Likewise. Also, check srec_write_record return value. (srec_write_section, srec_write_terminator): Likewise. (srec_write_symbols): Change return type to boolean. (internal_srec_write_object_contents): Check return value of srec_write_symbols, srec_write_header, srec_write_section, and srec_write_terminator.
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor1-68/+123
checks the return value and handled bfd_error correctly. These changes are not itemised. Also: * oasys.c (oasys_read_record): Change return type to boolean. (oasys_slurp_symbol_table: Check oasys_read_record return value. (oasys_object_p, oasys_slurp_section_data): Likewise. (oasys_write_record): Change return type to boolean. (oasys_write_syms): Likewise. Also, check oasys_write_record return value. (oasys_write_sections): Check oasys_write_record return value. (oasys_write_header): Change return type to boolean. Check oasys_write_record return value. (oasys_write_end, oasys_write_data): Likewise. (oasys_write_object_contents): Check return values of oasys_write_header, oasys_write_syms, oasys_write_data, and oasys_write_end.
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor1-12/+32
checks the return value and handled bfd_error correctly. These changes are not itemised. Also: * i386os9k.c (os9k_swap_exec_header_in): Change return type to boolean. (os9k_object_p): Check os9k_swap_exec_header_in return value.
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor1-20/+29
checks the return value and handled bfd_error correctly. These changes are not itemised. Also: * coffcode.h (coff_write_relocs): Change return type to boolean, and return errors. (coff_write_object_contents): Check coff_write_relocs return value.
1994-04-04 Made sure that every call to bfd_read, bfd_write, and bfd_seekIan Lance Taylor1-10/+14
checks the return value and handled bfd_error correctly. These changes are not itemised. Also: * aoutx.h (emit_strtab): Change return type to boolean, and return errors. (NAME(aout,write_syms)): Check emit_strtab return value. (NAME(aout,final_link)): Likewise.
1994-04-04 * Makefile.in: Rebuilt dependencies.Ian Lance Taylor1-0/+4
1994-04-04 * aix386-core.c (aix386_bfd_is_local_label): Correct cast fromPeter Schauer4-3/+12
asection to asymbol. * ptrace-core.c (ptrace_unix_bfd_is_local_label): Correct cast from bfd to asymbol. * trad-core.c (trad_unix_bfd_is_local_label): Correct cast from asection to asymbol.
1994-04-04 * ppc-opc.c (powerpc_operands): The signedp field has beenIan Lance Taylor2-58/+78
removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag instead. Add new operand SISIGNOPT. (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT. Based on patch from David Edelsohn (edelsohn@npac.syr.edu). * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather than signedp field.
1994-04-04 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNEDIan Lance Taylor1-0/+5
flag rather than signedp field. Only permit extended range if PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode. Based on patch from David Edelsohn (edelsohn@npac.syr.edu).
1994-04-04 * config/tc-ppc.c (ppc_size): New static variable.Ian Lance Taylor2-6/+19
(ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER. (md_begin): If an instruction has a size specific flag set, only add it if we are assembling that size.
1994-04-04 * som.c (som_slurp_string_table): Use malloc to allocate spaceJeff Law2-6/+50
for the cached copy of the native string table. (som_slurp_symbol_table): Likewise for the native symbol table. (som_slurp_reloc_table): Likewise for the native and generic relocation tables. (som_bfd_free_cached_info): Free the cached native strings, symbols, and relocations. Also free the canonical cached relocations.
1994-04-02* symfile.c (deduce_language_from_filename): .cpp is a C++ extension.Jim Kingdon2-5/+10
1994-04-01 * aoutx.h (aout_link_write_symbols): If keep_memory is false, makeIan Lance Taylor2-1/+23
sure the symbol name is stored in permanent memory before adding it to the string table.
1994-04-01 * archive.c (_bfd_write_archive_contents): Once we've found anIan Lance Taylor2-1/+45
object, don't bother to look for more when deciding whether to build a map. (compute_and_write_armap): After adding the symbols for a BFD, call bfd_free_cached_info on it.
1994-04-01 Add bfd_free_cached_info support to a.out backends.Ian Lance Taylor8-164/+200
* aoutx.h (aout_get_external_symbols): Renamed from aout_link_get_symbols. Read strings even if symbols have been read. Store string size in obj_aout_string_size. (NAME(aout,slurp_symbol_table)): Call aout_get_external_symbols to read the symbols. Allocate the cached symbols with malloc, not bfd_alloc. (NAME(aout,slurp_reloc_table)): Allocate the cached relocs with malloc, not bfd_alloc. (NAME(aout,bfd_free_cached_info)): New function; free cached symbols and relocs. * libaout.h (struct aoutdata): Add external_string_size field. (obj_aout_external_string_size): New accessor macro. (NAME(aout,close_and_cleanup)): Don't declare. (NAME(aout,bfd_free_cached_info)): Declare. (aout_32_close_and_cleanup): Don't define. (aout_64_close_and_cleanup): Don't define. * aout-target.h (MY_bfd_free_cached_info): If not already defined, define as NAME(aout,free_cached_info). (MY_close_and_cleanup): If not already defined, define as MY_bfd_free_cached_info. * aout-adobe.c (aout_32_close_and_cleanup): Define. (aout_32_bfd_free_cached_info): Don't define. * bout.c (aout_32_close_and_cleanup): Define. (aout_32_bfd_free_cached_info): Don't define. * hp300hpux.c (MY_bfd_free_cached_info): Define as bfd_true. (MY_close_and_cleanup): Don't define. * i386lynx.c (NAME(lynx,slurp_reloc_table)): Allocate the cached relocs with malloc, not bfd_alloc. * i386os9k.c (aout_32_close_and_cleanup): Define. (aout_32_bfd_free_cached_info): Don't define.
1994-04-01 * targets.c (bfd_target): Add _bfd_free_cached_info field.Ian Lance Taylor27-170/+329
* bfd.c (bfd_free_cached_info): Define. * bfd-in.h (JUMP_TABLE): Add _bfd_free_cached_info. * bfd-in2.h: Rebuilt. * All backends: Initialize bfd_free_cached_info entry point to bfd_true.