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.
Kung Hsu [Wed, 5 Jul 1995 18:41:40 +0000 (18:41 +0000)]
* remote-nindy (nindy_wait): Use infinite timeout reading after
esacpe character.
Ian Lance Taylor [Wed, 5 Jul 1995 17:56:52 +0000 (17:56 +0000)]
* Makefile.in: Remove @configure_input@; it's not needed in
files named Makefile.
Ian Lance Taylor [Wed, 5 Jul 1995 17:13:16 +0000 (17:13 +0000)]
* config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
explicit pseudo-op works, while continuing to treat "set" as an
instruction.
PR 5199.
Ian Lance Taylor [Wed, 5 Jul 1995 16:31:07 +0000 (16:31 +0000)]
* ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.
* libecoff.h (_bfd_ecoff_bfd_is_local_label): Declare.
* elf32-mips.c (mips_elf_is_local_label): New static function.
(bfd_elf32_bfd_is_local_label): Define.
PR 6978.
Ian Lance Taylor [Wed, 5 Jul 1995 16:25:44 +0000 (16:25 +0000)]
Correct last change
Ian Lance Taylor [Wed, 5 Jul 1995 16:10:50 +0000 (16:10 +0000)]
* ecoff.c (ecoff_debugging_seen): New global variable.
(ecoff_directive_def): Set ecoff_debugging_seen.
(ecoff_stab): Likewise.
* ecoff.h: Make idempotent.
(ecoff_debugging_seen): Declare.
* config/tc-mips.c: Include ecoff.h.
(mips_debug): New static variable.
(s_stringer, s_mips_space): Remove unneeded declarations.
(md_parse_option): In case 'g', set mips_debug to debugging level.
(mips_local_label): New function.
* tc-mips.h (LOCAL_LABEL): Call mips_local_label.
(mips_local_label): Declare.
PR 6978.
Ian Lance Taylor [Wed, 5 Jul 1995 14:34:12 +0000 (14:34 +0000)]
* configure.in: Use $ac_config_sub, not $configsub.
* configure: Likewise.
Ken Raeburn [Wed, 5 Jul 1995 09:47:20 +0000 (09:47 +0000)]
don't define FASCIST_FDOPEN for i386aix host
Ken Raeburn [Wed, 5 Jul 1995 09:38:09 +0000 (09:38 +0000)]
fix usage message on --enable options
Ken Raeburn [Wed, 5 Jul 1995 09:32:47 +0000 (09:32 +0000)]
autoconfiscation
Fred Fish [Wed, 5 Jul 1995 08:04:28 +0000 (08:04 +0000)]
* as.c (main): Only use sbrk when HAVE_SBRK defined.
* configure.in: Add test for sbrk.
* configure: Regenerate using autoconf 2.4.
Fred Fish [Wed, 5 Jul 1995 07:47:43 +0000 (07:47 +0000)]
* ldmain.c (HAVE_SBRK): Define for everything except
specific systems that are known to not support sbrk.
(main): Use HAVE_SBRK to decide whether or not to use sbrk.
Ian Lance Taylor [Tue, 4 Jul 1995 21:05:23 +0000 (21:05 +0000)]
* nm.c (size_forward): Check yf against yn, not xn.
PR 7276.
Ian Lance Taylor [Tue, 4 Jul 1995 20:47:10 +0000 (20:47 +0000)]
* objcopy.c (copy_archive): Record all output BFD's, and close
them before unlinking them and removing the temporary directory,
to avoid NFS problems.
PR 6795.
Ian Lance Taylor [Tue, 4 Jul 1995 20:38:00 +0000 (20:38 +0000)]
Rename truncate to ar_truncate
Ian Lance Taylor [Tue, 4 Jul 1995 20:28:29 +0000 (20:28 +0000)]
* ar.c (replace_members): In verbose messages, use 'r' when
replacing a member, and 'a' when adding one.
* ar.c (truncate): New static variable.
(normalize): Change return type to const char *. Add abfd
argument. Change all callers. If truncate, chop the filename to
abfd->ar_max_namelen.
(main): For the 'f' modifier, set truncate to true. Don't change
quick_append to replace to truncate is true.
(do_quick_append): If truncate, set BFD_TRADITIONAL_FORMAT.
(write_archive): Likewise.
* binutils.texi, ar.1: Document 'f' modifier.
PR 6888.
Ian Lance Taylor [Tue, 4 Jul 1995 20:22:43 +0000 (20:22 +0000)]
* archive.c (_bfd_construct_extended_name_table): If
BFD_TRADITIONAL_FORMAT is set, limit the length of all file names
to ar_max_namelen.
(bfd_dont_truncate_arname): If BFD_TRADITIONAL_FORMAT is set, call
bfd_bsd_truncate_arname.
PR 6888.
Ian Lance Taylor [Tue, 4 Jul 1995 19:43:44 +0000 (19:43 +0000)]
Sanitize arc stuff from Makefile.in.
Ian Lance Taylor [Tue, 4 Jul 1995 18:52:27 +0000 (18:52 +0000)]
* objcopy.c (enum strip_action): Define strip_unneeded.
(OPTION_STRIP_UNNEEDED): Define.
(strip_options): Add "strip-unneeded".
(copy_options): Likewise.
(copy_usage): Mention --strip-unneeded.
(strip_usage): Likewise.
(is_strip_section): Strip debugging sections if strip_unneeded.
(filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
(copy_object): If strip_all, discard symbols without checking
discard_locals.
(copy_object): Call filter_symbols if strip_unneeded.
(setup_section): Strip debugging sections if strip_unneeded.
(copy_section): Likewise.
(strip_main): Handle OPTION_STRIP_UNNEEDED.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
PR 6684.
Ian Lance Taylor [Tue, 4 Jul 1995 18:07:47 +0000 (18:07 +0000)]
* archive.c (_bfd_write_archive_contents): Revert June 1 change.
Jeff Law [Tue, 4 Jul 1995 17:48:37 +0000 (17:48 +0000)]
* infrun.c (wait_for_inferior): When switching from one thread to
another, save infrun's state for the old thread and load infrun's
previous state for the new thread.
* thread.c (struct thread_info): Add new fields for thread specific
state saved/restored in infrun.c.
(add_thread): Initialize new fields.
(load_infrun_state): New function.
(save_infrun_state): New function.
* thread.h (load_infrun_state): Provide external decl.
(save_infrun_state): Likewise.
More single-stepping patches for lynx-6100.
Ian Lance Taylor [Tue, 4 Jul 1995 17:44:38 +0000 (17:44 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
Handle etree_provide.
PR 7164.
Ian Lance Taylor [Tue, 4 Jul 1995 17:43:05 +0000 (17:43 +0000)]
* elfcode.h (NAME(bfd_elf,record_link_assignment)): Add provide
argument.
* bfd-in.h (bfd_elf32_record_link_assignment): Update prototype.
(bfd_elf64_record_link_assignment): Likewise.
* bfd-in2.h: Rebuild.
PR 7164.
Jeff Law [Tue, 4 Jul 1995 17:40:41 +0000 (17:40 +0000)]
* infrun.c (wait_for_inferior): When we hit a breakpoint for the
wrong thread, make sure to write the fixed PC value into the thread
that stopped. Restart all threads after single stepping over a
breakpoint for a different thread.
* breakpoint.c (set_momentary_breakpoint): Make momentary
breakpoints thread specific in a multi-threaded program.
* lynx-nat.c (child_resume): Add some comments. Correctly
choose between the single and multi-threaded step and continue
ptrace calls.
Some of the lynx-6100 single stepping fixes.
Ian Lance Taylor [Tue, 4 Jul 1995 16:57:34 +0000 (16:57 +0000)]
* emultempl/elf32.em (global_needed): New static variable.
(global_found): Likewise.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_search_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_check_needed): Likewise.
(ld_${EMULATION_NAME}_emulation): Replace after_open_default with
gld${EMULATION_NAME}_after_open.
PR 7083.
Ian Lance Taylor [Tue, 4 Jul 1995 16:54:49 +0000 (16:54 +0000)]
* libelf.h (struct elf_link_hash_table): Add needed field. Remove
saw_needed field.
* elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
is an empty string, don't make a DT_NEEDED entry in the output
file. Record all DT_NEEDED entries found in input dynamic
objects.
(elf_link_output_extsym): Don't check saw_needed when issuing
warnings.
* elf.c (_bfd_elf_link_hash_table_init): Initialize needed, not
saw_needed.
(bfd_elf_get_needed_list): New function.
* bfd-in.h (struct bfd_elf_link_needed_list): Define.
(bfd_elf_get_needed_list): Define.
* bfd-in2.h: Rebuild.
PR 7083.
Ian Lance Taylor [Tue, 4 Jul 1995 16:23:58 +0000 (16:23 +0000)]
* ecoff.c (_bfd_ecoff_find_nearest_line): Also initialize
find_buffer and fdrtab_len fields of newly allocated
find_line_info structure.
Jeff Law [Mon, 3 Jul 1995 23:33:21 +0000 (23:33 +0000)]
* config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6.
* config/tc-hppa.c (tc_gen_reloc, SOM version): Handle
relocations for the difference of two (possibly external)
symbols.
(hppa_fix_adjustable): For SOM, reject reductions involving
the difference of two symbols.
(hppa_force_relocation): Force relocations for expressions
involving the difference of two symbols.
gas/bfd part of mentor-7363
Jeff Law [Mon, 3 Jul 1995 23:27:25 +0000 (23:27 +0000)]
* som.c (hppa_som_gen_reloc_type): New argument "sym_diff",
nonzero when we're generating relocations for an expression
using the difference of two symbols. All callers changed.
Handle difference of symbols for both R_HPPA and R_COMPLEX
cases.
(som_write_fixups): Handle R_COMP1, R_COMP2 and R_CODE_EXPR
fixups.
Ian Lance Taylor [Mon, 3 Jul 1995 22:41:51 +0000 (22:41 +0000)]
* ecoff.c (_bfd_ecoff_find_nearest_line): If we allocate
find_line_info, clear the fdrtab field.
Ian Lance Taylor [Mon, 3 Jul 1995 22:19:02 +0000 (22:19 +0000)]
x
Ian Lance Taylor [Mon, 3 Jul 1995 22:16:40 +0000 (22:16 +0000)]
* bfd.c (enum bfd_error): Define bfd_error_no_armap.
(bfd_errmsgs): Add string for bfd_error_no_armap.
* bfd-in2.h: Rebuild.
* ecoff.c (ecoff_link_add_archive_symbols): If an archive has no
armap, set bfd_error_no_armap rather than bfd_error_no_symbols.
* elfcode.h (elf_link_add_archive_symbols): Likewise.
* linker.c (_bfd_generic_link_add_archive_symbols): Likewise.
Ian Lance Taylor [Mon, 3 Jul 1995 22:15:10 +0000 (22:15 +0000)]
* targets.c (enum bfd_flavour): Add bfd_target_msdos_flavour here,
rather than in bfd-in2.h.
Steve Chamberlain [Mon, 3 Jul 1995 22:02:03 +0000 (22:02 +0000)]
* Makfile.in (DLLTOOL_FOR_TARGET): New name, pass it down.
* config.sub, configure.in (win32): New target and host.
Steve Chamberlain [Mon, 3 Jul 1995 21:34:53 +0000 (21:34 +0000)]
* configure.in (i386-*-win32): New target.
* ld/testsuite/versados/(t1,t2).ld: End in newlines.
Steve Chamberlain [Mon, 3 Jul 1995 21:25:26 +0000 (21:25 +0000)]
* configure[.in] (i386-*-win32): New host and target.
Steve Chamberlain [Mon, 3 Jul 1995 21:22:00 +0000 (21:22 +0000)]
Renamed.
Steve Chamberlain [Mon, 3 Jul 1995 21:20:26 +0000 (21:20 +0000)]
Mon Jul 3 14:16:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
* configure.in (i386-*-win32): New configuration.
* dlltool.c (killat, xlate, usage, long_options, main):
Understand and cope with -k option.
Steve Chamberlain [Mon, 3 Jul 1995 21:11:15 +0000 (21:11 +0000)]
Mon Jul 3 13:55:18 1995 Steve Chamberlain <sac@slash.cygnus.com>
* config.bfd (win32): New configuration.
* configure.host (pe): Changed to i386win32.
* config/i386pe.mh: Deleted.
* config/i386win32.mh: New file.
Steve Chamberlain [Mon, 3 Jul 1995 20:47:27 +0000 (20:47 +0000)]
* Makfile.in (DLLTOOL_FOR_TARGET): New name, pass it down.
* configure.in (win32): New target and host.
Ian Lance Taylor [Mon, 3 Jul 1995 18:40:26 +0000 (18:40 +0000)]
* lexsup.c (parse_args): Let -G either set the small data size or
be equivalent to --shared, depending on the next argument. Accept
and ignore -z for Solaris compatibility.
PR 7118.
Ian Lance Taylor [Mon, 3 Jul 1995 17:57:25 +0000 (17:57 +0000)]
* elfcode.h (elf_link_add_object_symbols): Permit common and
indirect symbols in weakdefs BFD_ASSERT.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Simplify
BFD_ASSERT to permit some legal, but odd, cases.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.