ChangeLog revision 78828
1235537Sgber2001-06-19  Philip Blundell  <philb@gnu.org>
2235537Sgber
3235537Sgber	* configure.in: Set version to 2.11.2.
4235537Sgber	* configure: Regenerate.
5235537Sgber
6235537Sgber2001-06-19  Andreas Jaeger  <aj@suse.de>
7235537Sgber
8235537Sgber	Merge from mainline sources:
9235537Sgber	2001-06-19  Andreas Jaeger  <aj@suse.de>
10235537Sgber	* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
11235537Sgber	dynamic symbols.
12235537Sgber	2001-06-07  Andreas Jaeger  <aj@suse.de>
13235537Sgber	* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
14235537Sgber	assertion.
15235537Sgber	(elf64_x86_64_check_relocs): Set an alignment of 8 for .rela
16235537Sgber	sections; handle further relocations.
17235537Sgber	2001-06-01  Andreas Jaeger  <aj@suse.de>
18235537Sgber	* elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
19235537Sgber	relocation, small reformatting.
20235537Sgber
21235537Sgber2001-06-14  Nick Clifton <nickc@redhat.com>
22235537Sgber
23235537Sgber	Merge from mainline sources:
24235537Sgber	2001-04-27  Sean McNeil <sean@mcneil.com>
25235537Sgber	* config.bfd: Add arm-vxworks target.
26235537Sgber	* coff-arm (coff_arm_relocate_section): Add in symbol value to
27235537Sgber	addend (fro VXworks targets).
28235537Sgber	2001-03-06  Nick Clifton  <nickc@redhat.com>
29235537Sgber	* elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
30235537Sgber	of offset in BLX(1) instruction.
31235537Sgber	* coff-arm.c (coff_arm_relocate_section): Clear bit zero of
32235537Sgber	offset in BLX(1) instruction.
33235537Sgber        Fix formatting.
34235537Sgber	2001-03-06  Nick Clifton  <nickc@redhat.com>
35235537Sgber	* coff-arm.c (coff_arm_reloc_type_lookup): Add
36235537Sgber	BFD_RELOC_THUMB_PCREL_BLX.
37235537Sgber	2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>
38235537Sgber	* elf32-arm.h (elf32_arm_final_link_relocate): Set
39235537Sgber        EF_ARM_HASENTRY if the start address is set.
40235537Sgber
41235537Sgber2001-06-11  Alan Modra  <amodra@bigpond.net.au>
42235537Sgber
43235537Sgber	* configure.in (<COREFILE case stmt>): Move powerpc-*-*bsd* after
44235537Sgber	powerpc-*-freebsd*.
45235537Sgber
46235537Sgber	Merge from mainline.
47235537Sgber	2001-06-02  H.J. Lu  <hjl@gnu.org>
48235537Sgber	* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
49235537Sgber	and ELFOSABI_HPUX.
50235537Sgber	* elf64-hppa.c (elf64_hppa_object_p): Likewise.
51235537Sgber
52235537Sgber	2001-06-02  Hans-Peter Nilsson  <hp@axis.com>
53235537Sgber	* section.c (_bfd_strip_section_from_output): Handle NULL
54235537Sgber	output_section.
55235537Sgber
56235537Sgber	2001-05-30  Alan Modra  <amodra@one.net.au>
57235537Sgber	* elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
58235537Sgber	millicode.  Don't allocate .got and .rela.got space here..
59235537Sgber	(elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
60235537Sgber	(elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
61235537Sgber	.rela.plt here..
62235537Sgber	(hppa_handle_PIC_calls): ..nor here..
63235537Sgber	(allocate_plt_and_got): ..instead do it all here.  New function.
64235537Sgber	(elf32_hppa_size_dynamic_sections): Allocate local .got space and
65235537Sgber	call allocate_plt_and_got.  No need to zap .got if not dynamic.
66235537Sgber	(elf32_hppa_final_link): Call regular bfd_final_link instead of
67235537Sgber	gc_common_final_link.
68235537Sgber	(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
69235537Sgber	(elf32_hppa_relocate_section): Use it here.
70235537Sgber	(elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
71235537Sgber	dynamic_sections_created.
72235537Sgber	(hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
73235537Sgber
74235537Sgber	2001-05-28  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
75235537Sgber	* elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
76235537Sgber	a zeroing loop.
77235537Sgber	(elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
78235537Sgber	(elf_link_input_bfd): Likewise.
79235537Sgber	(elf_reloc_link_order): Likewise.
80235537Sgber	(elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
81235537Sgber	relocations correctly.
82235537Sgber
83235537Sgber	2001-05-28  Alan Modra  <amodra@one.net.au>
84235537Sgber	* elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
85235537Sgber	for symbols forced local that need plabels.
86235537Sgber	(elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
87235537Sgber	.plt.rela for local syms if non-shared.
88235537Sgber	(hppa_build_one_stub): Mask lsb of plt.offset.
89235537Sgber	(elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
90235537Sgber	(clobber_millicode_symbols): Correct comment.
91235537Sgber	(elf32_hppa_relocate_section): Likewise.
92235537Sgber	(elf32_hppa_finish_dynamic_symbol): Likewise.
93235537Sgber
94235537Sgber	2001-05-25  Alan Modra  <amodra@one.net.au>
95235537Sgber	* elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
96235537Sgber	undefined millicode syms in shared libs.
97235537Sgber	(hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
98235537Sgber	(elf32_hppa_check_relocs): Likewise.
99235537Sgber	(elf32_hppa_adjust_dynamic_symbol): Likewise.
100235537Sgber	(elf32_hppa_size_dynamic_sections): Likewise.
101235537Sgber	(elf32_hppa_relocate_section): Likewise.
102235537Sgber	(elf32_hppa_finish_dynamic_symbol): Likewise.
103235537Sgber	(elf32_hppa_finish_dynamic_sections): Likewise.
104235537Sgber
105235537Sgber	2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
106235537Sgber	* elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
107235537Sgber	s/ENTIRES/ENTRIES/.
108235537Sgber
109235537Sgber	2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
110235537Sgber	* reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
111235537Sgber	* libbfd.h: Regenerate.
112235537Sgber	* bfd-in2.h: Regenerate.
113235537Sgber	* aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
114235537Sgber	* archures.c (bfd_mach_mips12000): Define.
115235537Sgber	* cpu-mips.c (arch_info_struct): Add MIPS r12k support.
116235537Sgber	* elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
117235537Sgber	support.
118235537Sgber	(_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
119235537Sgber	* bfd-in2.h: Regenerate.
120235537Sgber	* elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
121235537Sgber
122235537Sgber	2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
123235537Sgber	* elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
124235537Sgber	of entries in a structured section.
125235537Sgber        * elf.c: Use new macro.
126235537Sgber        * elf32-i386.c: Use new macro.
127235537Sgber        * elf32-mips.c: Use new macro.
128235537Sgber        * elf64-alpha.c: Use new macro.
129235537Sgber        * elf64-sparc.c: Use new macro.
130235537Sgber        * elfcode.h: Use new macro.
131235537Sgber        * elflink.h: Use new macro.
132235537Sgber
133235537Sgber	2001-05-21  Andreas Jaeger  <aj@suse.de>
134235537Sgber	* dwarf2.c (decode_line_info): Fix error message.
135235537Sgber	(read_abbrevs): Fix test for offset as suggested by Alan Modra and
136235537Sgber	adjust error message.
137235537Sgber
138235537Sgber	2001-05-17  H.J. Lu  <hjl@gnu.org>
139235537Sgber	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
140235537Sgber	version definition to basename of the output filename.
141235537Sgber
142235537Sgber	2001-05-15  Alexandre Oliva  <aoliva@redhat.com>
143235537Sgber	* elf-m10300.c (mn10300_elf_relax_section): Don't relax
144235537Sgber	negative 32-bit operands to 16 operands when the operand is
145235537Sgber	going to be zero-extended by the modified opcode.
146235537Sgber
147235537Sgber	2001-05-11  Jakub Jelinek  <jakub@redhat.com>
148235537Sgber	* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
149235537Sgber	sections as well.
150235537Sgber	(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
151235537Sgber	to .gnu.linkonce.t.FOO text section.
152235537Sgber
153235537Sgber	2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
154235537Sgber	* dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
155235537Sgber	to be unsigned long, in order to match its use.
156235537Sgber
157235537Sgber	2001-05-10  H.J. Lu  <hjl@gnu.org>
158235537Sgber	* linker.c (_bfd_generic_link_add_one_symbol): Check loop on
159235537Sgber	indirect symbols.
160235537Sgber
161235537Sgber	2001-05-09  H.J. Lu  <hjl@gnu.org>
162235537Sgber	* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
163235537Sgber	versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
164235537Sgber	Remove the unused veriable `dynver'.
165235537Sgber
166235537Sgber	2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
167235537Sgber	* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
168235537Sgber	is always a positive integer. Cast away sign mismatch.
169235537Sgber	* elf32-mips.c: Fix misleading comment and typo.
170235537Sgber	(_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
171235537Sgber	correct data type.
172235537Sgber	* elflink.c: Fix typo.
173235537Sgber	(_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
174235537Sgber	* ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
175235537Sgber
176235537Sgber	2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>
177262586Sbrueffer	* targets.c (_bfd_target_vector_entries): Compute value based on
178235537Sgber	the size of the _bfd_target_vector and not bfd_target_vector.
179235537Sgber
180235537Sgber	2001-05-03  Andreas Jaeger  <aj@suse.de>
181235537Sgber	* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
182235537Sgber	(elf_generic_info_to_howto_rel): Likewise.
183235537Sgber	* coff-alpha.c (reloc_nil): Likewise.
184235537Sgber	(alpha_ecoff_bad_format_hook): Likewise.
185235537Sgber	(alpha_adjust_reloc_out): Likewise.
186235537Sgber	(alpha_bfd_reloc_type_lookup): Likewise.
187235537Sgber	(alpha_convert_external_reloc): Likewise.
188235537Sgber	* elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
189235537Sgber	(elf64_alpha_reloc_bad): Likewise.
190235537Sgber	(elf64_alpha_reloc_gpdisp): Likewise.
191235537Sgber	(elf64_alpha_bfd_reloc_type_lookup): Likewise.
192235537Sgber	(elf64_alpha_info_to_howto): Likewise.
193235537Sgber	(elf64_alpha_add_symbol_hook): Likewise.
194235537Sgber	(elf64_alpha_create_got_section): Likewise.
195235537Sgber	(elf64_alpha_is_local_label_name): Likewise.
196235537Sgber	(elf64_alpha_merge_ind_symbols): Likewise.
197235537Sgber	* elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
198259372Sian	(mips_elf64_get_reloc_upper_bound): Likewise.
199259372Sian	* nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
200259372Sian	(nlm_alpha_get_public_offset): Likewise.
201259372Sian
202259372Sian	2001-04-30  H.J. Lu  <hjl@gnu.org>
203259372Sian	* elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
204259372Sian	only for ELF_LINK_FORCED_LOCAL.
205259372Sian	* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
206259372Sian	* elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
207259372Sian	* elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
208259372Sian	* elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
209259372Sian	if the symbol has hidden or internal visibility.
210259372Sian
211259372Sian	2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>
212259372Sian	* coffcode.h (coff_write_object_contents): Use
213259372Sian	bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
214259372Sian
215259372Sian	2001-04-09  Hans-Peter Nilsson  <hp@axis.com>
216259372Sian	* elflink.h (elf_fix_symbol_flags): For non-default visibilities,
217259372Sian	only hide symbols marked STV_INTERNAL or STV_HIDDEN.
218259372Sian
219235537Sgber	2001-04-05  Steven J. Hill  <sjhill@cotw.com>
220235537Sgber	* config.bfd (mips*el*-*-linux-gnu*): Use traditional little
221235537Sgber	endian MIPS ELF target.
222235537Sgber	(mips*-*-linux-gnu*): Use traditional big endian MIPS ELF target.
223235537Sgber	* configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
224235537Sgber	64bit big endian MIPS ELF target.
225235537Sgber	(bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
226235537Sgber	endian MIPS ELF target.
227235537Sgber	* configure: Regenerated.
228235537Sgber	* elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
229235537Sgber	little endian targets.
230235537Sgber	(mips_elf_sym_is_global): Handle traditional targets.
231235537Sgber	* elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
232235537Sgber	64bit big endian MIPS ELF target.
233235537Sgber	(bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
234235537Sgber	endian MIPS ELF target.
235235537Sgber	* targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
236235537Sgber	and bfd_elf64_tradlittlemips_vec.
237235537Sgber
238235537Sgber	2001-04-04  Alan Modra  <alan@linuxcare.com.au>
239235537Sgber	* elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
240235537Sgber	when -Bsymbolic causes a symbol to no longer need a .plt entry.
241235537Sgber
242235537Sgber	2001-04-03  David Mosberger  <davidm@hpl.hp.com>
243235537Sgber	* efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
244235537Sgber
245235537Sgber	2001-03-30  H.J. Lu  <hjl@gnu.org>
246235537Sgber	* efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
247235537Sgber	(PEI_DEFAULT_TARGET_SUBSYSTEM): This.
248235537Sgber
249235537Sgber	2001-03-23  Nick Clifton  <nickc@redhat.com>
250235537Sgber	* Makefile.am (BUILD_CFILES): New variable: List of C source
251235537Sgber        files created in build directory.
252235537Sgber        (BUILD_HFILES): New variable: List of header files created in
253235537Sgber        build directory.
254235537Sgber        (POTFILES): Delete.
255235537Sgber        (po/POTFILES.in): Replace rule with empty entry.
256235537Sgber        (po/SRC-POTFILES.in): New rule: Create a list of source files
257235537Sgber        in the source directory.
258235537Sgber        (po/BLD-POTFILES.in): New rule: Create a list of source files
259235537Sgber        in the build directory.
260235537Sgber        (MOSTLYCLEAN): Do not delete source files created in build
261235537Sgber        directory.
262235537Sgber        * Makefile.in: Regenerate.
263235537Sgber        * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
264235537Sgber        into po/Makefile.
265235537Sgber        * configure: Regenerate.
266235537Sgber        * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
267235537Sgber        and BLD_POTFILES.
268235537Sgber	Add .. to the search path when building bfd.pot.
269235537Sgber        Delete POTFILES when performing distclean.
270235537Sgber        Add comment describing why distclean is broken in maintainer mode.
271235537Sgber	* po/POTFILES.in: Delete.
272235537Sgber	* po/SRC-POTFILES.in: New file.
273235537Sgber	* po/BLD-POTFILES.in: New file.
274235537Sgber        * po/bfd.pot: Regenerate.
275235537Sgber
276235537Sgber	2001-03-06  Igor Shevlyakov  <igor@windriver.com>
277235537Sgber	* archures.c (bfd_default_scan): Add Coldfire CPUs.
278235537Sgber	* bfd-in2.h: Regenerate.
279235537Sgber	* cpu-m68k.c: Add Coldfire CPUs for arch table.
280235537Sgber	* ieee.c (ieee_write_processor): Set proper id for
281235537Sgber	Coldfire CPUs.
282235537Sgber
283235537Sgber	2001-02-27  H.J. Lu  <hjl@gnu.org>
284235537Sgber	* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
285235537Sgber	abfd->tdata.aout_data == NULL.
286235537Sgber
287235537Sgber	2001-02-26  Nick Clifton <nickc@redhat.com>
288235537Sgber	* coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
289235537Sgber	up, replacing multiple if statements with a switch.
290235537Sgber        (handle_COMDAT): New function.
291235537Sgber
292235537Sgber	2001-02-26  H.J. Lu  <hjl@gnu.org>
293235537Sgber	* coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
294235537Sgber	a warning for section flags we do not handle instead of
295235537Sgber	aborting.
296235537Sgber
297235537Sgber	2001-02-19  Jakub Jelinek  <jakub@redhat.com>
298235537Sgber	* elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
299235537Sgber	entries that could serve as a definition for a weak symbol.
300235537Sgber	* elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
301235537Sgber
302235537Sgber	2001-02-18  Jim Kingdon  <jkingdon@engr.sgi.com>
303235537Sgber	* irix-core.c (irix_core_core_file_p): Set the architecture (GDB
304235537Sgber	multiarch needs it).
305235537Sgber
306235537Sgber	2001-02-18  H.J. Lu  <hjl@gnu.org>
307235537Sgber	* elflink.h (elf_link_input_bfd): Ignore invalid section symbol
308235537Sgber	index.
309235537Sgber
310235537Sgber	2001-02-18  Kazu Hirata  <kazu@hxi.com>
311235537Sgber	* vms-misc.c: Fix formatting.
312235537Sgber
313235537Sgber	2001-02-16  Kazu Hirata  <kazu@hxi.com>
314235537Sgber	* vms.c: Fix formatting.
315235537Sgber
316235537Sgber	2001-02-14  H.J. Lu  <hjl@gnu.org>
317235537Sgber	* elf.c (elf_find_function): New function.
318235537Sgber	(_bfd_elf_find_nearest_line): Call elf_find_function () to find
319235537Sgber	the file name and function name.
320235537Sgber
321235537Sgber	2001-02-14  Nick Clifton  <nickc@redhat.com>
322235537Sgber	* Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
323235537Sgber	(BFD64_BACKENDS): Add pepigen.c
324235537Sgber	Add rules to create peigen.c and pepigen.c from peXXigen.c.
325235537Sgber
326235537Sgber	2001-02-14  H.J. Lu  <hjl@gnu.org>
327235537Sgber	* libcoff-in.h (pe_tdata): Add members target_subsystem and
328235537Sgber	force_minimum_alignment.
329235537Sgber
330235537Sgber	2001-02-13  Kazu Hirata  <kazu@hxi.com>
331235537Sgber	* vms.c (vms_print_symbol): Remove unreachable code.
332235537Sgber	* rs6000-core.c: Fix formatting.
333235537Sgber
334235537Sgber	2001-02-13  David Mosberger  <davidm@hpl.hp.com>
335235537Sgber	* peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
336235537Sgber	as _bfd_XXi_only_swap_filehdr_out.
337235537Sgber	(pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
338235537Sgber	pe->force_minimum_alignment to TRUE.
339235537Sgber	(pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
340235537Sgber	PEI_TARGET_SUBSYSTEM.
341235537Sgber	(pe_print_private_bfd_data): Call
342235537Sgber	_bfd_XX_print_private_bfd_data_common() instead of
343235537Sgber	_bfd_pe_print_private_bfd_data_common().
344251022Sgber	(pe_bfd_copy_private_bfd_data): Call
345235537Sgber	_bfd_XX_bfd_copy_private_bfd_data_common() instead of
346235537Sgber	_bfd_pe_bfd_copy_private_bfd_data_common().
347235537Sgber	(coff_bfd_copy_private_section_data): Define as
348235537Sgber	_bfd_XX_bfd_copy_private_section_data instead of
349235537Sgber	_bfd_pe_bfd_copy_private_section_data.
350235537Sgber	(coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
351235537Sgber	of a _bfd_pe_get_symbol_info.
352235537Sgber	* peigen.c: Delete.
353235537Sgber	* peXXigen.c: Renamed from peigen.c.
354235537Sgber	(COFF_WITH_XX): Define this macro (will get expanded into
355235537Sgber	COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
356235537Sgber	compiled as peigen.c or pepigen.c.
357235537Sgber	[COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
358235537Sgber	define the canonical PEP structures and definitions.
359235537Sgber	(_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
360235537Sgber	effect, enforce minimum file and section alignments.  If
361235537Sgber	extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
362235537Sgber	pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
363235537Sgber	so, by default, this is a no-op).
364235537Sgber	* libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
365235537Sgber	(_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
366235537Sgber	_bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
367235537Sgber	_bfd_pefoo if it's not defined.  Use these macros to define
368235537Sgber	coff swap macros.
369235537Sgber	* libcoff.h (pe_tdata): Add members target_subsystem and
370235537Sgber	force_minimum_alignment.
371235537Sgber	* efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
372235537Sgber	COFF_WITH_pep.
373235537Sgber	(PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
374235537Sgber	* configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
375235537Sgber	peigen.lo.
376235537Sgber	* coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
377235537Sgber	(AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
378235537Sgber	PEPAOUTHDR.
379235537Sgber	* Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
380235537Sgber	(BFD64_BACKENDS_CFILES): Mention pepigen.c
381235537Sgber	(peigen.c): Add rule to generate from peXXigen.c.
382235537Sgber	(pepigen.c): Ditto.
383235537Sgber	(pepigen.lo): List dependencies for pepigen.lo.
384235537Sgber
385235537Sgber	2001-02-11  H.J. Lu  <hjl@gnu.org>
386235537Sgber	* elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
387235537Sgber	alignment.
388235537Sgber
389235537Sgber	2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
390235537Sgber	* elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
391235537Sgber	from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
392235537Sgber	relocations against dynsym symbols.
393235537Sgber	* elf32-mips.c (elf_mips_howto_table): Fix the comment on
394235537Sgber	the R_MIPS_26 relocation.
395235537Sgber	(mips_elf_calculate_relocation): Use (p + 4) instead of p for
396235537Sgber	the R_MIPS_26 relocation.
397235537Sgber	(mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
398235537Sgber	relocation.
399235537Sgber	* elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
400235537Sgber	the R_MIPS_26 relocation.
401235537Sgber	(mips_elf64_howto_table_rela): Likewise.
402235537Sgber	* elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
403235537Sgber	member to mark symbols that have non-CALL relocations against
404235537Sgber	them.
405235537Sgber	(mips_elf_link_hash_newfunc): Initialize no_fn_stub.
406235537Sgber	(mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
407235537Sgber	R_MIPS_GOT16.
408235537Sgber	(_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
409235537Sgber	non-CALL relocation against it is encountered.
410235537Sgber	(_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
411235537Sgber	(_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
412235537Sgber	no_fn_stub is not set.
413235537Sgber	* elf32-mips.c (mips_elf_output_extsym): Get the output section
414235537Sgber	information from the real symbol for indirect ones.
415235537Sgber	Check no_fn_stub to find out if a symbol has a function stub
416235537Sgber	indeed.
417235537Sgber
418235537Sgber	2001-02-09  Jakub Jelinek  <jakub@redhat.com>
419235537Sgber	* elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
420235537Sgber
421235537Sgber	2001-02-09  Mark Kettenis  <kettenis@gnu.org>
422235537Sgber	* elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
423235537Sgber	similar to R_SPARC_32.
424235537Sgber	* elf64-sparc.c	(sparc64_elf_howto_table): Likewise.
425235537Sgber
426235537Sgber	2001-02-08  Richard Henderson  <rth@redhat.com>
427235537Sgber	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
428235537Sgber	before visibility.  Locally defined protected symbols are not
429235537Sgber	dynamic.
430235537Sgber
431235537Sgber	2001-02-07  Jakub Jelinek  <jakub@redhat.com>
432235537Sgber	* elflink.h (is_global_symbol_definition): Rename to
433235537Sgber	is_global_data_symbol_definition and have it reject function
434235537Sgber	symbols.
435235537Sgber	(elf_link_is_defined_archive_symbol): Use renamed function.
436235537Sgber
437235537Sgber	2001-02-07  Todd Vierling  <tv@wasabisystems.com>
438235537Sgber	* libbfd-in.h (bfd_target_vector): Change extern array to pointer.
439235537Sgber	* libbfd.h (bfd_target_vector): Likewise.
440235537Sgber	* targets.c (bfd_target_vector): Rename to _bfd_target_vector and
441235537Sgber	make static; create pointer reference named bfd_target_vector.
442235537Sgber	(_bfd_target_vector_entries): Calculate this based on the array
443235537Sgber	typed _bfd_target_vector.
444235537Sgber
445235537Sgber	2001-02-06  H.J. Lu  <hjl@gnu.org>
446235537Sgber	* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
447235537Sgber	internal symbols are not dynamic.
448235537Sgber	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
449235537Sgber
450235537Sgber	2001-02-06  Kazu Hirata  <kazu@hxi.com>
451235537Sgber	* elf-m10200.c: Fix formatting.
452235537Sgber
453235537Sgber	2001-02-01  Kazu Hirata  <kazu@hxi.com>
454235537Sgber	* elf-m10300.c: Fix formatting.
455235537Sgber
456235537Sgber2001-06-10  Philip Blundell  <philb@gnu.org>
457235537Sgber
458235537Sgber	* configure.in: Set version to 2.11.1.
459235537Sgber	* configure: Regenerate.
460235537Sgber
461235537Sgber2001-06-09  Philip Blundell  <philb@gnu.org>
462235537Sgber
463235537Sgber	* elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
464235537Sgber	change.
465235537Sgber	(elf32_arm_plt_entry): Likewise.
466235537Sgber
467235537Sgber2001-06-07  Alan Modra  <amodra@bigpond.net.au>
468235537Sgber
469235537Sgber	* Most files: Update copyright notices.
470235537Sgber
471235537Sgber2001-05-29  Andreas Jaeger  <aj@suse.de>
472235537Sgber
473235537Sgber	* elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
474235537Sgber	(elf64_x86_64_relocate_section): Likewise.
475235537Sgber
476235537Sgber2001-05-28  Andreas Jaeger  <aj@suse.de>
477235537Sgber
478235537Sgber	* elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
479235537Sgber	generic version since we want a hashsize of 4.
480235537Sgber	(elf_backend_size_info): Likewise.
481235537Sgber
482235537Sgber2001-05-28  Nicolas Pitre <nico@cam.org>
483235537Sgber
484235537Sgber	* elf32-arm.h: Fix PLT generation for big endian ARM.
485235537Sgber
486235537Sgber2001-05-28  Jeff Sturm  <jsturm@one-point.com>
487235537Sgber
488235537Sgber	* reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
489235537Sgber	* bfd-in2.h: Regenerate.
490235537Sgber	* libbfd.h: Regenerate.
491235537Sgber	* elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
492235537Sgber	and BFD_RELOC_SPARC_UA64 mapping
493235537Sgber	* elf64-sparc.c: Likewise.
494235537Sgber
495235537Sgber2001-05-23  Alan Modra  <amodra@one.net.au>
496235537Sgber
497235537Sgber	Merge from mainline.
498235537Sgber	2001-05-17  Alan Modra  <amodra@one.net.au>
499235537Sgber	* elf32-hppa.c (hppa_build_one_stub): Add an assert to check
500235537Sgber	plt.offset.
501235537Sgber
502235537Sgber	2001-05-16  Alan Modra  <amodra@one.net.au>
503235537Sgber	* section.c (asection): Add linker_has_input field.
504235537Sgber	(STD_SECTION): Adjust initialization to suit.
505235537Sgber	* ecoff.c (bfd_debug_section): Likewise.
506266065Sian	* bfd-in2.h: Regenerate.
507235537Sgber
508235537Sgber	2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
509235537Sgber	* ecoff.c (bfd_debug_section): Fix initialization.
510235537Sgber
511235537Sgber	2001-05-12  Peter Targett  <peter.targett@arccores.com>
512235537Sgber	* cpu-arc.c (arch_info_struct): Add entry 'base' representing old
513235537Sgber	name for 'arc5' core versions.
514235537Sgber	(bfd_arc_arch): Make bfd_mach_arc_6 default.
515235537Sgber	* elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
516235537Sgber	architecture.
517235537Sgber	(arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
518235537Sgber
519235537Sgber	2001-05-08  Ian Lance Taylor  <ian@zembu.com>
520235537Sgber	* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
521235537Sgber	NULL or is not COFF.
522235537Sgber	(coff_i386_rtype_to_howto): Don't dump core if output section
523235537Sgber	owner is not COFF.
524235537Sgber
525235537Sgber	2001-04-13  Roger Sayle  <roger@metaphorics.com>
526235537Sgber	* coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
527235537Sgber	flag on pe-i386 targets.
528235537Sgber
529235537Sgber	2001-04-26  H.J. Lu  <hjl@gnu.org>
530235537Sgber	* elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
531235537Sgber	valid.
532235537Sgber
533235537Sgber	2001-04-05  David Mosberger  <davidm@hpl.hp.com>
534235537Sgber	* elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
535235537Sgber	ordinary "progbits" section.
536235537Sgber
537235537Sgber2001-05-04  Richard Henderson  <rth@redhat.com>
538235537Sgber
539235537Sgber	* elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
540235537Sgber
5412001-04-30  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>
542
543	* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
544	R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
545
5462001-04-27  Andreas Jaeger  <aj@suse.de>
547
548	* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
549	out handled entries.
550	(elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
551	(elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
552	(elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
553	GOT32.
554
5552001-04-30  Alan Modra  <amodra@one.net.au>
556
557	* elf32-hppa.c (final_link_relocate): Branch to .+8 for
558	calls to undefined weak symbols.
559
5602001-04-19  Andreas Jaeger  <aj@suse.de>
561
562	* elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
563	(elf64_x86_64_plt_entry): Likewise.
564	(elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
565	(elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
566
5672001-03-31  Philip Blundell  <philb@gnu.org>
568
569	From 2001-03-26  H.J. Lu  <hjl@gnu.org>
570	* elf32-gen.c (elf32_generic_link_add_symbols): New. Check
571	if there are any relocations for generic ELF.
572	(bfd_elf32_bfd_link_add_symbols): Defined to
573	elf32_generic_link_add_symbols.
574	* elf64-gen.c (elf64_generic_link_add_symbols): New. Check
575	if there are any relocations for generic ELF.
576	(bfd_elf64_bfd_link_add_symbols): Defined to
577	elf64_generic_link_add_symbols.
578
5792001-03-21  Alan Modra  <alan@linuxcare.com.au>
580
581	* elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
582	non-NULL before attempting to dereference.
583
5842001-03-20  Andreas Schwab  <schwab@suse.de>
585
586	* elf32-m68k.c (elf_m68k_relocate_section): Don't need the
587	relocation value when resolving a reference from a debugging
588	section.
589
5902001-03-16  Philip Blundell  <philb@gnu.org>
591
592	* configure: Regenerate.
593
5942001-03-16  Alan Modra  <alan@linuxcare.com.au>
595
596	* elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
597	(hppa_link_hash_newfunc): Init it.
598	(hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
599	section appears to be non-PIC.
600	(final_link_relocate): Likewise.
601	(elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
602	possible candidate function, and set pic_call for those that will
603	only have a .plt entry for the PIC call stub.
604	(hppa_handle_PIC_calls): Set maybe_pic_call.
605
606	* elf32-hppa.c: Correct field selector in stub comments.
607	(clobber_millicode_symbols): Formatting fix.
608
6092001-03-11  Philip Blundell  <philb@gnu.org>
610
611	* configure.in: Set version to 2.11.
612
613	* elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
614	entries that could serve as a definition for a weak symbol.
615
6162001-03-07  Andreas Jaeger  <aj@suse.de>
617
618	* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
619	some relocation values.
620
6212001-02-28  Andreas Jaeger  <aj@suse.de>
622
623	* elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
624	to addend.
625
6262001-02-26  Andreas Jaeger  <aj@suse.de>
627
628	* elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
629
6302001-02-21  David Mosberger  <davidm@hpl.hp.com>
631
632	* cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
633	C8 said "1" instead of "8".  Clarify error string for IMM22:
634	"signed integer" instead of just "integer".
635
6362001-02-20  Andreas Jaeger  <aj@suse.de>
637
638	* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
639	PLT entries that could serve as a definition for a weak symbol.
640
6412001-02-18  David O'Brien  <obrien@FreeBSD>
642
643	* configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
644	FreeBSD/i386-CURRENT differently until I can figure out the needed
645	corefile changes.
646	* configure: Regenerate.
647	* config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
648	FreeBSD/PowerPC, and FreeBSD/sparc64.
649
6502001-02-14  Philip Blundell  <pb@futuretv.com>
651
652	From 2001-02-06  H.J. Lu  <hjl@gnu.org>
653	* bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
654	checking.
655	(pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
656	external_PEI_IMAGE_hdr.
657
6582001-02-14  Bo Thorsen  <bo@suse.de>
659
660        * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
661        (elf64_86_64_size_info): Struct added to fix a problem
662        with the hashtable string entries.
663        (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
664        (elf64_x86_64_size_dynamic_sections): A FIXME removed.
665        (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
666        remove the FIXME for this.
667        (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
668        section. Also removed the FIXME for it.
669        (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
670        (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
671        (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
672
6732001-02-14  Philip Blundell  <pb@futuretv.com>
674
675	From 2001-02-08  H.J. Lu  <hjl@gnu.org>
676	* elf32-i386.c (elf_i386_check_relocs): Reserve R_386_32
677	relocation entries for weak definitions when building DSO with
678	-Bsymbolic.
679
6802001-02-13  Richard Henderson  <rth@redhat.com>
681
682	* elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
683	and not user provided.
684
6852001-02-13  Alan Modra  <alan@linuxcare.com.au>
686
687	* elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
688	$global$ referenced but not defined, set its value here.
689
6902001-02-09  Bo Thorsen  <bo@suse.de>
691
692	* elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
693	alignment to 3.
694	(elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
695	and relocation.
696	(elf64_x86_64_relocate_section): Fix formatting.
697	(elf64_x86_64_relocate_section): Fix addend for relocation of
698	R_X86_64_(8|16|32|PC8|PC16|PC32).
699
700Mon Feb 12 17:44:39 CET 2001  Jan Hubicka  <jh@suse.cz>
701
702	* elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
703
7042001-02-10  Nick Clifton  <nickc@redhat.com>
705
706	* elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
707	rel, it will be handled later on.
708
7092001-02-09  David Mosberger  <davidm@hpl.hp.com>
710
711	* elfxx-ia64.c (is_unwind_section_name): New function.  Returns
712	true if section name is an unwind table section name.
713	(elfNN_ia64_additional_program_headers): Count each unwind section
714	separately.
715	(elfNN_ia64_modify_segment_map): Install one unwind program header
716	for each unwind separate section.  Note: normally the linker
717	script merges the unwind sections that go into a single segment,
718	so this still generates at most one unwind program header per
719	segment.
720
721	* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
722	name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
723	(elfNN_ia64_fake_sections): Mark sections with names that start
724	with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
725	unwind section.
726
727	* elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
728	Use it to make sh_info in unwind section point to the text section
729	it applies to.
730
7312001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
732
733	* coffgen.c (coff_find_nearest_line): If stabs info is successfully
734	found, do not attempt to find dwarf2 info before returning.
735
7362001-01-30  Alan Modra  <alan@linuxcare.com.au>
737
738	* elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
739	(elf_backend_get_symbol_type): Define.
740	(elf64_hppa_object_p): Set architecture and machine from elf
741	header flags.
742
7432001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
744
745	* elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
746	before mdebug.
747
7482001-01-26  Richard Henderson  <rth@redhat.com>
749
750	* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
751	for non-default visibility.
752	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
753	delete ugly macro and replace with pretty function.
754
7552001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
756
757	* coff-go32.c: Update copyright.
758	* coff-stgo32.c: Likewise.
759	* coff-go32.c (COFF_LONG_FILENAMES): Define.
760	* coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
761	* coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
762	* coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
763
7642001-01-25  Kazu Hirata  <kazu@hxi.com>
765
766	* bfd-in2.h: Rebuild.
767	* libbfd.h: Likewise.
768
7692001-01-23  H.J. Lu  <hjl@gnu.org>
770
771	* bfd-in2.h: Rebuild.
772
7732001-01-23  H.J. Lu  <hjl@gnu.org>
774
775	* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
776	is NULL or PRIV(vms_rec) is outside of the buffer.
777
7782001-01-23  Kazu Hirata  <kazu@hxi.com>
779
780	* coff64-rs6000.c: Fix formatting.
781	* coff-arm.c: Likewise.
782	* coffgen.c: Likewise.
783	* cofflink.c: Likewise.
784	* coff-mcore.c: Likewise.
785	* coff-mips.c: Likewise.
786	* coff-pmac.c: Likewise.
787	* coff-ppc.c: Likewise.
788	* coff-rs6000.c: Likewise.
789	* elf32.c: Likewise.
790	* elf32-fr30.c: Likewise.
791	* elf32-i370.c: Likewise.
792	* elf32-i860.c: Likewise.
793	* elf32-m32r.c: Likewise.
794	* elf32-m68k.c: Likewise.
795	* elf32-mcore.c: Likewise.
796	* elf32-ppc.c: Likewise.
797	* elf32-sh.c: Likewise.
798	* elf32-v850.c: Likewise.
799	* elf64-alpha.c: Likewise.
800	* elf64-sparc.c: Likewise.
801	* elflink.c: Likewise.
802	* elflink.h: Likewise.
803	* elf-m10200.c: Likewise.
804	* elf-m10300.c: Likewise.
805	* elfxx-ia64.c: Likewise.
806
807	* aoutx.h: Fix formatting.
808	* bfd.c: Likewise.
809	* bfd-in2.h: Likewise.
810	* bfd-in.h: Likewise.
811	* cpu-i386.c: Likewise.
812	* cpu-m68hc11.c: Likewise.
813	* dwarf2.c: Likewise.
814	* elf64-x86-64.c: Likewise.
815	* format.c: Likewise.
816	* freebsd.h: Likewise.
817	* hash.c: Likewise.
818	* hp300hpux.c: Likewise.
819	* hppabsd-core.c: Likewise.
820	* hpux-core.c: Likewise.
821
8222001-01-22  Bo Thorsen  <bo@suse.de>
823
824	* elf64-x86-64.c: Added PIC support for X86-64.
825	(elf64_x86_64_link_hash_newfunc): Function added.
826	(elf64_x86_64_link_hash_table_create): Likewise.
827	(elf64_x86_64_check_relocs): Likewise.
828	(elf64_x86_64_gc_mark_hook): Likewise.
829	(elf64_x86_64_gc_sweep_hook): Likewise.
830	(elf64_x86_64_adjust_dynamic_symbol): Likewise.
831	(elf64_x86_64_size_dynamic_sections): Likewise.
832	(elf64_x86_64_discard_copies): Likewise.
833	(elf64_x86_64_finish_dynamic_symbol): Likewise.
834	(elf64_x86_64_finish_dynamic_sections): Likewise.
835	(elf64_x86_64_relocate_section): Add relocation of PIC sections.
836
8372001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
838
839	* Makefile.am (install-data-local): Make use of $(DESTDIR).
840	* Makefile.in: Regenerate.
841
8422001-01-21  Kazu Hirata  <kazu@hxi.com>
843
844	* coff-a29k.c: Fix formatting.
845
8462001-01-19  H.J. Lu  <hjl@gnu.org>
847
848	* elf32-i386.c (elf_i386_check_relocs): Report files with bad
849	relocation section names.
850	(elf_i386_relocate_section): Report files with bad relocation
851	section names and return false.
852
8532001-01-17  Bo Thorsen  <bo@suse.de>
854
855	* targets.c: Alphabetize list of xvecs.
856
8572001-01-14  Alan Modra  <alan@linuxcare.com.au>
858
859	* config.bfd: Add linux target variant for elfxx-hppa.
860	* configure.in: Recognize bfd_elf32_hppa_linux_vec and
861	bfd_elf64_hppa_linux_vec.
862	* configure: Regenerate.
863	* elf64-hppa.c: Include elf64-target.h again to support linux
864	target variant.
865	(elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
866	* elf32-hppa.c: Include elf32-target.h again to support linux
867	target variant.
868	(elf32_hppa_post_process_headers): New function.
869	(elf_backend_post_process_headers): Define.
870	* targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
871	bfd_elf32_hppa_linux_vec.
872
873	* elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
874	and data_segment_base fields.
875	(elf32_hppa_link_hash_table_create ): Init them.
876	(elf32_hppa_check_relocs): Update comments.
877	(hppa_record_segment_addr): New function.
878	(elf32_hppa_relocate_section): Call it.
879	(final_link_relocate): Handle R_PARISC_SEGREL32.
880	(elf32_hppa_final_link): New function.
881	(bfd_elf32_bfd_final_link): Define to call it.
882	(hppa_unwind_entry_compare): New function.
883	* cache.c (bfd_open_file): Create files in write+read mode.
884
885	* elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
886	SEGREL32 and numerous other relocs.  Change duplicate
887	R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
888
889	* opncls.c (bfd_fdopenr): Add parens like the comment says around
890	O_ACCMODE.
891
892	* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
893	.plt entries for DT_INIT and DT_FINI.
894	(elf32_hppa_finish_dynamic_sections): Remove special handling of
895	DT_INIT and DT_FINI.
896
897	* elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
898	offsets for stub .plt access if wide mode.  Check offset in range.
899
9002001-01-13  Nick Clifton  <nickc@redhat.com>
901
902	* elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
903	line.
904
905	* coffcode.h (coff_canonicalize_reloc): Remove spurious blank
906	line.
907
9082001-01-12  Alan Modra  <alan@linuxcare.com.au>
909
910	* configure.in ([bfd_elf64_x86_64_vec]): Set target64.
911	* configure: Regenerate.
912
9132001-01-11  Peter Targett  <peter.targett@arccores.com>
914
915	* bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
916	bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
917	* cpu-arc.c (arch_info_struct): Add entries for variants.
918	(bfd_arc_arch) Set default to bfd_mach_arc_5.
919	(arc_get_mach) Don't assume machine names prefixed arc- before
920	testing.
921	* elf32-arc.c (arc_elf_object_p): Set machine number based on new
922	selections.
923	(arc_elf_final_write_processing) Likewise.
924	(ELF_MACHINE_CODE) Use EM_ARC.
925
9262001-01-10  Nick Clifton  <nickc@redhat.com>
927
928	* coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
929
9302001-01-07  Philip Blundell  <philb@gnu.org>
931
932	* README: Replace `bug-gnu-utils@gnu.org' with
933	`bug-binutils@gnu.org'.
934
9352001-01-04  Kazu Hirata  <kazu@hxi.com>
936
937	* som.c: Fix formatting.
938
9392001-01-03  Kazu Hirata  <kazu@hxi.com>
940
941	* ecoffswap.h: Fix formatting.
942	* elf-bfd.h: Likewise.
943	* elfarm-nabi.c: Likewise.
944	* elfarm-oabi.c: Likewise.
945	* elfcode.h: Likewise.
946	* elfcore.h: Likewise.
947	* elflink.c: Likewise.
948	* elflink.h: Likewise.
949	* elfxx-ia64.c: Likewise.
950	* elfxx-target.h: Likewise.
951	* libbfd.c: Likewise
952	* linker.c: Likewise.
953	* lynx-core.c: Likewise.
954
9552001-01-02  Kazu Hirata  <kazu@hxi.com>
956
957	* pc532-mach.c: Fix formatting.
958	* pe-arm.c: Likewise.
959	* pe-i386.c: Likewise.
960	* pe-mips.c: Likewise.
961	* pe-ppc.c: Likewise.
962	* pe-sh.c: Likewise.
963	* pei-mips.c: Likewise.
964	* pei-sh.c: Likewise.
965	* peicode.h: Likewise.
966	* ppcboot.c: Likewise.
967	* ptrace-core.c: Likewise.
968
9692001-01-01  Kazu Hirata  <kazu@hxi.com>
970
971	* reloc.c: Fix formatting.
972	* riscix.c: Likewise.
973	* rs6000-core.c: Likewise.
974	* xcoff-target.h: Likewise.
975
9762000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
977
978	* elfcode.h (elf_object_p): Also restore the bfd mach field on
979	error, by calling bfd_default_set_arch_mach with incoming
980	values.
981
9822000-12-26  Kazu Hirata  <kazu@hxi.com>
983
984	* vaxnetbsd.c: Fix formatting.
985	* versados.c: Likewise.
986	* vms-gsd.c: Likewise.
987	* vms-hdr.c: Likewise.
988	* vms-misc.c: Likewise.
989
9902000-12-25  Alexandre Oliva  <aoliva@redhat.com>
991
992	* archive.c (coff_write_armap): Don't write more than symbol_count
993	`archive_member_file_ptr's.
994
9952000-12-25  Kazu Hirata  <kazu@hxi.com>
996
997	* vms-tir.c: Fix formatting.
998
9992000-12-23  Kazu Hirata  <kazu@hxi.com>
1000
1001	* vms.c: Fix formatting.
1002	* vms.h: Likewise.
1003
10042000-12-21  Santeri Paavolainen <santtu@ssh.com>
1005
1006	* vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1007
1008	* peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1009
1010	* elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1011	arithmetic.
1012
1013	* elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1014
1015	* coffcode.h (styp_to_sec_flags): Add empty statement after label.
1016
10172000-12-21  Richard Sandiford  <rsandifo@redhat.com>
1018
1019	* libbfd.c (bfd_get_bits): Added
1020	(bfd_put_bits): Likewise
1021	* bfd-in.h: Declared the above.
1022	* bfd-in2.h: Regenerated.
1023
10242000-12-20  Kazu Hirata  <kazu@hxi.com>
1025
1026	* targets.c: Fix formatting.
1027	* tekhex.c: Likewise.
1028	* trad-core.c: Likewise.
1029
10302000-12-19  Kazu Hirata  <kazu@hxi.com>
1031
1032	* sco5-core.c: Fix formatting.
1033	* section.c: Likewise.
1034	* sparclinux.c: Likewise.
1035	* sparclynx.c: Likewise.
1036	* sparcnetbsd.c: Likewise.
1037	* srec.c: Likewise.
1038	* stabs.c: Likewise.
1039	* stab-syms.c: Likewise.
1040	* sunos.c: Likewise.
1041	* syms.c: Likewise.
1042	* sysdep.h: Likewise.
1043
10442000-12-18  Nick Clifton  <nickc@redhat.com>
1045
1046	* coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1047	defined.
1048	* epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1049	* epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1050
10512000-12-18  Nick Clifton  <nickc@redhat.com>
1052
1053	* vms-misc.c (_bfd_vms_get_record): Add default case to
1054	file_format switch.
1055
10562000-12-15  Miloslav Trmac <mitr@volny.cz>
1057
1058	* elfcore.h (elf_core_file_p): Move to the start of the program
1059	headers before attempting to read them.
1060
10612000-12-14  Kazu Hirata  <kazu@hxi.com>
1062
1063	* peigen.c: Fix formatting.
1064	* som.c: Likewise.
1065	* som.h: Likewise.
1066
10672000-12-13  Kazu Hirata  <kazu@hxi.com>
1068
1069	* peigen.c: Fix formatting.
1070
10712000-12-12  Jim Wilson  <wilson@redhat.com>
1072
1073	*  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1074
10752000-12-08  Mark Salter  <msalter@redhat.com>
1076
1077	* binary.c (binary_set_section_contents): Ignore sections
1078	with zero size.
1079
10802000-12-12  Kazu Hirata  <kazu@hxi.com>
1081
1082	* m68klinux.c: Fix formatting.
1083	* m68knetbsd.c: Likewise.
1084	* mipsbsd.c: Likewise.
1085	* netbsd-core.c: Likewise.
1086	* netbsd.h: Likewise.
1087	* newsos3.c: Likewise.
1088	* nlm32-alpha.c: Likewise.
1089	* nlm32-i386.c: Likewise.
1090	* nlm32-ppc.c: Likewise.
1091	* nlm32-sparc.c: Likewise.
1092	* nlmcode.h: Likewise.
1093	* nlmswap.h: Likewise.
1094	* nlm-target.h: Likewise.
1095	* ns32knetbsd.c: Likewise.
1096
10972000-12-10  Fred Fish  <fnf@be.com>
1098
1099	* elflink.h (elf_link_output_extsym): Don't complain about undefined
1100	symbols in shared objects if allow_shlib_undefined is true.
1101
11022000-12-12  Nick Clifton  <nickc@redhat.com>
1103
1104	* cpu-sh.c: Fix formattng.
1105	* elf.c: Fix formattng.
1106	* elf32-mips.c: Fix formattng.
1107	* elf32-sh.c: Fix formattng.
1108	* elf64-alpha.c: Fix formattng.
1109
11102000-12-09  Nick Clifton  <nickc@redhat.com>
1111
1112	* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1113	dwarf2_find_line_info as last parameter to invocation of
1114	_bfd_dwarf2_find_nearest_line.
1115	* elf32-arm.h (elf32_arm_find_nearest_line): Pass
1116	dwarf2_find_line_info as last parameter to invocation of
1117	_bfd_dwarf2_find_nearest_line.
1118
11192000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
1120
1121	* Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1122	(BFD_LIBS): ...to here.
1123	(BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1124	(BFD_LIBS_CFILES): ...to here.
1125	* Makefile.in: Regenerate.
1126	* configure.in: Remove dwarf.lo from the elf shell variable.
1127	* configure: Regenerate.
1128	* libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1129	* libcoff.h: Regenerate.
1130	* coffgen.c (coff_find_nearest_line): Call
1131	_bfd_dwarf2_find_nearest_line.
1132	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1133	accordingly.
1134	(read_abbrevs): Likewise
1135	(decode_line_info): Likewise.
1136	(parse_comp_unit): Likewise.
1137	(comp_unit_find_nearest_line): Likewise.
1138	* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1139	* libbfd.h: Regenerate.
1140	* elf.c (_bfd_elf_find_nearest_line): Update call.
1141	* elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1142	* dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1143	* coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1144	(sec_to_styp_flags): Use them. Handle DWARF2 sections.
1145	(styp_to_sec_flags): Handle DWARF2 sections.
1146	* elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1147	to _bfd_find_nearest_line.
1148	* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1149	call to _bfd_find_nearest_line.
1150
11512000-12-08  Kazu Hirata  <kazu@hxi.com>
1152
1153	* coffgen.c: Fix formatting.
1154	* elf-m10300.c: Likewise.
1155	* elf32-i386.c: Likewise.
1156	* elf32-i960.c: Likewise.
1157	* elf32-m68k.c: Likewise.
1158	* elf32-mcore.c: Likewise.
1159	* elf32-ppc.c: Likewise.
1160	* elf32-sh.c: Likewise.
1161	* elf32-sparc.c: Likewise.
1162	* elf32-v850.c: Likewise.
1163	* elf64-alpha.c: Likewise.
1164	* elf64-hppa.c: Likewise.
1165	* elf64-mips.c: Likewise.
1166	* elf64-sparc.c: Likewise.
1167
11682000-12-07  Kazu Hirata  <kazu@hxi.com>
1169
1170	* elf32-ppc.c: Fix formatting.
1171	* elf64-x86-64.c: Likewise.
1172
11732000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
1174
1175	From  Ralf Baechle  <ralf@gnu.org>
1176
1177	* elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1178	BFDs containing no sections or empty .text, .data or .bss sections
1179	to be merged, regardless of their flags.
1180
11812000-12-06  Kazu Hirata  <kazu@hxi.com>
1182
1183	* elf32-m32r.c: Fix formatting.
1184	* elf32-m68hc11.c: Likewise.
1185	* elf32-m68hc12.c: Likewise.
1186	* elf32-m68k.c: Likewise.
1187	* elf32-mcore.c: Likewise.
1188	* elf32-pj.c: Likewise.
1189	* elf32-ppc.c: Likewise.
1190
11912000-12-05  Kazu Hirata  <kazu@hxi.com>
1192
1193	* elf32-fr30.c: Fix formatting.
1194	* elf32-hppa.c: Likewise.
1195	* elf32-i370.c: Likewise.
1196	* elf32-i386.c: Likewise.
1197	* elf32-i860.c: Likewise.
1198	* elf32-i960.c: Likewise.
1199
12002000-12-03  Kazu Hirata  <kazu@hxi.com>
1201
1202	* elf32-arm.h: Fix formatting.
1203	* elf32-avr.c: Likewise.
1204	* elf32-cris.c: Likewise.
1205	* elf32-d10v.c: Likewise.
1206	* elf32-d30v.c: Likewise.
1207	* elf-hppa.h: Likewise.
1208	* elf-m10200.c: Likewise.
1209	* elf-m10300.c: Likewise.
1210
12112000-12-01  Chris Demetriou  <cgd@sibyte.com>
1212
1213	* aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1214	bfd_mach_mips32_4k.  Update FIXME comment.
1215	* archures.c (bfd_mach_mips32): New constant.
1216	(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1217	the latter, renumber it.
1218	* bfd-in2.h (bfd_mach_mips32): New constant.
1219	(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1220	the latter, renumber it.
1221	* cpu-mips.c (I_mips32): New constant.
1222	(I_mips4K, I_mips32_4k): Rename the former to the latter.
1223	(arch_info_struct): Add bfd_mach_mips32 entry, replace
1224	bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1225	* elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1226	(elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
1227	with E_MIPS_MACH_MIPS32_4K.
1228	(_bfd_mips_elf_final_write_processing): Replace
1229	bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1230	bfd_mach_mips32 case.
1231	(_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1232	comparison with support for MIPS32.
1233	(_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1234	MIPS32.
1235
1236	* aoutx.h (NAME(aout,machine_type)): Add cases for
1237	bfd_mach_mips5 and bfd_mach_mips64.
1238	* archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1239	* bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1240	* cpu_mips.c (I_mips5, I_mips64): New definitions.
1241	(arch_info_struct): Add entries for bfd_mach_mips5 and
1242	bfd_mach_mips64.
1243	* elf32-mips.c (elf_mips_isa, elf_mips_mach,
1244	_bfd_mips_elf_print_private_bfd_data): Add cases for
1245	E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1246	(_bfd_mips_elf_final_write_processing): Add cases for
1247	bfd_mach_mips5 and bfd_mach_mips64.
1248
1249	* bfd/aoutx.h (NAME(aout,machine_type)): Add a
1250	bfd_mach_mips_sb1 case.
1251	* bfd/archures.c (bfd_mach_mips_sb1): New constant.
1252	* bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
1253	* bfd/cpu-mips.c (I_sb1): New constant.
1254	(arch_info_struct): Add entry for bfd_mach_mips_sb1.
1255	* bfd/elf32-mips.c (elf_mips_mach): Add case for
1256	E_MIPS_MACH_SB1.
1257	(_bfd_mips_elf_final_write_processing): Add case for
1258	bfd_mach_mips_sb1.
1259
12602000-12-01  Joel Sherrill <joel@OARcorp.com>
1261
1262	* config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1263	(sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1264	(sparc*-*-rtems*): Switched from a.out to ELF.
1265
12662000-11-30  Jan Hubicka  <jh@suse.cz>
1267
1268	* Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1269	BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1270	(elf64-x86-64.lo): Add dependencies.
1271	* archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1272	bfd_mach_x86_64_intel_syntax.
1273	* elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1274	* config.bfd (x86_64): Add.
1275	* configure.in: Add support for bfd_elf64_x86_64_vec.
1276	* cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1277	(bfd_i386_arch, i8086_ar): Link in.
1278	* elf64-x86-64.c: New file.
1279	* reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1280	* targets.c (bfd_elf64_x86_64_vec): Add.
1281	(bfd_target_vect): Add bfd_elf64_x86_64_vec.
1282
12832000-11-30  Kazu Hirata  <kazu@hxi.com>
1284
1285	* xcofflink.c: Fix formatting.
1286
12872000-11-28  Kazu Hirata  <kazu@hxi.com>
1288
1289	* aoutx.h: Fix formatting.
1290	* bfd-in.h: Likewise.
1291	* bfd-in2.h: Likewise.
1292	* cache.c: Likewise.
1293	* cisco-core.c: Likewise.
1294	* coff64-rs6000.c: Likewise.
1295	* coffcode.h: Likewise.
1296	* coffswap.h: Likewise.
1297	* corefile.c: Likewise.
1298	* elf32-mips.c: Likewise.
1299
13002000-11-27  Kazu Hirata  <kazu@hxi.com>
1301
1302	* aout-adobe.c: Fix formatting.
1303	* coff64-rs6000.c: Likewise.
1304	* coffgen.c: Likewise.
1305	* cofflink.c: Likewise.
1306
13072000-11-27  Philip Blundell  <pb@futuretv.com>
1308
1309	* libcoff-in.h (coff_tdata): Add `strings_written' flag.
1310	(obj_coff_strings_written): New accessor macro for above.
1311	* libcoff.h: Regenerate.
1312	* cofflink.c (_bfd_coff_final_link): Say that we wrote the
1313	strings.
1314	* coffcode.h (coff_write_object_contents): No need to write out
1315	the string table if it's already been done.
1316
13172000-11-22  Philip Blundell  <pb@futuretv.com>
1318
1319	* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1320	weak undefined symbols.
1321
13222000-11-24  Nick Clifton  <nickc@redhat.com>
1323
1324	* archures.c (bfd_mach_arm_5TE): Define.
1325	(bfd_mach_arm+XScale): Define.
1326	* bfd-in2.h: Regenerate.
1327
1328	* coff-arm.c (coff_arm_reloc_type_lookup): Accept
1329	BFD_RELOC_ARM_PCREL_BLX.
1330
1331	* coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1332	XScale machine numbers.
1333
1334	* config.bfd (xscale-elf): Add target.
1335	(xscale-coff): Add target.
1336
1337	* cpu-arm.c: Add xscale machine name.
1338	Add v5t, v5te and XScale machine numbers.
1339
13402000-11-23  Kazu Hirata  <kazu@hxi.com>
1341
1342	* aix386-core.c: Fix formatting.
1343
13442000-11-22  Jim Wilson  <wilson@redhat.com>
1345
1346	* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1347	(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1348	* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1349	(ins_imms_scaled): Initialize sign_bit at function entry.
1350	(elf64_ia64_operands): Add missing initializers.
1351	* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1352	elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1353	elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1354	elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1355	elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1356	parameters.
1357	(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1358	and free_extsyms at function entry.
1359	(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1360	(elfNN_ia64_create_dynamic_sections): Delete unused local h.
1361	(get_got): Delete unused local srel.
1362	(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1363	(elfNN_ia64_relocate_section): Delete unused local dynindx.
1364
13652000-11-21  Kazu Hirata  <kazu@hxi.com>
1366
1367	* coff-a29k.c: Fix formatting.
1368	* coff-h8500.c: Likewise.
1369	* coff-i960.c: Likewise.
1370	* coff-ppc.c: Likewise.
1371	* coff-rs6000.c: Likewise.
1372	* coff-stgo32.c: Likewise.
1373	* coff-tic54x.c: Likewise.
1374	* coff-w65.c: Likewise.
1375	* cpu-h8500.c: Likewise.
1376	* cpu-hppa.c: Likewise.
1377	* cpu-ns32k.c: Likewise.
1378	* ecoff.c: Likewise.
1379	* ecofflink.c: Likewise.
1380
13812000-11-21  Nick Clifton  <nickc@redhat.com>
1382
1383	* elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1384	remove possibility of infinite loop.
1385
13862000-11-20  Kazu Hirata  <kazu@hxi.com>
1387
1388	* aix386-core.c: Fix formatting.
1389	* aout-adobe.c: Likewise.
1390	* aout-arm.c: Likewise.
1391	* aout-encap.c: Likewise.
1392	* aout-ns32k.c: Likewise.
1393	* aout-target.h: Likewise.
1394	* aout-tic30.c: Likewise.
1395	* aoutf1.h: Likewise.
1396	* aoutx.h: Likewise.
1397	* archive.c: Likewise.
1398	* bfd-in.h: Likewise.
1399	* bfd-in2.h: Likewise.
1400	* bfd.c: Likewise.
1401	* bout.c: Likewise.
1402
14032000-11-17  H.J. Lu  <hjl@gnu.org>
1404
1405	* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1406	pltoff entries for DT_INIT and DT_FINI.
1407	(elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1408	(elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1409	entries.
1410
14112000-11-16  Richard Henderson  <rth@redhat.com>
1412
1413	* elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1414	(allocate_dynrel_entries): Likewise.
1415	(elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
1416	(set_pltoff_entry): Likewise.
1417	(ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1418	(elfNN_ia64_reloc_type_lookup): Likewise.
1419	(elfNN_ia64_install_value): Likewise.
1420	(elfNN_ia64_relocate_section): Likewise.
1421	* reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1422	(BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1423
14242000-11-16  Kazu Hirata  <kazu@hxi.com>
1425
1426	* cpu-a29k.c: Fix formatting.
1427	* cpu-alpha.c: Likewise.
1428	* cpu-arm.c: Likewise.
1429	* cpu-avr.c: Likewise.
1430	* cpu-d10v.c: Likewise.
1431	* cpu-h8500.c: Likewise.
1432	* cpu-hppa.c: Likewise.
1433	* cpu-i370.c: Likewise.
1434	* cpu-i386.c: Likewise.
1435	* cpu-i960.c: Likewise.
1436	* cpu-ia64-opc.c: Likewise.
1437	* cpu-ia64.c: Likewise.
1438	* cpu-m32r.c: Likewise.
1439	* cpu-m68hc11.c: Likewise.
1440	* cpu-m68hc12.c: Likewise.
1441	* cpu-m68k.c: Likewise.
1442	* cpu-m88k.c: Likewise.
1443	* cpu-mips.c: Likewise.
1444	* cpu-ns32k.c: Likewise.
1445	* cpu-pj.c: Likewise.
1446	* cpu-powerpc.c: Likewise.
1447	* cpu-sh.c: Likewise.
1448	* cpu-sparc.c: Likewise.
1449	* cpu-tic54x.c: Likewise.
1450	* cpu-v850.c: Likewise.
1451	* cpu-vax.c: Likewise.
1452	* cpu-w65.c: Likewise.
1453	* cpu-we32k.c: Likewise.
1454	* cpu-z8k.c: Likewise.
1455	* dwarf1.c: Likewise.
1456	* dwarf2.c: Likewise.
1457
14582000-11-15  Kazu Hirata  <kazu@hxi.com>
1459
1460	* coff-arm.c: Fix formatting.
1461	* coff-ppc.c: Likewise.
1462	* coff-rs6000.c: Likewise.
1463	* coff-sh.c: Likewise.
1464	* coff-sparc.c: Likewise.
1465	* coff-tic30.c: Likewise.
1466	* coff-tic54x.c: Likewise.
1467	* coff-tic80.c: Likewise.
1468	* coff-w65.c: Likewise.
1469	* coff-we32k.c: Likewise.
1470	* coff-z8k.c: Likewise.
1471
14722000-11-15  Richard Henderson  <rth@redhat.com>
1473
1474	* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1475	section with the same ALLOC|LOAD flags as the source section.
1476
14772000-11-14  Jakub Jelinek  <jakub@redhat.com>
1478
1479	* elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1480	by STO_ALPHA constants.
1481
14822000-11-14  Kazu Hirata  <kazu@hxi.com>
1483
1484	* coff-pmac.c: Fix formatting.
1485	* coff-ppc.c: Likewise.
1486
14872000-11-13  H.J. Lu  <hjl@gnu.org>
1488
1489	* elflink.h (elf_link_add_object_symbols): Also add indirect
1490	symbols for common symbols with the default version.
1491
14922000-11-09  Philip Blundell  <pb@futuretv.com>
1493
1494	* section.c (STD_SECTION): Set gc_mark flag.
1495
14962000-11-11  Kazu Hirata  <kazu@hxi.com>
1497
1498	* coff-i960.c: Likewise.
1499	* coff-m68k.c: Likewise.
1500	* coff-m88k.c: Likewise.
1501	* coff-mcore.c: Likewise.
1502	* coff-mips.c: Likewise.
1503
15042000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
1505
1506	* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1507
15082000-11-10  Kazu Hirata  <kazu@hxi.com>
1509
1510	* coff-h8300.c: Fix formatting.
1511	* coff-h8500.c: Likewise.
1512	* coff-i386.c: Likewise.
1513	* coff-i860.c: Likewise.
1514	* coff-i960.c: Likewise.
1515	* coff-ia64.c: Likewise.
1516
15172000-11-09  Kazu Hirata  <kazu@hxi.com>
1518
1519	* archive.c: Fix formatting.
1520	* archures.c: Likewise.
1521
15222000-11-07  Richard Henderson  <rth@redhat.com>
1523
1524	* elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1525	Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
1526	* section.c (bfd_set_section_contents): Call memcpy if
1527	section->contents set and location not equal to contents plus offset.
1528
15292000-11-08  Kazu Hirata  <kazu@hxi.com>
1530
1531	* bfd-in.h: Fix formatting.
1532	* bfd-in2.h: Likewise.
1533	* bfd.c: Likewise.
1534	* binary.c: Likewise.
1535	* bout.c: Likewise.
1536	* coff-a29k.c: Likewise.
1537	* coff-alpha.c: Likewise.
1538	* coff-apollo.c: Likewise.
1539	* coff-aux.c: Likewise.
1540
15412000-11-07  Kazu Hirata  <kazu@hxi.com>
1542
1543	* aix386-core.c: Fix formatting.
1544	* aoutf1.h: Likewise.
1545	* aoutx.h: Likewise.
1546	* archures.c: Likewise.
1547	* armnetbsd.c: Likewise.
1548
15492000-11-07  Alan Modra  <alan@linuxcare.com.au>
1550
1551	* coff-h8300.c (special): Adjust reloc address.
1552
15532000-11-06  Steve Ellcey <sje@cup.hp.com>
1554
1555	* archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1556	to differentiate elf32 and elf64 on ia64.
1557	* bfd-in2.h: Regenerate.
1558	* config.bfd: Add target for "ia64*-*-hpux*".
1559	* configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1560	* configure: Regenerate.
1561	* cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1562	* targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1563
1564	* Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1565	from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
1566	* Makefile.in: Regnerate.
1567	* elf64-ia64.c: Deleted.
1568	* elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1569
15702000-11-06  Kazu Hirata  <kazu@hxi.com>
1571
1572	* aout-adobe.c: Fix formatting.
1573	* aout-arm.c: Likewise.
1574	* aout-cris.c: Likewise.
1575	* aout-encap.c: Likewise.
1576	* aout-ns32k.c: Likewise.
1577	* aout-target.h: Likewise.
1578	* aout-tic30.c: Likewise.
1579
15802000-11-05  Philip Blundell  <philb@gnu.org>
1581
1582	* elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1583	BFDs containing no sections to be merged, regardless of their flags.
1584
15852000-11-04  Philip Blundell  <philb@gnu.org>
1586
1587	* elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1588	if a relocation for an undefined symbol also results in an
1589	overflow.
1590
15912000-11-06  Christopher Faylor <cgf@cygnus.com>
1592
1593	* config.bfd: Add support for Sun Chorus.
1594
15952000-11-05  David O'Brien  <obrien@FreeBSD.org>
1596
1597	* configure.in: Recognize alpha-*-freebsd*.
1598	* configure: Regenerate.
1599
16002000-11-02  Luciano Gemme <ishitawa@yahoo.com>
1601
1602	* srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1603	(Chunk): New global variable set by a parameter in objcopy.c.
1604	(S3Forced): New global variable set by a parameter in
1605	objcopy.c.
1606	(srec_set_section_contents): If S3Forced is true, always generate
1607	S3 records.
1608	(srec_write_section): Use 'Chunk' to limit maximum length of S
1609	records.
1610
16112000-11-02  Per Lundberg  <plundis@chaosdev.org>
1612
1613	* config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1614	* Makefile.in: Regenerate.
1615	* bfd-in2.h: Regenerate.
1616	* po/bfd.pot: Regenerate.
1617
16182000-10-31  Philip Blundell  <philb@gnu.org>
1619
1620	* elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1621	EF_SOFT_FLOAT if it is defined.
1622
16232000-10-27  Philip Blundell  <philb@gnu.org>
1624
1625	* elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1626	attempts to mix PIC code with non-PIC, just mark the output as
1627	being position dependent.
1628	(elf32_arm_merge_private_bfd_data): Likewise.  Print an error
1629	message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
1630	all mismatches, not just the first one.
1631
16322000-10-25  Chris Demetriou  <cgd@sibyte.com>
1633
1634	* ieee.c (ieee_archive_p): Plug one of many possible
1635	memory leaks in error handling.
1636
16372000-10-20  Jakub Jelinek  <jakub@redhat.com>
1638
1639	* elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1640	elf32_sparc_object_p, elf32_sparc_final_write_processing):
1641	Support v8plusb.
1642	* elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1643	sparc64_elf_object_p): Support v9b.
1644	* archures.c: Declare v8plusb and v9b machines.
1645	* bfd-in2.h: Ditto.
1646	* cpu-sparc.c: Ditto.
1647
16482000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
1649
1650	* elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1651	of a GOT reloc.
1652
1653	* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1654	(SYMBOL_CALLS_LOCAL): New macro.
1655	(ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1656	(ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1657	(ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1658	(ppc_elf_relocate_section): Use flag variable to determine
1659	whether the relocation refers to a local symbol.
1660	Test whether a PLTREL24 reloc will produce a reloc by looking
1661	to see whether a PLT entry was made.
1662
16632000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
1664
1665	* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1666	entries that could serve as a definition for a weak symbol.
1667
16682000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
1669
1670	From  Ralf Baechle  <ralf@gnu.org>
1671
1672	* elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1673	local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
1674	against local symbols.
1675	(_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1676
16772000-10-12  Alan Modra  <alan@linuxcare.com.au>
1678
1679	* section.c (struct sec): Add kept_section.
1680	(struct bfd_comdat_info): Remove sec, we can use above.
1681	(STD_SECTION): Add initializer.
1682	(bfd_make_section_anyway): Init here too.
1683
1684	* bfd-in2.h: Regenerate.
1685
1686	* elflink.h (elf_link_add_object_symbols): Remove unnecessary
1687	zeroing of `flags'.
1688	(elf_link_input_bfd): Set all asection->symbol->value's here, and
1689	fudge values for discarded link-once section symbols.
1690
1691	* elf64-hppa.c: Include alloca-conf.h
1692
16932000-10-11  Alan Modra  <alan@linuxcare.com.au>
1694
1695	* elf.c (swap_out_syms): Revert 2000-10-07 changes.
1696
1697	* ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1698
16992000-10-10  Alan Modra  <alan@linuxcare.com.au>
1700
1701	* ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1702
17032000-10-10  Tom Rix <trix@redhat.com>
1704
1705	* section.c (bfd_make_section_anyway): Release newsect ptr when
1706	newsect->symbol fails to alloc.  Use bfd_release instead of free.
1707
17082000-10-09  Richard Henderson  <rth@cygnus.com
1709
1710	* elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1711	(elf64_ia64_unwind_entry_compare): New.
1712	(elf64_ia64_final_link): Sort the .IA_64.unwind section.
1713
17142000-10-07  Alan Modra  <alan@linuxcare.com.au>
1715
1716	* elflink.h (size_dynamic_sections): Don't create various tags if
1717	.dynstr is excluded from the link.  Don't set first dynsym entry
1718	if dynsymcount is zero.
1719	(elf_bfd_final_link): Don't try to swap out dynamic syms if
1720	.dynsym excluded from the link.  Don't try to write any dynamic
1721	sections excluded from the link.
1722
1723	* elf.c (swap_out_syms): Handle global section symbols.
1724
17252000-10-05  DJ Delorie  <dj@redhat.com>
1726
1727	* peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1728	* coffcode.h (coff_set_alignment_hook): read extended reloc count
1729	(coff_write_relocs): write extended reloc count
1730	(coff_write_object_contents): account for extended relocs
1731
17322000-10-05  Jim Wilson  <wilson@cygnus.com>
1733
1734	* elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1735	field.
1736	* elf.c (_bfd_elf_make_section_from_shdr): Call the
1737	elf_backend_section_flags function.
1738	* elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1739	code.
1740	(elf64_ia64_section_flags): New function containing flag conversion
1741	code.
1742	(elf_backend_section_flags): Define to elf64_ia64_section_flags.
1743	* elfxx-target.h (elf_backend_section_flags): Define.
1744	(elfNN_bed): Initialize elf_backend_section_flags field.
1745
17462000-10-02  Alan Modra  <alan@linuxcare.com.au>
1747
1748	* elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1749	_bfd_elf32_gc_record_vtable.  Correct a comment.
1750
17512000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
1752
1753	From  Ralf Baechle  <ralf@gnu.org>
1754
1755	* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1756	produces binaries with got[1] = 0x80000001 to differenciate them
1757	for the dynamic linker from the broken binaries produced by old
1758	versions.
1759
17602000-09-30  Petr Sorfa <petrs@sco.com>
1761
1762	* elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1763	(elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1764	* configure.in: Add check for pxstatus_t and lwpxstatus_t.
1765	* configure: Regenerate.
1766
17672000-09-27  Hans-Peter Nilsson  <hp@axis.com>
1768
1769	Define two bfd_targets for absence and presence of leading
1770	underscore on symbols.  Make sure to only link same kind.
1771	* elf32-cris.c (cris_elf_object_p,
1772	cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1773	cris_elf_merge_private_bfd_data): New.
1774	(elf_backend_object_p, elf_backend_final_write_processing,
1775	bfd_elf32_bfd_print_private_bfd_data,
1776	bfd_elf32_bfd_merge_private_bfd_data): Define.
1777	<Target vector definition>: Include elf32-target.h twice with
1778	different macro settings:
1779	(TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1780	bfd_elf32_us_cris_vec.
1781	(TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1782	(elf_symbol_leading_char): First as 0, then '_'.
1783	(INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1784	* config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1785	* configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1786	* configure: Regenerate.
1787	* targets.c: Declare bfd_elf32_us_cris_vec.
1788	* po/bfd.pot: Regenerate.
1789
17902000-09-29  Momchil Velikov  <velco@fadata.bg>
1791
1792	* elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1793	R_ARM_THM_PC22 relocations.
1794
17952000-09-29  NIIBE Yutaka <gniibe@chroot.org>
1796
1797	* elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1798
17992000-09-29  Momchil Velikov <velco@fadata.bg>
1800
1801	* elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1802	is has the SEC_HAS_CONTENTS flag set.
1803
18042000-09-28  �rjan Friberg  <orjanf@axis.com>
1805	    Hans-Peter Nilsson  <hp@axis.com>
1806
1807	* aout-cris.c (N_TXTADDR): Define.
1808
18092000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
1810
1811	* som.c: Include alloca-conf.h.
1812	* Makefile.am: "make dep-am"
1813	* Makefile.in: Regenerate.
1814
18152000-09-27  Alan Modra  <alan@linuxcare.com.au>
1816
1817	* elf32-hppa.c (plt_stub): New.
1818	(PLT_STUB_ENTRY): Define.
1819	(elf32_hppa_link_hash_table): Change multi_subspace to packed
1820	boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1821	(elf32_hppa_link_hash_table_create): Init to suit.
1822	(elf32_hppa_check_relocs): Set has_12bit_branch and
1823	has_17bit_branch as appropriate.
1824	(elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1825	non-local functions.
1826	(elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1827	Add space for plt_stub as needed.
1828	(elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1829	functions at plt_stub.
1830	(elf32_hppa_finish_dynamic_sections): Write plt_stub.
1831	(elf32_hppa_create_dynamic_sections): Leave .plt executable.
1832
1833	* elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1834	* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
1835	of fixed size, and if negative, disable handling of input sections
1836	before stub section.  Set up default stub group size depending
1837	on detected branch relocs.
1838	(hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1839	ensure different offsets from sym_value aren't rounded to
1840	different 2k blocks.  Use lrsel and rrsel for other stubs too for
1841	consistency rather than necessity.
1842	(elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1843	(final_link_relocate): Likewise.
1844	(elf32_hppa_relocate_section): Likewise.
1845
1846	* elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1847	(_bfd_elf_hppa_gen_reloc_type): Generate them.
1848	(elf_hppa_final_link_relocate): Handle them.
1849	(elf_hppa_relocate_insn): Likewise.
1850	(_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1851
18522000-09-26  Hans-Peter Nilsson  <hp@axis.com>
1853
1854	* elfcode.h (elf_object_p): Preserve and clear abfd section
1855	information.  Restore at error.
1856
18572000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1858
1859	* peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1860	is empty, make sure that its rva also 0. NT loader dislikes
1861	having otherwise.
1862
18632000-09-26  Steve Ellcey <sje@cup.hp.com>
1864
1865	* som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1866	global by default.
1867
18682000-09-21  Alan Modra  <alan@linuxcare.com.au>
1869
1870	* elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1871	currently unused RELATIVE_DYNAMIC_RELOCS code.
1872	(hppa_discard_copies): Likewise.
1873	(elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
1874	comments.  Don't check non-code output sections for stub grouping.
1875
18762000-09-20  Alan Modra  <alan@linuxcare.com.au>
1877
1878	* section.c (bfd_get_unique_section_name): Return NULL if
1879	bfd_malloc fails.
1880
18812000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1882
1883	* elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1884	instruction sequence to actually work.
1885	(elf_m68k_finish_dynamic_sections): Change the patch-in offset
1886	accordingly.
1887
18882000-09-18  Alexandre Oliva  <aoliva@redhat.com>
1889
1890	* elf32-sh.c (sh_elf_relocate_section): Use
1891	_bfd_final_link_relocate to apply the relocation against a section
1892	symbol, when doing relocatable links.
1893
18942000-09-18  Alan Modra  <alan@linuxcare.com.au>
1895
1896	* elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1897	to id_sec.
1898	(stub_hash_newfunc): Here too.
1899	(hppa_add_stub): And here.
1900	(elf32_hppa_link_hash_table): Remove stub_section_created,
1901	reloc_section_created, first_init_sec and first_fini_sec.  Add
1902	stub_group.
1903	(elf32_hppa_link_hash_table_create): Init to suit.
1904	(hppa_get_stub_entry): Add support for grouping stub sections.
1905	(hppa_add_stub): Likewise.  Remove sec_count param and init/fini
1906	section code.  Index stub vars by section->id.
1907	(elf32_hppa_size_stubs): Likewise.  Remove duplicated function
1908	exit paths.  Zap allocation of above removed vars.  Refine
1909	link-once test.
1910
1911	* elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1912	* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1913	(hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1914	rather than pointer to bfd_link_info.
1915	(hppa_add_stub): Likewise.
1916	(final_link_relocate): Likewise.
1917
19182000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
1919
1920	(elf32_hppa_size_stubs): Don't try to build stubs for discarded
1921	link-once sections.
1922
19232000-09-16  Alexandre Oliva  <aoliva@redhat.com>
1924
1925	* elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1926	ld/emulparams/shelf.sh.
1927
19282000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1929
1930	* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1931	* bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1932	* bfd-in2.h: Regenerate.
1933
19342000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
1935
1936	* bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1937	LITUSE relocations incorrectly if -relax is specified on the ld
1938	command line and the displacement field of the load or store
1939	instruction is non-zero. (Patch by paul.winalski@compaq.com)
1940
19412000-09-15  Alan Modra  <alan@linuxcare.com.au>
1942
1943	* elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1944	first_fini_sec here.
1945	(elf32_hppa_size_stubs): Instead correctly find the first .init
1946	and .fini section here.
1947
19482000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
1949
1950	* elf32-hppa.c (clobber_millicode_symbols): New function.
1951	(elf32_hppa_size_dynamic_sections): Call it.
1952
19532000-09-14  Alan Modra  <alan@linuxcare.com.au>
1954
1955	* elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1956	packed.  Add plabel, plt_abs packed booleans.
1957	(hppa_link_hash_newfunc): Init new fields.
1958	(PLABEL_PLT_ENTRY_SIZE): Define.
1959	(hppa_stub_name): Use size_t len vars.
1960	(hppa_add_stub): Likewise.
1961	(elf32_hppa_build_stubs): Likewise.
1962	(hppa_build_one_stub): Kill some compiler warnings.
1963	(elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1964	if dynamic linking.  Munge the local plt offsets into
1965	local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
1966	size_t len vars.  Add assert for plabel addend.
1967	(elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1968	(elf32_hppa_hide_symbol): New function.
1969	(elf_backend_hide_symbol): Define.
1970	(elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1971	with h->plabel set.  Don't make plt entries to have dynamic syms
1972	when they have been forced local.  If plt entry is used by a
1973	plabel, make it PLABEL_PLT_ENTRY_SIZE.
1974	(elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1975	Set up .plt offsets for local syms.
1976	(elf32_hppa_relocate_section): Initialise plt entries for local
1977	syms.  Leave weak undefined plabels zero.  Make global plabel
1978	relocs against function symbol, and leave the addend zero.
1979	Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1980	(elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1981	non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
1982	relocs instead of SEGREL32 for dynamic got relocs.
1983	(elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1984	(elf_backend_got_header_size): Adjust.
1985	(elf32_hppa_set_gp): Calculate an "ideal" LTP.
1986
1987	* elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1988	(hppa_type_of_stub): Use it instead of #if 0
1989	(hppa_discard_copies): Use it here too.
1990	(elf32_hppa_size_dynamic_sections): And here.
1991
1992	* elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1993	(elf32_hppa_link_hash_table_create): And here.
1994	(hppa_build_one_stub): And here.  Instead keep track of stub
1995	offset using _raw_size.
1996	(elf32_hppa_size_stubs): Likewise.
1997	(elf32_hppa_build_stubs): Likewise.
1998	(hppa_size_one_stub): Likewise.  Resize reloc section too.
1999
2000	* elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2001	first_fini_sec handling.  Don't search for reloc section or set
2002	hplink->reloc_section_created here.
2003	(elf32_hppa_size_stubs): Instead search for reloc sections, and
2004	set reloc_section_created here.
2005	(hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2006	(elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2007	and DT_FINI.
2008	(elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2009
2010	* elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2011	with `hplink->root.'.
2012	(elf32_hppa_check_relocs): Likewise.
2013	(elf32_hppa_gc_sweep_hook): Likewise.
2014	(elf32_hppa_adjust_dynamic_symbol): Likewise.
2015	(hppa_handle_PIC_calls): Likewise.
2016	(elf32_hppa_size_dynamic_sections): Likewise.
2017	(elf32_hppa_set_gp): Likewise.
2018	(elf32_hppa_relocate_section): Likewise.
2019	(elf32_hppa_finish_dynamic_symbol): Likewise.
2020	(elf32_hppa_finish_dynamic_sections): Likewise.
2021
2022	From  David Huggins-Daines  <dhd@linuxcare.com>
2023	* elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2024	defined weak symbols in shared links.
2025	(final_link_relocate): Calls to defined weak symbols in shared
2026	objects must go via import stubs, as the target might not be known
2027	at link time.
2028
20292000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2030
2031	* elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2032	R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2033	R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
2034	the original entries with EMPTY_HOWTOs, and added new ones to fill
2035	in the gap.
2036	(sh_elf_info_to_howto): Make sure the new gap isn't used.
2037	(sh_elf_relocate_section): Likewise.
2038
20392000-09-13  Anders Norlander  <anorland@acc.umu.se>
2040
2041	* cpu-mips.c (arch_info_struct): Add mips:4K
2042	* bfd-in2.h (bfd_mach_mips4K): New define.
2043	* archures.c: Add bfd_mach_mips4K to comment.
2044	* elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2045	E_MIPS_ARCH_2 for bfd_mach_mips4K.
2046
20472000-09-13  Marco Franzen <marcof@thyron.com>
2048
2049	* som.c (som_write_symbol_strings): Do not used fixed buffers,
2050	use size_t as a counter.
2051	(som_write_space_strings): Similarly.
2052
20532000-09-12  Jason Eckhardt  <jle@cygnus.com>
2054
2055	* elf32-i860.c (elf32_i860_relocate_pc26): New function
2056	and prototype.
2057	(elf32_i860_relocate_section): Invoke new function from here.
2058
20592000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2060
2061	* elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2062	static.
2063
20642000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2065
2066	* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2067	target section name instead of dumping core when the target symbol is
2068	undefined.
2069
20702000-09-09  Kazu Hirata  <kazu@hxi.com>
2071
2072	* riscix.c: Remove DEFUN.
2073
20742000-09-08  Nick Clifton  <nickc@redhat.com>
2075
2076	* elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2077	initialise flags in output bfd if the input bfd is the default
2078	architecture with the default flags.
2079
20802000-09-08  Kazu Hirata  <kazu@hxi.com>
2081
2082	* archive.c: Fix formatting.
2083	* coff-arm.c: Likewise.
2084	* doc/chew.c: Likewise.
2085
20862000-09-08  Alan Modra  <alan@linuxcare.com.au>
2087
2088	* section.c (bfd_get_unique_section_name): Put a dot before the
2089	numeric suffix.
2090
20912000-09-07  Kazu Hirata  <kazu@hxi.com>
2092
2093	* doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2094	* elf.c: Fix formatting.
2095
20962000-09-07  Alexandre Oliva  <aoliva@redhat.com>
2097
2098	* config.bfd (sh-*-linux*): Added.
2099	* configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2100	* targets.c: Declare them.
2101	* elf32-sh-lin.c: New file.
2102	* Makefile.am: Compile it.
2103	* elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2104	* configure, Makefile.in: Rebuilt.
2105
21062000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
2107
2108	* xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2109	pseduo-section when determining where the TOC ends.
2110
2111	* coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2112	output x_tvndx as it is only two bytes wide.
2113
2114	* coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2115	reloc is 26 or 32 bits wide.
2116
2117	* coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2118	for relocs that don't change anything.  Also look at the full
2119	6 bits of bitsize.
2120
21212000-09-06  Philip Blundell  <philb@gnu.org>
2122
2123	* config.bfd (arm*-*-uclinux*): New target.
2124
21252000-09-06  Alexandre Oliva  <aoliva@redhat.com>
2126
2127	* configure: Rebuilt with new libtool.m4.
2128
21292000-09-06  Alan Modra  <alan@linuxcare.com.au>
2130
2131	* section.c (bfd_get_unique_section_name): Avoid c++ reserved
2132	word for variable name.
2133	* bfd-in2.h: Regenerate.
2134
21352000-09-05  Nick Clifton  <nickc@redhat.com>
2136
2137	* config.in: Regenerate.
2138	* libbfd.h: Regenerate.
2139	* po/bfd.pot: Regenerate.
2140	* doc/bfdint.texi: Remove CVS date string - it foils compares with
2141	local versions.
2142
21432000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
2144
2145	* cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
2146
21472000-09-05  Alan Modra  <alan@linuxcare.com.au>
2148
2149	Shared library and PIC support.
2150	* elf32-hppa.c (PLT_ENTRY_SIZE): New.
2151	(GOT_ENTRY_SIZE): New.
2152	(ELF_DYNAMIC_INTERPRETER): New.
2153	(STUB_SUFFIX): Define.
2154	(LONG_BRANCH_PIC_IN_SHLIB): Define.
2155	(RELATIVE_DYNAMIC_RELOCS): Define.
2156	(enum elf32_hppa_stub_type): New.
2157	(struct elf32_hppa_stub_hash_entry): Rename offset to
2158	stub_offset.  Add a number of new fields.
2159	(struct elf32_hppa_link_hash_entry): New.
2160	(struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
2161	global_value.
2162	(elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2163	(elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2164	(elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
2165	new fields.
2166	(hppa_link_hash_newfunc): New function.
2167	(elf32_hppa_link_hash_table_create): Use above function. Init new
2168	fields.
2169	(elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
2170	instead of addend, and remove sym_name from args.  Don't use
2171	symbol name for local syms, instead use sym index.
2172	(elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2173	stub type rather than size.  Pass in hash and handle import stub
2174	case.  Also pass in reloc instead of offset so we can calculate
2175	PCREL22F and PCREL12F branches properly.
2176	(elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
2177	import and export stubs too.
2178	(elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
2179	import and export stub sizing.
2180	(elf32_hppa_check_relocs): New function.
2181	(elf32_hppa_adjust_dynamic_symbol): New function.
2182	(hppa_discard_copies): New function.
2183	(elf32_hppa_size_dynamic_sections): New function.
2184	(elf_backend_size_dynamic_sections): Define.
2185	(elf32_hppa_finish_dynamic_symbol): New function.
2186	(elf_backend_finish_dynamic_symbol): Define.
2187	(elf32_hppa_size_stubs): Stash params in link hash table, and move
2188	some local vars into the link hash table too.  For shared links,
2189	trundle over function syms, generating export stubs.  Handle
2190	PCREL22F branches.  Break out stub creation code from here..
2191	(hppa_add_stub): .. to here.  New function.
2192	(elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2193	call the bfd linker.  Use elf_gp to record global pointer.
2194	Calculate a value from sections if $global$ is missing.
2195	(bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2196	(elf32_hppa_gc_mark_hook): New function.
2197	(elf_backend_gc_mark_hook): Define.
2198	(elf32_hppa_gc_sweep_hook): New function.
2199	(elf_backend_gc_sweep_hook): Define.
2200	(elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2201	Add rel to args, and remove howto, input_bfd, offset, addend,
2202	sym_name as we can recalculate these locally.  Handle calls to
2203	dynamic objects, extra PIC relocs, PCREL22F branches.  Change
2204	handling of undefined weak syms.  Check that stubs are in range.
2205	Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
2206	message on hitting a DPREL21L reloc that needs fixing.  Subtract
2207	off PC for PCREL14F.  Break out code that does a stub lookup from
2208	here..
2209	(hppa_get_stub_entry): ..to here.  New function.
2210	(elf32_hppa_relocate_insn): Merge into final_link_relocate.
2211	(elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2212	relocs, etc. etc.
2213	(elf32_hppa_finish_dynamic_sections): New function.
2214	(elf_backend_finish_dynamic_sections): Define.
2215	(elf_backend_final_write_processing) Define.
2216	(hppa_handle_PIC_calls): New function.
2217	(elf32_hppa_build_stubs): Call it.  Pass link_info to
2218	hppa_build_one_stub.
2219	(elf32_hppa_create_dynamic_sections): New function
2220	to create .plt and .got then set .plt flags correctly.
2221	(elf_backend_create_dynamic_sections): Define.
2222	(elf32_hppa_object_p): New function.
2223	(elf_backend_object_p): Define.
2224	(elf32_hppa_elf_get_symbol_type): New function.
2225	(elf_backend_get_symbol_type): Define.
2226	(elf_backend_can_gc_sections): Define.
2227	(elf_backend_want_got_plt): Define.
2228	(elf_backend_plt_alignment): Set to 2.
2229	(elf_backend_plt_readonly): Define.
2230	(elf_backend_want_plt_sym): Define.
2231	(elf_backend_got_header_size): Reserve one entry.
2232
2233	* elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2234	(elf32_hppa_size_stubs): Pass in multi_subspace.
2235	(elf32_hppa_set_gp): Declare.
2236
2237	* section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2238	(bfd_get_unique_section_name): New function.
2239	* bfd_in2.h: Regenerate.
2240
2241	* elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2242	(elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2243	comment.
2244
2245	From  David Huggins-Daines  <dhd@linuxcare.com>
2246	* elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2247	(elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2248	(elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2249	been updated in finish_dynamic_symbol before modifying function
2250	symbol.
2251
2252	* elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2253	eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
2254	R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2255	(_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
2256	comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
2257	(elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2258	(elf_hppa_relocate_insn): Likewise.  Reformat some comments.
2259	(elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2260
2261	From David Huggins-Daines  <dhd@linuxcare.com>
2262	* elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2263	style of local labels as well.
2264
22652000-09-03  Philip Blundell  <philb@gnu.org>
2266
2267	* elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2268	references to undefined symbols in debugging sections.
2269
22702000-09-02  H.J. Lu  <hjl@gnu.org>
2271
2272	* reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2273	BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2274	BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2275	section.
2276
22772000-09-02  Jason Eckhardt  <jle@cygnus.com>
2278
2279	* elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2280	(elf32_i860_is_local_label_name): New function and prototype.
2281
22822000-09-02  Nick Clifton  <nickc@redhat.com>
2283
2284	* configure.in: Increase version number to 2.10.91.
2285	* configure: Regenerate.
2286	* aclocal.m4: Regenerate.
2287	* config.in: Regenerate.
2288	* po/bfd.pot: Regenerate.
2289
22902000-09-02  Daniel Berlin <dberlin@redhat.com>
2291
2292	* elf.c (_bfd_elf_make_section_from_shdr): Add
2293	.gnu.linkobce.wi. to the list of debug section names.
2294
22952000-09-02  Nick Clifton  <nickc@redhat.com>
2296
2297	* dwarf2.c (find_debug_info): New function: Locate a section
2298	containing dwarf2 debug information.
2299	(bfd_dwarf2_find_nearest_line): Find all sections containing
2300	debug information and include them in the stash.
2301
23022000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
2303
2304	* elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2305	R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2306	(sh_reloc_map): Add new relocs.
2307	(sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2308	sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2309	sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2310	sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2311	functions.
2312	(ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2313	(elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2314	elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2315	elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2316	New array constants.
2317	(elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2318	New variables.
2319	(elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2320	elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2321	elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2322	elf_sh_plt_reloc_offset): Define.
2323	(elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2324	elf_sh_link_hash_table): New structs.
2325	(sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2326	(sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2327	relocation types.
2328	(elf_backend_create_dynamic_sections,
2329	bfd_elf32_bfd_link_hash_table_create,
2330	elf_backend_adjust_dynamic_symbol,
2331	elf_backend_size_dynamic_sections,
2332	elf_backend_finish_dynamic_symbol,
2333	elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2334	elf_backend_plt_readonly, elf_backend_want_plt_sym,
2335	elf_backend_got_header_size, elf_backend_plt_header_size):
2336	Define.
2337	* reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2338	BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2339	New relocs.
2340	* bfd-in2.h, libbfd.h: Rebuilt.
2341
23422000-09-01  Alan Modra  <alan@linuxcare.com.au>
2343
2344	* elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2345	change.
2346
23472000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
2348
2349	* elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2350	not initialized, set them to indicate the SH1 instruction set.
2351
23522000-08-31  Alexandre Oliva  <aoliva@redhat.com>
2353
2354	* acinclude.m4: Include libtool and gettext macros from the
2355	top level.
2356	* aclocal.m4, configure: Rebuilt.
2357
23582000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
2359
2360	* elf.c: Eliminate references to __sparcv9 macro; replace with
2361	autoconf variables HAVE_PSINFO32_T etc.
2362	* configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2363	HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2364	* config.in: Ditto.
2365	* acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2366	detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2367	* aclocal.m4: Ditto.
2368	* configure: Regenerate.
2369
23702000-08-27  Alan Modra  <alan@linuxcare.com.au>
2371
2372	* elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2373	for any shared link, not just shared -Bsymbolic.
2374	(elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2375	any shared link, and pass link info to it.
2376	(elf_i386_size_dynamic_sections): Update comment.
2377	(elf_i386_discard_copies): Modify to discard relocs for symbols
2378	that have been forced local.
2379	(elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2380	that have been forced local.
2381
23822000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
2383
2384	* elflink.h (elf_link_add_object_symbols): Allow common
2385	symbols to have an alignment of 1 if explicitly requested, and
2386	not overridden by other definitions.
2387
23882000-08-22  Doug Kwan <dkwan@transmeta.com>
2389
2390	* coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2391	* coffcode.h (coff_set_flags): Add detection of w65 architecture.
2392
23932000-08-22  H.J. Lu  <hjl@gnu.org>
2394
2395	* elf-bfd.h (elf_link_hash_table): Add runpath.
2396
2397	* bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2398	* bfd-in2.h: Rebuilt.
2399
2400	* elf.c (_bfd_elf_link_hash_table_init): Initialize the
2401	"runpath" field to NULL.
2402	(bfd_elf_get_runpath_list): New function.
2403
2404	* elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2405	DT_RUNPATH entries.
2406
24072000-08-22  Alexandre Oliva  <aoliva@redhat.com>
2408
2409	* elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2410	R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2411	explicitly.  Improve validation of r_type.
2412
24132000-08-21  H.J. Lu  <hjl@gnu.org>
2414
2415	* elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2416	dynamic allocated content space.  Add a comment to remind us that
2417	one day this ought to be fixed.
2418	* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2419	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2420	* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2421
24222000-08-21  Jason Eckhardt  <jle@cygnus.com>
2423
2424	* elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2425	field with the newly relocated value instead of adding it to the
2426	existing immediate field.
2427	(elf32_i860_relocate_splitn): Likewise.
2428	(elf32_i860_relocate_highadj): Likewise.
2429
24302000-08-16  Jason Eckhardt  <jle@cygnus.com>
2431
2432	* elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2433	was previously just a stub).
2434
24352000-08-16  Alexandre Oliva  <aoliva@redhat.com>
2436
2437	* elflink.c (_bfd_elf_create_got_section): Don't abort().
2438	Formatting fixes.
2439	(_bfd_elf_create_dynamic_sections): Likewise.
2440
24412000-08-16  Andrew Macleod  <amacleod@cygnus.com>
2442
2443	* elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2444	for undefined symbols to be the beginning of the section.
2445
2446	* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2447	four extra entries at the beginning of the .rela.plt section.
2448	(sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2449	section to account for the four reserved entries in the .plt section.
2450
24512000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
2452
2453	* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2454	to the list of NOPs we recognize after a branch-and-link.
2455	Use the ori NOP when one is needed.
2456
2457	* coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2458	for large archives.
2459
24602000-08-14  Jim Wilson  <wilson@cygnus.com>
2461
2462	* elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2463	EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2464	(elf64_ia64_print_private_bfd_data): Likewise.  Also handle
2465	EF_IA_64_ABSOLUTE.
2466
24672000-08-11  Alexandre Oliva  <aoliva@redhat.com>
2468
2469	* elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2470
24712000-08-10  Jason Eckhardt  <jle@cygnus.com>
2472
2473	* elf32-i860.c (elf32_i860_relocate_section): New function.
2474	(i860_final_link_relocate): New function.
2475	(elf32_i860_relocate_splitn): New function.
2476	(elf32_i860_relocate_pc16): New function.
2477	(elf32_i860_relocate_highadj): New function.
2478	(elf32_i860_howto): Minor adjustments to some relocations.
2479	(elf_info_to_howto_rel): Define.
2480	(elf_backend_relocate_section): Define.
2481
24822000-08-10  Nick Clifton  <nickc@cygnus.com>
2483
2484	* elf32-arm.h: Fix formatting.
2485
24862000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
2487
2488	* elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2489
24902000-08-08  Jason Eckhardt  <jle@cygnus.com>
2491
2492	* elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2493
24942000-08-07  Kazu Hirata  <kazu@hxi.com>
2495
2496	* ieee.c (ieee_write_debug_part): Rewrite a comment.
2497	* elf64-ia64.c: Fix a typo.
2498
24992000-08-05  Jason Eckhardt  <jle@cygnus.com>
2500
2501	* elf32-i860 (elf32_i860_howto_table): New structure.
2502	(lookup_howto): New function.
2503	(elf32_i860_reloc_type_lookup): New function.
2504	(elf32_i860_info_to_howto_rela): New function.
2505	(elf_code_to_howto_index): New structure.
2506	(elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2507	(bfd_elf32_bfd_reloc_type_lookup): Re-define as
2508	elf32_i860_reloc_type_lookup.
2509
25102000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
2511
2512	* som.c (struct fixup_format): Constify `format'.
2513	(som_hppa_howto_table): Use SOM_HOWTO macro.
2514	(try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2515	(som_bfd_reloc_type_lookup): Likewise.
2516	(compare_subspaces): Remove unused `count1', `count2'.
2517	(som_begin_writing): Remove unused `total_reloc_size'.
2518	(som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2519	(som_print_symbol, som_bfd_is_local_label_name): Likewise.
2520	(som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2521	(som_find_nearest_line): Decorate unused parameter(s).
2522	(som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2523	(som_bfd_link_split_section): Likewise.
2524
25252000-08-03  Nick Clifton  <nickc@cygnus.com>
2526
2527	* section.c: Restore backed out code.
2528	* elf.c: Restore backed out code.
2529	(copy_private_bfd_data): Fix bug preventing stipped dynamic
2530	binaries from working.
2531	* bfd-in2.h: Regenerate.
2532
25332000-08-03  H.J. Lu  <hjl@gnu.org>
2534
2535	* section.c: Back out the change made by Nick Clifton
2536	<nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2537	binaries.
2538	* bfd-in2.h: Likewise.
2539	* elf.c: Likewise.
2540
25412000-08-03  Alexandre Oliva  <aoliva@redhat.com>
2542
2543	* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2544
25452000-07-31  Jason Eckhardt  <jle@cygnus.com>
2546
2547	* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2548	* bfd-in2.h, libbfd.h: Regenerate.
2549
25502000-07-31  Nick Clifton  <nickc@cygnus.com>
2551
2552	* section.c (struct sec): Add new boolean field 'segment_mark'.
2553	(STD_SECTION): Initialise new field to zero.
2554
2555	* bfd-in2.h: Regenerate.
2556
2557	* elf.c (copy_private_bfd_data): Reorganise section to segment
2558	mapping to cope with moved sections requiring new segments,
2559	and overlapping segments.
2560	(SEGMENT_END): New macro: Return the end address of a segment.
2561	(IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2562	contains a section by comparing their VMA addresses.
2563	(IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2564	contains a section by comparing their LMA addresses.
2565	(INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2566	section should be included in a segment.
2567	(SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2568	follows another in memory.
2569	(SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2570	segments overlap.
2571
25722000-07-22  Jason Eckhardt  <jle@cygnus.com>
2573
2574	* cpu-i860.c: Added comments.
2575
2576	* elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2577	bfd_elf32_i860_little_vec.
2578	(TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2579	(ELF_MAXPAGESIZE): Changed to 4096.
2580
2581	* targets.c (bfd_elf32_i860_little_vec): Declaration of
2582	new target.
2583	(bfd_target_vector): Added bfd_elf32_i860_little_vec.
2584
2585	* config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2586	config for little endian elf32 i860.
2587	(targ_defvec): Define for the new config above
2588	as "bfd_elf32_i860_little_vec".
2589	(targ_selvecs): Define for the new config above
2590	as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2591
2592	* configure.in (bfd_elf32_i860_little_vec): Added recognition
2593	of new target vec.
2594
2595	* configure: Regenerated.
2596
25972000-07-27  H.J. Lu  <hjl@gnu.org>
2598
2599	* elflink.h (elf_merge_symbol): Take one more argument,
2600	dt_needed, to indicate if the symbol comes from a DT_NEEDED
2601	entry. Don't overide the existing weak definition if dt_needed
2602	is true.
2603	(elf_link_add_object_symbols): Pass dt_needed to
2604	elf_merge_symbol ().
2605
26062000-07-27  Nick Clifton  <nickc@cygnus.com>
2607
2608	* elflink.h (elf_link_size_reloc_section): Zeroes the section's
2609	allocated contents.
2610
26112000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
2612
2613	* configure.host (*-*-aix*): AIX has 'long long' always.
2614
2615	* coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2616	(xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2617	(xcoff_write_archive_contents_big): Don't update the offset
2618	of the symbol table, xcoff_write_armap will do it.
2619
26202000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
2621
2622	* elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2623	of dynobj for SGI_COMPAT checks.
2624
26252000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2626
2627	* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2628	* bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2629	* bfd-in2.h: Regenerate.
2630
26312000-07-21  Nick Clifton  <nickc@cygnus.com>
2632
2633	* elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2634	range symbol indices in relocs and issue an error message.
2635
26362000-07-20  H.J. Lu  <hjl@gnu.org>
2637
2638	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2639	info->new_dtags when setting DT_FLAGS_1. It will only be set
2640	by the new linker options. It shouldn't break anything.
2641
26422000-07-20  H.J. Lu  <hjl@gnu.org>
2643
2644	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2645	only if info->new_dtags is true.
2646
26472000-07-20  H.J. Lu  <hjl@gnu.org>
2648
2649	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2650	DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2651
26522000-07-20  Hans-Peter Nilsson  <hp@axis.com>
2653
2654	* Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2655	(ALL_MACHINES_CFILES): Add cpu-cris.c.
2656	(BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2657	(BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2658	(cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2659	* Makefile.in: Rebuild.
2660	* aclocal.m4: Rebuild.
2661	* aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2662	* archures.c (enum bfd_architecture): Add bfd_arch_cris.
2663	(bfd_cris_arch): Declare.
2664	(bfd_archures_list): Add bfd_cris_arch.
2665	* bfd-in2.h: Rebuild.
2666	* config.bfd: (cris-*-*): New target.
2667	* configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2668	* configure: Rebuild.
2669	* elf.c (prep_headers): Add bfd_arch_cris.
2670	* libbfd.h: Rebuild.
2671	* libaout.h (enum machine_type): Add M_CRIS.
2672	* reloc.c: Add CRIS relocations.
2673	* targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2674	(bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2675	* cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2676	* po/POTFILES.in, po/bfd.pot: Regenerate.
2677
26782000-07-19  H.J. Lu  <hjl@gnu.org>
2679
2680	* elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2681	DF_TEXTREL if DT_TEXTREL is set.
2682	* elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2683	* elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2684	* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2685	* elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2686	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2687	* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2688	* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2689	* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2690	* elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2691	* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2692
2693	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2694	set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2695	DT_RPATH is set.
2696	Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2697
26982000-07-19  H.J. Lu  <hjl@gnu.org>
2699
2700	* bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2701	* bfd-in2.h: Rebuild.
2702
2703	* elf-bfd.h (elf_obj_tdata): Add dt_soname.
2704	(elf_dt_soname): New.
2705
2706	* elf.c (bfd_elf_set_dt_needed_soname): New.
2707
2708	* elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2709	entry if the shared object loaded by DT_NEEDED is used to
2710	resolve the reference in a regular object.
2711
27122000-07-19  H.J. Lu  <hjl@gnu.org>
2713
2714	* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2715	DT_DEPAUDIT and DT_AUDIT as strings.
2716
27172000-07-19  Nick Clifton  <nickc@cygnus.com>
2718
2719	* format.c: Fix formatting.
2720
27212000-07-19  H.J. Lu  <hjl@gnu.org>
2722
2723	* elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2724
27252000-07-19  H.J. Lu  <hjl@gnu.org>
2726
2727	* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2728	DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2729	DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2730	DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2731	DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2732	DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2733	DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2734
27352000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
2736
2737	* elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2738	renamed functions from here...
2739	(assign_section_numbers): Use renamed functions.
2740	(prep_headers): Use renamed functions.
2741
2742	* bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2743	* bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2744	* bfd-in2.h: Regenerate.
2745
27462000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
2747
2748	* elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2749	parenthesis in if statement.
2750
27512000-07-17  Koundinya K  <kk@ddeorg.soft.net>
2752
2753	Enable the support for Traditional MIPS.
2754	* elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2755	return ict_none appropriately for traditional mips targets.
2756	(STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2757	(STUB_MOVE): Conditionalize for traditonal mips.
2758	(STUB_LI16): Likewise.
2759	(_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2760	room for RTPROC header.
2761	(_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2762	the permission for the PT_DYNAMIC as read, write and execute.
2763	(mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2764	for traditonal mips.
2765	(_bfd_mips_elf_create_dynamic_sections): Add the symbol
2766	_DYNAMIC_LINKING for traditonal mips.
2767	(_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2768	in case of traditonal mips.
2769	(_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2770	entry is required. For a function if PLT is not required then set the
2771	corresponding hash table entry to 0.
2772	(_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2773	traditonal mips.
2774	(_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2775	shared object set the value to 0.
2776	(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2777	_DYNAMIC_LINKING for traditonal mips.
2778	(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2779	for traditonal mips.
2780
27812000-07-15  H.J. Lu  <hjl@gnu.org>
2782
2783	* aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2784
27852000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
2786
2787	* libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2788	out a structure that is BFD_IN_MEMORY.
2789
27902000-07-11  Alan Modra  <alan@linuxcare.com.au>
2791
2792	* elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2793	bfd pointer.  Print section id instead of bfd pointer for local
2794	syms.  Prefix addend with `+' for global syms as well as local.
2795	Correct calculation of name component lengths.
2796	(elf64_hppa_check_relocs): Update call to get_dyn_name.
2797
2798	From David Huggins-Daines  <dhd@linuxcare.com>
2799	* elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2800	* elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2801	(elf64_hppa_modify_segment_map): Likewise.
2802
28032000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2804
2805	* elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2806	addresses to be "naturally" sign extended.  Return -1 if unknown.
2807	* bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2808	* bfd-in2.h: Regenerate.
2809
28102000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2811
2812	* ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2813	and ECOF_SIGNED_64 to list ways to extract an offset.
2814	(ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2815	ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2816	Update.
2817	* elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2818	* elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2819
28202000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2821
2822	* elfcode.h (elf_object_p): Use bfd_set_start_address and not
2823	bfd_get_start_address.
2824	(elf_swap_ehdr_in): Sign extend e_entry when applicable.
2825	(elf_swap_ehdr_out): Ditto.
2826
28272000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
2828
2829	* archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2830	compatibility with older binutils.
2831
28322000-07-10  Alan Modra  <alan@linuxcare.com.au>
2833
2834	* section.c (bfd_make_section_anyway): Start section_id at 0x10.
2835	(STD_SECTION): Avoid negative ids, instead use 0 to 3.
2836
2837	From Ryan Bradetich  <rbradetich@uswest.net>
2838	* dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2839	(parse_line_table): Ditto.
2840	(_bfd_dwarf1_find_nearest_line): Ditto.
2841	* syms.c (cmpindexentry): Remove extra `*' from params.
2842
28432000-07-09  Koundinya K  <kk@ddeorg.soft.net>
2844
2845	* elf32-mips.c (sort_dynamic_relocs): New Function.
2846	(_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2847	via qsort to sort the dynamic relocations in increasing r_symndx
2848	value.
2849
28502000-07-09  Alan Modra  <alan@linuxcare.com.au>
2851
2852	* elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2853	ATTRIBUTE_UNUSED to unused args.
2854	(get_opd): Likewise.
2855	(get_plt): Likewise.
2856	(get_dlt): Likewise.
2857	(get_stub): Likewise.
2858	(elf64_hppa_adjust_dynamic_symbol): Likewise.
2859	(elf64_hppa_link_output_symbol_hook): Likewise.
2860	(elf64_hppa_check_relocs): Delete unused var.
2861	(elf64_hppa_size_dynamic_sections): Likewise.
2862	(elf64_hppa_finalize_opd): Likewise.
2863	(elf64_hppa_finalize_dynreloc): Likewise.
2864	(elf64_hppa_modify_segment_map): Likewise.
2865	(elf64_hppa_finish_dynamic_sections): Likewise.
2866
2867	* elf-hppa.h (elf_hppa_final_write_processing): Add
2868	ATTRIBUTE_UNUSED to unused args.
2869	(elf_hppa_final_link_relocate): Likewise.
2870	(elf_hppa_record_segment_addrs): Add paretheses.
2871	(elf_hppa_relocate_section): Constify dyn_name.
2872
2873	From  David Huggins-Daines  <dhd@linuxcare.com>
2874	* config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2875	rearrange case statement so that it gets preferred to 32-bit ones.
2876
2877	* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2878	asection->id instead of address of asection structure.
2879	(elf32_hppa_size_stubs): Likewise.
2880
2881	* elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2882	for .init* and .fini*.
2883
2884	* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2885	and addends used in stub names to 32 bits.
2886	(elf32_hppa_size_stubs): Likewise.
2887
2888	* elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2889	twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
2890	not bfd_put_64.  Fix minor comment typo and formatting.
2891
2892	Changes to create multiple linker stubs, positioned immediately
2893	before the section where they are required.
2894	* elf32-hppa.c: Don't include hppa_stubs.h.
2895	(elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2896	(elf32_hppa_stub_hash_table): Delete.
2897	(elf32_hppa_link_hash_entry): Delete.
2898	(elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2899	stub_hash_table, and store the struct here rather than a pointer.
2900	Delete output_symbol_count.  Add offset array.  Change
2901	global_value to a bfd_vma.
2902	(elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2903	(elf32_hppa_stub_hash_traverse): Delete.
2904	(elf32_hppa_name_of_stub): Delete.
2905	(elf32_hppa_link_hash_lookup): Delete.
2906	(elf32_hppa_link_hash_traverse): Delete.
2907	(elf32_hppa_stub_hash_table_init): Delete.
2908	(elf32_hppa_size_of_stub): Pass input section and offset rather
2909	than location and calculate location here.  Don't pass name as all
2910	stubs are now the same size.
2911	(elf32_hppa_stub_hash_newfunc): Init new fields.
2912	(elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2913	too.
2914	(elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2915	comparing against ints.  Rewrite stub handling code.
2916	(elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2917	Case enums to int before comparing against ints.  Remove
2918	bfd_reloc_dangerous case.
2919	(elf32_hppa_build_one_stub): Rewrite.
2920	(elf32_hppa_size_one_stub): New function.
2921	(elf32_hppa_build_stubs): Rewrite.
2922	(elf32_hppa_size_stubs): Pass in linker call-back functions.
2923	Rewrite stub-handling specific code.
2924
2925	* elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2926
2927	* elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2928
2929	* hppa_stubs.h: Delete.
2930	* Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2931	(elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2932	* Makefile.in: Regenerate.
2933
2934	* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2935	e_nlrsel.
2936
2937	* libhppa.h (hppa_field_adjust): Correct e_nsel case.
2938
2939	* elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2940	and section name for bfd_reloc_notsupported error message.
2941	(elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2942	bfd_reloc_notsupported.
2943	(elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2944
2945	* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2946	undefined weak symbols for all relocs.
2947	(elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2948	offsets are relative to one past the delay slot.
2949	(elf32_hppa_size_stubs): Account for reloc addend when calculating
2950	branch destination.  Put addend into stub name too.
2951	(elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2952	adjust by 8 when deciding whether a linker stub is needed.  Put
2953	addend into stub name as for above.
2954
2955	* elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2956	various args and vars.
2957	(elf32_hppa_bfd_final_link_relocate): Here too.
2958	(elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
2959	inner block var to avoid shadowing.
2960
2961	* elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
2962	unsigned.
2963	* elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2964	* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2965	(elf_hppa_fake_sections): Rename local var to avoid shadowing.
2966
2967	* libhppa.h: Change practically all unsigned ints to plain ints.
2968	Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
2969	prototypes.
2970
2971	From Ryan Bradetich  <rbradetich@uswest.net>
2972	* libhppa.h (hppa_opcode_type): New enum to replace #define's.
2973	* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2974	suit above.
2975	From  David Huggins-Daines  <dhd@linuxcare.com>
2976	* elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2977	to the new OP_* ones.
2978
2979	* elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2980	error exit.  Bail out earlier on plabel relocs that we aren't
2981	interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
2982	string, and then don't free our copy.
2983	(elf32_hppa_build_one_stub): Make insn unsigned int.
2984
2985	* libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2986	available with BL, not BE and BLE.
2987
2988	* elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2989	code for elf arg relocs.
2990	(elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2991	argument with elf_link_hash_entry h.  Handle undefined weak
2992	symbols.  Move $global$ lookup from here...
2993	(elf32_hppa_relocate_section): ...to here.  Return correct error
2994	message for non-handled relocs.
2995	(elf32_hppa_size_of_stub): Correctly test branch range.  Previous
2996	wrong test was -0x3ffff to +0x40000.
2997
2998	* elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2999	R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3000	Handle them as such.
3001	(elf_hppa_relocate_insn): Fix a typo.
3002
3003	* libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3004	(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3005	assemble_17, assemble_21): Delete.
3006	Supply defines for all 64 possible opcodes.
3007	(bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3008	formats.  Handle COMICLR.
3009	(hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
3010	-10, -16, 16, 22.
3011
3012	* elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3013	(elf32_hppa_bfd_final_link_relocate): Major rewrite.
3014	(elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3015	to suit.
3016	(elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
3017	the local syms - did this code get deleted accidentally?  Ignore
3018	undefined and undefweak syms.
3019
3020	* elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3021	block.  Use it instead of elf64_hppa_hash_table (info).
3022	(elf_hppa_final_link_relocate): Use hppa_info instead of
3023	elf64_hppa_hash_table (info).
3024
3025	* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3026	re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3027	(hppa_rebuild_insn): Mask immediate bits here instead.
3028	* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3029
30302000-07-08  Alan Modra  <alan@linuxcare.com.au>
3031
3032	* section.c (struct sec): Add id field.  Tidy comment formatting.
3033	(bfd_make_section_anyway): Set id.
3034	(STD_SECTION): Init id too.
3035	Change CONST to const throughout.
3036	* archures.c (bfd_arch_info): Tidy comment.
3037	(bfd_arch_list): Change a CONST to const.
3038	* libbfd-in.h: Tidy comments and replace CONST with const.
3039	* elf-bfd.h: Likewise.
3040	* libbfd.h: Regenerate.
3041	* bfd-in2.h: Regenerate.
3042	* libcoff.h: Regenerate.
3043
30442000-07-07  DJ Delorie  <dj@redhat.com>
3045
3046	* archive.c (_bfd_write_archive_contents): Add an informative
3047	comment.
3048
30492000-07-06  Kazu Hirata  <kazu@hxi.com>
3050
3051	* srec.c: Fix formatting.
3052
30532000-06-05  DJ Delorie  <dj@redhat.com>
3054
3055	* MAINTAINERS: new
3056
30572000-07-04  Alexandre Oliva  <aoliva@redhat.com>
3058
3059	* coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3060	value of PC-relative offsets.
3061
30622000-07-03  Jim Wilson  <wilson@cygnus.com>
3063
3064	* elf64-alpha.c (alpha_elf_size_info): New.
3065	(elf_backend_size_info): Define to alpha_elf_size_info.
3066	* elfcode.h (elf_size_info): Change hash bucket size to 4.
3067
30682000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
3069
3070	* elf32-mips.c: Include elf32-target.h again for the traditional
3071	MIPS targets.
3072
30732000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
3074
3075	* elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3076	Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3077	(avr_info_to_howto_rela): Likewise.
3078	(elf32_avr_gc_mark_hook): Likewise.
3079	(elf32_avr_gc_sweep_hook): Likewise.
3080	(elf32_avr_relocate_section): Likewise.
3081
30822000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
3083
3084	* cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3085	an external symbol for a non-shared, non-relocatable link.
3086
30872000-07-03  Nick Clifton  <nickc@redhat.com>
3088
3089	* cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3090	is an external symbol.
3091	(IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3092	external symbol.
3093
30942000-07-03  Kazu Hirata  <kazu@hxi.com>
3095
3096	* reloc16.c: Fix formatting.
3097
30982000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3099
3100	* config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3101	to add a new target for traditional mips i.e
3102	bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3103	* configure.in: Likewise.
3104	* configure: Rebuild.
3105	* targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3106	bfd_target_vector.
3107	(bfd_elf32_tradlittlemips_vec): Likewise.
3108	* elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3109	to see that elfNN_bed does not get redefined even if the target file
3110	is included twice for a chip. See elf32-mips.c.
3111
31122000-07-01  Alan Modra  <alan@linuxcare.com.au>
3113
3114	* Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3115	(CLEANFILES): Add DEPA.
3116	* Makefile.in: Regenerate.
3117
31182000-06-30  DJ Delorie  <dj@cygnus.com>
3119
3120	* peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3121	can't assume the PE header is at 0x80.
3122
31232000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
3124
3125	* syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3126
31272000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
3128
3129	* go32stub.h: Update stub.
3130
31312000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3132
3133	* archures.c (bfd_mach_avr5): Define.
3134	* bfd-in2.h (bfd_mach_avr5): Define.
3135	* cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3136	bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
3137	(compatible): Update comment.  Add missing test.
3138	* elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3139	for avr2 and avr4.  Simplify 8K wrap code.
3140	(bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3141	(elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3142
31432000-06-26  Kazu Hirata  <kazu@hxi.com>
3144
3145	* coff-h8300.c: Fix formatting.
3146	* cpu-h8300.c: Likewise.
3147
31482000-06-24  Alexandre Oliva  <aoliva@redhat.com>
3149
3150	* elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3151	for local symbols whose names are unknown.
3152
31532000-06-22  Alan Modra  <alan@linuxcare.com.au>
3154
3155	* Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3156	find one.
3157	* Makefile.in: Regenerate.
3158	* doc/Makefile.in: Regenerate.
3159
31602000-06-20  H.J. Lu  <hjl@gnu.org>
3161
3162	* Makefile.am: Rebuild dependency.
3163	* Makefile.in: Rebuild.
3164
31652000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3166
3167	* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3168	(elf_backend_copy_indirect_symbol): Map to the new function.
3169
31702000-06-20  Alan Modra  <alan@linuxcare.com.au>
3171
3172	* archive.c (normalize): Correct pointer comparison when checking
3173	for backslashes.
3174	(bfd_bsd_truncate_arname): Likewise.
3175	(bfd_gnu_truncate_arname): Likewise.
3176
31772000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
3178
3179	* elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3180	sections elf_{text,data}_{section,symbol}.
3181	* elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3182	(_bfd_mips_elf_hide_symbol): New function.
3183	(elf_backend_hide_symbol): Map to the new function.
3184	(_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3185	definitions of mips_elf_{text,data}_{section,symbol}.
3186	(mips_elf_local_relocation_p): Try to find the direct symbol
3187	based on new check_forced argument.
3188	(mips_elf_calculate_relocation): Use new version of
3189	mips_elf_local_relocation_p.
3190	(mips_elf_relocate_section): Likewise.
3191	(_bfd_mips_elf_relocate_section): Likewise.
3192	(mips_elf_sort_hash_table): Only assert that have enough GOT
3193	space.
3194	(mips_elf_got16_entry): Match all 32 bits to the existing GOT
3195	entry if the relocation based on the new external argument.
3196	(mips_elf_create_dynamic_relocation): Assert that we have a
3197	section contents allocated where we can swap out the dynamic
3198	relocations.
3199	(mips_elf_calculate_relocation): Find the real hash-table entry
3200	correctly by using h->root.root.type.  Only create a dynamic
3201	relocation entry if the symbol is defined in a shared library.
3202	Create an external GOT entry for the GOT16 relocation if the
3203	symbol was forced local.
3204	(_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3205	dynamic index if the symbol was forced local.
3206
32072000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3208
3209	* elf32-mips.c: Fix typos in comments.
3210
32112000-06-19  Mark Kettenis  <kettenis@gnu.org>
3212
3213	* rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3214	CORE_VERSION_1.
3215
32162000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
3217
3218	* Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3219	* Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3220	BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3221	* configure.in (bfd_elf32_m68hc12_vec): Recognize.
3222	(bfd_elf32_m68hc11_vec): Likewise.
3223	* config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3224	Supports 68hc11 & 68hc12  at the same time.
3225	* targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3226	bfd_target_vector.
3227	(bfd_elf32_m68hc11_vec): Likewise.
3228	* elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3229	* archures.c (bfd_m68hc12_arch): Define and register in global list
3230	(bfd_m68hc11_arch): Likewise.
3231	* reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3232	BFD_RELOC_M68HC11_3B): Define.
3233	* cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3234	* cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3235
32362000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
3237
3238	* elf_bfd.h (struct elf_backend_data): Add info argument to
3239	elf_backend_hide_symbol.
3240	(_bfd_elf_link_hash_hide_symbol): Likewise.
3241	* elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3242	* elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3243	* elflink.h (elf_link_add_object_symbols): Likewise.
3244	(elf_link_assign_sym_version): Likewise.
3245
32462000-06-18  H.J. Lu  <hjl@gnu.org>
3247
3248	* coff-i386.c (coff_i386_reloc): Don't return in case of
3249	output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3250	Compensate PE relocations when linking with non-PE object
3251	files to generate a non-PE executable.
3252
32532000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
3254
3255	* elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3256	GOT entries if we're doing a static link or -Bsymbolic link.
3257
32582000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
3259
3260	* elflink.h (elf_link_adjust_relocs): Check for and call backend
3261	specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3262	available.
3263	(elf_link_output_relocs): Likewise.
3264	(elf_reloc_link_order): Likewise.
3265
32662000-06-16  Nicholas Duffek  <nsd@redhat.com>
3267
3268	* archures.c (enum bfd_architecture): #define constants for
3269	PowerPc and RS6000 machine numbers.
3270	* bfd-in2.h: Regenerate.
3271	* coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3272	to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
3273	and RS6000 machine numbers using #defined constants from
3274	archures.c.
3275	* cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3276	machine numbers using #defined constants from archures.c.  Add
3277	entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
3278	64-bit words in 620 entry.
3279	* cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3280	RSC, and RS2.
3281	(bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3282
32832000-06-16  Nicholas Duffek  <nsd@cygnus.com>
3284
3285	* coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3286	* libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3287	* libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3288
32892000-06-16  Nicholas Duffek  <nsd@redhat.com>
3290
3291	* bfd-in.h (bfd_family_coff): Define.
3292	* bfd-in2.h: Regenerate.
3293	* coffgen.c (coff_count_linenumbers, coff_symbol_from,
3294	coff_find_nearest_line): Check COFFness using bfd_family_coff()
3295	instead of bfd_target_coff_flavour.
3296	* cofflink.c (_bfd_coff_final_link): Likewise.
3297	* cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3298	exclude XCOFF files.
3299	* reloc.c (bfd_perform_relocation, bfd_install_relocation):
3300	Likewise.
3301	* targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3302	* xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3303	* xcofflink.c (XCOFF_XVECP): Delete.
3304	(bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3305	bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3306	bfd_xcoff_record_link_assignment,
3307	bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3308	check for bfd_target_xcoff_flavour.
3309
33102000-06-16  Nicholas Duffek  <nsd@redhat.com>
3311
3312	* rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3313	files on AIX 4.3.
3314	(read_hdr): New function.
3315	(rs6000coff_core_p): Store mstsave or __context64 struct instead
3316	of trying to extract individual registers.  Set abfd->arch_info
3317	to match the architecture that created the core file.
3318	(rs6000coff_get_section_contents): Delete.
3319	* xcoff-target.h (rs6000coff_get_section_contents): Delete.
3320
33212000-06-14  H.J. Lu  <hjl@gnu.org>
3322
3323	* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3324	is NULL.
3325
33262000-06-13  H.J. Lu  <hjl@gnu.org>
3327
3328	* configure: Regenerate.
3329
33302000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
3331
3332	* peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3333	armpei_little_vec.
3334
33352000-06-08  David O'Brien  <obrien@FreeBSD.org>
3336
3337	* configure.in (VERSION): Update to show this is the CVS mainline.
3338
33392000-06-07  Alan Modra  <alan@linuxcare.com.au>
3340
3341	* elf32-d10v.c: Include elf/d10v.h
3342	(enum reloc_type): Delete.
3343	* elf32-d30v.c: Include elf/d30v.h
3344	(enum reloc_type): Delete.
3345
3346	* Makefile.am: Run "make dep-am" to regenerate dependencies.
3347	* Makefile.in: Regenerate.
3348
3349	* elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3350	(elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3351	move HOWTOs into elf_howto_table.
3352	(R_386_standard, R_386_ext_offset): Define.
3353	(R_386_ext, R_386_vt_offset, R_386_vt): Define.
3354	(elf_i386_reloc_type_lookup): Modify calculation of index into
3355	elf_howto_table since we've removed the padding.
3356	(elf_i386_info_to_howto_rel): Likewise.
3357	(elf_i386_relocate_section): Likewise.
3358
33592000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3360
3361	* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3362
33632000-06-05  H.J. Lu  <hjl@gnu.org>
3364
3365	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3366	an error when seeing an undefined symbol with hidden/internal
3367	attribute. It is handled in *_relocate_section ().
3368
33692000-06-05  H.J. Lu  <hjl@gnu.org>
3370
3371	* elflink.h (elf_fix_symbol_flags): Follow the link for the
3372	indirect symbol for the ELF_LINK_NON_ELF bit.
3373	(elf_link_output_extsym): Don't output the indirect symbol even
3374	if the ELF_LINK_NON_ELF bit is set.
3375
33762000-06-01  J.T. Conklin  <jtc@redback.com>
3377
3378	* config.bfd (i[3456]86-*-netbsdelf*): New target.
3379	(i[3456]86-*-netbsdaout*): New target.
3380	(i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3381	(i[3456]86-*-openbsd*): Likewise.
3382
33832000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
3384
3385	* trad-core.c: From hpux-core.c, include <dirent.h> or
3386	<sys/ndir.h> when possible.
3387
33882000-05-31  Nick Clifton  <nickc@cygnus.com>
3389
3390	* opintl.h (_(String)): Explain why dgettext is used instead
3391	of gettext.
3392
33932000-05-31  Ulrich Drepper  <drepper@redhat.com>
3394
3395	* elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3396	definitions.  We must not assume they are sorted in the file
3397	according to their index numbers.
3398
33992000-05-31  Alan Modra  <alan@linuxcare.com.au>
3400
3401	* elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3402	selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
3403	R_PARISC_DIR17F are for absolute branches; Handle them as such.
3404
34052000-05-30  Nick Clifton  <nickc@cygnus.com>
3406
3407	* cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3408	80960CA, 80960MC as valid machine names.
3409
34102000-05-30  H.J. Lu  <hjl@gnu.org>
3411
3412	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3413	visibility bits if the symbol is undefined. Correctly handle
3414	weak undefined symbols with hidden and internal attributes.
3415
3416	* elflink.h (elf_link_add_object_symbols): Always turn the
3417	symbol into local if it has the hidden or internal attribute.
3418
34192000-05-29  Philip Blundell  <philb@gnu.org>
3420
3421	* ppcboot.c:  Add packed attribute if compiling with GCC.
3422
34232000-05-29  Anatoly Vorobey  <mellon@pobox.com>
3424
3425	* elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3426
34272000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
3428
3429	* elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3430	elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3431	corefile on a 64-bit (Sparc Solaris) host.  Also clean up
3432	a few old comments.
3433
34342000-05-26  Alan Modra  <alan@linuxcare.com.au>
3435
3436	* Makefile.am: Update dependencies with "make dep-am"
3437	* Makefile.in: Regenerate.
3438
3439	* sysdep.h (gettext, dgettext, dcgettext, textdomain,
3440	bindtextdomain): Replace defines with those from intl/libgettext.h
3441	to quieten gcc warnings.
3442
34432000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
3444
3445	* aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3446
3447	* archive.c (normalize, bfd_bsd_truncate_arname,
3448	bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3449	file names with backslashes.
3450
3451	* cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3452	before opening it.
3453
3454	* sysdep.h: Include filenames.h.
3455
34562000-05-26  Alan Modra  <alan@linuxcare.com.au>
3457
3458	* opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3459
34602000-05-26  Jakub Jelinek  <jakub@redhat.com>
3461
3462	* elf64-sparc.c (sparc64_elf_relax_section): New.
3463	(sparc64_elf_relocate_section): Optimize tail call into branch always
3464	if possible.
3465	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3466	(elf32_sparc_relax_section): New.
3467
34682000-05-26  Jakub Jelinek  <jakub@redhat.com>
3469
3470	* elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3471	Remove unusued variables.
3472	(sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3473	(sparc64_elf_merge_private_bfd_data): Fix shared library case from
3474	previous fix, so that shared libs really don't influence targets
3475	extension mask and memory model.
3476
34772000-05-23  H.J. Lu  <hjl@gnu.org>
3478
3479	* elf64-alpha.c (elf64_alpha_relocate_section): Check
3480	h->root.other not h->other.
3481	* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3482
3483	* elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3484
34852000-05-23  H.J. Lu  <hjl@gnu.org>
3486
3487	* elf32-i386.c (elf_i386_relocate_section): Don't allow the
3488	undefined symbol with the non-default visibility attributes.
3489	* elf-hppa.h (elf_hppa_relocate_section): Likewise.
3490	* elf32-arm.h (elf32_arm_relocate_section): Likewise.
3491	* elf32-i370.c (i370_elf_relocate_section): Likewise.
3492	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3493	* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3494	* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3495	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3496	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3497	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3498	* elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3499	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3500
35012000-05-22  Richard Henderson  <rth@cygnus.com>
3502
3503	* elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3504	PCREL22, PCREL64I.  Zero size of special relocs.
3505	(elf64_ia64_reloc_type_lookup): Likewise.
3506	(USE_BRL, oor_brl, oor_ip): New.
3507	(elf64_ia64_relax_section): New.
3508	(elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3509	(elf64_ia64_install_value): Likewise, plus PCREL21BI.
3510	(elf64_ia64_relocate_section): Likewise.
3511	(bfd_elf64_bfd_relax_section): New.
3512	* reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3513	(BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3514	* bfd-in2.h, libbfd.h: Regenerate.
3515
35162000-05-22  Nick Clifton  <nickc@cygnus.com>
3517
3518	* configure.in : Add peigen.lo to MIPS PE targets.
3519	* configure: Regenerate.
3520
35212000-05-22  Momchil Velikov  <velco@fadata.bg>
3522
3523	* libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3524	only if it is known for both input and output bfds. Separate
3525	error message strings as in some languages, it may be necessary
3526	to change more than one place in the string to change between
3527	'big' and 'little'.
3528
3529	* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3530	endianess checks, call _bfd_generic_verify_endian_match() instead.
3531
3532	* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3533
3534	* elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3535
3536	* elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3537	endianess before checking bfd flavours.
3538
35392000-05-22  H.J. Lu  <hjl@gnu.org>
3540
3541	* elflink.h (elf_link_output_extsym): Clear the visibility
3542	field for symbols not defined locally.
3543
35442000-05-18  Alan Modra  <alan@linuxcare.com.au>
3545
3546	* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3547	re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3548	(hppa_rebuild_insn): Mask immediate bits here instead.
3549	* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3550
35512000-05-18  Momchil Velikov <velco@fadata.bg>
3552
3553	* elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3554	relocs for an executable, ensure that they are virtual addresses.
3555
35562000-05-18  Jeffrey A Law  (law@cygnus.com)
3557
3558	* config.bfd (hppa*64*-*-hpux11*): New target triplet.
3559
35602000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
3561	    Rick Gorton	            <gorton@scrugs.lkg.dec.com>
3562
3563	* elflink.h: Add emitrelocations support: when enabled, relocation
3564	information and relocation sections are put into final output
3565	executables.  If the emitrelocations flag is set, do the following:
3566	(elf_bfd_final_link): Emit relocation sections.
3567	(elf_link_input_bfd): Compute relocation section contents.
3568	(elf_gc_sections): Don't clean relocation sections.
3569
35702000-05-16  Catherine Moore  <clm@cygnus.com>
3571
3572	* som.c (som_decode_symclass):  Recognize weak symbols.
3573
35742000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
3575
3576	* peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3577	read idata section only from dataoff.
3578	(pe_print_edata): Correctly check for valid eat_member.
3579
35802000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
3581
3582	* elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3583
35842000-05-14  Philip Blundell  <philb@gnu.org>
3585
3586	* config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3587
35882000-05-12  Alan Modra  <alan@linuxcare.com.au>
3589
3590	* targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3591
3592	* peigen.c (pe_print_idata): Look for .idata section and print
3593	info even if data directory has zero entries.  Read idata section
3594	starting from dataoff, and adjust all data offsets to suit.  Cast
3595	all bfd_vma vars to unsigned long before passing to fprintf.
3596	* peigen.c (pe_print_edata): Similarly, look for .edata section
3597	and print info even if data directory has zero entries.  Cast
3598	all bfd_vma vars to unsigned long before passing to fprintf.
3599
3600	From Szabolcs Szakacsits <szaka@F-Secure.com>
3601	* peigen.c (pe_print_idata): Use bfd_section_size rather than data
3602	directory size which may be bogus.
3603	* peigen.c (pe_print_edata): Similarly.
3604
36052000-05-09  Alan Modra  <alan@linuxcare.com.au>
3606
3607	* elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3608	section is empty.
3609	(copy_private_bfd_data): Allow for space possibly taken up by elf
3610	headers when calculating segment physical address from lma.
3611
36122000-05-08  Alan Modra  <alan@linuxcare.com.au>
3613
3614	* versados.c (versados_scan): Init stringlen and pass_2_done.
3615
3616	* trad-core.c (trad_unix_core_file_p): Return
3617	bfd_error_wrong_format rather than bfd_error_file_truncated.
3618
3619	* peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3620	add_data_entry.  DataDirectory virtual address is relative.
3621	(pe_print_idata): Account for relative DataDirectory virtual
3622	addresses.  Don't trash datasize inside POWERPC_LE_PE code.
3623	(pe_print_edata): Similarly.
3624
3625	From Szabolcs Szakacsits <szaka@F-Secure.com>
3626	* peigen.c (dir_names): Add Delay Import Directory.
3627	(pe_print_idata):  Always search for bfd section containing
3628	idata address rather than looking up section name.  Print this
3629	section name rather than .idata.
3630	(pe_print_edata): Similarly.  Also print some fields as %08lx.
3631	(_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3632	Win32Version.
3633
36342000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
3635
3636	* xcoff.h: Rename to xcoff-target.h
3637	* Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3638	* coff-rs6000.c: Ditto.
3639	* coff64-rs6000.c: Ditto.
3640	* coff-pmac.c: Ditto.
3641	* Makefile.in: Regenerate.
3642
36432000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
3644
3645	* coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3646	Change U802TOC64MAGIC to U803XTOCMAGIC.
3647
36482000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
3649
3650	* elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3651	* bfd-in.h: Prototype bfd_elf_get_arch_size.
3652	* bfd-in2.h: Prototype bfd_elf_get_arch_size.
3653
36542000-05-04  Alan Modra  <alan@linuxcare.com.au>
3655
3656	* libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3657
36582000-05-03  Martin v. L�wis  <loewis@informatik.hu-berlin.de>
3659
3660	* elflink.h (elf_link_add_object_symbols): Reset dynindx for
3661	hidden and internal symbols.
3662	(elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3663	visibility.
3664	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3665	assign a PLT or GOT entry to symbols with hidden and
3666	internal visibility.
3667
36682000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
3669
3670	* bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3671	the .bss section.
3672	* bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3673
36742000-05-02  H.J. Lu  <hjl@gnu.org>
3675
3676	* elf.c (prep_headers): Use ELFOSABI_NONE instead of
3677	ELFOSABI_SYSV.
3678
36792000-05-02  Alan Modra  <alan@linuxcare.com.au>
3680
3681	* targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3682	* Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
3683	dependencies.
3684	* Makefile.in: Regenerate.
3685
36862000-05-01  Jim Wilson  <wilson@cygnus.com>
3687
3688	* Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3689	(BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3690	(BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
3691	(BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
3692	* Makefile.in: Rebuild.
3693
36942000-05-02  Alan Modra  <alan@linuxcare.com.au>
3695
3696	* config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
3697	doesn't work very well.
3698
3699	* elf-hppa.h (elf_hppa_internal_shdr): Define.
3700	(elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3701	Set hdr->s_type to 1 if ARCH_SIZE == 32.
3702	(_bfd_elf_hppa_gen_reloc_type): Add prototype.
3703	(elf_hppa_info_to_howto): Likewise.
3704	(elf_hppa_info_to_howto_rel): Likewise.
3705	(elf_hppa_reloc_type_lookup): Likewise.
3706	(elf_hppa_is_local_label_name): Likewise.
3707	(elf_hppa_fake_sections): Likewise.
3708	(elf_hppa_final_write_processing): Likewise.
3709	(elf_hppa_howto_table): Fully initialise all entries.
3710	(_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3711	(elf_hppa_info_to_howto): Likewise.
3712	(elf_hppa_info_to_howto_rel): Likewise.
3713	(elf_hppa_reloc_type_lookup): Likewise.
3714	(elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3715	elf_hppa_unmark_useless_dynamic_symbols,
3716	elf_hppa_remark_useless_dynamic_symbols,
3717	elf_hppa_record_segment_addrs, elf_hppa_final_link,
3718	elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3719	elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3720	elf32-hppa.c mess is cleaned up.
3721	(elf_hppa_final_link_relocate): Make insn and r_type unsigned
3722	int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
3723	r_field then call hppa_field_adjust inline func with variable
3724	r_field arg, instead call hppa_field_adjust with fixed arg.
3725	In case R_PARISC_PCREL22F, don't set r_field.
3726	(elf_hppa_relocate_insn): Change args and return type to unsigned
3727	int.  Call re_assemble_* funcs to do the work.
3728
3729	* elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3730	sign extending.
3731
3732	* libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3733	extending.
3734	(sign_extend): Mask first before sign extending.
3735	(low_sign_extend): Rewrite without condition expression.
3736	(ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3737	dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3738	(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3739	assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3740	result as function return value rather than through pointer arg.
3741	Accept unsigned int args, and return unsigned int.
3742	(re_assemble_3): New.  Combines function of dis_assemble_3 with
3743	re-assembly of opcode and immediate.
3744	(re_assemble_12): Likewise.
3745	(re_assemble_16): Likewise.
3746	(re_assemble_17): Likewise.
3747	(re_assemble_21): Likewise.
3748	(re_assemble_22): Likewise.
3749	(hppa_field_adjust): Rewrite and document, paying attention to
3750	size of types and signed/unsigned issues.
3751	(get_opcode): Shift before masking.
3752	(FDLW): Rename to FLDW.
3753	(bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
3754	(hppa_rebuild_insn): Change args and return value to unsigned
3755	int.  Make use of re_assemble_*.  Correct case 11.
3756
3757	* dep-in.sed: Handle ../opcodes/.
3758	* Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3759	elf64-hppa.h, hppa_stubs.h, xcoff.h.
3760	(BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3761	Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3762	elfarm-nabi.lo dependencies outside of auto-dependency area.
3763	Regenerate dependencies.
3764	* Makefile.in: Regenerate.
3765
3766	* configure.in (TRAD_HEADER): Test non-null before
3767	AC_DEFINE_UNQUOTED.
3768	* configure: Regenerate.
3769
3770	* reloc.c: Fix mis-spelling in comment.
3771
37722000-05-01  Alan Modra  <alan@linuxcare.com.au>
3773
3774	* coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3775	* vms.c (vms_openr_next_archived_file): Return NULL.
3776
37772000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3778
3779	* coffcode.h Copy changes mistakenly done to libcoff.h in
3780	4/24/2000 patch.
3781
37822000-04-29  Andreas Jaeger  <aj@suse.de>
3783
3784	* libbfd-in.h: Correctly check GCC version.
3785	* bfd-in.h: Likewise.
3786	* libhppa.h: Likewise.
3787	* libbfd.h: Regenerate.
3788	* bfd-in2.h: Regenerate.
3789
37902000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3791
3792	* Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3793	coffdu-rs6000.{lo,c}.
3794	(coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3795	on xcoff.h
3796	* Makefile.in: Regenerate.
3797	* xcoff.h: New file.
3798	* coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3799	* coff-rs6000.c: Move all declarations and defines that are
3800	common to the xcoff backends into xcoff.h
3801	* coff64-rs6000.c: Ditto,
3802
38032000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3804
3805	* coff-mips.c (mips_ecoff_backend_data):  Add initialization of
3806	_bfd_coff_force_symnames in strings and
3807	_bfd_coff_debug_string_prefix_length to their default values.
3808	* coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3809
38102000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3811
3812	* coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3813	_bfd_coff_force_symnames in strings and
3814	_bfd_coff_debug_string_prefix_length to their default values.
3815
38162000-04-27  Alan Modra  <alan@linuxcare.com.au>
3817
3818	* elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
3819	Check local_got_refcounts before dereferencing.
3820
3821	* elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3822	before deciding we don't need R_PPC_PLT32 relocation.
3823	(ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3824	dereferencing.
3825
3826	* elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3827
3828	* elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3829	.plt entries.
3830	(elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3831	(elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3832	(elf_i386_relocate_section): Allow for .plt to go missing.
3833	(elf_i386_finish_dynamic_symbol): Use same test to decide if we
3834	can use a relative reloc for got as elf_i386_relocate_section.
3835	(bfd_elf32_bfd_final_link): Define to use gc form of final link.
3836
38372000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
3838
3839	* config.bfd: Remove extraneous bfd_powerpc_64_arch.
3840
38412000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
3842
3843	* Makefile.am (coff64-rs6000.lo): New rule.
3844	* Makefile.in: Regenerate.
3845	* coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3846	xcoff_is_local_label_name, xcoff_rtype2howto,
3847	xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3848	xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3849	xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3850	(NO_COFF_SYMBOLS): Define.
3851	(xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3852	xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3853	internally.
3854	(MINUS_ONE): New macro.
3855	(xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3856	relocation.
3857	(coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3858	coff_SWAP_aux_out): Map to the new functions.
3859	* coff64-rs6000.c: New file.
3860	* libcoff.h (bfd_coff_backend_data): Add new fields
3861	_bfd_coff_force_symnames_in_strings and
3862	_bfd_coff_debug_string_prefix_length.
3863	(bfd_coff_force_symnames_in_strings,
3864	bfd_coff_debug_string_prefix_length): New macros for above fields.
3865	* coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3866	Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
3867	of using coff_swap_sym_in directly.
3868	(FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3869	(coff_set_flags) Set magic for XCOFF64.
3870	(coff_compute_section_file_positions): Add symbol name length to
3871	string section length if bfd_coff_debug_string_prefix_length is
3872	true.
3873	(coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3874	(coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3875	using coff_swap_lineno_in directly.
3876	(bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3877	and _bfd_coff_debug_string_prefix_length fields.
3878	* coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3879	symbol names into strings table when
3880	bfd_coff_force_symnames_in_strings is true.
3881	* coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3882	SET_RELOC_VADDR): New macros.
3883	(coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3884	(coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3885	code.
3886	(coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3887	changes within RS6000COFF_C specific code.
3888	(coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3889	MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3890	* reloc.c (bfd_perform_relocation, bfd_install_relocation):
3891	Extend existing hack on target name.
3892	* xcofflink.c (XCOFF_XVECP): Extend existing hack on
3893	target name.
3894	* coff-tic54x.c (ticof): Keep up to date with new fields
3895	in bfd_coff_backend_data.
3896	* config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3897	targ_selvecs to include rs6000coff64_vec for rs6000.
3898	* configure.in: Add rs6000coff64_vec case.
3899	* cpu-powerpc.c: New bfd_arch_info_type.
3900
39012000-04-24  Jeffrey A Law  (law@cygnus.com)
3902
3903	* config.bfd: Only disable elf32-hppa vectors, not all of the
3904	BSD and OSF configuration support.  Provide (disabled) clauses
3905	for PA64 support.
3906	* configure.in: Add clause for PA64 support.
3907	* configure: Rebuilt.
3908
3909	* targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3910	(bfd_elf64_hppa_vec): Declare.
3911
3912	* Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3913	(BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3914	(elf64-hppa.lo): Add dependencies.
3915	* Makefile.in: Rebuilt.
3916
3917	* elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3918
39192000-04-24  Jason Eckhardt  <jle@cygnus.com>
3920
3921	* libhppa.h (dis_assemble_16): New function.
3922	(pa_arch): Added pa20w element.
3923
39242000-04-24  Ulrich Drepper  <drepper@cygnus.com>
3925
3926	* elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3927	bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3928	bfd_elf64_slurp_reloc_table.
3929
3930	* elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3931	definitions to get external names.
3932	(elf_write_relocs): Renamed from write_relocs and make global.
3933	(elf_slurp_reloc_table): Make global.
3934	(_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3935
3936	* archive.c (hpux_uid_gid_encode): New function.
3937	(bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3938	defined and the ID is greater than 99999.
3939	(bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3940	special uid/gid fields into 32 bit values.
3941
39422000-04-21  Matthew Green  <mrg@cygnus.com>
3943
3944	* config.bfd: Add NetBSD/sparc64 support.
3945
3946Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
3947			  David Mosberger  <davidm@hpl.hp.com>
3948			  Timothy Wall <twall@cygnus.com>
3949			  Jim Wilson  <wilson@cygnus.com>
3950
3951	* Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3952	(ALL_MACHINES_CFILES): Add cpu-ia64.c.
3953	(BFD64_BACKENDS): Add elf64-ia64.lo.
3954	(BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3955	(cpu-ia64.lo, elf64-ia64.lo): New rules.
3956	* Makefile.in: Rebuild.
3957	* archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3958	(bfd_ia64_arch): Declare.
3959	(bfd_archures_list): Add bfd_ia64_arch.
3960	* bfd-in2.h: Rebuild.
3961	* config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3962	* configure: Rebuild.
3963	* configure.host: (ia64-*-linux*): New host.
3964	* configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3965	bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3966	* elf.c (prep_headers): Add bfd_arch_ia64.
3967	* libbfd.h: Rebuild.
3968	* reloc.c: Add IA-64 relocations.
3969	* targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3970	Declare.
3971	(bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3972	* cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3973
39742000-04-21  Richard Henderson  <rth@cygnus.com>
3975
3976	* elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3977	contents when performing a partial link.
3978	(bfd_elf_d30v_reloc_21): Likewise.
3979
39802000-04-20  H.J. Lu  <hjl@gnu.org>
3981
3982	* elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3983	patch to symbols defined by a shared object.
3984	* elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3985
39862000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3987
3988	K&R compiler fixes.
3989	* dwarf2.c (concat_filename): Avoid string literal concatenation.
3990	* ieee.c (ieee_get_symtab): Don't initialise union in struct.
3991
3992Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
3993
3994	* Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3995	(BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3996	(coff-ia64.lo): Add dependency.
3997	* Makefile.in: Regenerate.
3998	* coff-ia64.c: New file.
3999	* efi-app-ia32.c: Ditto.
4000	* efi-app-ia64.c: Ditto.
4001	* coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4002	(coff_set_flags): Ditto.
4003	(coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4004	* config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4005	* configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4006	* configure: Regenerate.
4007	* libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4008	(PUT_OPTHDR_IMAGE_BASE): Ditto.
4009	(GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4010	(PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4011	(GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4012	(PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4013	(GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4014	(PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4015	(GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4016	(PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4017	(GET_PDATA_ENTRY): Ditto.
4018	* peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4019	data_start.  Use above macros to read fields that are 64 bit wide for
4020	COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
4021	(_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4022	FileAlignment and SectionAlignment to minimum alignment if they
4023	are zero.
4024	(_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4025	Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4026	(_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4027	Use above macros to write fields that are 64 bit wide for
4028	COFF_WITH_PEP64.
4029	(pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4030	5*4 otherwise.  This should be right for IA-32 and IA-64, but may
4031	be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
4032	value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
4033	begin address, end address, and unwind info address only.  Use
4034	GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
4035	print addresses.
4036	(tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4037	HIGH3ADJ relocation names.
4038	(_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4039	* targets.c: Declare bfd_efi_app_ia32_vec and
4040	bfd_efi_app_ia64_vec.
4041	(bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4042	bfd_efi_app_ia64_vec.
4043
40442000-04-17  Timothy Wall  <twall@cygnus.com>
4045
4046	* bfd-in2.h: Add prototypes for tic54x load page access.
4047	* bfd-in.h: Regenerate.
4048	* coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4049	in customized _set_arch_mach function.
4050	* coffcode.h (coff_set_alignment_hook): Set section load page if
4051	the appropriate macro is defined.
4052	(write_object_contents): Read section load page.
4053
40542000-04-13  Alan Modra  <alan@linuxcare.com.au>
4055
4056	* elf32-hppa.h: Update copyright date.
4057
4058	* elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4059	* elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4060
4061	* elf32-d30v.c (MAX32): Don't use LL suffix.
4062	(MIN32): Define in terms of MAX32.
4063	(bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4064
4065	* coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4066	expression.
4067
4068	* peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4069
40702000-04-12  Alan Modra  <alan@linuxcare.com.au>
4071
4072	* dep-in.sed: Match space before file name, not after.
4073	* Makefile.am: Regenerate dependencies.
4074	* Makefile.in: Regenerate.
4075
4076	* reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4077	case, allow address wrap-around stupidly removed 2000-03-17.  Sign
4078	extend without an if statement.
4079
40802000-04-11  Alan Modra  <alan@linuxcare.com.au>
4081
4082	* coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4083	signed quantites.
4084	* elf32-mips.c (gprel16_with_gp): Likewise.
4085	* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4086	here using -0x40000, not (int)0xfffc0000.
4087	(elf32_hppa_size_of_stub): Likewise.
4088
40892000-04-11  Timothy Wall  <twall@cygnus.com>
4090
4091	* coff-tic54x.c: Now builds with all targets.
4092	* Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4093	* Makefile.in: Regenerate.
4094	* coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4095	unitialized variable.
4096
4097Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
4098
4099	* configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4100	--enable-build-warnings option.
4101	* Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4102	* Makefile.in, configure: Re-generate.
4103
41042000-04-07  Nick Clifton  <nickc@cygnus.com>
4105
4106	* reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4107	BFD_RELOC_THUMB_PCREL_BLX.
4108
4109	* elf32-arm.h (elf32_arm_final_link_relocate): Handle
4110	R_ARM_XPC25 and R_ARM_THM_PC22.
4111
4112	* elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4113	R_ARM_XPC25 and R_ARM_THM_XPC22.
4114	(elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4115	R_ARM_[XPC25|THM_XPC22].
4116
4117	* elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4118	elf/arm-oabi.h to elf/arm.h
4119
4120	* Makefile.am: Fix dependency for elfarm-oabi.c
4121	* Makefile.in: Regenerate.
4122
4123	* bfd-in2.h: Regenerate.
4124	* libbfd.h: Regenerate.
4125
41262000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4127
4128	* elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4129	and restore it on failure.  Release newly allocated tdata on
4130	failure.
4131
4132Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
4133
4134	* dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4135	(decode_line_info): Set it.  Report error if unit->line_offset is
4136	equal to or larger than it.
4137
41382000-04-07  Timothy Wall  <twall@cygnus.com>
4139
4140	* targets.c: Added vecs for tic54x.
4141	* reloc.c: Added relocs for tic54x.
4142	* libbfd.h: Regenerated.
4143	* configure: Add TI COFF vecs for tic54x.
4144	* configure.in: Ditto.
4145	* config.bfd (targ_cpu): Recognize new tic54x target.
4146	* coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4147	* bfd-in2.h: Add tic54x target and relocations.
4148	* Makefile.am, Makefile.in: Add tic54x target.
4149	* archures.c (bfd_archures_list): Add tic54x target.
4150	* coff-tic54x.c: New.
4151	* cpu-tic54x.c: New.
4152
41532000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4154
4155	* elfcore.h (elf_core_file_p): call backend_object_p which
4156	thereby gets an opportunity to update the arch/machine type.
4157
41582000-04-06  Timothy Wall  <twall@cygnus.com>
4159
4160	* coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4161	class.  Handle SEC_CLINK and SEC_BLOCK flags.
4162	* section.c: Add SEC_CLINK and SEC_BLOCK flags.
4163	* bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4164
41652000-04-06  Nick Clifton  <nickc@cygnus.com>
4166
4167	* elf32-arm.h (elf32_arm_set_private_flags): Only check for
4168	EF_INTERWORK if this is an unknown EABI.
4169	(elf32_arm_merge_private_bfd_data): Check EABI version
4170	numbers.  Only check EF_xxx flags if the EABI version number
4171	is unknown.
4172	(elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4173	if the EABI version number is unknown.
4174	(elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4175	if the EABI version number is unknown.
4176
4177Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4178
4179	* reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4180	BFD_RELOC_SH_LOOP_END.
4181	* elf32-sh.c (sh_elf_howto_tab): Change special_func to
4182	sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4183	Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4184	(sh_elf_reloc_loop): New function.
4185	(sh_elf_reloc): No need to test for always-to-be-ignored relocs
4186	any more.
4187	(sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4188	(sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4189	* bfd-in2.h, libbfd.h: Regenerate.
4190
41912000-04-04  Alan Modra  <alan@linuxcare.com.au>
4192
4193	* po/bfd.pot: Regenerate.
4194
4195	* Makefile.am: Remove extraneous mkdep comment.
4196	(MKDEP): Use gcc -MM rather than mkdep.
4197	(DEP): Quote when passing vars to sub-make.  Add warning
4198	message to end.
4199	(DEP1): Rewrite for "gcc -MM".
4200	(CLEANFILES): Add DEP2.
4201	Update dependencies.
4202	* Makefile.in: Regenerate.
4203
42042000-04-03  Kevin Buettner  <kevinb@redhat.com>
4205
4206	* configure.in: Added corefile support for AIX 4.3.  In particular,
4207	AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4208	compiling rs6000-core.c.
4209	* configure: Regenerated.
4210
42112000-04-03  H.J. Lu  <hjl@gnu.org>
4212
4213	* cache.c (bfd_open_file): Unlink the output file only if
4214	it has non-zero size.
4215
42162000-04-01  Ken Block USG  <block@zk3.dec.com>
4217
4218	* elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4219	relative relocations for non-loaded sections in shared objects.
4220	(elf64_alpha_check_relocs): Similarly.
4221
4222Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
4223
4224	* aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4225	BFD_RELOC_16 to switch for extended relocs.
4226	(MY_swap_ext_reloc_in): New.
4227	(MY_swap_ext_reloc_out): New.
4228	(NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4229	than NAME(aout,swap_ext_reloc_in) for extended relocs.
4230	(NAME(aout,squirt_out_relocs)): Similarly use
4231	MY_swap_ext_reloc_out.
4232	(aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4233
42342000-04-03  Kazu Hirata  <kazu@hxi.com>
4235
4236	* coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4237	the R_PCRWORD_B case.
4238
42392000-03-31  Thomas de Lellis  <tdel@wrs.com>
4240
4241	* srec.c : Set CHUNK size to 16 bytes to prevent download failures
4242	on some targets.
4243	* ihex.c : Ditto.
4244
4245Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
4246
4247	* elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
4248	HOWTO references to bfd_elf_generic_reloc, that have
4249	partial_inplace == true, now use the new function.  The function
4250	is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4251	extends its fixes to the R_M32R_{16,24,32} relocs.
4252	The new logic in m32r_elf_lo16_reloc() has been removed, and
4253	it instead calls the new routine to obtain that functionality.
4254
42552000-03-27  Alan Modra  <alan@linuxcare.com.au>
4256
4257	* elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4258	elf32_avr_check_relocs, avr_final_link_relocate,
4259	elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4260	elf32_avr_object_p): Add prototypes.
4261	(elf32_avr_gc_mark_hook): Add default for h->root.type.
4262	(bfd_elf_avr_final_write_processing): Make static.
4263
42642000-03-27  Denis Chertykov  <denisc@overta.ru>
4265
4266	* cpu-avr.c: New file.  BFD support routines for AVR architecture.
4267	* archures.c (bfd_architecture): Add AVR architecture.
4268	(bfd_archures_list): Add reference to AVR architecture info.
4269	* elf.c (prep_headers): Handle bfd_arch_avr.
4270	* reloc.c: Add various AVR relocation enums.
4271	* targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4272	list.
4273	* Makefile.am: Add support for AVR elf.
4274	* configure.in: Likewise.
4275	* config.bfd: Likewise.
4276	* Makefile.in: Regenerate.
4277	* configure: This too.
4278	* bfd-in2.h: And this.
4279	* libbfd.h: And this.
4280
42812000-03-24  H.J. Lu  <hjl@gnu.org>
4282
4283	* elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4284	(elf64_alpha_find_reloc_at_ofs): Likewise.
4285
42862000-03-17  Alan Modra  <alan@linuxcare.com.au>
4287
4288	* reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4289	flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
4290	allowable range used to be -2**(n-1) to 2**n-1.
4291	* reloc.c (_bfd_relocate_contents): Same here.  Also replace
4292	"boolean overflow" with "bfd_reloc_status_type flag".
4293
42942000-03-14  Doug Evans  <dje@casey.transmeta.com>
4295
4296	* elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4297
42982000-03-14  Kazu Hirata  <kazu@hxi.com>
4299
4300	* reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4301	of shrinks properly, including the last reloc.
4302
43032000-03-13  Kazu Hirata  <kazu@hxi.com>
4304
4305	* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4306	check for R_MOVL2.
4307
43082000-03-11  Alan Modra  <alan@linuxcare.com.au>
4309
4310	* ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4311	a format mismatch rather than an "error" from bfd_read such as
4312	bfd_error_file_truncated.
4313
43142000-03-10  Geoff Keating  <geoffk@cygnus.com>
4315
4316	* elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4317	sign-extension and big-endian compensation for
4318	R_MIPS_64 even in ld -r.
4319
43202000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
4321
4322	* elf32-mips.c (mips_elf_next_relocation): Rename from
4323	mips_elf_next_lo16_relocation, and generalize to look
4324	for any relocation type.
4325	(elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4326	(elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4327	(elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4328	(elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4329	(elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4330	(elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4331	(bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4332	(mips_rtype_to_howto): Likewise.
4333	(mips_elf_calculate_relocation): Handle new relocs.
4334	(_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4335	are paired.  The addend for R_MIPS_GNU_REL16_S2
4336	is shifted right two bits.
4337
43382000-03-10  Alan Modra  <alan@linuxcare.com.au>
4339
4340	* reloc.c (bfd_perform_relocation): Undo emacs formatting of
4341	comment, and ensure it doesn't happen again.
4342	(bfd_install_relocation): Same here.
4343	(_bfd_relocate_contents): Don't bother assigning unused signmask
4344	shift result.  Fix typos in comments.
4345	Remove trailing whitespace throughout file.
4346
43472000-03-07  Doug Evans  <dje@casey.transmeta.com>
4348
4349	* reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4350	* bfd-in2.h: Rebuild.
4351
43522000-03-06  Nick Clifton  <nickc@cygnus.com>
4353
4354	* peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4355	sym_ptr_ptr fields.
4356	(SIZEOF_ILF_SYM_PTR_TABLE): Define.
4357	(SIZEOF_ILF_STRINGS): Redefine.
4358	(pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
4359	relative reloc, as opposed to a section relative reloc.
4360	(pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4361	not C_LABEL.
4362	Add length of symbol's prefix to string pointer.
4363	Store a pointer to the symbol in the symbol pointer table.
4364	(pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4365	Initialise the symbol pointer table.
4366	Store the hint in the Hint/Name table.
4367	Make the jump reloc be symbol realtive, not section relative.
4368	Create an import symbol for imported code.
4369
43702000-03-06  Catherine Moore  <clm@cygnus.com>
4371
4372	* elf.c (swap_out_syms):  Check for null type_ptr.
4373
43742000-03-01  Hans-Peter Nilsson  <hp@axis.com>
4375
4376	* aout-target.h (MY(write_object_contents)): Remove unused
4377	and unusable "#if CHOOSE_RELOC_SIZE".
4378	* pc532-mach.c (MY(write_object_contents)): Ditto.
4379	* netbsd.h (MY(write_object_contents)): Ditto.
4380	* hp300hpux.c (MY(write_object_contents)): Ditto.
4381	* freebsd.h (MY(write_object_contents)): Ditto.
4382	* aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4383
43842000-02-29  H.J. Lu  <hjl@gnu.org>
4385
4386	* peicode.h (jtab): Make it static.
4387
4388	* coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4389	defined and COFF_IMAGE_WITH_PE is not defined.
4390	(_bfd_sh_align_load_span): Defined as sh_align_load_span if
4391	COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4392
43932000-03-01  Nick Clifton  <nickc@cygnus.com>
4394
4395	* coff-arm.c (bfd_arm_process_before_allocation): Make
4396	'symndx' signed to prevent compile time warning.
4397
4398	* coff-mcore.c: Remove unused prototype for pe_object_p.
4399
4400	* coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4401	functions that are not used when COFF_IMAGE_WITH_PE is
4402	defined.
4403	(struct sh_opcode): Change type of 'flags' field to unsigned
4404	long so that it can hold the USESAS flag.
4405
4406	* coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4407
4408	* elf-m10300.c (mn10300_elf_relax_section): Initialise
4409	'sym_sec'.
4410
4411	* elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4412	parameters.
4413	Remove unusued variables and code.
4414	(elf_backend_add_symbol_hook): Fix prototype.
4415
4416	* elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4417	'srelgot'.
4418
4419	* elf32-mcore.c (mcore_elf_relocate_section): Initialise
4420	'oldinst'.
4421
4422	* elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4423	parameters.
4424	Remove unusued variables and code.
4425	(elf_backend_add_symbol_hook): Fix prototype.
4426
4427	* elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4428
4429	* elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4430	to unused function parameter.
4431
4432	* pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4433	parameters.
4434	Use EMPTY_HOWTO to initialise empty howto slots.
4435	Remove unused variables.
4436
4437	* peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4438
44392000-03-01  H.J. Lu  <hjl@gnu.org>
4440
4441	* aoutx.h (aout_link_input_section_std): Pass "true" to
4442	the undefined_symbol callback.
4443	(aout_link_input_section_ext): Likewise.
4444	* bout.c (get_value): Likewise.
4445	* coff-a29k.c (coff_a29k_relocate_section): Likewise.
4446	* coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4447	Likewise.
4448	(alpha_relocate_section): Likewise.
4449	* coff-arm.c (coff_arm_relocate_section): Likewise.
4450	* coff-i960.c (coff_i960_relocate_section): Likewise.
4451	* coff-mcore.c (coff_mcore_relocate_section): Likewise.
4452	* coff-mips.c (mips_relocate_section): Likewise.
4453	* coff-ppc.c (coff_ppc_relocate_section): Likewise.
4454	* coff-sh.c (sh_relocate_section): Likewise.
4455	* coff-tic80.c (coff_tic80_relocate_section): Likewise.
4456	* cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4457	* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4458	* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4459	* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4460	* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4461	* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4462	* elf32-i370.c (i370_elf_relocate_section): Likewise.
4463	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4464	* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4465	* elf32-sh.c (sh_elf_relocate_section): Likewise.
4466	* elf32-v850.c (v850_elf_relocate_section): Likewise.
4467	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4468	* elflink.h (elf_link_output_extsym): Likewise.
4469	* pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4470	* reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4471	* reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4472
4473	* elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4474	undefined_symbol callback when building shared library with
4475	-Bsymbolic and undefined symbols are allowed. Otherwise, pass
4476	"true".
4477	* elf32-arm.h (elf32_arm_relocate_section): Likewise.
4478	* elf32-i386.c (elf_i386_relocate_section): Likewise.
4479	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4480	* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4481	(elf32_mips_get_relocated_section_content): Likewise.
4482	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4483	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4484	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4485	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4486
44872000-02-28  Nick Clifton  <nickc@cygnus.com>
4488
4489	* Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4490	* Makefile.in: Regenerate.
4491
4492	* configure.in: Add support for mips and sh pe vectors.
4493	* configure: regenerate.
4494
4495	* config.bfd: Add support for arm-wince, mips-pe and sh-pe
4496	targets.
4497
4498	* targets.c: Add mips and sh pe vectors.
4499
4500	* libpei.h (coff_final_link_postscript): Only define if not
4501	already defined.
4502
4503	* coffcode.h: Add support for WinCE magic numbers.
4504
4505	* peigen.c (pe_print_reloc): Update comment and rearrange
4506	appending of newline character.
4507
4508	* peicode.h: Add support for Image Library Format.
4509	(pe_ILF_vars): Structure containing data used by ILF code.
4510	(pe_ILF_make_a_section): New function.  Create a section based
4511	on ILF data.
4512	(pe_ILF_make_a_reloc): New function.  Create a reloc based on
4513	ILF data.
4514	(pe_ILF_make_a_symbol): New function.  Create a symbol based
4515	on ILF data.
4516	(pe_ILF_save_relocs): New function.  Store the relocs created
4517	by pe_ILF_make_a_reloc in a section.
4518	(pe_ILF_build_a_bfd): New function.  Create a BFD describing
4519	an ILF object.
4520	(pe_ILF_object_p): New function.  Return a bfd_target pointer
4521	for an ILF object.
4522	(pe_bfd_object_p): If an ILF object is detected call
4523	pe_ILF_object_p on it.
4524
4525	* coff-arm.c: Add support for WinCE relocs which are different
4526	from normal ARM COFF relocs.
4527	* pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4528
4529	* coff-sh.c: Add support for sh-pe target.
4530	* pe-sh.c: New file.  Support code for sh-pe target.
4531	* pei-sh.c: New file.  Support code for sh-pe target.
4532
4533	* pe-mips.c: New file.  Support code for mips-pe target.
4534	* pei-mips.c: New file.  Support code for mips-pe target.
4535
45362000-02-27  Jakub Jelinek  <jakub@redhat.com>
4537
4538	* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4539	architecture if the object causing the bump is dynamic.
4540	* elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4541	and also don't it for memory ordering.
4542	(sparc64_elf_write_relocs): Take src_rela out of the loop.
4543
45442000-02-27  Ian Lance Taylor  <ian@zembu.com>
4545
4546	* dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4547	calling bfd_get_section_size_before_reloc.
4548	(decode_line_info): Likewise.
4549	(_bfd_dwarf2_find_nearest_line): Likewise.
4550
45512000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
4552
4553	* Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4554	name of the libtool directory.
4555	* Makefile.in: Rebuild.
4556
4557Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
4558
4559	* som.c (SOM_HOWTO): Define.
4560	(som_hppa_howto_table): Use it.
4561
45622000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4563
4564	* config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4565
4566	* config.bfd: Enable 64 bit support for Solaris7+/sparc.
4567
45682000-02-24  Catherine Moore  <clm@cygnus.com>
4569
4570	* som.c (som_misc_symbol_info):  Add field
4571	secondary_def.
4572	(som_bfd_derive_misc_symbol_info):  Initialize
4573	secondary_def.
4574	(som_build_and_write_symbol_table): Keep track
4575	of secondary_def field.
4576	(som_slurp_symbol_table): Set BSF_WEAK symbol flag
4577	if secondary_def field is set.
4578	(som_bfd_ar_write_symbol_stuff): Initialize
4579	secondary_def.
4580
45812000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
4582
4583	* dwarf2.c (read_address): Read 16-bits addresses.
4584	(parse_comp_unit): Accept addr_size == 2.
4585
45862000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4587
4588	* bfd-in.h: Update copyright date.
4589
45902000-02-23  Linas Vepstas <linas@linas.org>
4591
4592	* cpu-i370.c: New file.
4593	* elf32-i370.c:  New file.
4594	* archures.c (enum bfd_architecture): Add bfd_arch_i370.
4595	(bfd_i370_arch): New.
4596	(bfd_archures_list): Add bfd_i370_arch.
4597	* elf.c (prep_headers): Add bfd_arch_i370.
4598	* Makefile.am: Add support for IBM 370 elf.
4599	* config.bfd: Likewise.
4600	* configure.in: Likewise.
4601	* libbfd.h (bfd_reloc_code_real_names): Likewise.
4602	* reloc.c (bfd_reloc_code_type): Likewise.
4603	* targets.c: Likewise.
4604
4605	* Makefile.in: Regenerate.
4606	* configure: Regenerate.
4607	* bfd-in2.h: Regenerate.
4608
46092000-02-22  Ian Lance Taylor  <ian@zembu.com>
4610
4611	* elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4612	invalid relocation types, and change them to R_386_NONE.
4613
46142000-02-22  H.J. Lu  <hjl@gnu.org>
4615
4616	* elflink.h (elf_link_add_object_symbols): If a version symbol is
4617	not defined, don't add a second ELF_VER_CHR.
4618
4619	* elflink.h (elf_bfd_final_link): Call output_extsym for global
4620	symbols converted to local symbols even when stripping all
4621	symbols.
4622	(elf_link_output_extsym): Process global symbols converted to
4623	local symbols even if they are being stripped.
4624
46252000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4626
4627	* archures.c (bfd_octets_per_byte): Return unsigned int.
4628	(bfd_arch_mach_octets_per_byte): Ditto.
4629	* libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4630	comparison warning.
4631	* section.c (bfd_get_section_size_before_reloc): Quell signed
4632	vs. unsigned comparison warning.
4633	(bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
4634	* trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4635	change.  What was I thinking?
4636	* bfd-in2.h: Regenerate.
4637
4638	* elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4639	(elf_gc_sections): Same here.
4640	(elf_gc_common_finalize_got_offsets): And here.
4641
46422000-02-21  Ian Lance Taylor  <ian@zembu.com>
4643
4644	ELF HPPA doesn't work at present; remove it until it does.
4645	* config.bfd: Comment out setting targ_defvec to
4646	bfd_elf32_hppa_vec.
4647	* Makefile.am: Rebuild dependencies.
4648	(BFD32_BACKENDS): Remove elf32-hppa.lo.
4649	(BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4650	(SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4651	* Makefile.in: Rebuild.
4652	* targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4653
46542000-02-18  Geoff Keating  <geoffk@cygnus.com>
4655
4656	* coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4657	is no bfd_free().  Revert bfd_free part of previous change.
4658
46592000-02-18  Geoff Keating  <geoffk@cygnus.com>
4660
4661	* coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4662	arrays.
4663	(coff_compute_section_file_positions): Use bfd_free to pair
4664	bfd_malloc.
4665	(coff_write_object_contents): Likewise.
4666
4667	* coff-rs6000.c (xcoff_howto_table_16): New variable.
4668	(xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4669
46702000-02-18  Ulrich Drepper  <drepper@cygnus.com>
4671
4672	* coff-rs6000.c (XCOFFARMAGBIG): New macro.
4673	(xcoff_ar_file_hdr_big): New structure.
4674	(SIZEOF_AR_FILE_HDR_BIG): New macro.
4675	(xcoff_ar_hdr_big): New structure.
4676	(SIZEOF_AR_HDR_BIG): New macro.
4677	(xcoff_big_format_p): New macro.
4678	(xcoff_ardata_big): New macro.
4679	(arch_xhdr_big): New macro.
4680	(xcoff_slurp_armap): Handle large archives.
4681	(xcoff_archive_p): Detect large archives.
4682	(xcoff_read_ar_hdr): Handle large archives.
4683	(xcoff_openr_next_archived_file): Handle large archives.
4684	(xcoff_generic_stat_arch_elt): Handle large archives.
4685	(xcoff_write_armap_old): Rename from xcoff_write_armap.
4686	(xcoff_write_armap_big): New function.
4687	(xcoff_write_armap): New function, dispatch to _old or _big.
4688	(xcoff_write_archive_contents_old): Rename from
4689	xcoff_write_archive_contents.
4690	(xcoff_write_archive_contents_big): New function.
4691	(xcoff_write_archive_contents): New function, dispatch to _old or
4692	_big.
4693
46942000-02-18  Richard Henderson  <rth@cygnus.com>
4695
4696	* elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4697	and hide_symbol members.
4698	(elf_link_hash_copy_indirect): Remove.
4699	(elf_link_hash_hide_symbol): Remove.
4700	(struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4701	and elf_backend_hide_symbol.
4702	(_bfd_elf_link_hash_copy_indirect): Declare.
4703	(_bfd_elf_link_hash_hide_symbol): Declare.
4704	* elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4705	(_bfd_elf_link_hash_hide_symbol): Likewise.
4706	(_bfd_elf_link_hash_table_init): Don't init killed members.
4707	* elflink.h (elf_link_add_object_symbols): Use the bed function
4708	pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4709	(elf_link_assign_sym_version): Likewise.
4710	* elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4711	(elf_backend_hide_symbol): Likewise.
4712	(elfNN_bed): Update for new members.
4713
47142000-02-17  Kevin Buettner  <kevinb@redhat.com>
4715
4716	* rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4717	STACK_END_ADDR): Define for new core file format.
4718	(LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4719	for handling the vagaries of the various core file structures used
4720	by AIX over the years.
4721	(rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4722	Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4723	core_dumpx structure.
4724
4725Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4726
4727	* archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4728	(bfd_mach_sh3_dsp): Likewise.
4729	(bfd_mach_sh4): Reinstate.
4730	(bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4731	* bfd-in2.h: Regenerate.
4732	* coff-sh.c (struct sh_opcode): flags is no longer short.
4733	(USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4734	(sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4735	(sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4736	(sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4737	(sh_opcodes): No longer const.
4738	(sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4739	(sh_insn_uses_reg): Check for USESAS and USESR8.
4740	(sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4741	(_bfd_sh_align_load_span): Return early for SH4.
4742	Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4743	Take into account that field b of a parallel processing insn
4744	could be mistaken for a separate insn.
4745	* cpu-sh.c (arch_info_struct): New array elements for
4746	sh2, sh-dsp and sh3-dsp.
4747	Reinstate element for sh4.
4748	(SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4749	(SH4_NEXT): Reinstate.
4750	(SH3_NEXT, SH3E_NEXT): Adjust.
4751	* elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4752	* elf32-sh.c (sh_elf_set_private_flags): New function.
4753	(sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4754	(sh_elf_merge_private_data): New function.
4755	(elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4756	(bfd_elf32_bfd_copy_private_bfd_data): Define.
4757	(bfd_elf32_bfd_merge_private_bfd_data): Change to
4758	sh_elf_merge_private_data.
4759
47602000-02-13  Richard Henderson  <rth@cygnus.com>
4761
4762	* elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4763	hide_symbol members.
4764	(elf_link_hash_copy_indirect): New.
4765	(elf_link_hash_hide_symbol): New.
4766	* elflink.h (elf_link_add_object_symbols): Break out copy from
4767	indirect new new symbol to elf.c.
4768	(elf_link_assign_sym_version): Break out privatization of
4769	non-exported symbol to elf.c.
4770	* elf.c (_bfd_elf_link_hash_copy_indirect): New.
4771	(_bfd_elf_link_hash_hide_symbol): New.
4772	(_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4773
47742000-02-13  Ian Lance Taylor  <ian@zembu.com>
4775
4776	* section.c (_bfd_strip_section_from_output): Add info parameter.
4777	If it passed as non-NULL, use it to check whether any input BFD
4778	has an input section which uses this output section.  Change all
4779	callers.
4780	* bfd-in2.h: Rebuild.
4781
4782	* bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4783	bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4784	1999-11-29.
4785	* bfd-in2.h: Rebuild.
4786
47872000-02-10  Timothy Wall  <twall@cygnus.com>
4788
4789	* coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4790	allow final modifications of swapped-in symbol.
4791	(coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4792	* coffcode.h (coff_write_relocs): Use macro
4793	SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4794	symbol index should be set to -1.
4795
4796Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
4797
4798	* coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4799	USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4800	* (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4801	* (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4802	sh_insns_uses_or_sets_freg): New functions.
4803	* (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4804	* (sh_insns_conflict): Use new functions and new macros to
4805	detect conflicts when two instructions both set same integer registers,
4806	both set same fp register, and both set special register.
4807
48082000-02-09  Timothy Wall  <twall@cygnus.com>
4809
4810	* coffgen.c (coff_real_object_p): Set arch/mach info prior to
4811	swapping in sections, so that the swapping routines have access to
4812	the arch/mach info.
4813
48142000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4815
4816	* coff-go32.c: Update comment. Update copyright.
4817
48182000-01-27  Thomas de Lellis  <tdel@windriver.com>
4819
4820	* syms.c (bfd_decode_symclass)
4821	Two new class characters were added - 'V' and 'v'.  The
4822	meaning of 'W' is now restricted to just weak non-object
4823	symbols.  This allows differentiation between, for example,
4824	weak functions vs weak objects.  nm for example now dumps:
4825	'W' = weak global
4826	'w' = weak unresolved
4827	'V' = weak global object
4828	'v' = weak unresolved object
4829
4830	(bfd_is_undefined_symclass): New function.  Return true if the
4831	given symbol class represents and undefined/unresolved symbol.
4832
4833	(bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4834	unresolved symbols.
4835
4836	* bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4837
4838	* elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4839	STT_ARM_16BIT flag set, but it is not attached to a data object
4840	return STT_ARM_16BIT so that it will be treated as code by the
4841	disassembler.
4842
48432000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4844
4845	* coff-i386.c (i3coff_object_p): Remove prototype.
4846	Update copyright.
4847
4848	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4849	to name.  Update copyright.
4850
4851	* trad-core.c (trad_unix_core_file_p): Cast core_regsec
4852	assignment to avoid warning.  Update copyright.
4853
48542000-01-24  Robert Lipe  (robertl@sco.com)
4855
4856	* coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4857	instead of using GNU C extension.
4858
48592000-01-21  Nick Clifton  <nickc@cygnus.com>
4860
4861	* libbfd.c (bfd_read): Do not attempt to get a negativly sized
4862	amount from a bfd_in_memory structure.
4863	(bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4864	structure.
4865
48662000-01-14  Nick Clifton  <nickc@cygnus.com>
4867
4868	* linker.c (default_indirect_link_order): oops - fix incorrectly
4869	applied patch from Tim Wall.
4870
48712000-01-13  Timothy Wall (twall@tiac.net>
4872
4873	* coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4874	= scnhsz, filhsz, relsz, aoutsz, etc)
4875
4876	* coffswap.h: Ditto.
4877
48782000-01-13  Nick Clifton  <nickc@cygnus.com>
4879
4880	* elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4881	interwork thumb to arm stub.
4882
48832000-01-13  Timothy Wall (twall@tiac.net>
4884
4885	* archures.c (bfd_octets_per_byte): New function: Return
4886	target byte size.
4887	(bfd_arch_mach_octets_per_byte): New function: Return target
4888	byte size.
4889
4890	* section.c: Distinguish between octets and bytes for usage of
4891	_cooked_size,  _raw_size, and output_offset.  Clarify
4892	description of bfd_set_section_contents.
4893
4894	* bfd-in2.h: Regenerate.
4895
4896	* coffgen.c: Indicate that the offset parameter is in bytes, not
4897	octets.
4898
4899	* cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4900	where appropriate to get the octet offset when calling
4901	bfd_set_section_contents.
4902	(bfd_coff_reloc_link_order): Ditto.
4903
4904	* linker.c (bfd_generic_reloc_link_order): Ditto.
4905	(_bfd_default_link_order): Ditto.
4906
4907	* reloc.c (bfd_perform_relocation):  Distinguish between octets
4908	and bytes.  Use octets when indexing into octet data; use bytes
4909	when calculating target addresses.
4910	(bfd_install_relocation): Ditto.
4911
4912	* srec.c (srec_write_section): Ditto.
4913
49142000-01-13  Nick Clifton  <nickc@cygnus.com>
4915
4916	* coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4917	3 to 2.  This allows 4 byte sized sections, which is necessary for
4918	dlltool to build functioning DLLs.
4919
49202000-01-10  Philip Blundell  <pb@futuretv.com>
4921
4922	* config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4923	(arm*-*-conix*): New target.
4924
49252000-01-10  Egor Duda  <deo@logos-m.ru>
4926
4927	* config.bfd: Include elf32_i386 vector to target list for cygwin
4928	and mingw.
4929
4930	* config.in: Undefine HAVE_WIN32_PSTATUS_T.
4931	* configure.in: Test for structure win32_pstatus_t in
4932	<sys/procfs.h>
4933	* configure: Regenerate.
4934
4935	* elf.c (elfcore_grok_win32pstatus): New function: process
4936	win32_pstatus_t notes in elf core file.
4937	(elfcore_grok_note): Detect win32_pstatus notes.
4938
49392000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
4940
4941	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4942	visibility.
4943	* elflink.h (elf_link_add_object_symbols): Combine visibilities.
4944	* elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4945
4946For older changes see ChangeLog-9899
4947
4948Local Variables:
4949mode: change-log
4950left-margin: 8
4951fill-column: 74
4952version-control: never
4953End:
4954