1 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
3 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
4 DT_PLTGOT into the dynamic section if there is a PLT.
6 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8 * configure.in: Set is_release=y for 2.12.1 release.
11 2002-05-13 David Edelsohn <edelsohn@gnu.org>
13 * configure.in: Auto-configure HAVE_ST_C_IMPL.
14 * configure: Regenerate.
15 * config.in: Regenerate.
16 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
19 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
21 Merge from mainline (to elf32-mips.c):
22 2002-05-03 H.J. Lu (hjl@gnu.org)
24 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
25 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
26 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
27 to hide a global symbol.
28 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
31 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
32 Daniel Jacobowitz <drow@mvista.com>
34 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
37 2002-05-09 Alan Modra <amodra@bigpond.net.au>
39 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
42 2002-05-08 Alan Modra <amodra@bigpond.net.au>
43 * elf32-ppc.c (ppc_elf_create_got): New function.
44 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
45 _bfd_elf_create_dynamic_sections. Correct .plt flags.
46 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
47 _bfd_elf_create_got_section.
49 2002-05-07 Alan Modra <amodra@bigpond.net.au>
50 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
51 * elfxx-target.h (elf_backend_rela_normal): Define.
52 (elfNN_bed): Init rela_normal.
53 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
54 for section symbols here if rela_normal. Simplify abs section test.
55 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
56 return immediately. Remove code handling relocatable linking.
57 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
58 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
59 * elf32-i370.c (i370_elf_relocate_section): Likewise.
60 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
61 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
62 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
63 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
64 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
65 * elf32-s390.c (elf_s390_relocate_section): Likewise.
66 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
67 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
68 * elf64-s390.c (elf_s390_relocate_section): Likewise.
69 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
70 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
71 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
72 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
73 * elf-m10200.c (elf_backend_rela_normal): Define.
74 * elf-m10300.c (elf_backend_rela_normal): Define.
75 * elf32-fr30.c (elf_backend_rela_normal): Define.
76 * elf32-i370.c (elf_backend_rela_normal): Define.
77 * elf32-i860.c (elf_backend_rela_normal): Define.
78 * elf32-m68k.c (elf_backend_rela_normal): Define.
79 * elf32-mcore.c (elf_backend_rela_normal): Define.
80 * elf32-openrisc.c (elf_backend_rela_normal): Define.
81 * elf32-ppc.c (elf_backend_rela_normal): Define.
82 * elf32-s390.c (elf_backend_rela_normal): Define.
83 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
84 * elf64-ppc.c (elf_backend_rela_normal): Define.
85 * elf64-s390.c (elf_backend_rela_normal): Define.
86 * elf64-x86-64.c (elf_backend_rela_normal): Define.
87 * elfxx-ia64.c (elf_backend_rela_normal): Define.
88 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
89 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
91 2002-05-06 Alan Modra <amodra@bigpond.net.au>
92 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
93 when not relocatable. Fix reloc_emitter call for K&R.
95 2002-05-04 Alan Modra <amodra@bigpond.net.au>
96 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
97 (read_abbrevs): Change "offset" param to bfd_vma.
98 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
99 Change "abbrev_offset" to bfd_vma.
100 (read_indirect_string): Use correct conversion chars in error
101 message format string, cast bfd_vma's to unsigned long.
102 (read_abbrevs): Likewise.
103 (read_attribute_value): Likewise.
104 (decode_line_info): Likewise.
105 (scan_unit_for_functions): Likewise.
106 (parse_comp_unit): Likewise.
108 2002-05-04 Bob Byrnes <byrnes@curl.com>
109 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
112 2002-05-02 Alan Modra <amodra@bigpond.net.au>
113 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
115 <R_PPC64_SECTOFF_DS>: Likewise.
116 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
118 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
119 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
121 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
122 (ppc64_elf_ha_reloc): New function.
123 (ppc64_elf_brtaken_reloc): New function.
124 (ppc64_elf_sectoff_reloc): New function.
125 (ppc64_elf_sectoff_ha_reloc): New function.
126 (ppc64_elf_toc_reloc): New function.
127 (ppc64_elf_toc_ha_reloc): New function.
128 (ppc64_elf_toc64_reloc): New function.
129 (ppc64_elf_unhandled_reloc): New function.
130 (ppc64_elf_howto_raw): Use the above.
131 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
132 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
133 <R_PPC64_SECTOFF_DS>: Likewise.
134 (IS_ABSOLUTE_RELOC): Update.
135 (struct ppc_link_hash_table): Add have_undefweak.
136 (ppc64_elf_link_hash_table_create): Init.
137 (func_desc_adjust): Set have_undefweak.
138 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
139 add the .sfpr blr when have_undefweak.
140 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
141 and relocatable test. Return TOCstart and don't set elf_gp.
142 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
143 offset calculation. Add assert on weak sym branch tweaks.
144 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
145 (ppc64_elf_toc): Declare.
147 2002-05-01 Alan Modra <amodra@bigpond.net.au>
148 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
151 2002-05-01 Alan Modra <amodra@bigpond.net.au>
152 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
153 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
154 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
155 call branches. Correct undefined weak destination.
156 (ppc64_elf_func_desc_adjust): Always create at least one blr in
157 .sfpr, and correct case where either only savef* or restf* is
160 2002-04-09 DJ Delorie <dj@redhat.com>
161 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
163 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
165 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
166 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
168 2002-05-02 Richard Henderson <rth@redhat.com>
170 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
171 vs SHN_UNDEF to zero.
173 2002-04-27 Alan Modra <amodra@bigpond.net.au>
176 2002-04-12 Alan Modra <amodra@bigpond.net.au>
177 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
180 2002-02-21 Andreas Jaeger <aj@suse.de>
181 * elf64-x86-64.c: Major rework that introduces all recent changes
182 to the x86-64 backend. Get a closer match to elf32-i386.
183 (struct elf64_x86_64_dyn_relocs): Rename from
184 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
186 (struct elf64_x86_64_link_hash_table): Add short cuts to some
188 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
189 remove casts, initialize new hash members.
190 (create_got_section): New.
191 (elf64_x86_64_create_dynamic_sections): New.
192 (elf64_x86_64_copy_indirect_symbol): New.
193 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
194 relocs, .got or .relgot here but do it in allocate_dynrelocs.
195 Reference count possible .plt and .got entries. Don't test input
196 section SEC_READONLY here to try to avoid copy relocs, and keep
197 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
198 DF_TEXTREL here. Delay setting of variables until needed. Cache
199 pointer to "sreloc" section in elf_section_data. Tweak condition
200 under which .got created. Report files with bad relocation
202 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
203 Reference count possible .plt entries. Don't deallocate .got and
205 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
206 do copy reloc processing for weakdefs. Remove redundant casts and
207 aborts. Delay setting of vars until needed. Move creation of
208 dynamic symbols and allocation of .plt and .rela.plt to
209 allocate_dynrelocs. Replace BFD_ASSERT with abort.
210 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
211 (allocate_dynrelocs): New.
212 (readonly_dynrelocs): New.
213 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
214 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
215 Zero out the dynamic allocated content space.
216 (elf64_x86_64_discard_copies): Removed.
217 (elf64_x86_64_relocate_section): Make use of dynamic section
218 short-cuts. Localise vars, and delay setting. Better error
219 reporting, replace BFD_ASSERT with abort. Check
220 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
221 regular object file and tread the weak definition as the normal
222 one. Don't discard relocs for undefweak or undefined symbols and
223 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
225 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
226 symbols that have been forced local. Use same test to decide if
227 we can use a relative reloc for got as relocate_section. Expand
228 SHN_UNDEF comment. Move expressions out of function calls.
229 Replace BFD_ASSERT with abort.
230 (bfd_elf64_bfd_final_link): Removed.
231 (elf_backend_copy_indirect_symbol): Define.
233 * reloc.c: Move sh relocs to where they belong.
234 * libbfd.h, bfd-in2.h: Regenerate.
237 2002-04-26 Alan Modra <amodra@bigpond.net.au>
238 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
239 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
240 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
241 same as the output before calling elf_link_input_bfd.
242 * coffcode.h (coff_compute_section_file_positions): Set
243 section_tail after shuffling section list.
245 2002-04-23 Alan Modra <amodra@bigpond.net.au>
246 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
247 under which a plt call stub is used.
248 (final_link_relocate): Similarly.
249 (allocate_plt_static): Clear h-plabel except when plt entry is
250 exclusively used for a plabel.
251 (allocate_dynrelocs): Use the above to simplify plt sizing.
252 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
253 (elf32_hppa_link_hash_table_create): Init.
255 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
256 (elf32_hppa_check_relocs): Set has_22bit_branch.
257 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
258 (final_link_relocate): Likewise.
260 2002-04-20 Alan Modra <amodra@bigpond.net.au>
261 * archures.c (bfd_arch_info): Add comment on list order.
262 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
263 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
264 is always at head of list.
265 * bfd-in2.h: Regenerate.
267 2002-04-16 Alan Modra <amodra@bigpond.net.au>
268 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
269 type rather than just assuming entries are ELF.
270 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
271 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
272 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
273 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
274 rather than elf_link_hash_entry.
276 2002-04-15 Alan Modra <amodra@bigpond.net.au>
277 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
279 2002-04-08 Randolph Chung <tausq@debian.org>
280 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
281 (elf32_hppa_final_link): Split out sorting logic to..
282 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
283 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
285 2002-04-26 Richard Smith <richard@ex-parrot.com>
286 Jakub Jelinek <jakub@redhat.com>
288 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
289 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
291 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
294 2002-04-26 Jakub Jelinek <jakub@redhat.com>
296 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
297 search table if some FDE is DW_EH_PE_aligned encoded either.
298 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
300 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
302 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
303 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
304 definition of these functions for ARM_WINCE builds as they are
306 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
307 for ARM_WINCE builds.
309 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
311 * ihex.c (ihex_write_object_contents): Fix check for records
312 crossing 64K boundaries.
314 2002-04-06 Hans-Peter Nilsson <hp@axis.com>
316 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
317 R_CRIS_32_PCREL>: Fix typo in name.
318 (cris_elf_check_relocs): Always create .rela.got here when
319 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
320 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
323 2002-04-04 Alan Modra <amodra@bigpond.net.au>
325 * configure.in: Bump version to 2.12.1 and comment out is_release.
326 * configure: Regenerate.
327 * dep-in.sed: Cope with absolute paths.
328 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
330 * Makefile.in: Regenerate.
333 2002-04-04 Alan Modra <amodra@bigpond.net.au>
334 * srec.c (MAXCHUNK, Chunk): Revise comments.
335 (srec_write_record): Correct buffer size.
336 (srec_write_header): Do without intermediate buffer.
337 (srec_write_section): Validate Chunk.
338 (srec_write_terminator): Pass NULL instead of dummy buffer.
339 (srec_write_symbols): Pass file and symbol names directly to
340 bfd_bwrite so sprintf won't overflow buffer.
342 2002-04-03 Jakub Jelinek <jakub@redhat.com>
343 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
344 PC relative relocs against hidden symbols.
345 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
347 2002-04-03 Alan Modra <amodra@bigpond.net.au>
348 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
349 LMAs, loop over segments until p_vaddr and p_memsz specify an
350 extent enclosing the section.
352 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
353 * ihex.c (ihex_write_object_contents): Do not allow records to
354 cross a 64K boundary - wrap if necessary.
356 2002-03-28 Alan Modra <amodra@bigpond.net.au>
357 * linker.c (link_action): Ignore duplicate warning syms.
358 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
359 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
360 (elf_adjust_dynamic_symbol): Likewise.
361 (elf_export_symbol): Likewise.
362 (elf_link_find_version_dependencies): Likewise.
363 (elf_link_assign_sym_version): Likewise.
364 (elf_link_sec_merge_syms): Likewise.
365 (elf_link_output_extsym): Likewise.
366 (elf_gc_sweep_symbol): Likewise.
367 (elf_gc_propagate_vtable_entries_used): Likewise.
368 (elf_gc_smash_unused_vtentry_relocs): Likewise.
369 (elf_gc_allocate_got_offsets): Likewise.
370 (elf_collect_hash_codes): Likewise.
371 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
372 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
373 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
374 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
375 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
376 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
377 (elf_cris_discard_excess_dso_dynamics): Likewise.
378 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
379 (mark_PIC_calls): Likewise.
380 (allocate_plt_static): Likewise.
381 (allocate_dynrelocs): Likewise.
382 (readonly_dynrelocs): Likewise.
383 * elf32-i386.c (allocate_dynrelocs): Likewise.
384 (readonly_dynrelocs): Likewise.
385 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
386 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
387 * elf32-mips.c (mips_elf_output_extsym): Likewise.
388 (mips_elf_sort_hash_table_f): Likewise.
389 (mips_elf_check_mips16_stubs): Likewise.
390 * elf32-s390.c (allocate_dynrelocs): Likewise.
391 (readonly_dynrelocs): Likewise.
392 * elf32-sh.c (sh_elf_discard_copies): Likewise.
393 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
394 (xstormy16_relax_plt_realloc): Likewise.
395 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
396 (elf64_alpha_output_extsym): Likewise.
397 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
398 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
399 (mips_elf64_check_mips16_stubs): Likewise.
400 (mips_elf64_output_extsym): Likewise.
401 * elf64-ppc.c (func_desc_adjust): Likewise.
402 (allocate_dynrelocs): Likewise.
403 (readonly_dynrelocs): Likewise.
404 * elf64-s390.c (allocate_dynrelocs): Likewise.
405 (readonly_dynrelocs): Likewise.
406 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
407 * elf64-x86-64.c (elf64_x86_64_discard_copies): Likewise.
408 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
409 * aoutx.h (aout_link_write_other_symbol): Likewise.
410 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
411 (_bfd_coff_write_global_sym): Likewise.
412 * i386linux.c (linux_tally_symbols): Likewise.
413 * m68klinux.c (linux_tally_symbols): Likewise.
414 * sparclinux.c (linux_tally_symbols): Likewise.
415 * pdp11.c (aout_link_write_other_symbol): Likewise.
416 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
417 * xcofflink.c (xcoff_build_ldsyms): Likewise.
418 (xcoff_write_global_symbol): Likewise.
419 * cofflink.c (_bfd_coff_final_link): Formatting.
420 * elf32-i386.c (elf_i386_check_relocs): Formatting.
421 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
422 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
423 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
424 (mips_elf64_final_link): Likewise.
425 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
428 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
429 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
430 <case R_ARM_GOT>): Handle relocations to Thumb functions.
432 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
433 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
434 STT_NOTYPE symbols to STT_OBJECT.
436 2002-03-13 Alan Modra <amodra@bigpond.net.au>
437 * archures.c (bfd_default_compatible): Test bits_per_word.
438 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
439 bfd_default_compatible.
440 * cpu-i370.c (i370_compatible): Likewise.
441 * cpu-sparc.c (sparc_compatible): Likewise.
442 * cpu-h8300.c (compatible): Test in->arch == out->arch.
444 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
445 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
446 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
447 * bfd-in2.h: Regenerate.
448 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
449 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
451 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
452 (elf_s390_reloc_type_lookup): Likewise.
453 (elf_s390_check_relocs): Likewise.
454 (elf_s390_gc_sweep_hook): Likewise.
455 (elf_s390_relocate_section): Likewise.
456 (elf_s390_object_p): Use renamed architecture define.
457 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
459 2002-04-03 Alan Modra <amodra@bigpond.net.au>
462 2002-03-28 Alan Modra <amodra@bigpond.net.au>
463 * cpu-mips.c (mips_compatible): Make static, prototype.
465 2002-03-14 Alan Modra <amodra@bigpond.net.au>
466 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
469 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
471 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
472 which caused the returned LWP ID to always be 0.
474 2002-04-01 Richard Henderson <rth@redhat.com>
476 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
477 (elf32_sparc_relocate_section): Use it to figure out when to
478 initialize .got entries.
479 * elf64-sparc.c: Similarly.
481 2002-03-28 Alan Modra <amodra@bigpond.net.au>
483 * aclocal.m4: Regenerate.
484 * config.in: Regenerate.
485 * Makefile.am: Run "make dep-am".
486 * Makefile.in: Regenerate.
489 2002-03-27 Gregory Steuck <greg@nest.cx>
490 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
491 terminating NULL if empty symbol table.
492 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
494 2002-03-26 Alan Modra <amodra@bigpond.net.au>
495 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
497 2002-03-23 Alan Modra <amodra@bigpond.net.au>
498 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
499 section file offset for !SEC_LOAD sections.
501 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
502 * dwarf2.c (struct funcinfo): Move up.
503 (lookup_address_in_function_table): New argument function_ptr.
505 (lookup_address_in_line_table): New argument function. If function
506 is non-NULL, use it to handle ``addr'' before the first line note of
508 (comp_unit_find_nearest_line): Update and swap calls to
509 lookup_address_in_function_table and lookup_address_in_line_table.
510 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
511 N_SLINE encountered if we see an N_FUN before any N_SLINE.
513 2002-03-18 Alan Modra <amodra@bigpond.net.au>
514 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
515 * libbfd.h: Regenerate.
516 * archive.c (coff_write_armap): Pass on failures from
517 bfd_write_bigendian_4byte_int.
519 2002-03-14 H.J. Lu <hjl@gnu.org>
520 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
521 error to bfd_error_nonrepresentable_section for reinit_array
524 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
525 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
526 OR it in rather than replacing previously selected flags.
527 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
528 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
530 2002-03-14 Alan Modra <amodra@bigpond.net.au>
531 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
532 ensure reloc size matches before calling elf_link_input_bfd.
533 Add an assert to check reloc size when counting output relocs.
535 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
536 * mmo.c (mmo_get_loc): Return NULL rather than false.
538 2002-03-13 Alan Modra <amodra@bigpond.net.au>
539 * elflink.h: Formatting fixes.
540 (elf_link_output_extsym): Merge undefined and undef weak cases.
541 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
542 when word size of input matches output word size.
544 2002-03-07 H.J. Lu (hjl@gnu.org)
545 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
546 as the type for bfd_reloc_val.
548 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
549 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
550 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
551 (elf_hppa_final_link_relocate): Correct relocations for indirect
552 references to local data through the DLT. Fix .opd creation for
553 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
554 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
555 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
556 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
557 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
558 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
559 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
561 2002-03-05 Jakub Jelinek <jakub@redhat.com>
562 * merge.c (_bfd_merge_sections): Don't segfault if there
563 is nothing to merge due to GC.
565 2002-03-05 Alan Modra <amodra@bigpond.net.au>
566 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
567 symbols that have been forced local.
568 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
569 to output forced local syms for non-shared link.
570 (elf_link_output_extsym): Tweak condition for calling backend
571 adjust_dynamic_symbol so that previous behaviour is kept.
572 Whitespace changes throughout file.
574 2002-03-04 H.J. Lu <hjl@gnu.org>
575 * elf.c (bfd_section_from_shdr): Handle special sections,
576 .init_array, .fini_array and .preinit_array.
577 (elf_fake_sections): Likewise.
578 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
579 DT entry only if the section is in output for .init_array,
580 .fini_array and .preinit_array. Complain about .preinit_array
582 (elf_bfd_final_link): Warn zero size for .init_array,
583 .fini_array and .preinit_array sections.
584 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
585 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
586 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
589 2002-03-01 David Mosberger <davidm@hpl.hp.com>
590 * elflink.h (size_dynamic_sections): If section named
591 ".preinit_array" exists, create DT_PREINIT_ARRAY and
592 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
593 ".init_array" and ".fini_array".
594 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
595 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
598 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
599 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
601 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
602 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
603 non-zero physical addresses when adjusting the LMAs of new
606 2002-02-11 Michael Snyder <msnyder@redhat.com>
607 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
608 * elf.c (elfcore_grok_pstatus): Add prototype.
609 (elfcore_grok_lwpstatus): Add prototype.
610 (elfcore_write_lwpstatus): New function.
611 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
613 2002-03-20 Tom Rix <trix@redhat.com>
615 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
616 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
617 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
619 Mon Mar 18 18:06:54 CET 2002 Jan Hubicka <jh@suse.cz>
621 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
623 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
625 * configure.in: Set is_release=y for 2.12 release.
626 * configure: Likewise.
628 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
630 * configure.in: Bump version to 2.12.
631 * configure: Likewise.
633 2002-03-05 Alan Modra <amodra@bigpond.net.au>
635 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
636 * configure: Regenerate.
638 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
640 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
643 2002-02-25 Alan Modra <amodra@bigpond.net.au>
645 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
646 (ppc64_elf_relocate_section): Don't generate power4 style branch
647 hints for *_BRTAKEN and *_BRNTAKEN relocs.
649 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
650 (struct ppc_link_hash_table): Add sfpr.
651 (ppc64_elf_link_hash_table_create): Init it.
652 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
654 (create_linkage_sections): ..here. Make .sfpr too.
655 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
657 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
658 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
659 ._restf* functions, and create as needed.
660 (func_desc_adjust): Only force_local for shared libs.
662 2002-02-22 Jakub Jelinek <jakub@redhat.com>
664 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
666 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
668 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
670 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
673 2002-02-19 Jakub Jelinek <jakub@redhat.com>
675 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
676 absptr -> pcrel optimization for shared libs.
677 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
678 library cannot be converted to pcrel.
679 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
681 * elf32-i386.c (elf_i386_relocate_section): If
682 _bfd_elf_section_offset returned -2, skip, but make sure the
683 relocation is installed.
684 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
685 * elf32-cris.c (cris_elf_relocate_section): Likewise.
686 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
687 * elf32-i370.c (i370_elf_relocate_section): Likewise.
688 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
689 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
690 * elf32-s390.c (elf_s390_relocate_section): Likewise.
691 * elf32-sh.c (sh_elf_relocate_section): Likewise.
692 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
693 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
694 * elf64-s390.c (elf_s390_relocate_section): Likewise.
695 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
696 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
697 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
698 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
699 _bfd_elf_section_offset returning -2 the same way as -1.
700 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
701 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
703 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
705 2002-02-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
707 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
708 from _bfd_elf_hppa_gen_reloc_type.
709 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
710 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
711 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
712 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
714 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
716 * mmo.c: Correct and improve comments.
717 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
718 zero-pad. Use input to fill up non-empty bfd buffer.
719 (mmo_flush_chunk): New function.
720 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
721 changed. Don't emit location specifier if VMA is same as
722 *LAST_VMAP after omitting leading zero contents. Call
723 mmo_flush_chunk before emitting location specifier.
724 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
725 with mmo_write_loc_chunk calls.
726 (mmo_internal_write_section): Call mmo_flush_chunk after
728 (mmo_write_symbols_and_terminator): Move :Main to first position
729 in symbol array. Add faked one if it does not exist if there are
730 other symbols. Don't add it if there are no symbols at all. Move
731 out test for value of :Main from symbol loop. Rename table
732 fakemain to maintable and variable mainsym to fakemain.
734 2002-02-15 Richard Henderson <rth@redhat.com>
736 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
737 section with no got matches any got. Simplify error generaion.
739 2002-02-14 Alan Modra <amodra@bigpond.net.au>
741 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
743 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
745 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
747 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
750 2002-02-13 Matt Fredette <fredette@netbsd.org>
752 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
755 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
757 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
758 loading its contents if there's nothing to do in it.
760 2002-02-12 Alan Modra <amodra@bigpond.net.au>
762 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
765 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
766 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
767 (ppc64_elf_finish_dynamic_sections): Set values for them.
769 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
771 * elf32-sh.c: Added missing prototypes.
772 * elf32-sh64.c: Likewise.
773 (sh_elf_align_loads): Mark unused args as such.
774 * elf64-sh64.c: Added missing prototypes.
775 (struct elf_sh64_link_hash_entry): Fix typo.
776 (sh_elf64_relocate_section): Fix info argument passed to
777 _bfd_elf_section_offset.
779 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
781 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
783 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
785 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
786 cast warnings for the common case.
788 2002-02-09 Richard Henderson <rth@redhat.com>
790 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
791 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
792 (elf64_alpha_relocate_section): Likewise.
793 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
794 * bfd-in2.h, libbfd.h: Rebuild.
796 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
798 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
799 that base-plus-offset reloc accounting is consistent.
800 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
801 up to date for undefined symbols.
803 2002-02-08 Eric Christopher <echristo@redhat.com>
805 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
807 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
808 sections for the O32 ABI.
810 2002-02-08 Chris Demetriou <cgd@broadcom.com>
812 * elf32-arm.h: Fix formatting of _("...").
813 * elf32-d10v.c: Likewise.
814 * elf32-m68k.c: Likewise.
815 * elf32-mips.c: Likewise.
817 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
819 * coff-or32.c: Fix compile time warning messages.
821 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
824 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
825 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
826 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
827 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
828 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
829 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
830 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
831 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
832 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
833 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
835 * libbfd.h, bfd-in2.h: Rebuilt.
836 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
837 (sh_reloc_map): Map them.
838 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
839 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
840 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
841 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
842 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
843 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
844 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
845 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
846 datalabel_got_offset.
847 (sh_elf_link_hash_newfunc): Initialize it.
848 (sh_elf_relocate_section): Augment the scope of
849 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
850 GOT and GOTOFF handling to new SHmedia relocation types. Support
852 (sh_elf_check_relocs): Likewise.
853 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
854 PLT entries using movi_shori_putval. Support GOT_BIAS.
855 (sh_elf_finish_dynamic_sections): Likewise.
856 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
857 relocation, it's now done by the caller.
859 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
860 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
861 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
862 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
863 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
864 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
865 sh64_elf64_hash_table): New.
866 (sh_elf64_howto_table): Introduce new relocs.
867 (sh_elf64_info_to_howto): Accept new PIC relocs.
868 (sh_elf64_relocate_section): Augment the scope of
869 seen_stt_datalabel. Support new PIC relocs.
870 (sh_elf64_check_relocs): Support new PIC relocs.
871 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
872 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
873 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
874 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
875 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
876 movi_shori_putval, movi_3shori_putval,
877 sh64_elf64_create_dynamic_sections,
878 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
879 sh64_elf64_size_dynamic_sections,
880 sh64_elf64_finish_dynamic_symbol,
881 sh64_elf64_finish_dynamic_sections): New.
882 (elf_backend_create_dynamic-sections,
883 bfd_elf64_bfd_link_hash_table_create,
884 elf_backend_adjust_dynamic_symbol,
885 elf_backend_size_dynamic_sections,
886 elf_backend_finish_dynamic_symbol,
887 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
888 elf_backend_plt_readonly, elf_backend_want_plt_sym,
889 elf_backend_got_header_size, elf_backend_plt_header_size):
891 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
892 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
893 match official numbers and names; moved unmaching ones to the
895 * elf32-sh64.c, elf64-sh64.c: Likewise.
896 2001-03-12 DJ Delorie <dj@redhat.com>
897 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
899 2001-03-12 DJ Delorie <dj@redhat.com>
900 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
902 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
903 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
904 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
905 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
906 .cranges section with SEC_SORT_ENTRIES set.
907 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
908 incoming sorted .cranges section.
909 (sh64_bfd_elf_copy_private_section_data): New.
910 (sh64_elf_final_write_processing): Only sort .cranges and modify
911 start address if called by linker.
912 2001-01-08 Ben Elliston <bje@redhat.com>
913 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
914 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
915 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
916 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
917 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
918 line. Add comments before all entries.
919 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
921 (sh_elf64_reloc): Correct head comment.
922 (sh_elf64_relocate_section): Correct spacing.
923 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
924 instead call reloc_dangerous callback.
925 <case R_SH_SHMEDIA_CODE>: New case.
926 (sh_elf64_gc_mark_hook): Correct spacing.
927 (sh_elf64_check_relocs): Ditto.
928 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
930 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
932 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
933 clarify describing comment. Add comments before all entries.
934 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
935 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
936 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
937 Sort .cranges section in final link. Prepare to set bit 0 on
939 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
940 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
941 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
943 (sh64_backend_section_from_shdr): New, to recognize
944 SHT_SH5_CR_SORTED on incoming .cranges section.
945 (elf_backend_section_from_shdr): Define.
946 (sh64_elf_final_write_processing): Sort outgoing .cranges
947 section. (New, temporarily disabled:) Set bit 0 on entry address
948 according to ISA type.
949 (sh64_find_section_for_address): New.
950 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
951 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
952 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
953 bfd_malloc, not xmalloc.
954 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
956 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
957 temporarily disabled) setting bit 0 on entry address.
958 (elf_backend_final_write_processing): Define.
959 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
960 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
961 be a proper relocation for PTA and PTB rather than a marker.
962 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
963 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
964 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
965 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
966 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
968 * elf64-sh64.c: Ditto.
969 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
970 * elf32-sh64.c: Include opcodes/sh64-opc.h
971 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
972 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
973 parameters. No unused parameters. Caller changed.
974 <case R_SH_PT_16>: New case.
975 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
976 * Makefile.in: Regenerate.
977 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
978 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
980 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
981 (sh64_elf_merge_private_data): Ditto.
982 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
983 to access stored section flags.
984 (sh64_elf_final_write_processing): Return immediately unless
985 called by linker. Use sh64_elf_section_data (cranges) to get size
986 of linker-generated cranges entries.
987 (sh64_elf_copy_private_data): Add missing "return true".
988 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
989 (sh_elf64_merge_private_data): Ditto.
990 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
991 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
992 elf64-sh64.c:sh64_elf_fake_sections.
993 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
994 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
995 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
996 (sh64_elf_final_write_processing): New.
997 (elf_backend_final_write_processing): Define.
998 (sh64_elf_fake_sections): Get header flags from tdata field.
999 (sh64_elf_copy_private_data): Do not call
1000 sh64_elf_copy_private_data_internal, just copy e_flags field.
1001 (sh64_elf_merge_private_data): Do not call
1002 sh64_elf_copy_private_data_internal.
1003 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1004 Remove EF_SH64_ABI64, let ELF size make difference.
1005 Remove SH64-specific BFD section flag.
1006 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1007 containing SHmedia through elf_section_data (asect)->tdata
1008 non-zero, not using a BFD section flag.
1009 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1010 (sh64_elf_merge_private_data): Similar.
1011 (elf_backend_section_flags): Don't define.
1012 (sh64_elf_backend_section_flags): Delete.
1013 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1015 (sh_elf64_merge_private_data): Similar.
1016 * section.c (Section flags definitions): Don't define
1018 (bfd-in2.h): Regenerate.
1019 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1020 Make DataLabel references work with partial linking.
1021 * elf32-sh64.c: Fix formatting.
1022 (sh64_elf_link_output_symbol_hook): New.
1023 (elf_backend_link_output_symbol_hook): Define to
1024 sh64_elf_link_output_symbol_hook.
1025 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1026 undefined if partial linking. Adjust sanity check.
1027 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1028 (elf_backend_link_output_symbol_hook): Define to
1029 sh64_elf64_link_output_symbol_hook.
1030 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1031 undefined if partial linking. Adjust sanity check.
1032 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1033 Implement semantics for inter-file DataLabel references.
1034 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1035 (sh64_elf64_add_symbol_hook): New.
1036 (sh_elf64_relocate_section): If passing an indirect symbol with
1037 st_type STT_DATALABEL on the way to a symbol with st_other
1038 STO_SH5_ISA32, do not bitor 1 to the relocation.
1039 (elf_backend_add_symbol_hook): Define to
1040 sh64_elf64_add_symbol_hook.
1041 * elf64-sh32.c: Tweak comments.
1042 (DATALABEL_SUFFIX): Define.
1043 (sh64_elf_add_symbol_hook): New.
1044 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1045 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1046 symbol with st_type STT_DATALABEL on the way to a symbol with
1047 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1048 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1049 Pass through STT_DATALABEL.
1050 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1051 (elf_backend_get_symbol_type): Define.
1052 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1053 (elf_backend_get_symbol_type): Define.
1054 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1055 * elf32-sh64.c: Tweak comments.
1056 (sh64_elf_copy_private_data_internal): Add prototype.
1057 (bfd_elf32_bfd_set_private_flags): Define.
1058 (sh64_elf_copy_private_data_internal): Compare machine name, not
1059 textual BFD target name, to check whether to copy section flag
1061 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1062 Tweak section-contents-type-mismatch message.
1063 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1064 Validize reloc-types.
1065 * elf64-sh64.c: New file.
1066 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1067 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1068 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1069 Regenerate dependencies.
1070 * Makefile.in: Regenerate.
1071 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1072 bfd_elf64_sh64l_vec.
1073 * configure.in: Handle bfd_elf64_sh64_vec and
1074 bfd_elf64_sh64l_vec.
1075 * configure: Regenerate.
1076 * po/POTFILES.in: Regenerate.
1077 * po/bfd.pot: Regenerate.
1078 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1079 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1080 anything else but EF_SH64 and EF_SH64_ABI64.
1081 (sh64_elf_merge_private_data): Emit error for anything else but
1082 EF_SH64 and EF_SH64_ABI64.
1083 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1085 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1086 bfd_elf32_sh64l_vec as a temporary measure.
1087 * configure: Regenerate.
1088 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1089 * cpu-sh.c (arch_info_struct): Include sh5 item
1091 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1092 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1093 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1094 * elf32-sh64.c: Tweak comments.
1095 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1096 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1097 (sh64_elf_copy_private_data_internal): Wrap long line.
1098 (sh64_elf_merge_private_data): Rewrite to allow objects from
1099 SH64 subsets to be linked together.
1100 (INCLUDE_SHMEDIA): Define.
1101 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1102 Parenthesize plus-expression inside or-expression.
1103 <global symbol>: Ditto.
1104 (sh_elf_set_mach_from_flags): Remove code refusing
1105 deleted EF_SH64_32BIT_ABI flag.
1106 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1107 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1108 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1109 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1110 (sh_elf_relocate_section) <local symbol>: Or 1 in
1111 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1112 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1113 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1115 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1116 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1117 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1118 Regenerate dependencies.
1119 * Makefile.in: Regenerate.
1120 * archures.c: Add bfd_mach_sh5.
1121 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1122 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1123 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1124 * configure: Regenerate.
1125 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1126 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1127 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1128 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1129 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1130 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1131 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1132 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1133 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1134 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1136 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1138 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1139 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1140 shmedia_prepare_reloc, goto final_link_relocate if it returns
1141 non-zero, else fail as before.
1142 (sh_elf_set_mach_from_flags): Provide function only if not defined
1143 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1144 (sh_elf_set_private_flags): Provide function only if not defined
1146 (sh_elf_copy_private_data): Similar.
1147 (sh_elf_merge_private_data): Similar.
1148 * section.c (SEC_SH_ISA_SHMEDIA): New.
1149 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1150 * elf32-sh64.c: New file.
1151 * libbfd.h: Regenerate.
1152 * bfd-in2.h: Regenerate.
1153 * po/POTFILES.in: Regenerate.
1154 * po/bfd.pot: Regenerate.
1155 * bfd-in2.h: Regenerate.
1156 * libbfd.h: Regenerate.
1158 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
1160 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1161 been included, not drag it in.
1162 * bfd-in2.h: Regenerate.
1164 2002-02-06 H.J. Lu (hjl@gnu.org)
1166 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1167 the mach and ISA fields if necessary.
1169 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1171 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1172 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1173 be sure exactly which architecture this represents.
1175 2002-02-05 Nick Clifton <nickc@redhat.com>
1177 * po/tr.po: Updated translation.
1179 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1181 From Jimi X <jimix@watson.ibm.com>
1182 * archures (bfd_mach_ppc64): Define.
1183 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1184 (bfd_powerpc_arch): Define.
1185 * bfd-in2.h: Regenerate.
1186 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1187 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1188 (bfd_powerpc_archs): Add default powerpc64 arch.
1190 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1192 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1193 against section syms in readonly sections. Don't do the global
1194 sym check if we find one.
1195 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1196 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1197 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1198 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1199 (elf_s390_grok_prstatus): Add missing prototype.
1201 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1203 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1204 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1205 Call bfd_get_section_by_name only once. Initialize
1206 bpodata->n_bpo_relocs_this_section.
1207 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1209 (bpo_reloc_request_sort_fn): Don't use difference of values as
1212 2002-02-02 David O'Brien <obrien@FreeBSD>
1214 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1215 version 4.5 and later the same as 5-CURRENT.
1216 * configure: Re-generate.
1218 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1220 * config.bfd (hppa*-*-netbsd*): New target.
1222 2002-01-31 Philipp Thomas <pthomas@suse.de>
1224 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1225 to front of message. Unify messages with elf32-arm.h. Use
1226 commas where neccessary.
1227 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1228 ERROR in messages. Unify messages with coff-arm.c. Correct
1229 VFP/FPA error message.
1230 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1231 APCS-32 for translation.
1233 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1235 Perform on-demand global register allocation from
1236 R_MMIX_BASE_PLUS_OFFSET relocs.
1237 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1238 bpo_reloc_request, struct bpo_greg_section_info): New.
1239 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1240 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1241 _bfd_mmix_check_all_relocs,
1242 _bfd_mmix_prepare_linker_allocated_gregs,
1243 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1244 (elf_mmix_howto_table): Correct src_mask for most relocs.
1245 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1247 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1248 case. Fix typo in comment. New label do_mmix_reloc.
1249 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1250 store first object file with a base-plus-offset reloc. Call
1251 mmix_elf_check_common_relocs for the part common with mmo.
1252 (mmix_elf_final_link): Write out linker-allocated register
1254 (elf_backend_gc_sweep_hook): Define.
1255 (bfd_elf64_bfd_relax_section): Define.
1257 * mmo.c: Don't include <ctype.h>
1258 (mmo_init): Correct init-once logic.
1260 2002-02-01 Tom Rix <trix@redhat.com>
1262 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1264 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1266 * Makefile.am: Run "make dep-am"
1267 * Makefile.in: Regenerate.
1269 2002-01-31 David O'Brien <obrien@FreeBSD>
1271 * configure.in: Recognize the differences in core files from FreeBSD
1272 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1274 * configure: Regenerate.
1276 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1278 * coff-or32.c: New file.
1279 * cpu-or32.c: New file.
1280 * elf32-or32.c: New file.
1281 * archures.c: Add support for or32.
1282 * targets.c: Add support for or32.
1283 * bfd-in2.h: Regenerate.
1284 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
1285 coff_write_object_contents): Add support for or32.
1286 * config.bfd: Add target.
1287 * configure.in: Add support for or32.
1288 * configure: Regenerate.
1289 * Makefile.am: Add support for or32.
1290 * Makefile.in: Regenerate.
1291 * po/SRC-POTFILES.in: Add or32 files.
1292 * po/bfd.pot: Regenerate.
1294 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1295 Don Lindsay <lindsayd@cisco.com>
1297 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1298 false' with a return of a bfd_reloc_ error code.
1300 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
1302 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1303 unexport unreferenced symbols when --export-dynamic. Call
1304 _bfd_elf_strtab_delref when unexporting.
1306 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1308 * bfd-in.h: Include <stdbool.h> if it is available.
1309 * bfd-in2.h: Regenerated.
1311 2002-01-31 Alan Modra <amodra@bigpond.net.au>
1313 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1316 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1318 * archures.c: Tidy up formatting of embedded comments.
1319 * bfd.c: Tidy up formatting of embedded comments.
1320 * bfd-in.h: Fix formatting of comments.
1321 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1322 * section.c: Tidy up formatting of embedded comments.
1323 * syms.c: Tidy up formatting of embedded comments.
1324 * targets.c: Tidy up formatting of embedded comments.
1326 * bfd-in2.h: Regenerate.
1328 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1330 * vms-tir.c (cmd_name): New function.
1331 (tir_cmd_name): New function.
1332 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1333 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1336 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1338 (pe_print_pdata): Rearrange message to aid in translation.
1340 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1343 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1345 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1347 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1348 message to aid in translation.
1350 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1351 to aid in translation.
1353 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1355 2002-01-30 Philipp Thomas <pthomas@suse.de>
1357 * coff-arm.c, elf32-elf.h: Unify messages.
1359 2002-01-30 Nick Clifton <nickc@redhat.com>
1361 * po/sv.po: Updated translation.
1363 2002-01-30 Philipp Thomas <pthomas@suse.de>
1365 * dwarf2.c (read_abbrev): Use full section name in error message.
1366 (decode_line_info): Likewise.
1368 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1371 2002-01-30 Alan Modra <amodra@bigpond.net.au>
1373 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1374 descriptor symbols for undefined function code syms. Clear
1375 ELF_LINK_NON_ELF so that they can stay weak.
1377 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1378 Mitch Lichtenberg <mpl@broadcom.com>
1380 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1381 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1382 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1384 * bfd-in2.h: Regenerate.
1386 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1388 * elf32-mips.c: Add additional comments about HI16 relocation
1390 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1391 pc-relative relocations. (Reverts change made on 2001-10-31.)
1392 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1393 for pc-relative relocations.
1394 (mips_elf_calculate_relocation): Add a comment about a kludge
1395 in the R_MIPS_GNU_REL_HI16 handling.
1396 (_bfd_mips_elf_relocate_section): Implement that kludge;
1397 adjust pc-relative HI16 relocation for difference in HI16 and
1398 LO16 addresses, since it can't easily be done in
1399 mips_elf_calculate_relocation.
1401 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1403 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1404 relocations with PC32 relocations for undefined or weak symbols.
1405 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1406 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1408 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1410 * elfcore.h (elf_core_file_p): Improve comment for last change.
1412 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1414 * configure: Regenerated.
1416 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1418 * elfcore.h (elf_core_file_p): Set the machine architecture
1419 before processing the program headers.
1421 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1423 * configure.in <64-bit configuration>: If using gcc, check and
1424 emit error for egcs-1.1.2.
1425 * configure: Regenerate.
1427 2002-01-26 Egor Duda <deo@logos-m.ru>
1429 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1430 as possible to avoid stack corruption.
1432 2002-01-26 Richard Henderson <rth@redhat.com>
1434 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1435 for non-allocated sections.
1437 2002-01-25 Mark Kettenis <kettenis@gnu.org>
1439 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1440 prstat.pr_reg even if it is a struct.
1442 2002-01-25 Steve Ellcey <sje@cup.hp.com>
1444 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1446 2002-01-25 Philipp Thomas <pthomas@suse.de>
1448 * coffgen.c (coff_print_symbol): Don't mark info message
1451 2002-01-25 Nick Clifton <nickc@redhat.com>
1453 * po/fr.po: Updated translation.
1454 * po/es.po: Updated translation.
1456 2002-01-25 Philipp Thomas <pthomas@suse.de>
1458 * coff-alpha.c (alpha_relocate_section): Unify warning message
1459 for GP relative relocations without GP defined.
1460 * coff-mips.c (mips_relocate_section): Likewise.
1462 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1464 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1465 unsigned overflow when new_offset < old_offset.
1467 2002-01-24 Philipp Thomas <pthomas@suse.de>
1469 * bfd.c (_bfd_abort): Fix typo.
1471 2002-01-23 Richard Henderson <rth@redhat.com>
1473 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1474 plt entries for undefweak symbols.
1476 2002-01-23 Steve Ellcey <sje@cup.hp.com>
1478 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1480 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1481 (bfd_elf32_h8300_vec): Ditto.
1483 2002-01-23 Alan Modra <amodra@bigpond.net.au>
1485 * elf64-ppc.c: Remove stale part of ABI comment.
1486 (NO_OPD_RELOCS): Define.
1487 (ppc64_elf_check_relocs): Use it.
1488 (ppc64_elf_relocate_section): Here too.
1489 (build_one_stub): Don't point function syms at the stub. Instead,
1491 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1492 really go to the stub. Make all dynamic relocs in opd against
1494 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1497 2002-01-22 Richard Henderson <rth@redhat.com>
1499 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1501 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1503 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1504 TOC_BASE_OFF adjustment.
1506 * Makefile.am: Run "make dep-am".
1507 * Makefile.in: Regenerate.
1508 * po/SRC-POTFILES.in: Regenerate.
1510 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1512 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1515 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
1517 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1518 Check for and emit error if sgot is NULL at this point.
1520 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1522 * config.bfd (ia64*-*-netbsd*): New target.
1524 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1526 * som.c (som_write_space_strings): Comment typo fix.
1528 2002-01-21 Alan Modra <amodra@bigpond.net.au>
1530 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1531 is_func_descriptor fields.
1532 (link_hash_newfunc): Init them.
1533 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1534 dot are candidates for plt entries. When processing .opd relocs,
1535 set function descriptor strings to point inside function code
1536 string, and set new ppc_link_hash_entry fields.
1537 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1538 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1539 function descriptors. It's now done in..
1540 (func_desc_adjust): New.
1541 (ppc64_elf_func_desc_adjust): New.
1542 (define elf_backend_always_size_sections): Define.
1543 (ppc64_elf_hide_symbol): New.
1544 (define elf_backend_hide_symbol): Define.
1545 (allocate_dynrelocs): Remove code looking up function descriptors
1546 as that has been done earlier.
1547 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1549 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1550 up function descriptor.
1551 (build_one_stub): Look up the function code sym. Check for
1552 invalid plt offsets.
1553 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1554 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1556 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1558 (_bfd_elf_link_hash_hide_symbol): Likewise.
1559 * elflink.h (elf_link_add_object_symbols): Adjust call to
1560 elf_backend_hide_symbol.
1561 (elf_fix_symbol_flags): Likewise.
1562 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1564 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1565 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1566 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1567 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1568 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1570 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1571 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1572 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1574 2002-01-18 Alan Modra <amodra@bigpond.net.au>
1576 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1577 dynamic function descriptor symbol, not the associated function
1580 2002-01-17 Eric Christopher <echristo@redhat.com>
1582 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1584 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1586 * po/bfd.pot: Regenerate.
1587 * po/fr.po: Regenerate.
1589 2002-01-17 Alan Modra <amodra@bigpond.net.au>
1591 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1592 Remove "Elf_Internal_Shdr *" param.
1593 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1594 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1595 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1596 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1597 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1598 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1599 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1600 function to override special sections. Remove hdr arg from
1601 backend call, and don't loop.
1603 2002-01-16 Eric Christopher <echristo@redhat.com>
1605 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1606 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1607 relocations requiring gp0 and gp.
1609 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
1611 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
1613 (elf32_arm_print_private_bfd_data): Likewise.
1615 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1617 * po/tr.po: Import new version.
1619 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1621 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1622 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1623 (ORI_R0_R0_0): Correct.
1625 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1627 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1628 when plt_not_loaded.
1629 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1630 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1631 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1632 (ppc64_elf_glink_code): Delete.
1633 (PPC64_ELF_GLINK_SIZE): Delete.
1634 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1635 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1636 ORI_R0_R0_0): Define.
1637 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1638 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1639 (ppc64_elf_link_hash_table_create): Init them.
1640 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1641 Don't copy to shared lib.
1642 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1643 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1644 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1645 room for .stub and .glink code.
1646 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1648 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1649 bfd_elf64_bfd_final_link.
1650 (bfd_elf64_bfd_final_link): Don't define.
1651 (ppc64_elf_size_stubs): New.
1652 (build_plt_stub): New.
1653 (build_one_stub): New.
1654 (ppc64_elf_build_stubs): New.
1655 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1656 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1657 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1658 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1659 case output sections not separate. Adjust DT_RELASZ to not
1660 include plt relocs. Set reserved got entry. Set got and plt
1662 (elf_backend_got_header_size): Set to 8.
1663 * elf64-ppc.h: New file.
1665 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1667 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1668 sections, use bfd_section_list_remove.
1669 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1670 * elflink.h (elf_link_add_object_symbols): When removing all
1671 sections, use bfd_section_list_clear.
1673 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1675 * po/sv.po: New file: Swedish translation.
1676 * configure.in (ALL_LINGUAS): Add sv.
1677 * configure: Regenerate.
1679 2002-01-15 Jakub Jelinek <jakub@redhat.com>
1681 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1682 * elf.c (merge_sections_remove_hook): New function.
1683 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1684 _bfd_merge_sections.
1685 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1686 * libbfd.h: Rebuilt.
1687 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1688 Call remove_hook if a SEC_EXCLUDE section is encountered.
1690 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1692 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1693 (xstormy16_reloc_map): Initialise new field with correct howto
1695 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1698 2002-01-10 Michael Snyder <msnyder@redhat.com>
1700 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1701 (elfcore_write_pstatus): Use long instead of pid_t;
1702 * elf-bfd.h: Change prototypes to use long instead of pid_t;
1704 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
1706 * elf.c: Update copyright years.
1707 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1708 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
1710 2002-01-08 Michael Snyder <msnyder@redhat.com>
1712 Add capability to write corefile note sections, for gdb.
1713 * elf.c (elfcore_write_note): New function.
1714 (elfcore_write_prpsinfo): New function.
1715 (elfcore_write_prstatus): New function.
1716 (elfcore_write_pstatus): New function.
1717 (elfcore_write_prfpreg): New function.
1718 (elfcore_write_prxfpreg): New function.
1719 * elf-bfd.h: Add prototypes for above functions.
1721 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1723 * elf.c (elf_fake_sections): Propagate errors from
1724 elf_backend_fake_section.
1726 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1728 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1729 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1730 (elf32-sh-nbsd.lo): New rule.
1731 * Makefile.in: Regenerate.
1732 * config.bfd (sh*le-*-netbsdelf*): New target.
1733 (sh*-*-netbsdelf*): New target.
1734 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1735 (bfd_elf32_shnbsd_vec): New vector.
1736 (bfd_elf32_shlnbsd_vec): New vector.
1737 * configure: Regenerate.
1738 * elf32-sh-nbsd.c: New file.
1739 * targets.c: Update copyright years.
1740 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
1741 bfd_elf32_shnbsd_vec.
1743 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
1745 * coff-rs6000.c (READ20): Use bfd_scan_vma.
1747 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
1749 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1750 of a symbol in a section that will be deleted.
1752 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1754 * po/es.po: New file: Spanish translation.
1755 * configure.in (ALL_LINGUAS): Add es.
1756 * configure: Regenerate.
1758 2002-01-06 Steve Ellcey <sje@cup.hp.com>
1760 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1761 argument so we can handle HP-UX specially.
1762 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1763 (elfNN_hpux_backend_section_from_bfd_section): New for support
1764 of SHN_IA_64_ANSI_COMMON.
1765 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1766 (is_unwind_section_name): Add special HP-UX support.
1767 (elfNN_ia64_section_from_shdr): Add support for more sections.
1768 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1769 add support for more sections.
1770 (elfNN_ia64_additional_program_headers): Modify
1771 is_unwind_section_name call.
1772 (elfNN_ia64_modify_segment_map): Remove assumption that there is
1773 only one unwind section in segment.
1775 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1777 * syms.c (_bfd_generic_make_empty_symbol): New function.
1778 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1779 _bfd_generic_make_empty_symbol.
1780 * libbfd.h: Regenerate.
1781 * bfd-in2.h: Regenerate.
1782 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1783 (hppabsd_core_get_symtab_upper_bound): Don't define.
1784 (hppabsd_core_get_symtab): Likewise.
1785 (hppabsd_core_print_symbol): Likewise.
1786 (hppabsd_core_get_symbol_info): Likewise.
1787 (hppabsd_core_bfd_is_local_label_name): Likewise.
1788 (hppabsd_core_get_lineno): Likewise.
1789 (hppabsd_core_find_nearest_line): Likewise.
1790 (hppabsd_core_bfd_make_debug_symbol): Likewise.
1791 (hppabsd_core_read_minisymbols): Likewise.
1792 (hppabsd_core_minisymbol_to_symbol): Likewise.
1793 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1795 * hpux-core.c: Similarly.
1796 * irix-core.c: Similarly.
1797 * osf-core.c: Similarly.
1798 * sco5-core.c: Similarly.
1799 * binary.c (binary_make_empty_symbol): Remove function, define as
1800 _bfd_generic_make_empty_symbol.
1801 * ihex.c (ihex_make_empty_symbol): Likewise.
1802 * mmo.c (mmo_make_empty_symbol): Likewise.
1803 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1804 * srec.c (srec_make_empty_symbol): Likewise.
1805 * versados.c (versados_make_empty_symbol): Likewise.
1806 * vms.c (_bfd_vms_make_empty_symbol): Remove.
1807 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1808 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1809 rather than _bfd_vms_make_empty_symbol.
1810 * vms-misc.c (new_symbol): Likewise.
1812 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1814 * section.c (bfd_section_init): Remove unnecessary initialisations.
1815 (bfd_section_list_clear): New function.
1816 (bfd_section_list_remove, bfd_section_list_insert): New macros.
1817 (_bfd_strip_section_from_output): Use them.
1818 * coffcode.h (coff_set_alignment_hook): Likewise.
1819 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1820 * elf64-mips.c (mips_elf64_final_link): Likewise.
1821 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1822 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1823 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1824 * bfd-in2.h: Regenerate.
1826 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1827 rather than doing our own section handling. Clean up after errors
1828 with bfd_release and bfd_section_list_clear. Handle unexpected
1830 * aoutf1.h (sunos4_core_file_p): Likewise.
1831 * aix386-core.c (aix386_core_file_p): Likewise.
1832 * cisco-core.c (cisco_core_file_validate): Likewise.
1833 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1834 * trad-core.c (trad_unix_core_file_p): Likewise.
1836 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
1837 with bfd_release and bfd_section_list_clear.
1838 * hpux-core.c (hpux_core_core_file_p): Likewise.
1839 * irix-core.c (irix_core_core_file_p): Likewise.
1840 * lynx-core.c (lynx_core_file_p): Likewise.
1841 * osf-core.c (osf_core_core_file_p): Likewise.
1842 * rs6000-core.c (rs6000coff_core_p): Likewise.
1843 * sco5-core.c (sco5_core_file_p): Likewise.
1845 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1846 sign extension adjustments without conditionals.
1848 2002-01-04 Jakub Jelinek <jakub@redhat.com>
1850 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1851 CIE at .eh_frame start is removed due to no FDEs referencing it.
1853 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1855 * config.bfd (x86_64-*-netbsd*): New target.
1856 * configure.in (x86_64-*-netbsd*): Set COREFILE
1858 * configure: Regenerated.
1860 2002-01-03 Tom Rix <trix@redhat.com>
1862 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1863 for recent bfd_make_section_anyway change.
1865 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
1867 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1868 R_ARM_THM_PC11 reloc.
1870 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1872 * configure.in (LINGUAS): Add ja.
1873 * configure: Regenerate.
1874 * po/ja.po: Import from translation project's web site.
1876 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1878 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1879 messages to ease translation into other languages.
1881 For older changes see ChangeLog-0001
1887 version-control: never