Ian Lance Taylor [Fri, 18 Feb 1994 15:37:20 +0000 (15:37 +0000)]
Support for PowerPC ELF and PowerPC NetWare. Sanitization to follow.
Kung Hsu [Fri, 18 Feb 1994 01:38:08 +0000 (01:38 +0000)]
Modified Files:
ChangeLog configure.in defs.h mips-tdep.c
* configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
mips64el-*-ecoff and mips64-big-*.
* defs.h: get rid of FORCE_LONG_LONG.
* mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
parsing. Change register size to be MIPS_REGSIZE.
Kung Hsu [Fri, 18 Feb 1994 01:21:36 +0000 (01:21 +0000)]
Added Files:
bigmips64.mt idt64.mt idtl64.mt littlemips64.mt tm-bigmips64.h
tm-idt64.h tm-idtl64.h tm-mips64.h
Add the above files to support mips 64 bits target.
Roland Pesch [Fri, 18 Feb 1994 01:10:24 +0000 (01:10 +0000)]
Correct info about evaluating macro args (distinct from evaluating preprocessor
vars); add version number (1); formatting improvements.
Jeffrey Osier [Fri, 18 Feb 1994 00:15:58 +0000 (00:15 +0000)]
binutils.texi: fixed dir-entry, copyright date, last chapter a bit
Ian Lance Taylor [Thu, 17 Feb 1994 21:50:39 +0000 (21:50 +0000)]
Use bfd_set_error in last patch.
Ian Lance Taylor [Thu, 17 Feb 1994 21:37:32 +0000 (21:37 +0000)]
Some support for PowerPC ELF, although it isn't in BFD yet.
* configure.in: If cpu is powerpc*, use ppc.
(ppc-*-sysv4*): Use object format elf.
* config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
defined.
(TARGET_ARCH): Make it call ppc_arch.
(ppc_arch): Declare.
(TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
(NO_STRING_ESCAPES): Define.
(LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
* config/tc-ppc.c: Only define a number of functions of OBJ_COFF
is defined.
(md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
OBJ_COFF specific "bi" and "ei".
(md_parse_option): Fix handling of -u. Make -m601 set
PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
(ppc_set_cpu): New function.
(ppc_arch): New function.
(md_begin): Call ppc_set_cpu.
(ppc_insert_operand): For a signed operand accept an unsigned
value, for IBM compatibility.
(ppc_byte): Don't call stringer for strings; instead, treat two
double quotes as a single double quote.
(ppc_comm): Set sy_tc.output for a .lcomm symbol.
(ppc_biei): New function.
(ppc_tc): If not OBJ_COFF, ignore first argument.
(ppc_fix_adjustable): Call as_bad_where, not as_bad.
(ppc_is_toc_sym): New function.
(md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
BFD_RELOC_8.
Ian Lance Taylor [Thu, 17 Feb 1994 20:56:49 +0000 (20:56 +0000)]
Various entries.
Ian Lance Taylor [Thu, 17 Feb 1994 20:54:37 +0000 (20:54 +0000)]
* ldlang.c, ldmain.c: Include libiberty.h.
Ian Lance Taylor [Thu, 17 Feb 1994 20:45:06 +0000 (20:45 +0000)]
* elfcode.h (elf_slurp_symbol_table): Handle zero symbols
reasonably. Allocate x_symp using alloca.
Also fixed up indentation a bit in elf_set_arch_mach.
Ian Lance Taylor [Thu, 17 Feb 1994 20:39:58 +0000 (20:39 +0000)]
* elfcode.h (map_program_segments): ELF program header entries
must be sorted by load address. This used to generate the entries
in reverse order.
Torbjorn Granlund [Thu, 17 Feb 1994 20:31:08 +0000 (20:31 +0000)]
hppa.h: Fix typo in fstws arg string.
David MacKenzie [Thu, 17 Feb 1994 18:19:25 +0000 (18:19 +0000)]
* corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
David MacKenzie [Thu, 17 Feb 1994 18:14:04 +0000 (18:14 +0000)]
* messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
bfd_set_error and new error names.
David MacKenzie [Thu, 17 Feb 1994 18:12:17 +0000 (18:12 +0000)]
* ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
bfd_set_error and new error names.
David MacKenzie [Thu, 17 Feb 1994 18:10:18 +0000 (18:10 +0000)]
* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
size.c: Use bfd_get_error and bfd_set_error and new error names.
David MacKenzie [Thu, 17 Feb 1994 18:08:41 +0000 (18:08 +0000)]
* bfd.c (bfd_get_error, bfd_set_error): New functions.
(bfd_error): Make static.
(bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to
all values.
* bfd-in2.h: Regenerated.
* aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h,
aoutf1.h, aoutx.h, archive.c, archures.c,
bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c,
coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c,
ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c,
elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c,
i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c,
lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c,
nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c,
srec.c, sunos.c, syms.c, targets.c, tekhex.c,
trad-core.c: Change callers.
Per Bothner [Thu, 17 Feb 1994 00:42:25 +0000 (00:42 +0000)]
* rltty.c: #if out some code if __GO32__.
Jeff Law [Wed, 16 Feb 1994 06:28:25 +0000 (06:28 +0000)]
* som.c: Remove FIXMEs for things which have been dealt with.
Ian Lance Taylor [Wed, 16 Feb 1994 06:09:08 +0000 (06:09 +0000)]
* libiberty.h: Don't declare strsignal, to avoid conflicts with
Solaris system header files.
Roland Pesch [Wed, 16 Feb 1994 01:52:25 +0000 (01:52 +0000)]
(1) remove dangling references to old internal sections (pass1, difference)
(2) move explanation of new MIPS options from summary section to MIPS-options
section; add summaries in appropriate spots.
(3) usual minor rephrasing in passing.
Ken Raeburn [Wed, 16 Feb 1994 01:28:59 +0000 (01:28 +0000)]
* configure.in: Support i960-vxworks versions > 5.0 as coff.
Default is still bout if no version is specified.
Ken Raeburn [Wed, 16 Feb 1994 01:20:05 +0000 (01:20 +0000)]
i960-bout linker fixes, install-info bugfix
Ken Raeburn [Wed, 16 Feb 1994 01:18:32 +0000 (01:18 +0000)]
(lang_size_sections): Clear bfd_error before calling bfd_relax_section, in case
it returns false but doesn't flag an error. If an error is returned, indicate
which one it is in the error message.
Ken Raeburn [Wed, 16 Feb 1994 01:17:43 +0000 (01:17 +0000)]
(install-info): Depend on ld.info, and use "$<*" so
it'll get picked up from $(srcdir) if appropriate.
Ken Raeburn [Wed, 16 Feb 1994 01:00:57 +0000 (01:00 +0000)]
i960-bout linker fixes, i960 coff config changes
Ken Raeburn [Wed, 16 Feb 1994 00:59:39 +0000 (00:59 +0000)]
Support i960 vxworks versions > 5.0 with coff, not bout. Default with no
version number is still bout. Support explicit i960-coff target too.
Ken Raeburn [Wed, 16 Feb 1994 00:59:19 +0000 (00:59 +0000)]
(b_out_get_reloc_upper_bound): For BSS section, just return 0.
(aligncode): When shrinking, the addend should be set to the current offset in
the section plus the number of bytes of padding that will actually be retained.
(b_out_relax_section): If a section contains no relocations, don't bother
processing them.
(b_out_get_relocated_section_contents): Set reloc_done. Assert that
bfd_get_section_contents returns true. Check that relocs are properly ordered.
(b_out_get_relocated_section_contents, case ALIGNDONE): Assert that reloc's
addend falls between the current source offset and the raw size of the input
section.
Changed some indentation, deleted trailing whitespace, fixed some comments,
removed some "#if 1" lines.
(output_addr): New macro.
(calljx_callback, callj_callback, get_value, abs32code, aligncode,
b_out_get_relocated_section_contents): Use it for readability.
Ken Raeburn [Wed, 16 Feb 1994 00:57:48 +0000 (00:57 +0000)]
(default_indirect_link_order): In assertion, compare link_order size field
against cooked size, not raw size, of input section.
Ken Raeburn [Wed, 16 Feb 1994 00:57:15 +0000 (00:57 +0000)]
(bfd_get_section_contents): Since this function reads unrelocated contents, the
section's raw size is always the one to use for bounds checking.
Per Bothner [Tue, 15 Feb 1994 22:31:19 +0000 (22:31 +0000)]
* readline.c (_rl_output_character_function), display.c:
Return int, not void, to conform with the expected arg of tputs.
* readline.c (init_terminal_io): tgetflag only takes 1 arg.
* readline.c (_rl_savestring): New function.
* chardefs.h: To avoid conflicts and/or warnings, define
savestring as a macro wrapper for _rl_savestring.
* display.c (extern term_xn): It's an int flag, not a string.
* charsdefs.h, rldefs.h: Remove HAVE_STRING_H-related junk.
Stan Shebs [Tue, 15 Feb 1994 20:48:53 +0000 (20:48 +0000)]
Tue Feb 15 12:44:30 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (CSEARCH): Add include/mpw to search path.
* hosts/mpw.h (stat): Remove incomplete definition, now in
include/mpw/sys.
(POSIX_UTIME): Define.
Jeff Law [Tue, 15 Feb 1994 17:01:39 +0000 (17:01 +0000)]
* som.c (som_bfd_prep_for_ar_write): Iterate through the SOM
symbols, not the BFD symbols.
(som_bfd_ar_write_symbol_stuff): Likewise.
Rob Savoye [Tue, 15 Feb 1994 17:01:12 +0000 (17:01 +0000)]
"Default" procedures for any host.
Jeff Law [Tue, 15 Feb 1994 07:48:56 +0000 (07:48 +0000)]
* som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
have any symbols.
Jeff Law [Tue, 15 Feb 1994 07:05:04 +0000 (07:05 +0000)]
* Finish basic read-write support for SOM archive libraries. Bugs
surely remain as this hasn't been tested all that much.
* som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define.
(struct som_misc_symbol_info): New structure to hold info necessary
to build both normal and library symbol tables.
(som_derive_misc_symbol_info): New function to derive info necessary
to build both normal and library symbol tables.
(som_build_and_write_symbol_table): Use new function to derive misc
symbol information.
(som_slurp_symbol_table): Update backend private data for symbols
appropriately.
(som_bfd_prep_for_ar_write): New function.
(som_bfd_ar_symbol_hash): New function.
(som_bfd_ar_write_symbol_stuff): New function.
(som_write_armap): Flesh out.
(som_vec): Fix ar padding character.
* som.c: Consistently use memset rather than bzero.
Rob Savoye [Tue, 15 Feb 1994 04:30:10 +0000 (04:30 +0000)]
Swap order of config names to match so vxworks is before m68k.
Rob Savoye [Tue, 15 Feb 1994 03:44:51 +0000 (03:44 +0000)]
Set correct values for NM, SIZE etc...
Rob Savoye [Tue, 15 Feb 1994 03:44:22 +0000 (03:44 +0000)]
Leave it for the init file to identify proper binary to run.
Rob Savoye [Tue, 15 Feb 1994 03:33:46 +0000 (03:33 +0000)]
Use new config features of DejaGnu in site.exp file.
Rob Savoye [Tue, 15 Feb 1994 03:32:22 +0000 (03:32 +0000)]
Add "-N".
Stu Grossman [Tue, 15 Feb 1994 01:30:25 +0000 (01:30 +0000)]
* coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
appropriate.
* rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE.
* config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and
COREFILES_PLEASE.
* config/rs6000lynx.mh: Turn on Lynx core file support.
* hosts/rs6000.h: #define HOST_AIX.
* hosts/rs6000lynx.h: Create this to enable Lynx host support.
Stu Grossman [Tue, 15 Feb 1994 01:29:26 +0000 (01:29 +0000)]
* hosts/rs6000lynx.h: Create this to enable Lynx host support.
Stu Grossman [Tue, 15 Feb 1994 01:28:16 +0000 (01:28 +0000)]
* coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
appropriate.
* rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE.
* config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and
COREFILES_PLEASE.
* config/rs6000lynx.mh: Turn on Lynx core file support.
* hosts/rs6000.h: #define HOST_AIX.
Rob Savoye [Mon, 14 Feb 1994 18:30:48 +0000 (18:30 +0000)]
Rearranging so cross testing will work.
Jeff Law [Mon, 14 Feb 1994 17:59:19 +0000 (17:59 +0000)]
* gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
* gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
Jeff Law [Mon, 14 Feb 1994 17:25:25 +0000 (17:25 +0000)]
* gas/hppa/basic/fmemLRbug.s: New test.
* gas/hppa/basic/basic.exp: Run it.
Jeff Law [Mon, 14 Feb 1994 06:15:00 +0000 (06:15 +0000)]
* som.h (som_symbol_data): Safely access backend private data
for BFD symbols. All callers changed.
Jeff Law [Sun, 13 Feb 1994 23:34:52 +0000 (23:34 +0000)]
* som.c (som_bfd_count_ar_symbols): New helper function.
(som_bfd_fill_in_ar_symbols): New helper function.
(som_slurp_armap): New function to read a SOM LST.
Jeff Law [Sun, 13 Feb 1994 22:30:51 +0000 (22:30 +0000)]
* som.h: Include <lst.h> and <ar.h>.
Jeff Law [Sun, 13 Feb 1994 06:36:41 +0000 (06:36 +0000)]
* elfcode.h (elf_map_symbols): Fix typo.
(write_object_contents): Check return values from prep_headers and
elf_compute_section_file_positions.
(set_section_contents): Likewise.
Jeff Law [Sun, 13 Feb 1994 06:12:45 +0000 (06:12 +0000)]
* libiberty.h (xexit): Use __volatile__ to avoid losing if
compiling with gcc -traditional.
Roland Pesch [Sat, 12 Feb 1994 07:12:40 +0000 (07:12 +0000)]
Formatting improvements from first eyeball once-over.
Steve Chamberlain [Sat, 12 Feb 1994 06:02:09 +0000 (06:02 +0000)]
* gencode.c (main, gendefines): New -d option prints table of defines.
* interp.c (trap): Add a load of system calls.
(sim_memory_size): Now default to 8Mbyte.
(PARANOID): Keep vector of registers with undefined contents.
Steve Chamberlain [Sat, 12 Feb 1994 05:52:11 +0000 (05:52 +0000)]
* remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
(remove_commands, add_commands): Add/remove hms-drain when target
is connected.
Roland Pesch [Sat, 12 Feb 1994 04:53:38 +0000 (04:53 +0000)]
Clean formatting under TeX/FSF layout and TeX/Cygnus layout
Roland Pesch [Sat, 12 Feb 1994 04:25:34 +0000 (04:25 +0000)]
Keep the new gasp manual.
Roland Pesch [Sat, 12 Feb 1994 03:59:03 +0000 (03:59 +0000)]
A manual for the GNU assembler preprocessor.
David MacKenzie [Sat, 12 Feb 1994 01:31:11 +0000 (01:31 +0000)]
* ldlex.l (comment): Increment line number when newline is read.
Stu Grossman [Sat, 12 Feb 1994 01:08:29 +0000 (01:08 +0000)]
* configure.in: Add Lynx/rs6000 support.
* lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
messages. Add rs6000 support. Don't try to modify unwritable
registers.
* rs6000-nat.c: Move lots of native dependent stuff (like core
file support) from rs6000-tdep.c & xcoffexec.c to here.
* rs6000-tdep.c: Move native dependent stuff to nat.c.
* xcoffexec.c: Move native dependent stuff to nat.c.
* config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
from tm file.
* config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
really native.
* config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
New files to support Lynx/rs6000.
David MacKenzie [Sat, 12 Feb 1994 00:59:26 +0000 (00:59 +0000)]
* archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
(bfd_construct_extended_name_table): Check result of normalize.
David MacKenzie [Sat, 12 Feb 1994 00:45:54 +0000 (00:45 +0000)]
Make all callers of malloc or realloc (including via obstacks)
check the result for NULL. Most set bfd_error to no_memory and
return in that case; a few are harder to fix, and are marked
with "FIXME <return type>".
* elf32-hppa.c (hppa_elf_build_arg_reloc_stub
hppa_elf_build_long_branch_stub): Check bfd_make_empty_symbol return.
* linker.c (_bfd_generic_link_output_symbols
_bfd_generic_link_write_global_symbol): Ditto
* section.c (bfd_make_section_anyway): Ditto.
* tekhex.c (find_chunk tekhex_mkobject): Check bfd_alloc.
(first_phase): Ditto. FIXME void
(tekhex_make_empty_symbol): Check bfd_zalloc.
* sunos.c (sunos_read_dynamic_info): Check bfd_zalloc.
(MY(read_dynamic_symbols) MY(read_dynamic_relocs)): Check bfd_alloc.
* stringhash.c (_bfd_stringtab_hash_newfunc): Check bfd_hash_allocate.
* srec.c: Indent.
(fillup_symbols): Check bfd_alloc. FIXME void
(srec_mkobject srec_get_section_contents
srec_set_section_contents): Check bfd_alloc.
(srec_make_empty_symbol): Check bfd_zalloc.
* som.c (hppa_som_gen_reloc_type): Check bfd_alloc_by_size_t.
(make_unique_section): Check bfd_alloc.
(som_new_section_hook): Check bfd_zalloc.
(bfd_som_attach_aux_hdr): Ditto. FIXME void
* rs6000-core.c (rs6000coff_core_p): Check bfd_zalloc.
* osf-core.c (osf_core_make_empty_symbol): Check bfd_zalloc.
(osf_core_core_file_p): Check bfd_alloc.
* oasys.c (oasys_slurp_symbol_table oasys_archive_p
oasys_mkobject oasys_object_p oasys_new_section_hook
oasys_set_section_contents): Check bfd_alloc.
(oasys_slurp_section_data): Check bfd_zalloc and bfd_alloc.
(oasys_make_empty_symbol): Check bfd_zalloc.
* nlmcode.h (nlm_make_empty_symbol): Check bfd_zalloc.
(nlm_slurp_symbol_table): Check bfd_zalloc and bfd_alloc.
* nlm32-sparc.c (nlm_sparc_read_import): Check bfd_alloc.
* nlm32-i386.c (nlm_i386_read_import): Check bfd_alloc.
* nlm32-alpha.c (nlm_alpha_read_import): Check bfd_alloc.
* linker.c (_bfd_link_hash_newfunc
(generic_link_hash_newfunc
(archive_hash_newfunc
(_bfd_generic_link_add_one_symbol): Check bfd_hash_allocate.
(_bfd_generic_final_link
(_bfd_generic_link_output_symbols
(default_indirect_link_order): Check bfd_alloc.
(bfd_new_link_order): Check bfd_alloc_by_size_t.
* irix-core.c (irix_core_make_empty_symbol): Check bfd_zalloc.
* ieee.c: Indent.
(read_id get_symbol get_section_entry ieee_archive_p ieee_object_p
ieee_slurp_section_data ieee_new_section_hook): Check bfd_alloc.
(do_one): Check bfd_alloc. Return a boolean.
(ieee_slurp_section_data): Check it.
(init_for_output): Check bfd_alloc. Return a boolean.
(ieee_set_section_contents): Check it.
(do_with_relocs): Check bfd_alloc. Return a boolean.
(ieee_bfd_debug_info_accumulate): Ditto. FIXME void.
(ieee_mkobject): Check bfd_zalloc.
(ieee_make_empty_symbol): Check bfd_zmalloc.
* hpux-core.c (hpux_core_make_empty_symbol): Check
bfd_zalloc.
* hppabsd-core.c (hppabsd_core_make_empty_symbol): Check
bfd_zalloc.
(hppabsd_core_core_file_p): Check bfd_zalloc.
* hp300hpux.c (MY(slurp_symbol_table)): Check bfd_alloc.
* elfcode.h (elf_new_section_hook): Check bfd_alloc.
(bfd_section_from_phdr): Ditto.
(write_relocs): Ditto. FIXME void
(elf_map_symbols assign_section_numbers map_program_segments):
Ditto. Return a boolean.
(swap_out_syms): Ditto. Check elf_map_symbols.
(elf_slurp_symbol_table): Check bfd_zalloc.
(elf_slurp_reloca_table): Check bfd_alloc.
(elf_slurp_reloc_table): Ditto.
(elf_compute_section_file_positions): Check assign_section_numbers.
(assign_file_positions_except_relocs): Return a boolean.
Check map_program_segments.
(elf_compute_section_file_positions): Check it.
* elf32-mips.c (mips_elf_final_link): Check bfd_alloc.
* elf32-hppa.c (hppa_elf_stub_branch_reloc): Check bfd_zmalloc and
realloc.
(hppa_elf_stub_reloc): Ditto.
(hppa_elf_build_arg_reloc_stub): Check bfd_zalloc.
(hppa_elf_build_long_branch_stub): Ditto.
(elf32_hppa_backend_symbol_table_processing): Ditto.
* ecoff.c (ecoff_set_symbol_info): Check bfd_alloc. Return a boolean.
(ecoff_slurp_symbol_table): Check it.
(ecoff_slurp_armap): Check bfd_alloc.
(ecoff_write_armap): Check bfd_zalloc.
(ecoff_link_hash_newfunc): Check bfd_hash_allocate and
_bfd_link_hash_newfunc.
(ecoff_link_add_externals): Check bfd_alloc.
* ctor.c (bfd_constructor_entry): Check bfd_alloc.
* coffgen.c (coff_real_object_p): Check bfd_alloc.
(coff_renumber_symbols): Check bfd_alloc_by_size_t. Return a boolean.
(coff_write_symbol): Check bfd_alloc. FIXME int
(coff_write_linenumbers): Check bfd_alloc. Return a boolean.
(coff_section_symbol): Check bfd_alloc_by_size_t.
(coff_get_normalized_symtab): Check bfd_alloc.
(coff_bfd_make_debug_symbol): Check bfd_zalloc.
* libcoff-in.h: Change decls of coff_renumber_symbols,
coff_write_linenumbers.
* libcoff.h: Rebuilt.
* coffcode.h (coff_write_object_contents): Check
coff_renumber_symbols, coff_write_linenumbers.
* coffcode.h: Indent.
(coff_add_missing_symbols): Check bfd_alloc_by_size_t. Return a
boolean.
(coff_write_object_contents): Check it.
* coff-alpha.c (alpha_relocate_section): Check bfd_alloc.
* coff-mips.c (mips_relocate_section): Ditto.
* archive.c (bfd_slurp_bsd_armap_f2): Check bfd_alloc value.
(do_slurp_bsd_armap): Ditto.
(compute_and_write_armap): Check bfd_realloc value.
* aoutx.h (translate_from_native_sym_flags): Check bfd_alloc
return value. Return boolean value.
(NAME(aout,make_empty_symbol)): Check bfd_zalloc return value.
(NAME(aout,slurp_symbol_table)): Check bf_alloc and bfd_zalloc
return value.
(add_to_stringtab): Ditto. FIXME void
(aout_link_hash_newfunc): Check bfd_hash_allocate return value.
(aout_link_add_symbols): Check bfd_alloc value.
(translate_symbol_table): Check translate_from_native_sym_flags.
* hp300hpux.c (MY(slurp_symbol_table)): Ditto.
* aoutx.h (aout_link_hash_newfunc): Check _bfd_link_hash_newfunc.
* opncls.c (bfd_zalloc bfd_realloc): Check result of bfd_alloc.
* opncls.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(_bfd_new_bfd): Check obstack_begin for 0 return.
* ieee.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(ieee_archive_p): Check obstack_begin for 0 return and
obstack_finish for NULL return.
* hash.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(bfd_hash_table_init_n): Check obstack_begin for 0 return and
obstack_finish for NULL return.
(bfd_hash_lookup): Check obstack_alloc for NULL return.
* ecofflink.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
bfd_ecoff_debug_accumulate
bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
(add_file_shuffle add_memory_shuffle): Check obstack_alloc for
NULL return. Return boolean, not void.
(bfd_ecoff_debug_init): Check obstack_begin for 0 return.
(bfd_ecoff_debug_accumulate): Check add_file_shuffle
and add_memory_shuffle return.
(string_hash_newfunc): Check bfd_hash_allocate and bfd_hash_newfunc.
(bfd_ecoff_debug_accumulate): Check bfd_alloc.
(ecoff_add_string): Check add_memory_shuffle return.
* libbfd-in.h (xmalloc, bfd_xmalloc, bfd_xmalloc_by_size_t):
Remove decls.
* libbfd.h: Rebuilt.
David MacKenzie [Fri, 11 Feb 1994 23:56:49 +0000 (23:56 +0000)]
* objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
Stu Grossman [Fri, 11 Feb 1994 23:39:38 +0000 (23:39 +0000)]
* configure.host: Add Lynx/rs6000 support.
* config/i386-nlm.mt: Enable a.out file support.
* config/rs6000lynx.mh: Lynx/rs6000 host support.
Stu Grossman [Fri, 11 Feb 1994 23:34:39 +0000 (23:34 +0000)]
* config.guess: Add Lynx/rs6000 config support.
Ian Lance Taylor [Fri, 11 Feb 1994 22:40:20 +0000 (22:40 +0000)]
* ldlang.c (lookup_name): Take new argument, force_load. If true,
reload the file even if it is already loaded.
(wild): Call lookup_name with force_load argument of 0.
(open_input_bfds): Call lookup_name with force_load argument of 1.
(print_symbol): Remove declaration of non-existent function.
(print_one_symbol): Return true rather than falling off end.
Ian Lance Taylor [Fri, 11 Feb 1994 22:30:18 +0000 (22:30 +0000)]
* archive.c (compute_and_write_armap): Rewrite somewhat to improve
memory usage.
Stan Shebs [Fri, 11 Feb 1994 21:18:16 +0000 (21:18 +0000)]
Fri Feb 11 13:10:42 1994 Stan Shebs (shebs@andros.cygnus.com)
* archive.c: Change all references to '\n' in archive magic
to '\012', for greater portability.
* ecoff.c (ecoff_write_armap): Ditto.
Stan Shebs [Fri, 11 Feb 1994 20:23:03 +0000 (20:23 +0000)]
sparcly-nat.c is long gone
Ian Lance Taylor [Fri, 11 Feb 1994 18:16:19 +0000 (18:16 +0000)]
* config/tc-mips.c (macro): Do unaligned loads and stores
correctly when big endian, and give errors on overflow rather than
generating incorrect code.
Ian Lance Taylor [Thu, 10 Feb 1994 22:33:56 +0000 (22:33 +0000)]
* as.c: Include libiberty.h.
Ian Lance Taylor [Thu, 10 Feb 1994 22:32:21 +0000 (22:32 +0000)]
* read.c (do_align): Don't define label just_record_alignment
unless it might be used.
Ian Lance Taylor [Thu, 10 Feb 1994 22:06:53 +0000 (22:06 +0000)]
* libiberty.h: New file. Declares functions provided by
libiberty.
Ian Lance Taylor [Thu, 10 Feb 1994 17:02:24 +0000 (17:02 +0000)]
* ldmain.c (main): Use %ld when printing long values.
Ian Lance Taylor [Thu, 10 Feb 1994 17:00:32 +0000 (17:00 +0000)]
* emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
Ian Lance Taylor [Thu, 10 Feb 1994 16:27:34 +0000 (16:27 +0000)]
* config/tc-i386.c (md_pseudo_table): Remove "zero".
* config/tc-m88k.c (md_pseudo_table): Likewise.
Ken Raeburn [Thu, 10 Feb 1994 06:48:19 +0000 (06:48 +0000)]
* config/tc-sparc.c (sparc_ip): Reject integer values for pc-relative operand
fields. This forces "call 0" to become "jmpl %g0,%o7" with no relocs needed.
Ken Raeburn [Thu, 10 Feb 1994 05:39:17 +0000 (05:39 +0000)]
* gas/alpha/fp.*: New files.
* lib/gas-defs.exp (regexp_diff): Report noted mismatch at
verbosity level 3 or above only.
Jeff Law [Thu, 10 Feb 1994 05:36:41 +0000 (05:36 +0000)]
* som.c: Cast return values from BFD memory allocation routines to
avoid warnings from the HP compiler.
Ian Lance Taylor [Wed, 9 Feb 1994 22:17:49 +0000 (22:17 +0000)]
* coff-alpha.c (alpha_relocate_section): Accept a LITERAL
reloc on an "ldl" instruction too.
Ian Lance Taylor [Wed, 9 Feb 1994 18:23:23 +0000 (18:23 +0000)]
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
Ian Lance Taylor [Wed, 9 Feb 1994 18:11:20 +0000 (18:11 +0000)]
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
don't treat backslash specially inside strings.
* read.c (next_char_of_string): Likewise.
Ian Lance Taylor [Wed, 9 Feb 1994 17:59:32 +0000 (17:59 +0000)]
* coff-rs6000.c (rs6000coff_mkarchive): Return false.
(rs6000_coff_snarf_ar_hdr): Don't declare errno; it's not used.
Also removed unused variable namelen.
(rs6000coff_write_armap): Declare orl_count and stridx parameters.
Stan Shebs [Wed, 9 Feb 1994 17:47:40 +0000 (17:47 +0000)]
Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
instead of memcpy to zero the initial stab symbol, duh.
* config/obj-elf.c (obj_elf_init_stab_section): Ditto.
* config/obj-som.c (obj_som_init_stab_section): Ditto.
Ian Lance Taylor [Wed, 9 Feb 1994 05:02:25 +0000 (05:02 +0000)]
* write.c (fixup_segment): Use as_bad_where, not as_bad.
Ken Raeburn [Wed, 9 Feb 1994 00:51:26 +0000 (00:51 +0000)]
sparclite-coff fix: obj-coff.c, symbols.c, write.c modified for abs_symbol
Ken Raeburn [Wed, 9 Feb 1994 00:04:43 +0000 (00:04 +0000)]
(adjust_reloc_syms): Use abs_symbol instead of calling section_symbol.
Ken Raeburn [Tue, 8 Feb 1994 23:07:55 +0000 (23:07 +0000)]
-Wall is Ian's friend; make them both happy (by removing `/*' inside comment).
Ken Raeburn [Tue, 8 Feb 1994 21:52:01 +0000 (21:52 +0000)]
* configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
Ken Raeburn [Tue, 8 Feb 1994 21:42:55 +0000 (21:42 +0000)]
* configure.in (alpha-dec-osf1*, alpha*-*-*): Build gas.
Ken Raeburn [Tue, 8 Feb 1994 21:09:10 +0000 (21:09 +0000)]
tc-alpha fixes
Ken Raeburn [Tue, 8 Feb 1994 21:02:35 +0000 (21:02 +0000)]
* write.c (write_relocs): Print some sensible error message if
bfd_perform_relocation returns bfd_reloc_overflow.
Ken Raeburn [Tue, 8 Feb 1994 20:58:20 +0000 (20:58 +0000)]
* coff-alpha.c (reloc_nil): New function.
(alpha_howto_table): Use it as special_function to prevent certain relocs from
being adjusted by bfd_perform_relocation. IGNORE reloc should be
partial_inplace.
(alpha_ecoff_get_relocated_section_contents): Accept a LITERAL reloc on an
"ldl" instruction too.
Peter Schauer [Tue, 8 Feb 1994 19:01:45 +0000 (19:01 +0000)]
Change inclusion of <string.h> to sysdep.h.
Peter Schauer [Tue, 8 Feb 1994 09:12:06 +0000 (09:12 +0000)]
* dis-buf.c, i386-dis.c: Include <string.h>.
Peter Schauer [Tue, 8 Feb 1994 09:05:56 +0000 (09:05 +0000)]
* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
Peter Schauer [Tue, 8 Feb 1994 09:01:03 +0000 (09:01 +0000)]
* README: Remove note about gcc warnings on alpha, these should be
gone now.
* c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
remote-utils.c, stabsread.c: Include <string.h>.
* regex.c: Include "defs.h", change re_comp argument to const char *.
* infptrace.c (fetch_register, store_inferior_registers): Change
regaddr to type CORE_ADDR.
* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
Peter Schauer [Tue, 8 Feb 1994 08:57:46 +0000 (08:57 +0000)]
* elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
hppa_elf_build_long_branch_stub): Cast to char * instead of int
before performing pointer arithmetic.
Jeff Law [Tue, 8 Feb 1994 05:17:01 +0000 (05:17 +0000)]
* config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
configuration.
(hppa*-*-*elf*): This configuration used hppa-elf now.
* som.c: This file is also used for HOST_HPPAOSF.
* targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.
* hosts/hppaosf.h: New host configuration file.
* config/hppabsd.mt (SELECT_VECS): Add bfd_elf32_hppa_vec as
BSD handles both SOM and ELF object files.
* config/hppaosf.mh (HDEFINES): Delete. No longer needed.
(RANLIB): Doesn't do anything, define it to be "echo".
* config/hppaosf.mt: New target makefile fragment for a PA running
OSF1.
Jeff Law [Tue, 8 Feb 1994 05:09:34 +0000 (05:09 +0000)]
* som.c: This file is also used for HOST_HPPAOSF.
* targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.