Rob Savoye
dcc5408195
Add "-N".
1994-02-15 03:32:22 +00:00
Stu Grossman
7d8752123a
* 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.
1994-02-15 01:30:25 +00:00
Stu Grossman
5cf354ef0e
* hosts/rs6000lynx.h: Create this to enable Lynx host support.
1994-02-15 01:29:26 +00:00
Stu Grossman
8b8ddedb93
* 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.
1994-02-15 01:28:16 +00:00
Rob Savoye
ff08df75bb
Rearranging so cross testing will work.
1994-02-14 18:30:48 +00:00
Jeff Law
34535b4433
* gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
...
* gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
1994-02-14 17:59:19 +00:00
Jeff Law
1e95993e94
* gas/hppa/basic/fmemLRbug.s: New test.
...
* gas/hppa/basic/basic.exp: Run it.
1994-02-14 17:25:25 +00:00
Jeff Law
50c5c4ad12
* som.h (som_symbol_data): Safely access backend private data
...
for BFD symbols. All callers changed.
1994-02-14 06:15:00 +00:00
Jeff Law
3c37f9ca0c
* 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.
1994-02-13 23:34:52 +00:00
Jeff Law
6863eb4b74
* som.h: Include <lst.h> and <ar.h>.
1994-02-13 22:30:51 +00:00
Jeff Law
5e829a3440
* 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.
1994-02-13 06:36:41 +00:00
Jeff Law
45fc3ed43b
* libiberty.h (xexit): Use __volatile__ to avoid losing if
...
compiling with gcc -traditional.
1994-02-13 06:12:45 +00:00
Roland Pesch
71165d7698
Formatting improvements from first eyeball once-over.
1994-02-12 07:12:40 +00:00
Steve Chamberlain
8aff8146d2
* 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.
1994-02-12 06:02:09 +00:00
Steve Chamberlain
3b5442f9c8
* remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
...
(remove_commands, add_commands): Add/remove hms-drain when target
is connected.
1994-02-12 05:52:11 +00:00
Roland Pesch
68ac42f696
Clean formatting under TeX/FSF layout and TeX/Cygnus layout
1994-02-12 04:53:38 +00:00
Roland Pesch
24b9a4e211
Keep the new gasp manual.
1994-02-12 04:25:34 +00:00
Roland Pesch
bddd4c2329
A manual for the GNU assembler preprocessor.
1994-02-12 03:59:03 +00:00
David MacKenzie
09aaf97a9f
* ldlex.l (comment): Increment line number when newline is read.
1994-02-12 01:31:11 +00:00
Stu Grossman
d87d7b10af
* 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.
1994-02-12 01:08:29 +00:00
David MacKenzie
a15691a56e
* archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
...
(bfd_construct_extended_name_table): Check result of normalize.
1994-02-12 00:59:26 +00:00
David MacKenzie
9783e04a64
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.
1994-02-12 00:45:54 +00:00
David MacKenzie
704bbd0dc3
* objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
1994-02-11 23:56:49 +00:00
Stu Grossman
30e441ca45
* configure.host: Add Lynx/rs6000 support.
...
* config/i386-nlm.mt: Enable a.out file support.
* config/rs6000lynx.mh: Lynx/rs6000 host support.
1994-02-11 23:39:38 +00:00
Stu Grossman
475156577a
* config.guess: Add Lynx/rs6000 config support.
1994-02-11 23:34:39 +00:00
Ian Lance Taylor
c4e48be344
* 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.
1994-02-11 22:40:20 +00:00
Ian Lance Taylor
5ee3886b48
* archive.c (compute_and_write_armap): Rewrite somewhat to improve
...
memory usage.
1994-02-11 22:30:18 +00:00
Stan Shebs
9a793780e5
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.
1994-02-11 21:18:16 +00:00
Stan Shebs
1158ee8b00
sparcly-nat.c is long gone
1994-02-11 20:23:03 +00:00
Ian Lance Taylor
b1237b9d04
* config/tc-mips.c (macro): Do unaligned loads and stores
...
correctly when big endian, and give errors on overflow rather than
generating incorrect code.
1994-02-11 18:16:19 +00:00
Ian Lance Taylor
605e1d90e3
* as.c: Include libiberty.h.
1994-02-10 22:33:56 +00:00
Ian Lance Taylor
c02fd8dc3e
* read.c (do_align): Don't define label just_record_alignment
...
unless it might be used.
1994-02-10 22:32:21 +00:00
Ian Lance Taylor
e51437f199
* libiberty.h: New file. Declares functions provided by
...
libiberty.
1994-02-10 22:06:53 +00:00
Ian Lance Taylor
410945f102
* ldmain.c (main): Use %ld when printing long values.
1994-02-10 17:02:24 +00:00
Ian Lance Taylor
473e361e30
* emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
1994-02-10 17:00:32 +00:00
Ian Lance Taylor
4045fbb497
* config/tc-i386.c (md_pseudo_table): Remove "zero".
...
* config/tc-m88k.c (md_pseudo_table): Likewise.
1994-02-10 16:27:34 +00:00
Ken Raeburn
6440d65c34
* 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.
1994-02-10 06:48:19 +00:00
Ken Raeburn
0586b4600f
* gas/alpha/fp.*: New files.
...
* lib/gas-defs.exp (regexp_diff): Report noted mismatch at
verbosity level 3 or above only.
1994-02-10 05:39:17 +00:00
Jeff Law
a62dd44f9c
* som.c: Cast return values from BFD memory allocation routines to
...
avoid warnings from the HP compiler.
1994-02-10 05:36:41 +00:00
Ian Lance Taylor
0d634116b2
* coff-alpha.c (alpha_relocate_section): Accept a LITERAL
...
reloc on an "ldl" instruction too.
1994-02-09 22:17:49 +00:00
Ian Lance Taylor
d87c080eaf
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
...
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
1994-02-09 18:23:23 +00:00
Ian Lance Taylor
ddb393cf89
* 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.
1994-02-09 18:11:20 +00:00
Ian Lance Taylor
945f125b45
* 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.
1994-02-09 17:59:32 +00:00
Stan Shebs
66c774bb3e
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.
1994-02-09 17:47:40 +00:00
Ian Lance Taylor
356315fe1c
* write.c (fixup_segment): Use as_bad_where, not as_bad.
1994-02-09 05:02:25 +00:00
Ken Raeburn
cfaf70e3a6
sparclite-coff fix: obj-coff.c, symbols.c, write.c modified for abs_symbol
1994-02-09 00:51:26 +00:00
Ken Raeburn
e8501a72ce
(adjust_reloc_syms): Use abs_symbol instead of calling section_symbol.
1994-02-09 00:04:43 +00:00
Ken Raeburn
cafb569b7a
-Wall is Ian's friend; make them both happy (by removing `/*' inside comment).
1994-02-08 23:07:55 +00:00
Ken Raeburn
7496639ab5
* configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
1994-02-08 21:52:01 +00:00
Ken Raeburn
b20ab72634
* configure.in (alpha-dec-osf1*, alpha*-*-*): Build gas.
1994-02-08 21:42:55 +00:00