Jeff Law [Fri, 14 Jul 1995 15:51:51 +0000 (15:51 +0000)]
* procfs.c (procfs_ops): Fix typo in last change.
Jeff Law [Fri, 14 Jul 1995 03:19:38 +0000 (03:19 +0000)]
* config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM.
* write.c (adjust_reloc_syms): Set sy_used_in_reloc for both
symbols in a fixup where a defined symbol is subtracted from an
undefined symbol (when UNDEFINED_DIFFERENCE_OK is defined).
(fixup_segment): Do nothing for the difference of two symbols if
UNDEFINED_DIFFERENCE_OK is defined.
Jeff Law [Fri, 14 Jul 1995 03:15:15 +0000 (03:15 +0000)]
* som.c (hppa_som_gen_reloc_type): Choose a reasonable field
selector relocation for the difference of two symbols.
J.T. Conklin [Thu, 13 Jul 1995 22:43:48 +0000 (22:43 +0000)]
* srconv.c (wr_tr): Write out handcrafted tr block.
(walk_tree_symbol): Use evallen and evalue instead of
vallen & value because of corresponding changes in
sysroff.info.
* sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
functions.
* sysroff.info (tr): the tr block is a special case --- a block
without contents --- which can't be handled by generated code.
(den, dpp): only first byte is present for DENend, DPPend.
(dsy): describe a conditional portion of block, rename some fields.
(dps): describe a conditional portion of block.
(dfl): removed.
* sysinfo.y (yyerror): write error message to standard error.
Ken Raeburn [Thu, 13 Jul 1995 22:39:38 +0000 (22:39 +0000)]
Use "&" instead of "#" for immediate operands.
Jeff Law [Thu, 13 Jul 1995 21:40:22 +0000 (21:40 +0000)]
* inftarg.c (child_thread_alive): New function to see if a
particular thread is still running.
(child_ops): Add child_thread_alive entry.
* remote.c (remote_thread_alive): New function to see if a
particular thread is still alive.
(remote_ops): Add remote_thread_alive.
* target.c (dummy_target): Add dummy entry for thread_alive.
(cleanup_target): de_fault thread_alive too.
(update_current_target): INHERIT thread_alive too.
(debug_to_thread_alive): New function.
(setup_target_debug): Add debug_to_thread_alive.
* target.h (struct target_ops): Add to_thread_alive.
(target_thread_alive): Define.
* thread.c (info_threads_command): Don't call kill; use
target_thread_alive instead.
* config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
* gdbserver/low-lynx.c (mythread_alive): New function.
(mywait): Don't restart any threads after a new thread notification,
let the generic code handle it.
* gdbserver/low-sparc.c (mythread_alive): Dummy version.
* gdbserver/low-sun3.c (mythread_alive): Likewise.
* gdbserver/server.c (main): Handle thread_alive requests.
* gdbserver/server.h (mythread_alive): Declare.
* corelow.c (core_ops): Add dummy entry for thread_alive.
* exec.c (exec_ops): Likewise.
* m3-nat.c (m3_ops): Likewise.
* monitor.c (monitor_ops): Likewise.
* procfs.c (procfs_ops): Likewise.
* remote-arc.c (arc_ops): Likewise.
* remote-array.c (array_ops): Likewise.
* remote-e7000.c (e7000_ops): Likewise.
* remote-es.c (es1800_ops, es1800_child_ops): Likewise.
* remote-mips.c (mips_ops): Likewise.
* remote-pa.c (remote_hppro_ops): Likewise.
* remote-sim.c (gdbsim_ops): Likewise.
* sparcl-tdep.c (sparclite_ops): Likewise.
More lynx-6100 work
Jim Wilson [Thu, 13 Jul 1995 19:00:19 +0000 (19:00 +0000)]
Fix debug info bugs for SGI
* ecoff.c (add_file): Don't collapse multiple .file commands into
a single file structure.
(ecoff_build_lineno): Set ilineBase to sum of previous file's
ilineBase and cline.
Ian Lance Taylor [Thu, 13 Jul 1995 18:14:45 +0000 (18:14 +0000)]
* aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
for malloc.
* coff-mips.c (mips_relocate_section): Likewise, for memmove.
(mips_relax_section): Likewise, for malloc.
* cofflink.c (process_embedded_commands): Likewise.
(_bfd_coff_final_link): Likewise.
* ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
(ecoff_final_link_debug_accumulate): Likewise.
(ecoff_indirect_link_order): Likewise, for memcpy and malloc.
(ecoff_reloc_link_order): Likewise, for malloc.
* ecofflink.c (ecoff_align_debug): Likewise, for memset.
(ecoff_write_symhdr): Likewise, for malloc.
* elf32-hppa.c (elf32_hppa_read_symext_info): Likewise.
* elf.c (assign_file_positions_except_relocs): Likewise, for
qsort.
* elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc.
* elfcode.h (elf_slurp_reloc_table): Likewise.
* elfcore.h (elf_corefile_note): Likewise.
* elflink.h (elf_link_add_object_symbols): Likewise.
(elf_link_read_relocs): Likewise.
(NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset.
* i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
* ieee.c (do_with_relocs): Likewise.
* linker.c (default_indirect_link_order): Likewise, for malloc.
* nlmcode.h (nlm_object_p): Likewise.
(nlm_write_object_contents): Likewise.
* oasys.c (oasys_set_section_contents): Likewise, for memcpy.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise,
for malloc.
* section.c (bfd_get_section_contents): Likewise, for memcpy.
* srec.c (srec_get_section_contents): Likewise.
(srec_set_section_contents): Likewise.
* sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for
realloc and memset.
(sunos_scan_relocs): Likewise, for malloc.
(sunos_scan_dynamic_symbol): Likewise, for realloc.
* syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc.
* versados.c (versados_get_section_contents): Likewise, for
memcpy.
Ian Lance Taylor [Thu, 13 Jul 1995 17:57:53 +0000 (17:57 +0000)]
* ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
it takes a size_t anyhow.
(exp_binop): Likewise.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_assop): Likewise.
* ldlang.c (lang_memory_region_lookup): Likewise.
(init_os): Likewise.
(ldlang_add_undef): Likewise.
(insert_pad): Likewise.
* ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
bfd_size_type.
Ian Lance Taylor [Thu, 13 Jul 1995 17:50:55 +0000 (17:50 +0000)]
* Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
(mostlyclean): Remove y.output.
(clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
* nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
* objcopy.c (copy_object): Likewise.
Ian Lance Taylor [Thu, 13 Jul 1995 14:50:08 +0000 (14:50 +0000)]
* nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
(struct size_sym): Define.
(show_stats): New static variable.
(long_options): Add undocumented option "stats".
(main): Print memory stats if requested.
(sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
(numeric_forward): Use minisymbols rather than asymbols.
(non_numeric_forward): Likewise.
(size_forward1): Rename from size_forward. Use minisymbols.
(size_forward2): New static function.
(sort_symbols_by_size): Take new arguments dynamic, size, and
symsizep. Use minisymbols. Don't store the size back in the
symbol; store in a newly allocate struct size_sym array.
(display_rel_file): Read minisymbols rather than asymbols. Set
sort_* variables. Call print_size_symbols if sorting by size.
(filter_symbols): Take new arguments dynamic and size. Use
minisymbols.
(print_symbols): Likewise. Call print_symbol for actual printing.
(print_size_symbols): New static function.
(print_symbol): New static function.
PR 5332.
Ian Lance Taylor [Thu, 13 Jul 1995 14:46:06 +0000 (14:46 +0000)]
* targets.c (bfd_target): Add fields _read_minisymbols and
_minisymbol_to_symbol.
(BFD_JUMP_TABLE_SYMBOLS): Add _read_minisymbols and
_minisymbol_to_symbol.
(bfd_read_minisymbols): Define.
(bfd_minisymbol_to_symbol): Define.
* syms.c (_bfd_generic_read_minisymbols): Define.
(_bfd_generic_minisymbol_to_symbol): Define.
* libbfd-in.h (_bfd_nosymbols_read_minisymbols): Define.
(_bfd_nosymbols_minisymbol_to_symbol): Define.
(_bfd_generic_read_minisymbols): Declare.
(_bfd_generic_minisymbol_to_symbol): Declare.
* bfd-in2.h: Rebuild.
* libbfd.h: Rebuild.
* aoutx.h (MINISYM_THRESHOLD): Define.
(NAME(aout,read_minisymbols)): New function.
(NAME(aout,minisymbol_to_symbol)): New function.
* libaout.h (NAME(aout,read_minisymbols)): Declare.
(NAME(aout,minisymbol_to_symbol)): Declare.
* aout-target.h (MY_read_minisymbols): Define.
(MY_minisymbol_to_symbol): Define.
* All targets: Define read_minisymbols and minisymbol_to_symbol.
PR 5332.
Ian Lance Taylor [Thu, 13 Jul 1995 03:34:38 +0000 (03:34 +0000)]
* config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3.
Fred Fish [Wed, 12 Jul 1995 22:47:39 +0000 (22:47 +0000)]
* configure.in (configdirs): Remove gdb.chill from default list
of subdirs and then add it back in only if doing a native build.
The current chill compiler does not yet work in any cross build.
Ken Raeburn [Wed, 12 Jul 1995 22:00:57 +0000 (22:00 +0000)]
fix some compilation warnings from sun cc
Ken Raeburn [Wed, 12 Jul 1995 20:45:57 +0000 (20:45 +0000)]
fix more compilation bugs
Fred Fish [Wed, 12 Jul 1995 17:27:40 +0000 (17:27 +0000)]
* Revert all signal changes from Jul 6.
* gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
for sh-hms targets, allowing these tests to link, with no other
changes. Testing is suppressed by setting "nosignals" in site.exp.
Ian Lance Taylor [Wed, 12 Jul 1995 15:37:12 +0000 (15:37 +0000)]
* ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
declaration.
(ld_emulation_xfer_type): Add search parameter to
open_dynamic_archive entry point.
* ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
* ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
make non-static. Change all callers to use new name.
(ldfile_open_file_search): Make static. If entry is dynamic, call
ldemul_open_dynamic_archive.
(ldfile_open_file): Don't call ldemul_open_dynamic_archive.
* ldfile.h (ldfile_open_file_search): Don't declare.
(ldfile_try_open_bfd): Declare.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Accept search parameter. Don't search for a library, just look in
a single place.
* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
Likewise.
Ian Lance Taylor [Wed, 12 Jul 1995 14:44:46 +0000 (14:44 +0000)]
* objdump.c (dump_section_stabs): Only print each stabs section
once.
(compare_relocs): Make it clear to gcc that this always returns a
value.
Ian Lance Taylor [Wed, 12 Jul 1995 14:42:08 +0000 (14:42 +0000)]
Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
* objcopy.c (simple_copy): Preserve errno on failure.
(smart_rename): Print error mesage if simple_copy fails.
Ken Raeburn [Wed, 12 Jul 1995 05:07:49 +0000 (05:07 +0000)]
Initial autoconfiscation; attempting also to remove use of bfd's sysdep.h file.
Ken Raeburn [Wed, 12 Jul 1995 04:29:47 +0000 (04:29 +0000)]
* libelf.h (elf_backend_data): Use unsigned, not unsigned char, for bitfields.
Ian Lance Taylor [Wed, 12 Jul 1995 01:23:10 +0000 (01:23 +0000)]
* elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
BFD section for the sh_link section if it is a SYMTAB section.
PR 7392.
Ian Lance Taylor [Tue, 11 Jul 1995 21:22:17 +0000 (21:22 +0000)]
* aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
that archives hold a.out objects.
* cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* elflink.h (elf_bfd_link_add_symbols): Don't bother to check that
archives hold ELF objects.
Ian Lance Taylor [Tue, 11 Jul 1995 21:12:41 +0000 (21:12 +0000)]
* archive.c (bfd_generic_archive_p): If the archive has a map, and
the target was defaulted, but the first object in the archive can
not be matched with that target, then return a bad format error.
Ian Lance Taylor [Tue, 11 Jul 1995 20:16:48 +0000 (20:16 +0000)]
* elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
elf64_wdisp16_reloc.
(elf64_wdisp16_reloc): New static function.
(elf64_sparc_relocate_section): New static function.
(elf_backend_relocate_section): Define.
PR 7333.
Ian Lance Taylor [Tue, 11 Jul 1995 19:24:46 +0000 (19:24 +0000)]
* libelf.h (struct elf_size_info): Change type of last argument to
swap_symbol_out from char * to PTR.
(bfd_elf32_swap_symbol_out): Update declaration.
(bfd_elf64_swap_symbol_out): Likewise.
* elfcode.h (elf_swap_symbol_out): Change type of cdst from char *
to PTR.
* elf.c (swap_out_syms): Cast to PTR, not char *, when calling
swap_symbol_out routine.
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise.
(elf_link_output_sym): Likewise.
(elf_link_output_extsym): Likewise.
* elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.
Ian Lance Taylor [Tue, 11 Jul 1995 18:32:16 +0000 (18:32 +0000)]
* doc/c-mips.texi: Document -m4010 and -mno-4010.
Ian Lance Taylor [Tue, 11 Jul 1995 18:30:25 +0000 (18:30 +0000)]
Tue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com>
* config/tc-mips.c (mips_4010): New static variable.
(interlocks): New static variable.
(md_begin): Check for a cpu of "r4010". Set mips_4010 correctly.
If mips_4650 or mips_4010, set interlocks.
(append_insn): Check interlocks, not mips_4650.
(mips_emit_delays): Likewise.
(mips_ip): Only permit INSN_4010 instructions if mips_4010.
(md_longopts): Add "m4010" and "no-m4010".
(md_parse_option): Accept -mcpu=r4010. Handle -m4010 and
-no-m4010.
(md_show_usage): Document -m4010 and -no-m4010.
Ian Lance Taylor [Tue, 11 Jul 1995 18:25:27 +0000 (18:25 +0000)]
Tue Jul 11 14:23:37 1995 Jeff Spiegel <jeffs@lsil.com>
* mips-opc.c (L1): Define.
(mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
and wb.
Tue Jul 11 11:49:49 1995 Ian Lance Taylor <ian@cygnus.com>
* mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
if ISA 3 and addu otherwise, replacing or, since some MIPS chips
have multiple add units but only a single logical unit.
Ian Lance Taylor [Tue, 11 Jul 1995 17:26:08 +0000 (17:26 +0000)]
* ecoff.c (struct efdr): Add new field fake.
(init_file): Initialize fake.
(add_file): Add new parameter fake. Change all callers.
(ecoff_build_debug): Don't warn about a missing .end for a fake
file.
PR 6509.
Ian Lance Taylor [Tue, 11 Jul 1995 16:31:39 +0000 (16:31 +0000)]
Tue Jul 11 12:29:49 1995 Rick Sladkey <jrs@world.std.com>
* elf.c (_bfd_elf_find_nearest_line): Handle the simple case where
there is no debugging information.
Ian Lance Taylor [Tue, 11 Jul 1995 16:30:02 +0000 (16:30 +0000)]
* ldmisc.c (vfinfo): Don't print the line number if it isn't
meaningful.
Ian Lance Taylor [Tue, 11 Jul 1995 15:52:03 +0000 (15:52 +0000)]
* ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
shifted by 18, without any insertion or extraction function.
(insert_cr, extract_cr): Remove.
Ian Lance Taylor [Mon, 10 Jul 1995 22:16:12 +0000 (22:16 +0000)]
* ld.h (ld_config_type): Add field warn_constructors.
* ldmain.c (add_to_set): Warn if config.warn_constructors.
(constructor_callback): Likewise.
* lexsup.c (parse_args): Handle -warn-constructors.
* ld.texinfo, ld.1: Document -warn-constructors.
PR 7406.
Ian Lance Taylor [Mon, 10 Jul 1995 22:01:03 +0000 (22:01 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
get confused by directory names if we searched for the file.
PR 7401.
Ian Lance Taylor [Mon, 10 Jul 1995 21:16:40 +0000 (21:16 +0000)]
Based on patches from H.J. Lu <hjl@nynexst.com>:
* ldlang.h (lang_input_statement_type): Add new field dynamic.
* ldlang.c (new_afile): Set dynamic from config.dynamic_link.
* ldfile.c: Include bfdlink.h.
(ldfile_open_file): Check dynamic field of entry, not global
dynamic_link field. Don't do a dynamic search when doing a
relocateable link.
* ldmain.c (main): Don't warn about dynamic_link for a
relocateable link.
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
dynamic is false.
(gld${EMULATION_NAME}_create_output_section_statements): Always
loop over input files.
* Makefile.in: Rebuild dependencies.
Ken Raeburn [Mon, 10 Jul 1995 20:54:42 +0000 (20:54 +0000)]
split cpu-specific documentation out to separate files
Ken Raeburn [Mon, 10 Jul 1995 20:49:45 +0000 (20:49 +0000)]
* read.c (po_hash): Now static.
Ian Lance Taylor [Mon, 10 Jul 1995 19:01:21 +0000 (19:01 +0000)]
Based on patches from H.J. Lu <hjl@nynexst.com>:
* config/tc-i386.c (md_apply_fix3): Rename from md_apply_fix1.
Accept pointer to value and segment. Fix OBJ_ELF PCREL case to
handle global defined symbols correctly.
(md_apply_fix): Remove both versions.
* config/tc-i386.h (MD_APPLY_FIX3): Define.
Ian Lance Taylor [Mon, 10 Jul 1995 18:24:39 +0000 (18:24 +0000)]
* coff-arm.c (PCRELOFFSET): Define if not already defined.
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add coff-arm.o
(CFILES): Add coff-arm.c, pe-arm.c, pei-arm.c.
Ian Lance Taylor [Mon, 10 Jul 1995 18:16:25 +0000 (18:16 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): Remove unused
local i.
* coff-arm.c (coff_arm_rtype_to_howto): Don't declare.
Ian Lance Taylor [Mon, 10 Jul 1995 18:11:13 +0000 (18:11 +0000)]
* coff-i960.c (coff_i960_relocate): Correct typo: use ! on strcmp,
not on string.
Ian Lance Taylor [Mon, 10 Jul 1995 18:07:17 +0000 (18:07 +0000)]
* aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
using bfd_alloc, not malloc.
* cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
* ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
* i386linux.c (linux_link_hash_table_create): Likewise.
* linker.c (_bfd_generic_link_hash_table_create): Likewise.
* sunos.c (sunos_link_hash_table_create): Likewise.
Ian Lance Taylor [Mon, 10 Jul 1995 17:48:48 +0000 (17:48 +0000)]
* configure.in: When switching on ${cpu}, use ${cpu}, not
$[target_cpu}, in default case.
* configure: Rebuild.
Ian Lance Taylor [Mon, 10 Jul 1995 17:41:13 +0000 (17:41 +0000)]
* ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
-shared.
Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
* ldmain.c (main): Set link_info.symbolic to false.
* lexsup.c (parse_args): Handle -Bsymbolic.
Ian Lance Taylor [Mon, 10 Jul 1995 17:31:31 +0000 (17:31 +0000)]
Based on patches from Eric Youngdale <eric@aib.com>:
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): If -Bsymbolic,
output a DT_SYMBOLIC dynamic entry.
(elf_adjust_dynamic_symbol): If -Bsymbolic, don't require a PLT
entry for a locally defined symbol.
* elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, do warn
about undefined symbols, and fill in the GOT entry for a symbol
defined in a regular object file.
(elf_i386_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
reloc rather than a GLOB_DAT reloc for a symbol defined in a
regular object file.
* elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, do warn
about undefined symbols, and fill in the GOT entry for a symbol
defined in a regular object file.
(elf_m68k_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
reloc rather than a GLOB_DAT reloc for a symbol defined in a
regular object file.
* elf32-sparc.c (elf32_sparc_relocate_section): If -Bsymbolic, do
warn about undefined symbols, and fill in the GOT entry for a
symbol defined in a regular object file.
(elf32_sparc_finish_dynamic_symbol): If -Bsymbolic, output a
RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined
in a regular object file.
Ken Raeburn [Mon, 10 Jul 1995 15:48:58 +0000 (15:48 +0000)]
add binary.o, tekhex.o
Ian Lance Taylor [Mon, 10 Jul 1995 15:18:38 +0000 (15:18 +0000)]
Move testsuite ChangeLog entry into testsuite ChangeLog.
Ian Lance Taylor [Mon, 10 Jul 1995 15:16:41 +0000 (15:16 +0000)]
Remove C comment characters from modified FSF address in expect scripts.
Ian Lance Taylor [Mon, 10 Jul 1995 15:15:10 +0000 (15:15 +0000)]
* ld-versados/versados.exp: If a test fails, report it correctly:
don't try to run the next test, and don't report a pass as well as
a fail.
Ian Lance Taylor [Mon, 10 Jul 1995 15:12:33 +0000 (15:12 +0000)]
* config/m68k-coff.mt (SELECT_VECS): Rename from SELECT_VECTORS.
Correct elements to be actual BFD vector names.
Ian Lance Taylor [Mon, 10 Jul 1995 15:11:15 +0000 (15:11 +0000)]
* Makefile.in (Makefile): Don't depend upon @frags@.
(config.status): Depend upon @frags@.
Ian Lance Taylor [Mon, 10 Jul 1995 15:01:16 +0000 (15:01 +0000)]
Remove C comment characters from modified FSF address in expect scripts.
Ian Lance Taylor [Sat, 8 Jul 1995 17:29:04 +0000 (17:29 +0000)]
* write.c (fixup_segment): Call resolve_symbol_value on
sub_symbolP, in case it isn't in the symbol table.
PR 7131.
Ken Raeburn [Fri, 7 Jul 1995 22:49:42 +0000 (22:49 +0000)]
fsf address update, but not in COPYING files
Ian Lance Taylor [Fri, 7 Jul 1995 22:42:13 +0000 (22:42 +0000)]
* read.c (s_lcomm): For .lcomm 1, set align to 0, not 1.
PR 5167.
Kung Hsu [Fri, 7 Jul 1995 21:44:57 +0000 (21:44 +0000)]
* elfread.c (elf_symtab_read): Fix a bug ignoring compiler
generated internal labels ($LM...).
Ian Lance Taylor [Fri, 7 Jul 1995 21:40:56 +0000 (21:40 +0000)]
* coffgen.c (coff_renumber_symbols): Sort defined symbols that are
neither BSF_FUNCTION not BSF_NOT_AT_END just before undefined
symbols.
* coffcode.h (coff_slurp_symbol_table): Set BSF_FUNCTION as well
as BSF_NOT_AT_END.
PR 5491.
Ken Raeburn [Fri, 7 Jul 1995 21:34:08 +0000 (21:34 +0000)]
clean up new config stuff for mostlyclean, distclean
Ian Lance Taylor [Fri, 7 Jul 1995 21:29:54 +0000 (21:29 +0000)]
* config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, set
BSF_FUNCTION.
(symbol_globalP, symbol_global_lastP): New global variables.
(yank_symbols): Sort defined global symbols to the end, just
before the undefined symbols.
(glue_symbols): Add two arguments, and use them instead of
referring directly to global variables.
(crawl_symbols): Call glue_symbols twice, once for defined globals
and once for undefined. Add corresponding know calls.
PR 5491.
Ken Raeburn [Fri, 7 Jul 1995 21:20:34 +0000 (21:20 +0000)]
clean up new config stuff for mostlyclean, distclean
Ian Lance Taylor [Fri, 7 Jul 1995 20:10:27 +0000 (20:10 +0000)]
* app.c (do_scrub_next_char): Always accept \v. Don't make it
conditional on BACKSLASH_V.
* read.c (next_char_of_string): Likewise.
* config/obj-bout.h (BACKSLASH_V): Don't define.
* config/tc-mips.h (BACKSLASH_V): Don't define.
PR 5604.
Ian Lance Taylor [Fri, 7 Jul 1995 17:03:21 +0000 (17:03 +0000)]
Add SPARC ELF PIC support.
* write.c (fixup_segment): Pass fixP to TC_RELOC_RTSYM_LOC_FIXUP,
not fixP->fx_r_type.
* config/tc-sparc.c (sparc_pic_code): New global variable.
(md_apply_fix): If generating PIC, adjust fx_addnumber for any non
PC relative reloc.
(tc_gen_reloc): If generating PIC, adjust various reloc types.
Remove fx_pcrel assert, since it is no longer true.
(md_parse_option): Handle -K PIC.
* config/tc-sparc.h (sparc_pic_code): Declare if OBJ_ELF.
(TC_RELOC_RTSYM_LOC_FIXUP): Define if OBJ_ELF.
(tc_fix_adjustable): Don't adjust PC relative relocs if PIC.
* config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Take a fixp, not a
reloc type.
PR 7131.
Ian Lance Taylor [Fri, 7 Jul 1995 15:18:31 +0000 (15:18 +0000)]
* Makefile.in (Makefile): Add dependency on conf.in, so that conf
is rebuilt when conf.in changes.
Fred Fish [Fri, 7 Jul 1995 04:11:42 +0000 (04:11 +0000)]
* configure.in (signaldirs): Define and add to configdirs for all
targets except some specific ones that are known to not support signals.
Also clean up formatting.
* gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
(signals, sigall): Remove rules to build.
* gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
Moved to new gdb.signals directory.
* gdb.signals: New test directory.
* gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
signals.c signals.exp}: New or moved files.
Ken Raeburn [Fri, 7 Jul 1995 02:19:13 +0000 (02:19 +0000)]
add final newline
Ken Raeburn [Thu, 6 Jul 1995 21:18:08 +0000 (21:18 +0000)]
fsf address update
Ken Raeburn [Thu, 6 Jul 1995 20:49:14 +0000 (20:49 +0000)]
add trailing newlines
Ken Raeburn [Thu, 6 Jul 1995 20:48:16 +0000 (20:48 +0000)]
add trailing newline
Ian Lance Taylor [Thu, 6 Jul 1995 20:39:31 +0000 (20:39 +0000)]
Patches from Jerry Blakely <gerry_blakley@wellfleet.com>:
* as.c (listing_filename): New static variable.
(show_usage): Mention -a=file.
(parse_args): Support = option of -a to set name of listing file.
(main): Pass listing_filename to listing_print.
* listing.c (list_file): New static variable.
(various): Replace printf with fprintf to list_file.
(listing_print): If name argument is not NULL, open it as
list_file.
* doc/as.texinfo, doc/as.1: Document -a=file.
PR 6354.
Ian Lance Taylor [Thu, 6 Jul 1995 19:40:51 +0000 (19:40 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.
Don't copy PC32 reloc against section into shared object.
PR 6997, 7381.
Ian Lance Taylor [Thu, 6 Jul 1995 18:39:19 +0000 (18:39 +0000)]
* Makefile.in: Rebuild dependencies.
(CFILES): Added elflink.c.
(Makefile): Depend upon config.status, not configure.in.
(config.status): New target; depend upon configure configure.host
and config.bfd.
Ian Lance Taylor [Thu, 6 Jul 1995 18:36:55 +0000 (18:36 +0000)]
* config/tc-sparc.c (s_reserve): Don't permit redefinition, even
if the symbol was already in bss_section. Fix warning message.
PR 6797.
Ian Lance Taylor [Thu, 6 Jul 1995 18:00:09 +0000 (18:00 +0000)]
* listing.c (struct file_info_struct): Rename end_pending field to
at_end.
(file_info): Initialize at_end, not end_pending.
(buffer_line): If at_end set, just return immediately. Don't
worry about end_pending cases. Set at_end when EOF is read.
(print_source): Check at_end, not end_pending.
(listing_listing): Likewise.
PR 6636.
Ken Raeburn [Thu, 6 Jul 1995 17:12:22 +0000 (17:12 +0000)]
copyright notices
Ken Raeburn [Thu, 6 Jul 1995 17:03:40 +0000 (17:03 +0000)]
no more configure.in
Ken Raeburn [Thu, 6 Jul 1995 17:03:06 +0000 (17:03 +0000)]
keep configure; clean elf.c not elfcode.h for arc
Ian Lance Taylor [Thu, 6 Jul 1995 16:59:29 +0000 (16:59 +0000)]
* config/tc-alpha.h (alpha_do_align): Don't declare.
(md_do_align): Don't define.
(tc_frob_label): Define.
(alpha_define_label): Declare.
(md_flush_pending_output): Define.
(alpha_flush_pending_output): Declare.
* config/tc-alpha.c (insn_label): New static variable.
(auto_align): New static variable.
(md_pseudo_table): Add cases for .text, .data, .align, .byte,
.hword, .int, .long, .octa, .quad, .short, .word, .double, .float,
and .single. Change .t_floating, .s_floating, .f_floating,
.g_floating, and .d_floating to use s_alpha_float_cons rather than
float_cons.
(s_alpha_text, s_alpha_data): New static functions.
(s_rdata, s_sdata): Clear insn_label and set auto_align.
(s_gprel32): If auto_align, align. Clear insn_label.
(emit_insn): Clear insn_label.
(s_alpha_align): New static function.
(alpha_align): Make static. Take label argument.
(alpha_flush_pending_output): New static function.
(s_alpha_cons, s_alpha_float_cons): New static functions.
(alpha_define_label): New function.
PR 7148.
Ken Raeburn [Thu, 6 Jul 1995 02:59:06 +0000 (02:59 +0000)]
clean configure when cleaning configure.in
Ken Raeburn [Thu, 6 Jul 1995 02:58:40 +0000 (02:58 +0000)]
regenerate conf.in with autoreconf
Ken Raeburn [Thu, 6 Jul 1995 02:52:44 +0000 (02:52 +0000)]
more vms fixes from Pat Rankin
Ken Raeburn [Thu, 6 Jul 1995 02:28:46 +0000 (02:28 +0000)]
* Makefile.in (BFD_LIBS): No, don't put elflink.o here.
* configure.in: Include it here whenever elf.o is specified.
Ken Raeburn [Thu, 6 Jul 1995 02:22:00 +0000 (02:22 +0000)]
Added new files elflink.c, elflink.h, elfcore.h.
Moved some mostly size-independent stuff from elfcode.h to elf.c, adding a data
structure to elfcode.h with some misc data and callback functions. Added a
pointer to that structure to the target back end data. More work can be done
here.
Renamed generic elf routines (not cpu-specific stuff) to start with bfd_elf or
_bfd_elf. Updated most call sites, sometimes defined some macros.
Moved some dynamic linking support code from m68k, sparc, i386 to common files,
using target back end flags to control behavior. More work can probably be
done here too.
Moved core- and linker-support code out of elfcode.h to elf.c, elfcore.h,
elflink.h, or elflink.c. Now elfcode.h contains only .o and executable
support, plus #includes of elfcore.h and elflink.h. Much of the contents of
these other header files can probably still be moved from the .h files to the
.c files, to get compiled only once.
Cleaned up some "gcc -Wall" warnings regarding unused or uninitialized
variables, in generic and cpu-specific code.
J.T. Conklin [Wed, 5 Jul 1995 23:51:30 +0000 (23:51 +0000)]
forgot to check this in
J.T. Conklin [Wed, 5 Jul 1995 23:39:33 +0000 (23:39 +0000)]
* Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
J.T. Conklin [Wed, 5 Jul 1995 23:36:48 +0000 (23:36 +0000)]
* Makefile.in (distclean, mostlyclean, realclean): Remove autoconf files.
J.T. Conklin [Wed, 5 Jul 1995 23:19:07 +0000 (23:19 +0000)]
* w65.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:18:25 +0000 (23:18 +0000)]
* arm.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:17:43 +0000 (23:17 +0000)]
* sh.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:16:38 +0000 (23:16 +0000)]
* h8300.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:10:29 +0000 (23:10 +0000)]
* Makefile.in (all, clean, distclean, mostlyclean, realclean,
install): Changed targets so that they descend all
subdirectories in $(SUBDIRS).
(*-all, *-clean, *-install): Removed targets.
* configure.in: Don't bother with target makefile fragments, they
are no longer needed.
* configure: regenerated.
J.T. Conklin [Wed, 5 Jul 1995 22:54:10 +0000 (22:54 +0000)]
* Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
Kung Hsu [Wed, 5 Jul 1995 22:35:30 +0000 (22:35 +0000)]
* defs.h: if __GO32__ or WIN32 the directory separating symbol should
be '\' not '/'.
Ian Lance Taylor [Wed, 5 Jul 1995 21:52:10 +0000 (21:52 +0000)]
* config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
(md_parse_option): If OBJ_ELF, check for -K. Die if -K PIC, since
PIC code is not currently supported.
* as.c (parse_args): Change std_shortopts to be an array rather
than a constant string. Only include 'K' if WORKING_DOT_WORD is
not defined. Only check for 'K' in that case as well.
* as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD
is not defined.
PR 7131.
Ian Lance Taylor [Wed, 5 Jul 1995 21:47:07 +0000 (21:47 +0000)]
* conf.in: Add undef of HAVE_SBRK.
Ian Lance Taylor [Wed, 5 Jul 1995 20:54:57 +0000 (20:54 +0000)]
* elf32-mips.c (mips_elf_object_p): Unconditionally set
elf_bad_symtab, since sometimes the symbol table is messed up and
the last symbol is global.
PR 6921.
Ian Lance Taylor [Wed, 5 Jul 1995 20:31:31 +0000 (20:31 +0000)]
* config/obj-coff.c (obj_coff_line): Call listing_source_line, in
both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
PR 7006.
Ian Lance Taylor [Wed, 5 Jul 1995 19:59:07 +0000 (19:59 +0000)]
* symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
(S_CLEAR_EXTERNAL): Likewise.
(S_SET_WEAK): Warn if symbol is global.
PR 6750.
Ian Lance Taylor [Wed, 5 Jul 1995 19:04:58 +0000 (19:04 +0000)]
* config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
to put an undefined symbol into a set.
PR 6340.