elf_swap_symbol_in args should be "const PTR", not "const PTR *".
[binutils-gdb.git] / bfd / ChangeLog
1 2002-06-06 Alan Modra <amodra@bigpond.net.au>
2
3 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
4 are "const PTR", not "const PTR *".
5 (bfd_elf32_swap_symbol_in): Likewise.
6 (bfd_elf64_swap_symbol_in): Likewise.
7 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
8 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
9 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
10 (elf_link_add_object_symbols): Likewise.
11 (elf_link_record_local_dynamic_symbol): Likewise.
12 (elf_link_input_bfd): Likewise.
13 (elf_gc_mark): Likewise.
14 (elf_reloc_symbol_deleted_p): Likewise.
15 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
16 (mn10200_elf_relax_delete_bytes): Likewise.
17 (mn10200_elf_symbol_address_p): Likewise.
18 (mn10200_elf_get_relocated_section_contents): Likewise.
19 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
20 (mn10300_elf_relax_section): Likewise.
21 (mn10300_elf_relax_delete_bytes): Likewise.
22 (mn10300_elf_symbol_address_p): Likewise.
23 (mn10300_elf_get_relocated_section_contents): Likewise.
24 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
25 (elf32_h8_relax_delete_bytes): Likewise.
26 (elf32_h8_symbol_address_p): Likewise.
27 (elf32_h8_get_relocated_section_contents): Likewise.
28 * elf32-hppa.c (get_local_syms): Likewise.
29 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
30 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
31 * elf32-sh.c (sh_elf_relax_section): Likewise.
32 (sh_elf_relax_delete_bytes): Likewise.
33 (sh_elf_get_relocated_section_contents): Likewise.
34 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
35 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
36 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
37 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
38 * elf64-ppc.c (get_local_syms): Likewise.
39 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
40 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
41
42 Wed Jun 5 20:43:27 2002 J"orn Rennecke <joern.rennecke@superh.com>
43
44 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
45
46 2002-06-05 Alan Modra <amodra@bigpond.net.au>
47
48 * elf.c (group_signature): Swap in the whole symbol, and handle
49 extracting section symbol names.
50 (setup_group): Add comment.
51 (set_group_contents): When called from objcopy or ld, arrange for
52 section contents to be written. Write group member output section
53 indices to allow objcopy to reorganize sections.
54 (_bfd_elf_copy_private_section_data): Copy group info.
55
56 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
57 (bfd_elf32_swap_symbol_in): Update prototype.
58 (bfd_elf64_swap_symbol_in): Likewise.
59 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
60 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
61 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
62 (elf_link_add_object_symbols): Likewise.
63 (elf_link_record_local_dynamic_symbol): Likewise.
64 (elf_link_input_bfd): Likewise.
65 (elf_gc_mark): Likewise.
66 (elf_reloc_symbol_deleted_p): Likewise.
67 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
68 (mn10200_elf_relax_delete_bytes): Likewise.
69 (mn10200_elf_symbol_address_p): Likewise.
70 (mn10200_elf_get_relocated_section_contents): Likewise.
71 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
72 (mn10300_elf_relax_section): Likewise.
73 (mn10300_elf_relax_delete_bytes): Likewise.
74 (mn10300_elf_symbol_address_p): Likewise.
75 (mn10300_elf_get_relocated_section_contents): Likewise.
76 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
77 (elf32_h8_relax_delete_bytes): Likewise.
78 (elf32_h8_symbol_address_p): Likewise.
79 (elf32_h8_get_relocated_section_contents): Likewise.
80 * elf32-hppa.c (get_local_syms): Likewise.
81 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
82 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
83 * elf32-sh.c (sh_elf_relax_section): Likewise.
84 (sh_elf_relax_delete_bytes): Likewise.
85 (sh_elf_get_relocated_section_contents): Likewise.
86 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
87 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
88 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
89 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
90 * elf64-ppc.c (get_local_syms): Likewise.
91 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
92 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
93 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
94 * elf64-alpha.c (alpha_elf_size_info): Likewise.
95 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
96 * elf64-mips.c (mips_elf64_size_info): Likewise.
97 * elf64-s390.c (s390_elf64_size_info): Likewise.
98 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
99
100 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
101
102 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
103 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
104 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
105 _bfd_mips_elf_ignore_discarded_relocs.
106 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
107
108 2002-06-05 H.J. Lu <hjl@gnu.org>
109
110 * elfxx-mips.c (mips_elf_calculate_relocation): Call
111 _bfd_elf_rel_local_sym for STT_SECTION relocations against
112 the SEC_MERGE section.
113
114 2002-06-05 Alan Modra <amodra@bigpond.net.au>
115
116 * coff-alpha.c: Update copyright date.
117 * coff-mips.c: Likewise.
118 * xcoff-target.h: Likewise.
119
120 * bfd-in.h: Remove "taken from the source" comment.
121 * libbfd-in.h: Likewise.
122 * libcoff-in.h: Likewise.
123 * bfd-in2.h: Regenerate.
124 * libbfd.h: Regenerate.
125 * libcoff.h: Regenerate.
126
127 * elf.c (bfd_elf_discard_group): Return true.
128 * elf-bfd.h (bfd_elf_discard_group): Declare.
129 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
130 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
131 * bfd.c (bfd_discard_group): Define.
132 * targets.c (struct bfd_target): Add _bfd_discard_group.
133 (BFD_JUMP_TABLE_LINK): Here too.
134 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
135 * aout-adobe.c (aout_32_bfd_discard_group): Define.
136 * aout-target.h (MY_bfd_discard_group): Define.
137 * aout-tic30.c (MY_bfd_discard_group): Define.
138 * binary.c (binary_bfd_discard_group): Define.
139 * bout.c (b_out_bfd_discard_group): Define.
140 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
141 * coffcode.h (coff_bfd_discard_group): Define.
142 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
143 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
144 * i386msdos.c (msdos_bfd_discard_group): Define.
145 * i386os9k.c (os9k_bfd_discard_group): Define.
146 * ieee.c (ieee_bfd_discard_group): Define.
147 * ihex.c (ihex_bfd_discard_group): Define.
148 * mmo.c (mmo_bfd_discard_group): Define.
149 * nlm-target.h (nlm_bfd_discard_group): Define.
150 * oasys.c (oasys_bfd_discard_group): Define.
151 * ppcboot.c (ppcboot_bfd_discard_group): Define.
152 * som.c (som_bfd_discard_group): Define.
153 * srec.c (srec_bfd_discard_group): Define.
154 * tekhex.c (tekhex_bfd_discard_group): Define.
155 * versados.c (versados_bfd_discard_group): Define.
156 * vms.c (vms_bfd_discard_group): Define.
157 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
158 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
159 (aix5coff64_vec): Likewise.
160 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
161
162 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
163
164 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
165 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
166 (elf32-sh64-com.lo): New dependency list.
167 * Makefile.in: Regenerate.
168 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
169 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
170 elf32-sh64-com.lo.
171 * configure: Regenerate.
172 * elf32-sh64.c (sh64_address_in_cranges)
173 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
174 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
175 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
176 * elf32-sh64-com.c: ...here. New file.
177
178 2002-06-04 Alan Modra <amodra@bigpond.net.au>
179
180 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
181 ATTRIBUTE_UNUSED on used params.
182 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
183 before calling bfd_section_from_elf_index on local syms.
184 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
185
186 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
187
188 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
189 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
190 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
191 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
192 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
193 * Makefile.in: Regenerate.
194 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
195 (sh64-*-netbsd*): New targets.
196 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
197 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
198 * configure: Regenerate.
199 * elf32-sh64-nbsd.c: New file.
200 * elf64-sh64-nbsd.c: New file.
201 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
202 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
203 bfd_elf64_sh64lnbsd_vec.
204
205 2002-06-04 Alan Modra <amodra@bigpond.net.au>
206
207 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
208 (bfd_section_from_shdr): Likewise. Set section name of group
209 sections from signature.
210 (group_signature): Split out from setup_group. Ensure symbol table
211 is available.
212 (bfd_elf_discard_group): New function.
213 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
214 .gnu.linkonce* sections if they are members of a group.
215 (set_group_contents): Set GRP_COMDAT flag.
216 * section.c (bfd_discard_group): New function.
217 * bfd-in.h (bfd_elf_discard_group): Declare.
218 * bfd-in2.h: Regenerate.
219 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
220 (elf_linkonce_p): Define.
221
222 2002-06-04 Alan Modra <amodra@bigpond.net.au>
223
224 * elf.c (bfd_section_from_shdr): Make "name" const.
225 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
226 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
227 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
228 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
229 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
230 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
231 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
232 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
233 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
234 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
235 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
236
237 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
238
239 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
240 ABI.
241
242 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
243
244 * elf32-arc.c: Fix formatting.
245 * elf32-arm.h: Likewise.
246 * elf32-cris.c: Likewise.
247 * elf32-dlx.c: Likewise.
248 * elf32-hppa.c: Likewise.
249 * elf32-i386.c: Likewise.
250 * elf32-i386qnx.c: Likewise.
251 * elf32-or32.c: Likewise.
252 * elf32-s390.c: Likewise.
253 * elf32-sh64.c: Likewise.
254 * elf32-vax.c: Likewise.
255 * elf32-xstormy16.c: Likewise.
256 * elf64-alpha.c: Likewise.
257 * elf64-mmix.c: Likewise.
258 * elf64-ppc.c: Likewise.
259 * elf64-s390.c: Likewise.
260 * elf64-sh64.c: Likewise.
261 * elf64-x86-64.c: Likewise.
262
263 2002-06-02 Richard Henderson <rth@redhat.com>
264
265 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
266 null when there are no got entries for a symbol.
267 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
268 uninitialized variable warning.
269
270 2002-06-01 Richard Henderson <rth@redhat.com>
271
272 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
273 undefined symbols here.
274 (elf64_alpha_relax_section): Do it here. Also test for not
275 defined in the current module.
276 (elf64_alpha_relocate_section_r): Split out of ...
277 (elf64_alpha_relocate_section): ... here. Don't dereference
278 NULL when looking up local got entries.
279
280 2002-06-01 Richard Henderson <rth@redhat.com>
281
282 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
283 symbols from JSR relaxation.
284 (elf64_alpha_size_plt_section_1): New.
285 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
286 (elf64_alpha_size_rela_got_1): ... here.
287 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
288 (elf64_alpha_size_rela_got_section): ... here.
289 (elf64_alpha_size_plt_section): New.
290 (elf64_alpha_relax_section): Call them.
291 (elf64_alpha_size_got_sections): Remove output_bfd arg.
292 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
293
294 2002-06-01 Richard Henderson <rth@redhat.com>
295
296 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
297 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
298 in shared libraries. Fix DTPRELHI and TPRELHI value.
299 (INSN_ADDQ, INSN_RDUNIQ): New.
300 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
301 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
302 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
303 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
304 Handle GOTDTPREL and GOTTPREL relocations.
305 (elf64_alpha_relax_gprelhilo): New.
306 (elf64_alpha_relax_tls_get_addr): New.
307 (elf64_alpha_relax_find_tls_segment): New.
308 (elf64_alpha_relax_section): Handle TLS relocations.
309 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
310 (elf64_alpha_check_relocs): Set it.
311
312 2002-06-01 Richard Henderson <rth@redhat.com>
313
314 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
315
316 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
317 check; don't suppress dynamic relocs for non-allocated sections.
318
319 * elf64-alpha.c: Remove dead code.
320
321 2002-05-31 Alan Modra <amodra@bigpond.net.au>
322
323 * bfd-in2.h: Regenerate.
324 * libbfd.h: Regenerate.
325 * po/SRC-POTFILES.in: Regenerate.
326
327 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
328 space for bss .plt.
329
330 2002-05-31 Graeme Peterson <gp@qnx.com>
331
332 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
333 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
334 Run "make dep-am".
335 * Makefile.in: Regenerate.
336 * config.bfd: Add i[3456]86-*-nto-qnx* support.
337 * configure.in: Add bfd_elf32_i386qnx_vec support.
338 * configure: Regenerate.
339 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
340 is_contained_by_filepos, and copy_private_bfd_data_p.
341 * elf.c (assign_file_positions_for_segments): Call backend
342 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
343 (IS_CONTAINED_BY_FILEPOS): Define.
344 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
345 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
346 Fix non-K&R call to _bfd_error_handler.
347 (_bfd_elf_copy_private_section_data): Use backend
348 copy_private_bfd_data_p.
349 * elf32-i386.c: Don't include elfxx-target.h when
350 ELF32_I386_C_INCLUDED is defined.
351 * elf32-i386qnx.c: New QNX elf backend file.
352 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
353 elf_backend_is_contained_by_filepos, and
354 elf_backend_do_copy_private_bfd_data.
355 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
356
357 2002-05-31 Alan Modra <amodra@bigpond.net.au>
358
359 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
360 Move other similar defines to start of file.
361
362 2002-05-30 Tom Rix <trix@redhat.com>
363
364 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
365 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
366
367 2002-05-30 Richard Henderson <rth@redhat.com>
368
369 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
370 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
371 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
372 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
373 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
374 (struct alpha_elf_obj_tdata): Rename total_got_entries and
375 n_local_got_entries to total_got_size and local_got_size.
376 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
377 (alpha_got_entry_size): New.
378 (elf64_alpha_relax_with_lituse): Use it.
379 (elf64_alpha_relax_without_lituse): Likewise.
380 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
381 (get_got_entry): New.
382 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
383 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
384 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
385 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
386 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
387 (elf64_alpha_calc_got_offsets): Likewise.
388 (alpha_dynamic_entries_for_reloc): New.
389 (elf64_alpha_calc_dynrel_sizes): Use it.
390 (elf64_alpha_size_dynamic_sections): Likewise.
391 (elf64_alpha_relocate_section): Handle TLS relocations.
392 * reloc.c: Add Alpha TLS relocations.
393 * bfd-in2.h, libbfd.h: Rebuild.
394
395 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
396
397 * peXXigen.c (pe_print_idata): Remove double printed
398 import table lines; add Bound-To comment.
399
400 2002-05-29 Matt Thomas <matt@3am-software.com>
401
402 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
403 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
404 (elf32-vax.lo): New rule.
405 * Makefile.in: Regenerate.
406 * configure.in (bfd_elf32_vax_vec)
407 (vaxnetbsd_vec): New vectors.
408 * configure: Regenerate.
409 * config.bfd (vax-*-netbsdelf*)
410 (vax-*-netbsdaout*)
411 (vax-*-netbsd*): New targets.
412 * elf32-vax.c: New file.
413 * reloc.c: Add VAX relocations.
414 * bfd-in2.h: Regenerate.
415 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
416
417 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
418
419 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
420 and bfd_elf32_bigarm_vec to targ_selvecs.
421
422 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
423
424 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
425 with auto-imported symbols.
426
427 2002-05-29 Adam Nemet <anemet@lnxw.com>
428
429 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
430 sections only record bfd.
431 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
432 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
433 * bfd-in2.h: Regenerate.
434
435 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
436
437 * syms.c (_bfd_stab_section_find_nearest_line): Move
438 declaration and initialisation of saw_line and saw_func out of
439 for loop.
440
441 2002-05-29 Alan Modra <amodra@bigpond.net.au>
442
443 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
444 (bfd_elf64_get_symbol_info): Define.
445 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
446
447 2002-05-29 Andrey Volkov <avolkov@transas.com>
448
449 * cpu-h8300.c: Make default h8300 machine first in machine list.
450
451 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
452
453 * config.bfd: Added DLX configuraton.
454 * Makefile.am: Added DLX configuraton.
455 * configure.in: Added DLX configuraton.
456 * archures.c: Add DLX architecure.
457 * reloc.c: Add DLX relocs.
458 * targets.c: Added DLX target vector.
459 * configure: Regenerate.
460 * Makefile.in: Regenreate.
461 * bfd-in2.h: Regenreate.
462 * elf32-dlx.c: New file: Support DLX target.
463 * cpu-dlx.c: New file: Support DLX target.
464
465 2002-05-25 Alan Modra <amodra@bigpond.net.au>
466
467 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
468
469 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
470 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
471 strings to point inside function code sym string.
472 (func_desc_adjust): Likewise.
473 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
474
475 2002-05-24 Michal Ludvig <mludvig@suse.cz>
476
477 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
478 (elf64_x86_64_grok_psinfo): Added.
479
480 2002-05-24 TAMURA Kent <kent@netbsd.org>
481
482 * config.bfd: Add a target for i386-netbsdpe.
483
484 2002-05-24 Alan Modra <amodra@bigpond.net.au>
485
486 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
487 and is_func_descriptor.
488 (func_desc_adjust): Hide function code sym in shared libs unless
489 there is a matching exported function descriptor sym.
490
491 2002-05-23 Jakub Jelinek <jakub@redhat.com>
492
493 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
494 for symbols from SHF_TLS section.
495 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
496 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
497 (map_sections_to_segments): Build PT_TLS segment if necessary.
498 (assign_file_positions_for_segments): Likewise.
499 (get_program_header_size): Account for PT_TLS segment.
500 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
501 SEC_THREAD_LOCAL sections to STT_TLS.
502 * reloc.c: Add 386 and IA-64 TLS relocs.
503 * section.c (SEC_THREAD_LOCAL): Define.
504 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
505 Remove.
506 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
507 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
508 unconditionally.
509 (struct elf_final_link_info): Add first_tls_sec.
510 (elf_bfd_final_link): Set first_tls_sec.
511 Compute elf_hash_table (info)->tls_segment.
512 (elf_link_output_extsym): Handle STT_TLS symbols.
513 (elf_link_input_bfd): Likewise.
514 * syms.c (BSF_THREAD_LOCAL): Define.
515 * bfd-in2.h: Rebuilt.
516 * libbfd.h: Rebuilt.
517 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
518 elf_i386_mkobject, elf_i386_object_p): New functions.
519 (elf_howto_table): Add TLS relocs.
520 (elf_i386_reloc_type_lookup): Support TLS relocs.
521 (elf_i386_info_to_howto_rel): Likewise.
522 (struct elf_i386_link_hash_entry): Add tls_type.
523 (struct elf_i386_obj_tdata): New.
524 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
525 New macros.
526 (struct elf_i386_link_hash_table): Add tls_ldm_got.
527 (link_hash_newfunc): Clear tls_type.
528 (elf_i386_check_relocs): Support TLS relocs.
529 (elf_i386_gc_sweep_hook): Likewise.
530 (allocate_dynrelocs): Likewise.
531 (elf_i386_size_dynamic_sections): Likewise.
532 (elf_i386_relocate_section): Likewise.
533 (elf_i386_finish_dynamic_symbol): Likewise.
534 (bfd_elf32_mkobject, elf_backend_object_p): Define.
535 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
536 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
537 want_tprel, want_dtpmod, want_dtprel.
538 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
539 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
540 R_IA64_LTOFF_TPREL22.
541 (elf_code_to_howto_index): Add TLS relocs.
542 (elfNN_ia64_check_relocs): Support TLS relocs.
543 (allocate_global_data_got): Account for TLS .got data.
544 (allocate_dynrel_entries): Account for TLS dynamic relocations.
545 (elfNN_ia64_install_value): Supprt TLS relocs.
546 (set_got_entry): Support TLS relocs.
547 (elfNN_ia64_relocate_section): Likewise.
548
549 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
550
551 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
552 BLX reloc round the relocation up rather than down.
553 * coff-arm.c (coff_arm_relocate_section): Likewise.
554
555 2002-05-21 H.J. Lu (hjl@gnu.org)
556
557 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
558 definition.
559
560 2002-05-22 Alan Modra <amodra@bigpond.net.au>
561
562 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
563 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
564
565 2002-05-22 Alan Modra <amodra@bigpond.net.au>
566
567 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
568 unresolved relocs.
569 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
570
571 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
572
573 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
574 non-ELF targets.
575
576 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
577
578 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
579 an error value.
580 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
581 return with false on error.
582 (elf_link_input_bfd): Check reloc_emitter return value.
583
584 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
585
586 * config.bfd (armeb-*-netbsdelf*): New target.
587
588 2002-05-20 Alan Modra <amodra@bigpond.net.au>
589
590 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
591 at the plt call stub.
592
593 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
594
595 * cpu-mips.c (mips_compatible): Don't try to check machine
596 compatibility.
597
598 2002-05-18 Tom Rix <trix@redhat.com>
599
600 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
601
602 2002-05-17 Alan Modra <amodra@bigpond.net.au>
603
604 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
605 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
606 we've already warned about an undefined symbol. Report more
607 detail on reloc errors.
608
609 2002-05-17 Alan Modra <amodra@bigpond.net.au>
610
611 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
612 * configure.in: Invoke AM_INSTALL_LIBBFD.
613 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
614 (install_libbfd): .. New target.
615 (uninstall_libbfd): Likewise.
616 (install-bfdlibLTLIBRARIES): Likewise.
617 (uninstall-bfdlibLTLIBRARIES): Likewise.
618 (bfdlibdir): New.
619 (bfdincludedir): New.
620 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
621 * aclocal.m4: Regenerate.
622 * configure: Regenerate.
623 * Makefile.in: Regenerate.
624
625 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
626
627 * hash.c (bfd_hash_lookup): Remove computation of len from inside
628 hash loop.
629
630 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
631
632 * config.bfd: Add targets for sh64-linux (little endian and
633 big endian).
634
635 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
636
637 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
638 is located in the same section as the import table. Instead
639 check, and if necessary load the section containing the thunk.
640
641 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
642
643 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
644 bfd_bread.
645 (xcoff64_core_file_matches_executable_p): Replace bfd_read
646 with bfd_bread.
647
648 2002-05-15 Alan Modra <amodra@bigpond.net.au>
649
650 * aix5ppc-core.c: Warning fixes.
651 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
652 * aout-target.h (MY_bfd_link_just_syms): Define.
653 * aout-tic30.c (MY_bfd_link_just_syms): Define.
654 * bfd.c (bfd_link_just_syms): Define.
655 * binary.c (binary_bfd_link_just_syms): Define.
656 * bout.c (b_out_bfd_link_just_syms): Define.
657 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
658 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
659 * coffcode.h (coff_bfd_link_just_syms): Define.
660 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
661 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
662 (_bfd_elf_link_just_syms): Declare.
663 * elf.c (_bfd_elf_link_just_syms): New function.
664 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
665 sections haven't already been discarded by the linker.
666 * elflink.h (elf_link_add_object_symbols): Likewise for stab
667 sections and SEC_MERGE sections.
668 (elf_bfd_discard_info): Similarly here.
669 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
670 * i386msdos.c (msdos_bfd_link_just_syms): Define.
671 * i386os9k.c (os9k_bfd_link_just_syms): Define.
672 * ieee.c (ieee_bfd_link_just_syms): Define.
673 * ihex.c (ihex_bfd_link_just_syms): Define.
674 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
675 (_bfd_generic_link_just_syms): Declare.
676 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
677 * linker.c (_bfd_generic_link_just_syms): New function.
678 * mmo.c (mmo_bfd_link_just_syms): Define.
679 * nlm-target.h (nlm_bfd_link_just_syms): Define.
680 * oasys.c (oasys_bfd_link_just_syms): Define.
681 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
682 * som.c (som_bfd_link_just_syms): Define.
683 * srec.c (srec_bfd_link_just_syms): Define.
684 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
685 (BFD_JUMP_TABLE_LINK): And here.
686 * tekhex.c (tekhex_bfd_link_just_syms): Define.
687 * versados.c (versados_bfd_link_just_syms): Define.
688 * vms.c (vms_bfd_link_just_syms): Define.
689 * libbfd.h: Regenerate.
690 * bfd-in2.h: Regenerate.
691
692 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
693
694 * elf32-mips.c: Remove superfluous definitions copied from
695 elfxx-mips.c.
696 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
697 SGIish vectors to check the special case.
698 (mips_elf_hi16_reloc): Fix comment.
699 (mips_elf_got16_reloc): Likewise.
700 (_bfd_mips_elf32_gprel16_reloc): Likewise.
701 (elf_reloc_map): Code cleanup.
702 (mips_reloc_map): Add comment.
703 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
704 (mips_elf32_rtype_to_howto): Likewise.
705 (mips_elf32_discard_info): Likewise.
706 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
707 lead to IRIX compatibility now.
708
709 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
710
711 * elfxx-mips.c: Call it IRIX, not Irix in comments.
712
713 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
714
715 * config.bfd (shle-*-netbsdelf*): Add target which includes
716 sh64 support.
717
718 2002-05-13 David Edelsohn <edelsohn@gnu.org>
719
720 * configure.in: Revert 2002-04-07. Instead, auto-configure
721 HAVE_ST_C_IMPL.
722 * configure: Regenerate.
723 * config.in: Regenerate.
724 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
725 or AIX_5_CORE.
726
727 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
728
729 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
730 corefiles as well.2
731 * configure: Regenerate.
732
733 2002-05-13 Alan Modra <amodra@bigpond.net.au>
734
735 * Makefile.am (install-data-local): Install headers to
736 $(exec_prefix)/include.
737 * Makefile.in: Regenerate.
738
739 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
740 Daniel Jacobowitz <drow@mvista.com>
741
742 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
743 map BFD_RELOC_RVA.
744
745 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
746
747 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
748 hppa*-*-openbsd*): New targets.
749 * configure.in (alpha*-*-openbsd*): Set COREFILE.
750 * configure: Regenerate.
751
752 2002-05-10 Tom Rix <trix@redhat.com>
753
754 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
755 xcoff64_ppc_relocate_section.
756 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
757 * libxcoff.h: Common xcoff_reloc_type function declaration.
758
759 2002-05-10 Alan Modra <amodra@bigpond.net.au>
760
761 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
762 added in 2002-05-09 commit.
763
764 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
765 don't look for stubs on all undefined syms.
766
767 2002-05-09 Alan Modra <amodra@bigpond.net.au>
768
769 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
770 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
771 pcrel_offset.
772
773 * elf32-i386.c (elf_howto_table): Comments.
774 (elf_i386_relocate_section): Handle more relocs for relocatable
775 linking and against SEC_MERGE sections.
776
777 2002-05-08 Alan Modra <amodra@bigpond.net.au>
778
779 * elf32-ppc.c (ppc_elf_create_got): New function.
780 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
781 _bfd_elf_create_dynamic_sections. Correct .plt flags.
782 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
783 _bfd_elf_create_got_section.
784
785 2002-05-07 Alan Modra <amodra@bigpond.net.au>
786
787 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
788 * elfxx-target.h (elf_backend_rela_normal): Define.
789 (elfNN_bed): Init rela_normal.
790 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
791 for section symbols here if rela_normal. Simplify abs section test.
792 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
793 return immediately. Remove code handling relocatable linking.
794 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
795 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
796 * elf32-i370.c (i370_elf_relocate_section): Likewise.
797 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
798 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
799 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
800 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
801 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
802 * elf32-s390.c (elf_s390_relocate_section): Likewise.
803 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
804 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
805 * elf64-s390.c (elf_s390_relocate_section): Likewise.
806 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
807 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
808 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
809 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
810 * elf-m10200.c (elf_backend_rela_normal): Define.
811 * elf-m10300.c (elf_backend_rela_normal): Define.
812 * elf32-fr30.c (elf_backend_rela_normal): Define.
813 * elf32-i370.c (elf_backend_rela_normal): Define.
814 * elf32-i860.c (elf_backend_rela_normal): Define.
815 * elf32-m68k.c (elf_backend_rela_normal): Define.
816 * elf32-mcore.c (elf_backend_rela_normal): Define.
817 * elf32-openrisc.c (elf_backend_rela_normal): Define.
818 * elf32-ppc.c (elf_backend_rela_normal): Define.
819 * elf32-s390.c (elf_backend_rela_normal): Define.
820 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
821 * elf64-ppc.c (elf_backend_rela_normal): Define.
822 * elf64-s390.c (elf_backend_rela_normal): Define.
823 * elf64-x86-64.c (elf_backend_rela_normal): Define.
824 * elfxx-ia64.c (elf_backend_rela_normal): Define.
825 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
826 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
827
828 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
829
830 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
831 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
832
833 2002-05-06 Alan Modra <amodra@bigpond.net.au>
834
835 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
836 when not relocatable. Fix reloc_emitter call for K&R.
837
838 2002-05-04 Alan Modra <amodra@bigpond.net.au>
839
840 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
841 reloading local sym addend mistakenly removed in 2002-05-01 change.
842
843 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
844 (read_abbrevs): Change "offset" param to bfd_vma.
845 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
846 Change "abbrev_offset" to bfd_vma.
847 (read_indirect_string): Use correct conversion chars in error
848 message format string, cast bfd_vma's to unsigned long.
849 (read_abbrevs): Likewise.
850 (read_attribute_value): Likewise.
851 (decode_line_info): Likewise.
852 (scan_unit_for_functions): Likewise.
853 (parse_comp_unit): Likewise.
854
855 2002-05-04 Tom Rix <trix@redhat.com>
856
857 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
858 (coff_swap_reloc_out): Same.
859 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
860 (xcoff_swap_reloc_out): Same.
861 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
862 case some 16 bit relocs. Add reloc value to output.
863 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
864 R_RBR. Improve names.
865 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
866 (bfd_xcoff_backend_data): Update with new reloc swap names.
867 (bfd_pmac_xcoff_backend_data) : Same.
868 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
869 (xcoff64_swap_reloc_out): Same.
870 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
871 R_POS. Add reloc value to output.
872 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
873 bit R_RBR. Improve names, masks.
874 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
875 (bfd_xcoff_backend_data): Update with new reloc swap names.
876 (bfd_xcoff_aix5_backend_data) : Same.
877
878 2002-05-04 Alan Modra <amodra@bigpond.net.au>
879
880 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
881 bfd_count top_index, input_list, all_local_syms.
882 (elf32_hppa_setup_section_lists): New function, split from
883 elf32_hppa_size_stubs.
884 (elf32_hppa_next_input_section): Likewise.
885 (group_sections): Likewise.
886 (get_local_syms): Likewise.
887 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
888 stubs on undefined syms too.
889 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
890 Only access htab elf fields when we have an elf hash table.
891 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
892 (elf32_hppa_next_input_section): Declare.
893
894 2002-05-04 Bob Byrnes <byrnes@curl.com>
895
896 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
897 _bfd_new_bfd.
898
899 2002-05-03 H.J. Lu (hjl@gnu.org)
900
901 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
902 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
903 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
904 to hide a global symbol.
905 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
906 forced_local to true.
907
908 2002-05-02 Richard Henderson <rth@redhat.com>
909
910 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
911 vs SHN_UNDEF to zero.
912
913 2002-05-02 Alan Modra <amodra@bigpond.net.au>
914
915 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
916 16 bit reloc.
917 <R_PPC64_SECTOFF_DS>: Likewise.
918 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
919 SECTOFF reloc.
920 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
921 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
922 SECTOFF reloc.
923
924 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
925 (ppc64_elf_ha_reloc): New function.
926 (ppc64_elf_brtaken_reloc): New function.
927 (ppc64_elf_sectoff_reloc): New function.
928 (ppc64_elf_sectoff_ha_reloc): New function.
929 (ppc64_elf_toc_reloc): New function.
930 (ppc64_elf_toc_ha_reloc): New function.
931 (ppc64_elf_toc64_reloc): New function.
932 (ppc64_elf_unhandled_reloc): New function.
933 (ppc64_elf_howto_raw): Use the above.
934 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
935 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
936 <R_PPC64_SECTOFF_DS>: Likewise.
937 (IS_ABSOLUTE_RELOC): Update.
938 (struct ppc_link_hash_table): Add have_undefweak.
939 (ppc64_elf_link_hash_table_create): Init.
940 (func_desc_adjust): Set have_undefweak.
941 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
942 add the .sfpr blr when have_undefweak.
943 (ppc64_elf_setup_section_lists): Check hash table flavour.
944 (ppc64_elf_next_input_section): Move output_section->owner test to
945 ppc64elf.em.
946 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
947 and relocatable test. Return TOCstart and don't set elf_gp.
948 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
949 offset calculation. Add assert on weak sym branch tweaks.
950 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
951 (ppc64_elf_toc): Declare.
952 (ppc64_elf_next_input_section): Update.
953
954 2002-05-01 Alan Modra <amodra@bigpond.net.au>
955
956 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
957 file_name.
958
959 2002-05-01 Alan Modra <amodra@bigpond.net.au>
960
961 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
962 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
963 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
964 call branches. Correct undefined weak destination.
965 (ppc64_elf_func_desc_adjust): Always create at least one blr in
966 .sfpr, and correct case where either only savef* or restf* is
967 needed.
968
969 Long branch stubs, multiple stub sections.
970 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
971 (ppc64_elf_next_input_section): Declare.
972 * elf64-ppc.c: Move linker-only prototypes.
973 (STUB_SUFFIX): Define.
974 (enum ppc_stub_type): New.
975 (struct ppc_stub_hash_entry): New.
976 (struct ppc_branch_hash_entry): New.
977 (struct ppc_link_hash_entry): Add stub_cache, oh.
978 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
979 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
980 Rename plt_overflow to stub_error.
981 (ppc_stub_hash_lookup): Define.
982 (ppc_branch_hash_lookup): Define.
983 (stub_hash_newfunc): New function.
984 (branch_hash_newfunc): New function.
985 (link_hash_newfunc): Init new fields.
986 (ppc64_elf_link_hash_table_create): Likewise.
987 (ppc64_elf_link_hash_table_free): New function.
988 (ppc_stub_name): New function.
989 (ppc_get_stub_entry): New function.
990 (ppc_add_stub): New function.
991 (create_linkage_sections): Use bfd_make_section_anyway. Create
992 .branch_lt and .rela.branch_lt sections. Don't create .stub.
993 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
994 and set up for plt call stubs. Link func and func desc syms.
995 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
996 (func_desc_adjust): Avoid hash lookup when func desc sym available
997 via shortcut, and set links when processing.
998 (ppc64_elf_hide_symbol): Likewise.
999 (allocate_dynrelocs): Don't allocate stub section here.
1000 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1001 Remove sstub code.
1002 (ppc_type_of_stub): New function.
1003 (build_one_stub): Delete.
1004 (ppc_build_one_stub): New function.
1005 (ppc_size_one_stub): New function.
1006 (ppc64_elf_setup_section_lists): New function.
1007 (ppc64_elf_next_input_section): New function.
1008 (group_sections): New function.
1009 (get_local_syms): New function.
1010 (ppc64_elf_size_stubs): Rewrite.
1011 (ppc64_elf_build_stubs): Rewrite.
1012 (ppc64_elf_relocate_section): Look up stub entry for REL24
1013 relocs. Don't propagate REL14* to dynamic objects. Look for long
1014 branch stubs if REL14* or REL24 relocs won't reach.
1015 (bfd_elf64_bfd_link_hash_table_free): Define.
1016
1017 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1018
1019 * bfd/config.bfd: Add support for powerpc-*-windiss.
1020
1021 2002-04-30 Tom Rix <trix@redhat.com>
1022
1023 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1024 symbol names into the hash table.
1025
1026 2002-04-28 Tom Rix <trix@redhat.com>
1027
1028 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
1029 calulating relocations.
1030 (xcoff_complain_overflow) : Function table for relocation errors.
1031 (xcoff_ppc_relocate_section): Use relocation and complain function
1032 tables.
1033 (xcoff_complain_overflow_unsigned_func): New complain function.
1034 (xcoff_complain_overflow_signed_func): Same.
1035 (xcoff_complain_overflow_bitfield_func): Same.
1036 (xcoff_complain_overflow_dont_func): Same.
1037 (xcoff_reloc_type_crel): New recot function.
1038 (xcoff_reloc_type_br): Same.
1039 (xcoff_reloc_type_ba): Same.
1040 (xcoff_reloc_type_toc): Same.
1041 (xcoff_reloc_type_rel): Same.
1042 (xcoff_reloc_type_neg): Same.
1043 (xcoff_reloc_type_pos): Same.
1044 (xcoff_reloc_type_fail): Same.
1045 (xcoff_reloc_type_noop): Same.
1046 * libxcoff.h : Declare common parts for xcoff64.
1047 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
1048 and complain function tables.
1049
1050 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1051
1052 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1053 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1054
1055 2002-04-26 Alan Modra <amodra@bigpond.net.au>
1056
1057 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1058 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1059
1060 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1061 same as the output before calling elf_link_input_bfd.
1062
1063 * coffcode.h (coff_compute_section_file_positions): Set
1064 section_tail after shuffling section list.
1065
1066 2002-04-24 Christian Groessler <chris@groessler.org>
1067
1068 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1069 addresses are 23bit with a special layout, not plain 32bit
1070 values. Prevent relocation of immediate values.
1071
1072 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1073
1074 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1075 MIPS-16 ASE flags are set, print something to indicate that.
1076
1077 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1078
1079 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1080 under which a plt call stub is used.
1081 (final_link_relocate): Similarly.
1082 (allocate_plt_static): Clear h-plabel except when plt entry is
1083 exclusively used for a plabel.
1084 (allocate_dynrelocs): Use the above to simplify plt sizing.
1085 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1086 (elf32_hppa_link_hash_table_create): Init.
1087 (BL22_RP): Define.
1088 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1089 (elf32_hppa_check_relocs): Set has_22bit_branch.
1090
1091 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1092 (final_link_relocate): Likewise.
1093
1094 2002-04-22 Jakub Jelinek <jakub@redhat.com>
1095
1096 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1097 search table if some FDE is DW_EH_PE_aligned encoded either.
1098 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1099
1100 2002-04-22 Richard Smith <richard@ex-parrot.com>
1101 Jakub Jelinek <jakub@redhat.com>
1102
1103 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1104 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1105 encoded personality.
1106 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1107 for CIE/FDE removal.
1108
1109 2002-04-20 Tom Rix <trix@redhat.com>
1110
1111 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1112
1113 2002-04-20 Alan Modra <amodra@bigpond.net.au>
1114
1115 * archures.c (bfd_lookup_arch): Move the list order comment..
1116 (struct bfd_arch_info): ..to where it belongs.
1117 * bfd-in2.h: Regenerate.
1118
1119 * archures.c (bfd_lookup_arch): Add comment on list order.
1120 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1121 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1122 is always at head of list.
1123
1124 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1125
1126 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1127 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1128 definition of these functions for ARM_WINCE builds as they are
1129 not used.
1130 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
1131 for ARM_WINCE builds.
1132
1133 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1134
1135 * coff-arm.c (bfd_arm_process_before_allocation):
1136
1137 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1138
1139 * cpu-sh.c (scan_mach): Delete.
1140 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1141 (bfd_sh_arch): Likewise.
1142
1143 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1144
1145 * ihex.c (ihex_write_object_contents): Fix check for records
1146 crossing 64K boundaries.
1147
1148 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1149
1150 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1151 type rather than just assuming entries are ELF.
1152 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1153 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1154 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1155 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1156 rather than elf_link_hash_entry.
1157
1158 2002-04-15 Richard Henderson <rth@redhat.com>
1159
1160 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1161 n32 binaries.
1162
1163 2002-04-15 Michael Snyder <msnyder@redhat.com>
1164
1165 * opncls.c (bfd_close): Write contents if writeable.
1166 Minor formatting tidy-ups.
1167
1168 2002-04-15 Alan Modra <amodra@bigpond.net.au>
1169
1170 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1171
1172 2002-04-12 Michael Snyder <msnyder@redhat.com>
1173
1174 * bfd-in.h (bfd_get_section_lma): New access macro.
1175 Minor white-space fix-up.
1176
1177 2002-04-12 Alan Modra <amodra@bigpond.net.au>
1178
1179 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1180 header pad.
1181
1182 2002-04-09 DJ Delorie <dj@redhat.com>
1183
1184 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1185
1186 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1187
1188 * coffcode.h (coff_read_word): New.
1189 (coff_compute_checksum): New.
1190 (coff_apply_checksum): New.
1191 (coff_write_object_contents): Call coff_apply_checksum () to
1192 apply checksum to PE image.
1193
1194 2002-04-08 Randolph Chung <tausq@debian.org>
1195
1196 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1197 (elf32_hppa_final_link): Split out sorting logic to..
1198 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1199 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1200
1201 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1202
1203 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1204 pattern.
1205 * configure: Re-generate.
1206
1207 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1208
1209 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1210 is greater or equal to 4.3.3.
1211 * configure: Regenerate.
1212 Fix PR gdb/344.
1213
1214 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
1215
1216 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1217 R_CRIS_32_PCREL>: Fix typo in name.
1218 (cris_elf_check_relocs): Always create .rela.got here when
1219 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1220 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1221 assume it's created.
1222
1223 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1226 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1227 define.
1228 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1229 * bfd.c (bfd_link_hash_table_free): Define.
1230 * binary.c (binary_bfd_link_hash_table_free): Define.
1231 * bout.c (b_out_bfd_link_hash_table_free): Define.
1232 * coff-rs6000.c (rs6000coff_vec): Include
1233 _bfd_generic_link_hash_table_free.
1234 (pmac_xcoff_vec): Likewise.
1235 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1236 (aix5coff64_vec): Likewise.
1237 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1238 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1239 (bfd_elf32_bfd_link_hash_table_free): Define.
1240 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1241 (bfd_elf32_bfd_link_hash_table_free): Define.
1242 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1243 define.
1244 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1245 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1246 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1247 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1248 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1249 (_bfd_generic_link_hash_table_free): Add prototype.
1250 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1251 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1252 * linker.c (_bfd_generic_link_hash_table_free): New function.
1253 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1254 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1255 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1256 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1257 * som.c (som_bfd_link_hash_table_free): Define.
1258 * srec.c (srec_bfd_link_hash_table_free): Define.
1259 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1260 * versados.c (versados_bfd_link_hash_table_free): Define.
1261 * vms.c (vms_bfd_link_hash_table_free): New function.
1262 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1263
1264 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1265 instead of bfd_alloc.
1266 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1267 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1268 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1269 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1270 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1271 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1272 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1273 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1274 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1275 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1276 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1277 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1278 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1279 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1280 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1281 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1282 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1283 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1284 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1285 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1286 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1287 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1288 * m68klinux.c (linux_link_hash_table_create): Likewise.
1289 * sparclinux.c (linux_link_hash_table_create): Likewise.
1290 * sunos.c (sunos_link_hash_table_create): Likewise.
1291 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1292
1293 * targets.c: Add _bfd_link_hash_table_free to xvec.
1294
1295 * bfd-in2.h: Regenerate.
1296 * libbfd.h: Regenerate.
1297 * libcoff.h: Regenerate.
1298
1299 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1300
1301 * dep-in.sed: Cope with absolute paths.
1302 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1303 Run "make dep-am".
1304 * Makefile.in: Regenerate.
1305 * coff-arm.c: Fix copyright date.
1306 * cpu-h8300.c: Likewise.
1307 * cpu-i370.c: Likewise.
1308 * cpu-s390.c: Likewise.
1309 * cpu-mips.c: Likewise.
1310 * po/SRC-POTFILES.in: Regenerate.
1311
1312 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1313
1314 * Makefile.am: Add elfxx-mips.c to the known backends.
1315 (elf32-mips.lo): remove dependency to coff/external.h.
1316 * Makefile.in: Regenerate.
1317 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1318 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1319 accordingly.
1320 * configure: Regenerate.
1321 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1322 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1323 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1324 MIPS specific backend functions.
1325 * elf32-mips.c: Moved most code to elfxx-mips.c.
1326 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1327 static.
1328 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1329 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1330 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1331 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1332 interface to allow selection of the right REL or RELA howto table.
1333 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1334 static. Let it refuse n32 objects.
1335 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1336 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1337 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1338 (elf32_mips_ignore_discarded_relocs): Rename from
1339 _bfd_elf32_mips_ignore_discarded_relocs.
1340 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1341 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1342 (elf_mips_howto_table_rela): Remove.
1343 * elf64-mips.c: Moved most code to elfxx-mips.c.
1344 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1345 (mips_elf64_rtype_to_howto): New function.
1346 (mips_elf64_object_p): Likewise.
1347 (elf64_mips_irix_compat): Likewise.
1348 * elfxx-mips.c: New file containing common code merged together from
1349 elf32-mips.c and elf64-mips.c.
1350 * elfxx-mips.h: New file containing MIPS specific prototypes from
1351 elf-bfd.h.
1352 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1353 elf_backend_mips_rtype_to_howto.
1354
1355 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1356
1357 * srec.c (MAXCHUNK, Chunk): Revise comments.
1358 (srec_write_record): Correct buffer size.
1359 (srec_write_header): Do without intermediate buffer.
1360 (srec_write_section): Validate Chunk.
1361 (srec_write_terminator): Pass NULL instead of dummy buffer.
1362 (srec_write_symbols): Pass file and symbol names directly to
1363 bfd_bwrite so sprintf won't overflow buffer.
1364
1365 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1366
1367 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1368 PC relative relocs against hidden symbols.
1369 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1370
1371 2002-04-03 Alan Modra <amodra@bigpond.net.au>
1372
1373 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1374 LMAs, loop over segments until p_vaddr and p_memsz specify an
1375 extent enclosing the section.
1376
1377 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1378
1379 * ihex.c (ihex_write_object_contents): Do not allow records to
1380 cross a 64K boundary - wrap if necessary.
1381
1382 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1383
1384 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1385 which caused the returned LWP ID to always be 0.
1386
1387 2002-04-01 Richard Henderson <rth@redhat.com>
1388
1389 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1390 (elf32_sparc_relocate_section): Use it to figure out when to
1391 initialize .got entries.
1392 * elf64-sparc.c: Similarly.
1393
1394 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1395
1396 * linker.c (link_action): Ignore duplicate warning syms.
1397 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1398 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1399 (elf_adjust_dynamic_symbol): Likewise.
1400 (elf_export_symbol): Likewise.
1401 (elf_link_find_version_dependencies): Likewise.
1402 (elf_link_assign_sym_version): Likewise.
1403 (elf_link_sec_merge_syms): Likewise.
1404 (elf_link_output_extsym): Likewise.
1405 (elf_gc_sweep_symbol): Likewise.
1406 (elf_gc_propagate_vtable_entries_used): Likewise.
1407 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1408 (elf_gc_allocate_got_offsets): Likewise.
1409 (elf_collect_hash_codes): Likewise.
1410 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1411 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1412 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1413 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1414 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1415 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1416 (elf_cris_discard_excess_dso_dynamics): Likewise.
1417 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1418 (mark_PIC_calls): Likewise.
1419 (allocate_plt_static): Likewise.
1420 (allocate_dynrelocs): Likewise.
1421 (readonly_dynrelocs): Likewise.
1422 * elf32-i386.c (allocate_dynrelocs): Likewise.
1423 (readonly_dynrelocs): Likewise.
1424 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1425 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1426 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1427 (mips_elf_sort_hash_table_f): Likewise.
1428 (mips_elf_check_mips16_stubs): Likewise.
1429 * elf32-s390.c (allocate_dynrelocs): Likewise.
1430 (readonly_dynrelocs): Likewise.
1431 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1432 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1433 (xstormy16_relax_plt_realloc): Likewise.
1434 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1435 (elf64_alpha_output_extsym): Likewise.
1436 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1437 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1438 (mips_elf64_check_mips16_stubs): Likewise.
1439 (mips_elf64_output_extsym): Likewise.
1440 * elf64-ppc.c (func_desc_adjust): Likewise.
1441 (allocate_dynrelocs): Likewise.
1442 (readonly_dynrelocs): Likewise.
1443 * elf64-s390.c (allocate_dynrelocs): Likewise.
1444 (readonly_dynrelocs): Likewise.
1445 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1446 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1447 (readonly_dynrelocs): Likewise.
1448 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1449 * aoutx.h (aout_link_write_other_symbol): Likewise.
1450 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1451 (_bfd_coff_write_global_sym): Likewise.
1452 * i386linux.c (linux_tally_symbols): Likewise.
1453 * m68klinux.c (linux_tally_symbols): Likewise.
1454 * sparclinux.c (linux_tally_symbols): Likewise.
1455 * pdp11.c (aout_link_write_other_symbol): Likewise.
1456 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1457 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1458 (xcoff_write_global_symbol): Likewise.
1459
1460 * cofflink.c (_bfd_coff_final_link): Formatting.
1461 * cpu-mips.c (mips_compatible): Make static, prototype.
1462 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1463 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1464 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1465 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1466 (mips_elf64_final_link): Likewise.
1467 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1468 prototype.
1469
1470 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1471
1472 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1473 (SWAP_OUT_RELOC_OFFSET): Define.
1474
1475 2002-03-27 Gregory Steuck <greg@nest.cx>
1476
1477 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1478 terminating NULL if empty symbol table.
1479 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1480
1481 2002-03-26 H.J. Lu (hjl@gnu.org)
1482
1483 * elflink.h (elf_link_input_bfd): Revert the last change since
1484 the gcc exception handling isn't fixed yet.
1485
1486 2002-03-26 H.J. Lu (hjl@gnu.org)
1487
1488 * elflink.h (elf_link_input_bfd): Complain about relocations
1489 against local symbols in discarded sections.
1490
1491 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1492
1493 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1494
1495 2002-03-23 Alan Modra <amodra@bigpond.net.au>
1496
1497 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1498 section file offset for !SEC_LOAD sections.
1499
1500 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
1501
1502 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1503 <case R_ARM_GOT>): Handle relocations to Thumb functions.
1504
1505 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1506
1507 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1508 Whitespace changes.
1509 * archive.c: Update copyright date.
1510 * bfd-in2.h: Regenerate.
1511 * libbfd.h: Regenerate.
1512 * Makefile.am: Run "make dep-am"
1513 * Makefile.in: Regenerate.
1514 * po/SRC-POTFILES.in: Regenerate.
1515
1516 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1517
1518 * dwarf2.c (struct funcinfo): Move up.
1519 (lookup_address_in_function_table): New argument function_ptr.
1520 Set it.
1521 (lookup_address_in_line_table): New argument function. If function
1522 is non-NULL, use it to handle ``addr'' before the first line note of
1523 the function.
1524 (comp_unit_find_nearest_line): Update and swap calls to
1525 lookup_address_in_function_table and lookup_address_in_line_table.
1526 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1527 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1528
1529 2002-03-20 Tom Rix <trix@redhat.com>
1530
1531 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
1532 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
1533 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
1534
1535 2002-03-19 Tom Rix <trix@redhat.com>
1536
1537 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
1538 dynamic objects in archives.
1539
1540 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1541
1542 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1543 STT_NOTYPE symbols to STT_OBJECT.
1544
1545 2002-03-18 Jan Hubicka <jh@suse.cz>
1546
1547 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1548
1549 2002-03-18 Tom Rix <trix@redhat.com>
1550
1551 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1552 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1553 * coff-rs6000 (do_pad) : New function for archive padding.
1554 (do_copy) : New function for object file copying in archives.
1555 (do_shared_object_padding) : New function for padding shared
1556 objects to their text section alignment in archives.
1557 (bfd_xcoff_ar_achive_set_magic) : Stub.
1558 (xcoff_write_armap_big) : Use do_copy and do_pad.
1559 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1560 do_copy and do_pad.
1561 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
1562 bfd_xcoff_magic_number.
1563 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1564 fop.
1565 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1566 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1567 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1568 * rs6000-core.c : Update copyright date.
1569 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
1570 csectpp.
1571 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1572 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1573 (coff_set_flags) : Use bfd_xcoff_magic_number.
1574 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1575 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1576 * Makefile.am : Same.
1577 * config.bfd : Same.
1578 * targets.c : Same.
1579 * configure : Regnerate.
1580 * Makefile.in : Same.
1581 * bfd-in2.h : Same.
1582
1583 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1584
1585 * po/fr.po: Updated version.
1586
1587 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1588
1589 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1590 * libbfd.h: Regenerate.
1591 * archive.c (coff_write_armap): Pass on failures from
1592 bfd_write_bigendian_4byte_int.
1593
1594 2002-03-14 H.J. Lu <hjl@gnu.org>
1595
1596 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1597 error to bfd_error_nonrepresentable_section for reinit_array
1598 section in DSO.
1599
1600 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1601
1602 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1603 OR it in rather than replacing previously selected flags.
1604
1605 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1606 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1607
1608 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1609
1610 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1611 (N): Use the above.
1612 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1613 ensure reloc size matches before calling elf_link_input_bfd.
1614 Add an assert to check reloc size when counting output relocs.
1615
1616 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1617
1618 * mmo.c (mmo_get_loc): Return NULL rather than false.
1619
1620 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1621
1622 * po/fr.po: Updated version.
1623
1624 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1625
1626 * archures.c (bfd_default_compatible): Test bits_per_word.
1627 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1628 bfd_default_compatible.
1629 * cpu-i370.c (i370_compatible): Likewise.
1630 * cpu-sparc.c (sparc_compatible): Likewise.
1631 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1632
1633 * elflink.h: Formatting fixes.
1634 (elf_link_output_extsym): Merge undefined and undef weak cases.
1635
1636 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1637 when word size of input matches output word size.
1638
1639 2002-03-12 Andreas Jaeger <aj@suse.de>
1640
1641 * cpu-i386.c (i386_compatible): New. Use it instead of
1642 bfd_default_compatible.
1643
1644 2002-03-07 H.J. Lu (hjl@gnu.org)
1645
1646 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1647 as the type for bfd_reloc_val.
1648
1649 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1650
1651 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1652 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1653 (elf_hppa_final_link_relocate): Correct relocations for indirect
1654 references to local data through the DLT. Fix .opd creation for
1655 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1656 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1657 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1658 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1659 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1660 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1661 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1662
1663 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1664
1665 * merge.c (_bfd_merge_sections): Don't segfault if there
1666 is nothing to merge due to GC.
1667
1668 2002-03-05 Alan Modra <amodra@bigpond.net.au>
1669
1670 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1671 symbols that have been forced local.
1672
1673 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1674 to output forced local syms for non-shared link.
1675 (elf_link_output_extsym): Tweak condition for calling backend
1676 adjust_dynamic_symbol so that previous behaviour is kept.
1677 Whitespace changes throughout file.
1678
1679 2002-03-04 H.J. Lu <hjl@gnu.org>
1680
1681 * elf.c (bfd_section_from_shdr): Handle special sections,
1682 .init_array, .fini_array and .preinit_array.
1683 (elf_fake_sections): Likewise.
1684
1685 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1686 DT entry only if the section is in output for .init_array,
1687 .fini_array and .preinit_array. Complain about .preinit_array
1688 section in DSO.
1689 (elf_bfd_final_link): Warn zero size for .init_array,
1690 .fini_array and .preinit_array sections.
1691
1692 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1693 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1694 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1695 .preinit_array.
1696
1697 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1698
1699 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1700 * configure: Regenerate.
1701
1702 2002-03-02 Tom Rix <trix@redhat.com>
1703
1704 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1705 symbolic equiv.
1706 * coff-rs6000.c (xcoff_howto_table): Same.
1707
1708 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1709
1710 * elflink.h (size_dynamic_sections): If section named
1711 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1712 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1713 ".init_array" and ".fini_array".
1714 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1715 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1716 DT_FINI_ARRAY.
1717
1718 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
1719
1720 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1721 dynsyms.
1722
1723 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1724
1725 * elf64-hppa.h: Update copyright date.
1726
1727 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1728 (ppc64_elf_relocate_section): Don't generate power4 style branch
1729 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1730
1731 2002-02-22 Jakub Jelinek <jakub@redhat.com>
1732
1733 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1734 last patch.
1735 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1736
1737 2002-02-21 Andreas Jaeger <aj@suse.de>
1738
1739 * elf64-x86-64.c: Major rework that introduces all recent changes
1740 to the x86-64 backend. Get a closer match to elf32-i386.
1741 (struct elf64_x86_64_dyn_relocs): Rename from
1742 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1743 all users.
1744 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1745 sections.
1746 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1747 remove casts, initialize new hash members.
1748 (create_got_section): New.
1749 (elf64_x86_64_create_dynamic_sections): New.
1750 (elf64_x86_64_copy_indirect_symbol): New.
1751 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1752 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1753 Reference count possible .plt and .got entries. Don't test input
1754 section SEC_READONLY here to try to avoid copy relocs, and keep
1755 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1756 DF_TEXTREL here. Delay setting of variables until needed. Cache
1757 pointer to "sreloc" section in elf_section_data. Tweak condition
1758 under which .got created. Report files with bad relocation
1759 section names.
1760 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1761 Reference count possible .plt entries. Don't deallocate .got and
1762 .relgot space here.
1763 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1764 do copy reloc processing for weakdefs. Remove redundant casts and
1765 aborts. Delay setting of vars until needed. Move creation of
1766 dynamic symbols and allocation of .plt and .rela.plt to
1767 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1768 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1769 (allocate_dynrelocs): New.
1770 (readonly_dynrelocs): New.
1771 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1772 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1773 Zero out the dynamic allocated content space.
1774 (elf64_x86_64_discard_copies): Removed.
1775 (elf64_x86_64_relocate_section): Make use of dynamic section
1776 short-cuts. Localise vars, and delay setting. Better error
1777 reporting, replace BFD_ASSERT with abort. Check
1778 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1779 regular object file and tread the weak definition as the normal
1780 one. Don't discard relocs for undefweak or undefined symbols and
1781 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1782 relocs.
1783 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1784 symbols that have been forced local. Use same test to decide if
1785 we can use a relative reloc for got as relocate_section. Expand
1786 SHN_UNDEF comment. Move expressions out of function calls.
1787 Replace BFD_ASSERT with abort.
1788 (bfd_elf64_bfd_final_link): Removed.
1789 (elf_backend_copy_indirect_symbol): Define.
1790
1791 2002-02-20 Tom Rix <trix@redhat.com>
1792
1793 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1794 (_bfd_xcoff_reloc_type_lookup): Use it.
1795 * coff64-rs6000.c (xcoff64_howto_table): Same.
1796 (xcoff64_reloc_type_lookup): Same.
1797
1798 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1799
1800 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1801 little endian.
1802
1803 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1804
1805 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1806 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1807 * bfd-in2.h: Regenerate.
1808 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1809 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1810 with "s390:64-bit".
1811 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1812 (elf_s390_reloc_type_lookup): Likewise.
1813 (elf_s390_check_relocs): Likewise.
1814 (elf_s390_gc_sweep_hook): Likewise.
1815 (elf_s390_relocate_section): Likewise.
1816 (elf_s390_object_p): Use renamed architecture define.
1817 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1818
1819 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
1820
1821 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1822
1823 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1824
1825 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1826 absptr -> pcrel optimization for shared libs.
1827 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1828 library cannot be converted to pcrel.
1829 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1830 relative.
1831 * elf32-i386.c (elf_i386_relocate_section): If
1832 _bfd_elf_section_offset returned -2, skip, but make sure the
1833 relocation is installed.
1834 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1835 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1836 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1837 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1838 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1839 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1840 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1841 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1842 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1843 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1844 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1845 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1846 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1847 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1848 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1849 _bfd_elf_section_offset returning -2 the same way as -1.
1850 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1851 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1852 and BFD_ASSERT.
1853 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1854
1855 2002-02-18 Tom Rix <trix@redhat.com>
1856
1857 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1858 (bfd_xcoff_size_dynamic_sections): Same.
1859 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1860 (bfd_xcoff_size_dynamic_sections): Same.
1861 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1862 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1863 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1864 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1865 * bfd-in2.h: Regenerate.
1866
1867 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1868
1869 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1870 (struct ppc_link_hash_table): Add sfpr.
1871 (ppc64_elf_link_hash_table_create): Init it.
1872 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1873 .glink out to..
1874 (create_linkage_sections): ..here. Make .sfpr too.
1875 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1876 dynobj early.
1877 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1878 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1879 ._restf* functions, and create as needed.
1880 (func_desc_adjust): Only force_local for shared libs.
1881
1882 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1883
1884 * configure.in: Bump version number post 2.12 branching.
1885 * configure: Regenerate.
1886
1887 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1888
1889 * mmo.c: Correct and improve comments.
1890 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1891 zero-pad. Use input to fill up non-empty bfd buffer.
1892 (mmo_flush_chunk): New function.
1893 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1894 changed. Don't emit location specifier if VMA is same as
1895 *LAST_VMAP after omitting leading zero contents. Call
1896 mmo_flush_chunk before emitting location specifier.
1897 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1898 with mmo_write_loc_chunk calls.
1899 (mmo_internal_write_section): Call mmo_flush_chunk after
1900 mmo_write_chunk.
1901 (mmo_write_symbols_and_terminator): Move :Main to first position
1902 in symbol array. Add faked one if it does not exist if there are
1903 other symbols. Don't add it if there are no symbols at all. Move
1904 out test for value of :Main from symbol loop. Rename table
1905 fakemain to maintable and variable mainsym to fakemain.
1906
1907 2002-02-15 Richard Henderson <rth@redhat.com>
1908
1909 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1910 section with no got matches any got. Simplify error generaion.
1911
1912 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1913
1914 Support arbitrary length fill patterns.
1915 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1916 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1917 Call default_data_link_order.
1918 (default_fill_link_order): Delete.
1919 (default_data_link_order): New function.
1920 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1921 of bfd_fill_link_order with bfd_data_link_order.
1922 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1923 * elf64-mips.c (mips_elf64_final_link): Likewise.
1924
1925 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1926 Correct value returned in "end" for "0x<non-hex>".
1927
1928 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1929
1930 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1931 (scan): Test against 'mach' field in info structure.
1932
1933 2002-02-14 Alan Modra <amodra@bigpond.net.au>
1934
1935 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1936
1937 2002-02-14 Matt Fredette <fredette@netbsd.org>
1938
1939 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1940 EF_M68000.
1941
1942 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1943
1944 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
1945 non-zero physical addresses when adjusting the LMAs of new
1946 sections.
1947
1948 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1949
1950 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1951 from _bfd_elf_hppa_gen_reloc_type.
1952 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1953 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1954 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1955 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1956
1957 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1958
1959 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1960 loading its contents if there's nothing to do in it.
1961
1962 2002-02-12 Alan Modra <amodra@bigpond.net.au>
1963
1964 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1965 64k boundary.
1966
1967 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1968 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1969 (ppc64_elf_finish_dynamic_sections): Set values for them.
1970
1971 2002-02-11 Michael Snyder <msnyder@redhat.com>
1972
1973 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1974 * elf.c (elfcore_grok_pstatus): Add prototype.
1975 (elfcore_grok_lwpstatus): Add prototype.
1976 (elfcore_write_lwpstatus): New function.
1977 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1978
1979 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1980
1981 * elf32-sh.c: Added missing prototypes.
1982 * elf32-sh64.c: Likewise.
1983 (sh_elf_align_loads): Mark unused args as such.
1984 * elf64-sh64.c: Added missing prototypes.
1985 (struct elf_sh64_link_hash_entry): Fix typo.
1986 (sh_elf64_relocate_section): Fix info argument passed to
1987 _bfd_elf_section_offset.
1988
1989 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1990
1991 * Makefile.am: "make dep-am".
1992 * Makefile.in: Regenerate.
1993 * aclocal.m4: Regenerate.
1994 * config.in: Regenerate.
1995 * configure: Regenerate.
1996
1997 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2000 variable warnings.
2001 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2002 comparison warning.
2003 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2004 cast warnings for the common case.
2005
2006 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2007
2008 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2009 vectors.
2010 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2011 vectors.
2012
2013 2002-02-09 Richard Henderson <rth@redhat.com>
2014
2015 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2016 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2017 (elf64_alpha_relocate_section): Likewise.
2018 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2019 * bfd-in2.h, libbfd.h: Rebuild.
2020
2021 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2022
2023 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2024 that base-plus-offset reloc accounting is consistent.
2025 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2026 up to date for undefined symbols.
2027
2028 2002-02-08 Eric Christopher <echristo@redhat.com>
2029
2030 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2031
2032 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2033 sections for the O32 ABI.
2034
2035 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2036
2037 * elf32-arm.h: Fix formatting of _("...").
2038 * elf32-d10v.c: Likewise.
2039 * elf32-m68k.c: Likewise.
2040 * elf32-mips.c: Likewise.
2041
2042 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2043
2044 * coff-or32.c: Fix compile time warning messages.
2045
2046 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2047
2048 Contribute sh64-elf.
2049 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2050 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2051 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2052 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2053 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2054 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2055 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2056 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2057 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2058 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2059 New relocs.
2060 * libbfd.h, bfd-in2.h: Rebuilt.
2061 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2062 (sh_reloc_map): Map them.
2063 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2064 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2065 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2066 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2067 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2068 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2069 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2070 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2071 datalabel_got_offset.
2072 (sh_elf_link_hash_newfunc): Initialize it.
2073 (sh_elf_relocate_section): Augment the scope of
2074 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2075 GOT and GOTOFF handling to new SHmedia relocation types. Support
2076 GOT_BIAS.
2077 (sh_elf_check_relocs): Likewise.
2078 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2079 PLT entries using movi_shori_putval. Support GOT_BIAS.
2080 (sh_elf_finish_dynamic_sections): Likewise.
2081 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2082 relocation, it's now done by the caller.
2083 (GOT_BIAS): New.
2084 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2085 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2086 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2087 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2088 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2089 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2090 sh64_elf64_hash_table): New.
2091 (sh_elf64_howto_table): Introduce new relocs.
2092 (sh_elf64_info_to_howto): Accept new PIC relocs.
2093 (sh_elf64_relocate_section): Augment the scope of
2094 seen_stt_datalabel. Support new PIC relocs.
2095 (sh_elf64_check_relocs): Support new PIC relocs.
2096 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2097 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2098 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2099 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2100 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2101 movi_shori_putval, movi_3shori_putval,
2102 sh64_elf64_create_dynamic_sections,
2103 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2104 sh64_elf64_size_dynamic_sections,
2105 sh64_elf64_finish_dynamic_symbol,
2106 sh64_elf64_finish_dynamic_sections): New.
2107 (elf_backend_create_dynamic-sections,
2108 bfd_elf64_bfd_link_hash_table_create,
2109 elf_backend_adjust_dynamic_symbol,
2110 elf_backend_size_dynamic_sections,
2111 elf_backend_finish_dynamic_symbol,
2112 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2113 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2114 elf_backend_got_header_size, elf_backend_plt_header_size):
2115 Define.
2116 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2117 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2118 match official numbers and names; moved unmaching ones to the
2119 range 0xf2-0xff.
2120 * elf32-sh64.c, elf64-sh64.c: Likewise.
2121 2001-03-12 DJ Delorie <dj@redhat.com>
2122 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2123 sections.
2124 2001-03-12 DJ Delorie <dj@redhat.com>
2125 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2126 be aligned.
2127 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2128 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2129 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2130 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2131 .cranges section with SEC_SORT_ENTRIES set.
2132 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2133 incoming sorted .cranges section.
2134 (sh64_bfd_elf_copy_private_section_data): New.
2135 (sh64_elf_final_write_processing): Only sort .cranges and modify
2136 start address if called by linker.
2137 2001-01-08 Ben Elliston <bje@redhat.com>
2138 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2139 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2140 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2141 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2142 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2143 line. Add comments before all entries.
2144 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2145 comment.
2146 (sh_elf64_reloc): Correct head comment.
2147 (sh_elf64_relocate_section): Correct spacing.
2148 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2149 instead call reloc_dangerous callback.
2150 <case R_SH_SHMEDIA_CODE>: New case.
2151 (sh_elf64_gc_mark_hook): Correct spacing.
2152 (sh_elf64_check_relocs): Ditto.
2153 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2154 New case.
2155 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2156 functions.
2157 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2158 clarify describing comment. Add comments before all entries.
2159 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2160 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2161 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2162 Sort .cranges section in final link. Prepare to set bit 0 on
2163 entry address.
2164 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2165 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2166 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2167 .cranges section.
2168 (sh64_backend_section_from_shdr): New, to recognize
2169 SHT_SH5_CR_SORTED on incoming .cranges section.
2170 (elf_backend_section_from_shdr): Define.
2171 (sh64_elf_final_write_processing): Sort outgoing .cranges
2172 section. (New, temporarily disabled:) Set bit 0 on entry address
2173 according to ISA type.
2174 (sh64_find_section_for_address): New.
2175 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2176 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2177 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2178 bfd_malloc, not xmalloc.
2179 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2180 global.
2181 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2182 temporarily disabled) setting bit 0 on entry address.
2183 (elf_backend_final_write_processing): Define.
2184 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2185 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2186 be a proper relocation for PTA and PTB rather than a marker.
2187 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2188 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2189 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2190 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2191 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2192 Zero src_mask.
2193 * elf64-sh64.c: Ditto.
2194 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2195 * elf32-sh64.c: Include opcodes/sh64-opc.h
2196 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2197 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2198 parameters. No unused parameters. Caller changed.
2199 <case R_SH_PT_16>: New case.
2200 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2201 * Makefile.in: Regenerate.
2202 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2203 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2204 all code sections.
2205 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2206 (sh64_elf_merge_private_data): Ditto.
2207 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2208 to access stored section flags.
2209 (sh64_elf_final_write_processing): Return immediately unless
2210 called by linker. Use sh64_elf_section_data (cranges) to get size
2211 of linker-generated cranges entries.
2212 (sh64_elf_copy_private_data): Add missing "return true".
2213 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2214 (sh_elf64_merge_private_data): Ditto.
2215 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2216 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2217 elf64-sh64.c:sh64_elf_fake_sections.
2218 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2219 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2220 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2221 (sh64_elf_final_write_processing): New.
2222 (elf_backend_final_write_processing): Define.
2223 (sh64_elf_fake_sections): Get header flags from tdata field.
2224 (sh64_elf_copy_private_data): Do not call
2225 sh64_elf_copy_private_data_internal, just copy e_flags field.
2226 (sh64_elf_merge_private_data): Do not call
2227 sh64_elf_copy_private_data_internal.
2228 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2229 Remove EF_SH64_ABI64, let ELF size make difference.
2230 Remove SH64-specific BFD section flag.
2231 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2232 containing SHmedia through elf_section_data (asect)->tdata
2233 non-zero, not using a BFD section flag.
2234 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2235 (sh64_elf_merge_private_data): Similar.
2236 (elf_backend_section_flags): Don't define.
2237 (sh64_elf_backend_section_flags): Delete.
2238 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2239 not EF_SH64_ABI64.
2240 (sh_elf64_merge_private_data): Similar.
2241 * section.c (Section flags definitions): Don't define
2242 SEC_SH_ISA_SHMEDIA.
2243 (bfd-in2.h): Regenerate.
2244 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2245 Make DataLabel references work with partial linking.
2246 * elf32-sh64.c: Fix formatting.
2247 (sh64_elf_link_output_symbol_hook): New.
2248 (elf_backend_link_output_symbol_hook): Define to
2249 sh64_elf_link_output_symbol_hook.
2250 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2251 undefined if partial linking. Adjust sanity check.
2252 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2253 (elf_backend_link_output_symbol_hook): Define to
2254 sh64_elf64_link_output_symbol_hook.
2255 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2256 undefined if partial linking. Adjust sanity check.
2257 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2258 Implement semantics for inter-file DataLabel references.
2259 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2260 (sh64_elf64_add_symbol_hook): New.
2261 (sh_elf64_relocate_section): If passing an indirect symbol with
2262 st_type STT_DATALABEL on the way to a symbol with st_other
2263 STO_SH5_ISA32, do not bitor 1 to the relocation.
2264 (elf_backend_add_symbol_hook): Define to
2265 sh64_elf64_add_symbol_hook.
2266 * elf64-sh32.c: Tweak comments.
2267 (DATALABEL_SUFFIX): Define.
2268 (sh64_elf_add_symbol_hook): New.
2269 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2270 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2271 symbol with st_type STT_DATALABEL on the way to a symbol with
2272 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2273 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2274 Pass through STT_DATALABEL.
2275 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2276 (elf_backend_get_symbol_type): Define.
2277 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2278 (elf_backend_get_symbol_type): Define.
2279 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2280 * elf32-sh64.c: Tweak comments.
2281 (sh64_elf_copy_private_data_internal): Add prototype.
2282 (bfd_elf32_bfd_set_private_flags): Define.
2283 (sh64_elf_copy_private_data_internal): Compare machine name, not
2284 textual BFD target name, to check whether to copy section flag
2285 SHF_SH5_ISA32.
2286 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2287 Tweak section-contents-type-mismatch message.
2288 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2289 Validize reloc-types.
2290 * elf64-sh64.c: New file.
2291 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2292 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2293 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2294 Regenerate dependencies.
2295 * Makefile.in: Regenerate.
2296 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2297 bfd_elf64_sh64l_vec.
2298 * configure.in: Handle bfd_elf64_sh64_vec and
2299 bfd_elf64_sh64l_vec.
2300 * configure: Regenerate.
2301 * po/POTFILES.in: Regenerate.
2302 * po/bfd.pot: Regenerate.
2303 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2304 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2305 anything else but EF_SH64 and EF_SH64_ABI64.
2306 (sh64_elf_merge_private_data): Emit error for anything else but
2307 EF_SH64 and EF_SH64_ABI64.
2308 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2309 from targ_selvecs.
2310 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2311 bfd_elf32_sh64l_vec as a temporary measure.
2312 * configure: Regenerate.
2313 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2314 * cpu-sh.c (arch_info_struct): Include sh5 item
2315 unconditionalized.
2316 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2317 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2318 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2319 * elf32-sh64.c: Tweak comments.
2320 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2321 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2322 (sh64_elf_copy_private_data_internal): Wrap long line.
2323 (sh64_elf_merge_private_data): Rewrite to allow objects from
2324 SH64 subsets to be linked together.
2325 (INCLUDE_SHMEDIA): Define.
2326 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2327 Parenthesize plus-expression inside or-expression.
2328 <global symbol>: Ditto.
2329 (sh_elf_set_mach_from_flags): Remove code refusing
2330 deleted EF_SH64_32BIT_ABI flag.
2331 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2332 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2333 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2334 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2335 (sh_elf_relocate_section) <local symbol>: Or 1 in
2336 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2337 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2338 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2339 relocation.
2340 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2341 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2342 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2343 Regenerate dependencies.
2344 * Makefile.in: Regenerate.
2345 * archures.c: Add bfd_mach_sh5.
2346 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2347 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2348 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2349 * configure: Regenerate.
2350 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2351 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2352 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2353 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2354 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2355 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2356 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2357 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2358 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2359 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2360 in item for SH5.
2361 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2362 for SHmedia relocs.
2363 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2364 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2365 shmedia_prepare_reloc, goto final_link_relocate if it returns
2366 non-zero, else fail as before.
2367 (sh_elf_set_mach_from_flags): Provide function only if not defined
2368 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2369 (sh_elf_set_private_flags): Provide function only if not defined
2370 as a macro.
2371 (sh_elf_copy_private_data): Similar.
2372 (sh_elf_merge_private_data): Similar.
2373 * section.c (SEC_SH_ISA_SHMEDIA): New.
2374 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2375 * elf32-sh64.c: New file.
2376 * libbfd.h: Regenerate.
2377 * bfd-in2.h: Regenerate.
2378 * po/POTFILES.in: Regenerate.
2379 * po/bfd.pot: Regenerate.
2380 * bfd-in2.h: Regenerate.
2381 * libbfd.h: Regenerate.
2382
2383 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
2384
2385 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2386 been included, not drag it in.
2387 * bfd-in2.h: Regenerate.
2388
2389 2002-02-06 H.J. Lu (hjl@gnu.org)
2390
2391 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2392 the mach and ISA fields if necessary.
2393
2394 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2395
2396 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2397 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2398 be sure exactly which architecture this represents.
2399
2400 2002-02-05 Nick Clifton <nickc@redhat.com>
2401
2402 * po/tr.po: Updated translation.
2403
2404 2002-02-05 Alan Modra <amodra@bigpond.net.au>
2405
2406 From Jimi X <jimix@watson.ibm.com>
2407 * archures (bfd_mach_ppc64): Define.
2408 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2409 (bfd_powerpc_arch): Define.
2410 * bfd-in2.h: Regenerate.
2411 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2412 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2413 (bfd_powerpc_archs): Add default powerpc64 arch.
2414
2415 2002-02-05 Alan Modra <amodra@bigpond.net.au>
2416
2417 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2418 against section syms in readonly sections. Don't do the global
2419 sym check if we find one.
2420 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2421 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
2422 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2423 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2424 (elf_s390_grok_prstatus): Add missing prototype.
2425
2426 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2427
2428 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2429 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2430 Call bfd_get_section_by_name only once. Initialize
2431 bpodata->n_bpo_relocs_this_section.
2432 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2433 referring to DSOs.
2434 (bpo_reloc_request_sort_fn): Don't use difference of values as
2435 return-value.
2436
2437 2002-02-02 David O'Brien <obrien@FreeBSD>
2438
2439 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2440 version 4.5 and later the same as 5-CURRENT.
2441 * configure: Re-generate.
2442
2443 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2444
2445 * config.bfd (hppa*-*-netbsd*): New target.
2446
2447 2002-01-31 Philipp Thomas <pthomas@suse.de>
2448
2449 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2450 to front of message. Unify messages with elf32-arm.h. Use
2451 commas where neccessary.
2452 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2453 ERROR in messages. Unify messages with coff-arm.c. Correct
2454 VFP/FPA error message.
2455 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2456 APCS-32 for translation.
2457
2458 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2459
2460 Perform on-demand global register allocation from
2461 R_MMIX_BASE_PLUS_OFFSET relocs.
2462 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2463 bpo_reloc_request, struct bpo_greg_section_info): New.
2464 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2465 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2466 _bfd_mmix_check_all_relocs,
2467 _bfd_mmix_prepare_linker_allocated_gregs,
2468 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2469 (elf_mmix_howto_table): Correct src_mask for most relocs.
2470 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2471 case.
2472 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2473 case. Fix typo in comment. New label do_mmix_reloc.
2474 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2475 store first object file with a base-plus-offset reloc. Call
2476 mmix_elf_check_common_relocs for the part common with mmo.
2477 (mmix_elf_final_link): Write out linker-allocated register
2478 contents section.
2479 (elf_backend_gc_sweep_hook): Define.
2480 (bfd_elf64_bfd_relax_section): Define.
2481
2482 * mmo.c: Don't include <ctype.h>
2483 (mmo_init): Correct init-once logic.
2484
2485 2002-02-01 Tom Rix <trix@redhat.com>
2486
2487 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2488
2489 2002-02-01 Alan Modra <amodra@bigpond.net.au>
2490
2491 * Makefile.am: Run "make dep-am"
2492 * Makefile.in: Regenerate.
2493
2494 2002-01-31 David O'Brien <obrien@FreeBSD>
2495
2496 * configure.in: Recognize the differences in core files from FreeBSD
2497 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2498 5-CURRENT.
2499 * configure: Regenerate.
2500
2501 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2502
2503 * coff-or32.c: New file.
2504 * cpu-or32.c: New file.
2505 * elf32-or32.c: New file.
2506 * archures.c: Add support for or32.
2507 * targets.c: Add support for or32.
2508 * bfd-in2.h: Regenerate.
2509 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
2510 coff_write_object_contents): Add support for or32.
2511 * config.bfd: Add target.
2512 * configure.in: Add support for or32.
2513 * configure: Regenerate.
2514 * Makefile.am: Add support for or32.
2515 * Makefile.in: Regenerate.
2516 * po/SRC-POTFILES.in: Add or32 files.
2517 * po/bfd.pot: Regenerate.
2518
2519 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2520 Don Lindsay <lindsayd@cisco.com>
2521
2522 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2523 false' with a return of a bfd_reloc_ error code.
2524
2525 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2526
2527 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2528 unexport unreferenced symbols when --export-dynamic. Call
2529 _bfd_elf_strtab_delref when unexporting.
2530
2531 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * bfd-in.h: Include <stdbool.h> if it is available.
2534 * bfd-in2.h: Regenerated.
2535
2536 2002-01-31 Alan Modra <amodra@bigpond.net.au>
2537
2538 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2539 not go via the plt.
2540
2541 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2542
2543 * archures.c: Tidy up formatting of embedded comments.
2544 * bfd.c: Tidy up formatting of embedded comments.
2545 * bfd-in.h: Fix formatting of comments.
2546 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2547 * section.c: Tidy up formatting of embedded comments.
2548 * syms.c: Tidy up formatting of embedded comments.
2549 * targets.c: Tidy up formatting of embedded comments.
2550
2551 * bfd-in2.h: Regenerate.
2552
2553 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2554
2555 * vms-tir.c (cmd_name): New function.
2556 (tir_cmd_name): New function.
2557 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2558 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2559 Fix formatting.
2560
2561 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2562 translation.
2563 (pe_print_pdata): Rearrange message to aid in translation.
2564
2565 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2566 translation.
2567
2568 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2569
2570 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2571
2572 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2573 message to aid in translation.
2574
2575 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2576 to aid in translation.
2577
2578 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2579
2580 2002-01-30 Philipp Thomas <pthomas@suse.de>
2581
2582 * coff-arm.c, elf32-elf.h: Unify messages.
2583
2584 2002-01-30 Nick Clifton <nickc@redhat.com>
2585
2586 * po/sv.po: Updated translation.
2587
2588 2002-01-30 Philipp Thomas <pthomas@suse.de>
2589
2590 * dwarf2.c (read_abbrev): Use full section name in error message.
2591 (decode_line_info): Likewise.
2592
2593 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2594 message.
2595
2596 2002-01-30 Alan Modra <amodra@bigpond.net.au>
2597
2598 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2599 descriptor symbols for undefined function code syms. Clear
2600 ELF_LINK_NON_ELF so that they can stay weak.
2601
2602 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2603 Mitch Lichtenberg <mpl@broadcom.com>
2604
2605 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2606 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2607 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2608 generation.
2609 * bfd-in2.h: Regenerate.
2610
2611 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2612
2613 * elf32-mips.c: Add additional comments about HI16 relocation
2614 processing.
2615 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2616 pc-relative relocations. (Reverts change made on 2001-10-31.)
2617 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2618 for pc-relative relocations.
2619 (mips_elf_calculate_relocation): Add a comment about a kludge
2620 in the R_MIPS_GNU_REL_HI16 handling.
2621 (_bfd_mips_elf_relocate_section): Implement that kludge;
2622 adjust pc-relative HI16 relocation for difference in HI16 and
2623 LO16 addresses, since it can't easily be done in
2624 mips_elf_calculate_relocation.
2625
2626 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2627
2628 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2629 relocations with PC32 relocations for undefined or weak symbols.
2630 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2631 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2632
2633 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2634
2635 * elfcore.h (elf_core_file_p): Improve comment for last change.
2636
2637 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * configure: Regenerated.
2640
2641 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2642
2643 * elfcore.h (elf_core_file_p): Set the machine architecture
2644 before processing the program headers.
2645
2646 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2647
2648 * configure.in <64-bit configuration>: If using gcc, check and
2649 emit error for egcs-1.1.2.
2650 * configure: Regenerate.
2651
2652 2002-01-26 Egor Duda <deo@logos-m.ru>
2653
2654 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2655 as possible to avoid stack corruption.
2656
2657 2002-01-26 Richard Henderson <rth@redhat.com>
2658
2659 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2660 for non-allocated sections.
2661
2662 2002-01-25 Mark Kettenis <kettenis@gnu.org>
2663
2664 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2665 prstat.pr_reg even if it is a struct.
2666
2667 2002-01-25 Steve Ellcey <sje@cup.hp.com>
2668
2669 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2670
2671 2002-01-25 Philipp Thomas <pthomas@suse.de>
2672
2673 * coffgen.c (coff_print_symbol): Don't mark info message
2674 for translation.
2675
2676 2002-01-25 Nick Clifton <nickc@redhat.com>
2677
2678 * po/fr.po: Updated translation.
2679 * po/es.po: Updated translation.
2680
2681 2002-01-25 Philipp Thomas <pthomas@suse.de>
2682
2683 * coff-alpha.c (alpha_relocate_section): Unify warning message
2684 for GP relative relocations without GP defined.
2685 * coff-mips.c (mips_relocate_section): Likewise.
2686
2687 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2688
2689 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2690 unsigned overflow when new_offset < old_offset.
2691
2692 2002-01-24 Philipp Thomas <pthomas@suse.de>
2693
2694 * bfd.c (_bfd_abort): Fix typo.
2695
2696 2002-01-23 Richard Henderson <rth@redhat.com>
2697
2698 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2699 plt entries for undefweak symbols.
2700
2701 2002-01-23 Steve Ellcey <sje@cup.hp.com>
2702
2703 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2704 DEFAULT_VECTOR.
2705 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2706 (bfd_elf32_h8300_vec): Ditto.
2707
2708 2002-01-23 Alan Modra <amodra@bigpond.net.au>
2709
2710 * elf64-ppc.c: Remove stale part of ABI comment.
2711 (NO_OPD_RELOCS): Define.
2712 (ppc64_elf_check_relocs): Use it.
2713 (ppc64_elf_relocate_section): Here too.
2714 (build_one_stub): Don't point function syms at the stub. Instead,
2715 hijack plt.offset.
2716 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2717 really go to the stub. Make all dynamic relocs in opd against
2718 locals.
2719 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2720 plt.offset.
2721
2722 2002-01-22 Richard Henderson <rth@redhat.com>
2723
2724 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2725
2726 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2727
2728 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2729 TOC_BASE_OFF adjustment.
2730
2731 * Makefile.am: Run "make dep-am".
2732 * Makefile.in: Regenerate.
2733 * po/SRC-POTFILES.in: Regenerate.
2734
2735 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2736
2737 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2738 host defines.
2739
2740 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
2741
2742 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2743 Check for and emit error if sgot is NULL at this point.
2744
2745 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2746
2747 * config.bfd (ia64*-*-netbsd*): New target.
2748
2749 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2750
2751 * som.c (som_write_space_strings): Comment typo fix.
2752
2753 2002-01-21 Alan Modra <amodra@bigpond.net.au>
2754
2755 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2756 is_func_descriptor fields.
2757 (link_hash_newfunc): Init them.
2758 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2759 dot are candidates for plt entries. When processing .opd relocs,
2760 set function descriptor strings to point inside function code
2761 string, and set new ppc_link_hash_entry fields.
2762 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2763 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2764 function descriptors. It's now done in..
2765 (func_desc_adjust): New.
2766 (ppc64_elf_func_desc_adjust): New.
2767 (define elf_backend_always_size_sections): Define.
2768 (ppc64_elf_hide_symbol): New.
2769 (define elf_backend_hide_symbol): Define.
2770 (allocate_dynrelocs): Remove code looking up function descriptors
2771 as that has been done earlier.
2772 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2773 table.
2774 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2775 up function descriptor.
2776 (build_one_stub): Look up the function code sym. Check for
2777 invalid plt offsets.
2778 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2779 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2780
2781 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2782 boolean param.
2783 (_bfd_elf_link_hash_hide_symbol): Likewise.
2784 * elflink.h (elf_link_add_object_symbols): Adjust call to
2785 elf_backend_hide_symbol.
2786 (elf_fix_symbol_flags): Likewise.
2787 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2788 than bfd_alloc.
2789 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2790 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2791 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2792 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2793 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2794 and adjust to suit.
2795 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2796 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2797 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2798
2799 2002-01-18 Alan Modra <amodra@bigpond.net.au>
2800
2801 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2802 dynamic function descriptor symbol, not the associated function
2803 symbol.
2804
2805 2002-01-17 Eric Christopher <echristo@redhat.com>
2806
2807 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2808
2809 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2810
2811 * po/bfd.pot: Regenerate.
2812 * po/fr.po: Regenerate.
2813
2814 2002-01-17 Alan Modra <amodra@bigpond.net.au>
2815
2816 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2817 Remove "Elf_Internal_Shdr *" param.
2818 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2819 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2820 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2821 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2822 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2823 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2824 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2825 function to override special sections. Remove hdr arg from
2826 backend call, and don't loop.
2827
2828 2002-01-16 Eric Christopher <echristo@redhat.com>
2829
2830 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2831 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2832 relocations requiring gp0 and gp.
2833
2834 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
2835
2836 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
2837 EF_ARM_VFP_FLOAT.
2838 (elf32_arm_print_private_bfd_data): Likewise.
2839
2840 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2841
2842 * po/tr.po: Import new version.
2843
2844 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2845
2846 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2847 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2848 (ORI_R0_R0_0): Correct.
2849
2850 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2851
2852 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2853 when plt_not_loaded.
2854 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2855 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2856 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2857 (ppc64_elf_glink_code): Delete.
2858 (PPC64_ELF_GLINK_SIZE): Delete.
2859 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2860 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2861 ORI_R0_R0_0): Define.
2862 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2863 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2864 (ppc64_elf_link_hash_table_create): Init them.
2865 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2866 Don't copy to shared lib.
2867 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2868 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2869 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2870 room for .stub and .glink code.
2871 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2872 DT_PPC64_GLINK.
2873 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2874 bfd_elf64_bfd_final_link.
2875 (bfd_elf64_bfd_final_link): Don't define.
2876 (ppc64_elf_size_stubs): New.
2877 (build_plt_stub): New.
2878 (build_one_stub): New.
2879 (ppc64_elf_build_stubs): New.
2880 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2881 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2882 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2883 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2884 case output sections not separate. Adjust DT_RELASZ to not
2885 include plt relocs. Set reserved got entry. Set got and plt
2886 entry size.
2887 (elf_backend_got_header_size): Set to 8.
2888 * elf64-ppc.h: New file.
2889
2890 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2891
2892 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2893 sections, use bfd_section_list_remove.
2894 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2895 * elflink.h (elf_link_add_object_symbols): When removing all
2896 sections, use bfd_section_list_clear.
2897
2898 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2899
2900 * po/sv.po: New file: Swedish translation.
2901 * configure.in (ALL_LINGUAS): Add sv.
2902 * configure: Regenerate.
2903
2904 2002-01-15 Jakub Jelinek <jakub@redhat.com>
2905
2906 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2907 * elf.c (merge_sections_remove_hook): New function.
2908 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2909 _bfd_merge_sections.
2910 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2911 * libbfd.h: Rebuilt.
2912 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2913 Call remove_hook if a SEC_EXCLUDE section is encountered.
2914
2915 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2916
2917 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2918 (xstormy16_reloc_map): Initialise new field with correct howto
2919 table.
2920 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2921 howto entry.
2922
2923 2002-01-10 Michael Snyder <msnyder@redhat.com>
2924
2925 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2926 (elfcore_write_pstatus): Use long instead of pid_t;
2927 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2928
2929 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
2930
2931 * elf.c: Update copyright years.
2932 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2933 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2934
2935 2002-01-08 Michael Snyder <msnyder@redhat.com>
2936
2937 Add capability to write corefile note sections, for gdb.
2938 * elf.c (elfcore_write_note): New function.
2939 (elfcore_write_prpsinfo): New function.
2940 (elfcore_write_prstatus): New function.
2941 (elfcore_write_pstatus): New function.
2942 (elfcore_write_prfpreg): New function.
2943 (elfcore_write_prxfpreg): New function.
2944 * elf-bfd.h: Add prototypes for above functions.
2945
2946 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2947
2948 * elf.c (elf_fake_sections): Propagate errors from
2949 elf_backend_fake_section.
2950
2951 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2952
2953 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2954 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2955 (elf32-sh-nbsd.lo): New rule.
2956 * Makefile.in: Regenerate.
2957 * config.bfd (sh*le-*-netbsdelf*): New target.
2958 (sh*-*-netbsdelf*): New target.
2959 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2960 (bfd_elf32_shnbsd_vec): New vector.
2961 (bfd_elf32_shlnbsd_vec): New vector.
2962 * configure: Regenerate.
2963 * elf32-sh-nbsd.c: New file.
2964 * targets.c: Update copyright years.
2965 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
2966 bfd_elf32_shnbsd_vec.
2967
2968 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
2969
2970 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2971
2972 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
2973
2974 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2975 of a symbol in a section that will be deleted.
2976
2977 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2978
2979 * po/es.po: New file: Spanish translation.
2980 * configure.in (ALL_LINGUAS): Add es.
2981 * configure: Regenerate.
2982
2983 2002-01-06 Steve Ellcey <sje@cup.hp.com>
2984
2985 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2986 argument so we can handle HP-UX specially.
2987 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2988 (elfNN_hpux_backend_section_from_bfd_section): New for support
2989 of SHN_IA_64_ANSI_COMMON.
2990 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2991 (is_unwind_section_name): Add special HP-UX support.
2992 (elfNN_ia64_section_from_shdr): Add support for more sections.
2993 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2994 add support for more sections.
2995 (elfNN_ia64_additional_program_headers): Modify
2996 is_unwind_section_name call.
2997 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2998 only one unwind section in segment.
2999
3000 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3001
3002 * syms.c (_bfd_generic_make_empty_symbol): New function.
3003 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3004 _bfd_generic_make_empty_symbol.
3005 * libbfd.h: Regenerate.
3006 * bfd-in2.h: Regenerate.
3007 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3008 (hppabsd_core_get_symtab_upper_bound): Don't define.
3009 (hppabsd_core_get_symtab): Likewise.
3010 (hppabsd_core_print_symbol): Likewise.
3011 (hppabsd_core_get_symbol_info): Likewise.
3012 (hppabsd_core_bfd_is_local_label_name): Likewise.
3013 (hppabsd_core_get_lineno): Likewise.
3014 (hppabsd_core_find_nearest_line): Likewise.
3015 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3016 (hppabsd_core_read_minisymbols): Likewise.
3017 (hppabsd_core_minisymbol_to_symbol): Likewise.
3018 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3019 Formatting fixes.
3020 * hpux-core.c: Similarly.
3021 * irix-core.c: Similarly.
3022 * osf-core.c: Similarly.
3023 * sco5-core.c: Similarly.
3024 * binary.c (binary_make_empty_symbol): Remove function, define as
3025 _bfd_generic_make_empty_symbol.
3026 * ihex.c (ihex_make_empty_symbol): Likewise.
3027 * mmo.c (mmo_make_empty_symbol): Likewise.
3028 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3029 * srec.c (srec_make_empty_symbol): Likewise.
3030 * versados.c (versados_make_empty_symbol): Likewise.
3031 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3032 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3033 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3034 rather than _bfd_vms_make_empty_symbol.
3035 * vms-misc.c (new_symbol): Likewise.
3036
3037 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3038
3039 * section.c (bfd_section_init): Remove unnecessary initialisations.
3040 (bfd_section_list_clear): New function.
3041 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3042 (_bfd_strip_section_from_output): Use them.
3043 * coffcode.h (coff_set_alignment_hook): Likewise.
3044 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3045 * elf64-mips.c (mips_elf64_final_link): Likewise.
3046 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3047 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3048 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3049 * bfd-in2.h: Regenerate.
3050
3051 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3052 rather than doing our own section handling. Clean up after errors
3053 with bfd_release and bfd_section_list_clear. Handle unexpected
3054 flags.
3055 * aoutf1.h (sunos4_core_file_p): Likewise.
3056 * aix386-core.c (aix386_core_file_p): Likewise.
3057 * cisco-core.c (cisco_core_file_validate): Likewise.
3058 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3059 * trad-core.c (trad_unix_core_file_p): Likewise.
3060
3061 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3062 with bfd_release and bfd_section_list_clear.
3063 * hpux-core.c (hpux_core_core_file_p): Likewise.
3064 * irix-core.c (irix_core_core_file_p): Likewise.
3065 * lynx-core.c (lynx_core_file_p): Likewise.
3066 * osf-core.c (osf_core_core_file_p): Likewise.
3067 * rs6000-core.c (rs6000coff_core_p): Likewise.
3068 * sco5-core.c (sco5_core_file_p): Likewise.
3069
3070 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3071 sign extension adjustments without conditionals.
3072
3073 2002-01-04 Jakub Jelinek <jakub@redhat.com>
3074
3075 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3076 CIE at .eh_frame start is removed due to no FDEs referencing it.
3077
3078 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3079
3080 * config.bfd (x86_64-*-netbsd*): New target.
3081 * configure.in (x86_64-*-netbsd*): Set COREFILE
3082 to netbsd-core.lo.
3083 * configure: Regenerated.
3084
3085 2002-01-03 Tom Rix <trix@redhat.com>
3086
3087 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3088 for recent bfd_make_section_anyway change.
3089
3090 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3091
3092 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3093 R_ARM_THM_PC11 reloc.
3094
3095 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3096
3097 * configure.in (LINGUAS): Add ja.
3098 * configure: Regenerate.
3099 * po/ja.po: Import from translation project's web site.
3100
3101 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3102
3103 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3104 messages to ease translation into other languages.
3105
3106 For older changes see ChangeLog-0001
3107 \f
3108 Local Variables:
3109 mode: change-log
3110 left-margin: 8
3111 fill-column: 74
3112 version-control: never
3113 End: