deliverable/binutils-gdb.git
29 years agofix more compilation bugs
Ken Raeburn [Wed, 12 Jul 1995 20:45:57 +0000 (20:45 +0000)] 
fix more compilation bugs

29 years ago * Revert all signal changes from Jul 6.
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.

29 years ago * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
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.

29 years ago * objdump.c (dump_section_stabs): Only print each stabs section
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.

29 years agoWed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
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.

29 years agoInitial autoconfiscation; attempting also to remove use of bfd's sysdep.h file.
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.

29 years ago* libelf.h (elf_backend_data): Use unsigned, not unsigned char, for bitfields.
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.

29 years ago * elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
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.

29 years ago * aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
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.

29 years ago * archive.c (bfd_generic_archive_p): If the archive has a map, and
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.

29 years ago * elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
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.

29 years ago * libelf.h (struct elf_size_info): Change type of last argument to
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.

29 years ago * doc/c-mips.texi: Document -m4010 and -mno-4010.
Ian Lance Taylor [Tue, 11 Jul 1995 18:32:16 +0000 (18:32 +0000)] 
* doc/c-mips.texi: Document -m4010 and -mno-4010.

29 years agoTue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com>
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.

29 years agoTue Jul 11 14:23:37 1995 Jeff Spiegel <jeffs@lsil.com>
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.

29 years ago * ecoff.c (struct efdr): Add new field fake.
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.

29 years agoTue Jul 11 12:29:49 1995 Rick Sladkey <jrs@world.std.com>
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.

29 years ago * ldmisc.c (vfinfo): Don't print the line number if it isn't
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.

29 years ago * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
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.

29 years ago * ld.h (ld_config_type): Add field warn_constructors.
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.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
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.

29 years ago Based on patches from H.J. Lu <hjl@nynexst.com>:
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.

29 years agosplit cpu-specific documentation out to separate files
Ken Raeburn [Mon, 10 Jul 1995 20:54:42 +0000 (20:54 +0000)] 
split cpu-specific documentation out to separate files

29 years ago* read.c (po_hash): Now static.
Ken Raeburn [Mon, 10 Jul 1995 20:49:45 +0000 (20:49 +0000)] 
* read.c (po_hash): Now static.

29 years ago Based on patches from H.J. Lu <hjl@nynexst.com>:
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.

29 years ago * coff-arm.c (PCRELOFFSET): Define if not already defined.
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.

29 years ago * cofflink.c (_bfd_coff_generic_relocate_section): Remove unused
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.

29 years ago * coff-i960.c (coff_i960_relocate): Correct typo: use ! on strcmp,
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.

29 years ago * aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
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.

29 years ago * configure.in: When switching on ${cpu}, use ${cpu}, not
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.

29 years ago * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
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.

29 years ago Based on patches from Eric Youngdale <eric@aib.com>:
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.

29 years agoadd binary.o, tekhex.o
Ken Raeburn [Mon, 10 Jul 1995 15:48:58 +0000 (15:48 +0000)] 
add binary.o, tekhex.o

29 years agoMove testsuite ChangeLog entry into testsuite ChangeLog.
Ian Lance Taylor [Mon, 10 Jul 1995 15:18:38 +0000 (15:18 +0000)] 
Move testsuite ChangeLog entry into testsuite ChangeLog.

29 years agoRemove C comment characters from modified FSF address in expect scripts.
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.

29 years ago * ld-versados/versados.exp: If a test fails, report it correctly:
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.

29 years ago * config/m68k-coff.mt (SELECT_VECS): Rename from SELECT_VECTORS.
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.

29 years ago * Makefile.in (Makefile): Don't depend upon @frags@.
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@.

29 years agoRemove C comment characters from modified FSF address in expect scripts.
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.

29 years ago * write.c (fixup_segment): Call resolve_symbol_value on
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.

29 years agofsf address update, but not in COPYING files
Ken Raeburn [Fri, 7 Jul 1995 22:49:42 +0000 (22:49 +0000)] 
fsf address update, but not in COPYING files

29 years ago * read.c (s_lcomm): For .lcomm 1, set align to 0, not 1.
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.

29 years ago * elfread.c (elf_symtab_read): Fix a bug ignoring compiler
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...).

29 years ago * coffgen.c (coff_renumber_symbols): Sort defined symbols that are
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.

29 years agoclean up new config stuff for mostlyclean, distclean
Ken Raeburn [Fri, 7 Jul 1995 21:34:08 +0000 (21:34 +0000)] 
clean up new config stuff for mostlyclean, distclean

29 years ago * config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, set
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.

29 years agoclean up new config stuff for mostlyclean, distclean
Ken Raeburn [Fri, 7 Jul 1995 21:20:34 +0000 (21:20 +0000)] 
clean up new config stuff for mostlyclean, distclean

29 years ago * app.c (do_scrub_next_char): Always accept \v. Don't make it
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.

29 years ago Add SPARC ELF PIC support.
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.

29 years ago * Makefile.in (Makefile): Add dependency on conf.in, so that conf
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.

29 years ago * configure.in (signaldirs): Define and add to configdirs for all
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.

29 years agoadd final newline
Ken Raeburn [Fri, 7 Jul 1995 02:19:13 +0000 (02:19 +0000)] 
add final newline

29 years agofsf address update
Ken Raeburn [Thu, 6 Jul 1995 21:18:08 +0000 (21:18 +0000)] 
fsf address update

29 years agoadd trailing newlines
Ken Raeburn [Thu, 6 Jul 1995 20:49:14 +0000 (20:49 +0000)] 
add trailing newlines

29 years agoadd trailing newline
Ken Raeburn [Thu, 6 Jul 1995 20:48:16 +0000 (20:48 +0000)] 
add trailing newline

29 years ago Patches from Jerry Blakely <gerry_blakley@wellfleet.com>:
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.

29 years ago * elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.
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.

29 years ago * Makefile.in: Rebuild dependencies.
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.

29 years ago * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
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.

29 years ago * listing.c (struct file_info_struct): Rename end_pending field to
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.

29 years agocopyright notices
Ken Raeburn [Thu, 6 Jul 1995 17:12:22 +0000 (17:12 +0000)] 
copyright notices

29 years agono more configure.in
Ken Raeburn [Thu, 6 Jul 1995 17:03:40 +0000 (17:03 +0000)] 
no more configure.in

29 years agokeep configure; clean elf.c not elfcode.h for arc
Ken Raeburn [Thu, 6 Jul 1995 17:03:06 +0000 (17:03 +0000)] 
keep configure; clean elf.c not elfcode.h for arc

29 years ago * config/tc-alpha.h (alpha_do_align): Don't declare.
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.

29 years agoclean configure when cleaning configure.in
Ken Raeburn [Thu, 6 Jul 1995 02:59:06 +0000 (02:59 +0000)] 
clean configure when cleaning configure.in

29 years agoregenerate conf.in with autoreconf
Ken Raeburn [Thu, 6 Jul 1995 02:58:40 +0000 (02:58 +0000)] 
regenerate conf.in with autoreconf

29 years agomore vms fixes from Pat Rankin
Ken Raeburn [Thu, 6 Jul 1995 02:52:44 +0000 (02:52 +0000)] 
more vms fixes from Pat Rankin

29 years ago* Makefile.in (BFD_LIBS): No, don't put elflink.o here.
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.

29 years agoAdded new files elflink.c, elflink.h, elfcore.h.
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.

29 years agoforgot to check this in
J.T. Conklin [Wed, 5 Jul 1995 23:51:30 +0000 (23:51 +0000)] 
forgot to check this in

29 years ago* Makefile.in, configure.in: converted to autoconf.
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.

29 years ago* Makefile.in (distclean, mostlyclean, realclean): Remove autoconf files.
J.T. Conklin [Wed, 5 Jul 1995 23:36:48 +0000 (23:36 +0000)] 
* Makefile.in (distclean, mostlyclean, realclean): Remove autoconf files.

29 years ago* w65.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:19:07 +0000 (23:19 +0000)] 
* w65.mt: Removed.

29 years ago* arm.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:18:25 +0000 (23:18 +0000)] 
* arm.mt: Removed.

29 years ago* sh.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:17:43 +0000 (23:17 +0000)] 
* sh.mt: Removed.

29 years ago* h8300.mt: Removed.
J.T. Conklin [Wed, 5 Jul 1995 23:16:38 +0000 (23:16 +0000)] 
* h8300.mt: Removed.

29 years ago* Makefile.in (all, clean, distclean, mostlyclean, realclean,
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.

29 years ago* Makefile.in, configure.in: converted to autoconf.
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.

29 years ago * defs.h: if __GO32__ or WIN32 the directory separating symbol should
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 '/'.

29 years ago * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
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.

29 years ago * conf.in: Add undef of HAVE_SBRK.
Ian Lance Taylor [Wed, 5 Jul 1995 21:47:07 +0000 (21:47 +0000)] 
* conf.in: Add undef of HAVE_SBRK.

29 years ago * elf32-mips.c (mips_elf_object_p): Unconditionally set
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.

29 years ago * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
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.

29 years ago * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
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.

29 years ago * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
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.

29 years ago * remote-nindy (nindy_wait): Use infinite timeout reading after
Kung Hsu [Wed, 5 Jul 1995 18:41:40 +0000 (18:41 +0000)] 
    * remote-nindy (nindy_wait): Use infinite timeout reading after
        esacpe character.

29 years ago * Makefile.in: Remove @configure_input@; it's not needed in
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.

29 years ago * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
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.

29 years ago * ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.
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.

29 years agoCorrect last change
Ian Lance Taylor [Wed, 5 Jul 1995 16:25:44 +0000 (16:25 +0000)] 
Correct last change

29 years ago * ecoff.c (ecoff_debugging_seen): New global variable.
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.

29 years ago * configure.in: Use $ac_config_sub, not $configsub.
Ian Lance Taylor [Wed, 5 Jul 1995 14:34:12 +0000 (14:34 +0000)] 
* configure.in: Use $ac_config_sub, not $configsub.
* configure: Likewise.

29 years agodon't define FASCIST_FDOPEN for i386aix host
Ken Raeburn [Wed, 5 Jul 1995 09:47:20 +0000 (09:47 +0000)] 
don't define FASCIST_FDOPEN for i386aix host

29 years agofix usage message on --enable options
Ken Raeburn [Wed, 5 Jul 1995 09:38:09 +0000 (09:38 +0000)] 
fix usage message on --enable options

29 years agoautoconfiscation
Ken Raeburn [Wed, 5 Jul 1995 09:32:47 +0000 (09:32 +0000)] 
autoconfiscation

29 years ago * as.c (main): Only use sbrk when HAVE_SBRK defined.
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.

29 years ago * ldmain.c (HAVE_SBRK): Define for everything except
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.

29 years ago * nm.c (size_forward): Check yf against yn, not xn.
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.

29 years ago * objcopy.c (copy_archive): Record all output BFD's, and close
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.

29 years agoRename truncate to ar_truncate
Ian Lance Taylor [Tue, 4 Jul 1995 20:38:00 +0000 (20:38 +0000)] 
Rename truncate to ar_truncate

This page took 0.041319 seconds and 4 git commands to generate.