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