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