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