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