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