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