ChangeLog-9697 revision 60484
160484SobrienTue Dec 30 12:45:18 1997  Ian Lance Taylor  <ian@cygnus.com>
260484Sobrien
360484Sobrien	* elf32-sparc.c (elf32_sparc_check_relocs): If -Bsymbolic, don't
460484Sobrien	allocate space for a PC relative reloc against a symbol which is
560484Sobrien	defined in a regular file.
660484Sobrien	(elf32_sparc_relocate_section): If -Bsymbolic, don't copy a PC
760484Sobrien	relative reloc against a symbol which is defined in a regular
860484Sobrien	file.
960484Sobrien
1060484SobrienMon Dec 29 18:02:28 1997  Ian Lance Taylor  <ian@cygnus.com>
1160484Sobrien
1260484Sobrien	From Jonathan Stone <jonathan@DSG.Stanford.EDU>:
1360484Sobrien	* config.bfd (mips-dec-netbsd*): Add ECOFF vectors to
1460484Sobrien	targ_selvecs.
1560484Sobrien	(mips*el-*-netbsd*): Like mips-dec-netbsd*.
1660484Sobrien	(mips*-*-netbsd*): New target.
1760484Sobrien
1860484SobrienMon Dec 29 17:13:28 1997  H.J. Lu  (hjl@gnu.org)
1960484Sobrien
2060484Sobrien	* elflink.h (elf_link_assign_sym_version): Change error message
2160484Sobrien	from "undefined version name" to "undefined versioned symbol
2260484Sobrien	name".
2360484Sobrien
2460484SobrienMon Dec 29 11:41:16 1997  Nick Clifton  <nickc@cygnus.com>
2560484Sobrien
2660484Sobrien	* coff-arm.c (coff_arm_relocate_section): Fix typo from previous
2760484Sobrien	delta.
2860484Sobrien
2960484SobrienTue Dec 23 17:01:10 1997  Ian Lance Taylor  <ian@cygnus.com>
3060484Sobrien
3160484Sobrien	* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare.
3260484Sobrien	* libbfd.h: Rebuild.
3360484Sobrien
3460484Sobrien	* peicode.h (coff_swap_scnhdr_out): Set .reloc section to be
3560484Sobrien	shared.  Set stab* sections to be shared and read.  Set .rsrc
3660484Sobrien	section to be read and shared.
3760484Sobrien
3860484SobrienMon Dec 22 13:20:57 1997  Ian Lance Taylor  <ian@cygnus.com>
3960484Sobrien
4060484Sobrien	* Makefile.am: Rebuild dependencies.
4160484Sobrien 	(ALL_MACHINES_CFILES): Add dwarf2.lo.
4260484Sobrien	(ALL_MACHINES_CFILES): Add dwarf2.c.
4360484Sobrien	* Makefile.in: Rebuild.
4460484Sobrien
4560484Sobrien	* coff-arm.c: Don't include obstack.h.
4660484Sobrien
4760484SobrienMon Dec 22 13:04:33 1997  Joel Sherrill  <joel@oarcorp.com>
4860484Sobrien
4960484Sobrien        * config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as
5060484Sobrien	i[3456]86-go32.
5160484Sobrien
5260484SobrienThu Dec 18 16:01:25 1997  Doug Evans  <devans@canuck.cygnus.com>
5360484Sobrien
5460484Sobrien	* configure: Regenerate to get @SHELL@ substituted.
5560484Sobrien
5660484SobrienWed Dec 17 09:45:09 1997  Nick Clifton  <nickc@cygnus.com>
5760484Sobrien
5860484Sobrien	* coff-arm.c (coff_arm_relocate_section): Only look at section
5960484Sobrien	owner if there is one.
6060484Sobrien
6160484Sobrien	* elf.c (assign_file_positions_for_segments): Fail if there is not
6260484Sobrien	enough room for the program headers.
6360484Sobrien
6460484SobrienTue Dec 16 08:09:56 1997  Gavin Koch  <gavin@cygnus.com>
6560484Sobrien
6660484Sobrien	* elf.c (_bfd_elf_find_nearest_line): Call
6760484Sobrien	_bfd_dwarf2_find_nearest_line first.
6860484Sobrien	* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Same.
6960484Sobrien	* dwarf2.c: New file; implement _bfd_dwarf2_find_nearest_line.
7060484Sobrien
7160484SobrienMon Dec 15 16:08:52 1997  Nick Clifton  <nickc@cygnus.com>
7260484Sobrien
7360484Sobrien	* archures.c: Add bfd_mach_m32r.
7460484Sobrien
7560484SobrienMon Dec 15 16:11:22 1997  Fred Fish  <fnf@cygnus.com>
7660484Sobrien
7760484Sobrien	* coffcode.h (ALIGN_SECTIONS_IN_FILE): Define if I960 not defined.
7860484Sobrien	(coff_compute_section_file_positions): Use ALIGN_SECTIONS_IN_FILE
7960484Sobrien	to decide when to align the file sections for paging.
8060484Sobrien	* coffcode.h (ALIGN_SECTIONS_IN_FILE): Undefine for TIC80COFF.
8160484Sobrien
8260484SobrienMon Dec 15 15:01:15 1997  Nick Clifton  <nickc@cygnus.com>
8360484Sobrien
8460484Sobrien	* elf32-m32r.c (m32r_elf_object_p): New Function.
8560484Sobrien	(m32r_elf_final_write_processing):  New Function.
8660484Sobrien	(m32r_elf_set_private_flags):  New Function.
8760484Sobrien	(m32r_elf_copy_private_bfd_data):  New Function.
8860484Sobrien	(m32r_elf_merge_private_bfd_data):  New Function.
8960484Sobrien	(m32r_elf_print_private_bfd_data):  New Function.
9060484Sobrien	(elf_backend_object_p): Point to m32r_object_p.
9160484Sobrien	(elf_backend_final_write_processing): Point to
9260484Sobrien	m32r_elf_final_write_processing.
9360484Sobrien	(bfd_elf32_bfd_copy_private_bfd_data): Point to
9460484Sobrien	m32r_elf_copy_private_bfd_data.
9560484Sobrien	(bfd_elf32_bfd_merge_private_bfd_data): Point to
9660484Sobrien	m32r_elf_merge_private_bfd_data.
9760484Sobrien	(bfd_elf32_bfd_set_private_flags): Point to
9860484Sobrien	m32r_elf_set_private_bfd_data.
9960484Sobrien	(bfd_elf32_bfd_print_private_bfd_data): Point to
10060484Sobrien	m32r_elf_print_private_bfd_data.
10160484Sobrien
10260484Sobrien
10360484Sobrien	* bfd-in2.h (bfd_mach_m32r): Add identifier for M32R architecture
10460484Sobrien	machines.
10560484Sobrien
10660484SobrienFri Dec 12 11:30:28 1997  Brendan Kehoe  <brendan@canuck.cygnus.com>
10760484Sobrien
10860484Sobrien	* configure: Only build libbfd shared if --enable-shared's value
10960484Sobrien	was `yes', or was set to `*bfd*'.
11060484Sobrien	* aclocal.m4: Likewise.
11160484Sobrien	* NOTE: this really needs to be fixed in libtool/libtool.m4, the
11260484Sobrien	original source of this bit of code.  It's not clear what the best fix
11360484Sobrien	would be, though.
11460484Sobrien
11560484SobrienThu Dec 11 17:48:11 1997  Richard Henderson  <rth@cygnus.com>
11660484Sobrien
11760484Sobrien	* linker.c (generic_link_add_symbol_list): Always init udata.p so
11860484Sobrien	that the generic relaxation code can function when input and output
11960484Sobrien	file formats are mismatched.
12060484Sobrien
12160484SobrienThu Dec 11 01:02:18 1997  Ian Lance Taylor  <ian@cygnus.com>
12260484Sobrien
12360484Sobrien	* coff-sh.c (bfd_coff_small_swap_table): Initialize new fields.
12460484Sobrien
12560484Sobrien	* elf.c (assign_file_positions_for_segments): For a loadable
12660484Sobrien	section, make sure that the load address is correct relative to
12760484Sobrien	the load address of the segment plus the size of the segment so
12860484Sobrien	far.
12960484Sobrien
13060484Sobrien	* coffcode.h (_coff_link_output_has_begun): Make static.
13160484Sobrien	(_coff_final_link_postscript): Likewise.
13260484Sobrien
13360484SobrienWed Dec 10 23:37:11 1997  Ian Lance Taylor  <ian@cygnus.com>
13460484Sobrien
13560484Sobrien	* elflink.h (elf_link_input_bfd): Handle a relocateable link in
13660484Sobrien	which a relocation refers to an indirect or warning symbol.
13760484Sobrien
13860484SobrienWed Dec 10 11:15:55 1997  Nick Clifton  <nickc@cygnus.com>
13960484Sobrien
14060484Sobrien	* coff-arm.c (bfd_arm_coff_final_link): Function deleted.
14160484Sobrien	(coff_arm_final_link_postscript): New function.
14260484Sobrien	(coff_arm_link_output_has_begun): New function.
14360484Sobrien
14460484Sobrien	* libcoff.h (struct bfd_coff_backend_data): Add new fields:
14560484Sobrien	_bfd_coff_link_output_has_begun and
14660484Sobrien	_bfd_coff_final_link_postscript.  Add new macros:
14760484Sobrien	bfd_coff_link_output_has_begun() and
14860484Sobrien	bfd_coff_final_link_postscript().
14960484Sobrien
15060484Sobrien	* cofflink.c (_bfd_coff_final_link): Insert calls to
15160484Sobrien	bfd_coff_link_output_has_begun() and
15260484Sobrien	bfd_coff_final_link_postscript().
15360484Sobrien
15460484Sobrien	* coffcode.h: Add two new fields to bfd_coff_backend_data
15560484Sobrien	structure: _bfd_coff_link_output_has_begun and
15660484Sobrien	_bfd_coff_final_link_postscript.  Add default initialisers for
15760484Sobrien	these fields.  Add overridable aliases for the coff swap functions
15860484Sobrien	in the backend data structure.
15960484Sobrien
16060484Sobrien	* elf32-v850.c: Update with patches from the branch to fix
16160484Sobrien	HI16_S/LO16 reloc pairs.
16260484Sobrien
16360484SobrienWed Dec 10 14:06:48 1997  Michael Meissner  <meissner@cygnus.com>
16460484Sobrien
16560484Sobrien	* elf32-d30v.c (d30v_info_to_howto_rela): New function to support
16660484Sobrien	RELA relocations.
16760484Sobrien	(USE_REL): Don't define any more, switch to using RELA
16860484Sobrien	relocations.
16960484Sobrien	(elf_info_to_howto): Define as d30v_info_to_howto_rela.
17060484Sobrien
17160484SobrienTue Dec  9 11:37:53 1997  Andrew Cagney  <cagney@b1.cygnus.com>
17260484Sobrien
17360484Sobrien	* archures.c (bfd_mach_mips*): Define.
17460484Sobrien	(bfd_default_scan): For 3000 and 4000 replace magic constant with
17560484Sobrien 	macro.
17660484Sobrien
17760484Sobrien	* cpu-mips.c (N): Define.
17860484Sobrien	(bfd_mips_arch, arch_info_struct): Re-write using macro N, replace
17960484Sobrien 	numbers with bfd_mach_mips* macros.
18060484Sobrien
18160484SobrienFri Dec  5 11:13:46 1997  Nick Clifton  <nickc@cygnus.com>
18260484Sobrien
18360484Sobrien	* elf32-v850.c (v850_elf_reloc, v850_elf_store_addend_in_insn,
18460484Sobrien	v850_elf_relocate_section): Fix reloc addend handling.
18560484Sobrien	(v850_elf_section_from_bfd_section, v850_elf_symbol_processing,
18660484Sobrien	v850_elf_add_symbol_hook, v850_elf_link_output_symbol_hook,
18760484Sobrien	v850_elf_section_from_shdr, v850_elf_fake_sections): New functions
18860484Sobrien	to create and handle special common sections.
18960484Sobrien	(v850_elf_final_link_relocate): Fix HI16 and HI16_S relocations
19060484Sobrien	which have data stored in the instructions.
19160484Sobrien
19260484SobrienTue Dec  2 10:26:16 1997  Nick Clifton  <nickc@cygnus.com>
19360484Sobrien
19460484Sobrien	* coff-arm.c (TARGET_UNDERSCORE): Revert back to '_'
19560484Sobrien	(USER_LABEL_PREFIX): Revert back to '_'
19660484Sobrien
19760484Sobrien	* config.bfd (targ_cpu): Add support for Thumb target.
19860484Sobrien
19960484SobrienMon Dec  1 20:24:18 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
20060484Sobrien
20160484Sobrien	* coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
20260484Sobrien	(get_symbol_value): Handle R_SH_SWITCH8.
20360484Sobrien	(sh_relax_delete_bytes): Likewise.
20460484Sobrien
20560484SobrienWed Nov 26 14:13:34 1997  Nick Clifton  <nickc@cygnus.com>
20660484Sobrien
20760484Sobrien	* coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
20860484Sobrien	gcc/config/arm/semi.h
20960484Sobrien
21060484Sobrien	* coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
21160484Sobrien	classes.
21260484Sobrien
21360484SobrienSun Nov 23 16:02:58 1997  Andrew Cagney  <cagney@b1.cygnus.com>
21460484Sobrien
21560484Sobrien	* freebsd.h (SWAP_MAGIC): Read magic number little and not big
21660484Sobrien 	endian.
21760484Sobrien
21860484SobrienWed Nov 26 09:30:37 1997  Nick Clifton  <nickc@cygnus.com>
21960484Sobrien
22060484Sobrien	* coffcode.h (coff_mkobject_hook): Only set private flags for non
22160484Sobrien	PE ARM ports.
22260484Sobrien
22360484SobrienTue Nov 25 15:33:23 1997  Richard Henderson  <rth@cygnus.com>
22460484Sobrien
22560484Sobrien	* binary.c (binary_set_section_contents): Also ignore NEVER_LOAD
22660484Sobrien	sections.
22760484Sobrien
22860484SobrienTue Nov 25 10:55:36 1997  Nick Clifton  <nickc@cygnus.com>
22960484Sobrien
23060484Sobrien	* coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not
23160484Sobrien	complain if inout and output formats differ.
23260484Sobrien
23360484SobrienTue Nov 25 11:26:27 1997  Ian Lance Taylor  <ian@cygnus.com>
23460484Sobrien
23560484Sobrien	* Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
23660484Sobrien	(BFD32_BACKENDS_CFILES): Remove tekhex.c.
23760484Sobrien	* Makefile.in: Rebuild.
23860484Sobrien	* aclocal.m4, configure, src/Makefile.in: Rebuild with current
23960484Sobrien	automake and autoconf.
24060484Sobrien
24160484Sobrien	* coff-arm.c (arm_allocate_interworking_sections): Fix typo
24260484Sobrien	(COFF_WITH_PR to COFF_WITH_PE).
24360484Sobrien
24460484SobrienMon Nov 24 15:47:49 1997  Nick Clifton  <nickc@cygnus.com>
24560484Sobrien
24660484Sobrien	* coff-arm.c: Make variables and some functions static, so that
24760484Sobrien	this file can be included in multiple object files.
24860484Sobrien	(coff_arm_bfd_final_link): Fix minor bug.
24960484Sobrien
25060484SobrienSat Nov 22 15:16:00 1997  Nick Clifton  <nickc@cygnus.com>
25160484Sobrien
25260484Sobrien	* coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
25360484Sobrien
25460484Sobrien	* coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
25560484Sobrien
25660484SobrienSat Nov 22 16:06:56 1997  Klaus Kaempf  <kkaempf@progis.de>
25760484Sobrien
25860484Sobrien	* evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
25960484Sobrien
26060484SobrienSat Nov 22 12:29:30 1997  Ian Lance Taylor  <ian@cygnus.com>
26160484Sobrien
26260484Sobrien	* sunos.c (sunos_add_one_symbol): When overriding a defined
26360484Sobrien	symbol, set it to undefined, not new.
26460484Sobrien
26560484Sobrien	* elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
26660484Sobrien	relocs.
26760484Sobrien
26860484SobrienFri Nov 21 14:14:22 1997  Richard Henderson  <rth@cygnus.com>
26960484Sobrien
27060484Sobrien	* coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
27160484Sobrien	(sh_relax_delete_bytes): Don't kill LABEL relocs.
27260484Sobrien
27360484SobrienMon Nov 17 15:08:38 1997  Jeffrey A Law  (law@cygnus.com)
27460484Sobrien
27560484Sobrien	* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
27660484Sobrien	(mn10300_elf_relax_section): Likewise.
27760484Sobrien
27860484SobrienSat Nov 15 15:36:07 1997  Fred Fish  <fnf@cygnus.com>
27960484Sobrien
28060484Sobrien	* peicode.h (coff_swap_aouthdr_in): Cast second arg of
28160484Sobrien	bfd_h_get_* calls to "bfd_byte *".
28260484Sobrien
28360484SobrienTue Nov 11 10:37:23 1997  Jeffrey A Law  (law@cygnus.com)
28460484Sobrien
28560484Sobrien	* elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
28660484Sobrien	"movm_stack_size".
28760484Sobrien	(mn10300_elf_relax_section): Include stack space for register saves
28860484Sobrien	in the imm8 field of a "call" instruction.
28960484Sobrien	(compute_function_info): Determine how much stack is allocated by
29060484Sobrien	the movm instruction.  Fix typo.
29160484Sobrien	(elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
29260484Sobrien
29360484SobrienMon Nov 10 14:32:40 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
29460484Sobrien
29560484Sobrien	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
29660484Sobrien	a version dependency could not be found.
29760484Sobrien
29860484SobrienTue Nov  4 12:05:56 1997  Klaus K"ampf  <kkaempf@progis.de>
29960484Sobrien
30060484Sobrien	* configure.com: Get version info from configure.in
30160484Sobrien
30260484SobrienFri Oct 24 11:15:58 1997  Jakub Jelinek  <jj@sunsite.mff.cuni.cz>
30360484Sobrien
30460484Sobrien	* elf64-sparc.c (sparc64_elf_merge_private_bfd_data):
30560484Sobrien	New function. Avoid mixing US1 and HAL R1 code.
30660484Sobrien	Set resulting memory ordering to the strongest one used.
30760484Sobrien	(sparc64_elf_object_p): Set bfd_mach correctly.
30860484Sobrien
30960484SobrienThu Oct 23 14:09:33 1997  Richard Henderson  <rth@cygnus.com>
31060484Sobrien
31160484Sobrien	* elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16.
31260484Sobrien	(sparc64_elf_check_relocs): Handle them.
31360484Sobrien	(sparc64_elf_relocate_section): Likewise.  Before emitting a dyn reloc,
31460484Sobrien	check alignment and transmute R_SPARC_x<->R_SPARC_UAx.
31560484Sobrien
31660484SobrienThu Oct 23 00:53:14 1997  Richard Henderson  <rth@dot.cygnus.com>
31760484Sobrien
31860484Sobrien	* configure.in (sparc*-*-linux*): Use trad-core and ...
31960484Sobrien	* hosts/sparclinux.h: New file.
32060484Sobrien
32160484SobrienThu Oct 23 00:25:29 1997  Richard Henderson  <rth@dot.cygnus.com>
32260484Sobrien
32360484Sobrien	* config.bfd (sparc64-*-linux*): New target.
32460484Sobrien
32560484Sobrien	* elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
32660484Sobrien	* elflink.c (_bfd_elf_create_got_section): Set .got alignment based
32760484Sobrien	on arch_size.
32860484Sobrien	(_bfd_elf_create_dynamic_sections): Likewise for .rel* sections.
32960484Sobrien	Set .plt alignment from new plt_alignment.
33060484Sobrien	* elflink.h (elf_link_create_dynamic_sections): Set version section
33160484Sobrien	alignment to LOG_FILE_ALIGN.
33260484Sobrien	* elfxx-target.h (elf_backend_plt_alignment): Provide default.
33360484Sobrien	(elfXX_bed): Init plt_alignment.
33460484Sobrien
33560484Sobrien	* elf64-sparc.c (sparc64_elf_check_relocs,
33660484Sobrien	sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections,
33760484Sobrien	sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol,
33860484Sobrien	sparc64_elf_finish_dynamic_sections): New functions.
33960484Sobrien	(sparc64_elf_howto_table): Fix a few name strings.
34060484Sobrien	(ELF_DYNAMIC_INTERPRETER): New definition.
34160484Sobrien	(sparc64_elf_relocate_section): Handle shared libraries.
34260484Sobrien
34360484Sobrien	* elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry,
34460484Sobrien	sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol):
34560484Sobrien	PLT definitions sparc64-linux originally choose.  These will go
34660484Sobrien	away soon in favour of the official abi definitions.
34760484Sobrien
34860484SobrienWed Oct 22 16:08:45 1997  Ian Lance Taylor  <ian@cygnus.com>
34960484Sobrien
35060484Sobrien	* coff-sh.c (coff_small_object_p): New static function.
35160484Sobrien	(coff_small_new_section_hook): New static function.
35260484Sobrien	(bfd_coff_small_swap_table): New static const structure.
35360484Sobrien	(coff_small_close_and_cleanup): Define.
35460484Sobrien	(coff_small_bfd_free_cached_info): Define.
35560484Sobrien	(coff_small_get_section_contents): Define.
35660484Sobrien	(coff_small_get_section_contents_in_window): Define.
35760484Sobrien	(shcoff_small_vec): New static structure.
35860484Sobrien	(shlcoff_small_vec): New static structure.
35960484Sobrien	* targets.c (bfd_target_vector): Add shcoff_small_vec and
36060484Sobrien	shlcoff_small_vec.
36160484Sobrien	* config.bfd (sh-*-elf*): Add shcoff_small_vec and
36260484Sobrien	shlcoff_small_vec to targ_selvecs.
36360484Sobrien	(sh-*-*): Likewise.
36460484Sobrien	* configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
36560484Sobrien	* configure: Rebuild.
36660484Sobrien
36760484SobrienMon Oct 20 15:01:27 1997  Klaus K"ampf  <kkaempf@progis.de>
36860484Sobrien
36960484Sobrien	* evax-egsd.c: Weak symbols are global.
37060484Sobrien
37160484Sobrien	* evax-emh.c: Use proper casts.
37260484Sobrien
37360484Sobrien	* evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
37460484Sobrien
37560484Sobrien	* evax-egsd.c: Section names and symbols have different
37660484Sobrien	length restrictions. Add length parameter to
37760484Sobrien	_bfd_evax_length_hash_symbol.
37860484Sobrien	* evax-etir.c: Likewise.
37960484Sobrien	* evax-misc.c (_bfd_evax_length_hash_symbol): Add length
38060484Sobrien	parameter.
38160484Sobrien	* evax.h (EOBJ_S_C_SECSIZ): Define.
38260484Sobrien
38360484Sobrien	* evax-alpha.c: Remove duplicate test.
38460484Sobrien
38560484Sobrien	* evax-emh.c: SYS$ functions are upper-case.
38660484Sobrien
38760484Sobrien	* evax-egsd.c: Create separate sections for common symbols.
38860484Sobrien	* evax-etir.c: Don't output common section.
38960484Sobrien	* evax.h: Bump up section count.
39060484Sobrien
39160484Sobrien	* configure.com: Use 64bit integers with DEC C.
39260484Sobrien
39360484Sobrien	* evax-egsd.c: Make section flags dec c compatible.
39460484Sobrien
39560484SobrienMon Oct 20 09:38:31 1997  Jeffrey A Law  (law@cygnus.com)
39660484Sobrien
39760484Sobrien	* som.c (normalize): Delete function.
39860484Sobrien	(som_bfd_ar_write_symbol_stuff): New parameter elength.  All callers
39960484Sobrien	changed.  Use passed in elength to determine size of the extended
40060484Sobrien	name table instead of computing it again.
40160484Sobrien
40260484SobrienSun Oct 19 23:36:21 1997  Jim Wilson  <wilson@cygnus.com>
40360484Sobrien
40460484Sobrien	* peicode.h (coff_swap_scnhdr_out): Use |= not = to set
40560484Sobrien	IMAGE_SCN_MEM_READ for an unrecognized section.
40660484Sobrien
40760484SobrienSun Oct 19 21:04:56 1997  Jeffrey A Law  (law@cygnus.com)
40860484Sobrien
40960484Sobrien	* som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
41060484Sobrien	'/' in the extended name table.
41160484Sobrien
41260484SobrienFri Oct 17 00:04:13 1997  Richard Henderson  <rth@cygnus.com>
41360484Sobrien
41460484Sobrien	* elflink.h (elf_link_assign_sym_version): For explicitly versioned
41560484Sobrien	symbols, check globals list before matching on locals.
41660484Sobrien
41760484SobrienThu Oct 16 08:17:06 1997  Michael Meissner  <meissner@cygnus.com>
41860484Sobrien
41960484Sobrien	* peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
42060484Sobrien	patch.
42160484Sobrien
42260484SobrienWed Oct 15 13:45:10 1997  Ian Lance Taylor  <ian@cygnus.com>
42360484Sobrien
42460484Sobrien	* peicode.h (pe_mkobject_hook): Set DLL flag.
42560484Sobrien	(pe_bfd_copy_private_bfd_data): Copy DLL flag.
42660484Sobrien
42760484Sobrien	* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
42860484Sobrien	for .stab* sections.  Replace strlen of constant strings with
42960484Sobrien	number.
43060484Sobrien
43160484SobrienTue Oct 14 15:42:45 1997  Richard Henderson  <rth@cygnus.com>
43260484Sobrien
43360484Sobrien	* elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
43460484Sobrien	merge got and reloc entries from ind syms to their target.
43560484Sobrien	(elf64_alpha_always_size_sections): Call it.
43660484Sobrien	(elf64_alpha_check_relocs): Operate on the target of indirect symbols.
43760484Sobrien	(elf64_alpha_can_merge_gots): Likewise.
43860484Sobrien	(elf64_alpha_merge_gots): Likewise.
43960484Sobrien
44060484Sobrien	* elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
44160484Sobrien	as it is insufficient to handle the relocation changes as well.
44260484Sobrien
44360484SobrienMon Oct 13 23:10:08 1997  Richard Henderson  <rth@cygnus.com>
44460484Sobrien
44560484Sobrien	* elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
44660484Sobrien	relocs for symbols in shlibs that have been forced local.
44760484Sobrien	(elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
44860484Sobrien
44960484SobrienMon Oct 13 21:24:04 1997  Richard Henderson  <rth@cygnus.com>
45060484Sobrien
45160484Sobrien	* elf64-alpha.c (elf64_alpha_relocate_section): Use the
45260484Sobrien	got_enties of the default symbol for the default versioned
45360484Sobrien	symbol.  Patch from hjl@gnu.ai.mit.edu, modified not to use
45460484Sobrien	alloca in the loop.
45560484Sobrien
45660484SobrienMon Oct 13 17:37:37 1997  Nick Clifton  <nickc@cygnus.com>
45760484Sobrien
45860484Sobrien	* elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom
45960484Sobrien	24 bits of the PC when computing a PC relative relocation.
46060484Sobrien
46160484SobrienFri Oct 10 16:01:30 1997  Nick Clifton  <nickc@cygnus.com>
46260484Sobrien
46360484Sobrien	* elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate):
46460484Sobrien	Correct value for maximum positive 22 bit PC relative relocation.
46560484Sobrien	(v850_elf_final_link_relocate):  Prevent overflow from HI16_S and
46660484Sobrien	HI_16 relocations.  Correct bit adjustment in TDA offsets.
46760484Sobrien
46860484SobrienThu Oct  9 16:43:39 1997  Doug Evans  <dje@canuck.cygnus.com>
46960484Sobrien
47060484Sobrien	* elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
47160484Sobrien	(sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
47260484Sobrien
47360484SobrienWed Oct  8 11:38:45 1997  Richard Henderson  <rth@cygnus.com>
47460484Sobrien
47560484Sobrien	* elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
47660484Sobrien	be LOG_FILE_ALIGN.
47760484Sobrien
47860484SobrienWed Oct  8 11:36:00 1997  Richard Henderson  <rth@cygnus.com>
47960484Sobrien
48060484Sobrien	* config.bfd: Missed one alpha* change.
48160484Sobrien
48260484SobrienTue Oct  7 13:00:17 1997  Doug Evans  <dje@canuck.cygnus.com>
48360484Sobrien
48460484Sobrien	* elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support.
48560484Sobrien	* elf64-sparc.c (SPARC64_OLD_RELOCS): Undef.
48660484Sobrien	(MINUS_ONE): New macro.
48760484Sobrien	(sparc_elf_notsup_reloc): New function.
48860484Sobrien	(sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10,
48960484Sobrien	H44,M44,L44,REGISTER.
49060484Sobrien	(sparc_reloc_map): Likewise.  Map BFD_RELOC_CTOR to R_SPARC_64.
49160484Sobrien	(init_insn_reloc): New function.
49260484Sobrien	(sparc_elf_wdisp16_reloc): Use it.
49360484Sobrien	(sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10.
49460484Sobrien
49560484SobrienTue Oct  7 11:40:37 1997  Ian Lance Taylor  <ian@cygnus.com>
49660484Sobrien
49760484Sobrien	* som.c (som_construct_extended_name_table): Remove static
49860484Sobrien	function, and define as macro instead.
49960484Sobrien
50060484SobrienFri Oct  3 14:02:17 1997  Richard Henderson  <rth@cygnus.com>
50160484Sobrien
50260484Sobrien	* config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
50360484Sobrien	recognizes alphaev5 etc.
50460484Sobrien	* configure.host: Likewise.
50560484Sobrien
50660484SobrienFri Oct  3 11:23:47 1997  Ian Lance Taylor  <ian@cygnus.com>
50760484Sobrien
50860484Sobrien	Make ld -s work on AIX:
50960484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Don't create the .debug
51060484Sobrien	section if we are stripping.
51160484Sobrien	(bfd_xcoff_size_dynamic_sections): Don't set the .debug section
51260484Sobrien	size if we are stripping.
51360484Sobrien	(_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos,
51460484Sobrien	and don't write out relocs, if we are stripping.
51560484Sobrien	(xcoff_link_input_bfd): Don't set up reloc if we are stripping.
51660484Sobrien	(xcoff_write_global_symbol): Don't write out symbol or reloc if we
51760484Sobrien	are stripping.
51860484Sobrien
51960484Sobrien	* configure.in: Don't include elf.lo again for ELF targets; it's
52060484Sobrien	always in the library anyhow.
52160484Sobrien	* configure: Rebuild.
52260484Sobrien
52360484Sobrien	* bfd-in2.h: Rebuild.
52460484Sobrien
52560484Sobrien	* elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
52660484Sobrien	char *, when calling bfd_get_32 and bfd_put_32.
52760484Sobrien	* sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
52860484Sobrien	when calling strcpy.
52960484Sobrien
53060484SobrienThu Oct  2 16:15:50 1997  Doug Evans  <dje@canuck.cygnus.com>
53160484Sobrien
53260484Sobrien	* reloc.c (bfd_check_overflow): New function.
53360484Sobrien	(bfd_perform_relocation, bfd_install_relocation): Use it.
53460484Sobrien	(BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
53560484Sobrien	(BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
53660484Sobrien	* bfd-in2.h: Regenerate.
53760484Sobrien	* libbfd.h: Regenerate.
53860484Sobrien
53960484SobrienThu Oct  2 13:17:18 1997  Ian Lance Taylor  <ian@cygnus.com>
54060484Sobrien
54160484Sobrien	* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
54260484Sobrien	unrecognized section.  From Jon Thackray <jont@harlequin.co.uk>.
54360484Sobrien
54460484SobrienWed Oct  1 14:03:44 1997  Ian Lance Taylor  <ian@cygnus.com>
54560484Sobrien
54660484Sobrien	* Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
54760484Sobrien 	(stmp-bfd-h): Rename from stmp-bfd.h.
54860484Sobrien 	(BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
54960484Sobrien	($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
55060484Sobrien	(stmp-bin2-h): New target.
55160484Sobrien	($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
55260484Sobrien	(stmp-lbfd-h): New target.
55360484Sobrien	($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
55460484Sobrien	(stmp-lcoff-h): New target.
55560484Sobrien	(CLEANFILES): Change stmp-bfd.h to stmp-bfd-h.  Add stmp-bin2.h,
55660484Sobrien	stmp-lbfd-h, and stmp-lcoff-h.
55760484Sobrien	* Makefile.in: Rebuild.
55860484Sobrien
55960484Sobrien	* configure.in: Use a diversion to set enable_shared before the
56060484Sobrien	arguments are parsed.
56160484Sobrien	* configure: Rebuild.
56260484Sobrien
56360484SobrienTue Sep 30 14:18:32 1997  Doug Evans  <dje@canuck.cygnus.com>
56460484Sobrien
56560484Sobrien	* elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
56660484Sobrien	renamed to R_SPARC_UNUSED_42.
56760484Sobrien	(sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
56860484Sobrien	* elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
56960484Sobrien	renamed to R_SPARC_UNUSED_42.
57060484Sobrien	(sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
57160484Sobrien	* reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete.
57260484Sobrien	* bfd-in2.h: Regenerated.
57360484Sobrien	* libbfd.h: Regenerated.
57460484Sobrien
57560484SobrienThu Sep 25 12:15:02 1997  Ian Lance Taylor  <ian@cygnus.com>
57660484Sobrien
57760484Sobrien	* elflink.h (elf_merge_symbol): Don't check the hash creator until
57860484Sobrien	after we have set *sym_hash.
57960484Sobrien
58060484SobrienWed Sep 24 16:52:28 1997  Joel Sherrill  <joel@oarcorp.com>
58160484Sobrien
58260484Sobrien        * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
58360484Sobrien
58460484SobrienWed Sep 24 11:27:23 1997  Ian Lance Taylor  <ian@cygnus.com>
58560484Sobrien
58660484Sobrien	* Makefile.am (libbfd_a_SOURCES): Define.
58760484Sobrien	* Makefile.in: Rebuild.
58860484Sobrien
58960484Sobrien	* configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
59060484Sobrien	* aclocal.m4: Rebuild with new libtool.
59160484Sobrien	* configure: Rebuild.
59260484Sobrien
59360484SobrienTue Sep 23 19:03:13 1997  Ian Lance Taylor  <ian@cygnus.com>
59460484Sobrien
59560484Sobrien	* elf.c (map_sections_to_segments): Even if we are not demand
59660484Sobrien	paged, don't put a loadable section after a nonloadable section.
59760484Sobrien	(assign_file_positions_for_segments): Increment the file offset
59860484Sobrien	for a section with contents, even if it is not loadable.
59960484Sobrien
60060484SobrienSun Sep 21 11:03:24 1997  Nick Clifton  <nickc@cygnus.com>
60160484Sobrien
60260484Sobrien	* elf32-v850.c (v850_elf_final_link_relocate): Add return code
60360484Sobrien	indicating that __ctbp could not be found.
60460484Sobrien
60560484SobrienThu Sep 18 15:04:57 1997  Nick Clifton  <nickc@cygnus.com>
60660484Sobrien
60760484Sobrien	* elf32-v850.c (v850_elf_check_relocs): Improve error message.
60860484Sobrien
60960484SobrienWed Sep 17 09:54:51 1997  Nick Clifton  <nickc@cygnus.com>
61060484Sobrien
61160484Sobrien	* elf32-v850.c (v850_elf_final_link_relocate, v850_elf_reloc,
61260484Sobrien	v850_elf_check_relocs, v850_elf_reloc_map, v850_elf_howto_table):
61360484Sobrien	Add support for the CALLT relocs.
61460484Sobrien
61560484Sobrien	* reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
61660484Sobrien	BFD_RELOC_V850_CALLT_16_16_OFFSET.
61760484Sobrien
61860484Sobrien	* elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
61960484Sobrien	relocations against non-existant symbols.
62060484Sobrien
62160484SobrienTue Sep 16 14:20:27 1997  Nick Clifton  <nickc@cygnus.com>
62260484Sobrien
62360484Sobrien	* reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
62460484Sobrien
62560484Sobrien	* elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate,
62660484Sobrien	v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16
62760484Sobrien	bit reloc in the tiny data area.
62860484Sobrien
62960484SobrienMon Sep 15 11:27:36 1997  Ken Raeburn  <raeburn@cygnus.com>
63060484Sobrien
63160484Sobrien	Merged changes from Martin Hunt:
63260484Sobrien
63360484Sobrien	* elf32-d30v.c (bfd_elf_d30v_reloc): Change pc-relative relocs
63460484Sobrien	over 2^32 bytes to be absolute.  Needed because D30V PC doesn't
63560484Sobrien	necessarily wrap.
63660484Sobrien
63760484Sobrien	* reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
63860484Sobrien	BFD_RELOC_D30V_9_PCREL_R): New relocs.
63960484Sobrien
64060484Sobrien	* elf32-d30v.c (bfd_elf_d30v_reloc_21): New function.
64160484Sobrien	Do 15 and 21 bit pc-relative relocations.
64260484Sobrien	* reloc.c (BFD_RELOC_D30V_15_PCREL_R, BFD_RELOC_D30V_21_PCREL_R):
64360484Sobrien	New relocations.
64460484Sobrien
64560484Sobrien	* elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
64660484Sobrien	added to the relocation, not or'd.
64760484Sobrien
64860484SobrienWed Sep 10 15:17:25 1997  Nick Clifton  <nickc@cygnus.com>
64960484Sobrien
65060484Sobrien	* elf32-v850.c (v850_elf_reloc): Remove spurious error message.
65160484Sobrien
65260484SobrienWed Sep 10 11:17:50 1997  Andrew Cagney  <cagney@b1.cygnus.com>
65360484Sobrien
65460484Sobrien	* archures.c (bfd_default_scan): Use strcasecmp.
65560484Sobrien	(bfd_default_scan): Test for match with arch_name + ":" +
65660484Sobrien 	printable_name.
65760484Sobrien	(bfd_default_scan): Test for match with printable_name - ":".
65860484Sobrien	(bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special
65960484Sobrien 	cases.  Each implements their own scan function.
66060484Sobrien	(bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400
66160484Sobrien 	special cases.  Since info->mach == 0.  The test mach == number
66260484Sobrien 	fails.
66360484Sobrien	(bfd_arch_list): New function, return name of all the supported
66460484Sobrien 	architectures.
66560484Sobrien
66660484SobrienTue Sep  9 10:21:56 1997  Nick Clifton  <nickc@cygnus.com>
66760484Sobrien
66860484Sobrien	* elf32-v850.c (v850_elf_print_private_bfd_data): Break after
66960484Sobrien	decoding architecture.
67060484Sobrien	(v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit
67160484Sobrien	15 set.
67260484Sobrien
67360484SobrienSun Sep  7 12:25:22 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
67460484Sobrien
67560484Sobrien	* bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table.
67660484Sobrien
67760484SobrienThu Sep  4 09:44:10 1997  Ian Lance Taylor  <ian@cygnus.com>
67860484Sobrien
67960484Sobrien	* Makefile.am: Rebuild dependencies.
68060484Sobrien 	(ALL_MACHINES_CFILES): Add cpu-v850.c.
68160484Sobrien	(ALL_MACHINES_CFILES): Add elf32-v850.c.
68260484Sobrien	* Makefile.in: Rebuild.
68360484Sobrien
68460484Sobrien	* reloc.c: Remove extraneous commas from relocation entries.
68560484Sobrien	Remove BFD_RELOC_V850_16_PCREL.
68660484Sobrien	* bfd-in2.h: Rebuild.
68760484Sobrien
68860484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
68960484Sobrien	in sections named .tocbss rather than .bss.
69060484Sobrien
69160484SobrienWed Sep  3 11:23:23 1997  Nick Clifton  <nickc@cygnus.com>
69260484Sobrien
69360484Sobrien	* libbfd.h, bfd-in2.h, elf32-v850.c: Removed
69460484Sobrien	BFD_RELOC_V850_16_PCREL.
69560484Sobrien
69660484SobrienTue Sep  2 20:44:10 1997  Fred Fish  <fnf@cygnus.com>
69760484Sobrien
69860484Sobrien	* cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
69960484Sobrien	the same as C_EXT syms.
70060484Sobrien	(coff_link_add_symbols): Ditto.
70160484Sobrien	(_bfd_coff_link_input_bfd): Ditto.
70260484Sobrien	(_bfd_coff_write_task_globals): Add save_global_to_static.  Use
70360484Sobrien	it to preserve and restore state of global_to_static flag.
70460484Sobrien
70560484SobrienTue Sep  2 17:45:22 1997  Nick Clifton  <nickc@cygnus.com>
70660484Sobrien
70760484Sobrien	* elf32-v850.c (v850_elf_object_p): Set machine number based on
70860484Sobrien	bits in e_flags field rather than magic numbers.
70960484Sobrien	(v850_elf_final_write_processing, v850_elf_set_private_flags,
71060484Sobrien	v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data,
71160484Sobrien	v850_elf_print_private_bfd_data): New functions.
71260484Sobrien
71360484SobrienTue Sep  2 17:43:49 1997  Nick Clifton  <nickc@cygnus.com>
71460484Sobrien
71560484Sobrien	* elf.c (prep_headers): Remove V850E magic number.
71660484Sobrien	* elf.c (prep_headers): Remove V850EA magic number.
71760484Sobrien
71860484SobrienTue Sep  2 17:35:05 1997  Doug Evans  <dje@canuck.cygnus.com>
71960484Sobrien
72060484Sobrien	* cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
72160484Sobrien
72260484SobrienTue Sep  2 18:29:37 1997  Jeffrey A Law  (law@cygnus.com)
72360484Sobrien
72460484Sobrien	* elf-m10200.c (mn10200_elf_final_link_relocate): PC relative
72560484Sobrien	instructions are relative to the next instruction, not the
72660484Sobrien	current instruction.
72760484Sobrien	(mn10200_elf_relax_section): Similarly.
72860484Sobrien
72960484SobrienTue Sep  2 15:45:45 1997  Nick Clifton  <nickc@cygnus.com>
73060484Sobrien
73160484Sobrien	* cpu-v850.c: Use a macro to construct bfd_arch_info_type
73260484Sobrien	entries.
73360484Sobrien
73460484Sobrien	* reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace
73560484Sobrien	BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern
73660484Sobrien	specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET.
73760484Sobrien
73860484SobrienThu Aug 28 17:01:09 1997  Andrew Cagney  <cagney@b1.cygnus.com>
73960484Sobrien
74060484Sobrien	* cpu-v850.c: Remove "plain" from v850 printable name.
74160484Sobrien	(scan): Use strcasecmp.
74260484Sobrien
74360484Sobrien	* archures.c (bfd_mach_v850): Define.
74460484Sobrien
74560484Sobrien	* cpu-sh.c (scan_mach): Compare with table instead of hardwired to
74660484Sobrien 	just sh/SH, use strcasecmp.
74760484Sobrien	(arch_info_struct): Add entries for sh3 et.al.
74860484Sobrien
74960484Sobrien	* archures.c (bfd_mach_sh, ...): Define.
75060484Sobrien
75160484SobrienWed Aug 27 17:33:07 1997  Andrew Cagney  <cagney@b1.cygnus.com>
75260484Sobrien
75360484Sobrien	* archures.c (bfd_archures_list): Always NULL terminate the list.
75460484Sobrien
75560484SobrienTue Aug 26 17:26:51 1997  Ian Lance Taylor  <ian@cygnus.com>
75660484Sobrien
75760484Sobrien	* Makefile.am: Rebuild dependencies.
75860484Sobrien	(ALL_MACHINES_CFILES): Add cpu-arc.c.
75960484Sobrien	(ALL_MACHINES_CFILES): Add elf32-arc.c.
76060484Sobrien	(elf32-arc.lo): Remove explicit dependency.
76160484Sobrien	* Makefile.in: Rebuild.
76260484Sobrien
76360484Sobrien	* acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD.
76460484Sobrien	* doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT.
76560484Sobrien	* aclocal.m4, configure, Makefile.in, doc/Makefile.in: Rebuild.
76660484Sobrien
76760484SobrienMon Aug 25 16:14:34 1997  Christopher Provenzano  <proven@cygnus.com>
76860484Sobrien
76960484Sobrien	* configure: Rebuild with latest devo autoconf for NT support
77060484Sobrien
77160484SobrienMon Aug 25 16:11:04 1997  Nick Clifton  <nickc@cygnus.com>
77260484Sobrien
77360484Sobrien	* cpu-arm.c (compatible): If B is a default type, return A.
77460484Sobrien
77560484SobrienMon Aug 25 15:35:46 1997  Nick Clifton  <nickc@cygnus.com>
77660484Sobrien
77760484Sobrien	* cpu-v850.c (scan): New function.
77860484Sobrien	(arch_info_struct): New structure.
77960484Sobrien	(bfd_v850_arch): Add link into arch_info_structure.
78060484Sobrien
78160484Sobrien	* config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
78260484Sobrien	architecture.
78360484Sobrien
78460484Sobrien	* elf32-v850.c (v850_elf_object_p): New function.
78560484Sobrien
78660484Sobrien	* archures.c (bfd_mach_v850e): Machine value for v850e.
78760484Sobrien
78860484Sobrien	* bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
78960484Sobrien
79060484Sobrien	* elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
79160484Sobrien	number.
79260484Sobrien
79360484Sobrien	* elf.c (prep_headers): Add support for v850e machine number.
79460484Sobrien
79560484Sobrien	* archures.c (bfd_mach_v850ea): Machine value for v850ea.
79660484Sobrien
79760484Sobrien	* bfd-in2.h (bfd_mach_v850ea): Machine value for v850ea.
79860484Sobrien
79960484Sobrien	* elf32-v850.c (ELF_MACHINE_CODE): Default to v850ea machine
80060484Sobrien	number.
80160484Sobrien
80260484Sobrien	* elf.c (prep_headers): Add support for v850ea machine number.
80360484Sobrien
80460484SobrienMon Aug 25 14:07:33 1997  Ian Lance Taylor  <ian@cygnus.com>
80560484Sobrien
80660484Sobrien	* syms.c (_bfd_stab_section_find_nearest_line): Clear the
80760484Sobrien 	cached_stab field if the offset prevents us from using the cache.
80860484Sobrien
80960484SobrienMon Aug 25 12:08:13 1997  Ian Lance Taylor  <ian@cygnus.com>
81060484Sobrien
81160484Sobrien	* aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
81260484Sobrien	flags.
81360484Sobrien	* aout-arm.c (aout_arm_little_vec): Likewise.
81460484Sobrien	(aout_arm_big_vec): Likewise.
81560484Sobrien	* bout.c (b_out_vec_big_host): Likewise.
81660484Sobrien	(b_out_vec_little_host): Likewise.
81760484Sobrien	* mipsbsd.c (aout_mips_little_vec): Likewise.
81860484Sobrien	(aout_mips_big_vec): Likewise.
81960484Sobrien
82060484SobrienTue Aug 19 10:09:10 1997  Fred Fish  <fnf@cygnus.com>
82160484Sobrien
82260484Sobrien	* coff-tic80.c (COFF_ALIGN_IN_SFLAGS): Define to 1.
82360484Sobrien	* coffcode.h (styp_to_sec_flags): Ignore incoming STYP_INFO
82460484Sobrien	bit in s_flags if COFF_ALIGN_IN_S_FLAGS is defined.
82560484Sobrien
82660484SobrienTue Aug 19 08:47:17 1997  Fred Fish  <fnf@cygnus.com>
82760484Sobrien
82860484Sobrien	* coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
82960484Sobrien	(GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define.
83060484Sobrien	* coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define.
83160484Sobrien	* coffcode.h (coff_set_alignment_hook): Conditionally compile in if
83260484Sobrien	COFF_ALIGN_IN_SECTION_HEADER is defined.  Convert alignment to power
83360484Sobrien	of two for I960 only.
83460484Sobrien	* coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO,
83560484Sobrien	PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide
83660484Sobrien	default definitions.
83760484Sobrien	(coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC,
83860484Sobrien	GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN.
83960484Sobrien	(coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN.
84060484Sobrien	* Makefile.in (coff-tic80.o): Depends upon coffswap.h.
84160484Sobrien	* coff-tic80.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
84260484Sobrien	(GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Define
84360484Sobrien	* coffcode.h (coff_write_object_contents): Set alignment field in
84460484Sobrien 	section header for TIC80COFF files.
84560484Sobrien
84660484SobrienMon Aug 18 11:36:19 1997  Nick Clifton  <nickc@cygnus.com>
84760484Sobrien
84860484Sobrien	* elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map,
84960484Sobrien	v850_elf_check_relocs, v850_elf_reloc,
85060484Sobrien	v850_elf_final_link_relocate):  Add support for
85160484Sobrien	BFD_RELOC_V850_16_PCREL relocation.
85260484Sobrien
85360484Sobrien	* reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
85460484Sobrien	relocation.
85560484Sobrien
85660484Sobrien	* libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
85760484Sobrien
85860484Sobrien	* bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
85960484Sobrien
86060484SobrienMon Aug 18 11:33:56 1997  Nick Clifton  <nickc@cygnus.com>
86160484Sobrien
86260484Sobrien	* cpu-v850e: New file.
86360484Sobrien
86460484Sobrien	* elf.c (prep_headers): Add support for v850e target.
86560484Sobrien
86660484Sobrien	* bfd-in2.h (bfd_architecture): Add support for v850e target.
86760484Sobrien
86860484Sobrien	* config.bfd: Add support for v850e target.
86960484Sobrien
87060484Sobrien	* archures.c: Add support for v850e target.
87160484Sobrien
87260484SobrienMon Aug 18 11:33:56 1997  Nick Clifton  <nickc@cygnus.com>
87360484Sobrien
87460484Sobrien	* cpu-v850ea: New file.
87560484Sobrien
87660484Sobrien	* elf.c (prep_headers): Add support for v850ea target.
87760484Sobrien
87860484Sobrien	* bfd-in2.h (bfd_architecture): Add support for v850ea target.
87960484Sobrien
88060484Sobrien	* config.bfd: Add support for v850ea target.
88160484Sobrien
88260484Sobrien	* archures.c: Add support for v850ea target.
88360484Sobrien
88460484SobrienFri Aug 15 12:01:28 1997  Ian Lance Taylor  <ian@cygnus.com>
88560484Sobrien
88660484Sobrien	* coffgen.c (coff_find_nearest_line): Correctly handle the offset
88760484Sobrien	argument as section relative, rather than an absolute address.
88860484Sobrien	From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>.
88960484Sobrien
89060484SobrienFri Aug 15 04:58:02 1997  Doug Evans  <dje@canuck.cygnus.com>
89160484Sobrien
89260484Sobrien	* config.bfd (arc-*-elf*): Add.
89360484Sobrien	* configure.in (bfd_elf32_{little,big}arc_vec): Add.
89460484Sobrien	* configure: Rebuild.
89560484Sobrien	* Makefile.am (ALL_MACHINES): Add cpu-arc.lo.
89660484Sobrien	(BFD32_BACKENDS): Add elf32-arc.lo.
89760484Sobrien	(cpu-arc.lo,elf32-arc.lo): Add rules for.
89860484Sobrien	* Makefile.in: Rebuild.
89960484Sobrien	* archures.c (architecture list): Add bfd_arch_arc.
90060484Sobrien	(bfd_archures_list): Add bfd_arc_arch.
90160484Sobrien	(bfd_mach_arc_base): Define.
90260484Sobrien	* reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add.
90360484Sobrien	* targets.c (bfd_elf32_{little,big}arc_vec): Declare.
90460484Sobrien	(bfd_target_vect): Add them.
90560484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
90660484Sobrien	* cpu-arc.c, elf32-arc.c: New files.
90760484Sobrien	* elf.c (pre_headers): Recognize bfd_arch_arc.
90860484Sobrien
90960484SobrienTue Aug 12 11:45:18 1997  Ian Lance Taylor  <ian@cygnus.com>
91060484Sobrien
91160484Sobrien	* aoutx.h (NAME(aout,final_link)): If no symbols, make sure the
91260484Sobrien	data section is correctly rounded to a page in the file.
91360484Sobrien
91460484SobrienMon Aug 11 12:45:43 1997  Ian Lance Taylor  <ian@cygnus.com>
91560484Sobrien
91660484Sobrien	* aoutx.h (NAME(aout,final_link)): Don't emit the string table if
91760484Sobrien	there are no symbols.
91860484Sobrien
91960484SobrienSun Aug 10 14:45:56 1997  Ian Lance Taylor  <ian@cygnus.com>
92060484Sobrien
92160484Sobrien	* coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V
92260484Sobrien	file system 14 character limit.
92360484Sobrien	* Makefile.am, configure.in: Corresponding changes.
92460484Sobrien	* Makefile.in, configure: Rebuild.
92560484Sobrien
92660484SobrienFri Aug  8 18:34:36 1997  Ian Lance Taylor  <ian@cygnus.com>
92760484Sobrien
92860484Sobrien	* Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
92960484Sobrien	Rebuild dependencies.
93060484Sobrien	* Makefile.in: Rebuild.
93160484Sobrien
93260484SobrienWed Aug  6 18:56:51 1997  Ian Lance Taylor  <ian@cygnus.com>
93360484Sobrien
93460484Sobrien	* Makefile.am (docdir): Define.
93560484Sobrien	* Makefile.in: Rebuild.
93660484Sobrien
93760484SobrienTue Aug  5 23:05:03 1997  Ian Lance Taylor  <ian@cygnus.com>
93860484Sobrien
93960484Sobrien	* configure: Rebuild with autoconf 2.12.1.
94060484Sobrien
94160484SobrienMon Aug  4 12:00:35 1997  Ian Lance Taylor  <ian@cygnus.com>
94260484Sobrien
94360484Sobrien	* aclocal.m4, configure: Rebuild with new automake patches.
94460484Sobrien
94560484SobrienSun Aug  3 08:15:12 1997  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
94660484Sobrien
94760484Sobrien	* rs6000-core.c (make_bfd_asection):  New function to add a section
94860484Sobrien	to the core file bfd.
94960484Sobrien	(rs6000coff_core_p):  Use make_bfd_asection to add the core file
95060484Sobrien	sections.
95160484Sobrien	Use BFD routines to seek, read and stat the core file.
95260484Sobrien	Handle .data sections from loaded objects and anonymously mmapped
95360484Sobrien	regions, these are available in AIX 4 core files.
95460484Sobrien
95560484SobrienFri Aug  1 12:58:32 1997  Ian Lance Taylor  <ian@cygnus.com>
95660484Sobrien
95760484Sobrien	* configure.in: Set enable_shared before AM_PROG_LIBTOOL.
95860484Sobrien	* acinclude.m4: Move acmacros.m4 in here.  Remove AM_PROG_LIBTOOL
95960484Sobrien	copy; use a patches libtool instead.
96060484Sobrien	* acmacros.m4: Remove.
96160484Sobrien	* Makefile.in, aclocal.m4, configure: Rebuild.
96260484Sobrien
96360484SobrienThu Jul 31 19:55:36 1997  Ian Lance Taylor  <ian@cygnus.com>
96460484Sobrien
96560484Sobrien	* Makefile.am: New file, based on old Makefile.in.
96660484Sobrien	* acmacros.m4: New file, copied from old aclocal.m4.
96760484Sobrien	* acinclude.m4: New file.
96860484Sobrien	* configure.in: Call AM_PROG_LIBTOOL.  Remove shared library
96960484Sobrien	handling; now handled by libtool.  Replace AC_CONFIG_HEADER with
97060484Sobrien	AM_CONFIG_HEADER.  Replace AC_PROG_INSTALL with AM_PROG_INSTALL.
97160484Sobrien	Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT.  Change all
97260484Sobrien	.o files to .lo.  Remove stamp-h handling in AC_OUTPUT.
97360484Sobrien	* acconfig.h: Mention PACKAGE and VERSION.
97460484Sobrien	* stamp-h.in: New file.
97560484Sobrien	* dep-in.sed: Change .o to .lo.
97660484Sobrien	* Makefile.in: Now built with automake.
97760484Sobrien	* aclocal.m4: Now built with aclocal.
97860484Sobrien	* config.in, configure: Rebuild.
97960484Sobrien	* VERSION: Remove.
98060484Sobrien
98160484SobrienThu Jul 31 12:09:20 1997  Geoff Keating  <geoffk@ozemail.com.au>
98260484Sobrien
98360484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL
98460484Sobrien 	if there is only a relocation to a read-only but not allocatable
98560484Sobrien 	section (like .stab).
98660484Sobrien	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
98760484Sobrien	* elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
98860484Sobrien	* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
98960484Sobrien	* elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
99060484Sobrien	* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
99160484Sobrien
99260484Sobrien	* elf32-ppc.c (ppc_elf_howto_raw): Correct various comments.
99360484Sobrien	(ppc_elf_create_linker_section): These sections are not
99460484Sobrien	created by the linker (that is, they are created by the user
99560484Sobrien	putting data in them). In particular, they can be the source
99660484Sobrien	and target of relocations.
99760484Sobrien	(ppc_elf_adjust_dynamic_symbol): Check postcondition of
99860484Sobrien 	bfd_elf32_link_record_dynamic_symbol.  Align 16-byte common
99960484Sobrien 	objects (for instance, 'long double') to 16-byte boundaries.
100060484Sobrien	(ppc_elf_size_dynamic_sections): Make the code that generates
100160484Sobrien	section symbols exactly the same as for sparc, reducing the
100260484Sobrien	number of section symbols output.
100360484Sobrien	(ppc_elf_check_relocs): Check postcondition of
100460484Sobrien	bfd_elf32_link_record_dynamic_symbol.  Make default case the
100560484Sobrien	same as corresponding code for sparc, fixing bug involving
100660484Sobrien	.rela.stabs.
100760484Sobrien	(ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols
100860484Sobrien 	forced to be local because of versioning (by replicating
100960484Sobrien 	corresponding change in sparc).  Treat R_PPC_RELATIVE RELA relocs
101060484Sobrien 	as usual in ELF, not as pseudo-REL relocs (as the sparc linker
101160484Sobrien 	does).
101260484Sobrien	(ppc_elf_relocate_section): Add handy debugging code for when
101360484Sobrien 	assertion fails.  Add some more 'symbol made local because of
101460484Sobrien 	versioning' cases.
101560484Sobrien
101660484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
101760484Sobrien	processing a GOT relocation as required by ABI.
101860484Sobrien
101960484SobrienWed Jul 30 21:30:35 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
102060484Sobrien
102160484Sobrien	* elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
102260484Sobrien	version info if this symbol came from a dynamic object.
102360484Sobrien	(elf_link_add_object_symbols): Set the version info of a symbol
102460484Sobrien	only if the object actually contains version definitions and
102560484Sobrien	defines this symbol.
102660484Sobrien
102760484SobrienMon Jul 28 18:07:43 1997  Rob Savoye  <rob@chinadoll.cygnus.com>
102860484Sobrien
102960484Sobrien	* aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
103060484Sobrien        * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
103160484Sobrien        win32 dependencies.
103260484Sobrien        * configure: Regenerated with autoconf 2.12.
103360484Sobrien        * doc/Makefile.in: Add $(EXEEXT) to chew executable.
103460484Sobrien
103560484SobrienMon Jul 28 02:50:29 1997  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
103660484Sobrien
103760484Sobrien	* rs6000-core.c (rs6000coff_core_p):  If CORE_TRUNC is set, print
103860484Sobrien	a warning rather than returning an error.
103960484Sobrien
104060484SobrienSun Jul 27 19:54:14 1997  Felix Lee  <flee@cygnus.com>
104160484Sobrien
104260484Sobrien	* coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
104360484Sobrien
104460484SobrienFri Jul 25 14:50:08 1997  Felix Lee  <flee@cygnus.com>
104560484Sobrien
104660484Sobrien	* cisco-core.c: define signals for wingdb.
104760484Sobrien
104860484SobrienFri Jul 25 16:27:07 1997  Ian Lance Taylor  <ian@cygnus.com>
104960484Sobrien
105060484Sobrien	* ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
105160484Sobrien	the same number of aux entries.
105260484Sobrien
105360484SobrienFri Jul 25 08:22:15 1997  Jeffrey A Law  (law@cygnus.com)
105460484Sobrien
105560484Sobrien	* som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
105660484Sobrien	difference of two symbols if the relocation size is 32 bits.
105760484Sobrien	(som_write_fixups): Handle R_DATA_EXPR.
105860484Sobrien
105960484SobrienWed Jul 23 16:08:02 1997  Ian Lance Taylor  <ian@cygnus.com>
106060484Sobrien
106160484Sobrien	* coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
106260484Sobrien	its value if COFF_WITH_PE is defined.
106360484Sobrien
106460484SobrienTue Jul 22 17:19:45 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
106560484Sobrien
106660484Sobrien	* coff-stubgo32.c: New file.
106760484Sobrien	* go32stub.h: New file.
106860484Sobrien	* coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h.
106960484Sobrien	* coffswap.h (coff_swap_filehdr_in): Invoke
107060484Sobrien	COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
107160484Sobrien	are defined.
107260484Sobrien	(coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
107360484Sobrien	COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
107460484Sobrien	(coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
107560484Sobrien	COFF_ADJUST_AUX_IN_POST if they are defined.
107660484Sobrien	(coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
107760484Sobrien	COFF_ADJUST_AUX_OUT_POST if they are defined.
107860484Sobrien	(coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
107960484Sobrien	COFF_ADJUST_SCNHDR_IN_POST if they are defined.
108060484Sobrien	(coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
108160484Sobrien	COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
108260484Sobrien	* targets.c (go32stubbedcoff_vec): Declare.
108360484Sobrien	(bfd_target_vector): Add go32stubbedcoff_vec.
108460484Sobrien	* configure.in (go32coff_vec): New target vector.
108560484Sobrien	(go32stubbedcoff_vec): Likewise.
108660484Sobrien	* config.bfd (i[3456]86-*-msdosdjgpp*): New target.
108760484Sobrien	(i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
108860484Sobrien	* Makefile.in: Rebuild dependencies.
108960484Sobrien 	(BFD32_BACKENDS): Add coff-stubgo32.o.
109060484Sobrien	(BFD32_BACKENDS_CFILES): Add coff-stubgo32.c.
109160484Sobrien	(HFILES): Add go32stub.h.
109260484Sobrien
109360484SobrienTue Jul 22 15:09:12 1997  Ian Lance Taylor  <ian@cygnus.com>
109460484Sobrien
109560484Sobrien	* configure.in: Check for fdopen.
109660484Sobrien	* configure, config.in: Rebuild.
109760484Sobrien	* opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
109860484Sobrien	__GO32__.  Reindent a bit.
109960484Sobrien
110060484SobrienSun Jul 20 20:05:20 1997  Ian Lance Taylor  <ian@cygnus.com>
110160484Sobrien
110260484Sobrien	* sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
110360484Sobrien	flag for newly created sections.
110460484Sobrien	(sunos_add_dynamic_symbols): Don't discard newly created sections
110560484Sobrien	if shared library is dynobj.
110660484Sobrien
110760484SobrienMon Jul 14 15:33:55 1997  Ian Lance Taylor  <ian@cygnus.com>
110860484Sobrien
110960484Sobrien	* elf.c (map_sections_to_segments): When checking whether
111060484Sobrien	including a section in a segment would force us to skip a page,
111160484Sobrien	align the address of the next segment to avoid wraparound
111260484Sobrien	problems.
111360484Sobrien
111460484SobrienTue Jul  8 12:11:29 1997  Fred Fish  <fnf@cygnus.com>
111560484Sobrien
111660484Sobrien	* coffcode.h (coff_write_object_contents): Initialize
111760484Sobrien 	target id field to TIC80_TARGET_ID.
111860484Sobrien	* coffswap.h (coff_swap_filehdr_out): Swap out target id field
111960484Sobrien 	if used.
112060484Sobrien	(coff_swap_filehdr_in): Swap in target id field if used.
112160484Sobrien
112260484SobrienMon Jul  7 16:41:20 1997  Ian Lance Taylor  <ian@cygnus.com>
112360484Sobrien
112460484Sobrien	* coff-i386.c (coff_i386_is_local_label_name): New static function
112560484Sobrien	if TARGET_UNDERSCORE.
112660484Sobrien	(coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
112760484Sobrien	(i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
112860484Sobrien
112960484SobrienMon Jun 30 14:29:26 1997  Ian Lance Taylor  <ian@cygnus.com>
113060484Sobrien
113160484Sobrien	* elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
113260484Sobrien	complain_overflow_signed, for 32 bit PC relative relocations.
113360484Sobrien
113460484SobrienThu Jun 26 01:26:31 1997  Ian Lance Taylor  <ian@cygnus.com>
113560484Sobrien
113660484Sobrien	* elflink.h (elf_link_add_object_symbols): When a version
113760484Sobrien	indirection symbol is overridden, make the original symbol point
113860484Sobrien	at the real overriding symbol.
113960484Sobrien
114060484Sobrien	* elf.c (bfd_elf_string_from_elf_section): Check for an invalid
114160484Sobrien	string index.
114260484Sobrien
114360484Sobrien	* elflink.h (elf_link_output_extsym): Use the right section for a
114460484Sobrien	common symbol.
114560484Sobrien	* elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
114660484Sobrien	symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
114760484Sobrien
114860484SobrienWed Jun 25 12:43:10 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
114960484Sobrien
115060484Sobrien	* elflink.h (elf_merge_symbols): Resolve indirect and warning
115160484Sobrien	symbols before checking for new symbols.
115260484Sobrien
115360484Sobrien	* elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
115460484Sobrien
115560484SobrienTue Jun 24 11:20:43 1997  Ian Lance Taylor  <ian@cygnus.com>
115660484Sobrien
115760484Sobrien	* coffgen.c (coff_object_p): Read the f_opthdr bytes from the
115860484Sobrien	file, not aoutsz bytes (they are different in XCOFF .o files).
115960484Sobrien
116060484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
116160484Sobrien	redefined by objects included from archives.
116260484Sobrien
116360484SobrienMon Jun 23 18:03:27 1997  Ian Lance Taylor  <ian@cygnus.com>
116460484Sobrien
116560484Sobrien	* elflink.h (elf_merge_symbol): In the case of a new defined
116660484Sobrien	symbol overriding an old defined symbol, return the hash table
116760484Sobrien	entry which we modify, even if it is the target of an
116860484Sobrien	indirection.
116960484Sobrien	(elf_link_add_object_symbols): If the real name of the symbol gets
117060484Sobrien	overridden, convert the versioned symbol into an indirect symbol
117160484Sobrien	to the real symbol.
117260484Sobrien
117360484Sobrien	* elflink.h (elf_merge_symbol): New static function, broken out of
117460484Sobrien	elf_link_add_object_symbols.
117560484Sobrien	(elf_link_add_object_symbols): Call it.
117660484Sobrien
117760484SobrienSun Jun 22 19:40:57 1997  Ian Lance Taylor  <ian@cygnus.com>
117860484Sobrien
117960484Sobrien	* coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
118060484Sobrien	handle case where COFF filehdr does not immediately follow PE
118160484Sobrien	header.
118260484Sobrien	* coffgen.c (coff_object_p): Remove useless seek to current
118360484Sobrien	location.
118460484Sobrien
118560484SobrienWed Jun 18 19:03:38 1997  Ian Lance Taylor  <ian@cygnus.com>
118660484Sobrien
118760484Sobrien	* linker.c (link_action): Change COMMON_ROW/indr to from CREF to
118860484Sobrien	REFC.
118960484Sobrien
119060484SobrienTue Jun 17 11:55:02 1997  Ian Lance Taylor  <ian@cygnus.com>
119160484Sobrien
119260484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
119360484Sobrien	symbols, skip N_ABS symbols with debugging storage classes.
119460484Sobrien
119560484SobrienMon Jun 16 18:56:27 1997  Geoff Keating  <geoffk@ozemail.com.au>
119660484Sobrien
119760484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
119860484Sobrien	relocs in shared libraries which refer to local symbols.  Cope
119960484Sobrien	with addend when processing a GOT relocation.
120060484Sobrien
120160484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
120260484Sobrien	for sections that the linker didn't create.
120360484Sobrien	(ppc_elf_finish_dynamic_sections): Only try to write out a section
120460484Sobrien	symbol if it was created in ppc_elf_size_dynamic_sections.
120560484Sobrien	(ppc_elf_relocate_section): Complain if we have to generate a reloc
120660484Sobrien	relative to a section for which we didn't output a symbol.
120760484Sobrien
120860484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up.  PLT
120960484Sobrien	relocs are 'rela' relocs, like everything else.  .rela.plt is not
121060484Sobrien	a read-only section, so we don't have to special-case it.
121160484Sobrien
121260484Sobrien	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
121360484Sobrien	.rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
121460484Sobrien
121560484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
121660484Sobrien	(ppc_elf_relocate_section): @got offsets are 4 from start of the
121760484Sobrien	actual .got section.
121860484Sobrien	* elflink.c (_bfd_elf_create_got_section): The three reserved
121960484Sobrien	words start from the symbol '_GLOBAL_OFFSET_TABLE_'.
122060484Sobrien
122160484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
122260484Sobrien	characters, not 4.
122360484Sobrien
122460484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Use
122560484Sobrien	_bfd_elf_create_got_section to create the GOT rather than
122660484Sobrien	ppc_elf_create_linker_section. Create the '.rela.got' section
122760484Sobrien	ourselves.
122860484Sobrien	(ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
122960484Sobrien	symbol has a GOT entry.
123060484Sobrien	(ppc_elf_relocate_section): Record when a symbol is used through
123160484Sobrien	the GOT, and allocate space in the GOT for each such symbol.
123260484Sobrien	(ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
123360484Sobrien	(ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
123460484Sobrien	stuff.
123560484Sobrien
123660484Sobrien	* elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
123760484Sobrien	treated in a similar way to ADDR16_HA relocs.
123860484Sobrien	(ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
123960484Sobrien	shared objects; the linker must deal with them.
124060484Sobrien	(ppc_elf_create_linker_section): Stop setting
124160484Sobrien	_GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
124260484Sobrien	LINKER_SECTION_PLT stuff.
124360484Sobrien	(ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
124460484Sobrien	(ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
124560484Sobrien	section, not ELF-specific calls.
124660484Sobrien	(elf_backend_plt_not_loaded): Set to 1.
124760484Sobrien	(elf_backend_got_symbol_offset): Set to 4.
124860484Sobrien	* elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
124960484Sobrien	for when ld.so fills in the PLT; and 'got_symbol_offset' member.
125060484Sobrien	* elflink.c (_bfd_elf_create_dynamic_sections): Apply
125160484Sobrien	plt_not_loaded member.
125260484Sobrien	(_bfd_elf_create_got_section): Apply got_symbol_offset.
125360484Sobrien	* elfxx-target.h (elf_backend_plt_not_loaded): Set default to
125460484Sobrien	'loaded'.
125560484Sobrien	(elf_backend_G_O_T_offset): Set default to 0.
125660484Sobrien	(elfNN_bed): Set added fields.
125760484Sobrien
125860484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
125960484Sobrien	DT_RELENT in shared objects; should be DT_RELAENT.
126060484Sobrien
126160484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Propagate
126260484Sobrien	R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
126360484Sobrien	such a reloc (in a non-shared object) refers to a symbol that's
126460484Sobrien	not defined.
126560484Sobrien
126660484SobrienMon Jun 16 14:42:14 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
126760484Sobrien
126860484Sobrien	* elfcode.h (put_signed_word): Define.
126960484Sobrien	(get_signed_word): Define.
127060484Sobrien	(elf_swap_reloca_in): Use get_signed_word for the r_addend field.
127160484Sobrien	(elf_swap_reloca_out): Use put_signed_word for the r_addend
127260484Sobrien	field.
127360484Sobrien	* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
127460484Sobrien	bfd_get_signed_32 to set the r_addend field.
127560484Sobrien	* elf64-mips.c (mips_elf64_swap_reloca_in): Use
127660484Sobrien	bfd_h_get_signed_64 to set the r_addend field.
127760484Sobrien
127860484SobrienMon Jun 16 12:31:29 1997  Ian Lance Taylor  <ian@cygnus.com>
127960484Sobrien
128060484Sobrien	* elf32-i386.c (elf_i386_relocate_section): When generating a
128160484Sobrien	shared library, do the relocation if the input section is not
128260484Sobrien	allocated in memory.
128360484Sobrien
128460484Sobrien	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
128560484Sobrien	elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
128660484Sobrien	(elf_fix_symbol_flags): New static function, broken out of
128760484Sobrien	elf_adjust_dynamic_symbol.
128860484Sobrien	(elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
128960484Sobrien	(elf_link_assign_sym_version): Likewise.  Permit a symbol to be
129060484Sobrien	forced local even if NEEDS_PLT is set.  When forcing a symbol to
129160484Sobrien	be local, clear NEEDS_PLT.
129260484Sobrien	(elf_link_output_extsym): Remove unused local bed.
129360484Sobrien
129460484SobrienWed Jun 11 22:44:20 1997  Jeffrey A Law  (law@cygnus.com)
129560484Sobrien
129660484Sobrien	* elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
129760484Sobrien	for derived elf linker hash table entries.  References to
129860484Sobrien	elf_link_hash_entry changed appropriately.
129960484Sobrien	(elf32_mn10300_link_hash_table): New structure for derived elf
130060484Sobrien	linker hash table.
130160484Sobrien	(elf32_mn10300_hash_table): Define.
130260484Sobrien	(elf32_mn10300_link_hash_traverse): Likewise.
130360484Sobrien	(elf32_mn10300_link_hash_newfunc): New function.
130460484Sobrien	(elf32_mn10300_link_hash_table_create): Likewise.
130560484Sobrien	(elf32_mn10300_finish_hash_table_entry): Likewise.
130660484Sobrien	(mn10300_elf_relax_section): Handle "call" -> "calls", removal
130760484Sobrien	of prologue code, and call:32->call:16 relaxing.
130860484Sobrien	(compute_function_info: New function.
130960484Sobrien	(bfd_elf32_bfd_ilink_hash_table_create): Define.
131060484Sobrien
131160484SobrienWed Jun 11 00:00:07 1997  Ian Lance Taylor  <ian@cygnus.com>
131260484Sobrien
131360484Sobrien	* elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
131460484Sobrien	for a symbol which is being forced to be local.
131560484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Write out the
131660484Sobrien	relocation value for a GOT reloc for a symbol which is turning
131760484Sobrien	into a local symbol.
131860484Sobrien	(elf_i386_finish_dynamic_symbol): If a symbol is turning into a
131960484Sobrien	local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
132060484Sobrien	reloc.
132160484Sobrien	* elf32-m68k.c, elf32-sparc.c: Corresponding changes.
132260484Sobrien
132360484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Get the relocation
132460484Sobrien	value if the symbol is turning into a local symbol.
132560484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
132660484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
132760484Sobrien
132860484Sobrien1997-06-10 22:58  Ulrich Drepper  <drepper@cygnus.com>
132960484Sobrien
133060484Sobrien	* elflink.h (elf_link_add_object_symbols): Also read verneed
133160484Sobrien	information by calling `_bfd_elf_slurp_version_tables'.
133260484Sobrien	(elf_link_add_object_symbols): For undefined symbols look for
133360484Sobrien	version information in the verneed records.
133460484Sobrien	(elf_link_add_object_symbols): Use soname of shared object
133560484Sobrien	for verneed record if it is available.
133660484Sobrien
133760484SobrienTue Jun 10 11:13:03 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
133860484Sobrien
133960484Sobrien	* cpu-arm.c: Add prototypes for compatible and scan.
134060484Sobrien	* cofflink.c: Add prototype for mark_relocs.
134160484Sobrien
134260484Sobrien	* archive.c (bfd_special_undocumented_glue): Change filename to
134360484Sobrien	const pointer.  Add prototype.
134460484Sobrien
134560484SobrienMon Jun  9 12:34:21 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134660484Sobrien
134760484Sobrien	* elflink.h (elf_link_add_object_symbols): Ignore relocations of
134860484Sobrien	sections that will be discarded.
134960484Sobrien
135060484Sobrien1997-06-06 22:58  Ulrich Drepper  <drepper@cygnus.com>
135160484Sobrien
135260484Sobrien	* elflink.h (elf_link_find_version_dependencies): When searching
135360484Sobrien	for known version symbol skip non-matching verdef records, not
135460484Sobrien	matching records.
135560484Sobrien
135660484SobrienThu Jun  5 15:52:45 1997  Ian Lance Taylor  <ian@cygnus.com>
135760484Sobrien
135860484Sobrien	* cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
135960484Sobrien	not a bfd_vma, to the base file, to match how dlltool reads it.
136060484Sobrien
136160484SobrienTue Jun  3 16:57:45 1997  Nick Clifton  <nickc@cygnus.com>
136260484Sobrien
136360484Sobrien	* reloc.c: Add thumb relocations.
136460484Sobrien
136560484Sobrien	* bfd-in2.h: Add Thumb relocations.
136660484Sobrien
136760484Sobrien	* libbfd.h: Add Thumb relocations.
136860484Sobrien
136960484SobrienMon Jun  2 10:41:52 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
137060484Sobrien
137160484Sobrien	* cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
137260484Sobrien
137360484SobrienFri May 30 12:46:27 1997  Ian Lance Taylor  <ian@cygnus.com>
137460484Sobrien
137560484Sobrien	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
137660484Sobrien	for a section even if it is not loaded.
137760484Sobrien
137860484Sobrien	* cofflink.c (coff_link_add_symbols): If PE file, don't subtract
137960484Sobrien	section VMA.
138060484Sobrien	(_bfd_coff_link_input_bfd): Separate section VMA handling for
138160484Sobrien	input and output files.
138260484Sobrien	(_bfd_coff_generic_relocate_section): Check whether input file,
138360484Sobrien	not output file, is a PE file.
138460484Sobrien
138560484SobrienWed May 28 15:48:43 1997  Nick Clifton  <nickc@cygnus.com>
138660484Sobrien
138760484Sobrien	* coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
138860484Sobrien
138960484SobrienWed May 28 16:16:04 1997  Ian Lance Taylor  <ian@cygnus.com>
139060484Sobrien
139160484Sobrien	* coff-i386.c (coff_i386_reloc): Don't just exit if we see an
139260484Sobrien	R_IMAGEBASE reloc.
139360484Sobrien
139460484SobrienWed May 28 09:48:43 1997  Nick Clifton  <nickc@cygnus.com>
139560484Sobrien
139660484Sobrien	* cpu-arm.c (compatible): Add test for supersets of ARM
139760484Sobrien	architectures.
139860484Sobrien
139960484SobrienTue May 27 19:42:03 1997  Bob Manson  <manson@charmed.cygnus.com>
140060484Sobrien
140160484Sobrien	* cofflink.c (_bfd_coff_final_link): Initialize global_to_static
140260484Sobrien	member.
140360484Sobrien
140460484SobrienTue May 27 14:34:08 1997  Nick Clifton  <nickc@cygnus.com>
140560484Sobrien
140660484Sobrien	* coff-arm.c (coff_arm_bfd_set_private_flags): Make global.  It is
140760484Sobrien	called directly by gas/config/tc-arm.c.
140860484Sobrien
140960484SobrienTue May 27 15:58:53 1997  Richard Henderson  <rth@tamu.edu>
141060484Sobrien
141160484Sobrien	* elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
141260484Sobrien	(elf64_alpha_finish_dynamic_symbol): Fill it in properly.
141360484Sobrien
141460484SobrienMon May 26 14:05:13 1997  Ian Lance Taylor  <ian@cygnus.com>
141560484Sobrien
141660484Sobrien	* coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
141760484Sobrien	section VMA.
141860484Sobrien
141960484SobrienMon May 26 10:57:48 1997  Fred Fish  <fnf@cygnus.com>
142060484Sobrien
142160484Sobrien	* peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
142260484Sobrien	(coff_bfd_copy_private_bfd_data): Ditto.
142360484Sobrien	* coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
142460484Sobrien	(coff_arm_bfd_print_private_bfd_data): Ditto.
142560484Sobrien	(coff_arm_bfd_set_private_flags): Ditto.
142660484Sobrien	(coff_arm_bfd_copy_private_bfd_data): Ditto.
142760484Sobrien
142860484SobrienFri May 23 15:14:58 1997  Fred Fish  <fnf@cygnus.com>
142960484Sobrien
143060484Sobrien	* libcoff-in.h (struct coff_final_link_info): Add boolean
143160484Sobrien	global_to_static member for support of task linking.
143260484Sobrien	(_bfd_coff_write_task_globals): Add prototype.
143360484Sobrien	* libcoff.h: Regenerate.
143460484Sobrien	* coffcode.h (coff_write_object_contents): Use #ifdef to
143560484Sobrien	check RS6000COFF_C, to be consistent with all other uses
143660484Sobrien	in this file.
143760484Sobrien	* cofflink.c (_bfd_coff_final_link): If doing task linking,
143860484Sobrien	call _bfd_coff_write_task_globals.
143960484Sobrien	(_bfd_coff_link_input_bfd): If doing task linking, convert
144060484Sobrien	global functions to static.
144160484Sobrien	(_bfd_coff_write_global_sym): If doing task linking, convert
144260484Sobrien	global variables to static.
144360484Sobrien	(_bfd_coff_write_task_globals): New function.
144460484Sobrien	* coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
144560484Sobrien	(C_AUTOARG): #undef since it clashes with C_UEXT.
144660484Sobrien	(C_LASTENT): #undef since it clashes with C_STATLAB.
144760484Sobrien	* coffcode.h (coff_write_object_contents): Use TIC80COFF
144860484Sobrien	rather than TIC80.
144960484Sobrien	(coff_slurp_symbol_table): Use C_SYSTEM.  Hide C_AUTOARG use
145060484Sobrien	when TIC80COFF defined (clashes with C_UEXT).  Explicitly
145160484Sobrien	recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
145260484Sobrien
145360484SobrienFri May 23 12:38:24 1997  Ian Lance Taylor  <ian@cygnus.com>
145460484Sobrien
145560484Sobrien	* coff-tic80.c (tic80_howto_table): Change overflow check for most
145660484Sobrien	PP relocations to complain_overflow_dont.
145760484Sobrien
145860484SobrienThu May 22 20:22:14 1997  Ian Lance Taylor  <ian@cygnus.com>
145960484Sobrien
146060484Sobrien	* coff-tic80.c (tic80_howto_table): Add PP relocations.  Change
146160484Sobrien	name of R_RELLONG to "RELLONG".  Set rightshift and complain for
146260484Sobrien	M_PPCR.
146360484Sobrien	(ppbase_reloc, glob15_reloc): New static functions.
146460484Sobrien	(glob16_reloc, local16_reloc): New static functions.
146560484Sobrien	(rtype2howto): Handle all relocation types.
146660484Sobrien	(coff_tic80_relocate_section): New static function.
146760484Sobrien	(coff_relocate_section): Define to coff_tic80_relocate_section.
146860484Sobrien	* Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
146960484Sobrien
147060484SobrienWed May 21 17:15:50 1997  Ian Lance Taylor  <ian@cygnus.com>
147160484Sobrien
147260484Sobrien	* coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
147360484Sobrien	COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
147460484Sobrien	value.
147560484Sobrien	* coffgen.c (fixup_symbol_value): Add abfd parameter.  Change all
147660484Sobrien	callers.  If PE file, don't add section VMA.
147760484Sobrien	(coff_write_alien_symbol): If PE file, don't add section VMA.
147860484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): Likewise.
147960484Sobrien	(_bfd_coff_write_global_sym): Likewise.
148060484Sobrien	(_bfd_coff_generic_relocate_section): Likewise.
148160484Sobrien
148260484Sobrien	* peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
148360484Sobrien	is 64 bits.
148460484Sobrien
148560484SobrienWed May 21 09:58:10 1997  Nick Clifton  <nickc@cygnus.com>
148660484Sobrien
148760484Sobrien	* cofflink.c (mark_relocs): Add new function to mark symbols which
148860484Sobrien	are used by relocations.
148960484Sobrien	(_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
149060484Sobrien	suppress the skipping of symbols that have thus been marked.
149160484Sobrien
149260484SobrienTue May 20 18:45:26 1997  Ian Lance Taylor  <ian@cygnus.com>
149360484Sobrien
149460484Sobrien	* coff-sh.c (sh_merge_private_data): New static function.
149560484Sobrien	(coff_bfd_merge_private_bfd_data): Define.
149660484Sobrien
149760484SobrienMon May 19 14:46:00 1997  Mark Alexander  <marka@cygnus.com>
149860484Sobrien
149960484Sobrien	* coff-tic80.c: Remove unnecessary #ifdefs.
150060484Sobrien	* config.bfd: Set targ_underscore to yes for tic80.
150160484Sobrien
150260484SobrienMon May 19 14:26:36 1997  Mark Alexander  <marka@cygnus.com>
150360484Sobrien
150460484Sobrien	* coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
150560484Sobrien	with unresolved external symbols in GDB).
150660484Sobrien
150760484SobrienFri May 16 10:23:03 1997  Jeffrey A Law  (law@cygnus.com)
150860484Sobrien
150960484Sobrien	* elf-m10300.c (elf32_mn10300_relax_section): Read in all
151060484Sobrien	the symbols associated with each BFD.
151160484Sobrien	(mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
151260484Sobrien	more than once.
151360484Sobrien	* elf-m10200.c: Likewise.
151460484Sobrien	* elf32-m32r.c: Likewise.
151560484Sobrien	* elf32-sh.c: Likewise.
151660484Sobrien
151760484SobrienFri May 16 12:10:52 1997  Ian Lance Taylor  <ian@cygnus.com>
151860484Sobrien
151960484Sobrien	* elflink.h (elf_link_add_object_symbols): Don't decrease the
152060484Sobrien	alignment of a common symbol.  If two symbols that look like
152160484Sobrien	common symbols are found in two shared libraries, and the size is
152260484Sobrien	different, use the larger size, and warn if --warn-common.  If a
152360484Sobrien	common symbol overrides a definition in a shared library, set the
152460484Sobrien	size to the larger size, and warn if --warn-common.
152560484Sobrien
152660484SobrienThu May 15 14:31:28 1997  Nick Clifton  <nickc@cygnus.com>
152760484Sobrien
152860484Sobrien	* cpu-arm.c (compatible):  Allow default machine to be polymorphed
152960484Sobrien	into any other machine type.
153060484Sobrien
153160484Sobrien	* coffcode.h (coff_set_flags):  Initialise flags variable to 0.
153260484Sobrien
153360484Sobrien	* coff-arm.c (coff_arm_bfd_merge_private_bfd_data):  When merging
153460484Sobrien	data into an unitialised destination set its machine type as well.
153560484Sobrien
153660484SobrienThu May 15 16:40:20 1997  Ian Lance Taylor  <ian@cygnus.com>
153760484Sobrien
153860484Sobrien	* elflink.h (elf_link_add_object_symbols): Force ELF symbol size
153960484Sobrien	to common symbol size.  Consistently treat uninitialized symbols
154060484Sobrien	in shared objects as common symbols.
154160484Sobrien
154260484SobrienFri May  9 10:15:27 1997  Nick Clifton  <nickc@cygnus.com>
154360484Sobrien
154460484Sobrien	* archures.c (constants):  Added new constants to identify the
154560484Sobrien	type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
154660484Sobrien	bfd_mach_arm_3,	bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
154760484Sobrien
154860484Sobrien	* bfd-in2.h (constants):   Added new constants to identify
154960484Sobrien	the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
155060484Sobrien	bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
155160484Sobrien	bfd_mach_arm_4T.  This file is auto-magically generated from the
155260484Sobrien	archures.c file.  This update is just to save work.
155360484Sobrien
155460484Sobrien	* coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
155560484Sobrien	coff_arm_bfd_print_private_bfd_data,
155660484Sobrien	coff_arm_bfd_set_private_flags,
155760484Sobrien	coff_arm_bfd_copy_private_bfd_data): Added these new functions.
155860484Sobrien	(global): Macro redefinitions set up to use these new functions.
155960484Sobrien
156060484Sobrien	* coffcode.h (coff_mkobject_hook): Added call to
156160484Sobrien	coff_arm_bfd_set_private_flags().
156260484Sobrien	(coff_set_arch_mach_hook): Added code to set machine type based on
156360484Sobrien	bits stored in internal flags.
156460484Sobrien  	(coff_set_flags): Added code to set the new bits in the flags
156560484Sobrien	field based on the machine number.
156660484Sobrien	(function definition macros): Made all function definition macros
156760484Sobrien	conditional so that they can be overridden by target specific
156860484Sobrien	files.
156960484Sobrien
157060484Sobrien	* cpu-arm.c (compatible): Added this function.  (arch_info_struct):
157160484Sobrien	Structure extended to include new types, one each for ARMv2,
157260484Sobrien	ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
157360484Sobrien
157460484Sobrien	* libcoff-in.h (struct coff_tdata):  Added flags field.
157560484Sobrien
157660484SobrienFri May  9 17:40:02 1997  Ian Lance Taylor  <ian@cygnus.com>
157760484Sobrien
157860484Sobrien	* config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
157960484Sobrien
158060484Sobrien	* config.bfd: Change #if 0 around uses of host_aout_vec to #if
158160484Sobrien	HAVE_host_aout_vec.
158260484Sobrien
158360484SobrienMon May  5 13:57:32 1997  Mike Meissner  <meissner@cygnus.com>
158460484Sobrien
158560484Sobrien	* coffgen.c (coff_find_nearest_line): If there are no syments,
158660484Sobrien	just return false.
158760484Sobrien
158860484SobrienMon May  5 18:18:45 1997  Philip Blundell  <pjb27@cam.ac.uk>
158960484Sobrien
159060484Sobrien	* config.bfd: cope with '*-*-linux-gnuaout' targets.
159160484Sobrien
159260484SobrienThu May  1 11:31:12 1997  Ian Lance Taylor  <ian@cygnus.com>
159360484Sobrien
159460484Sobrien	* targmatch.sed: Add explicit \n characters to work around bug in
159560484Sobrien	HP/UX 10.20 sed program.
159660484Sobrien
159760484SobrienWed Apr 30 12:27:03 1997  Ian Lance Taylor  <ian@cygnus.com>
159860484Sobrien
159960484Sobrien	* elf.c (copy_private_bfd_data): Cast csecs to avoid sign
160060484Sobrien	extension problems.
160160484Sobrien
160260484SobrienTue Apr 22 12:06:08 1997  Ian Lance Taylor  <ian@cygnus.com>
160360484Sobrien
160460484Sobrien	* Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
160560484Sobrien
160660484SobrienMon Apr 21 11:21:31 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
160760484Sobrien
160860484Sobrien	* elf32-m68k.c: Follow the last changes in elf32-i386.c:
160960484Sobrien	(struct elf_m68k_pcrel_relocs_copied, struct
161060484Sobrien	elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
161160484Sobrien	elf_m68k_link_hash_traverse, elf_m68k_hash_table,
161260484Sobrien	elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
161360484Sobrien	elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
161460484Sobrien	New definitions.
161560484Sobrien	(elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
161660484Sobrien	PC relative relocs for a global symbol defined in a regular
161760484Sobrien	object, and count the number of PC relative relocs copied for any
161860484Sobrien	global symbol.
161960484Sobrien	(elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
162060484Sobrien	traverse with elf_m68k_discard_copies.
162160484Sobrien
162260484SobrienSat Apr 19 22:50:14 1997  Ian Lance Taylor  <ian@cygnus.com>
162360484Sobrien
162460484Sobrien	* elf32-i386.c (elf_i386_check_relocs): Only count PC relative
162560484Sobrien	relocs.  From Jamie Lokier <jamie@rebellion.co.uk>.
162660484Sobrien
162760484Sobrien	* coffcode.h (coff_compute_section_file_positions): Force the
162860484Sobrien	potential last byte in the file to be written out when
162960484Sobrien	COFF_IMAGE_WITH_PE.
163060484Sobrien
163160484SobrienThu Apr 17 13:46:56 1997  Per Fogelstrom  <pefo@openbsd.org>
163260484Sobrien
163360484Sobrien	* configure.host (mips*-*-openbsd*): New host.
163460484Sobrien
163560484SobrienThu Apr 17 11:10:54 1997  Ian Lance Taylor  <ian@cygnus.com>
163660484Sobrien
163760484Sobrien	* elflink.h (elf_link_add_object_symbols): Only subtract the
163860484Sobrien	section VMA from the symbol value if this is a fully linked file.
163960484Sobrien
164060484Sobrien	* elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
164160484Sobrien	(struct elf_i386_link_hash_entry): Define.
164260484Sobrien	(struct elf_i386_link_hash_table): Define.
164360484Sobrien	(elf_i386_link_hash_traverse): Define.
164460484Sobrien	(elf_i386_hash_table): Define.
164560484Sobrien	(elf_i386_link_hash_newfunc): New static function.
164660484Sobrien	(elf_i386_link_hash_table_create): New static function.
164760484Sobrien	(elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
164860484Sobrien	PC relative relocs for a global symbol defined in a regular
164960484Sobrien	object, and count the number of PC relative relocs copied for any
165060484Sobrien	global symbol.
165160484Sobrien	(elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
165260484Sobrien	traverse with elf_i386_discard_copies.
165360484Sobrien	(elf_i386_discard_copies): New static function.
165460484Sobrien	(bfd_elf32_bfd_link_hash_table_create): Define.
165560484Sobrien
165660484Sobrien	From Gordon W. Ross <gwr@mc.com>:
165760484Sobrien	* aoutf1.h (MY_entry_is_text_address): Define if not defined.
165860484Sobrien	(sunos4_aout_backend): Use MY_entry_is_text_address.
165960484Sobrien
166060484SobrienWed Apr 16 12:43:32 1997  Martin Hunt  <hunt@cygnus.com>
166160484Sobrien
166260484Sobrien	* elf32-d30v.c (elf_d30v_howto_table): Changed size of
166360484Sobrien	R_D30V_32_NORMAL to 2 (4 bytes).
166460484Sobrien
166560484SobrienWed Apr 16 14:02:29 1997  Ian Lance Taylor  <ian@cygnus.com>
166660484Sobrien
166760484Sobrien	From Gordon W. Ross <gwr@mc.com>:
166860484Sobrien	* netbsd.h (N_SHARED_LIB): Define.
166960484Sobrien	(SEGMENT_SIZE): Don't define.
167060484Sobrien	* m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
167160484Sobrien	April 11).
167260484Sobrien	* sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
167360484Sobrien	(SEGMENT_SIZE): Don't define.
167460484Sobrien
167560484Sobrien	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
167660484Sobrien	to sizeof Rela structure, not sizeof Rel structure.  From Gary
167760484Sobrien	Thomas <g.thomas@opengroup.org>.
167860484Sobrien
167960484SobrienTue Apr 15 11:50:37 1997  Ian Lance Taylor  <ian@cygnus.com>
168060484Sobrien
168160484Sobrien	* aout-target.h (MY(callback)): If entry_is_text_address, adjust
168260484Sobrien	whenever entry is larger than text address, but only by whole
168360484Sobrien	pages.  From Gordon W. Ross <gwr@mc.com>.
168460484Sobrien
168560484Sobrien	* Makefile.in (install): Depend upon installdirs.  Use
168660484Sobrien	mkinstalldirs to build $(oldincludedir).
168760484Sobrien	(installdirs): New target.
168860484Sobrien
168960484Sobrien	* elflink.h (elf_link_add_object_symbols): Don't call check_relocs
169060484Sobrien	if this is a debugging section which we are stripping.
169160484Sobrien
169260484SobrienMon Apr 14 12:39:30 1997  Richard Henderson  <rth@tamu.edu>
169360484Sobrien
169460484Sobrien	* elf64-alpha.c (elf64_alpha_object_p): Allocate the
169560484Sobrien	alpha-specific target data struct.
169660484Sobrien
169760484SobrienMon Apr 14 11:45:46 1997  Ian Lance Taylor  <ian@cygnus.com>
169860484Sobrien
169960484Sobrien	From Thomas Graichen <graichen@rzpd.de>:
170060484Sobrien	* Makefile.in: Always use $(SHELL) when running move-if-change.
170160484Sobrien	* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
170260484Sobrien	* configure: Rebuild.
170360484Sobrien
170460484SobrienFri Apr 11 15:43:24 1997  Ian Lance Taylor  <ian@cygnus.com>
170560484Sobrien
170660484Sobrien	* elfcode.h (elf_slurp_symbol_table): Only subtract the section
170760484Sobrien	VMA if this is an executable file or a shared object.
170860484Sobrien
170960484Sobrien	* targets.c (netbsd_core_vec): Declare.  From Gordon W. Ross
171060484Sobrien	<gwr@mc.com>.
171160484Sobrien
171260484Sobrien	* libaout.h (struct aout_backend_data): Add entry_is_text_address
171360484Sobrien	field.
171460484Sobrien	* aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
171560484Sobrien	start of the file.  Remove uses later on which switch using
171660484Sobrien	ifdef.
171760484Sobrien	(MY(callback)): Handle entry_is_text_address.
171860484Sobrien	(MY_entry_is_text_address): Define if not defined.
171960484Sobrien	(MY(backend_data)): Initialize new field.
172060484Sobrien	* aoutf1.h (sunos4_aout_backend): Likewise.
172160484Sobrien	* i386aout.c (MY(backend_data)): Likewise.
172260484Sobrien	* i386mach3.c (MY(backend_data)): Likewise.
172360484Sobrien	* mipsbsd.c (MY(backend_data)): Likewise.
172460484Sobrien	* sparclynx.c (sparclynx_aout_backend): Likewise.
172560484Sobrien	* netbsd.h (SEGMENT_SIZE): Define if not defined.
172660484Sobrien	(MY_entry_is_text_address): Define.
172760484Sobrien	* m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
172860484Sobrien
172960484Sobrien	* xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
173060484Sobrien	whose name starts with `.'.
173160484Sobrien
173260484SobrienFri Apr 11 11:57:15 1997  Niklas Hallqvist  <niklas@appli.se>
173360484Sobrien
173460484Sobrien	* config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
173560484Sobrien	mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
173660484Sobrien	powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
173760484Sobrien	* configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
173860484Sobrien	m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
173960484Sobrien	sparc-*-openbsd*): New targets.
174060484Sobrien	* configure: Rebuild.
174160484Sobrien
174260484SobrienTue Apr  8 18:09:29 1997  Jamie Lokier  <jamie@rebellion.co.uk>
174360484Sobrien
174460484Sobrien	* stabs.c (struct stab_section_info): New field
174560484Sobrien	`cumulative_skips'.
174660484Sobrien	(_bfd_link_section_stabs): Fill the above array.
174760484Sobrien	(_bfd_stab_section_offset): Use `cumulative_skips' to
174860484Sobrien	speed up offset calculation.
174960484Sobrien
175060484SobrienTue Apr  8 00:01:31 1997  Jeffrey A Law  (law@cygnus.com)
175160484Sobrien
175260484Sobrien        * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
175360484Sobrien        addend for non pc-relative relocations.
175460484Sobrien
175560484Sobrien	* elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
175660484Sobrien	for non-existent function.
175760484Sobrien
175860484Sobrien	* elf-m10300.c (mn10300_elf_relax_section): New function.
175960484Sobrien	(mn10300_elf_relax_delete_bytes): Likewise.
176060484Sobrien	(mn10300_elf_symbol_address_p): Likewise.
176160484Sobrien	(mn10300_elf_get_relocated_section_contents): Likewise.
176260484Sobrien	(bfd_elf32_bfd_relax_section): Define.
176360484Sobrien	(bfd_elf32_bfd_get_relocated_section_contents): Likewise.
176460484Sobrien
176560484SobrienMon Apr  7 16:47:09 1997  Ian Lance Taylor  <ian@cygnus.com>
176660484Sobrien
176760484Sobrien	* configure.host: Set SHLIB_LIBS.
176860484Sobrien	* configure.in: Substitute SHLIB_LIBS.
176960484Sobrien	* configure: Rebuild.
177060484Sobrien	* Makefile.in (SHLIB_LIBS): New variable.
177160484Sobrien	($(SHLIB)): Use $(SHLIB_LIBS).
177260484Sobrien
177360484SobrienMon Apr  7 10:53:52 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>
177460484Sobrien
177560484Sobrien	* bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
177660484Sobrien	with bfd_section_vma.
177760484Sobrien
177860484SobrienFri Apr  4 11:37:15 1997  Ian Lance Taylor  <ian@cygnus.com>
177960484Sobrien
178060484Sobrien	* configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
178160484Sobrien	Correct CPU file names for mn10[23]00.
178260484Sobrien	* configure: Rebuild.
178360484Sobrien
178460484Sobrien	* bfd.c (bfd_record_phdr): Cast count to size_t before
178560484Sobrien	subtraction.
178660484Sobrien
178760484Sobrien	* coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
178860484Sobrien	* coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
178960484Sobrien	(xcoff_write_archive_contents): LIkewise.
179060484Sobrien	* elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
179160484Sobrien	(mips_elf_create_procedure_table): Likewise.
179260484Sobrien	* peicode.h (pe_print_idata): Likewise.
179360484Sobrien	(pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
179460484Sobrien	* xcofflink.c (xcoff_get_section_contents): Likewise.
179560484Sobrien	(_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
179660484Sobrien	(xcoff_link_add_symbols): Likewise.
179760484Sobrien	(xcoff_link_add_symbols): Likewise.
179860484Sobrien
179960484Sobrien	* ppcboot.c (ppcboot_set_arch_mach): Make static.
180060484Sobrien	(ppcboot_bfd_print_private_bfd_data): Likewise.
180160484Sobrien
180260484Sobrien	* elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
180360484Sobrien	to complain_overflow_signed.
180460484Sobrien
180560484SobrienThu Apr  3 11:51:54 1997  Ian Lance Taylor  <ian@cygnus.com>
180660484Sobrien
180760484Sobrien	* VERSION: Set to 2.8.1.
180860484Sobrien
180960484Sobrien	* Branched binutils 2.8.
181060484Sobrien
181160484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs):  Don't check SEC_ALLOC when
181260484Sobrien	deciding whether to copy a reloc into a shared object.
181360484Sobrien	(ppc_elf_relocate_section): Likewise.  Relocate R_PPC_RELATIVE
181460484Sobrien	relocs in unallocated sections.
181560484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Relocate
181660484Sobrien	R_SPARC_RELATIVE relocs in unallocated sections.
181760484Sobrien
181860484SobrienWed Apr  2 16:19:41 1997  Mike Meissner  <meissner@cygnus.com>
181960484Sobrien
182060484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
182160484Sobrien	always create got section so that the _GLOBAL_OFFSET_TABLE_ label
182260484Sobrien	is always created.
182360484Sobrien
182460484SobrienWed Apr  2 10:49:07 1997  Ian Lance Taylor  <ian@cygnus.com>
182560484Sobrien
182660484Sobrien	* elflink.h (elf_link_add_object_symbols): Let a common symbol
182760484Sobrien	override an uninitialized symbol from a shared library with a
182860484Sobrien	smaller size.
182960484Sobrien
183060484Sobrien	* elf-m10200.c: Rename from elf32-mn10200.c.
183160484Sobrien	* elf-m10300.c: Rename from elf32-mn10300.c.
183260484Sobrien	* cpu-m10200.c: Rename from cpu-mn10200.c
183360484Sobrien	* cpu-m10300.c: Rename from cpu-mn10300.c
183460484Sobrien	* Makefile.in: Update accordingly.
183560484Sobrien
183660484Sobrien	* elf32-mips.c (elf_mips_ctor64_howto): New static variable.
183760484Sobrien	(elf_mips_isa): Move to earlier in file.
183860484Sobrien	(mips_reloc_map): Remove BFD_RELOC_CTOR entry.
183960484Sobrien	(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
184060484Sobrien	specially.
184160484Sobrien
184260484Sobrien	* elf32-mips.c (mips16_jump_reloc): Print a warning rather than
184360484Sobrien	calling abort.
184460484Sobrien
184560484SobrienTue Apr  1 16:18:05 1997  Klaus Kaempf  <kkaempf@progis.de>
184660484Sobrien
184760484Sobrien	* configure.com: New file.
184860484Sobrien	* config.h-vms: Remove file.
184960484Sobrien	* makefile.vms: Update for new configure scheme.
185060484Sobrien
185160484SobrienMon Mar 31 23:28:39 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
185260484Sobrien
185360484Sobrien	* libcoff-in.h (ppc_allocate_toc_section): Declare.
185460484Sobrien	(ppc_process_before_allocation): Declare.
185560484Sobrien	* libcoff.h: Rebuild.
185660484Sobrien
185760484Sobrien	* coffcode.h (coff_mkobject_hook): Declare if not a macro.
185860484Sobrien
185960484SobrienMon Mar 31 16:29:50 1997  Joel Sherrill  <joel@oarcorp.com>
186060484Sobrien
186160484Sobrien        * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
186260484Sobrien
186360484SobrienMon Mar 31 16:11:35 1997  Ian Lance Taylor  <ian@cygnus.com>
186460484Sobrien
186560484Sobrien	* coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
186660484Sobrien	symbol index for a R_IHCONST reloc.
186760484Sobrien
186860484SobrienMon Mar 31 15:40:59 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
186960484Sobrien
187060484Sobrien	* targmatch.sed: Do not use \(\) recursively.
187160484Sobrien
187260484SobrienFri Mar 28 14:44:08 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
187360484Sobrien
187460484Sobrien	* m68klinux.c (MACHTYPE_OK): Define.
187560484Sobrien	* i386linux.c (MACHTYPE_OK): Define.
187660484Sobrien
187760484SobrienFri Mar 28 11:56:15 1997  Ian Lance Taylor  <ian@cygnus.com>
187860484Sobrien
187960484Sobrien	From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
188060484Sobrien	<hjl@gnu.ai.mit.edu>:
188160484Sobrien	* sparclinux.c: New file.
188260484Sobrien	* bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
188360484Sobrien	* bfd-in2.h: Rebuild.
188460484Sobrien	* config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
188560484Sobrien	* configure.in (sparclinux_vec): Add to list of vectors.
188660484Sobrien	* configure: Rebuild.
188760484Sobrien	* targets.c (sparclinux_vec): Declare.
188860484Sobrien	(bfd_target_vector): Add sparclinux_vec.
188960484Sobrien	* Makefile.in: Rebuild dependencies.
189060484Sobrien	(BFD32_BACKENDS): Add sparclinux.o.
189160484Sobrien	(BFD32_BACKENDS_CFILES): Add sparclinux.c.
189260484Sobrien
189360484Sobrien	* coff-mips.c (mips_ecoff_backend_data): Initialize new
189460484Sobrien	bfd_coff_backend_data field.
189560484Sobrien	* coff-alpha.c (alpha_ecoff_backend_data): Likewise.
189660484Sobrien
189760484Sobrien	* config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
189860484Sobrien	for mips*el*-*-linux* and mips*-*-linux*.  From H.J. Lu
189960484Sobrien	<hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
190060484Sobrien
190160484Sobrien	* bfd.c: Include "libiberty.h".
190260484Sobrien	(strerror): Don't declare.
190360484Sobrien	(bfd_errmsg): Call xstrerror rather than strerror.
190460484Sobrien
190560484SobrienThu Mar 27 12:55:42 1997  Ian Lance Taylor  <ian@cygnus.com>
190660484Sobrien
190760484Sobrien	* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
190860484Sobrien	reloc even if the symbol is in the .bss section.
190960484Sobrien	* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
191060484Sobrien	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
191160484Sobrien	* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
191260484Sobrien
191360484Sobrien	* coffcode.h (bfd_coff_backend_data): Add new field
191460484Sobrien	_bfd_coff_default_section_alignment_power.
191560484Sobrien	(bfd_coff_default_section_alignment_power): Define.
191660484Sobrien	(bfd_coff_std_swap_table): Initialize new field.
191760484Sobrien	* libcoff.h: Rebuild.
191860484Sobrien	* cofflink.c (coff_link_add_symbols): Limit alignment of a common
191960484Sobrien	symbol to the default section alignment.
192060484Sobrien
192160484Sobrien	* COPYING: Update FSF address.
192260484Sobrien
192360484SobrienThu Mar 27 00:45:57 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
192460484Sobrien
192560484Sobrien	* elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
192660484Sobrien	21-bit absolute that made it act as a relative.
192760484Sobrien
192860484SobrienWed Mar 26 14:50:20 1997  Ian Lance Taylor  <ian@cygnus.com>
192960484Sobrien
193060484Sobrien	* elflink.c (_bfd_elf_create_linker_section): Don't set
193160484Sobrien	bss_section and rel_section from existing sections.
193260484Sobrien
193360484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
193460484Sobrien	if it is needed.
193560484Sobrien
193660484SobrienTue Mar 25 22:26:56 1997  Stu Grossman  (grossman@critters.cygnus.com)
193760484Sobrien
193860484Sobrien	* aoutx.h (some_aout_object_p):  Change executable test to fix
193960484Sobrien	problems with embedded a.out systems.
194060484Sobrien
194160484SobrienTue Mar 25 14:35:37 1997  Ian Lance Taylor  <ian@cygnus.com>
194260484Sobrien
194360484Sobrien	* stabs.c (_bfd_stab_section_offset): New function.
194460484Sobrien	* libbfd-in.h (_bfd_stab_section_offset): Declare.
194560484Sobrien	* libbfd.h: Rebuild.
194660484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
194760484Sobrien	stab reloc.
194860484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
194960484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Likewise.
195060484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
195160484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
195260484Sobrien	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
195360484Sobrien
195460484Sobrien	* stabs.c (_bfd_link_section_stabs): Copy over the first header
195560484Sobrien	symbol.  Check for memory allocation failure of *psinfo.
195660484Sobrien	(_bfd_write_section_stabs): Add psinfo parameter.  Change all
195760484Sobrien	callers.  Set the value of the header symbol.
195860484Sobrien	* libbfd-in.h (_bfd_write_section_stabs): Update declaration.
195960484Sobrien	* libbfd.h: Rebuild.
196060484Sobrien
196160484SobrienMon Mar 24 20:07:29 1997  Fred Fish  <fnf@cygnus.com>
196260484Sobrien
196360484Sobrien	* coff-tic80.c (tic80_howto_table): Add R_ABS entry.
196460484Sobrien	(rtype2howto): Handle R_ABS reloc type.  Also abort on unhandled
196560484Sobrien	reloc types, rather than silently failing to generate an output file.
196660484Sobrien
196760484SobrienMon Mar 24 13:41:00 1997  Ian Lance Taylor  <ian@cygnus.com>
196860484Sobrien
196960484Sobrien	* targmatch.sed: Use the hold space to put the #ifdef around the
197060484Sobrien	the string constant.
197160484Sobrien	* targets.c (UNSUPPORTED_TARGET): Don't define.
197260484Sobrien	(find_target): Don't check for UNSUPPORTED_TARGET.
197360484Sobrien	(bfd_set_default_target): Don't try to optimize by checking for
197460484Sobrien	default.
197560484Sobrien
197660484Sobrien	* Makefile.in: Rebuild dependencies.
197760484Sobrien 	(ALL_MACHINES_CFILES): Add cpu-m32r.c.
197860484Sobrien	(BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
197960484Sobrien	(elf32-m32r.o): Remove explicit target.
198060484Sobrien
198160484Sobrien	* config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
198260484Sobrien	i[3456]86-*-linux*.
198360484Sobrien
198460484Sobrien	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
198560484Sobrien	count section symbols for sections that were created by the
198660484Sobrien	linker, or are not allocatable or not loadable.
198760484Sobrien	(elf32_sparc_finish_dynamic_sections): Output output section
198860484Sobrien	symbols for section for which we made space for them.
198960484Sobrien
199060484SobrienFri Mar 21 13:08:26 1997  Ian Lance Taylor  <ian@cygnus.com>
199160484Sobrien
199260484Sobrien	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
199360484Sobrien	no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
199460484Sobrien
199560484SobrienFri Mar 21 12:36:46 1997  Doug Evans  <dje@canuck.cygnus.com>
199660484Sobrien
199760484Sobrien	* elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
199860484Sobrien	(m32r_hi16_list): New static local.
199960484Sobrien	(m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
200060484Sobrien	(m32r_elf_do_hi16_reloc): Delete.
200160484Sobrien	(m32r_elf_relocate_hi16): New function.
200260484Sobrien	(m32r_elf_lo16_reloc): New function.
200360484Sobrien	(m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
200460484Sobrien	LO16 reloc.
200560484Sobrien
200660484Sobrien	Mon Mar 10 16:03:31 1997  Doug Evans  <dje@seba.cygnus.com>
200760484Sobrien
200860484Sobrien	* elf32-m32r.c (m32r_elf_create_linker_section): Delete.
200960484Sobrien	(m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
201060484Sobrien	(m32r_elf_final_sda_base): New function.
201160484Sobrien	(m32r_elf_relocate_section): Rewrite sdata support.
201260484Sobrien	(m32r_elf_finish_dynamic_sections): Delete.
201360484Sobrien
201460484SobrienThu Mar 20 12:39:02 1997  Ian Lance Taylor  <ian@cygnus.com>
201560484Sobrien
201660484Sobrien	Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
201760484Sobrien	* coff-svm68k.c: New file.  Just defines some macros and includes
201860484Sobrien	coff-m68k.c.
201960484Sobrien	* coff-m68k.c: Add functions to handle common addends, moved in
202060484Sobrien	from cf-m68klynx.c.  Control them using COFF_COMMON_ADDEND macro.
202160484Sobrien	Control whether relocs are visible using STATIC_RELOCS.
202260484Sobrien	* cf-m68klynx.c: Simplify greatly: just define macros to control
202360484Sobrien	coff-m68k.c.
202460484Sobrien	* coff-aux.c: Likewise.  Just leave add_one_symbol routine.
202560484Sobrien	* targets. (m68ksysvcoff_vec): Declare.
202660484Sobrien	(bfd_target_vector): Add m68ksysvcoff_vec.
202760484Sobrien	* config.bfd (m68*-motorola-sysv*): New target.
202860484Sobrien	* configure.in (m68ksysvcoff_vec): New vector.
202960484Sobrien	* configure: Rebuild.
203060484Sobrien	* Makefile.in: Rebuild dependencies.
203160484Sobrien 	(BFD32_BACKENDS): Add coff-svm68k.o.
203260484Sobrien	(BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
203360484Sobrien
203460484Sobrien	* binary.c (binary_set_section_contents): Don't get misled if the
203560484Sobrien 	first section is not loadable.  From Matthew L. Martin
203660484Sobrien 	<mlm@xedia.com>.
203760484Sobrien
203860484Sobrien	* elflink.h (elf_bfd_final_link): Set the value of a section
203960484Sobrien	symbol to the section address unless doing a relocateable link.
204060484Sobrien
204160484SobrienTue Mar 18 23:03:17 1997  Richard Henderson  <rth@tamu.edu>
204260484Sobrien
204360484Sobrien	* elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
204460484Sobrien	.plt entry if we've taken the function's address.
204560484Sobrien	(elf64_alpha_merge_gots): Merge collected flags info as well.
204660484Sobrien
204760484SobrienTue Mar 18 22:40:09 1997  H.J. Lu  <hjl@lucon.org>
204860484Sobrien
204960484Sobrien	* Many files: Add function prototypes.
205060484Sobrien	* cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
205160484Sobrien	* ecofflink.c: Include "libcoff.h" and "libecoff.h".
205260484Sobrien	* elf32-ppc.c (ppc_elf_fake_sections): Make static.
205360484Sobrien	* opncls.c (bfd_openstreamr): Change stream parameter to PTR.
205460484Sobrien	* peicode.h: Change several void * parameters to PTR.
205560484Sobrien	* srec.c (srec_get_symbol_info): Make static.
205660484Sobrien	* syms.c (bfd_symbol_is_absolute): Remove.
205760484Sobrien	* Makefile.in: Rebuild dependencies.
205860484Sobrien
205960484SobrienTue Mar 18 12:58:08 1997  Ian Lance Taylor  <ian@cygnus.com>
206060484Sobrien
206160484Sobrien	* elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
206260484Sobrien	(bfd_elf32_bfd_is_local_label): Don't define.
206360484Sobrien
206460484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
206560484Sobrien	than malloc.
206660484Sobrien
206760484SobrienMon Mar 17 11:32:53 1997  Ian Lance Taylor  <ian@cygnus.com>
206860484Sobrien
206960484Sobrien	* bfd-in.h: Don't include obstack.h.
207060484Sobrien	(struct bfd_hash_table): Change memory field to PTR.
207160484Sobrien	* bfd.c (struct _bfd): Change memory field to PTR.
207260484Sobrien	* bfd-in2.h: Rebuild.
207360484Sobrien	* libbfd-in.h (bfd_release): Declare as function, don't define as
207460484Sobrien	macro.
207560484Sobrien	* libbfd.h: Rebuild.
207660484Sobrien	* opncls.c: Include "objalloc.h" rather than "obstack.h".  Use
207760484Sobrien	objalloc routines rather than obstack routines.
207860484Sobrien	(obstack_chunk_alloc, obstack_chunk_free): Don't define.
207960484Sobrien	(getpagesize): Don't define.
208060484Sobrien	(_bfd_new_bfd): Don't set _bfd_chunksize.
208160484Sobrien	(bfd_openr): Free new bfd and objalloc on failure.
208260484Sobrien	(bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
208360484Sobrien	(bfd_alloc_size): Remove.
208460484Sobrien	(bfd_release): New function.
208560484Sobrien	* hash.c: Include "objalloc.h" rather than "obstack.h".  Use
208660484Sobrien	objalloc routines rather than obstack routines.
208760484Sobrien	(obstack_chunk_alloc, obstack_chunk_free): Don't define.
208860484Sobrien	* ecofflink.c: Include "objalloc.h" rather than "obstack.h".  Use
208960484Sobrien	objalloc routines rather than obstack routines.
209060484Sobrien	(obstack_chunk_alloc, obstack_chunk_free): Don't define.
209160484Sobrien	(struct accumulate): Change memory to struct objalloc *.
209260484Sobrien	* liboasys.h (oasys_data_type): Remove oasys_obstack field.
209360484Sobrien	* dep-in.sed: Don't remove obstack.h from dependency list.
209460484Sobrien	* Makefile.in: Rebuild dependencies.
209560484Sobrien	(BFD_H_DEPS): Remove obstack.h.
209660484Sobrien	(install): Don't install obstack.h.
209760484Sobrien	* Many files: Don't include "obstack.h".
209860484Sobrien	* VERSION: Bump.
209960484Sobrien
210060484Sobrien	* opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
210160484Sobrien	* libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
210260484Sobrien	* libbfd.h: Rebuild.
210360484Sobrien	* ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
210460484Sobrien	* sunos.c (sunos_add_dynamic_symbols): Likewise.
210560484Sobrien	* srec.c (srec_scan): Rewrite to not use obstack_1grow.
210660484Sobrien
210760484Sobrien	* opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t.  Remove
210860484Sobrien	old version of bfd_alloc.
210960484Sobrien	* libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
211060484Sobrien	* libbfd.h: Rebuild.
211160484Sobrien	* Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
211260484Sobrien
211360484SobrienSat Mar 15 15:24:18 1997  Ian Lance Taylor  <ian@cygnus.com>
211460484Sobrien
211560484Sobrien	* elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
211660484Sobrien	ELF local label syntax as well.
211760484Sobrien
211860484SobrienSat Mar 15 10:16:42 1997  Fred Fish  <fnf@cygnus.com>
211960484Sobrien
212060484Sobrien	* config.bfd (powerpc-*-beos*): New target.
212160484Sobrien	* configure.in (powerpc-*-beos*): Add case that explicitly
212260484Sobrien	does not set COREFILE for now.  A future BeOS version is
212360484Sobrien	expected to support core files.
212460484Sobrien	* configure: Regenerate with autoconf.
212560484Sobrien
212660484SobrienFri Mar 14 16:43:22 1997  Ian Lance Taylor  <ian@cygnus.com>
212760484Sobrien
212860484Sobrien	* elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
212960484Sobrien 	seen with a local symbol, rather than crashing.
213060484Sobrien
213160484Sobrien	* elfcode.h (elf_slurp_symbol_table): Don't try to read the
213260484Sobrien	version symbols if there aren't any.
213360484Sobrien
213460484SobrienThu Mar 13 16:38:30 1997  Fred Fish  <fnf@cygnus.com>
213560484Sobrien
213660484Sobrien	* coff-tic80.c (coff_rtype_to_howto): Define
213760484Sobrien	(coff_tic80_rtype_to_howto): Clone generic coff version and
213860484Sobrien	add code to handle the funky TI "internal relocations".
213960484Sobrien
214060484SobrienThu Mar 13 14:08:53 1997  Ian Lance Taylor  <ian@cygnus.com>
214160484Sobrien
214260484Sobrien	* elflink.h (elf_link_add_object_symbols): Don't warn about type
214360484Sobrien	or size changes because of a weak symbol.
214460484Sobrien
214560484Sobrien	* cisco-core.c (SIGEMT): Define if not defined.
214660484Sobrien
214760484SobrienWed Mar 12 21:36:05 1997  Ian Lance Taylor  <ian@cygnus.com>
214860484Sobrien
214960484Sobrien	* elflink.h (elf_link_add_object_symbols): Use extsymoff when
215060484Sobrien	setting ever.  Sanity check the version number.  Sort out copying
215160484Sobrien	flags and other information when adding an indirect symbol.
215260484Sobrien	(NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
215360484Sobrien	symbols added by the backend.  Clear the entire contents of the
215460484Sobrien	versym section.
215560484Sobrien	(elf_export_symbol): Ignore indirect symbols.
215660484Sobrien	(elf_link_output_extsym): Accept a section without an owner in an
215760484Sobrien	assert.
215860484Sobrien	* elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
215960484Sobrien	version count.  Correct the allocation of x_versymp.
216060484Sobrien
216160484Sobrien	* elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
216260484Sobrien	the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
216360484Sobrien	Don't return bfd_und_section_ptr when info->shared.
216460484Sobrien	(mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
216560484Sobrien	(mips_elf_create_dynamic_sections): Correct type: ^= for &=.
216660484Sobrien	(mips_elf_check_relocs): Resolve an indirect symbol in
216760484Sobrien	sym_hashes.
216860484Sobrien	(mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
216960484Sobrien	SHN_MIPS_TEXT or SHN_MIPS_DATA.
217060484Sobrien
217160484Sobrien	* elf.c (bfd_elf_print_symbol): Tweak version output slightly.
217260484Sobrien
217360484SobrienTue Mar 11 01:38:36 1997  Ian Lance Taylor  <ian@cygnus.com>
217460484Sobrien
217560484Sobrien	From Eric Youngdale <eric@andante.jic.com>:
217660484Sobrien	* elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
217760484Sobrien	* elf.c (bfd_elf_print_symbol): Correct errors in last change.
217860484Sobrien	* elflink.h (elf_link_add_object_symbols): Handle cases in which a
217960484Sobrien	versioned symbol appears in both a regular and a shared object.
218060484Sobrien	(elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
218160484Sobrien	appropriate.  Improve error message.
218260484Sobrien	(struct elf_outext_info): Rename from elf_finfo_failed.  Change
218360484Sobrien	all uses.  Add localsyms field.
218460484Sobrien	(elf_bfd_final_link): When generating a shared library, call
218560484Sobrien	elf_link_output_extsym to output all local symbols.
218660484Sobrien	(elf_link_output_extsym): Handle symbols which were forced to
218760484Sobrien	become local.
218860484Sobrien
218960484SobrienSun Mar  9 23:08:49 1997  Ian Lance Taylor  <ian@cygnus.com>
219060484Sobrien
219160484Sobrien	From Eric Youngdale <eric@andante.jic.com>:
219260484Sobrien	* elf-bfd.h (elf_symbol_type): Add version field.
219360484Sobrien	* elfcode.h (elf_slurp_symbol_table): Set version field.
219460484Sobrien	* elflink.h (elf_link_add_object_symbols): When creating an
219560484Sobrien 	indirect symbol for a default version symbol, set DEF_DYNAMIC if
219660484Sobrien 	appropriate.  Set up an indirection from the nondefault version of
219760484Sobrien	the symbol as well.
219860484Sobrien	(NAME(bfd_elf,size_dynamic_sections)): Call
219960484Sobrien	elf_link_assign_sym_version before checking whether there are any
220060484Sobrien	versions.  Always record the version name as a dynamic symbol.
220160484Sobrien	Initialize counters.
220260484Sobrien	(elf_link_assign_sym_version): After finding a version, see if a
220360484Sobrien	symbol should be forced to local scope.  Create a new version
220460484Sobrien	definition if appropriate.
220560484Sobrien	(elf_link_output_extsym): Correct indirect symbol handling.
220660484Sobrien	* elf.c (bfd_elf_print_symbol): Print version information.
220760484Sobrien	(bfd_section_from_shdr): Turn version sections into BFD sections.
220860484Sobrien	(elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
220960484Sobrien	if sh_info is not already set.
221060484Sobrien	(_bfd_elf_copy_private_section_data): Copy sh_info for version
221160484Sobrien	sections.
221260484Sobrien	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
221360484Sobrien	_bfd_stringtab_add to copy the name into permanent memory if
221460484Sobrien	appropriate.
221560484Sobrien
221660484SobrienFri Mar  7 11:55:31 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
221760484Sobrien
221860484Sobrien	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
221960484Sobrien
222060484SobrienFri Mar  7 10:37:30 1997  Ian Lance Taylor  <ian@cygnus.com>
222160484Sobrien
222260484Sobrien	* coffcode.h (bfd_coff_backend_data): Change
222360484Sobrien	_bfd_coff_compute_section_file_positions to return a boolean
222460484Sobrien	value.  Change all callers.
222560484Sobrien	(coff_compute_section_file_positions): Change return type to
222660484Sobrien	boolean.  If the size of the last section changed, then output a
222760484Sobrien	zero byte at the end of the file.
222860484Sobrien	* libcoff.h: Rebuild.
222960484Sobrien
223060484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
223160484Sobrien	for at least 6 output symbols.
223260484Sobrien	(xcoff_write_global_symbol): When emitting TOC entry relocs, also
223360484Sobrien	emit a TC csect to represent the space they take up.  For an XO
223460484Sobrien	symbol, just emit a reference, not a csect.
223560484Sobrien
223660484Sobrien	* Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
223760484Sobrien	Solaris doesn't like the combined options, and the -f is
223860484Sobrien	unnecessary.
223960484Sobrien	(stamp-tshlink, install): Likewise.
224060484Sobrien
224160484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
224260484Sobrien	handling when little endian.
224360484Sobrien
224460484SobrienThu Mar  6 13:51:51 1997  Jeffrey A Law  (law@cygnus.com)
224560484Sobrien
224660484Sobrien	* elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
224760484Sobrien	(mn10300_elf_relocate_section): Likewise.
224860484Sobrien	(elf_backend_relocate_section): Define.
224960484Sobrien
225060484Sobrien	* elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
225160484Sobrien	relocs.  Replace them with generic PCREL_{8,16,32} relocs.
225260484Sobrien	(elf32_mn10300_howto_table): Likewise.
225360484Sobrien	(elf32_mn10300_reloc_map): Likewise.
225460484Sobrien	(bfd_elf32_mn10300_reloc): Delete unused function.
225560484Sobrien
225660484SobrienThu Mar  6 12:19:59 1997  Fred Fish  <fnf@cygnus.com>
225760484Sobrien
225860484Sobrien	* coff-tic80.c (rtype2howto): If passed a relocation type we don't
225960484Sobrien	understand, just set the howto field to NULL, and the caller will
226060484Sobrien	print an appropriate error message.
226160484Sobrien	* coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
226260484Sobrien	code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
226360484Sobrien	block.  Use NULL for initializations of "ptr" rather than bare 0.
226460484Sobrien	* coff-h8300.c: Fix typo in comment.
226560484Sobrien	* coff-h8500.c: Ditto.
226660484Sobrien	* coff-w65.c: Ditto
226760484Sobrien	* coff-z8k.c: Ditto.
226860484Sobrien
226960484SobrienWed Mar  5 13:59:09 1997  Doug Evans  <dje@seba.cygnus.com>
227060484Sobrien
227160484Sobrien	* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
227260484Sobrien	(m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
227360484Sobrien	m32r_elf_get_relocated_section_contents): First pass at relax support.
227460484Sobrien
227560484SobrienMon Mar  3 13:27:09 1997  Ulrich Drepper  <drepper@rtl.cygnus.com>
227660484Sobrien
227760484Sobrien	* elflink.h (elf_link_add_object_symbols): Use correct sh_size
227860484Sobrien	entry for reading verdef records.
227960484Sobrien	Use correct braces for computing increments of extverdaux and
228060484Sobrien	exteverdef record pointers.
228160484Sobrien
228260484SobrienSun Mar  2 22:47:54 1997  Fred Fish  <fnf@cygnus.com>
228360484Sobrien
228460484Sobrien	* coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
228560484Sobrien	instead of 4.
228660484Sobrien
228760484SobrienSun Mar  2 16:25:35 1997  Ian Lance Taylor  <ian@cygnus.com>
228860484Sobrien
228960484Sobrien	* elflink.h (elf_link_find_version_dependencies): Check that
229060484Sobrien	DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
229160484Sobrien	set.
229260484Sobrien
229360484SobrienFri Feb 28 16:52:40 1997  Fred Fish  <fnf@cygnus.com>
229460484Sobrien
229560484Sobrien	* coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
229660484Sobrien
229760484SobrienFri Feb 28 15:06:45 1997  Ian Lance Taylor  <ian@cygnus.com>
229860484Sobrien
229960484Sobrien	* targets.c (bfd_default_vector): Make non-const.
230060484Sobrien	(find_target): New static function, broken out of
230160484Sobrien	bfd_find_target.
230260484Sobrien	(bfd_set_default_target): New function.
230360484Sobrien	(bfd_find_target): Call find_target.  When defaulting, use
230460484Sobrien	bfd_default_vector[0] if it is not NULL.
230560484Sobrien	* libbfd-in.h (bfd_default_vector): Adjust declaration.
230660484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
230760484Sobrien
230860484Sobrien	* syms.c (bfd_is_local_label): Return false if the symbol has no
230960484Sobrien	name.
231060484Sobrien	* coff-i960.c (coff_i960_is_local_label_name): New function.
231160484Sobrien	(coff_bfd_is_local_label_name): Define.
231260484Sobrien	* coff-m68k.c (m68k_coff_is_local_label_name): New function.
231360484Sobrien	(coff_bfd_is_local_label_name): Define.
231460484Sobrien	* coff-rs6000.c (xcoff_is_local_label_name): New function.
231560484Sobrien	(coff_bfd_is_local_label_name): Define.
231660484Sobrien	* elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
231760484Sobrien	with .. or _.L_ as local.
231860484Sobrien	* elf32-i386.c (elf_i386_is_local_label_name): New function.
231960484Sobrien	(bfd_elf32_bfd_is_local_label_name): Define.
232060484Sobrien	* evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
232160484Sobrien	beginning with $ as local.
232260484Sobrien
232360484SobrienThu Feb 27 18:36:23 1997  Ian Lance Taylor  <ian@cygnus.com>
232460484Sobrien
232560484Sobrien	* aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
232660484Sobrien	rather than comparing against info->lprefix.
232760484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): Likewise.
232860484Sobrien	* elflink.h (elf_link_input_bfd): Likewise.
232960484Sobrien	* linker.c (_bfd_generic_link_output_symbols): Likewise.
233060484Sobrien	* xcofflink.c (xcoff_link_input_bfd): Likewise.
233160484Sobrien
233260484Sobrien	* elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
233360484Sobrien	_bfd_elf_is_local_label_name if not already defined.
233460484Sobrien	* elf.c (_bfd_elf_is_local_label_name): New function.
233560484Sobrien	* elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
233660484Sobrien
233760484Sobrien	* coff-m88k.c (coff_bfd_is_local_label_name): Define.
233860484Sobrien	(m88k_is_local_label_name): New static function.
233960484Sobrien
234060484Sobrien	* coffcode.h (coff_bfd_is_local_label_name): Define as
234160484Sobrien	_bfd_coff_is_local_label_name if not already defined.
234260484Sobrien	* coffgen.c (_bfd_coff_is_local_label_name): New function.
234360484Sobrien	* libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
234460484Sobrien	* libcoff.h: Rebuild.
234560484Sobrien
234660484Sobrien	* targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
234760484Sobrien	to _bfd_is_local_label_name.
234860484Sobrien	(bfd_target): Likewise.
234960484Sobrien	* syms.c (bfd_is_local_label): Define as function, not macro.
235060484Sobrien	(bfd_is_local_name): Define.
235160484Sobrien	* libbfd.c (bfd_generic_is_local_label_name): Rename from
235260484Sobrien	bfd_generic_is_local_label, and take a string rather than a
235360484Sobrien	symbol.
235460484Sobrien	* libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
235560484Sobrien	(_bfd_nosymbols_bfd_is_local_label_name): Define.
235660484Sobrien 	(bfd_generic_is_local_label): Don't declare.
235760484Sobrien	(bfd_generic_is_local_label_name): Declare.
235860484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
235960484Sobrien	* All backends: Change local_label to local_label_name.
236060484Sobrien
236160484Sobrien	* elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
236260484Sobrien	(mips_elf_relocate_got_local): Change return type to boolean.
236360484Sobrien	Don't assume that the first zero entry is unassigned; instead, use
236460484Sobrien	assigned_gotno.
236560484Sobrien	(mips_elf_relocate_section): Check return value of
236660484Sobrien	mips_elf_relocate_got_local.
236760484Sobrien	(mips_elf_create_got_section): Initialize assigned_gotno field.
236860484Sobrien
236960484SobrienWed Feb 26 15:19:51 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
237060484Sobrien
237160484Sobrien	* elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
237260484Sobrien	relocations.
237360484Sobrien
237460484SobrienWed Feb 26 13:33:03 1997  Ian Lance Taylor  <ian@cygnus.com>
237560484Sobrien
237660484Sobrien	* elflink.h (elf_link_input_bfd): Don't skip symbols from sections
237760484Sobrien	that have no contents merely because linker_mark is not set.
237860484Sobrien
237960484SobrienTue Feb 25 18:51:35 1997  Stan Shebs  <shebs@andros.cygnus.com>
238060484Sobrien
238160484Sobrien	* config.bfd (mips*-*-lnews*): New target.
238260484Sobrien	* coff-mips.c (mips_relocate_section): Make assert compare
238360484Sobrien	content byteorder instead of header byteorder.
238460484Sobrien	(ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
238560484Sobrien	data.
238660484Sobrien	* targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
238760484Sobrien	* configure.in (ecoff_biglittle_vec): Add case.
238860484Sobrien	* configure: Update.
238960484Sobrien
239060484SobrienTue Feb 25 00:32:49 1997  Ian Lance Taylor  <ian@cygnus.com>
239160484Sobrien
239260484Sobrien	* elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
239360484Sobrien	name begins with ".note".
239460484Sobrien	(map_sections_to_segments): Add a PT_NOTE segment for any loadable
239560484Sobrien	section whose name begins with ".note".
239660484Sobrien	(get_program_header_size): Corresponding change.
239760484Sobrien
239860484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Check for misaligned
239960484Sobrien	jal and for jal overflow.
240060484Sobrien
240160484SobrienMon Feb 24 17:53:14 1997  Ian Lance Taylor  <ian@cygnus.com>
240260484Sobrien
240360484Sobrien	From Eric Youngdale <eric@andante.jic.com>:
240460484Sobrien	* elflink.h (elf_link_add_archive_symbols): If a default symbol is
240560484Sobrien	not found, try looking it up again without the version name.
240660484Sobrien	(elf_link_add_object_symbols): Always link against the dynamic
240760484Sobrien	symbol table of a dynamic object.  When linking against a dynamic
240860484Sobrien	object, include version strings in symbol names, and set up
240960484Sobrien	version information.  Add indirect symbols for default versions.
241060484Sobrien	(elf_link_create_dynamic_sections): Add special version sections.
241160484Sobrien	(struct elf_assign_sym_version_info): Define.
241260484Sobrien	(struct elf_find_verdep_info): Define.
241360484Sobrien	(NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter.  Set
241460484Sobrien	up version sections.
241560484Sobrien	(elf_adjust_dynamic_symbol): Ignore indirect symbols.
241660484Sobrien	(elf_link_find_version_dependencies): New static function.
241760484Sobrien	(elf_link_assign_sym_version): New static function.
241860484Sobrien	(elf_link_renumber_dynsyms): New static function.
241960484Sobrien	(struct elf_final_link_info): Add symver_sec field.
242060484Sobrien	(elf_bfd_final_link): Initialize finfo.symver_sec.  Don't count
242160484Sobrien	local symbols of a dynamic object.  Handle DT_VER* constants.
242260484Sobrien	(elf_link_output_extsym): Simplify BFD_ASSERT checking for a
242360484Sobrien	dynamic object.  Skip indirect symbols from ELF objects.  Remove
242460484Sobrien	the version name before choosing a hash bucket.  Write out the
242560484Sobrien	version information if appropriate.
242660484Sobrien	(elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
242760484Sobrien	* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
242860484Sobrien	(bfd_elf64_size_dynamic_sections): Likewise.
242960484Sobrien	* bfd-in2.h: Rebuild.
243060484Sobrien	* elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
243160484Sobrien	Change elf_link_hash_flags to unsigned short.
243260484Sobrien	(ELF_LINK_HIDDEN): Define.
243360484Sobrien	(struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
243460484Sobrien	dynverdef_hdr, dynversym_section, dynverdef_section,
243560484Sobrien	dynverref_section, cverdefs, cverrefs, verdef, verref.
243660484Sobrien	(elf_dynversym, elf_dynverdef, elf_dynverref): Define.
243760484Sobrien	(_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
243860484Sobrien	(_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
243960484Sobrien	(_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
244060484Sobrien	(_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
244160484Sobrien	(_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
244260484Sobrien	(_bfd_elf_slurp_version_tables): Declare.
244360484Sobrien	* elf.c (_bfd_elf_swap_verdef_in): New function.
244460484Sobrien	(_bfd_elf_swap_verdef_out): Likewise.
244560484Sobrien	(_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
244660484Sobrien	(_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
244760484Sobrien	(_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
244860484Sobrien	(_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
244960484Sobrien	(_bfd_elf_print_private_bfd_data): Add DT_VER* constants.  Print
245060484Sobrien	version information if there is any.
245160484Sobrien	(_bfd_elf_link_hash_newfunc): Initialize verinfo field.
245260484Sobrien	(bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
245360484Sobrien	(elf_fake_sections): Handle .gnu.version* section names.
245460484Sobrien	(assign_section_numbers): Handle SHT_GNU_ver* section types.
245560484Sobrien	(_bfd_elf_slurp_version_tables): New function.
245660484Sobrien	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
245760484Sobrien	version name in string entered in dynamic hash table.
245860484Sobrien	* elfcode.h: Include fnmatch.h.
245960484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
246060484Sobrien	symbol which was forced to become local.
246160484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
246260484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
246360484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
246460484Sobrien	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
246560484Sobrien
246660484SobrienFri Feb 21 16:15:18 1997  Jeffrey A Law  (law@cygnus.com)
246760484Sobrien
246860484Sobrien	* elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
246960484Sobrien	somewhat.
247060484Sobrien	(mn10200_elf_relax_section): Correctly compute a symbol's value
247160484Sobrien	when the symbol is local, but not in the same section as we are
247260484Sobrien	relaxing.  Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
247360484Sobrien	relaxing.
247460484Sobrien
247560484SobrienFri Feb 21 13:55:14 1997  Doug Evans  <dje@seba.cygnus.com>
247660484Sobrien
247760484Sobrien	* elf32-m32r.c: Rewrite to use ELF backend linker.
247860484Sobrien	Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
247960484Sobrien	Add small data area support (R_M32R_SDA16).
248060484Sobrien	* reloc.c: Document BFD_RELOC_M32R_SDA16.
248160484Sobrien	* bfd-in2.h,libbfd.h: Regenerated.
248260484Sobrien
248360484SobrienThu Feb 20 23:50:31 1997  Jeffrey A Law  (law@cygnus.com)
248460484Sobrien
248560484Sobrien	* elf32-mn10200.c (mn10200_elf_relax_section): New function.
248660484Sobrien	(mn10200_elf_relax_delete_bytes): Likewise.
248760484Sobrien	(mn10200_elf_symbol_address_p): Likewise.
248860484Sobrien	(mn10200_elf_get_relocated_section_contents): Likewise.
248960484Sobrien	(bfd_elf32_bfd_relax_section): Define.
249060484Sobrien	(bfd_elf32_bfd_get_relocated_section_contents): Likewise.
249160484Sobrien
249260484Sobrien	* elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
249360484Sobrien	(mn10200_elf_relocate_section): Likewise.
249460484Sobrien	(elf_backend_relocate_section): Define.
249560484Sobrien
249660484SobrienTue Feb 18 17:22:59 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
249760484Sobrien
249860484Sobrien	* Makefile.in, archures.c, config.bfd, configure.in, elf.c,
249960484Sobrien	reloc.c, targets.c: New target, elf-*-D30V.
250060484Sobrien
250160484Sobrien	* bfd-in2.h, configure, libbfd.h: Rebuilt.
250260484Sobrien
250360484Sobrien	* cpu-d30v.c, elf32-d30v.c: New files.
250460484Sobrien
250560484SobrienTue Feb 18 15:31:48 1997  Fred Fish  <fnf@cygnus.com>
250660484Sobrien
250760484Sobrien	* reloc.c (struct reloc_howto_struct): Fix typo in comment.
250860484Sobrien	* bfd-in2.h: Regenerated.
250960484Sobrien	* coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
251060484Sobrien	(rtype2howto): Add function.
251160484Sobrien	(tic80_howto_table): Add.
251260484Sobrien
251360484SobrienTue Feb 18 11:41:00 1997  Dawn Perchik  <dawn@cygnus.com>
251460484Sobrien
251560484Sobrien	* sysdep.h: Don't define errno in MSVC if error.h is included.
251660484Sobrien
251760484SobrienTue Feb 18 10:04:13 1997  Jeffrey A Law  (law@cygnus.com)
251860484Sobrien
251960484Sobrien	* elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
252060484Sobrien	is initialized before it is used.
252160484Sobrien
252260484SobrienMon Feb 17 11:28:40 1997  Ian Lance Taylor  <ian@cygnus.com>
252360484Sobrien
252460484Sobrien	* hp300hpux.c (convert_sym_type): Don't convert a secondary common
252560484Sobrien	symbol into a weak undefined symbol; leave it as a common symbol.
252660484Sobrien
252760484SobrienFri Feb 14 19:08:03 1997  Ian Lance Taylor  <ian@cygnus.com>
252860484Sobrien
252960484Sobrien	* elflink.h (elf_link_add_object_symbols): Don't issue a warning
253060484Sobrien	about a symbol defined in a dynamic object if it has already been
253160484Sobrien	defined in a regular object.
253260484Sobrien
253360484SobrienThu Feb 13 20:53:22 1997  Klaus Kaempf  (kkaempf@progis.de)
253460484Sobrien
253560484Sobrien	* makefile.vms: Add gcc flags to allow compiling with current gcc
253660484Sobrien	snapshot
253760484Sobrien	(targmatch.h): New dependency.
253860484Sobrien
253960484Sobrien	* reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
254060484Sobrien	openVMS/Alpha.
254160484Sobrien	* evax.h (ALPHA_R_CODEADDR): New relocation.
254260484Sobrien	* evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
254360484Sobrien	openVMS/Alpha.
254460484Sobrien	* evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
254560484Sobrien	relocation.
254660484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
254760484Sobrien
254860484Sobrien	Restrict symbol length to 64 bytes, case preserving:
254960484Sobrien	* evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
255060484Sobrien	* evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
255160484Sobrien	(_bfd_evax_length_hash_symbol): Added.
255260484Sobrien	* evax-etir.c (_bfd_evax_write_etir): Call
255360484Sobrien	_bfd_evax_length_hash_symbol before output of symbol.
255460484Sobrien	* evax-egsd.c (_bfd_evax_write_egsd): Likewise.
255560484Sobrien	* evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
255660484Sobrien
255760484Sobrien	* evax-emh.c: Output filename to object file without path.
255860484Sobrien
255960484Sobrien	* evax-egsd.c: New sections for local and global commons.
256060484Sobrien
256160484Sobrien	* evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
256260484Sobrien	evax-misc.c, evax.h: Remove 8 bit characters from copyright
256360484Sobrien	notices.  Replace AXP with Alpha.
256460484Sobrien
256560484SobrienWed Feb 12 18:10:30 1997  Ian Lance Taylor  <ian@cygnus.com>
256660484Sobrien
256760484Sobrien	* sunos.c (sunos_create_dynamic_sections): We need the dynamic
256860484Sobrien	sections if we are creating a shared library.
256960484Sobrien
257060484SobrienTue Feb 11 15:45:43 1997  Doug Evans  <dje@canuck.cygnus.com>
257160484Sobrien
257260484Sobrien	* configure.host (i386-windows): Don't set host64=true.
257360484Sobrien
257460484SobrienTue Feb 11 15:27:32 1997  Ian Lance Taylor  <ian@cygnus.com>
257560484Sobrien
257660484Sobrien	* elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
257760484Sobrien	(elf_mips16_gprel_howto): New static variable.
257860484Sobrien	(mips16_gprel_reloc): New static function.
257960484Sobrien	(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
258060484Sobrien	(mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
258160484Sobrien	(mips_elf_relocate_section): Handle R_MIPS16_GPREL.
258260484Sobrien	* reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
258360484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
258460484Sobrien
258560484SobrienMon Feb 10 23:25:00 1997  Doug Evans  <dje@seba.cygnus.com>
258660484Sobrien
258760484Sobrien	* elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
258860484Sobrien	for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
258960484Sobrien
259060484SobrienFri Feb  7 12:39:11 1997  Ian Lance Taylor  <ian@cygnus.com>
259160484Sobrien
259260484Sobrien	* elflink.h (elf_link_input_bfd): If we've discarded a section,
259360484Sobrien	the output section will be the absolute section; don't print an
259460484Sobrien	assertion message for that case when doing a relocateable link.
259560484Sobrien
259660484SobrienThu Feb  6 16:55:43 1997  Ian Lance Taylor  <ian@cygnus.com>
259760484Sobrien
259860484Sobrien	* elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
259960484Sobrien	(struct mips_elf_link_hash_entry): Add new fields fn_stub,
260060484Sobrien	need_fn_sub, call_stub, and call_fp_stub.
260160484Sobrien	(struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
260260484Sobrien	(mips_elf_link_hash_newfunc): Initialize new fields.
260360484Sobrien	(mips_elf_link_hash_table_create): Likewise.
260460484Sobrien	(mips_elf_relocate_section): Redirect relocations to use mips16
260560484Sobrien	stubs when appropriate.
260660484Sobrien	(mips_elf_check_relocs): Attach stub sections to the appropriate
260760484Sobrien	symbol.  Set need_fn_stub when appropriate.
260860484Sobrien	(mips_elf_always_size_sections): New static function.
260960484Sobrien	(mips_elf_check_mips16_stubs): New static function.
261060484Sobrien	(elf_backend_always_size_sections): Define.
261160484Sobrien	* elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
261260484Sobrien
261360484Sobrien	* elflink.h (elf_link_input_bfd): Discard local symbols that are
261460484Sobrien	attached to sections which are not being included in the link.
261560484Sobrien
261660484SobrienWed Feb  5 13:20:17 1997  Ian Lance Taylor  <ian@cygnus.com>
261760484Sobrien
261860484Sobrien	* cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
261960484Sobrien	symbol value when computing the addend for a pc_relative
262060484Sobrien	pcrel_offset reloc.
262160484Sobrien
262260484SobrienMon Feb  3 11:54:06 1997  Ian Lance Taylor  <ian@cygnus.com>
262360484Sobrien
262460484Sobrien	* cofflink.c (_bfd_coff_generic_relocate_section): If doing a
262560484Sobrien	relocateable link, just skip pc_relative pcrel_offset relocs.
262660484Sobrien	* coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
262760484Sobrien	structure for an ARM26 reloc which can be resolved.
262860484Sobrien	(coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
262960484Sobrien	reloc can be resolved.
263060484Sobrien
263160484Sobrien	* coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
263260484Sobrien	error in overflow check for R_RELBYTE.
263360484Sobrien
263460484SobrienFri Jan 31 14:07:27 1997  Ian Lance Taylor  <ian@cygnus.com>
263560484Sobrien
263660484Sobrien	* ieee.c (ieee_slurp_section_data): Pick up the start address.
263760484Sobrien	From Mark Rasin <mark.rasin@telrad.co.il>.
263860484Sobrien
263960484Sobrien	* aoutx.h (aout_link_write_symbols): Don't apply discard_l to
264060484Sobrien	debugging symbols.
264160484Sobrien
264260484SobrienWed Jan 29 00:00:49 1997  Jeffrey A Law  (law@cygnus.com)
264360484Sobrien
264460484Sobrien	* elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
264560484Sobrien	(elf_mn10200_howto_table): Likewise.
264660484Sobrien	(mn10200_reloc_map): Likewise.
264760484Sobrien
264860484SobrienMon Jan 27 12:07:35 1997  Doug Evans  <dje@seba.cygnus.com>
264960484Sobrien
265060484Sobrien	* reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
265160484Sobrien	* bfd-in2.h, libbfd.h: Regenerated.
265260484Sobrien	* elf32-m32r.c: Add support for them.
265360484Sobrien
265460484SobrienMon Jan 27 12:25:02 1997  Ian Lance Taylor  <ian@cygnus.com>
265560484Sobrien
265660484Sobrien	* aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
265760484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
265860484Sobrien	* elf32-v850.c (v850_elf_final_link_relocate): Remove used
265960484Sobrien	r_format and r_pcrel.  Always return a value.
266060484Sobrien	* riscix.c (MY_final_link_callback): Define to dummy value.
266160484Sobrien
266260484Sobrien	* elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
266360484Sobrien	relocations against the text segment, look up the output name of
266460484Sobrien	the reloc section.
266560484Sobrien	* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
266660484Sobrien	* elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
266760484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
266860484Sobrien	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
266960484Sobrien	* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
267060484Sobrien
267160484SobrienWed Jan 22 15:40:28 1997  Fred Fish  <fnf@cygnus.com>
267260484Sobrien
267360484Sobrien	* coff-tic80.c (tic80coff_vec): Use correct data put/get
267460484Sobrien	routines for little endian data.
267560484Sobrien	* coffcode.h (coff_write_object_contents): Set magic to
267660484Sobrien 	TIC80_ARCH_MAGIC for TIc80.
267760484Sobrien
267860484SobrienTue Jan 21 12:32:43 1997  Fred Fish  <fnf@cygnus.com>
267960484Sobrien
268060484Sobrien	* coff-tic80.c (tic80coff_vec): Change to little endian data
268160484Sobrien	as the default.
268260484Sobrien
268360484SobrienThu Jan 16 17:45:57 1997  Ian Lance Taylor  <ian@cygnus.com>
268460484Sobrien
268560484Sobrien	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
268660484Sobrien	auxiliary_filters parameter to be const char * const *.  Accept a
268760484Sobrien	NULL terminated array.
268860484Sobrien	* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
268960484Sobrien	(bfd_elf32_size_dynamic_sections): Update declaration.
269060484Sobrien	* bfd-in2.h: Rebuild.
269160484Sobrien
269260484SobrienWed Jan 15 11:21:32 1997  Ian Lance Taylor  <ian@cygnus.com>
269360484Sobrien
269460484Sobrien	* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
269560484Sobrien	NOTYPE symbol in a text section as a FUNC symbol.
269660484Sobrien
269760484Sobrien	* coffcode.h (coff_compute_section_file_positions): Force
269860484Sobrien	relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
269960484Sobrien
270060484SobrienTue Jan 14 08:46:33 1997  Doug Evans  <dje@canuck.cygnus.com>
270160484Sobrien
270260484Sobrien	* libaout.h (machine_type): Reserve several values for sparclet.
270360484Sobrien
270460484SobrienMon Jan 13 22:39:08 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
270560484Sobrien
270660484Sobrien	* config.bfd (tic80-*-*): Don't require 'coff'.
270760484Sobrien
270860484SobrienMon Jan 13 19:36:25 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
270960484Sobrien
271060484Sobrien	* elf32-v850.c (v850_elf_howto_table): Set the special_function
271160484Sobrien	table to v850_elf_reloc for all non-standard relocations.
271260484Sobrien	(v850_elf_check_relocs): Add check for h being non-null.
271360484Sobrien	(v850_elf_reloc): Add  R_V850_ZDA_OFFSET support.  Use switch
271460484Sobrien	statement instead of multiple ifs.
271560484Sobrien	(v850_elf_relocate_section): Fix up error message, don't just call
271660484Sobrien	abort.
271760484Sobrien
271860484SobrienMon Jan  6 13:28:35 1997  Jeffrey A Law  (law@cygnus.com)
271960484Sobrien
272060484Sobrien	* elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
272160484Sobrien	Use bfd_elf_generic_reloc as special function for all relocs.
272260484Sobrien	(bfd_elf32_mn10200_reloc): Remove unnecessary function.
272360484Sobrien
272460484Sobrien	* elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
272560484Sobrien	24bit pc-relative reloc.
272660484Sobrien
272760484SobrienFri Jan  3 16:33:00 1997  Fred Fish  <fnf@cygnus.com>
272860484Sobrien
272960484Sobrien	* Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
273060484Sobrien	* coff-tic80.c (tic80coff_vec): Data byte order is big endian and
273160484Sobrien	header byte order is little endian.  Use correct bfd_get and
273260484Sobrien	bfd_put routines for little endian headers.
273360484Sobrien	* coffcode.h (coff_set_arch_mach_hook): Set arch to
273460484Sobrien	bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
273560484Sobrien
273660484SobrienFri Jan  3 16:54:08 1997  Jeffrey A Law  (law@cygnus.com)
273760484Sobrien
273860484Sobrien	* reloc.c: Add BFD_RELOC_24.
273960484Sobrien	* elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
274060484Sobrien	(elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
274160484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
274260484Sobrien
274360484SobrienFri Jan  3 16:58:31 1997  Richard Henderson  <rth@tamu.edu>
274460484Sobrien
274560484Sobrien	elf64-alpha multiple .got rewrite:
274660484Sobrien
274760484Sobrien	* elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
274860484Sobrien	(bfd_elf*_mkobject): Don't define here ...
274960484Sobrien	* elfxx-target.h: ... but rather here.  Default always_size_sections
275060484Sobrien	hook to NULL.
275160484Sobrien	* elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
275260484Sobrien	what the #defines in elf-bfd.h transmuted it to anyway.
275360484Sobrien
275460484Sobrien	* section.c: Add SEC_LINKER_CREATED flag.
275560484Sobrien	* bfd-in2.h: Rebuild.
275660484Sobrien	* elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
275760484Sobrien	relocation section flags.
275860484Sobrien	(elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
275960484Sobrien	SEC_IN_MEMORY to recognize generated bits.
276060484Sobrien	* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
276160484Sobrien	Likewise.
276260484Sobrien	* elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
276360484Sobrien	mips_elf_create_compact_rel_section, mips_elf_create_got_section,
276460484Sobrien	mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
276560484Sobrien	* elf32-ppc.c (ppc_elf_create_linker_section,
276660484Sobrien	ppc_elf_size_dynamic_sections): Likewise.
276760484Sobrien	* elf32-sparc.c (elf32_sparc_check_relocs,
276860484Sobrien	elf32_sparc_size_dynamic_sections): Likewise.
276960484Sobrien	* elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
277060484Sobrien	section flags.
277160484Sobrien	(_bfd_elf_create_dynamic_sections): Likewise.
277260484Sobrien	(_bfd_elf_make_linker_section_rela): Likewise.
277360484Sobrien	* elflink.h (elf_link_create_dynamic_sections): Likewise.
277460484Sobrien	(bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
277560484Sobrien	(elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
277660484Sobrien	to identify generated bits.
277760484Sobrien	(elf_link_input_bfd): Likewise.
277860484Sobrien
277960484Sobrien	* elf64-alpha.c: Rewrite everything touching relocations.
278060484Sobrien
278160484SobrienFri Jan  3 11:42:53 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
278260484Sobrien
278360484Sobrien	* elf32-v850.c (all functions and static variables): Go through
278460484Sobrien	and regularize names to be of the form v850_elf_<xxx>.
278560484Sobrien	(toplevel): Include <elf/v850.h>.
278660484Sobrien	(enum reloc_type): Move to include/elf/v850.h.
278760484Sobrien	(v850_elf_check_relocs): For common variables, if the variable is
278860484Sobrien	referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
278960484Sobrien	into the appropriate section.
279060484Sobrien	(elf_backend_check_relocs): Define.
279160484Sobrien
279260484SobrienTue Dec 31 15:15:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
279360484Sobrien
279460484Sobrien	* elf32-v850.c (elf_v850_howto_table): Fix some spacing.
279560484Sobrien
279660484SobrienTue Dec 31 14:44:50 1996  Ian Lance Taylor  <ian@cygnus.com>
279760484Sobrien
279860484Sobrien	* config.bfd (mips*el-*-linux*): New target.
279960484Sobrien	(mips*-*-linux*): New target.
280060484Sobrien
280160484Sobrien	* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
280260484Sobrien	Return a useful value.
280360484Sobrien
280460484Sobrien	* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
280560484Sobrien
280660484Sobrien	* configure.in: Check ac_cv_func_mmap_fixed_mapped, not
280760484Sobrien	ac_cv_func_mmap.
280860484Sobrien	* configure: Rebuild.
280960484Sobrien	* configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
281060484Sobrien	ac_cv_func_mmap in bfd/configure.host.
281160484Sobrien
281260484Sobrien	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
281360484Sobrien	filter_shlib and auxiliary_filter_shlib parameters.
281460484Sobrien	* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
281560484Sobrien	DT_FILTER.
281660484Sobrien	* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
281760484Sobrien	(bfd_elf64_size_dynamic_sections): Likewise.
281860484Sobrien	* bfd-in2.h: Rebuild.
281960484Sobrien
282060484SobrienMon Dec 30 18:48:52 1996  Ian Lance Taylor  <ian@cygnus.com>
282160484Sobrien
282260484Sobrien	* xcofflink.c (xcoff_build_ldsyms): When exporting all defined
282360484Sobrien	symbols, don't export a symbol which is defined by an object in an
282460484Sobrien	archive which contains shared objects.
282560484Sobrien
282660484SobrienMon Dec 30 16:12:58 1996  Fred Fish  <fnf@cygnus.com>
282760484Sobrien
282860484Sobrien	* archures.c (enum bfd_architecture): Add bfd_arch_tic80
282960484Sobrien	for TI TMS320c80 (MVP).
283060484Sobrien	(bfd_archures_list): Add bfd_tic80_arch.
283160484Sobrien	* bfd-in2.h: Regenerate by running "make headers".
283260484Sobrien
283360484SobrienSun Dec 29 16:18:52 1996  Fred Fish  <fnf@cygnus.com>
283460484Sobrien
283560484Sobrien	* cpu-tic80.c (bfd_tic80_arch): Add struct.
283660484Sobrien	* configure.in (case $vec): Correct typo, "tb" not "tp".
283760484Sobrien	Also add cofflink.o for tic80coff_vec.
283860484Sobrien	* configure: Regenerate with autoconf.
283960484Sobrien
284060484SobrienMon Dec 30 11:54:56 1996  Ian Lance Taylor  <ian@cygnus.com>
284160484Sobrien
284260484Sobrien	* libbfd.c: Patch up the mmap code so that it is only built if BFD
284360484Sobrien	is configured with --with-mmap.
284460484Sobrien
284560484SobrienSun Dec 29 10:48:57 1996  Fred Fish  <fnf@cygnus.com>
284660484Sobrien
284760484Sobrien	* Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
284860484Sobrien	(ALL_MACHINES): Add cpu-tic80.o
284960484Sobrien	(cpu-tic80.o, coff-tic80.o): Add dependencies.
285060484Sobrien	* coff-tic80.c: Add skeleton, cloned from another coff config.
285160484Sobrien	* coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
285260484Sobrien 	for TIc80.
285360484Sobrien
285460484SobrienFri Dec 27 20:56:41 1996  Fred Fish  <fnf@cygnus.com>
285560484Sobrien
285660484Sobrien	* TODO: Correct a misspelling.
285760484Sobrien	* coff-tic80.c: New file for TI TMS320C80 (MVP).
285860484Sobrien	* cpu-tic80.c: New file for TI TMS320C80 (MVP).
285960484Sobrien	* configure.in (case $vec): Add tic80coff_vec entry.
286060484Sobrien	* configure: Regenerate with autoconf.
286160484Sobrien	* archures.c (bfd_tic80_arch): Declare.
286260484Sobrien	* bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
286360484Sobrien	* config.bfd (case ${targ}): Add tic80*-*-coff* target.
286460484Sobrien	* targets.c (tic80coff_vec): Add decl as extern bfd_target.
286560484Sobrien	(bfd_target_vector): Add tic80coff_vec entry.
286660484Sobrien
286760484SobrienFri Dec 27 11:48:12 1996  H.J. Lu  <hjl@lucon.org>
286860484Sobrien
286960484Sobrien	* elflink.h (elf_buckets): Add some more values for larger
287060484Sobrien	binaries.
287160484Sobrien
287260484SobrienThu Dec 26 18:36:54 1996  Ian Lance Taylor  <ian@cygnus.com>
287360484Sobrien
287460484Sobrien	* Makefile.in (install): Move subdir_do out of conditional. From
287560484Sobrien	Fred Fish <fnf@cygnus.com>.
287660484Sobrien
287760484SobrienWed Dec 18 10:04:30 1996  Jeffrey A Law  (law@cygnus.com)
287860484Sobrien
287960484Sobrien	* elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
288060484Sobrien	32 bit relocs.
288160484Sobrien	(elf_mn10200_howto_table): Likewise.
288260484Sobrien	(mn10200_reloc_map): Likewise.
288360484Sobrien
288460484SobrienTue Dec 17 11:09:36 1996  Ian Lance Taylor  <ian@cygnus.com>
288560484Sobrien
288660484Sobrien	* elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
288760484Sobrien	mips16 symbol during the link.
288860484Sobrien	(mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
288960484Sobrien	mips16 symbol.
289060484Sobrien	(mips_elf_link_output_symbol_hook): New static function.
289160484Sobrien	(elf_backend_link_output_symbol_hook): Define.
289260484Sobrien
289360484Sobrien	* elf.c (bfd_elf_print_symbol): Print the st_other field if it is
289460484Sobrien	not zero.
289560484Sobrien
289660484SobrienMon Dec 16 14:38:39 1996  Ian Lance Taylor  <ian@cygnus.com>
289760484Sobrien
289860484Sobrien	* elf.c (bfd_section_from_shdr): Don't check for reloc sections
289960484Sobrien	against SEC_DEBUGGING sections here (revert patch of December 5).
290060484Sobrien	* elfcode.h (elf_object_p): Check for them here, instead.
290160484Sobrien
290260484SobrienSun Dec 15 14:46:06 1996  Ian Lance Taylor  <ian@cygnus.com>
290360484Sobrien
290460484Sobrien	* elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
290560484Sobrien	* elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
290660484Sobrien	slurp_reloc_table.
290760484Sobrien	(_bfd_elf_get_dynamic_reloc_upper_bound): New function.
290860484Sobrien	(_bfd_elf_canonicalize_dynamic_reloc): New function.
290960484Sobrien	* elf-bfd.h (struct elf_size_info): Update declaration of
291060484Sobrien	slurp_reloc_table.
291160484Sobrien	(_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
291260484Sobrien	(_bfd_elf_canonicalize_dynamic_reloc): Declare.
291360484Sobrien	* elfxx-target.h: Use new dynamic reloc routines by default.
291460484Sobrien	* elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
291560484Sobrien	parameter.
291660484Sobrien
291760484SobrienFri Dec 13 13:18:49 1996  Dan Wilder  <dan@gasboy.com>
291860484Sobrien
291960484Sobrien	* coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
292060484Sobrien	if NAMES_HAVE_UNDERSCORE is defined.
292160484Sobrien
292260484SobrienFri Dec 13 11:13:23 1996  Doug Evans  <dje@canuck.cygnus.com>
292360484Sobrien
292460484Sobrien	* libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
292560484Sobrien
292660484SobrienThu Dec 12 15:07:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
292760484Sobrien
292860484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
292960484Sobrien	supported relocs.
293060484Sobrien
293160484SobrienThu Dec 12 14:55:41 1996  Ian Lance Taylor  <ian@cygnus.com>
293260484Sobrien
293360484Sobrien	* elflink.h (elf_link_add_object_symbols): Only add a weak
293460484Sobrien	symbol if the real definition is in the dynamic symbol table.
293560484Sobrien	After finding the real definition, then, if it is dynamic, add the
293660484Sobrien	weak symbol to the dynamic symbol table.
293760484Sobrien
293860484Sobrien	* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
293960484Sobrien
294060484Sobrien	* ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
294160484Sobrien	function.
294260484Sobrien	(ppcboot_bfd_print_private_bfd_data): Don't take the address of an
294360484Sobrien	array.
294460484Sobrien
294560484SobrienTue Dec 10 23:23:52 1996  Jeffrey A Law  (law@cygnus.com)
294660484Sobrien
294760484Sobrien	* elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
294860484Sobrien	variants.
294960484Sobrien	(elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
295060484Sobrien	(bfd_elf32_mn10300_reloc): Write data in little endian format.
295160484Sobrien	* reloc.c: Remove mn10300 big endian relocs.
295260484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
295360484Sobrien
295460484Sobrien	* elf32-mn10200.c: Update from elf32-mn10300.c.
295560484Sobrien
295660484SobrienFri Dec  6 15:18:05 1996  Jeffrey A Law  (law@cygnus.com)
295760484Sobrien
295860484Sobrien	* elf32-mn10300.c (elf_symbol_leading_char): Define.
295960484Sobrien
296060484Sobrien	* elf32-mn10300.c: Add some comments.
296160484Sobrien
296260484SobrienFri Dec  6 17:16:43 1996  Ian Lance Taylor  <ian@cygnus.com>
296360484Sobrien
296460484Sobrien	* ihex.c (ihex_scan): Always initialize buf before jumping to
296560484Sobrien	error_return.
296660484Sobrien	(ihex_read_section): Likewise.
296760484Sobrien
296860484SobrienThu Dec  5 22:29:18 1996  Jeffrey A Law  (law@cygnus.com)
296960484Sobrien
297060484Sobrien	* elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
297160484Sobrien	inplace for most relocs.
297260484Sobrien
297360484SobrienThu Dec  5 13:24:46 1996  Ian Lance Taylor  <ian@cygnus.com>
297460484Sobrien
297560484Sobrien	* elflink.h (elf_link_add_object_symbols): Calling check_relocs
297660484Sobrien	even if SEC_ALLOC is not set.
297760484Sobrien	* elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
297860484Sobrien	when deciding whether to copy a reloc into a shared object.
297960484Sobrien	(elf_i386_relocate_section): Likewise.
298060484Sobrien	* elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
298160484Sobrien	(elf32_sparc_relocate_section): Likewise.
298260484Sobrien	* elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
298360484Sobrien	reloc section if it is not set in the source section.
298460484Sobrien	* elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
298560484Sobrien	* elf.c (bfd_section_from_shdr): Mark a reloc section associated
298660484Sobrien	with a SEC_DEBUGGING section as SEC_DEBUGGING.
298760484Sobrien
298860484SobrienWed Dec  4 14:18:13 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
298960484Sobrien
299060484Sobrien	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
299160484Sobrien	expects a .got.plt until we actually create it.
299260484Sobrien
299360484SobrienMon Dec  2 12:13:51 1996  Ian Lance Taylor  <ian@cygnus.com>
299460484Sobrien
299560484Sobrien	* cofflink.c (_bfd_coff_generic_relocate_section): Print an error
299660484Sobrien	message for bfd_reloc_outofrange, rather than aborting.  From
299760484Sobrien	Philippe De Muyter <phdm@info.ucl.ac.be>.
299860484Sobrien
299960484Sobrien	* cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
300060484Sobrien	a relocateable link, don't try to process them.  From Heinz Wrobel
300160484Sobrien	<wrobel@lpr.e-technik.tu-muenchen.de>.
300260484Sobrien
300360484SobrienMon Dec  2 00:39:24 1996  Jeffrey A Law  (law@cygnus.com)
300460484Sobrien
300560484Sobrien	* elf32-mn10300.c (mn10300_info_howto): Renamed from
300660484Sobrien	mn10300_info_howto_rel.  Tweak reloc argument to be an
300760484Sobrien	Elf32_Internal_Rela.
300860484Sobrien	(USE_RELA): Define instead of USE_REL.
300960484Sobrien	(elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
301060484Sobrien
301160484SobrienSun Dec  1 00:18:59 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
301260484Sobrien
301360484Sobrien	* configure.in, configure:  Handle mips*-sgi-irix6*.
301460484Sobrien	* irix-core.c (irix_core_core_file_p):  Accept CORE_MAGICN32
301560484Sobrien	core files.
301660484Sobrien
301760484SobrienWed Nov 27 12:10:25 1996  Ian Lance Taylor  <ian@cygnus.com>
301860484Sobrien
301960484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Warn about a
302060484Sobrien	relocation against a symbol defined in a section with no output
302160484Sobrien	section.
302260484Sobrien
302360484SobrienTue Nov 26 11:07:31 1996  Ian Lance Taylor  <ian@cygnus.com>
302460484Sobrien
302560484Sobrien	* aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
302660484Sobrien	* configure, config.in: Rebuild with autoconf 2.12.
302760484Sobrien
302860484Sobrien	* elf-bfd.h (struct elf_link_hash_entry): Add other field.
302960484Sobrien	* elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
303060484Sobrien	(swap_out_syms): Set st_other from existing st_other field.
303160484Sobrien	* elflink.h (elf_link_add_object_symbols): Store st_other in hash
303260484Sobrien	table other field.
303360484Sobrien	(elf_link_output_extsym): Set the other field from the global hash
303460484Sobrien	table entry.
303560484Sobrien	* elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
303660484Sobrien	(elf_mips16_jump_howto): New static variable.
303760484Sobrien	(mips16_jump_reloc): New static function.
303860484Sobrien	(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
303960484Sobrien	(mips_info_to_howto_rel): Handle R_MIPS16_26.
304060484Sobrien	(mips_elf_relocate_section): Handle R_MIPS16_26.  Handle R_MIPS_26
304160484Sobrien	to a mips16 symbol.
304260484Sobrien	* reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
304360484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
304460484Sobrien	* cpu-mips.c (arch_info_struct): Add mips:16 entry.
304560484Sobrien
304660484SobrienMon Nov 25 11:23:32 1996  Ian Lance Taylor  <ian@cygnus.com>
304760484Sobrien
304860484Sobrien	* configure.host: Use long long for mips-sgi-irix6*.
304960484Sobrien
305060484Sobrien	* coffswap.h (coff_swap_scnhdr_out): Make line number overflow
305160484Sobrien	only a warning.  From Philippe De Muyter <phdemuyt@ulb.ac.be>.
305260484Sobrien
305360484SobrienMon Nov 25 08:52:29 1996  Jeffrey A Law  (law@cygnus.com)
305460484Sobrien
305560484Sobrien	* elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
305660484Sobrien	(enum reloc_type): Add more reloc types.
305760484Sobrien	(elf32_mn10300_howto_table): Update for new reloc types.
305860484Sobrien	(elf32_mn10300_reloc_map): Update for new reloc types.
305960484Sobrien	* reloc.c: Add some new relocs for the mn10300 series.
306060484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
306160484Sobrien
306260484SobrienSat Nov 23 13:26:18 1996  Jeffrey A Law  (law@cygnus.com)
306360484Sobrien
306460484Sobrien	* som.c (setup_sections): Don't lose for a space which has
306560484Sobrien	no data, but some symbols.
306660484Sobrien
306760484SobrienFri Nov 22 11:32:13 1996  Ian Lance Taylor  <ian@cygnus.com>
306860484Sobrien
306960484Sobrien	* sunos.c (struct sunos_link_hash_table): Add got_needed field.
307060484Sobrien	(sunos_link_hash_table_create): Initialize got_needed.
307160484Sobrien	(sunos_create_dynamic_sections): Only set .got section size if it
307260484Sobrien	is not already set.  Set got_needed.
307360484Sobrien	(bfd_sunos_size_dynamic_sections): Check got_needed.  Only set
307460484Sobrien	sdynptr, and only handle dynamic sections, if dynamic sections are
307560484Sobrien	needed.
307660484Sobrien	(sunos_scan_std_relocs): Pass false to create_dynamic_sections.
307760484Sobrien	Initialize .got section.
307860484Sobrien	(sunos_scan_ext_relocs): Likewise.
307960484Sobrien	(sunos_write_dynamic_symbol): Set up PLT entry even if this is not
308060484Sobrien	a dynamic symbol.
308160484Sobrien	(sunos_finish_dynamic_link): Check got_needed.  Only set up
308260484Sobrien	dynamic linking information if needed.
308360484Sobrien
308460484SobrienThu Nov 21 10:31:31 1996  Rob Savoye  (rob@cygnus.com)
308560484Sobrien
308660484Sobrien	* config.bfd: Added VersaDOS format to the Ericsson configuration.
308760484Sobrien
308860484SobrienWed Nov 20 16:31:31 1996  Jeffrey A Law  (law@cygnus.com)
308960484Sobrien
309060484Sobrien	* elf32-mn10300.c: Rough cut at relocs for the mn10300.
309160484Sobrien
309260484SobrienWed Nov 13 08:12:38 1996  Jeffrey A Law  (law@cygnus.com)
309360484Sobrien
309460484Sobrien	* Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
309560484Sobrien	anymore.
309660484Sobrien
309760484SobrienTue Nov 12 13:30:00 1996  Dawn Perchik  <dawn@cygnus.com>
309860484Sobrien
309960484Sobrien	* filemode.c: Include sysdep.h.
310060484Sobrien	* ihex.c: Add casts to eliminate compiler warnings.
310160484Sobrien	* sunos.c: Add casts to eliminate compiler warnings.
310260484Sobrien
310360484SobrienMon Nov 11 10:37:02 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
310460484Sobrien
310560484Sobrien	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
310660484Sobrien	section.
310760484Sobrien	(ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC.  Make
310860484Sobrien	appropriate relocations in the .so file if shared.
310960484Sobrien	(ppc_elf_relocate_section): Ditto.
311060484Sobrien
311160484SobrienTue Oct 29 15:03:02 1996  Doug Evans  <dje@canuck.cygnus.com>
311260484Sobrien
311360484Sobrien	* elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
311460484Sobrien	complain_overflow_unsigned.
311560484Sobrien
311660484SobrienTue Oct 29 12:53:46 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
311760484Sobrien
311860484Sobrien	* elf32-d10v.c (elf_d10v_howto_table): Don't complain on
311960484Sobrien	overflows for R_D10V_16 and R_D10V_18.
312060484Sobrien
312160484SobrienTue Oct 29 13:23:53 1996  Ian Lance Taylor  <ian@cygnus.com>
312260484Sobrien
312360484Sobrien	* ieee.c (ieee_write_section_part): Use LMA rather than VMA.
312460484Sobrien	(do_with_relocs): Likewise.
312560484Sobrien	(do_as_repeat): Likewise.
312660484Sobrien	(copy_expression): Likewise.
312760484Sobrien
312860484SobrienFri Oct 25 16:56:40 1996  Ian Lance Taylor  <ian@cygnus.com>
312960484Sobrien
313060484Sobrien	* ieee.c (ieee_write_external_part): Correctly record whether
313160484Sobrien	there is an external part.
313260484Sobrien
313360484SobrienThu Oct 24 14:32:52 1996  Jeffrey A Law  (law@cygnus.com)
313460484Sobrien
313560484Sobrien	* elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
313660484Sobrien	handle tda offsets for sld.w and sst.w instructions.
313760484Sobrien	Fix alignment check in sld.w and sst.w tda reloc handling.
313860484Sobrien
313960484SobrienThu Oct 24 09:08:47 1996  Stu Grossman  (grossman@critters.cygnus.com)
314060484Sobrien
314160484Sobrien	* aclocal.m4, configure:  Set USE_BINARY_FOPEN for *-*-windows.
314260484Sobrien
314360484SobrienWed Oct 23 00:53:16 1996  Jeffrey A Law  (law@cygnus.com)
314460484Sobrien
314560484Sobrien	* elf32-v850.c: Add comments about assumptions about
314660484Sobrien	char, short & long sizes.
314760484Sobrien	(elf32_v850_bfd_final_link_relocate): Fix sign extension
314860484Sobrien	problems for several relocs.
314960484Sobrien
315060484Sobrien	* elf32-v850.c (elf32_v850_howto_table): Fix typo in
315160484Sobrien	R_V850_SDA_OFFSET entry.
315260484Sobrien
315360484SobrienWed Oct 23 00:20:34 1996  Ian Lance Taylor  <ian@cygnus.com>
315460484Sobrien
315560484Sobrien	* xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
315660484Sobrien	Store import file index in ldindx.
315760484Sobrien	(xcoff_build_ldsyms): Assume that ldsym was not previously
315860484Sobrien	allocated.  For an imported symbol, copy ldindx into l_ifile.
315960484Sobrien
316060484SobrienTue Oct 22 19:20:38 1996  Jeffrey A Law  (law@cygnus.com)
316160484Sobrien
316260484Sobrien	* elf32-v850.c (elf_v850_howto_table): Fix ordering of
316360484Sobrien	R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET.  Fix various
316460484Sobrien	fields in R_V850_TDA_OFFSET.
316560484Sobrien	(elf32_v850_bfd_final_link_relocate): Tweak pc-relative
316660484Sobrien	relocs to work more like other relocs.  Handle R_V850_TDA_OFFSET
316760484Sobrien	relocations.
316860484Sobrien
316960484Sobrien	* elf32-v850.c: Include bfdlink.h.
317060484Sobrien	(bfd_elf32_v850_reloc): Return an error if we get a reloc
317160484Sobrien	we can't handle.
317260484Sobrien	(elf32_v850_bfd_final_link_relocate): New function.
317360484Sobrien	(v850_elf_relocation_section): Likewise.
317460484Sobrien	(elf_backend_relocate_section): Define.
317560484Sobrien
317660484SobrienTue Oct 22 17:22:43 1996  Ian Lance Taylor  <ian@cygnus.com>
317760484Sobrien
317860484Sobrien	* binary.c (binary_set_section_contents): Ignore sections which
317960484Sobrien	don't have SEC_LOAD and SEC_ALLOC set.
318060484Sobrien
318160484SobrienMon Oct 21 12:13:05 1996  Jeffrey A Law  (law@cygnus.com)
318260484Sobrien
318360484Sobrien	* linker.c (_bfd_generic_final_link): Avoid losing static
318460484Sobrien	symbols in the .bss section.
318560484Sobrien
318660484SobrienMon Oct 21 10:54:58 1996  Ian Lance Taylor  <ian@cygnus.com>
318760484Sobrien
318860484Sobrien	* elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
318960484Sobrien	(mips32_64bit_reloc): New static function.
319060484Sobrien	(mips_reloc_map): Add entry for BFD_RELOC_64.
319160484Sobrien	(mips_elf_relocate_section): Handle R_MIPS_64.
319260484Sobrien
319360484Sobrien	* linker.c (default_indirect_link_order): Print an error message
319460484Sobrien	when attempting to do a relocateable link with different object
319560484Sobrien	file formats, rather than calling abort.
319660484Sobrien
319760484SobrienThu Oct 17 10:43:29 1996  Doug Evans  <dje@canuck.cygnus.com>
319860484Sobrien
319960484Sobrien	* reloc.c (m32r relocs): Rename them.
320060484Sobrien	* bfd-in2.h, libbfd.h: Regenerated.
320160484Sobrien	* elf32-m32r.c: Update.
320260484Sobrien	(m32r_elf_10_pcrel_reloc): New function.
320360484Sobrien	(elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
320460484Sobrien	(elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
320560484Sobrien
320660484SobrienWed Oct 16 11:24:35 1996  Jeffrey A Law  (law@cygnus.com)
320760484Sobrien
320860484Sobrien	* linker.c (_bfd_generic_final_link): Set "linker_mark" for
320960484Sobrien	all sections that will be included in the output file.
321060484Sobrien	(_bfd_generic_link_output_symbols): Discard symbols in sections
321160484Sobrien	which are being discarded.
321260484Sobrien	* elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
321360484Sobrien	R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
321460484Sobrien	(elf_v850_howto_table): Corresponding changes.
321560484Sobrien	(elf_v850_reloc_map): Corresponding changes.
321660484Sobrien	* reloc.c: Add additional V850 relocations.
321760484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
321860484Sobrien
321960484Sobrien	* elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
322060484Sobrien	no longer want in pc-relative relocs.
322160484Sobrien
322260484SobrienTue Oct 15 22:17:37 1996  Jeffrey A Law  (law@cygnus.com)
322360484Sobrien
322460484Sobrien	* elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
322560484Sobrien	accept a reloc against an undefined sybmol!
322660484Sobrien
322760484SobrienTue Oct 15 16:17:28 1996  Stu Grossman  (grossman@critters.cygnus.com)
322860484Sobrien
322960484Sobrien	* elf32-v850.c:  Define elf_symbol_leading_char to be '_'.
323060484Sobrien
323160484SobrienTue Oct 15 12:40:41 1996  Ian Lance Taylor  <ian@cygnus.com>
323260484Sobrien
323360484Sobrien	* VERSION: Bump for new relocation.
323460484Sobrien
323560484Sobrien	* hosts/i386bsd.h: If NBPG is not defined, define it as
323660484Sobrien	PAGE_SIZE, for recent versions of FreeBSD.
323760484Sobrien
323860484SobrienMon Oct 14 12:37:26 1996  Ian Lance Taylor  <ian@cygnus.com>
323960484Sobrien
324060484Sobrien	* configure.host: Use `long long' as the 64 bit type on a Solaris
324160484Sobrien	host, since both gcc and the SunPRO compilers support it.
324260484Sobrien
324360484SobrienMon Oct 14 11:17:24 1996  Richard Henderson  <rth@tamu.edu>
324460484Sobrien
324560484Sobrien	* reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL.  It was a
324660484Sobrien	mistake to have reused the ECOFF LITERAL for ELF since they have
324760484Sobrien	different semantics.
324860484Sobrien	* elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
324960484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
325060484Sobrien
325160484Sobrien	* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
325260484Sobrien	section overflow.
325360484Sobrien
325460484Sobrien	* elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
325560484Sobrien	dynamic relocation for an undefweak symbol when we are building
325660484Sobrien	a static executable.
325760484Sobrien
325860484SobrienThu Oct 10 11:15:06 1996  Stan Shebs  <shebs@andros.cygnus.com>
325960484Sobrien
326060484Sobrien	* mpw-make.sed (config.bfd, targmatch.sed): Edit references to
326160484Sobrien	point explicitly to srcdir.
326260484Sobrien	(targmatch.h): Edit references to point explicitly to objdir.
326360484Sobrien
326460484SobrienThu Oct 10 14:14:23 1996  Ian Lance Taylor  <ian@cygnus.com>
326560484Sobrien
326660484Sobrien	* config.bfd: When setting targ_cpu, don't get confused by
326760484Sobrien	linux-gnu.
326860484Sobrien
326960484SobrienTue Oct  8 08:51:19 1996  Stu Grossman  (grossman@critters.cygnus.com)
327060484Sobrien
327160484Sobrien	* configure.host:  Add support for windows host (a build done
327260484Sobrien	under the Microsoft build environment).
327360484Sobrien
327460484SobrienTue Oct  8 11:40:16 1996  Ian Lance Taylor  <ian@cygnus.com>
327560484Sobrien
327660484Sobrien	* elflink.h (elf_link_add_object_symbols): If a symbol is a weak
327760484Sobrien	definition in a dynamic object, add it to the dynamic symbol table
327860484Sobrien	if any dynamic object mentions it.  Reverts part of last patch.
327960484Sobrien
328060484Sobrien	* sunos.c (struct sunos_link_hash_table): Add got_base field.
328160484Sobrien	(sunos_link_hash_table_create): Initialize got_base.
328260484Sobrien	(bfd_sunos_size_dynamic_sections): If the .got section is more
328360484Sobrien	than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
328460484Sobrien	0x1000.
328560484Sobrien	(sunos_check_dynamic_reloc): Subtract got_base from a base
328660484Sobrien	relative relocation.
328760484Sobrien
328860484Sobrien	* elf32-mips.c (elf_mips_isa): New static function.
328960484Sobrien	(_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
329060484Sobrien	-mips1 and -mips2 code together, or -mips3 and -mips4 code.
329160484Sobrien
329260484SobrienMon Oct  7 11:44:17 1996  Ian Lance Taylor  <ian@cygnus.com>
329360484Sobrien
329460484Sobrien	* archive.c (do_slurp_coff_armap): Only treat archive as little
329560484Sobrien	endian for i960 COFF.
329660484Sobrien
329760484SobrienFri Oct  4 13:49:01 1996  Ian Lance Taylor  <ian@cygnus.com>
329860484Sobrien
329960484Sobrien	* coffcode.h (coff_compute_section_file_positions): Adjust sofar
330060484Sobrien 	by the change in size of the section when EXEC_P is not set.
330160484Sobrien
330260484Sobrien	* coff-m68k.c (coff_rtype_to_howto): Define if not defined.
330360484Sobrien	(m68kcoff_rtype_to_howto): New static function.
330460484Sobrien	* cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
330560484Sobrien	VMA to the addend for a PC relative reloc.
330660484Sobrien
330760484Sobrien	* dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
330860484Sobrien	HP/UX 10.20.
330960484Sobrien	* Makefile.in: Rebuild dependencies.
331060484Sobrien
331160484Sobrien	* dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
331260484Sobrien	som.h is included.
331360484Sobrien
331460484SobrienFri Oct  4 11:41:39 1996  Jeffrey A Law  (law@cygnus.com)
331560484Sobrien
331660484Sobrien	* Makefile.in: Remove explicit dependencies for mn10200 and
331760484Sobrien	mn10300 files.
331860484Sobrien	(ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
331960484Sobrien	(BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
332060484Sobrien	(dependencies): Rebuilt.
332160484Sobrien
332260484SobrienThu Oct  3 16:57:51 1996  Ian Lance Taylor  <ian@cygnus.com>
332360484Sobrien
332460484Sobrien	* cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
332560484Sobrien	during this function.
332660484Sobrien
332760484Sobrien	* elflink.c (_bfd_elf_create_linker_section): Only use an existing
332860484Sobrien	section if the flags are compatible.
332960484Sobrien
333060484Sobrien	* configure.in: Add havevecs, and put it in tdefaults.
333160484Sobrien	* mpw-config.in: Likewise.
333260484Sobrien	* configure: Rebuild.
333360484Sobrien	* targmatch.sed: New file; a sed script to build targmatch.h from
333460484Sobrien	config.bfd.
333560484Sobrien	* config.bfd: Add #if, #endif, and comments for targmatch.h.
333660484Sobrien	* targets.c: Include "fnmatch.h".
333760484Sobrien	(struct targmatch): Define.
333860484Sobrien	(bfd_target_match): Define by including targmatch.h.
333960484Sobrien	(bfd_find_target): If the target is not found by name, search for
334060484Sobrien	it as a configuration triplet.
334160484Sobrien	* Makefile.in: Rebuild dependencies.
334260484Sobrien 	(BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
334360484Sobrien	i386dynix.o, m68k4knetbsd.o, and riscix.o.
334460484Sobrien	(BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
334560484Sobrien	hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
334660484Sobrien	(HFILES): Add targmatch.h.  Also, alphabetize and reindent.
334760484Sobrien	(CFILES): Remove i386dynix.c and hp300bsd.c.
334860484Sobrien	(targmatch.h): New target.
334960484Sobrien	(do_clean): Remove targmatch.h.
335060484Sobrien
335160484Sobrien	* configure.in: Add BFD_NEED_DECLARATION(getenv).
335260484Sobrien	* acconfig.h: Add NEED_DECLARATION_GETENV.
335360484Sobrien	* configure, config.in: Rebuild.
335460484Sobrien	* sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
335560484Sobrien	* aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
335660484Sobrien
335760484SobrienThu Oct  3 09:29:09 1996  Jeffrey A Law  (law@cygnus.com)
335860484Sobrien
335960484Sobrien	* cpu-mn10x00.c, elf32-mn10x00: Removed.
336060484Sobrien	* cpu-mn10200.c, cpu-mn10300.c: New files.
336160484Sobrien	* elf32-mn10200.c, elf32-mn10300.c: New files.
336260484Sobrien	* Makefile.in: Break mn10x00 support into two separate
336360484Sobrien	configurations, mn10200 and mn10300.
336460484Sobrien	* archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
336560484Sobrien	* bfd-in2.h, configure: Rebuilt.
336660484Sobrien
336760484SobrienThu Oct  3 15:38:19 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
336860484Sobrien
336960484Sobrien	* Makefile.in (do_clean): Move config.log to do_distclean.
337060484Sobrien
337160484SobrienWed Oct  2 21:40:55 1996  Jeffrey A Law  (law@cygnus.com)
337260484Sobrien
337360484Sobrien	* cpu-mn10x00.c, elf32-mn10x00.c: New files.
337460484Sobrien	* Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
337560484Sobrien	(BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
337660484Sobrien	(elf32-mn10x00.o): Add dependencies.
337760484Sobrien	* archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
337860484Sobrien	(bfd_mn10x00_arch): Declare.
337960484Sobrien	(bfd_archures_list): Add bfd_mn10x00_arch.
338060484Sobrien	* config.bfd: Add mn10x00-*-*.
338160484Sobrien	* configure.in: Add bfd_elf32_mn10x00_vec.
338260484Sobrien	* elf.c (prep_headers): Handle bfd_arch_mn10x00.
338360484Sobrien	* targets.c (bfd_elf32_mn10x00_vec): Declare.
338460484Sobrien	(bfd_target_vector): Add bfd_elf32_mn10x00_vec.
338560484Sobrien	* bfd-in2.h, configure: Rebuilt.
338660484Sobrien
338760484SobrienWed Oct  2 15:46:45 1996  Klaus Kaempf  <kkaempf@progis.de>
338860484Sobrien
338960484Sobrien	openVMS/Alpha: Provide filename and case_hack flags via
339060484Sobrien	symbol table from gas.
339160484Sobrien	Add case_hack code for symbol output from vax/vms.
339260484Sobrien	* evax-alpha.c (evax_initialize): Remove filename handling,
339360484Sobrien	filename is provided via symbol table.
339460484Sobrien	(evax_get_symtab): Use local symbol count when setting up table.
339560484Sobrien	* evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
339660484Sobrien	debugging.
339760484Sobrien	(_bfd_evax_write_egsd): Skip file name symbol.
339860484Sobrien	* evax-emh.c (get_vms_time_string): Local function now.
339960484Sobrien	(_bfd_evax_write_emh): Extract source filename and case_hack flags
340060484Sobrien	from symbol table.
340160484Sobrien	* evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
340260484Sobrien	through _bfd_evax_case_hack_symbol.
340360484Sobrien	* evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
340460484Sobrien	functions.
340560484Sobrien	(_bfd_evax_basename): Removed.
340660484Sobrien	(_bfd_get_vms_time_string): Moved to evax-emh.c.
340760484Sobrien	* evax.h (evax_private_data_struct): Remove filename.
340860484Sobrien	(flag_hash_long_names, flag_show_after_trunc,
340960484Sobrien	flag_no_hash_mixed_case, vms_name_mapping): New flags for
341060484Sobrien	vms_case_hack.
341160484Sobrien
341260484SobrienWed Oct  2 12:02:02 1996  Ian Lance Taylor  <ian@cygnus.com>
341360484Sobrien
341460484Sobrien	* freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
341560484Sobrien	(N_GETMID_NET, N_GETFLAG_NET): Likewise.
341660484Sobrien	(NO_SWAP_MAGIC): Don't define.
341760484Sobrien	(SWAP_MAGIC): Define.
341860484Sobrien
341960484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
342060484Sobrien	no hash table entry for a global symbol.
342160484Sobrien
342260484SobrienTue Oct  1 16:14:22 1996  Joel Sherrill  <joel@oarcorp.com>
342360484Sobrien
342460484Sobrien	* config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
342560484Sobrien
342660484SobrienTue Oct  1 12:31:39 1996  Ian Lance Taylor  <ian@cygnus.com>
342760484Sobrien
342860484Sobrien	* cofflink.c (coff_link_add_symbols): Don't override a meaningful
342960484Sobrien	symbol type with T_NULL.  Warn if symbol type changes.  Based on
343060484Sobrien	patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
343160484Sobrien
343260484Sobrien	* elflink.h (elf_link_add_object_symbols): Only put a symbol from
343360484Sobrien	a dynamic object in the dynamic symbol table if it is referenced
343460484Sobrien	or defined by a regular object.
343560484Sobrien
343660484SobrienFri Sep 27 18:41:07 1996  Stu Grossman  (grossman@critters.cygnus.com)
343760484Sobrien
343860484Sobrien	* elf32-v850.c (bfd_elf32_v850_is_local_label):  New function to
343960484Sobrien	remove dwarf local labels.  Shrinks binaries by a factor of 3!
344060484Sobrien
344160484SobrienMon Sep 23 13:33:00 1996  Ian Lance Taylor  <ian@cygnus.com>
344260484Sobrien
344360484Sobrien	* elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
344460484Sobrien	by hand, rather than by calling bfd_make_section.
344560484Sobrien
344660484SobrienMon Sep 23 09:23:41 1996  Doug Evans  <dje@seba.cygnus.com>
344760484Sobrien
344860484Sobrien	* reloc.c: Rename m32r relocs.
344960484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
345060484Sobrien	* elf32-m32r.c: Update.
345160484Sobrien
345260484SobrienFri Sep 20 11:43:43 1996  Ian Lance Taylor  <ian@cygnus.com>
345360484Sobrien
345460484Sobrien	* aoutx.h (aout_link_input_section_ext): When doing a relocateable
345560484Sobrien	link, adjust the symbol index of a base relative reloc.  Don't
345660484Sobrien	change the addend of a PC relative reloc if pcrel_offset is set.
345760484Sobrien	* sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
345860484Sobrien	a relocateable link.
345960484Sobrien
346060484Sobrien	* reloc.c (bfd_perform_relocation): Apply the relocation even if
346160484Sobrien	it is zero, in case src_mask matters.
346260484Sobrien	(bfd_install_relocation): Likewise.
346360484Sobrien
346460484SobrienThu Sep 19 11:03:06 1996  Ian Lance Taylor  <ian@cygnus.com>
346560484Sobrien
346660484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Always initialize
346760484Sobrien	keep_syms.
346860484Sobrien 	(_bfd_xcoff_bfd_final_link): Don't set target_index
346960484Sobrien	to an uninitialized value.
347060484Sobrien
347160484SobrienTue Sep 17 14:18:31 1996  Ian Lance Taylor  <ian@cygnus.com>
347260484Sobrien
347360484Sobrien	* coffcode.h (coff_slurp_line_table): Warn about illegal symbol
347460484Sobrien	indices, rather than crashing.
347560484Sobrien	(coff_slurp_reloc_table): Likewise.  Check whether the howto field
347660484Sobrien	is NULL.
347760484Sobrien	* coff-sh.c (sh_relocate_section): Check for an illegal symbol
347860484Sobrien	index.
347960484Sobrien
348060484SobrienMon Sep 16 12:39:36 1996  Ian Lance Taylor  <ian@cygnus.com>
348160484Sobrien
348260484Sobrien	* coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
348360484Sobrien 	reloc to 0.
348460484Sobrien	(coff_arm_adjust_symndx): New static function.
348560484Sobrien	(coff_adjust_symndx): Define.
348660484Sobrien
348760484Sobrien	* srec.c (srec_scan): Accept multiple symbols on a single line.
348860484Sobrien	From Pascal Martin <pmartin@alsys.com>.
348960484Sobrien
349060484Sobrien	* README: New file.
349160484Sobrien
349260484SobrienFri Sep 13 14:32:42 1996  Doug Evans  <dje@canuck.cygnus.com>
349360484Sobrien
349460484Sobrien	* aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
349560484Sobrien	(sunos_merge_private_bfd_data): New function.
349660484Sobrien
349760484SobrienFri Sep 13 15:50:57 1996  Ian Lance Taylor  <ian@cygnus.com>
349860484Sobrien
349960484Sobrien	* bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
350060484Sobrien	than input BFD.
350160484Sobrien	(bfd_merge_private_bfd_data): Likewise.
350260484Sobrien	* section.c (bfd_copy_private_section_data): Likewise.
350360484Sobrien	* syms.c (bfd_copy_private_symbol_data): Likewise.
350460484Sobrien	* bfd-in2.h: Rebuild.
350560484Sobrien	* aout-target.h (MY_bfd_copy_private_section_data): Check that
350660484Sobrien	both BFD's are the right flavour.
350760484Sobrien	* ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
350860484Sobrien	* elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
350960484Sobrien	* elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
351060484Sobrien	(_bfd_mips_elf_merge_private_bfd_data): Likewise.
351160484Sobrien	* elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
351260484Sobrien	(ppc_elf_merge_private_bfd_data): Likewise.
351360484Sobrien	* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
351460484Sobrien	* peicode.h (pe_bfd_copy_private_section_data): Likewise.
351560484Sobrien
351660484Sobrien	* elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
351760484Sobrien	R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
351860484Sobrien	its sanity check.
351960484Sobrien
352060484SobrienThu Sep 12 11:45:57 1996  Doug Evans  <dje@seba.cygnus.com>
352160484Sobrien
352260484Sobrien	* reloc.c: Add m32r relocs.
352360484Sobrien	* bfd-in2.h, libbfd.h: Rebuilt.
352460484Sobrien	* cpu-m32r.c,elf32-m32r.c: New files.
352560484Sobrien
352660484SobrienThu Sep 12 11:10:05 1996  Ian Lance Taylor  <ian@cygnus.com>
352760484Sobrien
352860484Sobrien	* ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
352960484Sobrien
353060484SobrienWed Sep 11 11:57:56 1996  Ian Lance Taylor  <ian@cygnus.com>
353160484Sobrien
353260484Sobrien	* tekhex.c (first_phase): Change type parameter from char to int.
353360484Sobrien	(out): Likewise.
353460484Sobrien	(pass_over): Change func to expect int, not char.
353560484Sobrien
353660484Sobrien	* elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
353760484Sobrien	rather than SEC_LOAD when aligning the file offset for the first
353860484Sobrien	section in a segment.
353960484Sobrien
354060484SobrienTue Sep 10 16:18:30 1996  Fred Fish  <fnf@cygnus.com>
354160484Sobrien
354260484Sobrien	* syms.c (coff_section_type): Make arg const.
354360484Sobrien	* irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
354460484Sobrien	to make_bfd_asection().
354560484Sobrien	* elf-bfd.h (bfd_section_from_phdr): Add prototype.
354660484Sobrien	* elfcode.h (bfd_section_from_phdr): Remove prototype.
354760484Sobrien	(_bfd_elf_stringtab_init): Remove prototype.
354860484Sobrien
354960484Sobrien	* netbsd-core.c (swap_abort): Add prototype.
355060484Sobrien	* aix386-core.c (swap_abort): Ditto & make static
355160484Sobrien	* hpux-core.c (swap_abort): Ditto & make static.
355260484Sobrien	* irix-core.c (swap_abort): Ditto & make static.
355360484Sobrien	* ptrace-core.c (swap_abort): Ditto & make static.
355460484Sobrien	* trad-core.c (swap_abort): Ditto & make static.
355560484Sobrien	* coffswap.h (coff_swap_reloc_in): Ditto.
355660484Sobrien	(coff_swap_reloc_out): Ditto.
355760484Sobrien	(coff_swap_filehdr_in): Ditto.
355860484Sobrien	(coff_swap_filehdr_out): Ditto.
355960484Sobrien	(coff_swap_sym_in): Ditto.
356060484Sobrien	(coff_swap_sym_out): Ditto.
356160484Sobrien	(coff_swap_aux_in): Ditto.
356260484Sobrien	(coff_swap_aux_out): Ditto.
356360484Sobrien	(coff_swap_lineno_in): Ditto.
356460484Sobrien	(coff_swap_lineno_out): Ditto.
356560484Sobrien	(coff_swap_aouthdr_in): Ditto.
356660484Sobrien	(coff_swap_aouthdr_out): Ditto.
356760484Sobrien	(coff_swap_scnhdr_in): Ditto.
356860484Sobrien	(coff_swap_scnhdr_out): Ditto.
356960484Sobrien	* ihex.c (ihex_sizeof_headers): Ditto.
357060484Sobrien	* tekhex.c (getsym): Ditto.
357160484Sobrien	(find_chunk): Ditto & make static.
357260484Sobrien	(insert_byte): Ditto.
357360484Sobrien	(first_phase): Ditto.
357460484Sobrien	(pass_over): Ditto.
357560484Sobrien	(tekhex_get_symtab): Ditto & make static.
357660484Sobrien	(tekhex_get_symtab_upper_bound): Ditto & make static.
357760484Sobrien	(tekhex_mkobject): Ditto.
357860484Sobrien	(tekhex_object_p): Ditto.
357960484Sobrien	(move_section_contents): Ditto.
358060484Sobrien	(tekhex_get_section_contents): Ditto.
358160484Sobrien	(tekhex_set_arch_mach): Ditto & make static.
358260484Sobrien	(tekhex_set_section_contents): Ditto.
358360484Sobrien	(writevalue): Ditto.
358460484Sobrien	(writesym): Ditto.
358560484Sobrien	(out): Ditto.
358660484Sobrien	(tekhex_write_object_contents): Ditto.
358760484Sobrien	(tekhex_sizeof_headers): Ditto.
358860484Sobrien	(tekhex_make_empty_symbol): Ditto.
358960484Sobrien	(tekhex_get_symbol_info): Ditto.
359060484Sobrien	(tekhex_print_symbol): Ditto.
359160484Sobrien	* irix-core.c (make_bfd_asection): Ditto.
359260484Sobrien	(irix_core_core_file_p): Ditto.
359360484Sobrien	(irix_core_core_file_failing_command): Ditto.
359460484Sobrien	(irix_core_core_file_failing_signal): Ditto.
359560484Sobrien	(irix_core_core_file_matches_executable_p): Ditto.
359660484Sobrien	(irix_core_make_empty_symbol): Ditto.
359760484Sobrien	* coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
359860484Sobrien	* srec.c (srec_new_symbol): Ditto.
359960484Sobrien	(srec_get_section_contents): Ditto.
360060484Sobrien	(srec_set_arch_mach): Ditto.
360160484Sobrien	(srec_set_section_contents): Ditto.
360260484Sobrien	(internal_srec_write_object_contents): Ditto.
360360484Sobrien	(srec_write_object_contents): Ditto.
360460484Sobrien	(symbolsrec_write_object_contents): Ditto.
360560484Sobrien	(srec_sizeof_headers): Ditto.
360660484Sobrien	(srec_make_empty_symbol): Ditto.
360760484Sobrien	(srec_get_symtab_upper_bound): Ditto.
360860484Sobrien	(srec_get_symtab): Ditto.
360960484Sobrien	(srec_print_symbol): Ditto and make static.
361060484Sobrien	* elf.c (elf_read): Ditto
361160484Sobrien	(assign_section_numbers): Ditto.
361260484Sobrien	(elf_fake_sections): Ditto.
361360484Sobrien	(sym_is_global): Ditto.
361460484Sobrien	(elf_map_symbols): Ditto.
361560484Sobrien	(get_program_header_size): Ditto.
361660484Sobrien	* coffgen.c (make_a_section_from_file): Ditto.
361760484Sobrien	(coff_real_object_p): Ditto.
361860484Sobrien	(fixup_symbol_value): Ditto.
361960484Sobrien	(build_debug_section): Ditto.
362060484Sobrien	(copy_name): Ditto.
362160484Sobrien	* syms.c (coff_section_type): Ditto.
362260484Sobrien
362360484SobrienMon Sep  9 22:36:01 1996  Jeffrey A Law  (law@cygnus.com)
362460484Sobrien
362560484Sobrien	* bfd-in2.h: Rebuilt after m32r changes.
362660484Sobrien
362760484SobrienMon Sep  9 12:31:22 1996  Doug Evans  <dje@canuck.cygnus.com>
362860484Sobrien
362960484Sobrien	* config.bfd,configure.in,configure: Add m32r support.
363060484Sobrien	* Makefile.in,archures.c,elf.c,targets.c: Likewise.
363160484Sobrien	* config.bfd: Keep target list alphabetically sorted.
363260484Sobrien
363360484SobrienMon Sep  9 11:48:41 1996  Jeffrey A Law  (law@cygnus.com)
363460484Sobrien
363560484Sobrien	* elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
363660484Sobrien	to add in the constant part found in the instruction itself.
363760484Sobrien	(case R_V850_HI16_S): Likewise.
363860484Sobrien
363960484SobrienFri Sep  6 17:04:39 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
364060484Sobrien
364160484Sobrien	* elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
364260484Sobrien	and R_D10V_18 to be 1 (word).
364360484Sobrien
364460484SobrienThu Sep  5 15:23:08 1996  Ian Lance Taylor  <ian@cygnus.com>
364560484Sobrien
364660484Sobrien	* stabs.c (_bfd_link_section_stabs): If the output_section field
364760484Sobrien	of either section is bfd_abs_section, then the linker is
364860484Sobrien	discarding the section and we should not optimize it.
364960484Sobrien
365060484SobrienTue Sep  3 12:16:20 1996  Doug Evans  <dje@canuck.cygnus.com>
365160484Sobrien
365260484Sobrien	* Makefile.in (aout-sparcle.o): New target.
365360484Sobrien	* aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
365460484Sobrien	* config.bfd (sparclet-*-aout*): Add case.
365560484Sobrien	* configure.in (sparcle_aout_vec): Add case.
365660484Sobrien	* configure: Regenerated.
365760484Sobrien	* targets.c (sparcle_aout_vec): Declare.
365860484Sobrien	(bfd_target_vector): Add sparcle_aout_vec.
365960484Sobrien	* aout-sparcle.c: New file.
366060484Sobrien
366160484SobrienTue Sep  3 00:57:02 1996  Jeffrey A Law  (law@cygnus.com)
366260484Sobrien
366360484Sobrien	* elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
366460484Sobrien	low order sign bit propogation for R_V850_HI16_S.
366560484Sobrien
366660484Sobrien	* elf32-v850.c (bfd_elf32_v850_reloc): New function for
366760484Sobrien	handling V850 specific relocs.
366860484Sobrien	(elf_v850_howto_table): Use the new function for some
366960484Sobrien	relocations.  Twiddle masks & shifts for some relocs.
367060484Sobrien	Set partial_inplace where needed.
367160484Sobrien
367260484SobrienMon Sep  2 12:12:34 1996  Ian Lance Taylor  <ian@cygnus.com>
367360484Sobrien
367460484Sobrien	* cpu-mips.c: Add an explicit mips:3000 entry, and change the
367560484Sobrien	default architecture to a machine number of 0.
367660484Sobrien	* elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
367760484Sobrien	for E_MIPS_ARCH_1.
367860484Sobrien	(_bfd_mips_elf_merge_private_bfd_data): If the machine number of
367960484Sobrien	the output BFD is the default, set it from the first input BFD.
368060484Sobrien
368160484SobrienSun Sep  1 18:38:01 1996  Jeffrey A Law  (law@cygnus.com)
368260484Sobrien
368360484Sobrien	* elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
368460484Sobrien	insert at bitpos zero.  The HI16 relocs are shifted right
368560484Sobrien	by 16 bits.  Fix src_mask for all relocs.
368660484Sobrien	(TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define.  The V850 is
368760484Sobrien	little endian!
368860484Sobrien	(TARGET_BIG_SYM, TARGET_BIG_NAME): Remove.  The V850 is little
368960484Sobrien	endian!
369060484Sobrien
369160484SobrienSun Sep  1 15:41:08 1996  Ian Lance Taylor  <ian@cygnus.com>
369260484Sobrien
369360484Sobrien	* rs6000-core.c (rs6000coff_core_file_matches_executable_p):
369460484Sobrien	Rewrite to use BFD file read routines and to avoid using a fixed
369560484Sobrien	length for the file name.
369660484Sobrien
369760484SobrienSat Aug 31 10:22:25 1996  Jeffrey A Law  (law@cygnus.com)
369860484Sobrien
369960484Sobrien	* elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
370060484Sobrien	(elf_v850_howto_table): Add support for R_V850_{32,16,8}.
370160484Sobrien	(v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
370260484Sobrien	to R_V850_{32,16,8}.
370360484Sobrien
370460484SobrienFri Aug 30 18:06:04 1996  J.T. Conklin  <jtc@hippo.cygnus.com>
370560484Sobrien
370660484Sobrien	* elf32-v850.c (reloc_type): Add R_V850_HI16_S.
370760484Sobrien	(elf_v850_howto_table): Add info for HI16_S reloc.
370860484Sobrien	(v850_reloc_map): Add HI_16_S reloc.
370960484Sobrien	* reloc.c: Define BFD_RELOC_V850_* relocs.
371060484Sobrien
371160484SobrienFri Aug 30 11:49:19 1996  Ian Lance Taylor  <ian@cygnus.com>
371260484Sobrien
371360484Sobrien	Add SH ELF support.
371460484Sobrien	* elf32-sh.c: New file.
371560484Sobrien	* elf.c (prep_headers): Handle bfd_arch_sh.
371660484Sobrien	* elfcode.h (write_relocs): Handle absolute symbol.
371760484Sobrien	* elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
371860484Sobrien	(_bfd_elf64_link_read_relocs): Declare.
371960484Sobrien	* elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
372060484Sobrien	elf_link_read_relocs.  Make globally visible.  Change all
372160484Sobrien	callers.
372260484Sobrien	(elf_link_input_bfd): Get external symbols from cache in
372360484Sobrien	symtab_hdr->contents.  Get contents from cache in
372460484Sobrien	elf_section_data.
372560484Sobrien	* elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
372660484Sobrien	already defined.
372760484Sobrien	* reloc.c: Define BFD_RELOC_SH_* relocs.
372860484Sobrien	* libbfd-in.h (_bfd_sh_align_load_span): Declare.
372960484Sobrien	* coff-sh.c (sh_insns_conflict): Fix a return value.
373060484Sobrien	(_bfd_sh_align_load_span): New globally visible function, broken
373160484Sobrien	out of sh_align_load.
373260484Sobrien	(sh_align_load): Call _bfd_sh_align_load_span.
373360484Sobrien	(sh_swap_insns): Change relocs parameter to PTR.
373460484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
373560484Sobrien	* targets.c (bfd_elf32_sh_vec): Declare.
373660484Sobrien	(bfd_elf32_shl_vec): Declare.
373760484Sobrien	* config.bfd (sh-*-elf*): New target.
373860484Sobrien	* configure.in (bfd_elf32_sh_vec): New target vector.
373960484Sobrien	(bfd_elf32_shl_vec): New target vector.
374060484Sobrien	* configure: Rebuild.
374160484Sobrien	* Makefile.in: Rebuild dependencies.
374260484Sobrien 	(BFD32_BACKENDS): Add elf32-sh.o.
374360484Sobrien	(BFD32_BACKENDS_CFILES): Add elf32-sh.c.
374460484Sobrien
374560484Sobrien	* elf.c (map_sections_to_segments): Check that LMA does not skip a
374660484Sobrien	page before checking D_PAGED.
374760484Sobrien
374860484Sobrien	* ihex.c (ihex_scan): Removed unnecessary extbase variable.
374960484Sobrien	(ihex_write_object_contents): Remove extbase; always use segbase
375060484Sobrien	instead.
375160484Sobrien
375260484SobrienThu Aug 29 16:52:17 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
375360484Sobrien
375460484Sobrien	* configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
375560484Sobrien	* configure.host (i[345]86-*-*): Ditto.
375660484Sobrien	* config.bfd (i[345]86-*-*): Ditto.
375760484Sobrien	* configure: Regenerate.
375860484Sobrien
375960484Sobrien	* config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
376060484Sobrien	elf.
376160484Sobrien
376260484SobrienTue Aug 27 09:18:18 1996  Jeffrey A Law  (law@cygnus.com)
376360484Sobrien
376460484Sobrien	* elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
376560484Sobrien	* elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
376660484Sobrien	* som.c (hppa_som_gen_reloc_type): Add new argument.  If
376760484Sobrien	we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
376860484Sobrien	will have an ST_CODE type, change the symbol's type to ST_DATA.
376960484Sobrien	* som.c (hppa_som_gen_reloc_type): Update prototype.
377060484Sobrien
377160484SobrienTue Aug 27 00:12:22 1996  Ian Lance Taylor  <ian@cygnus.com>
377260484Sobrien
377360484Sobrien	* elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
377460484Sobrien	R_MIPS_32 and R_MIPS_REL32.  Set sgot and g as soon as possible.
377560484Sobrien	(mips_elf_size_dynamic_sections): Don't require .got to exist.
377660484Sobrien	(mips_elf_finish_dynamic_sections): Likewise.
377760484Sobrien
377860484SobrienThu Aug 22 10:54:38 1996  Ian Lance Taylor  <ian@cygnus.com>
377960484Sobrien
378060484Sobrien	* configure.host (HLDENV): New variable to set.  Set it for
378160484Sobrien	*-*-sysv4*, since those linkers may not support -R but they always
378260484Sobrien	support LD_RUN_PATH.
378360484Sobrien
378460484Sobrien	* libieee.h (NSECTIONS): Don't define.
378560484Sobrien	(ieee_data_struct): Change section_table to asection **.  Add
378660484Sobrien	section_table_size.
378760484Sobrien	* ieee.c (get_section_entry): If the table isn't big enough, make
378860484Sobrien	it bigger.
378960484Sobrien	(ieee_slurp_sections): Remove assertion about number of sections.
379060484Sobrien	(ieee_object_p): Adjust initialization of ieee to match changes to
379160484Sobrien	the structure.
379260484Sobrien
379360484Sobrien	* xcofflink.c (xcoff_mark): Don't copy relocs for undefined
379460484Sobrien	symbols merely because we are generating a shared library.
379560484Sobrien	(xcoff_build_ldsyms): Don't set up global linkage code for an
379660484Sobrien	undefined symbol merely because we are generating a shared
379760484Sobrien	library.
379860484Sobrien
379960484SobrienTue Aug 20 15:06:05 1996  J.T. Conklin  <jtc@hippo.cygnus.com>
380060484Sobrien
380160484Sobrien	* Makefile.in (ALL_MACHINES): Add cpu-v850.o.
380260484Sobrien	(BFD32_BACKENDS) Add elf32-v850.o.
380360484Sobrien	* archures.c: Add bfd_v850_arch.
380460484Sobrien	* bfd-in2.h: Add bfd_v850_arch.
380560484Sobrien	* config.bfd (v850-*-*): New target.
380660484Sobrien	* configure: (bfd_elf32_v850_vec) New vector.
380760484Sobrien	* configure.in: (bfd_elf32_v850_vec) New vector.
380860484Sobrien	* cpu-v850.c: New file.
380960484Sobrien	* elf.c (prep_headers): Added case bfd_arch_v850.
381060484Sobrien	* elf32-v850.c: New file.
381160484Sobrien	* targets.c (bfd_elf32_v850_vec): New vector.
381260484Sobrien
381360484SobrienFri Aug 16 16:25:35 1996  Ian Lance Taylor  <ian@cygnus.com>
381460484Sobrien
381560484Sobrien	* xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
381660484Sobrien 	a function code symbol for an XMC_XO symbol.
381760484Sobrien
381860484SobrienThu Aug 15 12:33:29 1996  Stan Shebs  <shebs@andros.cygnus.com>
381960484Sobrien
382060484Sobrien	* mpw-config.in: Update editing of autoconf vars to reflect
382160484Sobrien	Jul 18 configure.in change.
382260484Sobrien	* mpw-make.sed: Update editing of include pathnames to be
382360484Sobrien	more general, add @DASH_C_FLAG@ to explicit compile rule edit.
382460484Sobrien
382560484SobrienThu Aug 15 10:35:13 1996  Richard Henderson  <rth@tamu.edu>
382660484Sobrien
382760484Sobrien	* elf64-alpha.c (elf64_alpha_output_extsym): The section from
382860484Sobrien	which to offset to get the .plt entry address is ".plt".
382960484Sobrien
383060484SobrienThu Aug 15 16:40:30 1996  James G. Smith  <jsmith@cygnus.co.uk>
383160484Sobrien
383260484Sobrien	* reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
383360484Sobrien	BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
383460484Sobrien 	Added, for internal use by the ARM gas.
383560484Sobrien	* libbfd.h: Rebuilt
383660484Sobrien	* bfd-in2.h: Rebuilt
383760484Sobrien
383860484SobrienWed Aug 14 17:02:09 1996  Richard Henderson  <rth@tamu.edu>
383960484Sobrien
384060484Sobrien	* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
384160484Sobrien	in section dynidx start.
384260484Sobrien
384360484SobrienTue Aug 13 14:35:38 1996  Ian Lance Taylor  <ian@cygnus.com>
384460484Sobrien
384560484Sobrien	* elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
384660484Sobrien	name begins with .gnu.linkonce as SEC_LINK_ONCE.  This is an
384760484Sobrien	optimization for g++.
384860484Sobrien
384960484SobrienTue Aug 13 17:04:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
385060484Sobrien
385160484Sobrien	* elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
385260484Sobrien	the -mrelocatable-lib bit set and the other doesn't, clear the
385360484Sobrien	-mrelocatable-lib bit in the header.
385460484Sobrien
385560484SobrienSat Aug 10 22:59:17 1996  Ian Lance Taylor  <ian@cygnus.com>
385660484Sobrien
385760484Sobrien	* elflink.h (elf_link_add_object_symbols): Do not resolve a common
385860484Sobrien	symbol against a STT_FUNC symbol in a shared library.
385960484Sobrien
386060484SobrienFri Aug  9 12:44:57 1996  Ian Lance Taylor  <ian@cygnus.com>
386160484Sobrien
386260484Sobrien	* xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
386360484Sobrien 	symbol is found, automatically define the corresponding function
386460484Sobrien 	code.
386560484Sobrien
386660484Sobrien	* cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
386760484Sobrien	if sym.n_numaux is not zero.
386860484Sobrien	(_bfd_coff_link_input_bfd): Permit the symbol and the hash table
386960484Sobrien	entry to disagree about the number of aux entries if the symbol
387060484Sobrien	has zero.
387160484Sobrien
387260484Sobrien	* elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
387360484Sobrien	section if it might be needed, not just if info->shared.
387460484Sobrien	(mips_elf_adjust_dynamic_symbol): Make room for a null element at
387560484Sobrien	the start of .rel.dyn if we are going to use it.
387660484Sobrien	(mips_elf_finish_dynamic_sections): Only clear the first element
387760484Sobrien	of .rel.dyn if the size is greater than zero.
387860484Sobrien
387960484SobrienThu Aug  8 16:24:55 1996  Ian Lance Taylor  <ian@cygnus.com>
388060484Sobrien
388160484Sobrien	* xcofflink.c (xcoff_link_input_bfd): If we already called the
388260484Sobrien	undefined_symbol callback for a symbol, then don't issue any more
388360484Sobrien	warnings about loader relocs.
388460484Sobrien	(_bfd_ppc_xcoff_relocate_section): Don't do any further processing
388560484Sobrien	after calling the undefined_symbol callback.
388660484Sobrien
388760484Sobrien	* xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
388860484Sobrien	(xcoff_link_add_symbols): Permit multiple definitions of a symbol
388960484Sobrien	as the AIX linker seems to do.
389060484Sobrien
389160484SobrienThu Aug  8 12:21:56 1996  Klaus Kaempf  <kkaempf@progis.de>
389260484Sobrien
389360484Sobrien	* evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
389460484Sobrien	(evax_initialize): Remove evax_reloc_table.
389560484Sobrien	(evax_close_and_cleanup): Ditto.
389660484Sobrien	(reloc_nil): Ditto.
389760484Sobrien	(alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
389860484Sobrien	entries.
389960484Sobrien	(evax_bfd_reloc_type_lookup): Ditto.
390060484Sobrien	* evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
390160484Sobrien	cooked_size == raw_size.
390260484Sobrien	* evax-emh.c (_bfd_evax_register_filename): Remove.
390360484Sobrien	* evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
390460484Sobrien	* evax-misc.c (add_new_contents): Malloc section at full size.
390560484Sobrien	(_bfd_save_evax_section): Memcpy section contents directly.
390660484Sobrien	* evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
390760484Sobrien	(evax_reloc_table): Remove.
390860484Sobrien
390960484Sobrien	* hosts/alphavms.h (O_ACCMODE): Define if needed.
391060484Sobrien
391160484Sobrien	* makefile.vms: Add better support for DEC C compilation
391260484Sobrien	Add evax.h dependencies
391360484Sobrien
391460484Sobrien	* reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
391560484Sobrien	(BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
391660484Sobrien	(BFD_RELOC_ALPHA_BASEREG): Remove.
391760484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
391860484Sobrien
391960484SobrienThu Aug  8 08:17:32 1996  Stu Grossman  (grossman@critters.cygnus.com)
392060484Sobrien
392160484Sobrien	* archive.c (bsd_write_armap):  Ifdef around calls to getuid and
392260484Sobrien	getgid if _WIN32 is defined.
392360484Sobrien	* opncls.c (bfd_fdopenr):  Remove unnecessary WINGDB ifdef.
392460484Sobrien
392560484SobrienWed Aug  7 23:19:00 1996  Stu Grossman  (grossman@critters.cygnus.com)
392660484Sobrien
392760484Sobrien	* aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
392860484Sobrien	Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
392960484Sobrien	include file.
393060484Sobrien	* libbfd.c:  Create dummy getpagesize() macro if HAVE_GETPAGESIZE
393160484Sobrien	isn't defined.
393260484Sobrien
393360484SobrienWed Aug  7 14:11:44 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>
393460484Sobrien
393560484Sobrien	* configure.in: Call BFD_NEEDED_DECLARATION on strstr and
393660484Sobrien	realloc.
393760484Sobrien	* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
393860484Sobrien	(NEED_DECLARATION_REALLOC): New macro.
393960484Sobrien	* configure, config.in: Rebuild.
394060484Sobrien	* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
394160484Sobrien	(realloc): Declare if NEED_DECLARATION_REALLOC.
394260484Sobrien
394360484Sobrien	* aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
394460484Sobrien	<strings.h> if they exist.
394560484Sobrien
394660484Sobrien	* ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
394760484Sobrien
394860484SobrienWed Aug  7 12:12:03 1996  Ian Lance Taylor  <ian@cygnus.com>
394960484Sobrien
395060484Sobrien	* cpu-i386.c (i8086_arch): Architecture info for the i8086.
395160484Sobrien
395260484Sobrien	Based on patches from Eric Valette <valette@crf.canon.fr>:
395360484Sobrien	* elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
395460484Sobrien	LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
395560484Sobrien	(elf_howto_table): Add entries for new relocs.
395660484Sobrien	(elf_i386_reloc_type_lookup): Handle new relocs.
395760484Sobrien	(elf_i386_info_to_howto): Just call abort.
395860484Sobrien	(elf_i386_info_to_howto_rel): Check that the reloc type is valid.
395960484Sobrien	(elf_i386_relocate_section): Likewise.
396060484Sobrien
396160484SobrienTue Aug  6 12:54:56 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
396260484Sobrien
396360484Sobrien	* elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
396460484Sobrien
396560484SobrienMon Aug  5 13:42:41 1996  Ian Lance Taylor  <ian@cygnus.com>
396660484Sobrien
396760484Sobrien	* elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
396860484Sobrien	only get the LMA from the phdr if they are in the same part of the
396960484Sobrien	file.
397060484Sobrien
397160484Sobrien	* elf.c (map_sections_to_segments): Rewrite tests for starting a
397260484Sobrien	new segment to make them more comprehensible.  If the relationship
397360484Sobrien	between the LMA and the VMA changed, start a new segment.  Don't
397460484Sobrien	check dynsec when deciding whether to start a new segment for a
397560484Sobrien	writeable section; -N will now handle this.
397660484Sobrien
397760484SobrienThu Aug  1 22:43:08 1996  Jeffrey A Law  (law@cygnus.com)
397860484Sobrien
397960484Sobrien	* libhppa.h: Remove "esel" changes.  Not the right approach.
398060484Sobrien	* som.c: Corresponding changes.
398160484Sobrien	(som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
398260484Sobrien	which don't have a SOM symbol type associated with them.
398360484Sobrien	Reverses a 1994 change.
398460484Sobrien
398560484SobrienWed Jul 31 15:50:55 1996  Ian Lance Taylor  <ian@cygnus.com>
398660484Sobrien
398760484Sobrien	Make ld -N more reasonable for ELF:
398860484Sobrien	* elf.c (map_sections_to_segments): If D_PAGED is not set, set
398960484Sobrien	phdr_in_section to false, and always use a single load segment.
399060484Sobrien	(elf_sort_sections): Sort sections by LMA after VMA.
399160484Sobrien	(assign_file_positions_for_segments): If D_PAGED is not set, don't
399260484Sobrien	align to maxpagesize.
399360484Sobrien	(assign_file_positions_except_relocs): Likewise.
399460484Sobrien	* elfcode.h (elf_object_p): If a section is loaded but not page
399560484Sobrien	aligned, clear D_PAGED.
399660484Sobrien
399760484SobrienWed Jul 31 15:00:12 1996  James G. Smith  <jsmith@cygnus.co.uk>
399860484Sobrien
399960484Sobrien	* reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
400060484Sobrien 	Added, for internal use by the ARM gas.
400160484Sobrien	* libbfd.h: Rebuilt
400260484Sobrien	* bfd-in2.h: Rebuilt
400360484Sobrien
400460484SobrienTue Jul 30 14:14:57 1996  Jeffrey A Law  (law@cygnus.com)
400560484Sobrien
400660484Sobrien	* libhppa.h (R_HPPA_ESEL): New field selector.
400760484Sobrien	(e_esel): Similarly.
400860484Sobrien	* som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
400960484Sobrien	then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
401060484Sobrien	(som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
401160484Sobrien
401260484SobrienTue Jul 30 13:31:27 1996  Ian Lance Taylor  <ian@cygnus.com>
401360484Sobrien
401460484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
401560484Sobrien	archive search before looking for stripped dynamic objects.
401660484Sobrien
401760484SobrienFri Jul 26 17:51:39 1996  Ian Lance Taylor  <ian@cygnus.com>
401860484Sobrien
401960484Sobrien	* xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
402060484Sobrien	symbol a warning rather than an error.
402160484Sobrien
402260484SobrienWed Jul 24 12:02:53 1996  Ian Lance Taylor  <ian@cygnus.com>
402360484Sobrien
402460484Sobrien	* elf.c (assign_file_positions_for_segments): Track the virtual
402560484Sobrien	memory position separately from the file position, and use it to
402660484Sobrien	compute the alignment adjustment.
402760484Sobrien
402860484SobrienTue Jul 23 10:43:31 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
402960484Sobrien
403060484Sobrien	* elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
403160484Sobrien 	and fixed mask on R_D10V_10_PCREL_L.
403260484Sobrien
403360484SobrienMon Jul 22 15:30:30 1996  Ian Lance Taylor  <ian@cygnus.com>
403460484Sobrien
403560484Sobrien	* elf64-mips.c: Include "aout/ar.h".
403660484Sobrien	(mips_elf64_slurp_armap): New static function.
403760484Sobrien	(mips_elf64_write_armap): New static function.
403860484Sobrien	(bfd_elf64_archive_*): Define.
403960484Sobrien	* elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
404060484Sobrien	Use instead of bfd_generic_archive_p.
404160484Sobrien	(bfd_elfNN_write_archive_contents): Define if not defined.  Use
404260484Sobrien	instead of _bfd_write_archive_contents.
404360484Sobrien	(bfd_elfNN_mkdarchive): Define if not defined.  Use instead of
404460484Sobrien	_bfd_generic_mkarchive.
404560484Sobrien	(TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
404660484Sobrien	bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
404760484Sobrien	_bfd_archive_coff.
404860484Sobrien	(TARGET_LITTLE_SYM): Likewise.
404960484Sobrien	* archive.c (bfd_slurp_armap): Check for and reject an archive map
405060484Sobrien	name of /SYM64/.
405160484Sobrien	* Makefile.in: Rebuild dependencies.
405260484Sobrien
405360484Sobrien	* elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
405460484Sobrien	SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
405560484Sobrien	SHT_MIPS_EVENTS sections.
405660484Sobrien	(_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
405760484Sobrien	SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
405860484Sobrien	sections.
405960484Sobrien	(_bfd_mips_elf_fake_sections): Likewise.
406060484Sobrien
406160484Sobrien	* libecoff.h (ecoff_data_type): Add rdata_in_text field.
406260484Sobrien	* ecoff.c (ecoff_compute_section_file_positions): Copy
406360484Sobrien	rdata_in_text from backend info to tdata.  Clear it if any data
406460484Sobrien	section comes before .rdata.
406560484Sobrien	(_bfd_ecoff_write_object_contents): Use rdata_in_text field in
406660484Sobrien	tdata rather than backend info.
406760484Sobrien
406860484SobrienFri Jul 19 18:15:51 1996  Ian Lance Taylor  <ian@cygnus.com>
406960484Sobrien
407060484Sobrien	* configure.in: Fix test for whether a compiler has a 64 bit
407160484Sobrien	type.  From Jim Wilson <wilson@cygnus.com>.
407260484Sobrien
407360484SobrienThu Jul 18 15:39:10 1996  Ian Lance Taylor  <ian@cygnus.com>
407460484Sobrien
407560484Sobrien	* configure.host (mips-sgi-irix6*): New host.
407660484Sobrien
407760484Sobrien	* configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
407860484Sobrien	(replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
407960484Sobrien	BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT.  Add bfd-in2.h:bfd-in2.h
408060484Sobrien	to AC_OUTPUT call.
408160484Sobrien	* configure: Rebuild.
408260484Sobrien	* bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
408360484Sobrien	(BFD_HOST_64_BIT): Define conditionally.
408460484Sobrien	(BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
408560484Sobrien	(bfd_vma): Typedef as BFD_HOST_U_64_BIT.
408660484Sobrien	(symvalue, bfd_size_type): Likewise.
408760484Sobrien	* bfd-in2.h: Rebuild.
408860484Sobrien	* Makefile.in (do_clean): Remove bfd-tmp.h.
408960484Sobrien	(do_distclean): Remove bfd-in3.h.
409060484Sobrien	(stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
409160484Sobrien	(bfd-in3.h): New target.
409260484Sobrien
409360484Sobrien	* config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec.  From
409460484Sobrien	Andrew Gierth <ANDREWG@microlise.co.uk>.
409560484Sobrien
409660484Sobrien	* configure.host: Set INSTALL_SHLIB.
409760484Sobrien	* configure.in: Call AC_SUBST (INSTALL_SHLIB).
409860484Sobrien	* configure: Rebuild.
409960484Sobrien	* Makefile.in (install): Use @INSTALL_SHLIB@.
410060484Sobrien
410160484Sobrien	* config.bfd (mips*-*-irix6*): New target.
410260484Sobrien	* configure.host: Handle Irix 6 shared library like Irix 5.
410360484Sobrien
410460484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
410560484Sobrien	symbol for a magic name.
410660484Sobrien	(xcoff_link_input_bfd): Don't change the reloc symbol for an
410760484Sobrien	XMC_TD symbol.
410860484Sobrien	(_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
410960484Sobrien	XMC_TD symbol.
411060484Sobrien
411160484SobrienThu Jul 18 11:36:31 1996  Stan Shebs  <shebs@andros.cygnus.com>
411260484Sobrien
411360484Sobrien	* mpw-config.in: Add ELF support to mips config, create the
411460484Sobrien	elf32-target.h file in the object dir.
411560484Sobrien	* mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
411660484Sobrien
411760484SobrienWed Jul 17 18:02:32 1996  Kim Knuttila  <krk@cygnus.com>
411860484Sobrien
411960484Sobrien	* coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
412060484Sobrien	Also removed most abort calls, in favor of using bfd reporting.
412160484Sobrien
412260484SobrienWed Jul 17 14:51:52 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
412360484Sobrien
412460484Sobrien	* Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
412560484Sobrien	(BFD32_BACKENDS) Add elf32-d10v.o.
412660484Sobrien	* archures.c: Add bfd_d10v_arch.
412760484Sobrien	* bfd-in2.h: Add bfd_d10v_arch.
412860484Sobrien	* config.bfd (d10v-*-*): New target.
412960484Sobrien	* configure: (bfd_elf32_d10v_vec) New vector.
413060484Sobrien	* configure.in: (bfd_elf32_d10v_vec) New vector.
413160484Sobrien	* cpu-d10v.c: New file.
413260484Sobrien	* elf.c (prep_headers): Added case bfd_arch_d10v.
413360484Sobrien	* elf32-d10v.c: New file.
413460484Sobrien	* libbfd.h: Rebuild.
413560484Sobrien	* reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
413660484Sobrien 	BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
413760484Sobrien	* targets.c (bfd_elf32_d10v_vec): New vector.
413860484Sobrien
413960484SobrienWed Jul 17 10:58:55 1996  Kim Knuttila  <krk@cygnus.com>
414060484Sobrien
414160484Sobrien	* coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
414260484Sobrien
414360484SobrienTue Jul 16 23:49:02 1996  Stu Grossman  (grossman@critters.cygnus.com)
414460484Sobrien
414560484Sobrien	* archures.c bfd-in2.h:  Add bfd_mach_i386_i386 and
414660484Sobrien	bfd_mach_i386_i8086 machine types.
414760484Sobrien
414860484SobrienWed Jul 10 12:42:56 1996  Ian Lance Taylor  <ian@cygnus.com>
414960484Sobrien
415060484Sobrien	* ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
415160484Sobrien	and _FINI sections.
415260484Sobrien
415360484SobrienWed Jul 10 11:18:21 1996  Richard Henderson  <rth@tamu.edu>
415460484Sobrien
415560484Sobrien	* coffcode.h (coff_set_section_contents): A/UX does not require
415660484Sobrien	special handling of the _LIB section.
415760484Sobrien
415860484SobrienTue Jul  9 15:52:20 1996  Jeffrey A Law  (law@cygnus.com)
415960484Sobrien
416060484Sobrien	* coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
416160484Sobrien	value for R_RELBYTE.
416260484Sobrien
416360484Sobrien	* reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
416460484Sobrien	array if one was allocated.
416560484Sobrien
416660484SobrienTue Jul  9 12:21:54 1996  Ian Lance Taylor  <ian@cygnus.com>
416760484Sobrien
416860484Sobrien	From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
416960484Sobrien	* elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
417060484Sobrien	use_rld_obj_head and rld_value.
417160484Sobrien	(mips_elf_link_hash_table_create): Initialize new fields.
417260484Sobrien	(mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
417360484Sobrien	dynamic.
417460484Sobrien	(mips_elf_create_dynamic_sections): Create .rld_map section.  If
417560484Sobrien	__rld_obj_head symbol not seen, create an __rld_map symbol.
417660484Sobrien	(mips_elf_size_dynamic_sections): Make space in .rld_map section.
417760484Sobrien	Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
417860484Sobrien	(mips_elf_finish_dynamic_symbol): Save value of __rld_map or
417960484Sobrien	__rld_obj_head symbol.
418060484Sobrien	(mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
418160484Sobrien
418260484SobrienMon Jul  8 16:18:03 1996  Ian Lance Taylor  <ian@cygnus.com>
418360484Sobrien
418460484Sobrien	* elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
418560484Sobrien
418660484Sobrien	* elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
418760484Sobrien	ppc_elf_addr16_ha_reloc.
418860484Sobrien	(ppc_elf_addr16_ha_reloc): New static function.
418960484Sobrien
419060484Sobrien	* coff-mips.c (struct mips_hi): Define.
419160484Sobrien	(mips_refhi_list): New static variable.
419260484Sobrien 	(mips_refhi_addr, mips_refhi_addend): Remove.
419360484Sobrien	(mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
419460484Sobrien	(mips_reflo_reloc): Process mips_refhi_list.
419560484Sobrien	(mips_relhi_list): New static variable.
419660484Sobrien	(mips_relhi_addr, mips_relhi_addend): Remove.
419760484Sobrien	(mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
419860484Sobrien	(mips_rello_reloc): Process mips_relhi_list.
419960484Sobrien	(mips_relocate_section): Permit an arbitrary number of REFHI or
420060484Sobrien	RELHI relocs before the associated REFLO or RELLO reloc.
420160484Sobrien
420260484SobrienFri Jul  5 19:27:49 1996  Ian Lance Taylor  <ian@cygnus.com>
420360484Sobrien
420460484Sobrien	* aout-target.h (MY(callback)): Set reloc_count fields.
420560484Sobrien
420660484SobrienThu Jul  4 12:00:37 1996  Ian Lance Taylor  <ian@cygnus.com>
420760484Sobrien
420860484Sobrien	* sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
420960484Sobrien	sections unless this is a SunOS link.
421060484Sobrien
421160484Sobrien	* VERSION: Set to 2.7.1.
421260484Sobrien
421360484Sobrien	* Released binutils 2.7.
421460484Sobrien
421560484SobrienWed Jul  3 14:59:47 1996  Ian Lance Taylor  <ian@cygnus.com>
421660484Sobrien
421760484Sobrien	* i386aout.c: Include "aout/aout64.h".
421860484Sobrien 	(i386aout_write_object_contents): New static function.
421960484Sobrien	(MY_write_object_contents): Define.
422060484Sobrien
422160484Sobrien	* netbsd.h (MY(write_object_contents)): Make sure that
422260484Sobrien	adjust_sizes_and_vmas is called before fiddling with the magic
422360484Sobrien	number.
422460484Sobrien
422560484SobrienTue Jul  2 23:30:39 1996  Ian Lance Taylor  <ian@cygnus.com>
422660484Sobrien
422760484Sobrien	* stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
422860484Sobrien
422960484SobrienSun Jun 30 13:34:33 1996  Ian Lance Taylor  <ian@cygnus.com>
423060484Sobrien
423160484Sobrien	* libbfd-in.h (itos, stoi): Don't define.
423260484Sobrien	* libbfd.h: Rebuild.
423360484Sobrien	* i386lynx.c (KEEPIT): Define as udata.i.
423460484Sobrien	(NAME(lynx,swap_std_reloc_out)): Don't use stoi.
423560484Sobrien	(NAME(lynx,swap_ext_reloc_out)): Likewise.
423660484Sobrien	* riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
423760484Sobrien	flags.  Don't use stoi.
423860484Sobrien
423960484Sobrien	* elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
424060484Sobrien
424160484Sobrien	* elf.c (map_sections_to_segments): Don't start a new segment for
424260484Sobrien 	a writable section if it's on the same page as the previous
424360484Sobrien 	segment.  Reset the writable variable for a readonly section.
424460484Sobrien
424560484SobrienSat Jun 29 16:18:51 1996  Kim Knuttila  <krk@cygnus.com>
424660484Sobrien
424760484Sobrien	* peicode.h (coff_swap_aouthdr_in): Missing initializations of
424860484Sobrien	first_thunk_address, thunk_size, and import_table_size.
424960484Sobrien	* peicode.h: Improved some diagnostics regarding edata sections.
425060484Sobrien
425160484Sobrien	* coff-ppc.c (coff_ppc_relocate_section): Earlier error check
425260484Sobrien	on IMGLUE relocs.
425360484Sobrien	(coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
425460484Sobrien	(TARGET_LITTLE_SYM): Added missing D_PAGED.
425560484Sobrien
425660484SobrienFri Jun 28 13:48:45 1996  Ian Lance Taylor  <ian@cygnus.com>
425760484Sobrien
425860484Sobrien	* xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
425960484Sobrien	with XCOFF_DEF_DYNAMIC set is really defined.
426060484Sobrien	(xcoff_link_check_dynamic_ar_symbols): Likewise.
426160484Sobrien	(xcoff_link_add_symbols): Only create special sections if using an
426260484Sobrien	XCOFF hash table.
426360484Sobrien
426460484Sobrien	* reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
426560484Sobrien	aixcoff-rs6000.
426660484Sobrien	(bfd_install_relocation): Likewise.
426760484Sobrien
426860484SobrienFri Jun 28 11:17:00 1996  Richard Henderson  <rth@tamu.edu>
426960484Sobrien
427060484Sobrien	* elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
427160484Sobrien	field.
427260484Sobrien	(ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
427360484Sobrien	(ALPHA_ELF_LINK_HASH_LU_MEM): Define.
427460484Sobrien	(ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
427560484Sobrien	(elf64_alpha_link_hash_newfunc): Initialize flags field.
427660484Sobrien	(elf64_alpha_check_relocs): Record types of LITUSE entries that
427760484Sobrien	are found for LITERAL relocs.
427860484Sobrien	(elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
427960484Sobrien	taken, we cannot generate a .plt entry for the symbol.
428060484Sobrien
428160484SobrienThu Jun 27 11:24:29 1996  Ian Lance Taylor  <ian@cygnus.com>
428260484Sobrien
428360484Sobrien	* configure.in: Add AC_ISC_POSIX, and check for setitimer and
428460484Sobrien	sysconf functions (for gprof).
428560484Sobrien	* configure, config.in: Rebuild.
428660484Sobrien
428760484SobrienWed Jun 26 16:29:02 1996  Ian Lance Taylor  <ian@cygnus.com>
428860484Sobrien
428960484Sobrien	* ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
429060484Sobrien	an archive if it has a map.  If the object file has the wrong
429160484Sobrien	xvec, reject it.
429260484Sobrien
429360484Sobrien	* coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
429460484Sobrien	BRADDR, SREL16, SREL32, or SREL64 reloc against an external
429560484Sobrien	symbol.
429660484Sobrien	(alpha_relocate_section): Likewise.
429760484Sobrien
429860484Sobrien	* coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
429960484Sobrien	(coff_swap_filehdr_out): Use FILHSZ, not sizeof.
430060484Sobrien	(coff_swap_sym_out): Use SYMESZ, not sizeof.
430160484Sobrien	(coff_swap_aux_out): Use AUXESZ, not sizeof.
430260484Sobrien	(coff_swap_lineno_out): Use LINESZ, not sizeof.
430360484Sobrien	(coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
430460484Sobrien	(coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
430560484Sobrien	* peicode.h: Corresponding changes.
430660484Sobrien
430760484SobrienTue Jun 25 15:28:34 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
430860484Sobrien
430960484Sobrien	* elflink.h (elf_create_pointer_linker_section): Comment out code
431060484Sobrien	dealing with making GOT pointers negative of the GOT symbol for
431160484Sobrien	now.
431260484Sobrien
431360484SobrienTue Jun 25 11:41:24 1996  Richard Henderson  <rth@tamu.edu>
431460484Sobrien
431560484Sobrien	* elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
431660484Sobrien	increment the .rela.plt size until after we're done creating the
431760484Sobrien	.plt entry.
431860484Sobrien	(elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
431960484Sobrien	.rela.plt offset directly rather than calculating it.
432060484Sobrien
432160484SobrienMon Jun 24 17:15:10 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
432260484Sobrien
432360484Sobrien        * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
432460484Sobrien	Use autoconf-set values.
432560484Sobrien        * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
432660484Sobrien	includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
432760484Sobrien	values.
432860484Sobrien        (docdir): Deleted.
432960484Sobrien        * configure.in (AC_PREREQ): autoconf v2.5 or higher.
433060484Sobrien        * configure: Rebuilt.
433160484Sobrien
433260484SobrienMon Jun 24 22:50:35 1996  Jeffrey A Law  (law@cygnus.com)
433360484Sobrien
433460484Sobrien	* som.c (som_write_fixups): Fix typo in R_END_TRY for exception
433560484Sobrien	handling code > 1k away.
433660484Sobrien
433760484SobrienMon Jun 24 18:41:06 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
433860484Sobrien
433960484Sobrien	* elflink.h (elf_create_pointer_linker_section): If DEBUG is
434060484Sobrien	defined, output whenever the symbol is updated.
434160484Sobrien
434260484SobrienMon Jun 24 17:58:12 1996  Jouke Numan  <jnuman@bazis.nl>
434360484Sobrien
434460484Sobrien	* elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
434560484Sobrien	section to 0 if user_set_vma is set.
434660484Sobrien	* elflink.h (elf_bfd_final_link): Likewise.
434760484Sobrien
434860484SobrienSun Jun 23 20:42:51 1996  Doug Evans  <dje@canuck.cygnus.com>
434960484Sobrien
435060484Sobrien	Partially undo patch of Jun 20.
435160484Sobrien	* coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
435260484Sobrien	(coff_compute_section_file_positions): Likewise.
435360484Sobrien	(coff_write_object_contents): Likewise.  Re-add deleted code, but
435460484Sobrien	use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
435560484Sobrien	* peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
435660484Sobrien
435760484SobrienFri Jun 21 17:38:15 1996  Joel Sherrill  <joel@merlin.gcs.redstone.army.mil>
435860484Sobrien
435960484Sobrien	* config.bfd: Add support for *-*-rtems* configurations.
436060484Sobrien
436160484SobrienFri Jun 21 15:19:59 1996  Ian Lance Taylor  <ian@cygnus.com>
436260484Sobrien
436360484Sobrien	* elf.c (prep_headers): Add bfd_arch_alpha case.
436460484Sobrien
436560484SobrienFri Jun 21 12:35:27 1996  Richard Henderson  <rth@tamu.edu>
436660484Sobrien
436760484Sobrien	* elf64-alpha.c: New file.
436860484Sobrien	* config.bfd (alpha-*-linuxecoff*): New target.
436960484Sobrien	(alpha-*-linux*, alpha-*-elf*): New targets.
437060484Sobrien	* configure.in (bfd_elf64_alpha_vec): New vector.
437160484Sobrien	* configure: Rebuild.
437260484Sobrien	* targets.c (bfd_elf64_alpha_vec): Declare.
437360484Sobrien	(bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
437460484Sobrien	* reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
437560484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
437660484Sobrien	* Makefile.in: Rebuild dependencies.
437760484Sobrien 	(BFD64_BACKENDS): Add elf64-alpha.o.
437860484Sobrien	(BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
437960484Sobrien
438060484SobrienThu Jun 20 18:14:25 1996  Ian Lance Taylor  <ian@cygnus.com>
438160484Sobrien
438260484Sobrien	* ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
438360484Sobrien	than relying on a right shift of 32.
438460484Sobrien
438560484SobrienThu Jun 20 11:00:57 1996  Doug Evans  <dje@canuck.cygnus.com>
438660484Sobrien
438760484Sobrien	* coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
438860484Sobrien	ifdef to COFF_WITH_PE.
438960484Sobrien	(coff_compute_section_file_positions): Likewise.
439060484Sobrien	(coff_write_object_contents): Likewise.  Delete COFF_OBJ_WITH_PE.
439160484Sobrien	* pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
439260484Sobrien	* peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
439360484Sobrien	COFF_IMAGE_WITH_PE, always include.
439460484Sobrien
439560484Sobrien	* peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
439660484Sobrien
439760484SobrienWed Jun 19 11:37:52 1996  Ian Lance Taylor  <ian@cygnus.com>
439860484Sobrien
439960484Sobrien	* elf.c (map_sections_to_segments): Fix up the test for -Ttext to
440060484Sobrien	approximate the correct answer if SIZEOF_HEADERS was not used.
440160484Sobrien
440260484Sobrien	* binary.c (binary_set_section_contents): Set section file
440360484Sobrien	position based on LMA rather than VMA.
440460484Sobrien
440560484SobrienWed Jun 19 11:19:25 1996  Manfred Hollstein KS/EIC5 60/3/142 #40283  <manfred@lts.sel.alcatel.de>
440660484Sobrien
440760484Sobrien	* linker.c (_bfd_generic_link_output_symbols): Don't output any
440860484Sobrien	symbols if info->strip == strip_all.
440960484Sobrien
441060484SobrienTue Jun 18 15:17:36 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
441160484Sobrien
441260484Sobrien	* coff-h8300.c: Remove #if 0 code.
441360484Sobrien	(compatable): Don't allow mixing/matching of different architectures.
441460484Sobrien
441560484Sobrien	* archures.c (bfd_mach_h8300s): Add.
441660484Sobrien	* bfd-in2.h: Rebuilt.
441760484Sobrien	* coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
441860484Sobrien	(BADMAG): Likewise.
441960484Sobrien	(h8300_reloc16_estimate): Likewise.
442060484Sobrien	(h8300_reloc16_extra_cases): Likewise.
442160484Sobrien	(h8300_bfd_link_add_symbols): Likewise.
442260484Sobrien	* coffcode.h (coff_set_arch_mach_hook): Likewise.
442360484Sobrien	(coff_set_flags): Likewise.
442460484Sobrien	* cpu-h8300.c (h8300_scan): Likewise.
442560484Sobrien	Add H8/S to bfd_h8300_arch list.
442660484Sobrien
442760484SobrienTue Jun 18 14:42:58 1996  Klaus Kaempf  <kkaempf@progis.de>
442860484Sobrien
442960484Sobrien	Added support for Alpha OpenVMS:
443060484Sobrien	* evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
443160484Sobrien	* evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
443260484Sobrien	* config.h-vms, makefile.vms: New files.
443360484Sobrien	* config.bfd (alpha-*-*vms*): New target.
443460484Sobrien	* configure.in (evax_alpha_vec): New target vector.
443560484Sobrien	* configure: Rebuild.
443660484Sobrien	* reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
443760484Sobrien	(BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
443860484Sobrien	* targets.c (bfd_target_evax_flavour): Define.
443960484Sobrien	(evax_alpha_vec): Declare.
444060484Sobrien	(bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
444160484Sobrien	if BFD64 is defined.
444260484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
444360484Sobrien	* Makefile.in: Rebuild dependencies.
444460484Sobrien	(BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
444560484Sobrien	evax-emh.o, and evax-misc.o.
444660484Sobrien	(BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
444760484Sobrien	evax-etir.c, evax-emh.c, and evax-misc.c.
444860484Sobrien	(HFILES): Add evax.h.
444960484Sobrien
445060484SobrienTue Jun 18 13:54:18 1996  Ian Lance Taylor  <ian@cygnus.com>
445160484Sobrien
445260484Sobrien	* coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
445360484Sobrien	pointer.
445460484Sobrien	(h8300_bfd_link_add_symbols): Likewise.
445560484Sobrien
445660484SobrienMon Jun 17 10:06:50 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
445760484Sobrien
445860484Sobrien	* som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
445960484Sobrien	* som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
446060484Sobrien
446160484SobrienMon Jun 17 12:49:11 1996  Ian Lance Taylor  <ian@cygnus.com>
446260484Sobrien
446360484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
446460484Sobrien	for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
446560484Sobrien	created.
446660484Sobrien	(mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
446760484Sobrien	R_MIPS_32 relocs if creating a shared library.
446860484Sobrien
446960484SobrienThu Jun 13 20:14:51 1996  Doug Evans  <dje@canuck.cygnus.com>
447060484Sobrien
447160484Sobrien	* peicode.h (add_data_entry): Use pei_section_data rather than
447260484Sobrien	_cooked_size.  Corresponds to May 13 change in coffcode.h.
447360484Sobrien
447460484SobrienThu Jun 13 10:23:40 1996  Ian Lance Taylor  <ian@cygnus.com>
447560484Sobrien
447660484Sobrien	* cofflink.c (_bfd_coff_final_link): Handle long section names.
447760484Sobrien	* coffcode.h (coff_write_object_contents): If there are long
447860484Sobrien	section names, always set the f_symptr field, even if there are no
447960484Sobrien	symbols.
448060484Sobrien	* peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
448160484Sobrien	if there are no symbols.
448260484Sobrien
448360484Sobrien	* coffgen.c (make_a_section_from_file): Check return value of
448460484Sobrien	_bfd_coff_read_string_table.
448560484Sobrien	(coff_real_object_p): Check return value of
448660484Sobrien	make_a_section_from_file.
448760484Sobrien	(_bfd_coff_read_string_table): Check that there are some symbols
448860484Sobrien	before trying to read the string table size.
448960484Sobrien
449060484SobrienWed Jun 12 11:16:37 1996  Ian Lance Taylor  <ian@cygnus.com>
449160484Sobrien
449260484Sobrien	* xcofflink.c (xcoff_link_add_symbols): When considering whether
449360484Sobrien	to replace a symbol in a dynamic object with a symbol from another
449460484Sobrien	dynamic object, do the replacement if the existing symbol is
449560484Sobrien	global linkage code.
449660484Sobrien
449760484Sobrien	* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
449860484Sobrien	for _ptrgl, and treat it as global linkage code.
449960484Sobrien
450060484Sobrien	* aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
450160484Sobrien	filename or N_SO symbol past the offset, and use it to indicate
450260484Sobrien	that there is no line number or function when appropriate.
450360484Sobrien
450460484SobrienTue Jun 11 15:24:48 1996  Ian Lance Taylor  <ian@cygnus.com>
450560484Sobrien
450660484Sobrien	* xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
450760484Sobrien	common symbol defined by the linker.  Don't export function code
450860484Sobrien	even if export_defineds is set.
450960484Sobrien
451060484SobrienMon Jun 10 11:57:27 1996  Jeffrey A Law  (law@cygnus.com)
451160484Sobrien
451260484Sobrien	* coff-h8300.c (howto_table): Add new entries for R_BCC_INV
451360484Sobrien	and R_JMP_DEL.
451460484Sobrien	(rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
451560484Sobrien	(h8300_symbol_address_p): New function.
451660484Sobrien	(h8300_reloc16_estimate): Eliminate jumps made unnecessary by
451760484Sobrien	relaxing.
451860484Sobrien
451960484SobrienSun Jun  9 16:30:20 1996  Jeffrey A Law  (law@cygnus.com)
452060484Sobrien
452160484Sobrien	* coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
452260484Sobrien	problems.
452360484Sobrien	(h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
452460484Sobrien	correctly for the two variants.  Allow relaxing if the target
452560484Sobrien	is 128 bytes away since after relaxation it'll be 126 bytes away.
452660484Sobrien	(h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
452760484Sobrien	"dot" and "value".  Allow relaxing if the target is 128 bytes
452860484Sobrien	away since after relaxation it'll be 126 bytes away.
452960484Sobrien	* reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
453060484Sobrien	the given section until nothing changes.
453160484Sobrien
453260484SobrienThu Jun  6 15:24:45 1996  Richard Henderson  <rth@tamu.edu>
453360484Sobrien
453460484Sobrien	* ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
453560484Sobrien 	alignment hack--we can get the lnnoptr info another way without
453660484Sobrien 	suddenly increasing the alignment requirements.  Set the flags for
453760484Sobrien	the _PDATA section.
453860484Sobrien	(ecoff_compute_section_file_positions): Do so.
453960484Sobrien
454060484SobrienThu Jun  6 11:24:37 1996  Ian Lance Taylor  <ian@cygnus.com>
454160484Sobrien
454260484Sobrien	* ieee.c (ieee_write_object_contents): Put a timestamp in the file
454360484Sobrien	to keep the HP emulator database happy.
454460484Sobrien
454560484Sobrien	* config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
454660484Sobrien	From Kevin Buettner <kev@primenet.com>.
454760484Sobrien
454860484SobrienWed Jun  5 15:16:04 1996  Ian Lance Taylor  <ian@cygnus.com>
454960484Sobrien
455060484Sobrien	* aoutx.h (translate_to_native_sym_flags): Don't try to print the
455160484Sobrien	name of a NULL section.
455260484Sobrien
455360484SobrienTue Jun  4 18:53:58 1996  Ian Lance Taylor  <ian@cygnus.com>
455460484Sobrien
455560484Sobrien	* linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
455660484Sobrien	set, always call the notice callback.
455760484Sobrien
455860484Sobrien	* VERSION: Increment for bfdlink.h change.
455960484Sobrien
456060484SobrienMon Jun  3 11:01:53 1996  Ian Lance Taylor  <ian@cygnus.com>
456160484Sobrien
456260484Sobrien	* coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
456360484Sobrien	(sh_relax_delete_bytes): Correct handling of differently sized
456460484Sobrien	trailing alignment reloc.
456560484Sobrien
456660484Sobrien	* bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
456760484Sobrien	* bfd-in2.h: Rebuild.
456860484Sobrien	* configure.in: Warn if there is no known 64 bit type.
456960484Sobrien	* configure: Rebuild.
457060484Sobrien
457160484Sobrien	* Makefile.in: Rebuild dependencies.
457260484Sobrien 	(BFD32_BACKENDS): Add ppcboot.o.
457360484Sobrien	(BFD32_BACKENDS_CFILES): Add ppcboot.c.
457460484Sobrien
457560484Sobrien	* elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
457660484Sobrien	From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
457760484Sobrien
457860484SobrienSat Jun  1 21:49:58 1996  Ian Lance Taylor  <ian@cygnus.com>
457960484Sobrien
458060484Sobrien	* elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
458160484Sobrien	(bfd_mips_elf64_swap_reginfo_out): Move from here...
458260484Sobrien	* elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
458360484Sobrien	(bfd_mips_elf64_swap_reginfo_out): ...to here.
458460484Sobrien
458560484SobrienFri May 31 13:51:28 1996  Ian Lance Taylor  <ian@cygnus.com>
458660484Sobrien
458760484Sobrien	* elf64-mips.c: Improve reloc special_functions and handling of
458860484Sobrien	SHT_MIPS_OPTIONS section.
458960484Sobrien	* elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
459060484Sobrien	mips_elf_hi16_reloc and make globally visible.
459160484Sobrien	(_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
459260484Sobrien	make globally visible.
459360484Sobrien	(_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
459460484Sobrien	make globally visible.
459560484Sobrien	(_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
459660484Sobrien	and make globally visible.
459760484Sobrien	(gprel16_with_gp): Check howto->src_mask before using value in
459860484Sobrien	insn.
459960484Sobrien	(_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
460060484Sobrien	and make globally visible.
460160484Sobrien	(gprel32_with_gp): Check howto->src_mask before fetching value.
460260484Sobrien	(bfd_mips_elf_swap_options_in): New function.
460360484Sobrien	(bfd_mips_elf_swap_options_out): New function.
460460484Sobrien	(_bfd_mips_elf_set_private_flags): Rename from
460560484Sobrien	mips_elf_set_private_flags and make globally visible.
460660484Sobrien	(_bfd_mips_elf_copy_private_bfd_data): Rename from
460760484Sobrien	mips_elf_copy_private_bfd_data and make globally visible.
460860484Sobrien	(_bfd_mips_elf_merge_private_bfd_data): Rename from
460960484Sobrien	mips_elf_merge_private_bfd_data and make globally visible.
461060484Sobrien	(_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
461160484Sobrien	for a SHT_MIPS_OPTIONS section.
461260484Sobrien	(mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
461360484Sobrien	(_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
461460484Sobrien	name of a SHT_MIPS_OPTIONS section.
461560484Sobrien	(_bfd_mips_elf_set_section_contents): New function.
461660484Sobrien	(mips_elf32_section_processing): Set the GP value in a
461760484Sobrien	SHT_MIPS_OPTIONS section.
461860484Sobrien	(_bfd_mips_elf_find_nearest_line): Rename from
461960484Sobrien	mips_elf_find_nearest_line and make globally visible.
462060484Sobrien	(bfd_elf32_set_section_contents): Define.
462160484Sobrien	* elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
462260484Sobrien	(_bfd_mips_elf_lo16_reloc): Declare.
462360484Sobrien	(_bfd_mips_elf_gprel16_reloc): Declare.
462460484Sobrien	(_bfd_mips_elf_got16_reloc): Declare.
462560484Sobrien	(_bfd_mips_elf_gprel32_reloc): Declare.
462660484Sobrien	(_bfd_mips_elf_set_private_flags): Declare.
462760484Sobrien	(_bfd_mips_elf_copy_private_bfd_data): Declare.
462860484Sobrien	(_bfd_mips_elf_merge_private_bfd_data): Declare.
462960484Sobrien	(_bfd_mips_elf_find_nearest_line): Declare.
463060484Sobrien	(_bfd_mips_elf_set_section_contents): Declare.
463160484Sobrien
463260484Sobrien	* elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
463360484Sobrien	elf_info_to_howto.
463460484Sobrien	(elf_info_to_howto): Define.
463560484Sobrien	* elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
463660484Sobrien	elf_info_to_howto.
463760484Sobrien	(elf_info_to_howto): Define.
463860484Sobrien	* elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
463960484Sobrien	elf_info_to_howto.
464060484Sobrien	(elf_info_to_howto): Define.
464160484Sobrien
464260484Sobrien	* coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
464360484Sobrien	R_MOV16B[12], to match change in coff/internal.h.
464460484Sobrien
464560484SobrienThu May 30 12:38:49 1996  Ian Lance Taylor  <ian@cygnus.com>
464660484Sobrien
464760484Sobrien	* elf64-mips.c: Extensive additions to provide better support for
464860484Sobrien	writing files and for gas.
464960484Sobrien	* elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
465060484Sobrien	of mips_elf_object_p.
465160484Sobrien	(mips_elf32_object_p): Rename from mips_elf_object_p; call
465260484Sobrien	_bfd_mips_elf_object_p.
465360484Sobrien	(_bfd_mips_elf_final_write_processing): Rename from
465460484Sobrien	mips_elf_final_write_processing and make globally visible.
465560484Sobrien	(_bfd_mips_elf_fake_sections): Rename from
465660484Sobrien	mips_elf_fake_sections and make globally visible.
465760484Sobrien	(_bfd_mips_elf_section_from_bfd_section): Rename from
465860484Sobrien	mips_elf_section_from_bfd_section and make globally visible.
465960484Sobrien	(_bfd_mips_elf_section_processing): New function, broken out of
466060484Sobrien	mips_elf_section_processing.
466160484Sobrien	(mips_elf32_section_processing): Rename from
466260484Sobrien	mips_elf_section_processing; call
466360484Sobrien	_bfd_mips_elf_section_processing.
466460484Sobrien	(_bfd_mips_elf_symbol_processing): Rename from
466560484Sobrien	mips_elf_symbol_processing and make globally visible.
466660484Sobrien	(_bfd_mips_elf_read_ecoff_info): Rename from
466760484Sobrien	mips_elf_read_ecoff_info and make globally visible.
466860484Sobrien	(mips_elf32_ecoff_debug_swap): Rename from
466960484Sobrien	mips_elf_ecoff_debug_swap.
467060484Sobrien	* elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
467160484Sobrien	struct symbol_cache_entry.
467260484Sobrien	(_bfd_elf_validate_reloc): New function, moved in from
467360484Sobrien	elfcode.h:validate_reloc.
467460484Sobrien	* elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
467560484Sobrien	to _bfd_elf_validate_reloc.  Change all callers.
467660484Sobrien	* elf-bfd.h (bfd_section_from_shdr): Declare.
467760484Sobrien	(_bfd_elf_symbol_from_bfd_symbol): Declare.
467860484Sobrien	(_bfd_elf_validate_reloc): Declare.
467960484Sobrien	(_bfd_mips_elf_object_p): Declare.
468060484Sobrien	(_bfd_mips_elf_fake_sections): Declare.
468160484Sobrien	(_bfd_mips_elf_section_from_bfd_section): Declare.
468260484Sobrien	(_bfd_mips_elf_section_processing): Declare.
468360484Sobrien	(_bfd_mips_elf_symbol_processing): Declare.
468460484Sobrien	(_bfd_mips_elf_read_ecoff_info): Declare.
468560484Sobrien	(_bfd_mips_elf_final_write_processing): Declare.
468660484Sobrien	* elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
468760484Sobrien	if already defined.
468860484Sobrien
468960484Sobrien	* elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
469060484Sobrien	(mips_elf_final_write_processing): Likewise.
469160484Sobrien
469260484SobrienWed May 29 16:15:29 1996  Ian Lance Taylor  <ian@cygnus.com>
469360484Sobrien
469460484Sobrien	64-bit MIPS ELF ABI objdump support:
469560484Sobrien	* elf64-mips.c: New file.
469660484Sobrien	* Makefile.in: Rebuild dependencies.
469760484Sobrien 	(BFD64_BACKENDS): Add elf64-mips.o.
469860484Sobrien	(BFD64_BACKENDS_CFILES): Add elf64-mips.c.
469960484Sobrien	* config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
470060484Sobrien	bfd_elf64_littlemips_vec to targ_selvecs.
470160484Sobrien	(mips*-*-elf*): Likewise.
470260484Sobrien	* confingure.in: Add bfd_elf64_bigmips_vec and
470360484Sobrien	bfd_elf64_littlemips_vec to vector switch.
470460484Sobrien	* configure: Rebuild.
470560484Sobrien	* elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
470660484Sobrien	broken out of mips_elf_section_from_shdr.
470760484Sobrien	(mips_elf32_section_from_shdr): Rename from
470860484Sobrien	mips_elf_section_from_shdr.  Call new function.
470960484Sobrien	(elf_backend_section_from_shdr): Update name of renamed function.
471060484Sobrien	* elf-bfd.h (struct elf_size_info): Change second parameter of
471160484Sobrien	write_out_phdrs to be const.  Likewise for second parameter of
471260484Sobrien	swap_symbol_out.
471360484Sobrien	(struct bfd_elf_section_data): Add rel_hdr2 field.
471460484Sobrien	(bfd_elf32_swap_symbol_in): Change second parameter to be const.
471560484Sobrien	(bfd_elf32_swap_symbol_out): Likewise.
471660484Sobrien	(bfd_elf32_swap_reloc_in): Likewise.
471760484Sobrien	(bfd_elf32_swap_reloc_out): Likewise.
471860484Sobrien	(bfd_elf32_swap_reloca_in): Likewise.
471960484Sobrien	(bfd_elf32_swap_reloca_out): Likewise.
472060484Sobrien	(bfd_elf32_swap_phdr_in): Likewise.
472160484Sobrien	(bfd_elf32_swap_phdr_out): Likewise.
472260484Sobrien	(bfd_elf32_swap_dyn_in): Likewise.
472360484Sobrien	(bfd_elf32_swap_dyn_out): Likewise.
472460484Sobrien	(bfd_elf32_slurp_symbol_table): Declare.
472560484Sobrien	(bfd_elf32_write_shdrs_and_ehdr): Declare.
472660484Sobrien	(bfd_elf32_write_out_phdrs): Declare.
472760484Sobrien	(bfd_elf64_swap_symbol_in): Change second parameter to be const.
472860484Sobrien	(bfd_elf64_swap_symbol_out): Likewise.
472960484Sobrien	(bfd_elf64_swap_reloc_in): Likewise.
473060484Sobrien	(bfd_elf64_swap_reloc_out): Likewise.
473160484Sobrien	(bfd_elf64_swap_reloca_in): Likewise.
473260484Sobrien	(bfd_elf64_swap_reloca_out): Likewise.
473360484Sobrien	(bfd_elf64_swap_phdr_in): Likewise.
473460484Sobrien	(bfd_elf64_swap_phdr_out): Likewise.
473560484Sobrien	(bfd_elf64_swap_dyn_in): Likewise.
473660484Sobrien	(bfd_elf64_swap_dyn_out): Likewise.
473760484Sobrien	(bfd_elf64_slurp_symbol_table): Declare.
473860484Sobrien	(bfd_elf64_write_shdrs_and_ehdr): Declare.
473960484Sobrien	(bfd_elf64_write_out_phdrs): Declare.
474060484Sobrien	(_bfd_mips_elf_section_from_shdr): Declare.
474160484Sobrien	* elf.c (bfd_section_from_shdr): Remove assertion requiring
474260484Sobrien	SHT_REL/SHT_RELA to match use_rela_p.  If there is already a reloc
474360484Sobrien	section for the section, add the new one to rel_hdr2.  Increment
474460484Sobrien	reloc_count rather than setting it.
474560484Sobrien	* elfcode.h (elf_slurp_symbol_table): Define name as macro.
474660484Sobrien	Remove static declaration.
474760484Sobrien	(elf_write_shdrs_and_ehdr): Define name as macro.
474860484Sobrien	(elf_write_out_phdrs): Likewise.
474960484Sobrien	(elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
475060484Sobrien	(elf_swap_shdr_in, elf_swap_shdr_out): Declare.
475160484Sobrien	(elf_swap_symbol_in): Change second parameter to be const.
475260484Sobrien	(elf_swap_symbol_out): Likewise.
475360484Sobrien	(elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
475460484Sobrien	(elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
475560484Sobrien	(elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
475660484Sobrien	(elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
475760484Sobrien	(elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
475860484Sobrien	(elf_write_out_phdrs): Rename from write_out_phdrs.  Change second
475960484Sobrien	parameter to be const.  Make non-static.
476060484Sobrien	(elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
476160484Sobrien	Make non-static.
476260484Sobrien	(elf_slurp_symbol_table): Make non-static.
476360484Sobrien	(NAME(_bfd_elf,size_info)): Update names of renamed functions.
476460484Sobrien	* elfxx-target.h (elf_info_to_howto): Define if not defined.
476560484Sobrien	(elf_backend_size_info): Likewise.
476660484Sobrien	(elfNN_bed): Use elf_backend_size_info.
476760484Sobrien	* targets.c (bfd_elf64_bigmips_vec): Declare.
476860484Sobrien	(bfd_elf64_littlemips_vec): Declare.
476960484Sobrien	(bfd_target_vector): Add bfd_elf64_bigmips_vec and
477060484Sobrien	bfd_elf64_littlemips_vec if BFD64 is defined.
477160484Sobrien
477260484Sobrien	* libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
477360484Sobrien
477460484SobrienTue May 28 11:42:08 1996  Ian Lance Taylor  <ian@cygnus.com>
477560484Sobrien
477660484Sobrien	* coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
477760484Sobrien	zeroes, in alignment holes.
477860484Sobrien
477960484Sobrien	* configure: Rebuild with autoconf 2.10.
478060484Sobrien
478160484Sobrien	* aoutx.h (NAME(aout,find_nearest_line)): Make room for the
478260484Sobrien	potential leading underscore in the allocated buffer.
478360484Sobrien
478460484SobrienFri May 24 14:28:38 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
478560484Sobrien
478660484Sobrien	* elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
478760484Sobrien	symbols into .sbss if this is a relocatable link.
478860484Sobrien
478960484SobrienThu May 23 12:26:24 1996  Ian Lance Taylor  <ian@cygnus.com>
479060484Sobrien
479160484Sobrien	* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
479260484Sobrien	undefined symbols when creating a shared library.
479360484Sobrien
479460484SobrienFri May 17 13:54:15 1996  Ian Lance Taylor  <ian@cygnus.com>
479560484Sobrien
479660484Sobrien	* coff-sh.c: Add a bunch of new code and static const arrays to
479760484Sobrien	support aligning loads and stores on four byte memory boundaries.
479860484Sobrien	Also:
479960484Sobrien	(sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
480060484Sobrien	R_SH_LABEL.
480160484Sobrien	(sh_relax_section): Look for R_SH_CODE relocs.  If we find one,
480260484Sobrien	call sh_align_loads.
480360484Sobrien	(sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
480460484Sobrien	as unused.
480560484Sobrien
480660484SobrienThu May 16 16:34:13 1996  Ian Lance Taylor  <ian@cygnus.com>
480760484Sobrien
480860484Sobrien	* cache.c (bfd_open_file): Unlink the file before opening it for
480960484Sobrien	write.  From Marty Leisner <leisner@sdsp.mc.xerox.com>.
481060484Sobrien
481160484Sobrien	* opncls.c (bfd_fdopenr): Set opened_once.
481260484Sobrien
481360484SobrienTue May 14 12:35:32 1996  Ian Lance Taylor  <ian@cygnus.com>
481460484Sobrien
481560484Sobrien	* som.c (som_slurp_reloc_table): Clear external_relocs cache after
481660484Sobrien	freeing it.
481760484Sobrien
481860484Sobrien	* libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
481960484Sobrien	the code unconditionally.
482060484Sobrien
482160484SobrienMon May 13 19:51:37 1996  Ian Lance Taylor  <ian@cygnus.com>
482260484Sobrien
482360484Sobrien	* libcoff-in.h (struct pei_section_tdata): Define structure.
482460484Sobrien	(pei_section_data): Define macro.
482560484Sobrien	* libcoff.h: Rebuild.
482660484Sobrien	* coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
482760484Sobrien	store s_paddr field in pei_section_data.
482860484Sobrien	(coff_compute_section_file_positions): Use pei_section_data rather
482960484Sobrien	than _cooked_size, and don't overwrite an existing value.
483060484Sobrien	(coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
483160484Sobrien	0.  If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
483260484Sobrien	* peicode.h (coff_bfd_copy_private_section_data): Define if
483360484Sobrien	COFF_IMAGE_WITH_PE.
483460484Sobrien 	(pe_bfd_copy_private_section_data): New static function if
483560484Sobrien	COFF_IMAGE_WITH_PE.
483660484Sobrien
483760484SobrienWed May  8 16:10:38 1996  Ian Lance Taylor  <ian@cygnus.com>
483860484Sobrien
483960484Sobrien	* srec.c (srec_set_arch_mach): Write as a function rather than a
484060484Sobrien	macro definition.
484160484Sobrien
484260484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
484360484Sobrien	no map, just check each member in turn to see whether it is
484460484Sobrien	required.
484560484Sobrien
484660484SobrienWed May  8 09:17:34 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
484760484Sobrien
484860484Sobrien	* ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
484960484Sobrien	table.  Call BFD_ASSERT to validate header size, instead of
485060484Sobrien	calling fatal.
485160484Sobrien	(ppcboot_bfd_print_private_bfd_data): Put quotes around partition
485260484Sobrien	name.
485360484Sobrien
485460484SobrienTue May  7 16:10:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
485560484Sobrien
485660484Sobrien	* ppcboot.c: New target for looking at PPCbug boot records.
485760484Sobrien
485860484Sobrien	* config{ure.in,.bfd}: Add support for ppcboot target.
485960484Sobrien	* targets.c: Ditto.
486060484Sobrien	* configure: Regenerate.
486160484Sobrien
486260484SobrienTue May  7 11:15:19 1996  Jeffrey A Law  (law@cygnus.com)
486360484Sobrien
486460484Sobrien	* coff-h8300.c (howto_table): Update names to match recent
486560484Sobrien	changes to include/coff/internal.h.  Fix minor errors in the
486660484Sobrien	existing relocs.  Add R_MOVL1 and R_MOVL2.
486760484Sobrien	(rtype2howto): Similarly.
486860484Sobrien	(h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
486960484Sobrien	existing relaxing code  and peform more relaxing.
487060484Sobrien	(h8300_reloc16_extra_cases): Likewise.
487160484Sobrien
487260484SobrienMon May  6 18:24:09 1996  Jeffrey A Law  (law@cygnus.com)
487360484Sobrien
487460484Sobrien	* reloc16.c (bfd_coff_reloc16_get_value): Handle common
487560484Sobrien	symbols correctly.
487660484Sobrien
487760484SobrienSat May  4 05:08:45 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
487860484Sobrien
487960484Sobrien	* elfcode.h (elf_object_p):  Reject generic ELF target if
488060484Sobrien	e_machine matches an alternate machine code in a specific backend.
488160484Sobrien
488260484Sobrien	* netbsd-core.c (netbsd_core_vec):  Remove initializer for
488360484Sobrien	obsolete align_power_min field.
488460484Sobrien
488560484SobrienFri May  3 13:07:35 1996  Jeffrey A Law  (law@cygnus.com)
488660484Sobrien
488760484Sobrien	* coff-h8300.c (reloc_howto_type): Add howto entry for
488860484Sobrien	R_PCRWORD_B.
488960484Sobrien	(rtype2howto): Handle R_PCRWORD_B.
489060484Sobrien	(h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
489160484Sobrien	(h8300_reloc_16_estimate): Likewise.  Try to turn a 16bit
489260484Sobrien	pc-relative branch (R_PCRWORD) into an 8bit pc-relative
489360484Sobrien	branch (R_PCWORD_B).
489460484Sobrien
489560484SobrienFri May  3 10:47:41 1996  Ian Lance Taylor  <ian@cygnus.com>
489660484Sobrien
489760484Sobrien	* aoutx.h (translate_from_native_sym_flags): Set the section for
489860484Sobrien	BSF_CONSTRUCTOR symbols.
489960484Sobrien
490060484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
490160484Sobrien	last_bf_index.
490260484Sobrien
490360484SobrienWed May  1 18:39:32 1996  Doug Evans  <dje@canuck.cygnus.com>
490460484Sobrien
490560484Sobrien	* coffcode.h (coff_write_object_contents): In comdat section lookup,
490660484Sobrien	stop looking when section is found.
490760484Sobrien
490860484SobrienWed May  1 14:17:57 1996  Ian Lance Taylor  <ian@cygnus.com>
490960484Sobrien
491060484Sobrien	* coffcode.h (STRING_SIZE_SIZE): Define.
491160484Sobrien	(styp_to_sec_flags): Handle long symbol names when looking for the
491260484Sobrien	section symbol.
491360484Sobrien	(bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
491460484Sobrien	(bfd_coff_long_section_names): Define.
491560484Sobrien	(coff_write_object_contents): Handle long section names.
491660484Sobrien	(bfd_coff_std_swap_table): Initialize new field.
491760484Sobrien	* libcoff.h: Rebuild.
491860484Sobrien	* coffgen.c (make_a_section_from_file): Handle long section
491960484Sobrien	names.
492060484Sobrien	(coff_write_symbols): Handle long section names.
492160484Sobrien	* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
492260484Sobrien	* coff-mips.c (mips_ecoff_backend_data): Likewise.
492360484Sobrien	* pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
492460484Sobrien	* pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
492560484Sobrien	* pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
492660484Sobrien	* pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
492760484Sobrien	* pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
492860484Sobrien	* pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
492960484Sobrien
493060484Sobrien	* bout.c (b_out_callback): Set lma of sections.
493160484Sobrien	(b_out_bfd_get_relocated_section_contents): Rename in_abfd
493260484Sobrien	parameter to output_bfd.  Used input_bfd instead of output_bfd in
493360484Sobrien	several places.
493460484Sobrien
493560484SobrienTue Apr 30 17:56:39 1996  Ian Lance Taylor  <ian@cygnus.com>
493660484Sobrien
493760484Sobrien	* aoutx.h (translate_from_native_sym_flags): Don't create
493860484Sobrien	SEC_CONSTRUCTOR sections.
493960484Sobrien	* ecoff.c (ecoff_set_symbol_info): Likewise.
494060484Sobrien
494160484Sobrien	* elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
494260484Sobrien	From Don Bowman <bowman@waterloo.hp.com>.
494360484Sobrien
494460484SobrienTue Apr 30 17:06:32 1996  Doug Evans  <dje@canuck.cygnus.com>
494560484Sobrien
494660484Sobrien	* coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
494760484Sobrien	SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
494860484Sobrien
494960484SobrienMon Apr 29 13:15:17 1996  Ian Lance Taylor  <ian@cygnus.com>
495060484Sobrien
495160484Sobrien	* elf32-mips.c (struct mips_elf_link_hash_entry): Add
495260484Sobrien	mips_32_relocs field.
495360484Sobrien	(mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
495460484Sobrien	(mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
495560484Sobrien	relocs against a global symbol which is not defined in a regular
495660484Sobrien	file.
495760484Sobrien	(mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
495860484Sobrien	against a global symbol, increment mips_32_relocs.
495960484Sobrien	(mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
496060484Sobrien	the symbol is not defined in a regular file, make room in the
496160484Sobrien	.rel.dyn section.
496260484Sobrien
496360484SobrienFri Apr 26 18:00:37 1996  Ian Lance Taylor  <ian@cygnus.com>
496460484Sobrien
496560484Sobrien	* ecoff.c (ecoff_compute_section_file_positions): Track the real
496660484Sobrien	file position and the virtual file position separately.  Set
496760484Sobrien	filepos information bsaed on the real file position.
496860484Sobrien	(_bfd_ecoff_set_section_contents): Handle .lib sections like the
496960484Sobrien	Jan 23 change to coffcode.h.
497060484Sobrien
497160484Sobrien	* som.c (som_slurp_symbol_table): Set the symbol count to the
497260484Sobrien	number of BFD symbols created.
497360484Sobrien
497460484SobrienFri Apr 26 12:34:29 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
497560484Sobrien
497660484Sobrien	* elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
497760484Sobrien	output file if linking shared objects.  Loop to check all relocs,
497860484Sobrien	rather than returning false on first error.
497960484Sobrien
498060484SobrienThu Apr 25 13:25:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
498160484Sobrien
498260484Sobrien	* elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
498360484Sobrien	(ppc_elf_additional_program_headers): If .interp section, bump #
498460484Sobrien	of program headers by 1.
498560484Sobrien	(ppc_elf_adjust_dynamic_symbol): Flesh out support.
498660484Sobrien	(ppc_elf_size_dynamic_sections): Add support for .plt section.
498760484Sobrien	(ppc_elf_check_relocs): Print out filename in debug code.  Enable
498860484Sobrien	PLT support.
498960484Sobrien	(ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
499060484Sobrien	debug output.
499160484Sobrien	(ppc_elf_relocate_section): If the output section isn't defined,
499260484Sobrien	don't abort, just give an error message.
499360484Sobrien
499460484Sobrien	* elflink.c (_bfd_elf_create_dynamic_sections): If the section
499560484Sobrien	being created is .sdata or .sdata2, don't make the symbol dynamic.
499660484Sobrien
499760484SobrienWed Apr 24 14:04:07 1996  Ian Lance Taylor  <ian@cygnus.com>
499860484Sobrien
499960484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
500060484Sobrien	members of an archive for dynamic objects with no symbols, and
500160484Sobrien	pass them directly to check_archive_element.
500260484Sobrien	(xcoff_link_check_ar_symbols): Pass dynamic objects to
500360484Sobrien	xcoff_link_check_dynamic_ar_symbols.
500460484Sobrien	(xcoff_link_check_dynamic_ar_symbols): New static function.
500560484Sobrien
500660484Sobrien	* coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
500760484Sobrien	from _bfd_nodynamic to _bfd_xcoff.
500860484Sobrien	* libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
500960484Sobrien	Declare.
501060484Sobrien	(_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
501160484Sobrien	(_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
501260484Sobrien	(_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
501360484Sobrien	* libcoff.h: Rebuild.
501460484Sobrien	* xcofflink.c (xcoff_swap_ldrel_in): New static function.
501560484Sobrien	(xcoff_get_section_contents): New static function.
501660484Sobrien	(_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
501760484Sobrien	(_bfd_xcoff_canonicalize_dynamic_symtab): New function.
501860484Sobrien	(_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
501960484Sobrien	(xcoff_dynamic_reloc): New static variable.
502060484Sobrien	(_bfd_xcoff_canonicalize_dynamic_reloc): New function.
502160484Sobrien	(xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
502260484Sobrien
502360484SobrienTue Apr 23 12:48:42 1996  Ian Lance Taylor  <ian@cygnus.com>
502460484Sobrien
502560484Sobrien	* coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
502660484Sobrien	if reloc_entry->addend is not 0.
502760484Sobrien	(CALC_ADDEND): Just set the addend to reloc.r_offset.
502860484Sobrien
502960484SobrienMon Apr 22 18:29:01 1996  Doug Evans  <dje@canuck.cygnus.com>
503060484Sobrien
503160484Sobrien	* elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
503260484Sobrien	R_SPARC_GLOB_JMP.
503360484Sobrien	* elf64-sparc.c (sparc64_elf_howto_table): Likewise.
503460484Sobrien	Add entries for R_SPARC_[56].
503560484Sobrien	(sparc_reloc_map): Add entries for R_SPARC_[56].
503660484Sobrien
503760484SobrienMon Apr 22 15:07:24 1996  Ian Lance Taylor  <ian@cygnus.com>
503860484Sobrien
503960484Sobrien	Optimize linking of stabs in sections as used in ELF and COFF.
504060484Sobrien	* stabs.c: New file.
504160484Sobrien	* libbfd-in.h (_bfd_link_section_stabs): Declare.
504260484Sobrien	(_bfd_write_section_stabs): Declare.
504360484Sobrien	(_bfd_write_stab_strings): Declare.
504460484Sobrien	* libbfd.h: Rebuild.
504560484Sobrien	* libcoff-in.h (struct coff_section_tdata): Add stab_info field.
504660484Sobrien	(struct coff_link_hash_table): Add stab_info field.
504760484Sobrien	* libcoff.h: Rebuild.
504860484Sobrien	* cofflink.c (_bfd_coff_link_hash_table_init): Initialize
504960484Sobrien	stab_info field.
505060484Sobrien	(coff_link_add_symbols): Call _bfd_link_section_stabs if
505160484Sobrien	appropriate.
505260484Sobrien	(_bfd_coff_final_link): Write out stab strings hash table.
505360484Sobrien	(_bfd_coff_link_input_bfd): Handle optimized stabs sections.
505460484Sobrien	* coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
505560484Sobrien	hash table.
505660484Sobrien	* elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
505760484Sobrien	(struct bfd_elf_section_data): Add stab_info field.
505860484Sobrien	* elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
505960484Sobrien	field.
506060484Sobrien	* elflink.h (elf_link_add_object_symbols): If appropriate, call
506160484Sobrien	_bfd_link_section_stabs.
506260484Sobrien	(elf_bfd_final_link): Write out stab strings hash table.
506360484Sobrien	(elf_link_input_bfd): Handle optimized stabs sections.
506460484Sobrien	* reloc.c (_bfd_final_link_relocate): Check address against
506560484Sobrien	_raw_size rather than _cooked_size.
506660484Sobrien	* Makefile.in: Rebuild dependencies.
506760484Sobrien	(BFD_LIBS): Add stabs.o
506860484Sobrien	(BFD_LIBS_CFILES): Add stabs.c.
506960484Sobrien
507060484Sobrien	* VERSION: Increment for bfdlink.h change.
507160484Sobrien
507260484Sobrien	* coffgen.c (coff_renumber_symbols): Correct handling of
507360484Sobrien	BSF_NOT_AT_END common symbols.
507460484Sobrien
507560484SobrienFri Apr 19 19:21:56 1996  Ian Lance Taylor  <ian@cygnus.com>
507660484Sobrien
507760484Sobrien	* coff-ppc.c (record_toc): Add cast to avoid warning.
507860484Sobrien	(ppc_allocate_toc_section): Likewise.
507960484Sobrien	(coff_ppc_relocate_section): Remove ANSI C string concatenation.
508060484Sobrien	(ppc_coff_reloc_type_lookup): Remove unreached code.
508160484Sobrien	* coffcode.h (coff_write_object_contents): Don't take the address
508260484Sobrien	of an array.
508360484Sobrien	* peicode.h (pe_print_idata): Add casts to avoid warning.
508460484Sobrien	(pe_print_edata): Likewise.
508560484Sobrien	(pe_print_reloc): Remove ANSI C string concatenation.
508660484Sobrien
508760484SobrienThu Apr 18 18:51:18 1996  Ian Lance Taylor  <ian@cygnus.com>
508860484Sobrien
508960484Sobrien	* libcoff-in.h (struct coff_final_link_info): Add last_bf_index
509060484Sobrien	and last_bf fields.
509160484Sobrien	* libcoff.h: Rebuild.
509260484Sobrien	* coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
509360484Sobrien	symbols.
509460484Sobrien	(coff_swap_aux_out): Likewise.
509560484Sobrien	* peicode.h (coff_swap_aux_in): Likewise.
509660484Sobrien	(coff_swap_aux_out): Likewise.
509760484Sobrien	* coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
509860484Sobrien	symbols.
509960484Sobrien	* cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
510060484Sobrien	field.
510160484Sobrien	(_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
510260484Sobrien	Fix up .bf endndx link fields.
510360484Sobrien	* coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
510460484Sobrien	field.
510560484Sobrien	* xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
510660484Sobrien	symbols.
510760484Sobrien
510860484SobrienWed Apr 17 12:08:24 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
510960484Sobrien
511060484Sobrien	* pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
511160484Sobrien	on Solaris PowerPC systems doesn't get confused.
511260484Sobrien
511360484Sobrien	* ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
511460484Sobrien	#ifdef PPC.
511560484Sobrien
511660484Sobrien	* elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
511760484Sobrien	(elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
511860484Sobrien	update did_reg and did_reg2.
511960484Sobrien
512060484SobrienWed Apr 17 13:07:37 1996  Ian Lance Taylor  <ian@cygnus.com>
512160484Sobrien
512260484Sobrien	* xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
512360484Sobrien
512460484Sobrien	* linker.c (_bfd_generic_link_add_one_symbol): When calling the
512560484Sobrien	callback routines, pass h->root.string rather than name, in case
512660484Sobrien	copy is true and name is transient.
512760484Sobrien
512860484SobrienTue Apr 16 16:36:38 1996  Stu Grossman  (grossman@lisa.cygnus.com)
512960484Sobrien
513060484Sobrien	* elfcore.h:  Add support for core files with multiple threads.
513160484Sobrien	(Primarily for Solaris.)
513260484Sobrien
513360484SobrienTue Apr 16 13:44:08 1996  Ian Lance Taylor  <ian@cygnus.com>
513460484Sobrien
513560484Sobrien	* aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
513660484Sobrien	section->orelocation is NULL.
513760484Sobrien
513860484Sobrien	* coffgen.c (bfd_coff_get_syment): New function.
513960484Sobrien	(bfd_coff_get_auxent): New function.
514060484Sobrien	* bfd-in.h (bfd_coff_get_syment): Declare.
514160484Sobrien	(bfd_coff_get_auxent): Declare.
514260484Sobrien	* bfd-in2.h: Rebuild.
514360484Sobrien
514460484SobrienMon Apr 15 19:06:59 1996  Ian Lance Taylor  <ian@cygnus.com>
514560484Sobrien
514660484Sobrien	* elf32-mips.c (struct mips_hi16): Define.
514760484Sobrien	(mips_hi16_addr, mips_hi16_addend): Remove.
514860484Sobrien	(mips_hi16_list): New static variable.
514960484Sobrien	(mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
515060484Sobrien	(mips_elf_lo16_reloc): Process mips_hi16_list.
515160484Sobrien	(mips_elf_relocate_section): Permit an arbitrary number of HI16
515260484Sobrien	relocs before the associated LO16 reloc.
515360484Sobrien
515460484SobrienWed Apr 10 00:23:53 1996  Ian Lance Taylor  <ian@cygnus.com>
515560484Sobrien
515660484Sobrien	* versados.c (versados_scan): Check bfd_alloc return value.
515760484Sobrien	(versados_object_p): Check all bfd_read return values.  Require
515860484Sobrien	that lang field be less than 10, to avoid confusion with Intel Hex
515960484Sobrien	files.
516060484Sobrien
516160484Sobrien	* libaout.h (WRITE_HEADERS): Write out the relocs even if there
516260484Sobrien	aren't any symbols.
516360484Sobrien	* aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
516460484Sobrien	not 0, for an absolute symbol.
516560484Sobrien	(NAME(aout,swap_ext_reloc_out)): Likewise.
516660484Sobrien
516760484Sobrien	* ihex.c (ihex_scan): Accept a length of 4 for record type 5.
516860484Sobrien	(ihex_write_object_contents): For a large start address, output
516960484Sobrien	the full 32 bit address in record type 5.
517060484Sobrien
517160484Sobrien	* ieee.c (ieee_write_byte): Change second parameter from bfd_byte
517260484Sobrien	to int to avoid promotion problems in prototype.
517360484Sobrien
517460484SobrienTue Apr  9 11:44:21 1996  Ian Lance Taylor  <ian@cygnus.com>
517560484Sobrien
517660484Sobrien	* configure.host: Use ${srcdir} when looking for picfrag.
517760484Sobrien
517860484Sobrien	* configure.host: Switch on ${libdir}, not $(libdir).  From
517960484Sobrien	alan@spri.levels.unisa.edu.au (Alan Modra).
518060484Sobrien
518160484Sobrien	* aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
518260484Sobrien	entry point, not just for DYNAMIC objects.
518360484Sobrien	* sunos.c (sunos_add_dynamic_symbols): Always call
518460484Sobrien	sunos_create_dynamic_sections.  If called with a non DYNAMIC
518560484Sobrien	object, don't do anything else.
518660484Sobrien	(sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
518760484Sobrien
518860484SobrienMon Apr  8 12:09:36 1996  Ian Lance Taylor  <ian@cygnus.com>
518960484Sobrien
519060484Sobrien	* configure.in: Permit --enable-shared to specify a list of
519160484Sobrien	directories.
519260484Sobrien	* configure: Rebuild.
519360484Sobrien
519460484Sobrien	* configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
519560484Sobrien	host when configuring with --enable-shard.
519660484Sobrien
519760484SobrienFri Apr  5 12:24:13 1996  Ian Lance Taylor  <ian@cygnus.com>
519860484Sobrien
519960484Sobrien	* config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
520060484Sobrien	<jdp@polstra.com>.
520160484Sobrien
520260484Sobrien	* linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
520360484Sobrien	to avoid crashing in bfd_hash_replace.
520460484Sobrien
520560484Sobrien	* sysdep.h: Use #ifdef, not #if.
520660484Sobrien
520760484SobrienThu Apr  4 23:32:23 1996  Ian Lance Taylor  <ian@cygnus.com>
520860484Sobrien
520960484Sobrien	* config.in: Rebuild.
521060484Sobrien
521160484SobrienThu Apr  4 18:49:09 1996  Fred Fish  <fnf@cygnus.com>
521260484Sobrien
521360484Sobrien	* configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
521460484Sobrien	(AC_CHECK_HEADERS): Check for sys/time.h
521560484Sobrien	(AC_HEADER_TIME): Add macro.
521660484Sobrien	* configure: Rebuild.
521760484Sobrien	* sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
521860484Sobrien	to control what combination of <time> and <sys/time.h>
521960484Sobrien	get included.
522060484Sobrien
522160484SobrienTue Apr  2 13:11:53 1996  Doug Evans  <dje@canuck.cygnus.com>
522260484Sobrien
522360484Sobrien	* aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
522460484Sobrien	(aout_32_sunos4_write_object_contents): Likewise.
522560484Sobrien	* aoutx.h (NAME(aout,machine_type)): Handle
522660484Sobrien	bfd_mach_sparc_{sparclet,sparclite}.
522760484Sobrien	* archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
522860484Sobrien	(bfd_mach_sparc_v9_p): Update.
522960484Sobrien	* cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
523060484Sobrien	* libaout.h (enum machine_type): Add M_SPARCLET.
523160484Sobrien	* sunos.c (MACHTYPE_OK): Define.
523260484Sobrien	* bfd-in2.h: Regenerated.
523360484Sobrien
523460484SobrienTue Apr  2 00:33:18 1996  Ian Lance Taylor  <ian@cygnus.com>
523560484Sobrien
523660484Sobrien	* elf-bfd.h (struct elf_link_hash_table): Add hgot field.
523760484Sobrien	* elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
523860484Sobrien	* elflink.c (_bfd_elf_create_got_section): Store the
523960484Sobrien	_GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
524060484Sobrien	* elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
524160484Sobrien	global offset table goes over 0x1000, set the value of
524260484Sobrien	_GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
524360484Sobrien	(elf32_sparc_relocate_section): Subtract the offset of
524460484Sobrien	_GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
524560484Sobrien
524660484Sobrien	* elfcode.h: Don't include <string.h>.
524760484Sobrien
524860484SobrienMon Apr  1 10:39:24 1996  Jeffrey A Law  (law@cygnus.com)
524960484Sobrien
525060484Sobrien	* linker.c (_bfd_generic_link_hash_newfunc): Renamed from
525160484Sobrien	generic_link_hash_newfunc.  All references changed.
525260484Sobrien	* genlink.h (_bfd_generic_link_hash_newfunc): Declaration
525360484Sobrien	moved here from libbfd-in.h.
525460484Sobrien	* libbfd-in.h: Corresponding changes.
525560484Sobrien	* libbfd.h: Regenerated.
525660484Sobrien
525760484SobrienMon Apr  1 12:35:36 1996  Ian Lance Taylor  <ian@cygnus.com>
525860484Sobrien
525960484Sobrien	* aoutx.h (aout_link_input_section_std): When reporting an
526060484Sobrien	overflow error, use the name of the symbol in the hash table if
526160484Sobrien	available.
526260484Sobrien	(aout_link_input_section_ext): Likewise.
526360484Sobrien
526460484Sobrien	* elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
526560484Sobrien	defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
526660484Sobrien
526760484SobrienSun Mar 31 01:58:41 1996  steve chamberlain  <sac@slash.cygnus.com>
526860484Sobrien
526960484Sobrien	* peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
527060484Sobrien	* coffcode.h (coff_compute_section_file_positions): Likewise.
527160484Sobrien	(coff_write_object_contents): Likewise.
527260484Sobrien
527360484SobrienFri Mar 29 12:44:36 1996  Ian Lance Taylor  <ian@cygnus.com>
527460484Sobrien
527560484Sobrien	* section.c (SEC_LINK_ONCE): Define.
527660484Sobrien	(SEC_LINK_DUPLICATES): Define.
527760484Sobrien	(SEC_LINK_DUPLICATES_DISCARD): Define.
527860484Sobrien	(SEC_LINK_DUPLICATES_ONE_ONLY): Define.
527960484Sobrien	(SEC_LINK_DUPLICATES_SAME_SIZE): Define.
528060484Sobrien	(SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
528160484Sobrien	* bfd-in2.h: Rebuild.
528260484Sobrien	* coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
528360484Sobrien	SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
528460484Sobrien	(styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
528560484Sobrien	into SEC_EXCLUDE.  If IMAGE_SCN_LNK_COMDAT is set, set
528660484Sobrien	SEC_LINK_ONCE, and look through the symbol table for the setting
528760484Sobrien	for SEC_LINK_DUPLICATES.
528860484Sobrien	(coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
528960484Sobrien	set for a section, find the section symbol in the symbol table,
529060484Sobrien	and set the aux entry based on SEC_LINK_DUPLICATES.
529160484Sobrien	* coffgen.c (coff_print_symbol): Add a space before "checksum".
529260484Sobrien	* coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
529360484Sobrien	SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
529460484Sobrien	* coff-i386.c (i386coff_vec): Likewise.
529560484Sobrien	* coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
529660484Sobrien
529760484Sobrien	* VERSION: Bump to 2.6.1.
529860484Sobrien	* Makefile.in (stamp-h): Depend upon VERSION.
529960484Sobrien
530060484SobrienThu Mar 28 23:48:49 1996  Jeffrey A Law  (law@cygnus.com)
530160484Sobrien
530260484Sobrien	* libbfd-in.h (generic_link_hash_newfunc): Add declaration.
530360484Sobrien	* libbfd.h: Rebuilt.
530460484Sobrien	* linker.c (generic_link_hash_newfunc): No longer static.
530560484Sobrien	* coffcode.h (coff_bfd_link_hash_create): Allow specific targets
530660484Sobrien	to override.
530760484Sobrien	* coff-h8300.c: Add two derived hash tables and their associated
530860484Sobrien	funtions and #defines for use by the h8300 linker.
530960484Sobrien	(h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
531060484Sobrien	the function vector as needed.  Place the address of the function
531160484Sobrien	vector entry in the location specified by the R_MEM_INDIRECT reloc.
531260484Sobrien	Rewrite the vectors section contents as necessary.
531360484Sobrien	(h8300_bfd_link_add_symbols): New function for the h8300 linker.
531460484Sobrien	(coff_bfd_link_add_symbols): Define to use h8300 specific version.
531560484Sobrien	(coff_bfd_link_hash_table_create): Likewise.
531660484Sobrien
531760484SobrienThu Mar 28 17:44:08 1996  Ian Lance Taylor  <ian@cygnus.com>
531860484Sobrien
531960484Sobrien	* libhppa.h: If gcc 2.7 or higher, declare all the functions with
532060484Sobrien	__attribute__ ((__unused__)) so that -Wall doesn't warn about
532160484Sobrien	them.
532260484Sobrien	(hppa_rebuild_insn): Pass pointer to correct type to
532360484Sobrien	low_sign_unext and dis_assemble_21.
532460484Sobrien
532560484SobrienThu Mar 28 11:00:36 1996  Doug Evans  <dje@canuck.cygnus.com>
532660484Sobrien
532760484Sobrien	* config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
532860484Sobrien	Stick with sparc-*-{sysv4*,solaris2*}.
532960484Sobrien
533060484SobrienWed Mar 27 10:43:34 1996  Ian Lance Taylor  <ian@cygnus.com>
533160484Sobrien
533260484Sobrien	* peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
533360484Sobrien	(coff_swap_aux_out): Swap out extra PE x_scn fields.
533460484Sobrien	* coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
533560484Sobrien	* coffgen.c (coff_print_symbol): If any of the extra PE x_scn
533660484Sobrien	fields is non-zero, print them.
533760484Sobrien
533860484Sobrien	* coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
533960484Sobrien	ifdef.  Remove unused variables.
534060484Sobrien	(ppc_record_data_in_toc_entry): Ifdef out.  Removed unused
534160484Sobrien	variables.
534260484Sobrien	(ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
534360484Sobrien	(get_symbol_value): Ifdef out.
534460484Sobrien	(pe_ppc_reloc): Ifdef out.  Remove unused variables.
534560484Sobrien	(coff_ppc_relocate_section): Remove unused variables.  Make
534660484Sobrien	fprintf strings and argument types correspond.  Put before_addr in
534760484Sobrien	DEBUG_RELOC ifdef.
534860484Sobrien	(dump_toc): Make fprintf strings and argument types correspond.
534960484Sobrien	(ppc_process_before_allocation): Remove unused variables.  Always
535060484Sobrien	return a value.
535160484Sobrien	(ppc_reflo_reloc): Ifdef out.
535260484Sobrien	(ppc_addr32nb_reloc): Ifdef out.
535360484Sobrien	(ppc_coff_rtype2howto): Make fprintf strings and argument types
535460484Sobrien	correspond.
535560484Sobrien	(coff_ppc_rtype_to_howto): Likewise.
535660484Sobrien	(ppc_coff_swap_sym_in_hook): Remove unused variables.
535760484Sobrien
535860484Sobrien	* peicode.h (pe_print_idata): Move otherwise unused variables into
535960484Sobrien	the #ifdef where they are used.  Always return a value.
536060484Sobrien	(pe_print_edata): Make fprintf strings and argument types
536160484Sobrien	correspond.  Always return a value.
536260484Sobrien	(pe_print_pdata): Removed unused variable addr_value.  Always
536360484Sobrien	return a value.
536460484Sobrien	(pe_print_reloc): Remove unused variable onaline.  Make fprintf
536560484Sobrien	strings and argument types correspond.  Always return a value.
536660484Sobrien
536760484Sobrien	* elf32-ppc.c (ppc_elf_fake_sections): Return true.
536860484Sobrien	(ppc_elf_finish_dynamic_symbol): Move definition of unused
536960484Sobrien	variable rela inside #if 0 section where it is used.
537060484Sobrien
537160484Sobrien	* ns32k.h: New file.
537260484Sobrien	* cpu-ns32k.h: Include ns32k.h.  Rename externally visible
537360484Sobrien	functions to start with _bfd_.
537460484Sobrien	* aout-ns32k.c: Include ns32k.h.  Change references to renamed
537560484Sobrien	functions in cpu-ns32k.h.
537660484Sobrien	* Makefile.in: Rebuild dependencies.
537760484Sobrien	(HFILES): Add ns32k.h.
537860484Sobrien
537960484Sobrien	* section.c (struct sec): Add linker_mark field.  Change
538060484Sobrien	user_set_vma and reloc_done to be single bit fields.
538160484Sobrien	(STD_SECTION): Update accordingly.
538260484Sobrien	* bfd-in2.h: Rebuild.
538360484Sobrien	* aoutx.h (NAME(aout,final_link)): Mark sections included in the
538460484Sobrien	link.
538560484Sobrien	(aout_link_input_bfd): Don't link unmarked sections.
538660484Sobrien	* cofflink.c (_bfd_coff_final_link): Mark sections included in the
538760484Sobrien	link.
538860484Sobrien	(_bfd_coff_link_input_bfd): Don't link unmarked sections.
538960484Sobrien	* coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
539060484Sobrien	the link.
539160484Sobrien	* elflink.h (elf_bfd_final_link): Mark sections included in the
539260484Sobrien	link.
539360484Sobrien	(elf_link_input_bfd): Don't link unmarked sections.
539460484Sobrien	* xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
539560484Sobrien	in the link.
539660484Sobrien	(xcoff_link_input_bfd): Don't link unmarked sections.
539760484Sobrien
539860484Sobrien	* coffswap.h (coff_swap_scnhdr_out): Include section name in
539960484Sobrien	overflow error messages.
540060484Sobrien
540160484SobrienTue Mar 26 15:46:18 1996  Ian Lance Taylor  <ian@cygnus.com>
540260484Sobrien
540360484Sobrien	* bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
540460484Sobrien	is not set, print "BFD: " before the error message.
540560484Sobrien
540660484Sobrien	* configure.in: Use AC_CHECK_TOOL to find ar and ranlib.  From
540760484Sobrien	Miles Bader <miles@gnu.ai.mit.edu>.
540860484Sobrien	* configure: Rebuild.
540960484Sobrien
541060484SobrienFri Mar 22 12:17:00 1996  Ian Lance Taylor  <ian@cygnus.com>
541160484Sobrien
541260484Sobrien	* xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
541360484Sobrien	symbols.
541460484Sobrien
541560484Sobrien	* config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
541660484Sobrien	m68k-aout, m68k-coff, and m68k-elf targets.
541760484Sobrien
541860484SobrienFri Mar 22 11:33:44 1996  Martin Anantharaman  <martin@goofy.imech.uni-duisburg.de>
541960484Sobrien
542060484Sobrien	* ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
542160484Sobrien	(ieee_generic_stat_arch_elt): Restructured to prevent
542260484Sobrien	ieee_object_p from being called repeatedly.
542360484Sobrien
542460484SobrienThu Mar 21 11:00:47 1996  steve chamberlain  <sac@slash.cygnus.com>
542560484Sobrien
542660484Sobrien	* coffcode.h (coff_write_object_contents):  Allocate
542760484Sobrien	buffers large enough for any FILEHDR or AOUTHDR.
542860484Sobrien
542960484SobrienThu Mar 21 16:28:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
543060484Sobrien
543160484Sobrien	* ecofflink.c (lookup_line): New static function, renamed and
543260484Sobrien	slighly changed from old _bfd_ecoff_locate_line.
543360484Sobrien	(_bfd_ecoff_locate_line): Cache line number information.  Use
543460484Sobrien	lookup_line for actual lookup.
543560484Sobrien
543660484SobrienThu Mar 21 14:59:11 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
543760484Sobrien
543860484Sobrien	* peicode.h (pe_print_pdata): Warn if the .pdata section is not a
543960484Sobrien	multiple of 20 bytes.
544060484Sobrien
544160484SobrienThu Mar 21 13:54:40 1996  Ian Lance Taylor  <ian@cygnus.com>
544260484Sobrien
544360484Sobrien	* ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
544460484Sobrien	allocate ecoff_find_line, and don't initialize by hand.
544560484Sobrien	* elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
544660484Sobrien	mips_elf_find_line, and don't call memset.
544760484Sobrien
544860484Sobrien	* coffcode.h (coff_compute_section_file_positions): If not
544960484Sobrien	producing a final executable, don't consider sofar when aligning
545060484Sobrien	the section to the correct size.
545160484Sobrien
545260484SobrienWed Mar 20 16:53:12 1996  Ian Lance Taylor  <ian@cygnus.com>
545360484Sobrien
545460484Sobrien	* coffcode.h (coff_add_missing_symbols): Ifdef out.
545560484Sobrien	(coff_write_object_contents): Don't call coff_add_missing_symbols.
545660484Sobrien	* coffgen.c (coff_section_symbol): Ifdef out.
545760484Sobrien
545860484SobrienMon Mar 18 12:54:41 1996  Ian Lance Taylor  <ian@cygnus.com>
545960484Sobrien
546060484Sobrien	* elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
546160484Sobrien	output_bfd is not NULL.
546260484Sobrien
546360484SobrienThu Mar 14 17:12:06 1996  Doug Evans  <dje@charmed.cygnus.com>
546460484Sobrien
546560484Sobrien	* coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
546660484Sobrien	of bfd_alloc (fixes fix_line not being initialized).
546760484Sobrien	Delete zeroing of fix_{value,tag,end,scnlen} fields.
546860484Sobrien
546960484SobrienThu Mar 14 16:06:06 1996  Jeffrey A Law  (law@cygnus.com)
547060484Sobrien
547160484Sobrien	* coffcode.h: Allow specific backends to override the
547260484Sobrien	bfd_link_add_symbols routine.
547360484Sobrien
547460484Sobrien	* coff-h8300.c: Include genlink.h.
547560484Sobrien	(howto_table): Add R_MEM_INDIRECT.
547660484Sobrien	(rtype2howto): Support R_MEM_INDIRECT.
547760484Sobrien	(h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
547860484Sobrien	for now.
547960484Sobrien
548060484SobrienTue Mar 12 12:41:17 1996  David Mosberger-Tang  <davidm@koala.azstarnet.com>
548160484Sobrien
548260484Sobrien	* coff-alpha.c (alpha_relocate_section): Use
548360484Sobrien	info->callbacks_warning, rather than _bfd_error_handler, for
548460484Sobrien	"multiple gp" warning.
548560484Sobrien
548660484SobrienTue Mar 12 12:10:55 1996  Ian Lance Taylor  <ian@cygnus.com>
548760484Sobrien
548860484Sobrien	* linker.c (bfd_wrapped_link_hash_lookup): New function.
548960484Sobrien	(_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
549060484Sobrien	table string.  Use bfd_wrapped_link_hash_lookup.
549160484Sobrien	(_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
549260484Sobrien	table string.
549360484Sobrien	* aoutx.h (aout_link_write_symbols): Use the name from the hash
549460484Sobrien	table, if any, when writing out symbols.
549560484Sobrien	(aout_link_input_section_std): Use the name from the hash table,
549660484Sobrien	if any, when reporting undefined symbols.
549760484Sobrien	(aout_link_input_section_ext): Likewise.
549860484Sobrien	(aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
549960484Sobrien	* bout.c (get_value): Likewise.
550060484Sobrien	* cofflink.c (_bfd_coff_reloc_link_order): Likewise.
550160484Sobrien	* ecoff.c (ecoff_reloc_link_order): Likewise.
550260484Sobrien	* elflink.h (elf_link_add_object_symbols): Likewise.
550360484Sobrien	(elf_reloc_link_order): Likewise.
550460484Sobrien	* linker.c (_bfd_generic_link_output_symbols): Likewise.
550560484Sobrien	(_bfd_generic_reloc_link_order): Likewise.
550660484Sobrien	(default_indirect_link_order): Likewise.
550760484Sobrien	* reloc16.c (bfd_coff_reloc16_get_value): Likewise.
550860484Sobrien	* sunos.c (sunos_add_one_symbol): Likewise.
550960484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Likewise.
551060484Sobrien	(bfd_xcoff_link_count_reloc): Likewise.
551160484Sobrien	(xcoff_reloc_link_order): Likewise.
551260484Sobrien
551360484Sobrien	* ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
551460484Sobrien	into -1 for intern->rss.
551560484Sobrien
551660484Sobrien	* configure: Rebuild with autoconf 2.8.
551760484Sobrien
551860484SobrienMon Mar 11 12:28:31 1996  Ian Lance Taylor  <ian@cygnus.com>
551960484Sobrien
552060484Sobrien	* stab-syms.c (__define_stab_duplicate): Define.
552160484Sobrien	(bfd_get_stab_name): Rename from aout_stab_name.  Rewrite to use a
552260484Sobrien	switch.
552360484Sobrien	* bfd-in.h (bfd_get_stab_name): Declare.
552460484Sobrien	* bfd-in2.h: Rebuild.
552560484Sobrien	* Makefile.in: Rebuild dependencies.
552660484Sobrien	(BFD_LIBS): Add stab-syms.o.
552760484Sobrien	(BFD_LIBS_CFILES): Add stab-syms.c.
552860484Sobrien	(BFD32_BACKENDS): Remove stab-syms.o.
552960484Sobrien	(BFD32_BACKENDS_CFILES): Remove stab-syms.c.
553060484Sobrien	* configure.in: Don't list stab-syms.o in bfd_backends.
553160484Sobrien	* configure: Rebuild.
553260484Sobrien	* libaout.h (aout_stab_name): Don't declare.
553360484Sobrien	* aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
553460484Sobrien	not aout_stab_name.
553560484Sobrien
553660484SobrienFri Mar  8 11:26:20 1996  Ian Lance Taylor  <ian@cygnus.com>
553760484Sobrien
553860484Sobrien	* elf.c (assign_file_positions_for_segments): Adjust file offset
553960484Sobrien	for section alignment even if SEC_LOAD is not set.
554060484Sobrien
554160484SobrienTue Mar  5 12:02:23 1996  Ian Lance Taylor  <ian@cygnus.com>
554260484Sobrien
554360484Sobrien	* configure.in: Don't set SHLIB or SHLINK to an empty string,
554460484Sobrien	since they appear as targets in Makefile.in.
554560484Sobrien	* configure: Rebuild.
554660484Sobrien
554760484Sobrien	* sunos.c (sunos_scan_ext_relocs): If not making a shared library,
554860484Sobrien	don't fiddle with a symbol which is not defined anywhere.
554960484Sobrien
555060484SobrienMon Mar  4 12:49:16 1996  Ian Lance Taylor  <ian@cygnus.com>
555160484Sobrien
555260484Sobrien	* xcofflink.c (xcoff_mark): Treat undefined imported symbols as
555360484Sobrien	though they are defined in a shared library.
555460484Sobrien	(xcoff_build_ldsyms): Likewise.
555560484Sobrien
555660484Sobrien	* coffgen.c (coff_find_nearest_line): Don't look at the line
555760484Sobrien	numbers for the section if section->lineno is NULL.
555860484Sobrien
555960484Sobrien	* elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
556060484Sobrien	message rather than calling BFD_ASSERT.
556160484Sobrien	* elfcode.h (write_relocs): Check return value of
556260484Sobrien	_bfd_elf_symbol_from_bfd_symbol.
556360484Sobrien
556460484SobrienFri Mar  1 09:42:59 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
556560484Sobrien
556660484Sobrien	* elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
556760484Sobrien	for .sbss section.
556860484Sobrien
556960484SobrienWed Feb 28 11:25:47 1996  Jeffrey A Law  (law@cygnus.com)
557060484Sobrien
557160484Sobrien	* libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
557260484Sobrien	and R_HPPA_NLRSEL.
557360484Sobrien	(e_nsel, e_nlsel, e_nlrsel): Undefine.  Add to
557460484Sobrien	hppa_reloc_field_selector_type_alt.
557560484Sobrien	(hppa_field_adjust): Handle e_nlsel, e_nlrsel.  Fix e_nsel handling.
557660484Sobrien	* som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
557760484Sobrien	selectors.
557860484Sobrien	(som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
557960484Sobrien
558060484SobrienWed Feb 28 11:00:24 1996  Ian Lance Taylor  <ian@cygnus.com>
558160484Sobrien
558260484Sobrien	* elf.c (assign_file_positions_for_segments): Adjust the segment
558360484Sobrien	memory size for the alignment of a SEC_ALLOC section, not just a
558460484Sobrien	SEC_LOAD section.
558560484Sobrien
558660484SobrienTue Feb 27 14:17:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
558760484Sobrien
558860484Sobrien	* m68klinux.c: New file.
558960484Sobrien	* hosts/m68klinux.h: New file.
559060484Sobrien	* config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
559160484Sobrien	* configure.in (m68*-*-linux*): New native host.
559260484Sobrien	(m68klinux_vec): New vector.
559360484Sobrien	* configure: Rebuild.
559460484Sobrien	* targets.c (m68klinux_vec): Declare.
559560484Sobrien	* i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
559660484Sobrien	bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
559760484Sobrien	* bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
559860484Sobrien	declaration from bfd_linux_size_dynamic_sections.
559960484Sobrien	(bfd_m68klinux_size_dynamic_sections): Declare.
560060484Sobrien	* bfd-in2.h: Rebuild.
560160484Sobrien	* Makefile.in: Rebuild dependencies.
560260484Sobrien	(BFD32_BACKENDS): Add m68klinux.o.
560360484Sobrien	(BFD32_BACKENDS_CFILES): Add m68klinux.c.
560460484Sobrien
560560484SobrienTue Feb 27 11:31:34 1996  Jeffrey A Law  (law@cygnus.com)
560660484Sobrien
560760484Sobrien	* libhppa.h (pa_arch): Add pa20.
560860484Sobrien	(hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
560960484Sobrien	(e_nsel): Undefine.  Add to hppa_reloc_field_selector_type_alt.
561060484Sobrien	(hppa_field_adjust): Handle e_nsel.
561160484Sobrien	* som.c: Provide default definitions for many new relocs found only
561260484Sobrien	in hpux10 include files.
561360484Sobrien	(som_fixup_formats): Add several new relocs from hpux10.
561460484Sobrien	(som_hppa_howto_table): Add hpux10 relocs.
561560484Sobrien	(som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
561660484Sobrien
561760484SobrienMon Feb 26 12:52:48 1996  Stan Shebs  <shebs@andros.cygnus.com>
561860484Sobrien
561960484Sobrien	* mpw-make.sed: Edit out recent shared library support, and
562060484Sobrien	rules to rebuild .h files using doc/chew.
562160484Sobrien
562260484SobrienMon Feb 26 14:48:39 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
562360484Sobrien
562460484Sobrien	* ecoff.c (ecoff_compute_section_file_positions): Adjust the file
562560484Sobrien	size even of sections with no contents.
562660484Sobrien
562760484SobrienMon Feb 26 14:01:13 1996  Ian Lance Taylor  <ian@cygnus.com>
562860484Sobrien
562960484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
563060484Sobrien	starting with '$' the way we skip names starting with '.'.  When
563160484Sobrien	updating x_endndx, don't be fooled by an index which has been
563260484Sobrien	merged.
563360484Sobrien
563460484Sobrien	* cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
563560484Sobrien	struct/union/enum type with no elements.
563660484Sobrien
563760484SobrienSat Feb 24 11:38:58 1996  Ian Lance Taylor  <ian@cygnus.com>
563860484Sobrien
563960484Sobrien	* bfd.c (bfd_errmsg): Handle a NULL return from strerror.
564060484Sobrien
564160484Sobrien	* archive.c (bfd_generic_archive_p): If the first file in the
564260484Sobrien	archive can not be recognized as an object, don't assume that this
564360484Sobrien	is the wrong format.
564460484Sobrien
564560484Sobrien	* elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
564660484Sobrien	format is not bfd_object.
564760484Sobrien	(bfd_elf_get_dt_soname): Likewise.
564860484Sobrien
564960484SobrienWed Feb 21 13:58:04 1996  Ian Lance Taylor  <ian@cygnus.com>
565060484Sobrien
565160484Sobrien	* coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
565260484Sobrien	reloc.
565360484Sobrien
565460484SobrienTue Feb 20 16:22:44 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
565560484Sobrien
565660484Sobrien	* bfd.c (tdata): Add netbsd_core_data.
565760484Sobrien	* bfd-in2.h: Regenerated.
565860484Sobrien
565960484SobrienTue Feb 20 16:50:02 1996  Ian Lance Taylor  <ian@cygnus.com>
566060484Sobrien
566160484Sobrien	* sunos.c (SUNOS_CONSTRUCTOR): Define.
566260484Sobrien	(sunos_add_one_symbol): Don't let a symbol from a dynamic object
566360484Sobrien	override a constructor symbol.  Set SUNOS_CONSTRUCTOR when
566460484Sobrien	appropriate.
566560484Sobrien
566660484Sobrien	* bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
566760484Sobrien	to get the symbol index, matching 14 Jul 95 change.
566860484Sobrien
566960484SobrienTue Feb 20 08:26:27 1996  Fred Fish  <fnf@phydeaux.cygnus.com>
567060484Sobrien
567160484Sobrien	* coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
567260484Sobrien	Remove duplicate definition of gp.
567360484Sobrien
567460484SobrienMon Feb 19 12:37:41 1996  Ian Lance Taylor  <ian@cygnus.com>
567560484Sobrien
567660484Sobrien	* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
567760484Sobrien	assume that we can set the GP value and then get the same value,
567860484Sobrien	since it won't be true if the output file is neither ELF nor
567960484Sobrien	ECOFF.
568060484Sobrien	* coff-mips.c (mips_adjust_reloc_in): Don't bother to use
568160484Sobrien	_bfd_get_gp_value here.
568260484Sobrien	(mips_gprel_reloc): Don't assume we can set and get the GP value.
568360484Sobrien	* elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
568460484Sobrien	mips_elf_final_gp.
568560484Sobrien	(mips_elf_lo16_reloc): Likewise.
568660484Sobrien	(mips_elf_final_gp): Add pgp parameter.  Set it to the GP value.
568760484Sobrien	Don't require that the BFD be ELF.
568860484Sobrien	(mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
568960484Sobrien	(mips_elf_gprel32_reloc): Likewise.
569060484Sobrien	(mips_elf_relocate_section): Don't assume we can set and get the
569160484Sobrien	GP value.
569260484Sobrien	(mips_elf_finish_dynamic_symbol): Don't bother to use
569360484Sobrien	_bfd_get_gp_value here.
569460484Sobrien
569560484Sobrien	* elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
569660484Sobrien	Don't change epdr between malloc and free.  Be careful not to free
569760484Sobrien	NULL pointers.  Zero out the first RPDR.
569860484Sobrien
569960484Sobrien	* configure.host: On Linux, only pass -rpath option if $(libdir)
570060484Sobrien	is neither /lib nor /usr/lib.  From Alan Modra
570160484Sobrien	<alan@mullet.Levels.UniSA.Edu.Au>.
570260484Sobrien
570360484Sobrien	* elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
570460484Sobrien	dt_name.
570560484Sobrien	(elf_dt_name): Rename from elf_dt_needed_name.
570660484Sobrien	* elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
570760484Sobrien	elf_dt_needed_name.
570860484Sobrien	(bfd_elf_get_dt_soname): New function.
570960484Sobrien	* elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
571060484Sobrien	elf_dt_needed_name.  Save the SONAME back in elf_dt_name.
571160484Sobrien	* bfd-in.h (bfd_elf_get_dt_soname): Declare.
571260484Sobrien	* bfd-in2.h: Rebuild.
571360484Sobrien
571460484SobrienMon Feb 19 02:50:23 1996  Doug Evans  <dje@charmed.cygnus.com>
571560484Sobrien
571660484Sobrien	* elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
571760484Sobrien	_bfd_sparc_elf_reloc_type_lookup.
571860484Sobrien	(bfd_elf32_bfd_reloc_type_lookup): Update.
571960484Sobrien	* elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
572060484Sobrien	(sparc64_elf_howto_table): Define.
572160484Sobrien	(sparc_reloc_map): Define.
572260484Sobrien	(sparc64_elf_reloc_type_lookup): New function.
572360484Sobrien	(sparc_elf_wdisp16_reloc): New function.
572460484Sobrien	(elf_info_to_howto): Use sparc64_elf_howto_table.
572560484Sobrien	(sparc64_elf_relocate_section): Likewise.
572660484Sobrien	(bfd_elf64_bfd_reloc_type_lookup): Update.
572760484Sobrien
572860484SobrienSun Feb 18 15:02:25 1996  Ian Lance Taylor  <ian@cygnus.com>
572960484Sobrien
573060484Sobrien	* configure.host: Check for 'do not mix' from native linker before
573160484Sobrien	trying to use -rpath.
573260484Sobrien
573360484SobrienFri Feb 16 12:46:18 1996  Ian Lance Taylor  <ian@cygnus.com>
573460484Sobrien
573560484Sobrien	* bfd.c (_bfd_get_gp_value): New function.
573660484Sobrien	(_bfd_set_gp_value): New function.
573760484Sobrien	* libbfd-in.h (_bfd_get_gp_value): Declare.
573860484Sobrien	(_bfd_set_gp_value): Declare.
573960484Sobrien	* libbfd.h: Rebuild.
574060484Sobrien	* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
574160484Sobrien	_bfd_get_gp_value and _bfd_set_gp_value rather than referring
574260484Sobrien	directly to the fields in the tdata information.
574360484Sobrien	(alpha_relocate_section): Likewise.
574460484Sobrien	* coff-mips.c (mips_adjust_reloc_in): Likewise.
574560484Sobrien	(mips_gprel_reloc): Likewise.
574660484Sobrien	(mips_relocate_section): Likewise.
574760484Sobrien	* elf32-mips.c (mips_elf_hi16_reloc): Likewise.
574860484Sobrien	(mips_elf_lo16_reloc): Likewise.
574960484Sobrien	(mips_elf_final_gp): Likewise.
575060484Sobrien	(mips_elf_gprel16_reloc): Likewise.
575160484Sobrien	(mips_elf_gprel32_reloc): Likewise.
575260484Sobrien	(mips_elf_relocate_section): Likewise.
575360484Sobrien	(mips_elf_finish_dynamic_symbol): Likewise.
575460484Sobrien
575560484Sobrien	* bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
575660484Sobrien
575760484SobrienThu Feb 15 11:29:13 1996  Ian Lance Taylor  <ian@cygnus.com>
575860484Sobrien
575960484Sobrien	* configure.in: Call AC_PROG_CC before configure.host.
576060484Sobrien	* configure: Rebuild.
576160484Sobrien	* configure.host: Don't set information which autoconf should
576260484Sobrien	figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
576360484Sobrien
576460484Sobrien	* configure.host: Remove go32 and win32 host information, since it
576560484Sobrien	should no longer be needed.
576660484Sobrien
576760484Sobrien	* elf.c (map_sections_to_segments): If we have a .dynamic section,
576860484Sobrien	then start a new segment rather than put a writable section in a
576960484Sobrien	readonly segment.
577060484Sobrien
577160484Sobrien	* configure.host: Set RPATH_ENVVAR.
577260484Sobrien
577360484Sobrien	* Makefile.in: Rebuild dependencies.
577460484Sobrien
577560484Sobrien	* elflink.c (_bfd_elf_create_linker_section): Remove unused
577660484Sobrien	zero_section variable.
577760484Sobrien
577860484SobrienThu Feb 15 10:39:17 1996  H.J. Lu  <hjl@zoom.com>
577960484Sobrien
578060484Sobrien	* Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
578160484Sobrien	($(srcdir)/libbfd.h): Rename from libbfd.h.
578260484Sobrien	($(srcdir)/libcoff.h): Rename from libcoff.h.
578360484Sobrien
578460484SobrienWed Feb 14 16:29:07 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>
578560484Sobrien
578660484Sobrien	* ieee.c (ieee_write_expression): Only use an R variable for a
578760484Sobrien	local symbol.  Don't output a zero offset.  Handle a zero address.
578860484Sobrien	(SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
578960484Sobrien	(rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
579060484Sobrien	PCREL_OFFSET.
579160484Sobrien	(parse_expression): Don't try to handle multiple occurrences of a
579260484Sobrien	P variable.  Handle I variables differently from X variables.  Fix
579360484Sobrien	the order of minus expressions.
579460484Sobrien	(ieee_slurp_external_symbols): Generate an I variable for an NN
579560484Sobrien	record.  Fix handling of ATI and ATX records.
579660484Sobrien	(ieee_slurp_sections): Only set minimal section attributes.
579760484Sobrien	Adjust them later, based on the section contents.
579860484Sobrien	(ieee_object_p): Read in the file until just after the ME record.
579960484Sobrien	Call ieee_slurp_section_data to set the section flags.
580060484Sobrien	(do_one): Add iterations parameter.  Only repeat the first load
580160484Sobrien	item.  Set the section and file reloc flags.
580260484Sobrien	(ieee_slurp_section_data): Set section flags.  Pass iterations to
580360484Sobrien	do_one.
580460484Sobrien	(ieee_canonicalize_reloc): Handle I variables.
580560484Sobrien	(do_with_relocs): Only emit relocation size when necessary.
580660484Sobrien	Increase MAXRUN to 127.  Change ov to be assigned, and take
580760484Sobrien	src_mask and pcrel_offset into account.
580860484Sobrien	(ieee_write_data_part): Skip sections that are not loaded.
580960484Sobrien	(ieee_write_external_part): Don't output optional last entry of WX
581060484Sobrien	records.
581160484Sobrien	(ieee_write_me_part): Make setting of me_record neater.
581260484Sobrien	(ieee_generic_stat_arch_elt): Get the size of an archive element.
581360484Sobrien
581460484Sobrien	* syms.c (stt): Add entries for zerovars, vars, and code.
581560484Sobrien
581660484Sobrien	* elfcode.h (validate_reloc): New static function.
581760484Sobrien	(write_relocs): Call validate_reloc for non ELF relocs.
581860484Sobrien
581960484Sobrien	* elfxx-target.h (elf_symbol_leading_char): Define if not defined.
582060484Sobrien	(TARGET_BIG_SYM): Use elf_symbol_leading_char.
582160484Sobrien	(TARGET_LITTLE_SYM): Likewise.
582260484Sobrien
582360484Sobrien	* config.bfd (m68*-*-psos*): New target.
582460484Sobrien
582560484SobrienTue Feb 13 15:56:22 1996  Bryan Ford  <baford@snake.cs.utah.edu>
582660484Sobrien
582760484Sobrien	* i386msdos.c: Remove some #if 0 code.
582860484Sobrien	(msdos_write_object_contents): Don't include empty sections in the
582960484Sobrien	size computation, regardless of their address.
583060484Sobrien
583160484SobrienTue Feb 13 15:36:37 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
583260484Sobrien
583360484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
583460484Sobrien	is NULL, ie, the -r switch is used.
583560484Sobrien
583660484SobrienTue Feb 13 14:35:15 1996  Ian Lance Taylor  <ian@cygnus.com>
583760484Sobrien
583860484Sobrien	* reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
583960484Sobrien	(BFD_RELOC_MIPS_GOT_LO16): Define.
584060484Sobrien	(BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
584160484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
584260484Sobrien	* elf32-mips.c (mips_reloc_map): Map new relocs.
584360484Sobrien
584460484Sobrien	* configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
584560484Sobrien
584660484Sobrien	* Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
584760484Sobrien	$(SHLINK).
584860484Sobrien
584960484Sobrien	* ieee.c (get_symbol): Set the section to bfd_abs_section.
585060484Sobrien	(do_with_relocs): If EXEC_P is set and there are no relocs, use a
585160484Sobrien	simple number for the section address, rather than an expression.
585260484Sobrien	Limit the number of bytes between relocs to MAXRUN.
585360484Sobrien	(ieee_write_me_part): Set me_record to the file offset after the
585460484Sobrien	start address.
585560484Sobrien	(ieee_write_processor): New static function.
585660484Sobrien	(ieee_write_object_contents): Use ieee_write_processor.
585760484Sobrien
585860484SobrienFri Feb  9 10:53:00 1996  Ian Lance Taylor  <ian@cygnus.com>
585960484Sobrien
586060484Sobrien	* configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
586160484Sobrien
586260484Sobrien	* coff-aux.c: Change include of aux.h to aux-coff.h.
586360484Sobrien
586460484SobrienThu Feb  8 14:01:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
586560484Sobrien
586660484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
586760484Sobrien	relocation put the addend both in the reloc entry and the data.
586860484Sobrien	(elf_m68k_finish_dynamic_symbol): Likewise.  Mask out marker in
586960484Sobrien	GOT offset value.
587060484Sobrien
587160484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
587260484Sobrien	a R_68K_PCxx reloc against a defined global symbol directly.
587360484Sobrien	(elf_m68k_check_relocs): Don't count such a reloc.
587460484Sobrien
587560484Sobrien	* elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
587660484Sobrien	a PLTxx reloc as dynamic.  Disallow PLTxxO reloc against a local
587760484Sobrien	symbol for now, otherwise always record the symbol as dynamic.
587860484Sobrien	(elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
587960484Sobrien	is not referenced by a dynamic object, and we are not making a
588060484Sobrien	shared object, then don't make a PLT entry.  If we do make a PLT
588160484Sobrien	entry, make sure the symbol has been recorded as dynamic.
588260484Sobrien
588360484SobrienWed Feb  7 13:56:06 1996  Ian Lance Taylor  <ian@cygnus.com>
588460484Sobrien
588560484Sobrien	* configure.host: When making a shared library, set HLDFLAGS to
588660484Sobrien	pass an appropriate -rpath option.  Use the make variable SONAME
588760484Sobrien	as the shared library soname, rather than computing it here.  On
588860484Sobrien	SunOS, build stamp-tshlink in place of $(SHLINK).
588960484Sobrien	* Makefile.in (SONAME): New variable.
589060484Sobrien	($(SHLINK)): Make a link to the transformed name, as well.
589160484Sobrien	(stamp-tshlink): New target.
589260484Sobrien	(install): Skip stamp-tshlink during install.
589360484Sobrien
589460484SobrienWed Feb  7 13:37:39 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
589560484Sobrien
589660484Sobrien	* elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
589760484Sobrien	linker sections have been set up yet.
589860484Sobrien
589960484Sobrien	* elf.c (make_mapping): Add an additional argument to suppress
590060484Sobrien	making the first section include the program headers.
590160484Sobrien	(map_sections_to_segments): If the user used -Ttext such that the
590260484Sobrien	program headers are on a different page, do not set the flags
590360484Sobrien	saying that this section includes the program headers.
590460484Sobrien
590560484SobrienTue Feb  6 14:04:49 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
590660484Sobrien
590760484Sobrien	* configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
590860484Sobrien	don't define TRAD_HEADER.
590960484Sobrien	* configure: Rebuild.
591060484Sobrien
591160484Sobrien	* netbsd-core.c: New file, support for NetBSD core files.
591260484Sobrien	* hosts/*nbsd.h: Removed.
591360484Sobrien
591460484SobrienTue Feb  6 11:47:49 1996  Doug Evans  <dje@charmed.cygnus.com>
591560484Sobrien
591660484Sobrien	* reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
591760484Sobrien	(BFD_RELOC_SPARC_LO7 reloc type): Deleted.
591860484Sobrien	* libbfd.h, bfd-in2.h: Regenerated.
591960484Sobrien	* elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
592060484Sobrien	bfd_elf32_bfd_reloc_type_lookup.
592160484Sobrien	(reloc_type{,_names}): Deleted.
592260484Sobrien	(_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
592360484Sobrien	Add sparc64 relocs.
592460484Sobrien	(sparc_reloc_map): Add sparc64 relocs.
592560484Sobrien	(sparc_elf_notsupported_reloc): New static function.
592660484Sobrien	(sparc_elf_wdisp16_reloc): New static function.
592760484Sobrien	(elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
592860484Sobrien	(elf32_sparc_relocate_section): Likewise.
592960484Sobrien	(bfd_elf32_bfd_reloc_type_lookup): Define.
593060484Sobrien	* elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
593160484Sobrien	(reloc_type{,_names}): Deleted.
593260484Sobrien	(elf_sparc_howto_table): Deleted.
593360484Sobrien	(sparc_reloc_map): Deleted.
593460484Sobrien	(_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
593560484Sobrien	(bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
593660484Sobrien
593760484SobrienTue Feb  6 12:12:22 1996  Ian Lance Taylor  <ian@cygnus.com>
593860484Sobrien
593960484Sobrien	* configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
594060484Sobrien	*-*-hpux* host.
594160484Sobrien
594260484Sobrien	* Makefile.in (program_transform_name): New variable.
594360484Sobrien	(install): Transform library name before installing it.
594460484Sobrien
594560484SobrienMon Feb  5 10:38:27 1996  Ian Lance Taylor  <ian@cygnus.com>
594660484Sobrien
594760484Sobrien	* archures.c (bfd_mach_i960_hx): Define.
594860484Sobrien	* bfd-in2.h: Rebuild.
594960484Sobrien	* cpu-i960.c (scan_960_mach): Accept machine "hx".
595060484Sobrien	(MATRIX): Expand entries for HX.
595160484Sobrien	(arch_info_struct): Add i960:hx entry.
595260484Sobrien	* bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
595360484Sobrien	* coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
595460484Sobrien	(coff_set_flags): Handle bfd_mach_i960_hx.
595560484Sobrien
595660484Sobrien	Support for building as a shared library, based on patches from
595760484Sobrien	Alan Modra <alan@spri.levels.unisa.edu.au>:
595860484Sobrien	* configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
595960484Sobrien	New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
596060484Sobrien	SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
596160484Sobrien	* configure: Rebuild.
596260484Sobrien	* configure.host: If --enable-shared, adjust shared library stuff
596360484Sobrien	based on the host.  If the host is SunOS, and the linker supports
596460484Sobrien	-rpath, set HLDFLAGS to use it.
596560484Sobrien	* Makefile.in (ALLLIBS): New variable.
596660484Sobrien	(PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
596760484Sobrien	(COMMON_SHLIB, SHLINK): New variables.
596860484Sobrien	(.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
596960484Sobrien	(STAGESTUFF): Remove variable.
597060484Sobrien	(all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
597160484Sobrien	$(TARGETLIB).
597260484Sobrien	(stamp-ofiles): New target, like old ofiles target, but build
597360484Sobrien	using a temporary file and move-if-change, and touch stamp-ofiles
597460484Sobrien	when done.
597560484Sobrien	(ofiles): Just depend upon stamp-ofiles.
597660484Sobrien	(stamp-piclist, piclist): New targets.
597760484Sobrien	($(SHLIB), $(SHLINK)): New targets.
597860484Sobrien	(targets.o, archures.o): Build twice if PICFLAG is set.
597960484Sobrien	(do_mostlyclean): Remove pic/*.o.
598060484Sobrien	(do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
598160484Sobrien	stamp-piclist.
598260484Sobrien	(do_distclean): Remove pic and stamp-picdir.
598360484Sobrien	(install): Install shared libraries.
598460484Sobrien	($(OFILES)): Depend upon stamp-picdir.
598560484Sobrien	(stamp-picdir): New target.
598660484Sobrien
598760484Sobrien	* libcoff-in.h: Add comment reminding people that libcoff.h is a
598860484Sobrien	generated file.
598960484Sobrien	* libcoff.h: Rebuild.
599060484Sobrien
599160484Sobrien	* elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
599260484Sobrien	flavour of a section with no owner.
599360484Sobrien
599460484Sobrien	* elf32-mips.c (mips_elf_create_dynamic_sections): Clear
599560484Sobrien	ELF_LINK_NON_ELF flag.
599660484Sobrien	(mips_elf_create_got_section): Likewise.
599760484Sobrien
599860484Sobrien	* elf.c: Revert last change, since it breaks dynamic linking.
599960484Sobrien	* elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
600060484Sobrien	field.
600160484Sobrien	* elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
600260484Sobrien	* elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
600360484Sobrien	(elfNN_bed): Don't initialize want_hdr_in_seg field.
600460484Sobrien
600560484SobrienSun Feb  4 20:45:13 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
600660484Sobrien
600760484Sobrien	* elf.c (assign_file_positions_for_segments): If the backend does
600860484Sobrien	not want the elf header or the program headers in the address
600960484Sobrien	space, do not include them in the calculations.
601060484Sobrien
601160484Sobrien	* elf32-ppc.c (ppc_elf_additional_program_headers): New hook
601260484Sobrien	function to determine if we need additional program headers.
601360484Sobrien	(ppc_elf_modify_segment_map): Define as a NOP function for now.
601460484Sobrien	(ppc_elf_create_linker_section): .sdata2 is a read-only section.
601560484Sobrien
601660484SobrienSat Feb  3 23:00:03 1996  Ian Lance Taylor  <ian@cygnus.com>
601760484Sobrien
601860484Sobrien	* coffcode.h: Move today's libcoff.h change into coffcode.h.
601960484Sobrien
602060484SobrienSat Feb  3 15:43:44 1996  Fred Fish  <fnf@cygnus.com>
602160484Sobrien
602260484Sobrien	* libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
602360484Sobrien	back into one line.  Some compilers (sunos 4.1.3 for example)
602460484Sobrien	won't accept args split across more than one line.
602560484Sobrien
602660484SobrienFri Feb  2 11:42:15 1996  Steve Chamberlain  <sac@slash.cygnus.com>
602760484Sobrien
602860484Sobrien	* aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
602960484Sobrien	* configure: Regenerate.
603060484Sobrien
603160484SobrienFri Feb  2 12:12:16 1996  Jeffrey A Law  (law@cygnus.com)
603260484Sobrien
603360484Sobrien	* elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
603460484Sobrien	try to do arithmetic on a void *, cast it to a unsigned char * first.
603560484Sobrien
603660484SobrienThu Feb  1 16:04:06 1996  Ian Lance Taylor  <ian@cygnus.com>
603760484Sobrien
603860484Sobrien	* elf-bfd.h (ELF_LINK_NON_ELF): Define.
603960484Sobrien	* elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
604060484Sobrien	ELF_LINK_NON_ELF.
604160484Sobrien	* elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
604260484Sobrien	flag for a newly defined symbol.
604360484Sobrien	(NAME(bfd_elf,record_link_assignment)): Likewise.
604460484Sobrien	(elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
604560484Sobrien	set the DEF or REF_REGULAR flags correctly.
604660484Sobrien
604760484Sobrien	* Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
604860484Sobrien	(libbfd.h, libcoff.h): Corresponding change.
604960484Sobrien
605060484Sobrien	* elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
605160484Sobrien	a PLT32 reloc as dynamic.
605260484Sobrien	(elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
605360484Sobrien	is not referenced by a dynamic object, and we are not making a
605460484Sobrien	shared object, then don't make a PLT entry.  If we do make a PLT
605560484Sobrien	entry, make sure the symbol has been recorded as dynamic.
605660484Sobrien
605760484SobrienWed Jan 31 17:23:32 1996  Steve Chamberlain  <sac@slash.cygnus.com>
605860484Sobrien
605960484Sobrien	* coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
606060484Sobrien	* config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
606160484Sobrien	(powerpcle-*-cygwin32): New.
606260484Sobrien	* peicode.h (add_data_entry): Get address from vma.
606360484Sobrien
606460484SobrienWed Jan 31 16:23:57 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
606560484Sobrien
606660484Sobrien	* elflink.c (_bfd_elf_create_linker_section): If the symbol
606760484Sobrien	attached to the section has already been created as an undefined
606860484Sobrien	symbol, treat it as if it hasn't been created yet.
606960484Sobrien
607060484SobrienWed Jan 31 16:16:53 1996  Ian Lance Taylor  <ian@cygnus.com>
607160484Sobrien
607260484Sobrien	* elflink.h (elf_bfd_final_link): Don't output initial dummy
607360484Sobrien	symbol or section symbols if stripping all symbols and this is not
607460484Sobrien	a relocateable link.  Don't output the symbol string table if
607560484Sobrien	there are no symbols.
607660484Sobrien	(elf_link_flush_output_syms): Don't do anything if there are no
607760484Sobrien	symbols to flush.
607860484Sobrien
607960484SobrienWed Jan 31 12:55:49 1996  Richard Henderson  <rth@tamu.edu>
608060484Sobrien
608160484Sobrien	* coff-aux.c: New file.
608260484Sobrien	* hosts/m68kaux.h: New file.
608360484Sobrien	* config.bfd (m68*-apple-aux*): New target.
608460484Sobrien	* configure.in (m68*-apple-aux*): New native host.
608560484Sobrien	(m68kaux_coff_vec): New vector.
608660484Sobrien	* configure: Rebuild.
608760484Sobrien	* targets.c (m68kaux_coff_vec): Declare.
608860484Sobrien	* coffcode.h (bfd_coff_backend_data): Add field
608960484Sobrien	_bfd_coff_link_add_one_symbol.
609060484Sobrien	(bfd_coff_link_add_one_symbol): Define.
609160484Sobrien	(compare_arelent_ptr): New static function if TARG_AUX.
609260484Sobrien	(coff_write_relocs): If TARG_AUX, sort the relocs.
609360484Sobrien	(coff_write_object_contents): Set A/UX aouthdr magic number.
609460484Sobrien	(coff_link_add_one_symbol): Define if not defined.
609560484Sobrien	(bfd_coff_std_swap_table): Initialize new field.
609660484Sobrien	* libcoff.h: Rebuild.
609760484Sobrien	* cofflink.c (coff_link_add_symbols): Call
609860484Sobrien	bfd_coff_link_add_one_symbol rather than
609960484Sobrien	_bfd_generic_link_add_one_symbol.
610060484Sobrien	* coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
610160484Sobrien	* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
610260484Sobrien	* coff-mips.c (mips_ecoff_backend_data): Likewise.
610360484Sobrien	* Makefile.in: Rebuild dependencies.
610460484Sobrien	(BFD32_BACKENDS): Add coff-aux.o.
610560484Sobrien	(BFD32_BACKENDS_CFILES): Add coff-aux.c.
610660484Sobrien
610760484SobrienWed Jan 31 11:37:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
610860484Sobrien
610960484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
611060484Sobrien	relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
611160484Sobrien
611260484SobrienTue Jan 30 12:09:04 1996  Ian Lance Taylor  <ian@cygnus.com>
611360484Sobrien
611460484Sobrien	* Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
611560484Sobrien	$(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
611660484Sobrien	(maintainer-clean): Warn about deleting special files.
611760484Sobrien	(bfd-in2.h, libbfd.h, libcoff.h): New targets.
611860484Sobrien
611960484Sobrien	* elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
612060484Sobrien	warning symbols correctly.
612160484Sobrien	* elf32-i386.c (elf_i386_relocate_section): Likewise.
612260484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
612360484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Likewise.
612460484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
612560484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
612660484Sobrien	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
612760484Sobrien
612860484Sobrien	* syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
612960484Sobrien	warnings.
613060484Sobrien
613160484SobrienMon Jan 29 14:27:24 1996  Kim Knuttila  <krk@cygnus.com>
613260484Sobrien
613360484Sobrien	* libcoff-in.h: aligned newly exported names with bfd naming
613460484Sobrien	conventions. Removed an erroneous define of POWERPC_LE_PE.
613560484Sobrien 	* libcoff.h: Rebuild.
613660484Sobrien	* cofflink.c, coff-ppc.c: the above function name changes
613760484Sobrien
613860484SobrienMon Jan 29 13:06:28 1996  Ian Lance Taylor  <ian@cygnus.com>
613960484Sobrien
614060484Sobrien	From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
614160484Sobrien	* ecoff.c (struct extsym_info): Define.
614260484Sobrien	(_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
614360484Sobrien	to ecoff_link_write_external.
614460484Sobrien	(ecoff_link_write_external): Accept a struct extsym_info pointer.
614560484Sobrien	Strip symbols when appropriate.
614660484Sobrien
614760484Sobrien	Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
614860484Sobrien	* syms.c (BSF_OBJECT): Define.
614960484Sobrien	(bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
615060484Sobrien	* bfd-in2.h: Rebuild.
615160484Sobrien	* elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
615260484Sobrien	STT_OBJECT symbol.
615360484Sobrien	* elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
615460484Sobrien	is set.
615560484Sobrien
615660484Sobrien	* elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
615760484Sobrien	copying relocs into a shared object, treat a defined global symbol
615860484Sobrien	as a local symbol.
615960484Sobrien	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
616060484Sobrien	* elf32-mips.c (mips_elf_relocate_section): Likewise.
616160484Sobrien	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
616260484Sobrien
616360484Sobrien	* elflink.h (elf_link_add_object_symbols): Only set weakdef to a
616460484Sobrien	real defined symbol, not to a weak defined symbol.
616560484Sobrien
616660484SobrienMon Jan 29 11:34:36 1996  Kim Knuttila  <krk@cygnus.com>
616760484Sobrien
616860484Sobrien	* cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
616960484Sobrien	and made a few static functions externs.
617060484Sobrien
617160484Sobrien	* coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
617260484Sobrien	POWERPC_LE_PE hack in cofflink.
617360484Sobrien
617460484Sobrien	* libcoff-in.h: promoted the following from cofflink.c to allow
617560484Sobrien	_bfd_coff_final_link to be overridden -  STRING_SIZE_SIZE,
617660484Sobrien	coff_debug_merge_element, struct coff_debug_merge_type,
617760484Sobrien	coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
617860484Sobrien	coff_debug_merge_hash_table_init,  coff_debug_merge_hash_table_free,
617960484Sobrien	coff_debug_merge_hash_lookup, coff_link_section_info,
618060484Sobrien	coff_final_link_info, coff_debug_merge_hash_newfunc,
618160484Sobrien	coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
618260484Sobrien
618360484Sobrien	* libcoff.h: re-gen'd
618460484Sobrien
618560484SobrienFri Jan 26 18:33:35 1996  Ian Lance Taylor  <ian@cygnus.com>
618660484Sobrien
618760484Sobrien	* syms.c: Include "bfdlink.h".
618860484Sobrien	(struct stab_find_info): Define.
618960484Sobrien	(_bfd_stab_section_find_nearest_line): New function.
619060484Sobrien	* libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
619160484Sobrien	* libbfd.h: Rebuild.
619260484Sobrien	* elf-bfd.h (struct elf_obj_tdata): Add line_info field.
619360484Sobrien	* elf.c (_bfd_elf_find_nearest_line): Try calling
619460484Sobrien	_bfd_stab_section_find_nearest_line before searching the ELF
619560484Sobrien	symbol table.  Find the closest STT_FUNC symbol, not the last one.
619660484Sobrien	* libcoff-in.h (coff_data_type): Add line_info field.
619760484Sobrien 	* libcoff.h: Rebuild.
619860484Sobrien	* coffgen.c (coff_find_nearest_line): Try calling
619960484Sobrien	_bfd_stab_section_find_nearest_line before searching the COFF
620060484Sobrien	symbol table.
620160484Sobrien	* Makefile.in: Rebuild dependencies.
620260484Sobrien
620360484SobrienFri Jan 26 16:11:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
620460484Sobrien
620560484Sobrien	* elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
620660484Sobrien	4 bytes, so we get the correct value when updating the register
620760484Sobrien	field in little endian mode.
620860484Sobrien
620960484SobrienThu Jan 25 12:14:16 1996  Ian Lance Taylor  <ian@cygnus.com>
621060484Sobrien
621160484Sobrien	* libcoff-in.h (struct xcoff_tdata): Remove toc_section and
621260484Sobrien	entry_section fields.  Add sntoc and snentry fields.
621360484Sobrien	* libcoff.h: Rebuild.
621460484Sobrien	* coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
621560484Sobrien	not toc_section and entry_section (the COFF file does not have any
621660484Sobrien	sections at this point).
621760484Sobrien	(coff_write_object_contents): Set o_snentry and o_sntoc from
621860484Sobrien	snentry and sntoc rather than entry_section and toc_section.
621960484Sobrien	* coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
622060484Sobrien	snentry, not toc_section and entry_section.
622160484Sobrien	* xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
622260484Sobrien	entry_section from hentry.
622360484Sobrien	(xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
622460484Sobrien	set snenty.
622560484Sobrien	(xcoff_link_input_bfd): Set sntoc, not toc_section.
622660484Sobrien	(xcoff_write_global_symbol): Get toc_section from sntoc, rather
622760484Sobrien	than using toc_section directly.
622860484Sobrien
622960484Sobrien	* archures.c: Add missing `.' in enum bfd_architecture.
623060484Sobrien	* bfd-in2.h: Rebuild.
623160484Sobrien
623260484Sobrien	* config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec.  From
623360484Sobrien	Robert Lipe <robertl@arnet.com>.
623460484Sobrien
623560484SobrienThu Jan 25 12:08:51 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
623660484Sobrien
623760484Sobrien	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
623860484Sobrien	to sections we allocate.  Use bfd_zalloc to allocate initialial
623960484Sobrien	sections, not bfd_alloc.
624060484Sobrien	(ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
624160484Sobrien	SDA{,2}I16 relocations.
624260484Sobrien	(ppc_elf_add_symbol_hook): Use the value of -G nn to determine
624360484Sobrien	whether to put something in .sbss or not.
624460484Sobrien	(ppc_elf_relocate_section): Add support for more relocations.  Add
624560484Sobrien	in sec->output_offset where appropriate.  Make error messages
624660484Sobrien	include the symbol name.
624760484Sobrien
624860484Sobrien	* elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
624960484Sobrien	trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
625060484Sobrien	doesn't get redefined messages if -shared.
625160484Sobrien
625260484Sobrien	* elflink.h (elf_create_pointer_linker_section) Only bump RELA
625360484Sobrien	section if the rel_section field has been set up.
625460484Sobrien
625560484SobrienWed Jan 24 20:40:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
625660484Sobrien
625760484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
625860484Sobrien	relocations.
625960484Sobrien
626060484SobrienWed Jan 24 10:38:34 1996  Doug Evans  <dje@charmed.cygnus.com>
626160484Sobrien
626260484Sobrien	* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
626360484Sobrien	of flags, only flags used are controlled by mach number.  Bump up
626460484Sobrien	output file mach number to highest of input file mach numbers.
626560484Sobrien	(elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
626660484Sobrien	(elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
626760484Sobrien
626860484Sobrien	* config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
626960484Sobrien	bfd_elf64_sparc_vec support.
627060484Sobrien
627160484SobrienTue Jan 23 14:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
627260484Sobrien
627360484Sobrien	* elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
627460484Sobrien	the embedded bit is set on some objects and not on others.  Just
627560484Sobrien	or it together.
627660484Sobrien	(ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
627760484Sobrien	relocations.
627860484Sobrien
627960484SobrienTue Jan 23 14:22:45 1996  Ian Lance Taylor  <ian@cygnus.com>
628060484Sobrien
628160484Sobrien	* coffcode.h (coff_new_section_hook): Don't try to align the
628260484Sobrien	.stabstr section.
628360484Sobrien
628460484Sobrien	* coffcode.h (coff_set_section_contents): Fix the handling of the
628560484Sobrien	.lib section to work even if the entire section contents are
628660484Sobrien	written at once.  From Gvran Uddeborg <gvran@uddeborg.pp.se> and
628760484Sobrien	Robert Lipe <robertl@arnet.com>.
628860484Sobrien
628960484SobrienMon Jan 22 18:45:51 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
629060484Sobrien
629160484Sobrien	* elflink.h (elf_finish_pointer_linker_section): Don't allocate
629260484Sobrien	memory here for contents.
629360484Sobrien
629460484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
629560484Sobrien	_SDA2_BASE_ by 32768.
629660484Sobrien	(ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
629760484Sobrien	started using.  Allocate contents for .sdata and .sdata2 sections
629860484Sobrien	also.
629960484Sobrien	(ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
630060484Sobrien	rather than _name.
630160484Sobrien	(ppc_elf_finish_dynamic_symbol): Remove code that attempted to
630260484Sobrien	size _SDA{,2}_BASE_.
630360484Sobrien	(ppc_elf_relocate_section): Change how sdata{,2} relocations are
630460484Sobrien	done.
630560484Sobrien
630660484SobrienMon Jan 22 08:52:04 1996  Doug Evans  <dje@charmed.cygnus.com>
630760484Sobrien
630860484Sobrien	* elflink.h (elf_finish_pointer_linker_section): Fix typo.
630960484Sobrien
631060484Sobrien	* archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
631160484Sobrien	(bfd_mach_sparc_{v8plus,v8plusa}): Define.
631260484Sobrien	(bfd_mach_sparc_v9a): Define.
631360484Sobrien	(bfd_mach_sparc_v9_p): Define.
631460484Sobrien	* bfd-in2.h: Regenerated.
631560484Sobrien	* aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
631660484Sobrien	bfd_mach_sparc_v9.
631760484Sobrien	* elf64-sparc.c (sparc64_elf_object_p): Likewise.
631860484Sobrien	* config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
631960484Sobrien	to bfd_elf32_sparc_vec.
632060484Sobrien	* cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
632160484Sobrien	Add v8plus{,a} support.
632260484Sobrien	Add v9a support.
632360484Sobrien	(sparc_compatible): New function.
632460484Sobrien	* elf32-sparc.h: #include "elf/sparc.h".
632560484Sobrien	(elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
632660484Sobrien	elf32_sparc_final_write_processing): New functions.
632760484Sobrien	(bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
632860484Sobrien	elf_backend_final_write_processing): Define.
632960484Sobrien
633060484SobrienMon Jan 22 11:21:51 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
633160484Sobrien
633260484Sobrien	* elf-bfd.h (struct elf_link_hash_entry): Add
633360484Sobrien	linker_section_pointer field.
633460484Sobrien	(enum elf_linker_section_enum): Enumeration for new way of
633560484Sobrien	creating linker dynamic sections and symbols.
633660484Sobrien	(elf_linker_section{,_pointers}): New structures for creating
633760484Sobrien	dynamic sections and symbols.
633860484Sobrien	(elf_obj_tdata): Add linker_section_pointers and linker_section
633960484Sobrien	fields.
634060484Sobrien	(elf_local_ptr_offsets,elf_linker_section): New accessor macros.
634160484Sobrien	(_bfd_elf_create_linker_section): New declarations.
634260484Sobrien	(_bfd_elf_find_pointer_linker_section): Ditto.
634360484Sobrien	(bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
634460484Sobrien	(_bfd_elf_make_linker_section_rela): Ditto.
634560484Sobrien
634660484Sobrien	* elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
634760484Sobrien
634860484Sobrien	* elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
634960484Sobrien	(ppc_elf_create_linker_section): New function to create the
635060484Sobrien	sections .got, .sdata, and .sdata2.
635160484Sobrien	(ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
635260484Sobrien	needed.
635360484Sobrien	(ppc_elf_check_relocs): Support more of the eabi relocations.
635460484Sobrien	(ppc_elf_relocate_section): Ditto.
635560484Sobrien	(ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
635660484Sobrien	if the .sdata{,2} + .sbss{,2} section size is > 32k.
635760484Sobrien
635860484Sobrien	* elflink.h (elf_create_pointer_linker_section): New function to
635960484Sobrien	create initialized pointers in dynamic linker sections.
636060484Sobrien	(elf_finish_pointer_linker_section): Actually intialize the
636160484Sobrien	pointers created above.
636260484Sobrien
636360484Sobrien	* elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
636460484Sobrien	macros to provide both 32 and 64 bit versions of
636560484Sobrien	elf_create_pointer_linker_section.
636660484Sobrien	(bfd_elf{32,64}_finish_pointer_linker_section): New macros to
636760484Sobrien	provide both 32 and 64 bit versions of
636860484Sobrien	elf_finish_pointer_linker_section.
636960484Sobrien
637060484Sobrien	* elflink.c (_bfd_elf_create_linker_section): New function to
637160484Sobrien	create a linker section.
637260484Sobrien	(_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
637360484Sobrien	given address in the linker pointer offsets created for a given
637460484Sobrien	symbol.
637560484Sobrien	(_bfd_elf_make_linker_section_rela): Make a RELA section
637660484Sobrien	corresponding to the generated linker section.
637760484Sobrien
637860484SobrienSat Jan 20 08:36:10 1996  Doug Evans  <dje@canuck.cygnus.com>
637960484Sobrien
638060484Sobrien	* elf32-sparc.c (ELF_MACHINE_ALT1): Define.
638160484Sobrien
638260484SobrienThu Jan 18 18:25:34 1996  Kim Knuttila  <krk@cygnus.com>
638360484Sobrien
638460484Sobrien	* coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
638560484Sobrien	(coff_ppc_relocate_section): Handle special values for gcc built dlls.
638660484Sobrien	(dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
638760484Sobrien	Also begin the toc at 4 as an eye catcher ('31313131' marks the first
638860484Sobrien	toc entry in an objdump) for now.
638960484Sobrien	(ppc_do_last, ppc_get_last): New function - needed to save processing
639060484Sobrien	the toc owner to the end.
639160484Sobrien	(ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
639260484Sobrien	toc owner last.
639360484Sobrien
639460484Sobrien	* cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
639560484Sobrien	toc owner from being done till last. Must define POWERPC_LE_PC
639660484Sobrien	to enable it.
639760484Sobrien
639860484Sobrien	* coffcode.h (coff_set_alignment_hook): alignment setting for .stab
639960484Sobrien
640060484Sobrien	* peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
640160484Sobrien	to INFO.
640260484Sobrien	(coff_swap_aouthdr_out): Removed a non-working hack for computing the
640360484Sobrien	SizeOfImage for PowerPC. Ignore the size of the .junk section.
640460484Sobrien
640560484SobrienThu Jan 18 17:42:12 1996  Ian Lance Taylor  <ian@cygnus.com>
640660484Sobrien
640760484Sobrien	* elfcore.h: Include <signal.h> before <sys/procfs.h>.
640860484Sobrien
640960484SobrienWed Jan 17 12:40:14 1996  Ian Lance Taylor  <ian@cygnus.com>
641060484Sobrien
641160484Sobrien	* cpu-powerpc.c (arch_info_struct): Change last entry to not point
641260484Sobrien	back to first.
641360484Sobrien	(bfd_powerpc_arch): Point at first entry in arch_info_struct.
641460484Sobrien
641560484SobrienTue Jan 16 15:10:49 1996  Ian Lance Taylor  <ian@cygnus.com>
641660484Sobrien
641760484Sobrien	* elf.c (assign_file_positions_for_segments): Don't increment file
641860484Sobrien	offset for a segment which contains no loadable sections.
641960484Sobrien
642060484SobrienMon Jan 15 17:46:27 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
642160484Sobrien
642260484Sobrien	* reloc.c: Add new PowerPC relocations.
642360484Sobrien	* {bfd-in2,libbfd}.h: Regenerate.
642460484Sobrien
642560484Sobrien	* elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
642660484Sobrien	(ppc_elf_reloc_type_lookup): Lookup new relocations.
642760484Sobrien
642860484SobrienMon Jan 15 14:29:44 1996  Ian Lance Taylor  <ian@cygnus.com>
642960484Sobrien
643060484Sobrien	* aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
643160484Sobrien	entries.
643260484Sobrien
643360484Sobrien	* sunos.c (sunos_scan_ext_relocs): Don't fail assert if
643460484Sobrien        info->shared.
643560484Sobrien
643660484Sobrien	* coffgen.c (coff_find_nearest_line): Don't try to cache
643760484Sobrien	information in sections that are not owned by a BFD.  From Richard
643860484Sobrien	Henderson <richard@atheist.tamu.edu>.
643960484Sobrien
644060484Sobrien	* elf32-mips.c: Numerous changes to dynamic linking code, mostly
644160484Sobrien	from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
644260484Sobrien	* elflink.h (elf_link_output_extsym): Remove special check for
644360484Sobrien	_rld_new_interface.
644460484Sobrien
644560484Sobrien	* ecoffswap.h: Add prototypes for static functions.
644660484Sobrien
644760484SobrienSun Jan 14 21:36:08 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
644860484Sobrien
644960484Sobrien	* elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
645060484Sobrien	(ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
645160484Sobrien	references.
645260484Sobrien	(ppc_elf_relocate_section):  No longer allow .sdata/.sbss sections
645360484Sobrien	to satisfy a TOC16 relocation. 	Rewrite unsupported relocation
645460484Sobrien	support.  Begin support for R_PPC_SDA{2,}REL.
645560484Sobrien
645660484SobrienSat Jan 13 09:36:52 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
645760484Sobrien
645860484Sobrien	* elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
645960484Sobrien	create the .got and .got.neg sections.
646060484Sobrien	(ppc_elf_size_dynamic_sections): Call it.
646160484Sobrien	(ppc_elf_check_relocs): Call it.
646260484Sobrien	(ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
646360484Sobrien	(ppc_elf_check_relocs): Add error messages for relocations we
646460484Sobrien	don't yet support.  Do not include R_PPC_SDAREL16 like a GOT
646560484Sobrien	relocation.
646660484Sobrien
646760484SobrienFri Jan 12 15:27:59 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
646860484Sobrien
646960484Sobrien	* elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
647060484Sobrien	section flags for V.4 and eabi.
647160484Sobrien
647260484SobrienFri Jan 12 13:59:16 1996  Ian Lance Taylor  <ian@cygnus.com>
647360484Sobrien
647460484Sobrien	* elf.c (assign_file_positions_for_segments): If a segment
647560484Sobrien	contains no sections, don't mark it as readable.
647660484Sobrien
647760484Sobrien	* elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
647860484Sobrien	* elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
647960484Sobrien
648060484Sobrien	* elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
648160484Sobrien	dynamic section, if there is one.
648260484Sobrien	* elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
648360484Sobrien	(bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
648460484Sobrien	(bfd_elf64_swap_dyn_in): Likewise.
648560484Sobrien	* elfcode.h (elf_swap_dyn_in): Change type of second parameter to
648660484Sobrien	PTR.
648760484Sobrien	(NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
648860484Sobrien
648960484Sobrien	* elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
649060484Sobrien	DT_TEXTREL entry because of .rel.plt.  From Martin Pirker
649160484Sobrien	<pirker@eiunix.tuwien.ac.at>.
649260484Sobrien
649360484SobrienThu Jan 11 17:06:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
649460484Sobrien
649560484Sobrien	* section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
649660484Sobrien	PowerPC V.4 and eabi.
649760484Sobrien 	* bfd-in2.h: Regenerate.
649860484Sobrien	* libfd.h: Regenerate.
649960484Sobrien
650060484Sobrien	* elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
650160484Sobrien
650260484Sobrien	* elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
650360484Sobrien	section type and SHF_EXCLUDE section flag, turning them into the
650460484Sobrien	appropriate bfd section flag.
650560484Sobrien
650660484SobrienThu Jan 11 11:23:30 1996  Ian Lance Taylor  <ian@cygnus.com>
650760484Sobrien
650860484Sobrien	* xcofflink.c (xcoff_link_add_symbols): Create the special
650960484Sobrien	sections if we see a DYNAMIC object, in case that is the only
651060484Sobrien	XCOFF input object we see.
651160484Sobrien
651260484Sobrien	* elf32-mips.c: Extensive changes for a start at dynamic linking
651360484Sobrien	support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
651460484Sobrien
651560484Sobrien	* elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
651660484Sobrien	(struct elf_backend_data): Remove
651760484Sobrien	elf_backend_create_program_headers field.  Add
651860484Sobrien	elf_backend_additional_program_headers and
651960484Sobrien	elf_backend_modify_segment_map fields.
652060484Sobrien	* elfxx-target.h (elf_backend_type_change_ok): Define if not
652160484Sobrien	defined.
652260484Sobrien	(elf_backend_additional_program_headers): Likewise.
652360484Sobrien	(elf_backend_modify_segment_map): Likewise.
652460484Sobrien	(elf_backend_create_program_headers): Don't define.
652560484Sobrien	(elfNN_bed): Change to account for field changes.
652660484Sobrien	* elf.c (assign_file_positions_for_segments): Call new
652760484Sobrien	modify_segment_map backend function.  Don't call old
652860484Sobrien	create_program_headers backend function.
652960484Sobrien	(get_program_header_size): Call additional_program_headers rather
653060484Sobrien	than create_program_headers.
653160484Sobrien	* elflink.h (elf_link_add_object_symbols): Initialize
653260484Sobrien	type_change_ok from new backend field.
653360484Sobrien	(elf_link_output_extsym): Don't warn if _rld_new_interface is
653460484Sobrien	defined.
653560484Sobrien	(elf_reloc_link_order): Treat a reloc against a defined symbol as
653660484Sobrien	a reloc against the appropriate section.
653760484Sobrien
653860484Sobrien	* elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
653960484Sobrien	(struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
654060484Sobrien	(elf_flags_init): Rename from elf_ppc_flags_init.
654160484Sobrien	* elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
654260484Sobrien	elf_ppc_flags_init.
654360484Sobrien	(ppc_elf_copy_private_bfd_data): Likewise.
654460484Sobrien	(ppc_elf_merge_private_bfd_data): Likewise.
654560484Sobrien
654660484Sobrien	* elf32-m68k.c (howto_table): Change src_mask to 0 for all
654760484Sobrien	relocation entries.
654860484Sobrien
654960484SobrienTue Jan  9 15:22:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
655060484Sobrien
655160484Sobrien	* coff-alpha.c (alpha_relocate_section): During final link, allow
655260484Sobrien 	output .lita section to be bigger than 64k by adjusting gp value
655360484Sobrien 	on a per-input section basis.
655460484Sobrien	* libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
655560484Sobrien	field.
655660484Sobrien	(struct ecoff_section_tdata): Add gp field.
655760484Sobrien
655860484SobrienTue Jan  9 12:00:36 1996  Ian Lance Taylor  <ian@cygnus.com>
655960484Sobrien
656060484Sobrien	Handle Alpha ECOFF changes in OSF/1 3.2.
656160484Sobrien	* libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
656260484Sobrien	field.
656360484Sobrien	* coff-alpha.c: Include "aout/ar.h".
656460484Sobrien	(alpha_ecoff_get_relocated_section_contents): Don't require an
656560484Sobrien	ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
656660484Sobrien	3.2 doesn't generate one.
656760484Sobrien	(alpha_relocate_section): Likewise.
656860484Sobrien	(alpha_ecoff_slurp_armap): Define.
656960484Sobrien	(alpha_ecoff_slurp_extended_name_table): Define.
657060484Sobrien	(alpha_ecoff_construct_extended_name_table): Define.
657160484Sobrien	(alpha_ecoff_truncate_arname): Define.
657260484Sobrien	(alpha_ecoff_write_armap): Define.
657360484Sobrien	(alpha_ecoff_generic_stat_arch_elt): Define.
657460484Sobrien	(alpha_ecoff_update_armap_timestamp): Define.
657560484Sobrien	(ARFZMAG): Define.
657660484Sobrien	(alpha_ecoff_read_ar_hdr): New static function.
657760484Sobrien	(alpha_ecoff_get_elt_at_filepos): New static function.
657860484Sobrien	(alpha_ecoff_openr_next_archived_file): New static function.
657960484Sobrien	(alpha_ecoff_get_elt_at_index): New static function.
658060484Sobrien	(alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
658160484Sobrien	(ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
658260484Sobrien	_bfd_ecoff to alpha_ecoff.
658360484Sobrien	* ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
658460484Sobrien	field from backend structure, rather than always calling
658560484Sobrien	_bfd_get_elt_at_filepos.
658660484Sobrien	* coff-mips.c (mips_ecoff_backend_data): Initialize
658760484Sobrien	get_elt_at_filepos field.
658860484Sobrien	* archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
658960484Sobrien	from _bfd_generic_read_ar_hdr with minor changes.
659060484Sobrien	(_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
659160484Sobrien	* libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
659260484Sobrien	* libbfd.h: Rebuild.
659360484Sobrien
659460484Sobrien	* bfd-in.h (BFD_IN_MEMORY): Define.
659560484Sobrien	* libbfd-in.h (struct bfd_in_memory): Define.
659660484Sobrien	* libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
659760484Sobrien	(bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
659860484Sobrien	(bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
659960484Sobrien	(bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
660060484Sobrien	* bfd.c (struct _bfd): Change iostream field from char * to PTR.
660160484Sobrien	(bfd_get_size): Handle BFD_IN_MEMORY flag.
660260484Sobrien	* cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
660360484Sobrien	(bfd_open_file): Cast to PTR, not char *, when setting iostream.
660460484Sobrien	(bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
660560484Sobrien	* opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
660660484Sobrien	iostream.
660760484Sobrien	(bfd_openstreamr): Likewise.
660860484Sobrien	* aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
660960484Sobrien	BFD_IN_MEMORY is not set.
661060484Sobrien	* riscix.c (riscix_some_aout_object_p): Likewise.
661160484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
661260484Sobrien
661360484Sobrien	* targets.c (bfd_target): Add _bfd_get_elt_at_index field.
661460484Sobrien	(BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
661560484Sobrien	(bfd_get_elt_at_index): Define.
661660484Sobrien	* archive.c (_bfd_generic_get_elt_at_index): Rename from
661760484Sobrien	bfd_get_elt_at_index.  Change index parameter from int to
661860484Sobrien	symindex.
661960484Sobrien	* libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
662060484Sobrien	(_bfd_noarchive_get_elt_at_index): Define.
662160484Sobrien	(_bfd_archive_bsd_get_elt_at_index): Define.
662260484Sobrien	(_bfd_archive_coff_get_elt_at_index): Define.
662360484Sobrien	* bfd-in2.h, libbfd.h: Rebuild.
662460484Sobrien	* aout-target.h (MY_get_elt_at_index): Define if not defined.
662560484Sobrien	* coff-rs6000.c (xcoff_get_elt_at_index): Define.
662660484Sobrien	* ieee.c (ieee_get_elt_at_index): Define.
662760484Sobrien	* libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
662860484Sobrien	* oasys.c (oasys_get_elt_at_index): Define.
662960484Sobrien	* som.c (som_get_elt_at_index): Define.
663060484Sobrien
663160484Sobrien	* ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
663260484Sobrien	numbers to the .text section.
663360484Sobrien
663460484SobrienMon Jan  8 17:00:57 1996  Ian Lance Taylor  <ian@cygnus.com>
663560484Sobrien
663660484Sobrien	* ieee.c (ieee_write_debug_part): Change return type to boolean.
663760484Sobrien	If there is a SEC_DEBUGGING section, get the contents of the debug
663860484Sobrien	information part from it.
663960484Sobrien	(ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
664060484Sobrien	section in memory.
664160484Sobrien	(ieee_write_object_contents): Check ieee_write_debug_part return.
664260484Sobrien
664360484SobrienThu Jan  4 17:12:37 1996  Fred Fish  <fnf@cygnus.com>
664460484Sobrien
664560484Sobrien	* config.bfd (i[345]86-*-freebsd*): Add target.
664660484Sobrien	* configure.in (i386freebsd_vec): Add vec.
664760484Sobrien	* configure: Regenerate.
664860484Sobrien	* Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
664960484Sobrien	(BFD32_BACKENDS_CFILES): Add i386freebsd.c.
665060484Sobrien	Rebuild dependencies..
665160484Sobrien	* freebsd.h: New file.
665260484Sobrien	* i386freebsd.c: New file.
665360484Sobrien	* targets.c (i386freebsd_vec): Declare.
665460484Sobrien	(bfd_target_vector): Add i386freebsd_vec.
665560484Sobrien	* i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
665660484Sobrien	* i386netbsd.c (SEGMENT_SIZE):  Define as TARGET_PAGE_SIZE
665760484Sobrien
665860484SobrienThu Jan  4 16:27:46 1996  Ian Lance Taylor  <ian@cygnus.com>
665960484Sobrien
666060484Sobrien	* ieee.c (ieee_slurp_debug): New static function.
666160484Sobrien	(ieee_object_p): Call it.
666260484Sobrien	(ieee_slurp_section_data): Skip debugging sections.
666360484Sobrien	(ieee_get_reloc_upper_bound): Likewise.
666460484Sobrien	(ieee_get_section_contents): Likewise.
666560484Sobrien	(ieee_canonicalize_reloc): Likewise.
666660484Sobrien	(ieee_write_section_part): Likewise.
666760484Sobrien	(ieee_write_debug_part): Likewise.
666860484Sobrien	(ieee_write_data_part): Likewise.
666960484Sobrien	(init_for_output): Likewise.
667060484Sobrien
667160484SobrienWed Jan  3 19:42:47 1996  Michael Meissner  <meissner@wogglebug.tiac.net>
667260484Sobrien
667360484Sobrien	* elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
667460484Sobrien	work.
667560484Sobrien	(ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
667660484Sobrien	relocs, since ppc_elf_relocate_section handles the linker case.
667760484Sobrien	(ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
667860484Sobrien	used.
667960484Sobrien	(ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
668060484Sobrien	ppc_elf_relocate_section since that is now the only caller.
668160484Sobrien	(ppc_elf_relocate_section): Ditto.
668260484Sobrien
668360484SobrienWed Jan  3 15:11:30 1996  Ian Lance Taylor  <ian@cygnus.com>
668460484Sobrien
668560484Sobrien	* coffcode.h (coff_write_object_contents): If we don't know the
668660484Sobrien	section of the entry point for an XCOFF executable, always set the
668760484Sobrien	entry address to -1.
668860484Sobrien
668960484SobrienTue Jan  2 14:17:15 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
669060484Sobrien
669160484Sobrien	* elf.c (bfd_section_from_shdr): Add support for note sections.
669260484Sobrien
669360484SobrienTue Jan  2 13:10:25 1996  Ian Lance Taylor  <ian@cygnus.com>
669460484Sobrien
669560484Sobrien	* bfd-in.h (struct _symbol_info): Add stab_type field.
669660484Sobrien	* bfd-in2.h: Rebuild.
669760484Sobrien	* aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
669860484Sobrien
669960484Sobrien	* elf32-ppc.c: Remove trailing newline from calls to
670060484Sobrien        _bfd_error_handler.
670160484Sobrien	(ppc_elf_merge_private_bfd_data): Only warn about endianness
670260484Sobrien	difference if target endianness is known.
670360484Sobrien
670460484SobrienFor older changes see ChangeLog-9495
670560484Sobrien
670660484SobrienLocal Variables:
670760484Sobrienmode: change-log
670860484Sobrienleft-margin: 8
670960484Sobrienfill-column: 74
671060484Sobrienversion-control: never
671160484SobrienEnd:
6712