Fix check for overflow of relocation for the Thumb BL instruction.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2
3 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
4 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
5
6 2002-05-06 Alan Modra <amodra@bigpond.net.au>
7
8 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
9 when not relocatable. Fix reloc_emitter call for K&R.
10
11 2002-05-04 Alan Modra <amodra@bigpond.net.au>
12
13 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
14 reloading local sym addend mistakenly removed in 2002-05-01 change.
15
16 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
17 (read_abbrevs): Change "offset" param to bfd_vma.
18 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
19 Change "abbrev_offset" to bfd_vma.
20 (read_indirect_string): Use correct conversion chars in error
21 message format string, cast bfd_vma's to unsigned long.
22 (read_abbrevs): Likewise.
23 (read_attribute_value): Likewise.
24 (decode_line_info): Likewise.
25 (scan_unit_for_functions): Likewise.
26 (parse_comp_unit): Likewise.
27
28 2002-05-04 Tom Rix <trix@redhat.com>
29
30 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
31 (coff_swap_reloc_out): Same.
32 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
33 (xcoff_swap_reloc_out): Same.
34 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
35 case some 16 bit relocs. Add reloc value to output.
36 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
37 R_RBR. Improve names.
38 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
39 (bfd_xcoff_backend_data): Update with new reloc swap names.
40 (bfd_pmac_xcoff_backend_data) : Same.
41 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
42 (xcoff64_swap_reloc_out): Same.
43 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
44 R_POS. Add reloc value to output.
45 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
46 bit R_RBR. Improve names, masks.
47 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
48 (bfd_xcoff_backend_data): Update with new reloc swap names.
49 (bfd_xcoff_aix5_backend_data) : Same.
50
51 2002-05-04 Alan Modra <amodra@bigpond.net.au>
52
53 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
54 bfd_count top_index, input_list, all_local_syms.
55 (elf32_hppa_setup_section_lists): New function, split from
56 elf32_hppa_size_stubs.
57 (elf32_hppa_next_input_section): Likewise.
58 (group_sections): Likewise.
59 (get_local_syms): Likewise.
60 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
61 stubs on undefined syms too.
62 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
63 Only access htab elf fields when we have and elf hash table.
64 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
65 (elf32_hppa_next_input_section): Declare.
66
67 2002-05-04 Bob Byrnes <byrnes@curl.com>
68
69 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
70 _bfd_new_bfd.
71
72 2002-05-03 H.J. Lu (hjl@gnu.org)
73
74 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
75 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
76 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
77 to hide a global symbol.
78 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
79 forced_local to true.
80
81 2002-05-02 Richard Henderson <rth@redhat.com>
82
83 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
84 vs SHN_UNDEF to zero.
85
86 2002-05-02 Alan Modra <amodra@bigpond.net.au>
87
88 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
89 16 bit reloc.
90 <R_PPC64_SECTOFF_DS>: Likewise.
91 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
92 SECTOFF reloc.
93 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
94 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
95 SECTOFF reloc.
96
97 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
98 (ppc64_elf_ha_reloc): New function.
99 (ppc64_elf_brtaken_reloc): New function.
100 (ppc64_elf_sectoff_reloc): New function.
101 (ppc64_elf_sectoff_ha_reloc): New function.
102 (ppc64_elf_toc_reloc): New function.
103 (ppc64_elf_toc_ha_reloc): New function.
104 (ppc64_elf_toc64_reloc): New function.
105 (ppc64_elf_unhandled_reloc): New function.
106 (ppc64_elf_howto_raw): Use the above.
107 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
108 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
109 <R_PPC64_SECTOFF_DS>: Likewise.
110 (IS_ABSOLUTE_RELOC): Update.
111 (struct ppc_link_hash_table): Add have_undefweak.
112 (ppc64_elf_link_hash_table_create): Init.
113 (func_desc_adjust): Set have_undefweak.
114 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
115 add the .sfpr blr when have_undefweak.
116 (ppc64_elf_setup_section_lists): Check hash table flavour.
117 (ppc64_elf_next_input_section): Move output_section->owner test to
118 ppc64elf.em.
119 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
120 and relocatable test. Return TOCstart and don't set elf_gp.
121 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
122 offset calculation. Add assert on weak sym branch tweaks.
123 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
124 (ppc64_elf_toc): Declare.
125 (ppc64_elf_next_input_section): Update.
126
127 2002-05-01 Alan Modra <amodra@bigpond.net.au>
128
129 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
130 file_name.
131
132 2002-05-01 Alan Modra <amodra@bigpond.net.au>
133
134 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
135 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
136 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
137 call branches. Correct undefined weak destination.
138 (ppc64_elf_func_desc_adjust): Always create at least one blr in
139 .sfpr, and correct case where either only savef* or restf* is
140 needed.
141
142 Long branch stubs, multiple stub sections.
143 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
144 (ppc64_elf_next_input_section): Declare.
145 * elf64-ppc.c: Move linker-only prototypes.
146 (STUB_SUFFIX): Define.
147 (enum ppc_stub_type): New.
148 (struct ppc_stub_hash_entry): New.
149 (struct ppc_branch_hash_entry): New.
150 (struct ppc_link_hash_entry): Add stub_cache, oh.
151 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
152 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
153 Rename plt_overflow to stub_error.
154 (ppc_stub_hash_lookup): Define.
155 (ppc_branch_hash_lookup): Define.
156 (stub_hash_newfunc): New function.
157 (branch_hash_newfunc): New function.
158 (link_hash_newfunc): Init new fields.
159 (ppc64_elf_link_hash_table_create): Likewise.
160 (ppc64_elf_link_hash_table_free): New function.
161 (ppc_stub_name): New function.
162 (ppc_get_stub_entry): New function.
163 (ppc_add_stub): New function.
164 (create_linkage_sections): Use bfd_make_section_anyway. Create
165 .branch_lt and .rela.branch_lt sections. Don't create .stub.
166 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
167 and set up for plt call stubs. Link func and func desc syms.
168 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
169 (func_desc_adjust): Avoid hash lookup when func desc sym available
170 via shortcut, and set links when processing.
171 (ppc64_elf_hide_symbol): Likewise.
172 (allocate_dynrelocs): Don't allocate stub section here.
173 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
174 Remove sstub code.
175 (ppc_type_of_stub): New function.
176 (build_one_stub): Delete.
177 (ppc_build_one_stub): New function.
178 (ppc_size_one_stub): New function.
179 (ppc64_elf_setup_section_lists): New function.
180 (ppc64_elf_next_input_section): New function.
181 (group_sections): New function.
182 (get_local_syms): New function.
183 (ppc64_elf_size_stubs): Rewrite.
184 (ppc64_elf_build_stubs): Rewrite.
185 (ppc64_elf_relocate_section): Look up stub entry for REL24
186 relocs. Don't propagate REL14* to dynamic objects. Look for long
187 branch stubs if REL14* or REL24 relocs won't reach.
188 (bfd_elf64_bfd_link_hash_table_free): Define.
189
190 2002-04-30 Mark Mitchell <mark@codesourcery.com>
191
192 * bfd/config.bfd: Add support for powerpc-*-windiss.
193
194 2002-04-30 Tom Rix <trix@redhat.com>
195
196 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
197 symbol names into the hash table.
198
199 2002-04-28 Tom Rix <trix@redhat.com>
200
201 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
202 calulating relocations.
203 (xcoff_complain_overflow) : Function table for relocation errors.
204 (xcoff_ppc_relocate_section): Use relocation and complain function
205 tables.
206 (xcoff_complain_overflow_unsigned_func): New complain function.
207 (xcoff_complain_overflow_signed_func): Same.
208 (xcoff_complain_overflow_bitfield_func): Same.
209 (xcoff_complain_overflow_dont_func): Same.
210 (xcoff_reloc_type_crel): New recot function.
211 (xcoff_reloc_type_br): Same.
212 (xcoff_reloc_type_ba): Same.
213 (xcoff_reloc_type_toc): Same.
214 (xcoff_reloc_type_rel): Same.
215 (xcoff_reloc_type_neg): Same.
216 (xcoff_reloc_type_pos): Same.
217 (xcoff_reloc_type_fail): Same.
218 (xcoff_reloc_type_noop): Same.
219 * libxcoff.h : Declare common parts for xcoff64.
220 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
221 and complain function tables.
222
223 2002-04-28 Alan Modra <amodra@bigpond.net.au>
224
225 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
226 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
227
228 2002-04-26 Alan Modra <amodra@bigpond.net.au>
229
230 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
231 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
232
233 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
234 same as the output before calling elf_link_input_bfd.
235
236 * coffcode.h (coff_compute_section_file_positions): Set
237 section_tail after shuffling section list.
238
239 2002-04-24 Christian Groessler <chris@groessler.org>
240
241 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
242 addresses are 23bit with a special layout, not plain 32bit
243 values. Prevent relocation of immediate values.
244
245 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
246
247 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
248 MIPS-16 ASE flags are set, print something to indicate that.
249
250 2002-04-23 Alan Modra <amodra@bigpond.net.au>
251
252 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
253 under which a plt call stub is used.
254 (final_link_relocate): Similarly.
255 (allocate_plt_static): Clear h-plabel except when plt entry is
256 exclusively used for a plabel.
257 (allocate_dynrelocs): Use the above to simplify plt sizing.
258 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
259 (elf32_hppa_link_hash_table_create): Init.
260 (BL22_RP): Define.
261 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
262 (elf32_hppa_check_relocs): Set has_22bit_branch.
263
264 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
265 (final_link_relocate): Likewise.
266
267 2002-04-22 Jakub Jelinek <jakub@redhat.com>
268
269 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
270 search table if some FDE is DW_EH_PE_aligned encoded either.
271 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
272
273 2002-04-22 Richard Smith <richard@ex-parrot.com>
274 Jakub Jelinek <jakub@redhat.com>
275
276 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
277 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
278 encoded personality.
279 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
280 for CIE/FDE removal.
281
282 2002-04-20 Tom Rix <trix@redhat.com>
283
284 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
285
286 2002-04-20 Alan Modra <amodra@bigpond.net.au>
287
288 * archures.c (bfd_lookup_arch): Move the list order comment..
289 (struct bfd_arch_info): ..to where it belongs.
290 * bfd-in2.h: Regenerate.
291
292 * archures.c (bfd_lookup_arch): Add comment on list order.
293 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
294 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
295 is always at head of list.
296
297 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
298
299 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
300 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
301 definition of these functions for ARM_WINCE builds as they are
302 not used.
303 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
304 for ARM_WINCE builds.
305
306 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
307
308 * coff-arm.c (bfd_arm_process_before_allocation):
309
310 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
311
312 * cpu-sh.c (scan_mach): Delete.
313 (arch_info_struct): Replace scan_mach with bfd_default_scan.
314 (bfd_sh_arch): Likewise.
315
316 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
317
318 * ihex.c (ihex_write_object_contents): Fix check for records
319 crossing 64K boundaries.
320
321 2002-04-16 Alan Modra <amodra@bigpond.net.au>
322
323 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
324 type rather than just assuming entries are ELF.
325 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
326 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
327 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
328 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
329 rather than elf_link_hash_entry.
330
331 2002-04-15 Richard Henderson <rth@redhat.com>
332
333 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
334 n32 binaries.
335
336 2002-04-15 Michael Snyder <msnyder@redhat.com>
337
338 * opncls.c (bfd_close): Write contents if writeable.
339 Minor formatting tidy-ups.
340
341 2002-04-15 Alan Modra <amodra@bigpond.net.au>
342
343 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
344
345 2002-04-12 Michael Snyder <msnyder@redhat.com>
346
347 * bfd-in.h (bfd_get_section_lma): New access macro.
348 Minor white-space fix-up.
349
350 2002-04-12 Alan Modra <amodra@bigpond.net.au>
351
352 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
353 header pad.
354
355 2002-04-09 DJ Delorie <dj@redhat.com>
356
357 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
358
359 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
360
361 * coffcode.h (coff_read_word): New.
362 (coff_compute_checksum): New.
363 (coff_apply_checksum): New.
364 (coff_write_object_contents): Call coff_apply_checksum () to
365 apply checksum to PE image.
366
367 2002-04-08 Randolph Chung <tausq@debian.org>
368
369 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
370 (elf32_hppa_final_link): Split out sorting logic to..
371 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
372 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
373
374 2002-04-07 Andrew Cagney <ac131313@redhat.com>
375
376 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
377 pattern.
378 * configure: Re-generate.
379
380 2002-04-07 Andrew Cagney <ac131313@redhat.com>
381
382 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
383 is greater or equal to 4.3.3.
384 * configure: Regenerate.
385 Fix PR gdb/344.
386
387 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
388
389 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
390 R_CRIS_32_PCREL>: Fix typo in name.
391 (cris_elf_check_relocs): Always create .rela.got here when
392 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
393 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
394 assume it's created.
395
396 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
397
398 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
399 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
400 define.
401 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
402 * bfd.c (bfd_link_hash_table_free): Define.
403 * binary.c (binary_bfd_link_hash_table_free): Define.
404 * bout.c (b_out_bfd_link_hash_table_free): Define.
405 * coff-rs6000.c (rs6000coff_vec): Include
406 _bfd_generic_link_hash_table_free.
407 (pmac_xcoff_vec): Likewise.
408 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
409 (aix5coff64_vec): Likewise.
410 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
411 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
412 (bfd_elf32_bfd_link_hash_table_free): Define.
413 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
414 (bfd_elf32_bfd_link_hash_table_free): Define.
415 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
416 define.
417 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
418 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
419 * ieee.c (ieee_bfd_link_hash_table_free): Define.
420 * ihex.c (ihex_bfd_link_hash_table_free): Define.
421 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
422 (_bfd_generic_link_hash_table_free): Add prototype.
423 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
424 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
425 * linker.c (_bfd_generic_link_hash_table_free): New function.
426 * mmo.c (mmo_bfd_link_hash_table_free): Define.
427 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
428 * oasys.c (oasys_bfd_link_hash_table_free): Define.
429 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
430 * som.c (som_bfd_link_hash_table_free): Define.
431 * srec.c (srec_bfd_link_hash_table_free): Define.
432 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
433 * versados.c (versados_bfd_link_hash_table_free): Define.
434 * vms.c (vms_bfd_link_hash_table_free): New function.
435 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
436
437 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
438 instead of bfd_alloc.
439 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
440 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
441 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
442 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
443 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
444 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
445 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
446 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
447 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
448 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
449 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
450 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
451 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
452 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
453 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
454 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
455 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
456 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
457 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
458 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
459 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
460 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
461 * m68klinux.c (linux_link_hash_table_create): Likewise.
462 * sparclinux.c (linux_link_hash_table_create): Likewise.
463 * sunos.c (sunos_link_hash_table_create): Likewise.
464 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
465
466 * targets.c: Add _bfd_link_hash_table_free to xvec.
467
468 * bfd-in2.h: Regenerate.
469 * libbfd.h: Regenerate.
470 * libcoff.h: Regenerate.
471
472 2002-04-04 Alan Modra <amodra@bigpond.net.au>
473
474 * dep-in.sed: Cope with absolute paths.
475 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
476 Run "make dep-am".
477 * Makefile.in: Regenerate.
478 * coff-arm.c: Fix copyright date.
479 * cpu-h8300.c: Likewise.
480 * cpu-i370.c: Likewise.
481 * cpu-s390.c: Likewise.
482 * cpu-mips.c: Likewise.
483 * po/SRC-POTFILES.in: Regenerate.
484
485 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
486
487 * Makefile.am: Add elfxx-mips.c to the known backends.
488 (elf32-mips.lo): remove dependency to coff/external.h.
489 * Makefile.in: Regenerate.
490 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
491 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
492 accordingly.
493 * configure: Regenerate.
494 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
495 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
496 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
497 MIPS specific backend functions.
498 * elf32-mips.c: Moved most code to elfxx-mips.c.
499 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
500 static.
501 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
502 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
503 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
504 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
505 interface to allow selection of the right REL or RELA howto table.
506 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
507 static. Let it refuse n32 objects.
508 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
509 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
510 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
511 (elf32_mips_ignore_discarded_relocs): Rename from
512 _bfd_elf32_mips_ignore_discarded_relocs.
513 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
514 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
515 (elf_mips_howto_table_rela): Remove.
516 * elf64-mips.c: Moved most code to elfxx-mips.c.
517 (bfd_elf64_bfd_reloc_type_lookup): Make static.
518 (mips_elf64_rtype_to_howto): New function.
519 (mips_elf64_object_p): Likewise.
520 (elf64_mips_irix_compat): Likewise.
521 * elfxx-mips.c: New file containing common code merged together from
522 elf32-mips.c and elf64-mips.c.
523 * elfxx-mips.h: New file containing MIPS specific prototypes from
524 elf-bfd.h.
525 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
526 elf_backend_mips_rtype_to_howto.
527
528 2002-04-04 Alan Modra <amodra@bigpond.net.au>
529
530 * srec.c (MAXCHUNK, Chunk): Revise comments.
531 (srec_write_record): Correct buffer size.
532 (srec_write_header): Do without intermediate buffer.
533 (srec_write_section): Validate Chunk.
534 (srec_write_terminator): Pass NULL instead of dummy buffer.
535 (srec_write_symbols): Pass file and symbol names directly to
536 bfd_bwrite so sprintf won't overflow buffer.
537
538 2002-04-03 Jakub Jelinek <jakub@redhat.com>
539
540 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
541 PC relative relocs against hidden symbols.
542 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
543
544 2002-04-03 Alan Modra <amodra@bigpond.net.au>
545
546 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
547 LMAs, loop over segments until p_vaddr and p_memsz specify an
548 extent enclosing the section.
549
550 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
551
552 * ihex.c (ihex_write_object_contents): Do not allow records to
553 cross a 64K boundary - wrap if necessary.
554
555 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
556
557 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
558 which caused the returned LWP ID to always be 0.
559
560 2002-04-01 Richard Henderson <rth@redhat.com>
561
562 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
563 (elf32_sparc_relocate_section): Use it to figure out when to
564 initialize .got entries.
565 * elf64-sparc.c: Similarly.
566
567 2002-03-28 Alan Modra <amodra@bigpond.net.au>
568
569 * linker.c (link_action): Ignore duplicate warning syms.
570 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
571 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
572 (elf_adjust_dynamic_symbol): Likewise.
573 (elf_export_symbol): Likewise.
574 (elf_link_find_version_dependencies): Likewise.
575 (elf_link_assign_sym_version): Likewise.
576 (elf_link_sec_merge_syms): Likewise.
577 (elf_link_output_extsym): Likewise.
578 (elf_gc_sweep_symbol): Likewise.
579 (elf_gc_propagate_vtable_entries_used): Likewise.
580 (elf_gc_smash_unused_vtentry_relocs): Likewise.
581 (elf_gc_allocate_got_offsets): Likewise.
582 (elf_collect_hash_codes): Likewise.
583 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
584 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
585 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
586 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
587 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
588 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
589 (elf_cris_discard_excess_dso_dynamics): Likewise.
590 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
591 (mark_PIC_calls): Likewise.
592 (allocate_plt_static): Likewise.
593 (allocate_dynrelocs): Likewise.
594 (readonly_dynrelocs): Likewise.
595 * elf32-i386.c (allocate_dynrelocs): Likewise.
596 (readonly_dynrelocs): Likewise.
597 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
598 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
599 * elf32-mips.c (mips_elf_output_extsym): Likewise.
600 (mips_elf_sort_hash_table_f): Likewise.
601 (mips_elf_check_mips16_stubs): Likewise.
602 * elf32-s390.c (allocate_dynrelocs): Likewise.
603 (readonly_dynrelocs): Likewise.
604 * elf32-sh.c (sh_elf_discard_copies): Likewise.
605 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
606 (xstormy16_relax_plt_realloc): Likewise.
607 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
608 (elf64_alpha_output_extsym): Likewise.
609 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
610 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
611 (mips_elf64_check_mips16_stubs): Likewise.
612 (mips_elf64_output_extsym): Likewise.
613 * elf64-ppc.c (func_desc_adjust): Likewise.
614 (allocate_dynrelocs): Likewise.
615 (readonly_dynrelocs): Likewise.
616 * elf64-s390.c (allocate_dynrelocs): Likewise.
617 (readonly_dynrelocs): Likewise.
618 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
619 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
620 (readonly_dynrelocs): Likewise.
621 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
622 * aoutx.h (aout_link_write_other_symbol): Likewise.
623 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
624 (_bfd_coff_write_global_sym): Likewise.
625 * i386linux.c (linux_tally_symbols): Likewise.
626 * m68klinux.c (linux_tally_symbols): Likewise.
627 * sparclinux.c (linux_tally_symbols): Likewise.
628 * pdp11.c (aout_link_write_other_symbol): Likewise.
629 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
630 * xcofflink.c (xcoff_build_ldsyms): Likewise.
631 (xcoff_write_global_symbol): Likewise.
632
633 * cofflink.c (_bfd_coff_final_link): Formatting.
634 * cpu-mips.c (mips_compatible): Make static, prototype.
635 * elf32-i386.c (elf_i386_check_relocs): Formatting.
636 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
637 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
638 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
639 (mips_elf64_final_link): Likewise.
640 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
641 prototype.
642
643 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
644
645 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
646 (SWAP_OUT_RELOC_OFFSET): Define.
647
648 2002-03-27 Gregory Steuck <greg@nest.cx>
649
650 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
651 terminating NULL if empty symbol table.
652 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
653
654 2002-03-26 H.J. Lu (hjl@gnu.org)
655
656 * elflink.h (elf_link_input_bfd): Revert the last change since
657 the gcc exception handling isn't fixed yet.
658
659 2002-03-26 H.J. Lu (hjl@gnu.org)
660
661 * elflink.h (elf_link_input_bfd): Complain about relocations
662 against local symbols in discarded sections.
663
664 2002-03-26 Alan Modra <amodra@bigpond.net.au>
665
666 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
667
668 2002-03-23 Alan Modra <amodra@bigpond.net.au>
669
670 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
671 section file offset for !SEC_LOAD sections.
672
673 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
674
675 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
676 <case R_ARM_GOT>): Handle relocations to Thumb functions.
677
678 2002-03-21 Alan Modra <amodra@bigpond.net.au>
679
680 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
681 Whitespace changes.
682 * archive.c: Update copyright date.
683 * bfd-in2.h: Regenerate.
684 * libbfd.h: Regenerate.
685 * Makefile.am: Run "make dep-am"
686 * Makefile.in: Regenerate.
687 * po/SRC-POTFILES.in: Regenerate.
688
689 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
690
691 * dwarf2.c (struct funcinfo): Move up.
692 (lookup_address_in_function_table): New argument function_ptr.
693 Set it.
694 (lookup_address_in_line_table): New argument function. If function
695 is non-NULL, use it to handle ``addr'' before the first line note of
696 the function.
697 (comp_unit_find_nearest_line): Update and swap calls to
698 lookup_address_in_function_table and lookup_address_in_line_table.
699 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
700 N_SLINE encountered if we see an N_FUN before any N_SLINE.
701
702 2002-03-20 Tom Rix <trix@redhat.com>
703
704 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
705 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
706 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
707
708 2002-03-19 Tom Rix <trix@redhat.com>
709
710 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
711 dynamic objects in archives.
712
713 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
714
715 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
716 STT_NOTYPE symbols to STT_OBJECT.
717
718 2002-03-18 Jan Hubicka <jh@suse.cz>
719
720 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
721
722 2002-03-18 Tom Rix <trix@redhat.com>
723
724 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
725 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
726 * coff-rs6000 (do_pad) : New function for archive padding.
727 (do_copy) : New function for object file copying in archives.
728 (do_shared_object_padding) : New function for padding shared
729 objects to their text section alignment in archives.
730 (bfd_xcoff_ar_achive_set_magic) : Stub.
731 (xcoff_write_armap_big) : Use do_copy and do_pad.
732 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
733 do_copy and do_pad.
734 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
735 bfd_xcoff_magic_number.
736 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
737 fop.
738 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
739 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
740 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
741 * rs6000-core.c : Update copyright date.
742 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
743 csectpp.
744 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
745 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
746 (coff_set_flags) : Use bfd_xcoff_magic_number.
747 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
748 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
749 * Makefile.am : Same.
750 * config.bfd : Same.
751 * targets.c : Same.
752 * configure : Regnerate.
753 * Makefile.in : Same.
754 * bfd-in2.h : Same.
755
756 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
757
758 * po/fr.po: Updated version.
759
760 2002-03-18 Alan Modra <amodra@bigpond.net.au>
761
762 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
763 * libbfd.h: Regenerate.
764 * archive.c (coff_write_armap): Pass on failures from
765 bfd_write_bigendian_4byte_int.
766
767 2002-03-14 H.J. Lu <hjl@gnu.org>
768
769 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
770 error to bfd_error_nonrepresentable_section for reinit_array
771 section in DSO.
772
773 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
774
775 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
776 OR it in rather than replacing previously selected flags.
777
778 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
779 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
780
781 2002-03-14 Alan Modra <amodra@bigpond.net.au>
782
783 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
784 (N): Use the above.
785 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
786 ensure reloc size matches before calling elf_link_input_bfd.
787 Add an assert to check reloc size when counting output relocs.
788
789 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
790
791 * mmo.c (mmo_get_loc): Return NULL rather than false.
792
793 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
794
795 * po/fr.po: Updated version.
796
797 2002-03-13 Alan Modra <amodra@bigpond.net.au>
798
799 * archures.c (bfd_default_compatible): Test bits_per_word.
800 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
801 bfd_default_compatible.
802 * cpu-i370.c (i370_compatible): Likewise.
803 * cpu-sparc.c (sparc_compatible): Likewise.
804 * cpu-h8300.c (compatible): Test in->arch == out->arch.
805
806 * elflink.h: Formatting fixes.
807 (elf_link_output_extsym): Merge undefined and undef weak cases.
808
809 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
810 when word size of input matches output word size.
811
812 2002-03-12 Andreas Jaeger <aj@suse.de>
813
814 * cpu-i386.c (i386_compatible): New. Use it instead of
815 bfd_default_compatible.
816
817 2002-03-07 H.J. Lu (hjl@gnu.org)
818
819 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
820 as the type for bfd_reloc_val.
821
822 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
823
824 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
825 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
826 (elf_hppa_final_link_relocate): Correct relocations for indirect
827 references to local data through the DLT. Fix .opd creation for
828 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
829 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
830 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
831 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
832 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
833 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
834 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
835
836 2002-03-05 Jakub Jelinek <jakub@redhat.com>
837
838 * merge.c (_bfd_merge_sections): Don't segfault if there
839 is nothing to merge due to GC.
840
841 2002-03-05 Alan Modra <amodra@bigpond.net.au>
842
843 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
844 symbols that have been forced local.
845
846 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
847 to output forced local syms for non-shared link.
848 (elf_link_output_extsym): Tweak condition for calling backend
849 adjust_dynamic_symbol so that previous behaviour is kept.
850 Whitespace changes throughout file.
851
852 2002-03-04 H.J. Lu <hjl@gnu.org>
853
854 * elf.c (bfd_section_from_shdr): Handle special sections,
855 .init_array, .fini_array and .preinit_array.
856 (elf_fake_sections): Likewise.
857
858 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
859 DT entry only if the section is in output for .init_array,
860 .fini_array and .preinit_array. Complain about .preinit_array
861 section in DSO.
862 (elf_bfd_final_link): Warn zero size for .init_array,
863 .fini_array and .preinit_array sections.
864
865 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
866 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
867 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
868 .preinit_array.
869
870 2002-03-04 Alan Modra <amodra@bigpond.net.au>
871
872 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
873 * configure: Regenerate.
874
875 2002-03-02 Tom Rix <trix@redhat.com>
876
877 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
878 symbolic equiv.
879 * coff-rs6000.c (xcoff_howto_table): Same.
880
881 2002-03-01 David Mosberger <davidm@hpl.hp.com>
882
883 * elflink.h (size_dynamic_sections): If section named
884 ".preinit_array" exists, create DT_PREINIT_ARRAY and
885 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
886 ".init_array" and ".fini_array".
887 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
888 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
889 DT_FINI_ARRAY.
890
891 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
892
893 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
894 dynsyms.
895
896 2002-02-25 Alan Modra <amodra@bigpond.net.au>
897
898 * elf64-hppa.h: Update copyright date.
899
900 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
901 (ppc64_elf_relocate_section): Don't generate power4 style branch
902 hints for *_BRTAKEN and *_BRNTAKEN relocs.
903
904 2002-02-22 Jakub Jelinek <jakub@redhat.com>
905
906 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
907 last patch.
908 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
909
910 2002-02-21 Andreas Jaeger <aj@suse.de>
911
912 * elf64-x86-64.c: Major rework that introduces all recent changes
913 to the x86-64 backend. Get a closer match to elf32-i386.
914 (struct elf64_x86_64_dyn_relocs): Rename from
915 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
916 all users.
917 (struct elf64_x86_64_link_hash_table): Add short cuts to some
918 sections.
919 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
920 remove casts, initialize new hash members.
921 (create_got_section): New.
922 (elf64_x86_64_create_dynamic_sections): New.
923 (elf64_x86_64_copy_indirect_symbol): New.
924 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
925 relocs, .got or .relgot here but do it in allocate_dynrelocs.
926 Reference count possible .plt and .got entries. Don't test input
927 section SEC_READONLY here to try to avoid copy relocs, and keep
928 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
929 DF_TEXTREL here. Delay setting of variables until needed. Cache
930 pointer to "sreloc" section in elf_section_data. Tweak condition
931 under which .got created. Report files with bad relocation
932 section names.
933 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
934 Reference count possible .plt entries. Don't deallocate .got and
935 .relgot space here.
936 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
937 do copy reloc processing for weakdefs. Remove redundant casts and
938 aborts. Delay setting of vars until needed. Move creation of
939 dynamic symbols and allocation of .plt and .rela.plt to
940 allocate_dynrelocs. Replace BFD_ASSERT with abort.
941 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
942 (allocate_dynrelocs): New.
943 (readonly_dynrelocs): New.
944 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
945 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
946 Zero out the dynamic allocated content space.
947 (elf64_x86_64_discard_copies): Removed.
948 (elf64_x86_64_relocate_section): Make use of dynamic section
949 short-cuts. Localise vars, and delay setting. Better error
950 reporting, replace BFD_ASSERT with abort. Check
951 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
952 regular object file and tread the weak definition as the normal
953 one. Don't discard relocs for undefweak or undefined symbols and
954 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
955 relocs.
956 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
957 symbols that have been forced local. Use same test to decide if
958 we can use a relative reloc for got as relocate_section. Expand
959 SHN_UNDEF comment. Move expressions out of function calls.
960 Replace BFD_ASSERT with abort.
961 (bfd_elf64_bfd_final_link): Removed.
962 (elf_backend_copy_indirect_symbol): Define.
963
964 2002-02-20 Tom Rix <trix@redhat.com>
965
966 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
967 (_bfd_xcoff_reloc_type_lookup): Use it.
968 * coff64-rs6000.c (xcoff64_howto_table): Same.
969 (xcoff64_reloc_type_lookup): Same.
970
971 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
972
973 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
974 little endian.
975
976 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
977
978 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
979 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
980 * bfd-in2.h: Regenerate.
981 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
982 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
983 with "s390:64-bit".
984 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
985 (elf_s390_reloc_type_lookup): Likewise.
986 (elf_s390_check_relocs): Likewise.
987 (elf_s390_gc_sweep_hook): Likewise.
988 (elf_s390_relocate_section): Likewise.
989 (elf_s390_object_p): Use renamed architecture define.
990 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
991
992 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
993
994 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
995
996 2002-02-19 Jakub Jelinek <jakub@redhat.com>
997
998 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
999 absptr -> pcrel optimization for shared libs.
1000 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1001 library cannot be converted to pcrel.
1002 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1003 relative.
1004 * elf32-i386.c (elf_i386_relocate_section): If
1005 _bfd_elf_section_offset returned -2, skip, but make sure the
1006 relocation is installed.
1007 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1008 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1009 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1010 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1011 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1012 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1013 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1014 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1015 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1016 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1017 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1018 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1019 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1020 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1021 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1022 _bfd_elf_section_offset returning -2 the same way as -1.
1023 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1024 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1025 and BFD_ASSERT.
1026 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1027
1028 2002-02-18 Tom Rix <trix@redhat.com>
1029
1030 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1031 (bfd_xcoff_size_dynamic_sections): Same.
1032 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1033 (bfd_xcoff_size_dynamic_sections): Same.
1034 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1035 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1036 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1037 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1038 * bfd-in2.h: Regenerate.
1039
1040 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1041
1042 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1043 (struct ppc_link_hash_table): Add sfpr.
1044 (ppc64_elf_link_hash_table_create): Init it.
1045 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1046 .glink out to..
1047 (create_linkage_sections): ..here. Make .sfpr too.
1048 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1049 dynobj early.
1050 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1051 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1052 ._restf* functions, and create as needed.
1053 (func_desc_adjust): Only force_local for shared libs.
1054
1055 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1056
1057 * configure.in: Bump version number post 2.12 branching.
1058 * configure: Regenerate.
1059
1060 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1061
1062 * mmo.c: Correct and improve comments.
1063 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1064 zero-pad. Use input to fill up non-empty bfd buffer.
1065 (mmo_flush_chunk): New function.
1066 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1067 changed. Don't emit location specifier if VMA is same as
1068 *LAST_VMAP after omitting leading zero contents. Call
1069 mmo_flush_chunk before emitting location specifier.
1070 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1071 with mmo_write_loc_chunk calls.
1072 (mmo_internal_write_section): Call mmo_flush_chunk after
1073 mmo_write_chunk.
1074 (mmo_write_symbols_and_terminator): Move :Main to first position
1075 in symbol array. Add faked one if it does not exist if there are
1076 other symbols. Don't add it if there are no symbols at all. Move
1077 out test for value of :Main from symbol loop. Rename table
1078 fakemain to maintable and variable mainsym to fakemain.
1079
1080 2002-02-15 Richard Henderson <rth@redhat.com>
1081
1082 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1083 section with no got matches any got. Simplify error generaion.
1084
1085 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1086
1087 Support arbitrary length fill patterns.
1088 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1089 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1090 Call default_data_link_order.
1091 (default_fill_link_order): Delete.
1092 (default_data_link_order): New function.
1093 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1094 of bfd_fill_link_order with bfd_data_link_order.
1095 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1096 * elf64-mips.c (mips_elf64_final_link): Likewise.
1097
1098 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1099 Correct value returned in "end" for "0x<non-hex>".
1100
1101 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1102
1103 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1104 (scan): Test against 'mach' field in info structure.
1105
1106 2002-02-14 Alan Modra <amodra@bigpond.net.au>
1107
1108 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1109
1110 2002-02-14 Matt Fredette <fredette@netbsd.org>
1111
1112 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1113 EF_M68000.
1114
1115 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1116
1117 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
1118 non-zero physical addresses when adjusting the LMAs of new
1119 sections.
1120
1121 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1122
1123 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1124 from _bfd_elf_hppa_gen_reloc_type.
1125 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1126 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1127 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1128 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1129
1130 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1131
1132 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1133 loading its contents if there's nothing to do in it.
1134
1135 2002-02-12 Alan Modra <amodra@bigpond.net.au>
1136
1137 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1138 64k boundary.
1139
1140 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1141 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1142 (ppc64_elf_finish_dynamic_sections): Set values for them.
1143
1144 2002-02-11 Michael Snyder <msnyder@redhat.com>
1145
1146 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1147 * elf.c (elfcore_grok_pstatus): Add prototype.
1148 (elfcore_grok_lwpstatus): Add prototype.
1149 (elfcore_write_lwpstatus): New function.
1150 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1151
1152 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1153
1154 * elf32-sh.c: Added missing prototypes.
1155 * elf32-sh64.c: Likewise.
1156 (sh_elf_align_loads): Mark unused args as such.
1157 * elf64-sh64.c: Added missing prototypes.
1158 (struct elf_sh64_link_hash_entry): Fix typo.
1159 (sh_elf64_relocate_section): Fix info argument passed to
1160 _bfd_elf_section_offset.
1161
1162 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1163
1164 * Makefile.am: "make dep-am".
1165 * Makefile.in: Regenerate.
1166 * aclocal.m4: Regenerate.
1167 * config.in: Regenerate.
1168 * configure: Regenerate.
1169
1170 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1171
1172 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1173 variable warnings.
1174 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1175 comparison warning.
1176 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1177 cast warnings for the common case.
1178
1179 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1180
1181 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1182 vectors.
1183 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1184 vectors.
1185
1186 2002-02-09 Richard Henderson <rth@redhat.com>
1187
1188 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1189 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1190 (elf64_alpha_relocate_section): Likewise.
1191 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1192 * bfd-in2.h, libbfd.h: Rebuild.
1193
1194 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1195
1196 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1197 that base-plus-offset reloc accounting is consistent.
1198 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1199 up to date for undefined symbols.
1200
1201 2002-02-08 Eric Christopher <echristo@redhat.com>
1202
1203 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1204
1205 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1206 sections for the O32 ABI.
1207
1208 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1209
1210 * elf32-arm.h: Fix formatting of _("...").
1211 * elf32-d10v.c: Likewise.
1212 * elf32-m68k.c: Likewise.
1213 * elf32-mips.c: Likewise.
1214
1215 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1216
1217 * coff-or32.c: Fix compile time warning messages.
1218
1219 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1220
1221 Contribute sh64-elf.
1222 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1223 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1224 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1225 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1226 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1227 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1228 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1229 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1230 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1231 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1232 New relocs.
1233 * libbfd.h, bfd-in2.h: Rebuilt.
1234 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1235 (sh_reloc_map): Map them.
1236 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1237 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1238 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1239 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1240 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1241 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1242 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1243 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1244 datalabel_got_offset.
1245 (sh_elf_link_hash_newfunc): Initialize it.
1246 (sh_elf_relocate_section): Augment the scope of
1247 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1248 GOT and GOTOFF handling to new SHmedia relocation types. Support
1249 GOT_BIAS.
1250 (sh_elf_check_relocs): Likewise.
1251 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1252 PLT entries using movi_shori_putval. Support GOT_BIAS.
1253 (sh_elf_finish_dynamic_sections): Likewise.
1254 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1255 relocation, it's now done by the caller.
1256 (GOT_BIAS): New.
1257 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1258 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1259 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1260 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1261 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1262 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1263 sh64_elf64_hash_table): New.
1264 (sh_elf64_howto_table): Introduce new relocs.
1265 (sh_elf64_info_to_howto): Accept new PIC relocs.
1266 (sh_elf64_relocate_section): Augment the scope of
1267 seen_stt_datalabel. Support new PIC relocs.
1268 (sh_elf64_check_relocs): Support new PIC relocs.
1269 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1270 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1271 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1272 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1273 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1274 movi_shori_putval, movi_3shori_putval,
1275 sh64_elf64_create_dynamic_sections,
1276 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1277 sh64_elf64_size_dynamic_sections,
1278 sh64_elf64_finish_dynamic_symbol,
1279 sh64_elf64_finish_dynamic_sections): New.
1280 (elf_backend_create_dynamic-sections,
1281 bfd_elf64_bfd_link_hash_table_create,
1282 elf_backend_adjust_dynamic_symbol,
1283 elf_backend_size_dynamic_sections,
1284 elf_backend_finish_dynamic_symbol,
1285 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1286 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1287 elf_backend_got_header_size, elf_backend_plt_header_size):
1288 Define.
1289 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1290 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1291 match official numbers and names; moved unmaching ones to the
1292 range 0xf2-0xff.
1293 * elf32-sh64.c, elf64-sh64.c: Likewise.
1294 2001-03-12 DJ Delorie <dj@redhat.com>
1295 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1296 sections.
1297 2001-03-12 DJ Delorie <dj@redhat.com>
1298 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1299 be aligned.
1300 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1301 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1302 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1303 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1304 .cranges section with SEC_SORT_ENTRIES set.
1305 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1306 incoming sorted .cranges section.
1307 (sh64_bfd_elf_copy_private_section_data): New.
1308 (sh64_elf_final_write_processing): Only sort .cranges and modify
1309 start address if called by linker.
1310 2001-01-08 Ben Elliston <bje@redhat.com>
1311 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1312 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1313 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1314 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1315 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1316 line. Add comments before all entries.
1317 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1318 comment.
1319 (sh_elf64_reloc): Correct head comment.
1320 (sh_elf64_relocate_section): Correct spacing.
1321 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1322 instead call reloc_dangerous callback.
1323 <case R_SH_SHMEDIA_CODE>: New case.
1324 (sh_elf64_gc_mark_hook): Correct spacing.
1325 (sh_elf64_check_relocs): Ditto.
1326 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1327 New case.
1328 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1329 functions.
1330 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1331 clarify describing comment. Add comments before all entries.
1332 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1333 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1334 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1335 Sort .cranges section in final link. Prepare to set bit 0 on
1336 entry address.
1337 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1338 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1339 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1340 .cranges section.
1341 (sh64_backend_section_from_shdr): New, to recognize
1342 SHT_SH5_CR_SORTED on incoming .cranges section.
1343 (elf_backend_section_from_shdr): Define.
1344 (sh64_elf_final_write_processing): Sort outgoing .cranges
1345 section. (New, temporarily disabled:) Set bit 0 on entry address
1346 according to ISA type.
1347 (sh64_find_section_for_address): New.
1348 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1349 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1350 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1351 bfd_malloc, not xmalloc.
1352 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1353 global.
1354 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1355 temporarily disabled) setting bit 0 on entry address.
1356 (elf_backend_final_write_processing): Define.
1357 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1358 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1359 be a proper relocation for PTA and PTB rather than a marker.
1360 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1361 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1362 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1363 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1364 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1365 Zero src_mask.
1366 * elf64-sh64.c: Ditto.
1367 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1368 * elf32-sh64.c: Include opcodes/sh64-opc.h
1369 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1370 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1371 parameters. No unused parameters. Caller changed.
1372 <case R_SH_PT_16>: New case.
1373 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1374 * Makefile.in: Regenerate.
1375 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1376 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1377 all code sections.
1378 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1379 (sh64_elf_merge_private_data): Ditto.
1380 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1381 to access stored section flags.
1382 (sh64_elf_final_write_processing): Return immediately unless
1383 called by linker. Use sh64_elf_section_data (cranges) to get size
1384 of linker-generated cranges entries.
1385 (sh64_elf_copy_private_data): Add missing "return true".
1386 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1387 (sh_elf64_merge_private_data): Ditto.
1388 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1389 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1390 elf64-sh64.c:sh64_elf_fake_sections.
1391 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1392 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1393 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1394 (sh64_elf_final_write_processing): New.
1395 (elf_backend_final_write_processing): Define.
1396 (sh64_elf_fake_sections): Get header flags from tdata field.
1397 (sh64_elf_copy_private_data): Do not call
1398 sh64_elf_copy_private_data_internal, just copy e_flags field.
1399 (sh64_elf_merge_private_data): Do not call
1400 sh64_elf_copy_private_data_internal.
1401 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1402 Remove EF_SH64_ABI64, let ELF size make difference.
1403 Remove SH64-specific BFD section flag.
1404 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1405 containing SHmedia through elf_section_data (asect)->tdata
1406 non-zero, not using a BFD section flag.
1407 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1408 (sh64_elf_merge_private_data): Similar.
1409 (elf_backend_section_flags): Don't define.
1410 (sh64_elf_backend_section_flags): Delete.
1411 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1412 not EF_SH64_ABI64.
1413 (sh_elf64_merge_private_data): Similar.
1414 * section.c (Section flags definitions): Don't define
1415 SEC_SH_ISA_SHMEDIA.
1416 (bfd-in2.h): Regenerate.
1417 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1418 Make DataLabel references work with partial linking.
1419 * elf32-sh64.c: Fix formatting.
1420 (sh64_elf_link_output_symbol_hook): New.
1421 (elf_backend_link_output_symbol_hook): Define to
1422 sh64_elf_link_output_symbol_hook.
1423 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1424 undefined if partial linking. Adjust sanity check.
1425 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1426 (elf_backend_link_output_symbol_hook): Define to
1427 sh64_elf64_link_output_symbol_hook.
1428 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1429 undefined if partial linking. Adjust sanity check.
1430 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1431 Implement semantics for inter-file DataLabel references.
1432 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1433 (sh64_elf64_add_symbol_hook): New.
1434 (sh_elf64_relocate_section): If passing an indirect symbol with
1435 st_type STT_DATALABEL on the way to a symbol with st_other
1436 STO_SH5_ISA32, do not bitor 1 to the relocation.
1437 (elf_backend_add_symbol_hook): Define to
1438 sh64_elf64_add_symbol_hook.
1439 * elf64-sh32.c: Tweak comments.
1440 (DATALABEL_SUFFIX): Define.
1441 (sh64_elf_add_symbol_hook): New.
1442 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1443 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1444 symbol with st_type STT_DATALABEL on the way to a symbol with
1445 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1446 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1447 Pass through STT_DATALABEL.
1448 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1449 (elf_backend_get_symbol_type): Define.
1450 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1451 (elf_backend_get_symbol_type): Define.
1452 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1453 * elf32-sh64.c: Tweak comments.
1454 (sh64_elf_copy_private_data_internal): Add prototype.
1455 (bfd_elf32_bfd_set_private_flags): Define.
1456 (sh64_elf_copy_private_data_internal): Compare machine name, not
1457 textual BFD target name, to check whether to copy section flag
1458 SHF_SH5_ISA32.
1459 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1460 Tweak section-contents-type-mismatch message.
1461 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1462 Validize reloc-types.
1463 * elf64-sh64.c: New file.
1464 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1465 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1466 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1467 Regenerate dependencies.
1468 * Makefile.in: Regenerate.
1469 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1470 bfd_elf64_sh64l_vec.
1471 * configure.in: Handle bfd_elf64_sh64_vec and
1472 bfd_elf64_sh64l_vec.
1473 * configure: Regenerate.
1474 * po/POTFILES.in: Regenerate.
1475 * po/bfd.pot: Regenerate.
1476 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1477 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1478 anything else but EF_SH64 and EF_SH64_ABI64.
1479 (sh64_elf_merge_private_data): Emit error for anything else but
1480 EF_SH64 and EF_SH64_ABI64.
1481 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1482 from targ_selvecs.
1483 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1484 bfd_elf32_sh64l_vec as a temporary measure.
1485 * configure: Regenerate.
1486 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1487 * cpu-sh.c (arch_info_struct): Include sh5 item
1488 unconditionalized.
1489 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1490 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1491 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1492 * elf32-sh64.c: Tweak comments.
1493 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1494 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1495 (sh64_elf_copy_private_data_internal): Wrap long line.
1496 (sh64_elf_merge_private_data): Rewrite to allow objects from
1497 SH64 subsets to be linked together.
1498 (INCLUDE_SHMEDIA): Define.
1499 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1500 Parenthesize plus-expression inside or-expression.
1501 <global symbol>: Ditto.
1502 (sh_elf_set_mach_from_flags): Remove code refusing
1503 deleted EF_SH64_32BIT_ABI flag.
1504 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1505 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1506 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1507 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1508 (sh_elf_relocate_section) <local symbol>: Or 1 in
1509 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1510 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1511 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1512 relocation.
1513 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1514 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1515 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1516 Regenerate dependencies.
1517 * Makefile.in: Regenerate.
1518 * archures.c: Add bfd_mach_sh5.
1519 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1520 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1521 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1522 * configure: Regenerate.
1523 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1524 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1525 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1526 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1527 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1528 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1529 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1530 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1531 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1532 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1533 in item for SH5.
1534 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1535 for SHmedia relocs.
1536 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1537 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1538 shmedia_prepare_reloc, goto final_link_relocate if it returns
1539 non-zero, else fail as before.
1540 (sh_elf_set_mach_from_flags): Provide function only if not defined
1541 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1542 (sh_elf_set_private_flags): Provide function only if not defined
1543 as a macro.
1544 (sh_elf_copy_private_data): Similar.
1545 (sh_elf_merge_private_data): Similar.
1546 * section.c (SEC_SH_ISA_SHMEDIA): New.
1547 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1548 * elf32-sh64.c: New file.
1549 * libbfd.h: Regenerate.
1550 * bfd-in2.h: Regenerate.
1551 * po/POTFILES.in: Regenerate.
1552 * po/bfd.pot: Regenerate.
1553 * bfd-in2.h: Regenerate.
1554 * libbfd.h: Regenerate.
1555
1556 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
1557
1558 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1559 been included, not drag it in.
1560 * bfd-in2.h: Regenerate.
1561
1562 2002-02-06 H.J. Lu (hjl@gnu.org)
1563
1564 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1565 the mach and ISA fields if necessary.
1566
1567 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1568
1569 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1570 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1571 be sure exactly which architecture this represents.
1572
1573 2002-02-05 Nick Clifton <nickc@redhat.com>
1574
1575 * po/tr.po: Updated translation.
1576
1577 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1578
1579 From Jimi X <jimix@watson.ibm.com>
1580 * archures (bfd_mach_ppc64): Define.
1581 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1582 (bfd_powerpc_arch): Define.
1583 * bfd-in2.h: Regenerate.
1584 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1585 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1586 (bfd_powerpc_archs): Add default powerpc64 arch.
1587
1588 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1589
1590 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1591 against section syms in readonly sections. Don't do the global
1592 sym check if we find one.
1593 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1594 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1595 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1596 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1597 (elf_s390_grok_prstatus): Add missing prototype.
1598
1599 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1600
1601 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1602 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1603 Call bfd_get_section_by_name only once. Initialize
1604 bpodata->n_bpo_relocs_this_section.
1605 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1606 referring to DSOs.
1607 (bpo_reloc_request_sort_fn): Don't use difference of values as
1608 return-value.
1609
1610 2002-02-02 David O'Brien <obrien@FreeBSD>
1611
1612 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1613 version 4.5 and later the same as 5-CURRENT.
1614 * configure: Re-generate.
1615
1616 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1617
1618 * config.bfd (hppa*-*-netbsd*): New target.
1619
1620 2002-01-31 Philipp Thomas <pthomas@suse.de>
1621
1622 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1623 to front of message. Unify messages with elf32-arm.h. Use
1624 commas where neccessary.
1625 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1626 ERROR in messages. Unify messages with coff-arm.c. Correct
1627 VFP/FPA error message.
1628 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1629 APCS-32 for translation.
1630
1631 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1632
1633 Perform on-demand global register allocation from
1634 R_MMIX_BASE_PLUS_OFFSET relocs.
1635 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1636 bpo_reloc_request, struct bpo_greg_section_info): New.
1637 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1638 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1639 _bfd_mmix_check_all_relocs,
1640 _bfd_mmix_prepare_linker_allocated_gregs,
1641 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1642 (elf_mmix_howto_table): Correct src_mask for most relocs.
1643 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1644 case.
1645 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1646 case. Fix typo in comment. New label do_mmix_reloc.
1647 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1648 store first object file with a base-plus-offset reloc. Call
1649 mmix_elf_check_common_relocs for the part common with mmo.
1650 (mmix_elf_final_link): Write out linker-allocated register
1651 contents section.
1652 (elf_backend_gc_sweep_hook): Define.
1653 (bfd_elf64_bfd_relax_section): Define.
1654
1655 * mmo.c: Don't include <ctype.h>
1656 (mmo_init): Correct init-once logic.
1657
1658 2002-02-01 Tom Rix <trix@redhat.com>
1659
1660 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1661
1662 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1663
1664 * Makefile.am: Run "make dep-am"
1665 * Makefile.in: Regenerate.
1666
1667 2002-01-31 David O'Brien <obrien@FreeBSD>
1668
1669 * configure.in: Recognize the differences in core files from FreeBSD
1670 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1671 5-CURRENT.
1672 * configure: Regenerate.
1673
1674 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1675
1676 * coff-or32.c: New file.
1677 * cpu-or32.c: New file.
1678 * elf32-or32.c: New file.
1679 * archures.c: Add support for or32.
1680 * targets.c: Add support for or32.
1681 * bfd-in2.h: Regenerate.
1682 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
1683 coff_write_object_contents): Add support for or32.
1684 * config.bfd: Add target.
1685 * configure.in: Add support for or32.
1686 * configure: Regenerate.
1687 * Makefile.am: Add support for or32.
1688 * Makefile.in: Regenerate.
1689 * po/SRC-POTFILES.in: Add or32 files.
1690 * po/bfd.pot: Regenerate.
1691
1692 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1693 Don Lindsay <lindsayd@cisco.com>
1694
1695 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1696 false' with a return of a bfd_reloc_ error code.
1697
1698 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
1699
1700 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1701 unexport unreferenced symbols when --export-dynamic. Call
1702 _bfd_elf_strtab_delref when unexporting.
1703
1704 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1705
1706 * bfd-in.h: Include <stdbool.h> if it is available.
1707 * bfd-in2.h: Regenerated.
1708
1709 2002-01-31 Alan Modra <amodra@bigpond.net.au>
1710
1711 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1712 not go via the plt.
1713
1714 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1715
1716 * archures.c: Tidy up formatting of embedded comments.
1717 * bfd.c: Tidy up formatting of embedded comments.
1718 * bfd-in.h: Fix formatting of comments.
1719 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1720 * section.c: Tidy up formatting of embedded comments.
1721 * syms.c: Tidy up formatting of embedded comments.
1722 * targets.c: Tidy up formatting of embedded comments.
1723
1724 * bfd-in2.h: Regenerate.
1725
1726 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1727
1728 * vms-tir.c (cmd_name): New function.
1729 (tir_cmd_name): New function.
1730 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1731 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1732 Fix formatting.
1733
1734 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1735 translation.
1736 (pe_print_pdata): Rearrange message to aid in translation.
1737
1738 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1739 translation.
1740
1741 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1742
1743 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1744
1745 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1746 message to aid in translation.
1747
1748 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1749 to aid in translation.
1750
1751 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1752
1753 2002-01-30 Philipp Thomas <pthomas@suse.de>
1754
1755 * coff-arm.c, elf32-elf.h: Unify messages.
1756
1757 2002-01-30 Nick Clifton <nickc@redhat.com>
1758
1759 * po/sv.po: Updated translation.
1760
1761 2002-01-30 Philipp Thomas <pthomas@suse.de>
1762
1763 * dwarf2.c (read_abbrev): Use full section name in error message.
1764 (decode_line_info): Likewise.
1765
1766 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1767 message.
1768
1769 2002-01-30 Alan Modra <amodra@bigpond.net.au>
1770
1771 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1772 descriptor symbols for undefined function code syms. Clear
1773 ELF_LINK_NON_ELF so that they can stay weak.
1774
1775 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1776 Mitch Lichtenberg <mpl@broadcom.com>
1777
1778 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1779 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1780 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1781 generation.
1782 * bfd-in2.h: Regenerate.
1783
1784 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1785
1786 * elf32-mips.c: Add additional comments about HI16 relocation
1787 processing.
1788 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1789 pc-relative relocations. (Reverts change made on 2001-10-31.)
1790 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1791 for pc-relative relocations.
1792 (mips_elf_calculate_relocation): Add a comment about a kludge
1793 in the R_MIPS_GNU_REL_HI16 handling.
1794 (_bfd_mips_elf_relocate_section): Implement that kludge;
1795 adjust pc-relative HI16 relocation for difference in HI16 and
1796 LO16 addresses, since it can't easily be done in
1797 mips_elf_calculate_relocation.
1798
1799 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1800
1801 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1802 relocations with PC32 relocations for undefined or weak symbols.
1803 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1804 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1805
1806 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1807
1808 * elfcore.h (elf_core_file_p): Improve comment for last change.
1809
1810 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1811
1812 * configure: Regenerated.
1813
1814 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1815
1816 * elfcore.h (elf_core_file_p): Set the machine architecture
1817 before processing the program headers.
1818
1819 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1820
1821 * configure.in <64-bit configuration>: If using gcc, check and
1822 emit error for egcs-1.1.2.
1823 * configure: Regenerate.
1824
1825 2002-01-26 Egor Duda <deo@logos-m.ru>
1826
1827 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1828 as possible to avoid stack corruption.
1829
1830 2002-01-26 Richard Henderson <rth@redhat.com>
1831
1832 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1833 for non-allocated sections.
1834
1835 2002-01-25 Mark Kettenis <kettenis@gnu.org>
1836
1837 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1838 prstat.pr_reg even if it is a struct.
1839
1840 2002-01-25 Steve Ellcey <sje@cup.hp.com>
1841
1842 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1843
1844 2002-01-25 Philipp Thomas <pthomas@suse.de>
1845
1846 * coffgen.c (coff_print_symbol): Don't mark info message
1847 for translation.
1848
1849 2002-01-25 Nick Clifton <nickc@redhat.com>
1850
1851 * po/fr.po: Updated translation.
1852 * po/es.po: Updated translation.
1853
1854 2002-01-25 Philipp Thomas <pthomas@suse.de>
1855
1856 * coff-alpha.c (alpha_relocate_section): Unify warning message
1857 for GP relative relocations without GP defined.
1858 * coff-mips.c (mips_relocate_section): Likewise.
1859
1860 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1861
1862 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1863 unsigned overflow when new_offset < old_offset.
1864
1865 2002-01-24 Philipp Thomas <pthomas@suse.de>
1866
1867 * bfd.c (_bfd_abort): Fix typo.
1868
1869 2002-01-23 Richard Henderson <rth@redhat.com>
1870
1871 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1872 plt entries for undefweak symbols.
1873
1874 2002-01-23 Steve Ellcey <sje@cup.hp.com>
1875
1876 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1877 DEFAULT_VECTOR.
1878 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1879 (bfd_elf32_h8300_vec): Ditto.
1880
1881 2002-01-23 Alan Modra <amodra@bigpond.net.au>
1882
1883 * elf64-ppc.c: Remove stale part of ABI comment.
1884 (NO_OPD_RELOCS): Define.
1885 (ppc64_elf_check_relocs): Use it.
1886 (ppc64_elf_relocate_section): Here too.
1887 (build_one_stub): Don't point function syms at the stub. Instead,
1888 hijack plt.offset.
1889 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1890 really go to the stub. Make all dynamic relocs in opd against
1891 locals.
1892 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1893 plt.offset.
1894
1895 2002-01-22 Richard Henderson <rth@redhat.com>
1896
1897 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1898
1899 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1900
1901 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1902 TOC_BASE_OFF adjustment.
1903
1904 * Makefile.am: Run "make dep-am".
1905 * Makefile.in: Regenerate.
1906 * po/SRC-POTFILES.in: Regenerate.
1907
1908 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1909
1910 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1911 host defines.
1912
1913 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
1914
1915 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1916 Check for and emit error if sgot is NULL at this point.
1917
1918 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1919
1920 * config.bfd (ia64*-*-netbsd*): New target.
1921
1922 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1923
1924 * som.c (som_write_space_strings): Comment typo fix.
1925
1926 2002-01-21 Alan Modra <amodra@bigpond.net.au>
1927
1928 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1929 is_func_descriptor fields.
1930 (link_hash_newfunc): Init them.
1931 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1932 dot are candidates for plt entries. When processing .opd relocs,
1933 set function descriptor strings to point inside function code
1934 string, and set new ppc_link_hash_entry fields.
1935 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1936 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1937 function descriptors. It's now done in..
1938 (func_desc_adjust): New.
1939 (ppc64_elf_func_desc_adjust): New.
1940 (define elf_backend_always_size_sections): Define.
1941 (ppc64_elf_hide_symbol): New.
1942 (define elf_backend_hide_symbol): Define.
1943 (allocate_dynrelocs): Remove code looking up function descriptors
1944 as that has been done earlier.
1945 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1946 table.
1947 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1948 up function descriptor.
1949 (build_one_stub): Look up the function code sym. Check for
1950 invalid plt offsets.
1951 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1952 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1953
1954 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1955 boolean param.
1956 (_bfd_elf_link_hash_hide_symbol): Likewise.
1957 * elflink.h (elf_link_add_object_symbols): Adjust call to
1958 elf_backend_hide_symbol.
1959 (elf_fix_symbol_flags): Likewise.
1960 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1961 than bfd_alloc.
1962 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1963 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1964 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1965 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1966 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1967 and adjust to suit.
1968 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1969 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1970 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1971
1972 2002-01-18 Alan Modra <amodra@bigpond.net.au>
1973
1974 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1975 dynamic function descriptor symbol, not the associated function
1976 symbol.
1977
1978 2002-01-17 Eric Christopher <echristo@redhat.com>
1979
1980 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1981
1982 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1983
1984 * po/bfd.pot: Regenerate.
1985 * po/fr.po: Regenerate.
1986
1987 2002-01-17 Alan Modra <amodra@bigpond.net.au>
1988
1989 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1990 Remove "Elf_Internal_Shdr *" param.
1991 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1992 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1993 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1994 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1995 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1996 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1997 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1998 function to override special sections. Remove hdr arg from
1999 backend call, and don't loop.
2000
2001 2002-01-16 Eric Christopher <echristo@redhat.com>
2002
2003 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2004 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2005 relocations requiring gp0 and gp.
2006
2007 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
2008
2009 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
2010 EF_ARM_VFP_FLOAT.
2011 (elf32_arm_print_private_bfd_data): Likewise.
2012
2013 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2014
2015 * po/tr.po: Import new version.
2016
2017 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2018
2019 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2020 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2021 (ORI_R0_R0_0): Correct.
2022
2023 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2024
2025 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2026 when plt_not_loaded.
2027 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2028 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2029 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2030 (ppc64_elf_glink_code): Delete.
2031 (PPC64_ELF_GLINK_SIZE): Delete.
2032 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2033 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2034 ORI_R0_R0_0): Define.
2035 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2036 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2037 (ppc64_elf_link_hash_table_create): Init them.
2038 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2039 Don't copy to shared lib.
2040 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2041 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2042 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2043 room for .stub and .glink code.
2044 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2045 DT_PPC64_GLINK.
2046 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2047 bfd_elf64_bfd_final_link.
2048 (bfd_elf64_bfd_final_link): Don't define.
2049 (ppc64_elf_size_stubs): New.
2050 (build_plt_stub): New.
2051 (build_one_stub): New.
2052 (ppc64_elf_build_stubs): New.
2053 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2054 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2055 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2056 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2057 case output sections not separate. Adjust DT_RELASZ to not
2058 include plt relocs. Set reserved got entry. Set got and plt
2059 entry size.
2060 (elf_backend_got_header_size): Set to 8.
2061 * elf64-ppc.h: New file.
2062
2063 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2064
2065 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2066 sections, use bfd_section_list_remove.
2067 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2068 * elflink.h (elf_link_add_object_symbols): When removing all
2069 sections, use bfd_section_list_clear.
2070
2071 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2072
2073 * po/sv.po: New file: Swedish translation.
2074 * configure.in (ALL_LINGUAS): Add sv.
2075 * configure: Regenerate.
2076
2077 2002-01-15 Jakub Jelinek <jakub@redhat.com>
2078
2079 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2080 * elf.c (merge_sections_remove_hook): New function.
2081 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2082 _bfd_merge_sections.
2083 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2084 * libbfd.h: Rebuilt.
2085 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2086 Call remove_hook if a SEC_EXCLUDE section is encountered.
2087
2088 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2089
2090 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2091 (xstormy16_reloc_map): Initialise new field with correct howto
2092 table.
2093 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2094 howto entry.
2095
2096 2002-01-10 Michael Snyder <msnyder@redhat.com>
2097
2098 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2099 (elfcore_write_pstatus): Use long instead of pid_t;
2100 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2101
2102 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
2103
2104 * elf.c: Update copyright years.
2105 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2106 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2107
2108 2002-01-08 Michael Snyder <msnyder@redhat.com>
2109
2110 Add capability to write corefile note sections, for gdb.
2111 * elf.c (elfcore_write_note): New function.
2112 (elfcore_write_prpsinfo): New function.
2113 (elfcore_write_prstatus): New function.
2114 (elfcore_write_pstatus): New function.
2115 (elfcore_write_prfpreg): New function.
2116 (elfcore_write_prxfpreg): New function.
2117 * elf-bfd.h: Add prototypes for above functions.
2118
2119 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2120
2121 * elf.c (elf_fake_sections): Propagate errors from
2122 elf_backend_fake_section.
2123
2124 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2125
2126 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2127 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2128 (elf32-sh-nbsd.lo): New rule.
2129 * Makefile.in: Regenerate.
2130 * config.bfd (sh*le-*-netbsdelf*): New target.
2131 (sh*-*-netbsdelf*): New target.
2132 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2133 (bfd_elf32_shnbsd_vec): New vector.
2134 (bfd_elf32_shlnbsd_vec): New vector.
2135 * configure: Regenerate.
2136 * elf32-sh-nbsd.c: New file.
2137 * targets.c: Update copyright years.
2138 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
2139 bfd_elf32_shnbsd_vec.
2140
2141 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
2142
2143 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2144
2145 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
2146
2147 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2148 of a symbol in a section that will be deleted.
2149
2150 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2151
2152 * po/es.po: New file: Spanish translation.
2153 * configure.in (ALL_LINGUAS): Add es.
2154 * configure: Regenerate.
2155
2156 2002-01-06 Steve Ellcey <sje@cup.hp.com>
2157
2158 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2159 argument so we can handle HP-UX specially.
2160 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2161 (elfNN_hpux_backend_section_from_bfd_section): New for support
2162 of SHN_IA_64_ANSI_COMMON.
2163 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2164 (is_unwind_section_name): Add special HP-UX support.
2165 (elfNN_ia64_section_from_shdr): Add support for more sections.
2166 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2167 add support for more sections.
2168 (elfNN_ia64_additional_program_headers): Modify
2169 is_unwind_section_name call.
2170 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2171 only one unwind section in segment.
2172
2173 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2174
2175 * syms.c (_bfd_generic_make_empty_symbol): New function.
2176 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2177 _bfd_generic_make_empty_symbol.
2178 * libbfd.h: Regenerate.
2179 * bfd-in2.h: Regenerate.
2180 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2181 (hppabsd_core_get_symtab_upper_bound): Don't define.
2182 (hppabsd_core_get_symtab): Likewise.
2183 (hppabsd_core_print_symbol): Likewise.
2184 (hppabsd_core_get_symbol_info): Likewise.
2185 (hppabsd_core_bfd_is_local_label_name): Likewise.
2186 (hppabsd_core_get_lineno): Likewise.
2187 (hppabsd_core_find_nearest_line): Likewise.
2188 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2189 (hppabsd_core_read_minisymbols): Likewise.
2190 (hppabsd_core_minisymbol_to_symbol): Likewise.
2191 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2192 Formatting fixes.
2193 * hpux-core.c: Similarly.
2194 * irix-core.c: Similarly.
2195 * osf-core.c: Similarly.
2196 * sco5-core.c: Similarly.
2197 * binary.c (binary_make_empty_symbol): Remove function, define as
2198 _bfd_generic_make_empty_symbol.
2199 * ihex.c (ihex_make_empty_symbol): Likewise.
2200 * mmo.c (mmo_make_empty_symbol): Likewise.
2201 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2202 * srec.c (srec_make_empty_symbol): Likewise.
2203 * versados.c (versados_make_empty_symbol): Likewise.
2204 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2205 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2206 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2207 rather than _bfd_vms_make_empty_symbol.
2208 * vms-misc.c (new_symbol): Likewise.
2209
2210 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2211
2212 * section.c (bfd_section_init): Remove unnecessary initialisations.
2213 (bfd_section_list_clear): New function.
2214 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2215 (_bfd_strip_section_from_output): Use them.
2216 * coffcode.h (coff_set_alignment_hook): Likewise.
2217 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2218 * elf64-mips.c (mips_elf64_final_link): Likewise.
2219 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2220 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2221 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2222 * bfd-in2.h: Regenerate.
2223
2224 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2225 rather than doing our own section handling. Clean up after errors
2226 with bfd_release and bfd_section_list_clear. Handle unexpected
2227 flags.
2228 * aoutf1.h (sunos4_core_file_p): Likewise.
2229 * aix386-core.c (aix386_core_file_p): Likewise.
2230 * cisco-core.c (cisco_core_file_validate): Likewise.
2231 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2232 * trad-core.c (trad_unix_core_file_p): Likewise.
2233
2234 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2235 with bfd_release and bfd_section_list_clear.
2236 * hpux-core.c (hpux_core_core_file_p): Likewise.
2237 * irix-core.c (irix_core_core_file_p): Likewise.
2238 * lynx-core.c (lynx_core_file_p): Likewise.
2239 * osf-core.c (osf_core_core_file_p): Likewise.
2240 * rs6000-core.c (rs6000coff_core_p): Likewise.
2241 * sco5-core.c (sco5_core_file_p): Likewise.
2242
2243 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2244 sign extension adjustments without conditionals.
2245
2246 2002-01-04 Jakub Jelinek <jakub@redhat.com>
2247
2248 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2249 CIE at .eh_frame start is removed due to no FDEs referencing it.
2250
2251 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2252
2253 * config.bfd (x86_64-*-netbsd*): New target.
2254 * configure.in (x86_64-*-netbsd*): Set COREFILE
2255 to netbsd-core.lo.
2256 * configure: Regenerated.
2257
2258 2002-01-03 Tom Rix <trix@redhat.com>
2259
2260 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2261 for recent bfd_make_section_anyway change.
2262
2263 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2264
2265 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2266 R_ARM_THM_PC11 reloc.
2267
2268 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2269
2270 * configure.in (LINGUAS): Add ja.
2271 * configure: Regenerate.
2272 * po/ja.po: Import from translation project's web site.
2273
2274 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2275
2276 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2277 messages to ease translation into other languages.
2278
2279 For older changes see ChangeLog-0001
2280 \f
2281 Local Variables:
2282 mode: change-log
2283 left-margin: 8
2284 fill-column: 74
2285 version-control: never
2286 End:
This page took 0.074372 seconds and 5 git commands to generate.