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