]> Git Repo - binutils.git/blob - bfd/ChangeLog
* elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
[binutils.git] / bfd / ChangeLog
1 2002-04-12  Alan Modra  <[email protected]>
2
3         * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
4         header pad.
5
6 2002-04-09  DJ Delorie  <[email protected]>
7
8         * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
9
10 2002-04-09  Casper S. Hornstrup <[email protected]>
11
12         * coffcode.h (coff_read_word): New.
13         (coff_compute_checksum): New.
14         (coff_apply_checksum): New.
15         (coff_write_object_contents): Call coff_apply_checksum () to
16         apply checksum to PE image.
17
18 2002-04-08  Randolph Chung  <[email protected]>
19
20         * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
21         (elf32_hppa_final_link): Split out sorting logic to..
22         * elf-hppa.h (elf_hppa_sort_unwind): ..here.
23         (elf_hppa_final_link): Call elf_hppa_sort_unwind.
24
25 2002-04-07  Andrew Cagney  <[email protected]>
26
27         * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
28         pattern.
29         * configure: Re-generate.
30
31 2002-04-07  Andrew Cagney  <[email protected]>
32
33         * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
34         is greater or equal to 4.3.3.
35         * configure: Regenerate.
36         Fix PR gdb/344.
37
38 2002-04-05  Hans-Peter Nilsson  <[email protected]>
39
40         * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
41         R_CRIS_32_PCREL>: Fix typo in name.
42         (cris_elf_check_relocs): Always create .rela.got here when
43         R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
44         (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
45         assume it's created.
46
47 2002-04-04  Daniel Jacobowitz  <[email protected]>
48
49         * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
50         * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
51         define.
52         * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
53         * bfd.c (bfd_link_hash_table_free): Define.
54         * binary.c (binary_bfd_link_hash_table_free): Define.
55         * bout.c (b_out_bfd_link_hash_table_free): Define.
56         * coff-rs6000.c (rs6000coff_vec): Include
57         _bfd_generic_link_hash_table_free.
58         (pmac_xcoff_vec): Likewise.
59         * coff64-rs6000.c (rs6000coff64_vec): Likewise.
60         (aix5coff64_vec): Likewise.
61         * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
62         * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
63         (bfd_elf32_bfd_link_hash_table_free): Define.
64         * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
65         (bfd_elf32_bfd_link_hash_table_free): Define.
66         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
67         define.
68         * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
69         * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
70         * ieee.c (ieee_bfd_link_hash_table_free): Define.
71         * ihex.c (ihex_bfd_link_hash_table_free): Define.
72         * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
73         (_bfd_generic_link_hash_table_free): Add prototype.
74         * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
75         * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
76         * linker.c (_bfd_generic_link_hash_table_free): New function.
77         * mmo.c (mmo_bfd_link_hash_table_free): Define.
78         * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
79         * oasys.c (oasys_bfd_link_hash_table_free): Define.
80         * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
81         * som.c (som_bfd_link_hash_table_free): Define.
82         * srec.c (srec_bfd_link_hash_table_free): Define.
83         * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
84         * versados.c (versados_bfd_link_hash_table_free): Define.
85         * vms.c (vms_bfd_link_hash_table_free): New function.
86         * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
87
88         * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
89         instead of bfd_alloc.
90         * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
91         * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
92         * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
93         * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
94         * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
95         * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
96         * elf.c (_bfd_elf_link_hash_table_create): Likewise.
97         * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
98         * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
99         * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
100         * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
101         * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
102         * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
103         * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
104         * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
105         * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
106         * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
107         * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
108         * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
109         * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
110         * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
111         * linker.c (_bfd_generic_link_hash_table_create): Likewise.
112         * m68klinux.c (linux_link_hash_table_create): Likewise.
113         * sparclinux.c (linux_link_hash_table_create): Likewise.
114         * sunos.c (sunos_link_hash_table_create): Likewise.
115         * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
116
117         * targets.c: Add _bfd_link_hash_table_free to xvec.
118
119         * bfd-in2.h: Regenerate.
120         * libbfd.h: Regenerate.
121         * libcoff.h: Regenerate.
122
123 2002-04-04  Alan Modra  <[email protected]>
124
125         * dep-in.sed: Cope with absolute paths.
126         * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
127         Run "make dep-am".
128         * Makefile.in: Regenerate.
129         * coff-arm.c: Fix copyright date.
130         * cpu-h8300.c: Likewise.
131         * cpu-i370.c: Likewise.
132         * cpu-s390.c: Likewise.
133         * cpu-mips.c: Likewise.
134         * po/SRC-POTFILES.in: Regenerate.
135
136 2002-04-04  Thiemo Seufer <[email protected]>
137
138         * Makefile.am: Add elfxx-mips.c to the known backends.
139         (elf32-mips.lo): remove dependency to coff/external.h.
140         * Makefile.in: Regenerate.
141         * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
142         Remove elf32-mips.lo from 64 bit vectors. Update dependencies
143         accordingly.
144         * configure: Regenerate.
145         * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
146         (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
147         (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
148         MIPS specific backend functions.
149         * elf32-mips.c: Moved most code to elfxx-mips.c.
150         (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
151         static.
152         (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
153         (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
154         (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
155         (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
156         interface to allow selection of the right REL or RELA howto table.
157         (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
158         static. Let it refuse n32 objects.
159         (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
160         (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
161         (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
162         (elf32_mips_ignore_discarded_relocs): Rename from
163         _bfd_elf32_mips_ignore_discarded_relocs.
164         (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
165         (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
166         (elf_mips_howto_table_rela): Remove.
167         * elf64-mips.c: Moved most code to elfxx-mips.c.
168         (bfd_elf64_bfd_reloc_type_lookup): Make static.
169         (mips_elf64_rtype_to_howto): New function.
170         (mips_elf64_object_p): Likewise.
171         (elf64_mips_irix_compat): Likewise.
172         * elfxx-mips.c: New file containing common code merged together from
173         elf32-mips.c and elf64-mips.c.
174         * elfxx-mips.h: New file containing MIPS specific prototypes from
175         elf-bfd.h.
176         * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
177         elf_backend_mips_rtype_to_howto.
178
179 2002-04-04  Alan Modra  <[email protected]>
180
181         * srec.c (MAXCHUNK, Chunk): Revise comments.
182         (srec_write_record): Correct buffer size.
183         (srec_write_header): Do without intermediate buffer.
184         (srec_write_section): Validate Chunk.
185         (srec_write_terminator): Pass NULL instead of dummy buffer.
186         (srec_write_symbols): Pass file and symbol names directly to
187         bfd_bwrite so sprintf won't overflow buffer.
188
189 2002-04-03  Jakub Jelinek  <[email protected]>
190
191         * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
192         PC relative relocs against hidden symbols.
193         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
194
195 2002-04-03  Alan Modra  <[email protected]>
196
197         * elf.c (_bfd_elf_make_section_from_shdr): When setting section
198         LMAs, loop over segments until p_vaddr and p_memsz specify an
199         extent enclosing the section.
200
201 2002-04-02  Nick Clifton  <[email protected]>
202
203         * ihex.c (ihex_write_object_contents): Do not allow records to
204         cross a 64K boundary - wrap if necessary.
205
206 2002-04-01  Nathan Williams  <[email protected]>
207
208         * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
209         which caused the returned LWP ID to always be 0.
210
211 2002-04-01  Richard Henderson  <[email protected]>
212
213         * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
214         (elf32_sparc_relocate_section): Use it to figure out when to
215         initialize .got entries.
216         * elf64-sparc.c: Similarly.
217
218 2002-03-28  Alan Modra  <[email protected]>
219
220         * linker.c (link_action): Ignore duplicate warning syms.
221         (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
222         * elflink.h (elf_adjust_dynstr_offsets): Likewise.
223         (elf_adjust_dynamic_symbol): Likewise.
224         (elf_export_symbol): Likewise.
225         (elf_link_find_version_dependencies): Likewise.
226         (elf_link_assign_sym_version): Likewise.
227         (elf_link_sec_merge_syms): Likewise.
228         (elf_link_output_extsym): Likewise.
229         (elf_gc_sweep_symbol): Likewise.
230         (elf_gc_propagate_vtable_entries_used): Likewise.
231         (elf_gc_smash_unused_vtentry_relocs): Likewise.
232         (elf_gc_allocate_got_offsets): Likewise.
233         (elf_collect_hash_codes): Likewise.
234         * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
235         * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
236         (elf_hppa_remark_useless_dynamic_symbols): Likewise.
237         * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
238         * elf32-arm.h (elf32_arm_discard_copies): Likewise.
239         * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
240         (elf_cris_discard_excess_dso_dynamics): Likewise.
241         * elf32-hppa.c (clobber_millicode_symbols): Likewise.
242         (mark_PIC_calls): Likewise.
243         (allocate_plt_static): Likewise.
244         (allocate_dynrelocs): Likewise.
245         (readonly_dynrelocs): Likewise.
246         * elf32-i386.c (allocate_dynrelocs): Likewise.
247         (readonly_dynrelocs): Likewise.
248         * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
249         * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
250         * elf32-mips.c (mips_elf_output_extsym): Likewise.
251         (mips_elf_sort_hash_table_f): Likewise.
252         (mips_elf_check_mips16_stubs): Likewise.
253         * elf32-s390.c (allocate_dynrelocs): Likewise.
254         (readonly_dynrelocs): Likewise.
255         * elf32-sh.c (sh_elf_discard_copies): Likewise.
256         * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
257         (xstormy16_relax_plt_realloc): Likewise.
258         * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
259         (elf64_alpha_output_extsym): Likewise.
260         * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
261         * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
262         (mips_elf64_check_mips16_stubs): Likewise.
263         (mips_elf64_output_extsym): Likewise.
264         * elf64-ppc.c (func_desc_adjust): Likewise.
265         (allocate_dynrelocs): Likewise.
266         (readonly_dynrelocs): Likewise.
267         * elf64-s390.c (allocate_dynrelocs): Likewise.
268         (readonly_dynrelocs): Likewise.
269         * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
270         * elf64-x86-64.c (allocate_dynrelocs): Likewise.
271         (readonly_dynrelocs): Likewise.
272         * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
273         * aoutx.h (aout_link_write_other_symbol): Likewise.
274         * cofflink.c (_bfd_coff_write_task_globals): Likewise.
275         (_bfd_coff_write_global_sym): Likewise.
276         * i386linux.c (linux_tally_symbols): Likewise.
277         * m68klinux.c (linux_tally_symbols): Likewise.
278         * sparclinux.c (linux_tally_symbols): Likewise.
279         * pdp11.c (aout_link_write_other_symbol): Likewise.
280         * sunos.c (sunos_scan_dynamic_symbol): Likewise.
281         * xcofflink.c (xcoff_build_ldsyms): Likewise.
282         (xcoff_write_global_symbol): Likewise.
283
284         * cofflink.c (_bfd_coff_final_link): Formatting.
285         * cpu-mips.c (mips_compatible): Make static, prototype.
286         * elf32-i386.c (elf_i386_check_relocs): Formatting.
287         * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
288         * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
289         * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
290         (mips_elf64_final_link): Likewise.
291         * elflink.h (elf_link_find_version_dependencies): Remove duplicate
292         prototype.
293
294 2002-03-27  Nick Clifton  <[email protected]>
295
296         * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
297         (SWAP_OUT_RELOC_OFFSET): Define.
298
299 2002-03-27  Gregory Steuck <[email protected]>
300
301         * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
302         terminating NULL if empty symbol table.
303         (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
304
305 2002-03-26  H.J. Lu  ([email protected])
306
307         * elflink.h (elf_link_input_bfd): Revert the last change since
308         the gcc exception handling isn't fixed yet.
309
310 2002-03-26  H.J. Lu  ([email protected])
311
312         * elflink.h (elf_link_input_bfd): Complain about relocations
313         against local symbols in discarded sections.
314
315 2002-03-26  Alan Modra  <[email protected]>
316
317         * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
318
319 2002-03-23  Alan Modra  <[email protected]>
320
321         * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
322         section file offset for !SEC_LOAD sections.
323
324 2002-03-21  Richard Earnshaw  <[email protected]>
325
326         * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
327         <case R_ARM_GOT>): Handle relocations to Thumb functions.
328
329 2002-03-21  Alan Modra  <[email protected]>
330
331         * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
332         Whitespace changes.
333         * archive.c: Update copyright date.
334         * bfd-in2.h: Regenerate.
335         * libbfd.h: Regenerate.
336         * Makefile.am: Run "make dep-am"
337         * Makefile.in: Regenerate.
338         * po/SRC-POTFILES.in: Regenerate.
339
340 2002-03-20  Daniel Jacobowitz  <[email protected]>
341
342         * dwarf2.c (struct funcinfo): Move up.
343         (lookup_address_in_function_table): New argument function_ptr.
344         Set it.
345         (lookup_address_in_line_table): New argument function.  If function
346         is non-NULL, use it to handle ``addr'' before the first line note of
347         the function.
348         (comp_unit_find_nearest_line): Update and swap calls to
349         lookup_address_in_function_table and lookup_address_in_line_table.
350         * syms.c (_bfd_stab_section_find_nearest_line): Use the first
351         N_SLINE encountered if we see an N_FUN before any N_SLINE.
352
353 2002-03-20  Tom Rix  <[email protected]>
354
355         * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from 
356         _bfd_xcoff_generic_stat_arch_elt.  Fix format check.
357         * coff64-rs6000.c :  Use _bfd_xcoff_stat_arch_elt. 
358
359 2002-03-19  Tom Rix  <[email protected]>
360
361         * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all 
362         dynamic objects in archives.
363
364 2002-03-19  Hans-Peter Nilsson  <[email protected]>
365
366         * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
367         STT_NOTYPE symbols to STT_OBJECT.
368
369 Mon Mar 18 17:38:03 CET 2002  Jan Hubicka  <[email protected]>
370
371         * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
372
373 2002-03-18  Tom Rix  <[email protected]>
374
375         * aix5ppc.core.c : New file for AIX 5 64 bit core support.
376         * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
377         * coff-rs6000 (do_pad) : New function for archive padding.
378         (do_copy) : New function for object file copying in archives.
379         (do_shared_object_padding) : New function for padding shared
380         objects to their text section alignment in archives.
381         (bfd_xcoff_ar_achive_set_magic) : Stub.
382         (xcoff_write_armap_big) : Use do_copy and do_pad.
383         (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
384         do_copy and do_pad.
385         * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
386         bfd_xcoff_magic_number. 
387         (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
388         fop.
389         (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
390         (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
391         (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
392         * rs6000-core.c : Update copyright date.
393         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL 
394         csectpp.
395         * coffcode.h (coff_new_section_hook) : Use new accessor macros.
396         (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
397         (coff_set_flags) : Use bfd_xcoff_magic_number.
398         * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
399         * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
400         * Makefile.am : Same.
401         * config.bfd : Same.
402         * targets.c : Same.
403         * configure : Regnerate.
404         * Makefile.in : Same.
405         * bfd-in2.h : Same.
406
407 2002-03-18  Nick Clifton  <[email protected]>
408
409         * po/fr.po: Updated version.
410
411 2002-03-18  Alan Modra  <[email protected]>
412
413         * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
414         * libbfd.h: Regenerate.
415         * archive.c (coff_write_armap): Pass on failures from
416         bfd_write_bigendian_4byte_int.
417
418 2002-03-14  H.J. Lu <[email protected]>
419
420         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
421         error to bfd_error_nonrepresentable_section for reinit_array
422         section in DSO.
423
424 2002-03-14  Nick Clifton  <[email protected]>
425
426         * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
427         OR it in rather than replacing previously selected flags.
428
429         * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
430         (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
431
432 2002-03-14  Alan Modra  <[email protected]>
433
434         * cpu-mips.c (mips_compatible): New.  Don't check bits_per_word.
435         (N): Use the above.
436         * elflink.h (elf_bfd_final_link): Revert last change.  Instead,
437         ensure reloc size matches before calling elf_link_input_bfd.
438         Add an assert to check reloc size when counting output relocs.
439
440 2002-03-14  Nick Clifton  <[email protected]>
441
442         * mmo.c (mmo_get_loc): Return NULL rather than false.
443
444 2002-03-13  Nick Clifton  <[email protected]>
445
446         * po/fr.po: Updated version.
447
448 2002-03-13  Alan Modra  <[email protected]>
449
450         * archures.c (bfd_default_compatible): Test bits_per_word.
451         * cpu-i386.c (i386_compatible): Remove.  Replace occurrences with
452         bfd_default_compatible.
453         * cpu-i370.c (i370_compatible): Likewise.
454         * cpu-sparc.c (sparc_compatible): Likewise.
455         * cpu-h8300.c (compatible): Test in->arch == out->arch.
456
457         * elflink.h: Formatting fixes.
458         (elf_link_output_extsym): Merge undefined and undef weak cases.
459
460         * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
461         when word size of input matches output word size.
462
463 2002-03-12  Andreas Jaeger  <[email protected]>
464
465         * cpu-i386.c (i386_compatible): New.  Use it instead of
466         bfd_default_compatible.
467
468 2002-03-07  H.J. Lu  ([email protected])
469
470         * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
471         as the type for bfd_reloc_val.
472
473 2002-03-05  John David Anglin  <[email protected]>
474
475         * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
476         (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
477         (elf_hppa_final_link_relocate): Correct relocations for indirect
478         references to local data through the DLT.  Fix .opd creation for
479         local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
480         relocations.  Use e_lsel selector for R_PARISC_DLTIND21L,
481         R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
482         "Processor-Specific ELF for PA_RISC, Version 1.43" document.
483         Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
484         * elf32-hppa.c (final_link_relocate): Revise relocation selectors
485         as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
486
487 2002-03-05  Jakub Jelinek  <[email protected]>
488
489         * merge.c (_bfd_merge_sections): Don't segfault if there
490         is nothing to merge due to GC.
491
492 2002-03-05  Alan Modra  <[email protected]>
493
494         * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
495         symbols that have been forced local.
496
497         * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
498         to output forced local syms for non-shared link.
499         (elf_link_output_extsym): Tweak condition for calling backend
500         adjust_dynamic_symbol so that previous behaviour is kept.
501         Whitespace changes throughout file.
502
503 2002-03-04  H.J. Lu <[email protected]>
504
505         * elf.c (bfd_section_from_shdr): Handle special sections,
506         .init_array, .fini_array and .preinit_array.
507         (elf_fake_sections): Likewise.
508
509         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
510         DT entry only if the section is in output for .init_array,
511         .fini_array and .preinit_array. Complain about .preinit_array
512         section in DSO.
513         (elf_bfd_final_link): Warn zero size for .init_array,
514         .fini_array and .preinit_array sections.
515
516         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
517         SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
518         (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
519         .preinit_array.
520
521 2002-03-04  Alan Modra  <[email protected]>
522
523         * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
524         * configure: Regenerate.
525
526 2002-03-02  Tom Rix  <[email protected]>
527
528         * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
529         symbolic equiv.
530         * coff-rs6000.c (xcoff_howto_table): Same.
531
532 2002-03-01  David Mosberger  <[email protected]>
533
534         * elflink.h (size_dynamic_sections): If section named
535         ".preinit_array" exists, create DT_PREINIT_ARRAY and
536         DT_PREINIT_ARRAYSZ entries in dynamic table.  Analogously for
537         ".init_array" and ".fini_array".
538         (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
539         DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
540         DT_FINI_ARRAY.
541
542 2002-02-26  Andrew Macleod  <[email protected]>
543
544         * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
545         dynsyms.
546
547 2002-02-25  Alan Modra  <[email protected]>
548
549         * elf64-hppa.h: Update copyright date.
550
551         * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
552         (ppc64_elf_relocate_section): Don't generate power4 style branch
553         hints for *_BRTAKEN and *_BRNTAKEN relocs.
554
555 2002-02-22  Jakub Jelinek  <[email protected]>
556
557         * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
558         last patch.
559         * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
560
561 2002-02-21  Andreas Jaeger  <[email protected]>
562
563         * elf64-x86-64.c: Major rework that introduces all recent changes
564         to the x86-64 backend.  Get a closer match to elf32-i386.
565         (struct elf64_x86_64_dyn_relocs): Rename from
566         elf64_x86_64_pcrel_relocs_copied, add additional fields.  Change
567         all users.
568         (struct elf64_x86_64_link_hash_table): Add short cuts to some
569         sections.
570         (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
571         remove casts, initialize new hash members.
572         (create_got_section): New.
573         (elf64_x86_64_create_dynamic_sections): New.
574         (elf64_x86_64_copy_indirect_symbol): New.
575         (elf64_x86_64_check_relocs): Don't allocate space for dynamic
576         relocs, .got or .relgot here but do it in allocate_dynrelocs.
577         Reference count possible .plt and .got entries.  Don't test input
578         section SEC_READONLY here to try to avoid copy relocs, and keep
579         dyn_relocs regardless of ELF_LINK_NON_GOT_REF.  Don't set
580         DF_TEXTREL here.  Delay setting of variables until needed.  Cache
581         pointer to "sreloc" section in elf_section_data. Tweak condition
582         under which .got created.  Report files with bad relocation
583         section names.
584         (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
585         Reference count possible .plt entries.  Don't deallocate .got and
586         .relgot space here.
587         (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc.  Don't
588         do copy reloc processing for weakdefs.  Remove redundant casts and
589         aborts.  Delay setting of vars until needed.  Move creation of
590         dynamic symbols and allocation of .plt and .rela.plt to
591         allocate_dynrelocs.  Replace BFD_ASSERT with abort.
592         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
593         (allocate_dynrelocs): New.
594         (readonly_dynrelocs): New.
595         (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
596         Allocate space for dyn relocs.  Replace BFD_ASSERT with abort.
597         Zero out the dynamic allocated content space.
598         (elf64_x86_64_discard_copies): Removed.
599         (elf64_x86_64_relocate_section): Make use of dynamic section
600         short-cuts.  Localise vars, and delay setting.  Better error
601         reporting, replace BFD_ASSERT with abort.  Check
602         ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
603         regular object file and tread the weak definition as the normal
604         one.  Don't discard relocs for undefweak or undefined symbols and
605         check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
606         relocs.
607         (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
608         symbols that have been forced local.  Use same test to decide if
609         we can use a relative reloc for got as relocate_section.  Expand
610         SHN_UNDEF comment.  Move expressions out of function calls.
611         Replace BFD_ASSERT with abort.
612         (bfd_elf64_bfd_final_link): Removed.
613         (elf_backend_copy_indirect_symbol): Define.
614
615 2002-02-20  Tom Rix  <[email protected]>
616
617         * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
618         (_bfd_xcoff_reloc_type_lookup): Use it.
619         * coff64-rs6000.c (xcoff64_howto_table): Same.
620         (xcoff64_reloc_type_lookup): Same.
621
622 2002-02-20  Peter Schauer  <[email protected]>
623
624         * osf-core.c (osf_core_vec):  OSF/1 (Digital Unix) core files are
625         little endian.
626
627 2002-02-19  Martin Schwidefsky  <[email protected]>
628
629         * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
630         (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
631         * bfd-in2.h: Regenerate.
632         * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
633         Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
634         with "s390:64-bit".
635         * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
636         (elf_s390_reloc_type_lookup): Likewise.
637         (elf_s390_check_relocs): Likewise.
638         (elf_s390_gc_sweep_hook): Likewise.
639         (elf_s390_relocate_section): Likewise.
640         (elf_s390_object_p): Use renamed architecture define.
641         * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
642
643 2002-02-19  Frank Ch. Eigler  <[email protected]>
644
645         * syms.c (stt[]): Sorted.  Added .init/.fini -> "t" mapping.
646
647 2002-02-19  Jakub Jelinek  <[email protected]>
648
649         * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
650         absptr -> pcrel optimization for shared libs.
651         Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
652         library cannot be converted to pcrel.
653         (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
654         relative.
655         * elf32-i386.c (elf_i386_relocate_section): If
656         _bfd_elf_section_offset returned -2, skip, but make sure the
657         relocation is installed.
658         * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
659         * elf32-cris.c (cris_elf_relocate_section): Likewise.
660         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
661         * elf32-i370.c (i370_elf_relocate_section): Likewise.
662         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
663         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
664         * elf32-s390.c (elf_s390_relocate_section): Likewise.
665         * elf32-sh.c (sh_elf_relocate_section): Likewise.
666         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
667         * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
668         * elf64-s390.c (elf_s390_relocate_section): Likewise.
669         * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
670         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
671         * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
672         * elf64-alpha.c (elf64_alpha_relocate_section): Handle
673         _bfd_elf_section_offset returning -2 the same way as -1.
674         * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
675         * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
676         and BFD_ASSERT.
677         * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
678
679 2002-02-18  Tom Rix  <[email protected]>
680
681         * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
682         (bfd_xcoff_size_dynamic_sections): Same.
683         * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
684         (bfd_xcoff_size_dynamic_sections): Same.
685         * coff-rs6000.c (xcoff_generate_rtinit): Same.
686         * coff-rs646000.c (xcoff64_generate_rtinit): Same.
687         * libxcoff.h (struct xcoff_backend_data_rec): Same.
688         * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
689         * bfd-in2.h: Regenerate.
690
691 2002-02-18  Alan Modra  <[email protected]>
692
693         * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
694         (struct ppc_link_hash_table): Add sfpr.
695         (ppc64_elf_link_hash_table_create): Init it.
696         (ppc64_elf_create_dynamic_sections): Split creation of .stub and
697         .glink out to..
698         (create_linkage_sections): ..here.  Make .sfpr too.
699         (ppc64_elf_check_relocs): Call create_linkage_sections, and set
700         dynobj early.
701         (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
702         (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
703         ._restf* functions, and create as needed.
704         (func_desc_adjust): Only force_local for shared libs.
705
706 2002-02-18  David O'Brien  <[email protected]>
707
708         * configure.in: Bump version number post 2.12 branching.
709         * configure: Regenerate.
710
711 2002-02-17  Hans-Peter Nilsson  <[email protected]>
712
713         * mmo.c: Correct and improve comments.
714         (mmo_write_chunk): Store trailing byte in bfd buffer; don't
715         zero-pad.  Use input to fill up non-empty bfd buffer.
716         (mmo_flush_chunk): New function.
717         (mmo_write_loc_chunk): Add parameter last_vmap, all callers
718         changed.  Don't emit location specifier if VMA is same as
719         *LAST_VMAP after omitting leading zero contents.  Call
720         mmo_flush_chunk before emitting location specifier.
721         (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
722         with mmo_write_loc_chunk calls.
723         (mmo_internal_write_section): Call mmo_flush_chunk after
724         mmo_write_chunk.
725         (mmo_write_symbols_and_terminator): Move :Main to first position
726         in symbol array.  Add faked one if it does not exist if there are
727         other symbols.  Don't add it if there are no symbols at all.  Move
728         out test for value of :Main from symbol loop.  Rename table
729         fakemain to maintable and variable mainsym to fakemain.
730
731 2002-02-15  Richard Henderson  <[email protected]>
732
733         * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
734         section with no got matches any got.  Simplify error generaion.
735
736 2002-02-15  Alan Modra  <[email protected]>
737
738         Support arbitrary length fill patterns.
739         * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
740         (_bfd_default_link_order): Remove bfd_fill_link_order code.
741         Call default_data_link_order.
742         (default_fill_link_order): Delete.
743         (default_data_link_order): New function.
744         * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
745         of bfd_fill_link_order with bfd_data_link_order.
746         * elf64-alpha.c (elf64_alpha_final_link): Likewise.
747         * elf64-mips.c (mips_elf64_final_link): Likewise.
748
749         * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
750         Correct value returned in "end" for "0x<non-hex>".
751
752 2002-02-14  Nick Clifton  <[email protected]>
753
754         * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
755         (scan): Test against 'mach' field in info structure.
756
757 2002-02-14  Alan Modra  <[email protected]>
758
759         * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
760
761 2002-02-14  Matt Fredette  <[email protected]>
762
763         * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
764         EF_M68000.
765
766 2002-02-13  Nick Clifton  <[email protected]>
767
768         * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
769         non-zero physical addresses when adjusting the LMAs of new
770         sections.
771
772 2002-02-12  John David Anglin  <[email protected]>
773
774         * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
775         from _bfd_elf_hppa_gen_reloc_type.
776         (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
777         * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
778         * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
779         * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
780
781 2002-02-12  Alexandre Oliva  <[email protected]>
782
783         * elf-m10300.c (mn10300_elf_relax_section): Skip section before
784         loading its contents if there's nothing to do in it.
785
786 2002-02-12  Alan Modra  <[email protected]>
787
788         * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
789         64k boundary.
790
791         * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
792         DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
793         (ppc64_elf_finish_dynamic_sections): Set values for them.
794
795 2002-02-11  Michael Snyder  <[email protected]>
796
797         * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
798         * elf.c (elfcore_grok_pstatus): Add prototype.
799         (elfcore_grok_lwpstatus): Add prototype.
800         (elfcore_write_lwpstatus): New function.
801         (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
802
803 2002-02-11  Alexandre Oliva  <[email protected]>
804
805         * elf32-sh.c: Added missing prototypes.
806         * elf32-sh64.c: Likewise.
807         (sh_elf_align_loads): Mark unused args as such.
808         * elf64-sh64.c: Added missing prototypes.
809         (struct elf_sh64_link_hash_entry): Fix typo.
810         (sh_elf64_relocate_section): Fix info argument passed to
811         _bfd_elf_section_offset.
812
813 2002-02-11  Alan Modra  <[email protected]>
814
815         * Makefile.am: "make dep-am".
816         * Makefile.in: Regenerate.
817         * aclocal.m4: Regenerate.
818         * config.in: Regenerate.
819         * configure: Regenerate.
820
821 2002-02-10  Daniel Jacobowitz  <[email protected]>
822
823         * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
824         variable warnings.
825         * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
826         comparison warning.
827         * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
828         cast warnings for the common case.
829
830 2002-02-10  Hans-Peter Nilsson  <[email protected]>
831
832         * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
833         vectors.
834         (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
835         vectors.
836
837 2002-02-09  Richard Henderson  <[email protected]>
838
839         * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
840         (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
841         (elf64_alpha_relocate_section): Likewise.
842         * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
843         * bfd-in2.h, libbfd.h: Rebuild.
844
845 2002-02-09  Hans-Peter Nilsson  <[email protected]>
846
847         * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
848         that base-plus-offset reloc accounting is consistent.
849         (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
850         up to date for undefined symbols.
851
852 2002-02-08  Eric Christopher  <[email protected]>
853
854         From Rainer Orth  <[email protected]>
855
856         * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
857         sections for the O32 ABI.
858
859 2002-02-08  Chris Demetriou  <[email protected]>
860
861         * elf32-arm.h: Fix formatting of _("...").
862         * elf32-d10v.c: Likewise.
863         * elf32-m68k.c: Likewise.
864         * elf32-mips.c: Likewise.
865
866 2002-02-08  Ivan Guzvinec <[email protected]>
867
868         * coff-or32.c: Fix compile time warning messages.
869
870 2002-02-08  Alexandre Oliva  <[email protected]>
871
872         Contribute sh64-elf.
873         2002-01-23  Alexandre Oliva  <[email protected]>
874         * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
875         R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
876         R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
877         R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
878         R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
879         R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
880         R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
881         R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
882         R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
883         New relocs.
884         * libbfd.h, bfd-in2.h: Rebuilt.
885         * elf32-sh.c (sh_elf_howto_table): Define new relocs.
886         (sh_reloc_map): Map them.
887         (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
888         elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
889         elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
890         elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
891         elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
892         elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
893         movi_shori_putval) [INCLUDE_SHMEDIA]: New.
894         (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
895         datalabel_got_offset.
896         (sh_elf_link_hash_newfunc): Initialize it.
897         (sh_elf_relocate_section): Augment the scope of
898         seen_stt_datalabel.  Introduce GOTPLT support.  Extend GOTPC, PLT,
899         GOT and GOTOFF handling to new SHmedia relocation types.  Support
900         GOT_BIAS.
901         (sh_elf_check_relocs): Likewise.
902         (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
903         PLT entries using movi_shori_putval.  Support GOT_BIAS.
904         (sh_elf_finish_dynamic_sections): Likewise.
905         * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
906         relocation, it's now done by the caller.
907         (GOT_BIAS): New.
908         * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
909         elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
910         elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
911         elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
912         elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
913         elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
914         sh64_elf64_hash_table): New.
915         (sh_elf64_howto_table): Introduce new relocs.
916         (sh_elf64_info_to_howto): Accept new PIC relocs.
917         (sh_elf64_relocate_section): Augment the scope of
918         seen_stt_datalabel.  Support new PIC relocs.
919         (sh_elf64_check_relocs): Support new PIC relocs.
920         (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
921         elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
922         elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
923         elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
924         sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
925         movi_shori_putval, movi_3shori_putval,
926         sh64_elf64_create_dynamic_sections,
927         sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
928         sh64_elf64_size_dynamic_sections,
929         sh64_elf64_finish_dynamic_symbol,
930         sh64_elf64_finish_dynamic_sections): New.
931         (elf_backend_create_dynamic-sections,
932         bfd_elf64_bfd_link_hash_table_create,
933         elf_backend_adjust_dynamic_symbol,
934         elf_backend_size_dynamic_sections,
935         elf_backend_finish_dynamic_symbol,
936         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
937         elf_backend_plt_readonly, elf_backend_want_plt_sym,
938         elf_backend_got_header_size, elf_backend_plt_header_size):
939         Define.
940         2001-05-16  Alexandre Oliva  <[email protected]>
941         * elf32-sh.c: Renumbered and renamed some SH5 relocations to
942         match official numbers and names; moved unmaching ones to the
943         range 0xf2-0xff.
944         * elf32-sh64.c, elf64-sh64.c: Likewise.
945         2001-03-12  DJ Delorie  <[email protected]>
946         * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
947         sections.
948         2001-03-12  DJ Delorie  <[email protected]>
949         * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
950         be aligned.
951         * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
952         2001-01-14  Hans-Peter Nilsson  <[email protected]>
953         * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
954         (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
955         .cranges section with SEC_SORT_ENTRIES set.
956         (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
957         incoming sorted .cranges section.
958         (sh64_bfd_elf_copy_private_section_data): New.
959         (sh64_elf_final_write_processing): Only sort .cranges and modify
960         start address if called by linker.
961         2001-01-08  Ben Elliston  <[email protected]>
962         * elf32-sh64.c (sh64_elf_final_write_processing): Activate
963         Hans-Peter Nilsson's set bit 0 patch from       2001-01-06.
964         * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
965         2001-01-06  Hans-Peter Nilsson  <[email protected]>
966         * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
967         line.  Add comments before all entries.
968         <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
969         comment.
970         (sh_elf64_reloc): Correct head comment.
971         (sh_elf64_relocate_section): Correct spacing.
972         <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
973         instead call reloc_dangerous callback.
974         <case R_SH_SHMEDIA_CODE>: New case.
975         (sh_elf64_gc_mark_hook): Correct spacing.
976         (sh_elf64_check_relocs): Ditto.
977         * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
978         New case.
979         * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
980         functions.
981         (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
982         clarify describing comment.  Add comments before all entries.
983         (sh_elf_relocate_section) <relocating for a local symbol>: Do not
984         honour STO_SH5_ISA32; instead call reloc_dangerous callback.
985         2001-01-06  Hans-Peter Nilsson  <[email protected]>
986         Sort .cranges section in final link.  Prepare to set bit 0 on
987         entry address.
988         * elf32-sh64.c (struct sh64_find_section_vma_data): New.
989         (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
990         (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
991         .cranges section.
992         (sh64_backend_section_from_shdr): New, to recognize
993         SHT_SH5_CR_SORTED on incoming .cranges section.
994         (elf_backend_section_from_shdr): Define.
995         (sh64_elf_final_write_processing): Sort outgoing .cranges
996         section.  (New, temporarily disabled:) Set bit 0 on entry address
997         according to ISA type.
998         (sh64_find_section_for_address): New.
999         (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1000         crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1001         (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c.  Use
1002         bfd_malloc, not xmalloc.
1003         (sh64_get_contents_type): Move here from opcodes/sh64-dis.c.  Make
1004         global.
1005         * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1006         temporarily disabled) setting bit 0 on entry address.
1007         (elf_backend_final_write_processing): Define.
1008         2001-01-05  Hans-Peter Nilsson  <[email protected]>
1009         * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1010         be a proper relocation for PTA and PTB rather than a marker.
1011         <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1012         R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1013         R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1014         R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1015         R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1016         Zero src_mask.
1017         * elf64-sh64.c: Ditto.
1018         (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1019         * elf32-sh64.c: Include opcodes/sh64-opc.h
1020         (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1021         argument.  Drop const qualifiers from "bfd *" and "bfd_byte *"
1022         parameters.  No unused parameters.  Caller changed.
1023         <case R_SH_PT_16>: New case.
1024         * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1025         * Makefile.in: Regenerate.
1026         2000-12-30  Hans-Peter Nilsson  <[email protected]>
1027         * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1028         all code sections.
1029         (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1030         (sh64_elf_merge_private_data): Ditto.
1031         * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1032         to access stored section flags.
1033         (sh64_elf_final_write_processing): Return immediately unless
1034         called by linker.  Use sh64_elf_section_data (cranges) to get size
1035         of linker-generated cranges entries.
1036         (sh64_elf_copy_private_data): Add missing "return true".
1037         (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1038         (sh_elf64_merge_private_data): Ditto.
1039         2000-12-19  Hans-Peter Nilsson  <[email protected]>
1040         * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1041         elf64-sh64.c:sh64_elf_fake_sections.
1042         (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1043         2000-12-18  Hans-Peter Nilsson  <[email protected]>
1044         * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1045         (sh64_elf_final_write_processing): New.
1046         (elf_backend_final_write_processing): Define.
1047         (sh64_elf_fake_sections): Get header flags from tdata field.
1048         (sh64_elf_copy_private_data): Do not call
1049         sh64_elf_copy_private_data_internal, just copy e_flags field.
1050         (sh64_elf_merge_private_data): Do not call
1051         sh64_elf_copy_private_data_internal.
1052         2000-12-12  Hans-Peter Nilsson  <[email protected]>
1053         Remove EF_SH64_ABI64, let ELF size make difference.
1054         Remove SH64-specific BFD section flag.
1055         * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1056         containing SHmedia through elf_section_data (asect)->tdata
1057         non-zero, not using a BFD section flag.
1058         (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1059         (sh64_elf_merge_private_data): Similar.
1060         (elf_backend_section_flags): Don't define.
1061         (sh64_elf_backend_section_flags): Delete.
1062         * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1063         not EF_SH64_ABI64.
1064         (sh_elf64_merge_private_data): Similar.
1065         * section.c (Section flags definitions): Don't define
1066         SEC_SH_ISA_SHMEDIA.
1067         (bfd-in2.h): Regenerate.
1068         2000-12-09  Hans-Peter Nilsson  <[email protected]>
1069         Make DataLabel references work with partial linking.
1070         * elf32-sh64.c: Fix formatting.
1071         (sh64_elf_link_output_symbol_hook): New.
1072         (elf_backend_link_output_symbol_hook): Define to
1073         sh64_elf_link_output_symbol_hook.
1074         (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1075         undefined if partial linking.  Adjust sanity check.
1076         * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1077         (elf_backend_link_output_symbol_hook): Define to
1078         sh64_elf64_link_output_symbol_hook.
1079         (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1080         undefined if partial linking.  Adjust sanity check.
1081         2000-12-07  Hans-Peter Nilsson  <[email protected]>
1082         Implement semantics for inter-file DataLabel references.
1083         * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1084         (sh64_elf64_add_symbol_hook): New.
1085         (sh_elf64_relocate_section): If passing an indirect symbol with
1086         st_type STT_DATALABEL on the way to a symbol with st_other
1087         STO_SH5_ISA32, do not bitor 1 to the relocation.
1088         (elf_backend_add_symbol_hook): Define to
1089         sh64_elf64_add_symbol_hook.
1090         * elf64-sh32.c: Tweak comments.
1091         (DATALABEL_SUFFIX): Define.
1092         (sh64_elf_add_symbol_hook): New.
1093         (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1094         * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1095         symbol with st_type STT_DATALABEL on the way to a symbol with
1096         st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1097         2000-12-05  Hans-Peter Nilsson  <[email protected]>
1098         Pass through STT_DATALABEL.
1099         * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1100         (elf_backend_get_symbol_type): Define.
1101         * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1102         (elf_backend_get_symbol_type): Define.
1103         2000-11-30  Hans-Peter Nilsson  <[email protected]>
1104         * elf32-sh64.c: Tweak comments.
1105         (sh64_elf_copy_private_data_internal): Add prototype.
1106         (bfd_elf32_bfd_set_private_flags): Define.
1107         (sh64_elf_copy_private_data_internal): Compare machine name, not
1108         textual BFD target name, to check whether to copy section flag
1109         SHF_SH5_ISA32.
1110         (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1111         Tweak section-contents-type-mismatch message.
1112         (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1113         Validize reloc-types.
1114         * elf64-sh64.c: New file.
1115         * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1116         * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1117         (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1118         Regenerate dependencies.
1119         * Makefile.in: Regenerate.
1120         * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1121         bfd_elf64_sh64l_vec.
1122         * configure.in: Handle bfd_elf64_sh64_vec and
1123         bfd_elf64_sh64l_vec.
1124         * configure: Regenerate.
1125         * po/POTFILES.in: Regenerate.
1126         * po/bfd.pot: Regenerate.
1127         2000-11-29  Hans-Peter Nilsson  <[email protected]>
1128         * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1129         anything else but EF_SH64 and EF_SH64_ABI64.
1130         (sh64_elf_merge_private_data): Emit error for anything else but
1131         EF_SH64 and EF_SH64_ABI64.
1132         * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1133         from targ_selvecs.
1134         * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1135         bfd_elf32_sh64l_vec as a temporary measure.
1136         * configure: Regenerate.
1137         2000-11-27  Hans-Peter Nilsson  <[email protected]>
1138         * cpu-sh.c (arch_info_struct): Include sh5 item
1139         unconditionalized.
1140         * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1141         Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1142         bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1143         * elf32-sh64.c: Tweak comments.
1144         (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1145         are proper subsets of SH64 as bfd_mach_sh5.  Add EF_SH64_ABI64.
1146         (sh64_elf_copy_private_data_internal): Wrap long line.
1147         (sh64_elf_merge_private_data): Rewrite to allow objects from
1148         SH64 subsets to be linked together.
1149         (INCLUDE_SHMEDIA): Define.
1150         * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1151         Parenthesize plus-expression inside or-expression.
1152         <global symbol>: Ditto.
1153         (sh_elf_set_mach_from_flags): Remove code refusing
1154         deleted EF_SH64_32BIT_ABI flag.
1155         2000-11-26  Hans-Peter Nilsson  <[email protected]>
1156         * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1157         R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1158         R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1159         (sh_elf_relocate_section) <local symbol>: Or 1 in
1160         calculation of relocation if sym->st_other & STO_SH5_ISA32.
1161         <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1162         * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1163         relocation.
1164         2000-11-24  Hans-Peter Nilsson  <[email protected]>
1165         * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1166         (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1167         Regenerate dependencies.
1168         * Makefile.in: Regenerate.
1169         * archures.c: Add bfd_mach_sh5.
1170         * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1171         Handle sh64-*-elf*.  Set targ_cflags to -DINCLUDE_SHMEDIA.
1172         * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1173         * configure: Regenerate.
1174         * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1175         BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1176         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1177         BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1178         BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1179         BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1180         BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1181         BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1182         BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1183         * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1184         in item for SH5.
1185         * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1186         for SHmedia relocs.
1187         [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1188         [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1189         shmedia_prepare_reloc, goto final_link_relocate if it returns
1190         non-zero, else fail as before.
1191         (sh_elf_set_mach_from_flags): Provide function only if not defined
1192         as macro.  Do not recognize objects with EF_SH64_32BIT_ABI set.
1193         (sh_elf_set_private_flags): Provide function only if not defined
1194         as a macro.
1195         (sh_elf_copy_private_data): Similar.
1196         (sh_elf_merge_private_data): Similar.
1197         * section.c (SEC_SH_ISA_SHMEDIA): New.
1198         * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1199         * elf32-sh64.c: New file.
1200         * libbfd.h: Regenerate.
1201         * bfd-in2.h: Regenerate.
1202         * po/POTFILES.in: Regenerate.
1203         * po/bfd.pot: Regenerate.
1204         * bfd-in2.h: Regenerate.
1205         * libbfd.h: Regenerate.
1206
1207 2002-02-07  Daniel Jacobowitz  <[email protected]>
1208
1209         * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1210         been included, not drag it in.
1211         * bfd-in2.h: Regenerate.
1212
1213 2002-02-06  H.J. Lu  ([email protected])
1214
1215         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1216         the mach and ISA fields if necessary.
1217
1218 2002-02-06  Nick Clifton  <[email protected]>
1219
1220         * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1221         ARM architecture when an F_ARM_5 flag is detected, since we cannot
1222         be sure exactly which architecture this represents.
1223
1224 2002-02-05  Nick Clifton  <[email protected]>
1225
1226         * po/tr.po: Updated translation.
1227
1228 2002-02-05  Alan Modra  <[email protected]>
1229
1230         From Jimi X <[email protected]>
1231         * archures (bfd_mach_ppc64): Define.
1232         (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1233         (bfd_powerpc_arch): Define.
1234         * bfd-in2.h: Regenerate.
1235         * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1236         (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1237         (bfd_powerpc_archs): Add default powerpc64 arch.
1238
1239 2002-02-05  Alan Modra  <[email protected]>
1240
1241         * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1242         against section syms in readonly sections.  Don't do the global
1243         sym check if we find one.
1244         * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1245         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1246         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1247         * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1248         (elf_s390_grok_prstatus): Add missing prototype.
1249
1250 2002-02-04  Hans-Peter Nilsson  <[email protected]>
1251
1252         * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1253         (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1254         Call bfd_get_section_by_name only once.  Initialize
1255         bpodata->n_bpo_relocs_this_section.
1256         (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1257         referring to DSOs.
1258         (bpo_reloc_request_sort_fn): Don't use difference of values as
1259         return-value.
1260
1261 2002-02-02  David O'Brien  <obrien@FreeBSD>
1262
1263         * configure.in: Tweak the FreeBSD 4.x recognition more.  Only treat
1264         version 4.5 and later the same as 5-CURRENT.
1265         * configure: Re-generate.
1266
1267 2002-02-02  Jason Thorpe  <[email protected]>
1268
1269         * config.bfd (hppa*-*-netbsd*): New target.
1270
1271 2002-01-31  Philipp Thomas  <[email protected]>
1272
1273         * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1274         to front of message. Unify messages with elf32-arm.h. Use
1275         commas where neccessary.
1276         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1277         ERROR in messages. Unify messages with coff-arm.c. Correct
1278         VFP/FPA error message.
1279         (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1280         APCS-32 for translation.
1281
1282 2002-02-01  Hans-Peter Nilsson  <[email protected]>
1283
1284         Perform on-demand global register allocation from
1285         R_MMIX_BASE_PLUS_OFFSET relocs.
1286         * elf64-mmix.c (struct bpo_reloc_section_info, struct
1287         bpo_reloc_request, struct bpo_greg_section_info): New.
1288         (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1289         bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1290         _bfd_mmix_check_all_relocs,
1291         _bfd_mmix_prepare_linker_allocated_gregs,
1292         _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1293         (elf_mmix_howto_table): Correct src_mask for most relocs.
1294         (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1295         case.
1296         (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1297         case.  Fix typo in comment.  New label do_mmix_reloc.
1298         (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1299         store first object file with a base-plus-offset reloc.  Call
1300         mmix_elf_check_common_relocs for the part common with mmo.
1301         (mmix_elf_final_link): Write out linker-allocated register
1302         contents section.
1303         (elf_backend_gc_sweep_hook): Define.
1304         (bfd_elf64_bfd_relax_section): Define.
1305
1306         * mmo.c: Don't include <ctype.h>
1307         (mmo_init): Correct init-once logic.
1308
1309 2002-02-01  Tom Rix  <[email protected]>
1310
1311         * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1312
1313 2002-02-01  Alan Modra  <[email protected]>
1314
1315         * Makefile.am: Run "make dep-am"
1316         * Makefile.in: Regenerate.
1317
1318 2002-01-31  David O'Brien  <obrien@FreeBSD>
1319
1320         * configure.in: Recognize the differences in core files from FreeBSD
1321         4.{0,1} and later versions of 4.x.  This treats 4.2+ the same as
1322         5-CURRENT.
1323         * configure: Regenerate.
1324
1325 2002-01-31  Ivan Guzvinec  <[email protected]>
1326
1327         * coff-or32.c: New file.
1328         * cpu-or32.c: New file.
1329         * elf32-or32.c: New file.
1330         * archures.c: Add support for or32.
1331         * targets.c: Add support for or32.
1332         * bfd-in2.h: Regenerate.
1333         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
1334         coff_write_object_contents): Add support for or32.
1335         * config.bfd: Add target.
1336         * configure.in: Add support for or32.
1337         * configure: Regenerate.
1338         * Makefile.am: Add support for or32.
1339         * Makefile.in: Regenerate.
1340         * po/SRC-POTFILES.in: Add or32 files.
1341         * po/bfd.pot: Regenerate.
1342
1343 2002-01-31  Nick Clifton  <[email protected]>
1344             Don Lindsay  <[email protected]>
1345
1346         * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1347         false' with a return of a bfd_reloc_ error code.
1348
1349 2002-01-31  Hans-Peter Nilsson  <[email protected]>
1350
1351         * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1352         unexport unreferenced symbols when --export-dynamic.  Call
1353         _bfd_elf_strtab_delref when unexporting.
1354
1355 2002-01-30  Daniel Jacobowitz  <[email protected]>
1356
1357         * bfd-in.h: Include <stdbool.h> if it is available.
1358         * bfd-in2.h: Regenerated.
1359
1360 2002-01-31  Alan Modra  <[email protected]>
1361
1362         * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1363         not go via the plt.
1364
1365 2002-01-30  Nick Clifton  <[email protected]>
1366
1367         * archures.c: Tidy up formatting of embedded comments.
1368         * bfd.c: Tidy up formatting of embedded comments.
1369         * bfd-in.h: Fix formatting of comments.
1370         * reloc.c: Tidy up formatting of ordinary & embedded comments.
1371         * section.c: Tidy up formatting of embedded comments.
1372         * syms.c: Tidy up formatting of embedded comments.
1373         * targets.c: Tidy up formatting of embedded comments.
1374
1375         * bfd-in2.h: Regenerate.
1376
1377 2002-01-30  Nick Clifton  <[email protected]>
1378
1379         * vms-tir.c (cmd_name): New function.
1380         (tir_cmd_name): New function.
1381         (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1382         (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1383         Fix formatting.
1384
1385         * peXXigen.c (pe_print_idata): Rearrange message to aid in
1386         translation.
1387         (pe_print_pdata):  Rearrange message to aid in translation.
1388
1389         * libbfd.c (warn_deprecated): Rearrange error message to aid in
1390         translation.
1391
1392         * ihex.c (ihex_write_object_contents): Fix spelling typo.
1393
1394         * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1395
1396         * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1397         message to aid in translation.
1398
1399         * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1400         to aid in translation.
1401
1402         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1403
1404 2002-01-30  Philipp Thomas  <[email protected]>
1405
1406         * coff-arm.c, elf32-elf.h: Unify messages.
1407
1408 2002-01-30  Nick Clifton <[email protected]>
1409
1410         * po/sv.po: Updated translation.
1411
1412 2002-01-30  Philipp Thomas  <[email protected]>
1413
1414         * dwarf2.c (read_abbrev): Use full section name in error message.
1415         (decode_line_info): Likewise.
1416
1417         * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1418         message.
1419
1420 2002-01-30  Alan Modra  <[email protected]>
1421
1422         * elf64-ppc.c (func_desc_adjust): Only provide missing function
1423         descriptor symbols for undefined function code syms.  Clear
1424         ELF_LINK_NON_ELF so that they can stay weak.
1425
1426 2002-01-29  Chris Demetriou  <[email protected]>
1427             Mitch Lichtenberg  <[email protected]>
1428
1429         * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1430         * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1431         to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1432         generation.
1433         * bfd-in2.h: Regenerate.
1434
1435 2002-01-29  Chris Demetriou  <[email protected]>
1436
1437         * elf32-mips.c: Add additional comments about HI16 relocation
1438         processing.
1439         (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1440         pc-relative relocations.  (Reverts change made on 2001-10-31.)
1441         (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1442         for pc-relative relocations.
1443         (mips_elf_calculate_relocation): Add a comment about a kludge
1444         in the R_MIPS_GNU_REL_HI16 handling.
1445         (_bfd_mips_elf_relocate_section): Implement that kludge;
1446         adjust pc-relative HI16 relocation for difference in HI16 and
1447         LO16 addresses, since it can't easily be done in
1448         mips_elf_calculate_relocation.
1449
1450 2002-01-29  Martin Schwidefsky  <[email protected]>
1451
1452         * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1453         relocations with PC32 relocations for undefined or weak symbols.
1454         * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1455         * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1456
1457 2002-01-28  Jason Thorpe  <[email protected]>
1458
1459         * elfcore.h (elf_core_file_p): Improve comment for last change.
1460
1461 2002-01-27  Daniel Jacobowitz  <[email protected]>
1462
1463         * configure: Regenerated.
1464
1465 2002-01-27  Jason Thorpe  <[email protected]>
1466
1467         * elfcore.h (elf_core_file_p): Set the machine architecture
1468         before processing the program headers.
1469
1470 2002-01-26  Hans-Peter Nilsson  <[email protected]>
1471
1472         * configure.in <64-bit configuration>: If using gcc, check and
1473         emit error for egcs-1.1.2.
1474         * configure: Regenerate.
1475
1476 2002-01-26  Egor Duda  <[email protected]>
1477
1478         * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1479         as possible to avoid stack corruption.
1480
1481 2002-01-26  Richard Henderson  <[email protected]>
1482
1483         * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1484         for non-allocated sections.
1485
1486 2002-01-25  Mark Kettenis  <[email protected]>
1487
1488         * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1489         prstat.pr_reg even if it is a struct.
1490
1491 2002-01-25  Steve Ellcey <[email protected]>
1492
1493         * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1494
1495 2002-01-25  Philipp Thomas  <[email protected]>
1496
1497         * coffgen.c (coff_print_symbol): Don't mark info message
1498         for translation.
1499
1500 2002-01-25  Nick Clifton <[email protected]>
1501
1502         * po/fr.po: Updated translation.
1503         * po/es.po: Updated translation.
1504
1505 2002-01-25  Philipp Thomas  <[email protected]>
1506
1507         * coff-alpha.c (alpha_relocate_section): Unify warning message
1508         for GP relative relocations without GP defined.
1509         * coff-mips.c (mips_relocate_section): Likewise.
1510
1511 2002-01-25  Alan Modra  <[email protected]>
1512
1513         * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1514         unsigned overflow when new_offset < old_offset.
1515
1516 2002-01-24  Philipp Thomas  <[email protected]>
1517
1518         * bfd.c (_bfd_abort): Fix typo.
1519
1520 2002-01-23  Richard Henderson  <[email protected]>
1521
1522         * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1523         plt entries for undefweak symbols.
1524
1525 2002-01-23  Steve Ellcey <[email protected]>
1526
1527         * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1528         DEFAULT_VECTOR.
1529         (bfd_elf64_ia64_hpux_big_vec): Ditto.
1530         (bfd_elf32_h8300_vec): Ditto.
1531
1532 2002-01-23  Alan Modra  <[email protected]>
1533
1534         * elf64-ppc.c: Remove stale part of ABI comment.
1535         (NO_OPD_RELOCS): Define.
1536         (ppc64_elf_check_relocs): Use it.
1537         (ppc64_elf_relocate_section): Here too.
1538         (build_one_stub): Don't point function syms at the stub.  Instead,
1539         hijack plt.offset.
1540         (ppc64_elf_relocate_section): Check whether REL24 relocs should
1541         really go to the stub.  Make all dynamic relocs in opd against
1542         locals.
1543         (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1544         plt.offset.
1545
1546 2002-01-22  Richard Henderson  <[email protected]>
1547
1548         * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1549
1550 2002-01-22  Alan Modra  <[email protected]>
1551
1552         * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1553         TOC_BASE_OFF adjustment.
1554
1555         * Makefile.am: Run "make dep-am".
1556         * Makefile.in: Regenerate.
1557         * po/SRC-POTFILES.in: Regenerate.
1558
1559 2002-01-22  John David Anglin  <[email protected]>
1560
1561         * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1562         host defines.
1563
1564 2002-01-21  Hans-Peter Nilsson  <[email protected]>
1565
1566         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1567         Check for and emit error if sgot is NULL at this point.
1568
1569 2002-01-21  Jason Thorpe  <[email protected]>
1570
1571         * config.bfd (ia64*-*-netbsd*): New target.
1572
1573 2002-01-21  Thomas Klausner <[email protected]>
1574
1575         * som.c (som_write_space_strings): Comment typo fix.
1576
1577 2002-01-21  Alan Modra  <[email protected]>
1578
1579         * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1580         is_func_descriptor fields.
1581         (link_hash_newfunc): Init them.
1582         (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1583         dot are candidates for plt entries.  When processing .opd relocs,
1584         set function descriptor strings to point inside function code
1585         string, and set new ppc_link_hash_entry fields.
1586         (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1587         (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1588         function descriptors.  It's now done in..
1589         (func_desc_adjust): New.
1590         (ppc64_elf_func_desc_adjust): New.
1591         (define elf_backend_always_size_sections): Define.
1592         (ppc64_elf_hide_symbol): New.
1593         (define elf_backend_hide_symbol): Define.
1594         (allocate_dynrelocs): Remove code looking up function descriptors
1595         as that has been done earlier.
1596         (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1597         table.
1598         (ppc64_elf_finish_dynamic_symbol): Likewise.  Remove code looking
1599         up function descriptor.
1600         (build_one_stub): Look up the function code sym.  Check for
1601         invalid plt offsets.
1602         (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1603         Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1604
1605         * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1606         boolean param.
1607         (_bfd_elf_link_hash_hide_symbol): Likewise.
1608         * elflink.h (elf_link_add_object_symbols): Adjust call to
1609         elf_backend_hide_symbol.
1610         (elf_fix_symbol_flags): Likewise.
1611         (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1612         than bfd_alloc.
1613         * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1614         Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1615         * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1616         (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1617         * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1618         and adjust to suit.
1619         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1620         _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1621         * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1622
1623 2002-01-18  Alan Modra  <[email protected]>
1624
1625         * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1626         dynamic function descriptor symbol, not the associated function
1627         symbol.
1628
1629 2002-01-17  Eric Christopher  <[email protected]>
1630
1631         * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1632
1633 2002-01-17  Nick Clifton  <[email protected]>
1634
1635         * po/bfd.pot: Regenerate.
1636         * po/fr.po: Regenerate.
1637
1638 2002-01-17  Alan Modra  <[email protected]>
1639
1640         * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1641         Remove "Elf_Internal_Shdr *" param.
1642         (_bfd_mips_elf_section_from_bfd_section): Ditto.
1643         * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1644         * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1645         * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1646         * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1647         * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1648         * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1649         function to override special sections.  Remove hdr arg from
1650         backend call, and don't loop.
1651
1652 2002-01-16  Eric Christopher  <[email protected]>
1653
1654         * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1655         on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1656         relocations requiring gp0 and gp.
1657
1658 2002-01-16  Richard Earnshaw  <[email protected]>
1659
1660         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
1661         EF_ARM_VFP_FLOAT.
1662         (elf32_arm_print_private_bfd_data): Likewise.
1663
1664 2002-01-16  Nick Clifton  <[email protected]>
1665
1666         * po/tr.po: Import new version.
1667
1668 2002-01-16  Alan Modra  <[email protected]>
1669
1670         * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1671         (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1672         (ORI_R0_R0_0): Correct.
1673
1674 2002-01-16  Alan Modra  <[email protected]>
1675
1676         * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1677         when plt_not_loaded.
1678         * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1679         clear .plt SEC_CODE here.  Create .stub and correct .glink flags.
1680         (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1681         (ppc64_elf_glink_code): Delete.
1682         (PPC64_ELF_GLINK_SIZE): Delete.
1683         (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1684         BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1685         ORI_R0_R0_0): Define.
1686         (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1687         (struct ppc_link_hash_table): Add sstub and plt_overflow.
1688         (ppc64_elf_link_hash_table_create): Init them.
1689         (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1690         Don't copy to shared lib.
1691         (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1692         (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1693         (allocate_dynrelocs <plt>): Don't change function sym here.  Make
1694         room for .stub and .glink code.
1695         (ppc64_elf_size_dynamic_sections): Handle .stub.  Make entry for
1696         DT_PPC64_GLINK.
1697         (ppc64_elf_final_link): Rename to ppc64_elf_set_toc.  Don't call
1698         bfd_elf64_bfd_final_link.
1699         (bfd_elf64_bfd_final_link): Don't define.
1700         (ppc64_elf_size_stubs): New.
1701         (build_plt_stub): New.
1702         (build_one_stub): New.
1703         (ppc64_elf_build_stubs): New.
1704         (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1705         (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1706         (ppc64_elf_finish_dynamic_symbol): Don't build stubs here.  Set
1707         DT_PPC64_GLINK entry.  Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1708         case output sections not separate.  Adjust DT_RELASZ to not
1709         include plt relocs.  Set reserved got entry.  Set got and plt
1710         entry size.
1711         (elf_backend_got_header_size): Set to 8.
1712         * elf64-ppc.h: New file.
1713
1714 2002-01-16  Alan Modra  <[email protected]>
1715
1716         * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1717         sections, use bfd_section_list_remove.
1718         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1719         * elflink.h (elf_link_add_object_symbols): When removing all
1720         sections, use bfd_section_list_clear.
1721
1722 2002-01-15  Nick Clifton  <[email protected]>
1723
1724         * po/sv.po: New file: Swedish translation.
1725         * configure.in (ALL_LINGUAS): Add sv.
1726         * configure: Regenerate.
1727
1728 2002-01-15  Jakub Jelinek  <[email protected]>
1729
1730         * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1731         * elf.c (merge_sections_remove_hook): New function.
1732         (_bfd_elf_merge_sections): Pass it as 3rd argument to
1733         _bfd_merge_sections.
1734         * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1735         * libbfd.h: Rebuilt.
1736         * merge.c (_bfd_merge_sections): Add remove_hook argument.
1737         Call remove_hook if a SEC_EXCLUDE section is encountered.
1738
1739 2002-01-15  Nick Clifton  <[email protected]>
1740
1741         * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1742         (xstormy16_reloc_map): Initialise new field with correct howto
1743         table.
1744         (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1745         howto entry.
1746
1747 2002-01-10  Michael Snyder  <[email protected]>
1748
1749         * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1750         (elfcore_write_pstatus): Use long instead of pid_t;
1751         * elf-bfd.h: Change prototypes to use long instead of pid_t;
1752
1753 2002-01-09  Jason Thorpe  <[email protected]>
1754
1755         * elf.c: Update copyright years.
1756         (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1757         and NT_NETBSDCORE_FIRSTMACH.  Improve a comment.
1758
1759 2002-01-08  Michael Snyder  <[email protected]>
1760
1761         Add capability to write corefile note sections, for gdb.
1762         * elf.c (elfcore_write_note): New function.
1763         (elfcore_write_prpsinfo): New function.
1764         (elfcore_write_prstatus): New function.
1765         (elfcore_write_pstatus): New function.
1766         (elfcore_write_prfpreg): New function.
1767         (elfcore_write_prxfpreg): New function.
1768         * elf-bfd.h: Add prototypes for above functions.
1769
1770 2002-01-08  Alexandre Oliva  <[email protected]>
1771
1772         * elf.c (elf_fake_sections): Propagate errors from
1773         elf_backend_fake_section.
1774
1775 2002-01-07  Jason Thorpe  <[email protected]>
1776
1777         * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1778         (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1779         (elf32-sh-nbsd.lo): New rule.
1780         * Makefile.in: Regenerate.
1781         * config.bfd (sh*le-*-netbsdelf*): New target.
1782         (sh*-*-netbsdelf*): New target.
1783         * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1784         (bfd_elf32_shnbsd_vec): New vector.
1785         (bfd_elf32_shlnbsd_vec): New vector.
1786         * configure: Regenerate.
1787         * elf32-sh-nbsd.c: New file.
1788         * targets.c: Update copyright years.
1789         (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
1790         bfd_elf32_shnbsd_vec.
1791
1792 2002-01-07  Aldy Hernandez  <[email protected]>
1793
1794         * coff-rs6000.c (READ20): Use bfd_scan_vma.
1795
1796 2002-01-07  Geoffrey Keating  <[email protected]>
1797
1798         * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1799         of a symbol in a section that will be deleted.
1800
1801 2002-01-07  Nick Clifton  <[email protected]>
1802
1803         * po/es.po: New file: Spanish translation.
1804         * configure.in (ALL_LINGUAS): Add es.
1805         * configure: Regenerate.
1806
1807 2002-01-06  Steve Ellcey  <[email protected]>
1808
1809         * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1810         argument so we can handle HP-UX specially.
1811         (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1812         (elfNN_hpux_backend_section_from_bfd_section): New for support
1813         of SHN_IA_64_ANSI_COMMON.
1814         (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1815         (is_unwind_section_name): Add special HP-UX support.
1816         (elfNN_ia64_section_from_shdr): Add support for more sections.
1817         (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1818         add support for more sections.
1819         (elfNN_ia64_additional_program_headers): Modify
1820         is_unwind_section_name call.
1821         (elfNN_ia64_modify_segment_map): Remove assumption that there is
1822         only one unwind section in segment.
1823
1824 2002-01-06  Alan Modra  <[email protected]>
1825
1826         * syms.c (_bfd_generic_make_empty_symbol): New function.
1827         * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1828         _bfd_generic_make_empty_symbol.
1829         * libbfd.h: Regenerate.
1830         * bfd-in2.h: Regenerate.
1831         * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1832         (hppabsd_core_get_symtab_upper_bound): Don't define.
1833         (hppabsd_core_get_symtab): Likewise.
1834         (hppabsd_core_print_symbol): Likewise.
1835         (hppabsd_core_get_symbol_info): Likewise.
1836         (hppabsd_core_bfd_is_local_label_name): Likewise.
1837         (hppabsd_core_get_lineno): Likewise.
1838         (hppabsd_core_find_nearest_line): Likewise.
1839         (hppabsd_core_bfd_make_debug_symbol): Likewise.
1840         (hppabsd_core_read_minisymbols): Likewise.
1841         (hppabsd_core_minisymbol_to_symbol): Likewise.
1842         (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1843         Formatting fixes.
1844         * hpux-core.c: Similarly.
1845         * irix-core.c: Similarly.
1846         * osf-core.c: Similarly.
1847         * sco5-core.c: Similarly.
1848         * binary.c (binary_make_empty_symbol): Remove function, define as
1849         _bfd_generic_make_empty_symbol.
1850         * ihex.c (ihex_make_empty_symbol): Likewise.
1851         * mmo.c (mmo_make_empty_symbol): Likewise.
1852         * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1853         * srec.c (srec_make_empty_symbol): Likewise.
1854         * versados.c (versados_make_empty_symbol): Likewise.
1855         * vms.c (_bfd_vms_make_empty_symbol): Remove.
1856         (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1857         * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1858         rather than _bfd_vms_make_empty_symbol.
1859         * vms-misc.c (new_symbol): Likewise.
1860
1861 2002-01-05  Alan Modra  <[email protected]>
1862
1863         * section.c (bfd_section_init): Remove unnecessary initialisations.
1864         (bfd_section_list_clear): New function.
1865         (bfd_section_list_remove, bfd_section_list_insert): New macros.
1866         (_bfd_strip_section_from_output): Use them.
1867         * coffcode.h (coff_set_alignment_hook): Likewise.
1868         * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1869         * elf64-mips.c (mips_elf64_final_link): Likewise.
1870         * elf64-mmix.c (mmix_elf_final_link): Likewise.
1871         * sunos.c (sunos_add_dynamic_symbols): Likewise.
1872         * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1873         * bfd-in2.h: Regenerate.
1874
1875         * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1876         rather than doing our own section handling.  Clean up after errors
1877         with bfd_release and bfd_section_list_clear.  Handle unexpected
1878         flags.
1879         * aoutf1.h (sunos4_core_file_p): Likewise.
1880         * aix386-core.c (aix386_core_file_p): Likewise.
1881         * cisco-core.c (cisco_core_file_validate): Likewise.
1882         * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1883         * trad-core.c (trad_unix_core_file_p): Likewise.
1884
1885         * hppabsd-core.c (hppabsd_core_core_file_p):  Clean up after errors
1886         with bfd_release and bfd_section_list_clear.
1887         * hpux-core.c (hpux_core_core_file_p): Likewise.
1888         * irix-core.c (irix_core_core_file_p): Likewise.
1889         * lynx-core.c (lynx_core_file_p): Likewise.
1890         * osf-core.c (osf_core_core_file_p): Likewise.
1891         * rs6000-core.c (rs6000coff_core_p): Likewise.
1892         * sco5-core.c (sco5_core_file_p): Likewise.
1893
1894         * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1895         sign extension adjustments without conditionals.
1896
1897 2002-01-04  Jakub Jelinek  <[email protected]>
1898
1899         * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1900         CIE at .eh_frame start is removed due to no FDEs referencing it.
1901
1902 2002-01-04  Jason Thorpe  <[email protected]>
1903
1904         * config.bfd (x86_64-*-netbsd*): New target.
1905         * configure.in (x86_64-*-netbsd*): Set COREFILE
1906         to netbsd-core.lo.
1907         * configure: Regenerated.
1908
1909 2002-01-03  Tom Rix  <[email protected]>
1910
1911         * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1912         for recent bfd_make_section_anyway change.
1913
1914 2002-01-03  Nick Clifton  <[email protected]>
1915
1916         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1917         R_ARM_THM_PC11 reloc.
1918
1919 2002-01-02  Nick Clifton  <[email protected]>
1920
1921         * configure.in (LINGUAS): Add ja.
1922         * configure: Regenerate.
1923         * po/ja.po: Import from translation project's web site.
1924
1925 2002-01-02  Nick Clifton  <[email protected]>
1926
1927         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1928         messages to ease translation into other languages.
1929
1930 For older changes see ChangeLog-0001
1931 \f
1932 Local Variables:
1933 mode: change-log
1934 left-margin: 8
1935 fill-column: 74
1936 version-control: never
1937 End:
This page took 0.135596 seconds and 4 git commands to generate.