Fix the behaviour of --allow-shlib-undefined, so that it does what it claims
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2003-02-17 Nick Clifton <nickc@redhat.com>
2
3 * elflink.h (elf_link_output_extsym): Only check
4 allow_shlib_undefined for shared libraries.
5 * elf32-i386.c (elf_i386_relocate_section): Remove bogus check
6 of allow_shlib_undefined.
7 * elf32-cris.c (cris_elf_relocate_section): Likewise.
8 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
9 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
10 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
11 * elf32-s390.c (elf_s390_relocate_section): Likewise.
12 * elf32-sh.c (sh_elf_relocate_section): Likewise.
13 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
14 * elf32-vax.c (elf_vax_relocate_section): Likewise.
15 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
16 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
17 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
18 * elf64-s390.c (elf_s390_relocate_section): Likewise.
19 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
20 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
21 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
22 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
23
24 2003-02-17 Nick Clifton <nickc@redhat.com>
25
26 * elf.c (SEGMENT_AFTER_SEGMENT): Add third parameter - the
27 address field to use in the comparison.
28 (SEGMENT_OVERLAPS): Check that LMAs overlap as well.
29
30 2003-02-14 Bob Wilson <bob.wilson@acm.org>
31
32 * elfcore.h (elf_core_file_p): Compare alternate machine codes for ELF
33 backends when checking if the generic ELF target should be used.
34
35 * syms.c (_bfd_stab_section_find_nearest_line): For line number stabs
36 outside of functions, treat values as absolute addresses.
37
38 * bfd.c: Change embedded documentation to use consistent indentation
39 and to split up long lines. Change informal style of description
40 for functions lacking real documentation.
41 * coffcode.h: Break up long lines in embedded documentation.
42 * format.c: Likewise.
43 * targets.c: Likewise.
44 * libcoff.h: Regenerate.
45 * bfd-in2.h: Regenerate.
46
47 2003-02-14 Alan Modra <amodra@bigpond.net.au>
48
49 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.
50 (ppc64_elf_copy_indirect_symbol): Merge tls_mask too.
51 (ppc64_elf_gc_sweep_hook): Simplify removal of dyn_relocs.
52 (allocate_dynrelocs): Don't treat undefined and undefweak specially.
53 (ppc_size_one_stub): Fix warning, and tighten plt entry check.
54 (group_sections): Don't share a stub section if stubs are for a large
55 section. Adjust comment.
56 (ppc64_elf_size_stubs): Roughly double the size left for stubs if
57 !stubs_always_before_branch.
58 (ppc64_elf_relocate_section): Initialize tlsld GOT entry once. Don't
59 treat undefined and undefweak specially when processing dyn relocs.
60
61 2003-02-13 Jakub Jelinek <jakub@redhat.com>
62
63 * elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO.
64
65 2003-02-13 Nick Clifton <nickc@redhat.com>
66
67 * elf32-arm.h (elf32_thumb_to_arm_stub): Include section VMAs
68 in computation of offset to insert into BL instruction.
69
70 2003-02-11 Uwe Stieber <uwe@wwws.de>
71
72 * config.bfd: Add support for kaOS as cross build target system.
73
74 2003-02-11 Alan Modra <amodra@bigpond.net.au>
75
76 * elf64-ppc.c (ppc64_elf_check_relocs): Match versioned
77 .__tls_get_addr too.
78 (ppc64_elf_tls_setup): Ensure cached tls_get_addr is not indirect.
79
80 2003-02-10 Kaz kojima <kkojima@rr.iij4u.or.jp>
81
82 * elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
83 (elf_sh_link_hash_entry): Remove tls_tpoff32 field.
84 (sh_elf_link_hash_newfunc): Remove the initialization of
85 tls_tpoff32 field.
86 (allocate_dynrelocs): Keep dyn_relocs if it includes the entry
87 for which tls_tpoff32 flag is set.
88 (sh_elf_relocate_section): Covert to LE only if the dyn_relocs
89 of the symbol includes the entry matched with the input_section
90 and having tls_tpoff32 flag on. When linking statically, set
91 symbol index of R_SH_TLS_TPOFF32 relocation to zero if the symbol
92 is defined in this executable.
93 (sh_elf_check_relocs): Set tls_tpoff32 flag appropriately.
94
95 2003-02-10 Jakub Jelinek <jakub@redhat.com>
96
97 * elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
98 even if there is just non-empty .rela.plt.
99
100 2003-02-10 Nick Clifton <nickc@redhat.com>
101
102 * archures.c (bfd_mach_arm_ep9312): Define.
103 * bfd-in2.h: Regenerate.
104 * cpu-arm.c (processors[]): Add ep9312.
105 (bfd_arm_arch): Add ep9312.
106 * elf32-arm.h (elf32_arm_merge_private_data): Update error
107 messages and add test for Maverick floating point support.
108 (elf32_arm_print_private_bfd_data): Handle
109 EF_ARM_MAVERICK_FLOAT flag.
110 (elf32_arm_object_p): New function.
111 (elf_backend_object_p): Define.
112
113 2003-02-10 Alan Modra <amodra@bigpond.net.au>
114
115 * elf64-ppc.c: Rename assorted occurrences of tls_type and similar
116 variables, structure fields or function params to tls_mask or
117 similar to better reflect usage.
118 (struct got_entry): Comment.
119 (struct ppc_link_hash_entry): Expand comment, and renumber TLS_*.
120 (get_tls_mask): Rename from get_tls_type.
121
122 2003-02-09 Alan Modra <amodra@bigpond.net.au>
123
124 * elf64-ppc.c (TLS_GD_LD): Don't define..
125 (TLS_GD): ..define this instead and update all uses.
126 (TLS_TPRELGD): Define.
127 (ppc64_elf_link_hash_table_create): Tweak initialization of
128 init_refcount and init_offset.
129 (ppc64_elf_check_relocs): Add one extra element to t_symndx array.
130 Mark second slot of GD or LD toc entries.
131 (get_tls_type): Return an int. Distinguish toc GD and LD entries
132 from other tls types.
133 (ppc64_elf_tls_setup): New function, split out from..
134 (ppc64_elf_tls_optimize): ..here. Don't optimize when symbols are
135 defined in a dynamic object. Fix LD optimization. Don't set TLS_TPREL
136 on GD->IE optimization, use TLS_TPRELGD instead. Use get_tls_type
137 return value to properly decide whether toc GD and LD entries can
138 optimize away __tls_get_addr call. Check next reloc after DTPMOD64
139 to determine GD or LD rather than looking at TLS_LD flag. Don't
140 attempt to adjust got entry tls_type here..
141 (allocate_dynrelocs): ..instead, adjust got entry tls_type here, and
142 look for possible merges.
143 (ppc64_elf_size_dynamic_sections): Adjust local got entries for
144 optimization.
145 (ppc64_elf_size_stubs): Tweak __tls_get_addr fudge.
146 (ppc64_elf_relocate_section): Rename some vars to better reflect usage.
147 Make use of return value from get_tls_type to properly detect GD and
148 LD optimizations. Split tlsld/gd hi/ha from lo/ds case. Don't
149 handle tls_get_addr removal when looking at REL24 relocs, do it when
150 looking at the previous reloc. Check reloc after DTPMOD64 to determine
151 GD or LD.
152 * elf64-ppc.h (ppc64_elf_tls_setup): Declare.
153
154 2003-02-08 Alan Modra <amodra@bigpond.net.au>
155
156 * elf32-hppa.c (group_sections): Don't share a stub section if
157 stubs are for a large section.
158
159 * elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
160 stubs if !stubs_always_before_branch.
161
162 2003-02-07 Nick Clifton <nickc@redhat.com>
163
164 * elf.c (swap_out_syms): Generate an error message if an
165 equivalent output section cannot be found for a symbol.
166
167 2003-02-07 Jakub Jelinek <jakub@redhat.com>
168
169 * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
170 local_got_entries is NULL.
171
172 2003-02-06 Andreas Schwab <schwab@suse.de>
173
174 * elf-eh-frame.c (get_DW_EH_PE_signed): Define.
175 (read_value): Add parameter is_signed, use signed extraction if
176 the value is signed.
177 (_bfd_elf_write_section_eh_frame): Pass signed flag of the
178 encoding to read_value.
179
180 2003-02-06 Alan Modra <amodra@bigpond.net.au>
181
182 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
183 plt info when called to transfer weak sym info.
184
185 2003-02-05 Alan Modra <amodra@bigpond.net.au>
186
187 * reloc.c: Add PPC and PPC64 TLS relocs.
188 * libbfd.h: Regenerate.
189 * bfd-in2.h: Regenerate.
190 * elf64-ppc.c (TP_OFFSET, DTP_OFFSET): Declare.
191 (ppc64_elf_howto_raw): Add TLS howto's. Adjust R_PPC64_NONE to be
192 against a 32 bit field.
193 (ppc64_elf_reloc_type_lookup): Handle TLS relocs.
194 (_ppc64_elf_section_data): Add t_symndx and comments.
195 (ppc64_elf_section_data): Use elf_section_data macro.
196 (ppc64_elf_new_section_hook): American spelling.
197 (struct got_entry, struct plt_entry): New.
198 (MUST_BE_DYN_RELOC): Rename from IS_ABSOLUTE_RELOC.
199 (struct ppc_stub_hash_entry): Add "addend" field.
200 (struct ppc_link_hash_entry): Add "tls_type".
201 (TLS_TLS, TLS_GD_LD, TLS_LD, TLS_TPREL, TLS_DTPREL,
202 TLS_EXPLICIT): Define.
203 (struct ppc_link_hash_table): Add tls_sec, tls_get_addr, tlsld_got.
204 (link_hash_newfunc): Init new fields.
205 (ppc64_elf_link_hash_table_create): Likewise. Set init_refcount and
206 init_offset to NULL.
207 (ppc64_elf_copy_indirect_symbol): Copy got and plt info. Don't call
208 _bfd_elf_link_hash_copy_indirect, rather insert relevant code from
209 there.
210 (update_local_sym_info, update_plt_info): New functions.
211 (ppc64_elf_check_relocs): Use them. Handle TLS relocs. Adjust GOT
212 handling to use got.glist rather than got.refcount. Likewise for PLT.
213 (ppc64_elf_gc_sweep_hook): Handle TLS relocs, new GOT and PLT lists.
214 (func_desc_adjust): Adjust for new PLT list.
215 (ppc64_elf_adjust_dynamic_symbol): Likewise.
216 (get_sym_h, get_tls_type): New functions.
217 (ppc64_elf_edit_opd): Remove unused variable. Use get_sym_h.
218 (ppc64_elf_tls_optimize): New function.
219 (allocate_dynrelocs): Adjust for new PLT and GOT lists. Allocate
220 TLS relocs.
221 (ppc64_elf_size_dynamic_sections): Likewise.
222 (ppc_type_of_stub): Adjust for new PLT list.
223 (ppc_build_one_stub): Likewise.
224 (ppc64_elf_size_stubs): Likewise. Use get_sym_h. Treat __tls_get_addr
225 calls specially.
226 (ppc64_elf_relocate_section): Adjust for new GOT and PLT lists. Handle
227 TLS relocs. Report local syms using bfd_elf_local_sym_name. Don't
228 init GOT entries that have a reloc. Generate GOT relocs here..
229 (ppc64_elf_finish_dynamic_symbol): ..not here. Adjust for PLT list.
230 * elf64-ppc.h (ppc64_elf_tls_optimize): Declare.
231
232 2003-02-04 Andreas Schwab <schwab@suse.de>
233
234 * elf32-m68k.c (elf_m68k_hash_entry): Define.
235 (elf_m68k_link_hash_traverse): Remove.
236 (elf_m68k_link_hash_newfunc): Use struct bfd_hash_entry and
237 elf_m68k_hash_entry instead of struct elf_m68k_link_hash_entry to
238 reduce casting.
239 (elf_m68k_check_relocs): Use elf_m68k_hash_entry instead of
240 casting.
241 (elf_m68k_size_dynamic_sections): Use elf_link_hash_traverse
242 instead of elf_m68k_link_hash_traverse.
243 (elf_m68k_discard_copies): Change first parameter to pointer to
244 struct elf_link_hash_entry and use elf_m68k_hash_entry when struct
245 elf_m68k_link_hash_entry is needed.
246
247 2003-02-04 Alan Modra <amodra@bigpond.net.au>
248
249 * elf-bfd.h (struct got_entry, struct plt_entry): Forward declare.
250 (struct elf_link_hash_entry): Add "glist" and "plist" fields to
251 "got" union, and declare as gotplt_union. Use gotplt_uinion for
252 "plt" field.
253 (struct elf_link_hash_table): Make "init_refcount" a gotplt_union.
254 Add "init_offset" field.
255 (struct elf_obj_tdata <local_got>): Add "struct got_entry **" to union.
256 (elf_local_got_ents): Declare.
257 * elf.c (_bfd_elf_link_hash_newfunc): Adjust initialization of "got"
258 and "plt".
259 (_bfd_elf_link_hash_hide_symbol): Use "init_offset".
260 (_bfd_elf_link_hash_table_init): Set "init_offset".
261 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set init_refcount
262 from init_offset.
263 (elf_adjust_dynamic_symbol): Set plt and got offsets using init_offset.
264
265 * elf.c (bfd_elf_local_sym_name): Split out from..
266 (group_signature): ..here.
267 * elf-bfd.h (bfd_elf_local_sym_name): Declare.
268
269 2003-02-04 Alan Modra <amodra@bigpond.net.au>
270
271 * elf-bfd.h (enum elf_link_info_type): Remove.
272 (struct bfd_elf_section_data): Move sec_info_type, use_rela_p fields
273 to struct sec. Remove linkonce_p field.
274 (elf_linkonce_p): Delete.
275 (elf_discarded_section): Update for sec_info_type change.
276 * section.c (struct sec): Add sec_info_type, use_rela_p, has_tls_reloc,
277 flag11, flag12, flag13, flag14, flag15, flag16, flag20, flag24.
278 (ELF_INFO_TYPE_NONE): Define.
279 (ELF_INFO_TYPE_STABS): Define.
280 (ELF_INFO_TYPE_MERGE): Define.
281 (ELF_INFO_TYPE_EH_FRAME): Define.
282 (ELF_INFO_TYPE_JUST_SYMS): Define.
283 (STD_SECTION): Update struct sec initializer.
284 * ecoff.c (bfd_debug_section): Likewise.
285 * elf.c: Likewise. Update occurrences of sec_info_type and use_rela_p.
286 * elflink.h: Likewise.
287 * elf-eh-frame.c: Likewise.
288 * elf64-alpha.c: Likewise.
289 * elfxx-ia64.c: Likewise.
290 * elfxx-mips.c: Likewise.
291 * bfd-in2.h: Regenerate.
292
293 * elf32-sparc.c (sec_do_relax): Use elf_section_data macro rather than
294 referring to used_by_bfd.
295 * elf64-sparc.c (sec_do_relax): Likewise.
296 * elf64-mmix.c (mmix_elf_section_data): Likewise.
297 * elfxx-mips.c (mips_elf_section_data): Likewise.
298 * ieee.c (ieee_slurp_section_data): Use ieee_per_section macro.
299 (ieee_get_section_contents): Likewise.
300 (ieee_new_section_hook): Formatting.
301 (ieee_canonicalize_reloc): Remove commented out code.
302 * mmo.c (mmo_section_data): Define. Use throughout file.
303 * oasys.c (oasys_get_section_contents): Use oasys_per_section macro.
304
305 2003-01-31 Graydon Hoare <graydon@redhat.com>
306
307 * Makefile.am (opncls.lo): Add dependency upon libiberty.h.
308 * Makefile.in: Regenerate.
309 * opncls.c (calc_crc32, get_debug_link_info,
310 seperate_debug_file_exists, find_seperate_debug_file): New
311 internal functions.
312 (bfd_follow_gnu_debuglink): New function. Follow the pointer
313 contained inside a .gnu_debuglink section.
314 * bfd-in2.h: Regenerate.
315
316 2003-01-29 Alexandre Oliva <aoliva@redhat.com>
317
318 * elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
319 entry->abfd when it's NULL.
320
321 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
322
323 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
324 _bfd_elf_section_offset returning -2 the same way as -1.
325
326 * elfxx-mips.c (mips_elf_multi_got): New function.
327 (struct mips_got_entry): Make symndx and gotidx signed. Moved
328 addend into union along with address and link hash entry.
329 (struct mips_got_info): Added bfd2got and next.
330 (struct mips_elf_hash_sort_data): Added max_unref_got_dynindx.
331 (mips_elf_got_section, mips_elf_create_got_section): Use
332 SEC_EXCLUDE bit to tell whether we really need the got
333 section. Take boolean arguments to disregard an excluded
334 section, or to create it as excluded. Adjust all callers.
335 Use mips_elf_got_section all over.
336 (mips_elf_local_got_index, mips_elf_got_page,
337 mips_elf_got16_entry): Take input bfd as argument, and pass it
338 on to mips_elf_create_local_got_entry.
339 (mips_elf_global_got_index, mips_elf_create_local_got_entry):
340 Take input bfd as argument, and manage entries in the
341 appropriate GOT.
342 (mips_elf_got_offset_from_index): Take input bfd as argument,
343 and use it to adjust the GP offset of the bfd.
344 (mips_elf_sort_hash_table, mips_elf_sort_hash_table_f): Move
345 unreferenced GOT entries of global symbols to the end.
346 (mips_elf_record_global_got_symbol): Take input bfd as
347 argument. Add entries to the master GOT hash table.
348 (struct mips_elf_bfd2got_hash): New.
349 (struct mips_elf_got_per_bfd_arg): New.
350 (struct mips_elf_set_global_got_offset_arg): New.
351 (mips_elf_hash_bfd_vma, mips_elf_multi_got_entry_hash,
352 mips_elf_multi_got_entry_eq, mips_elf_bfd2got_entry_hash,
353 mips_elf_bfd2got_entry_eq, mips_elf_make_got_per_bfd,
354 mips_elf_merge_gots, mips_elf_set_global_got_offset,
355 mips_elf_resolve_final_got_entry,
356 mips_elf_resolve_final_got_entries, mips_elf_adjust_gp,
357 mips_elf_got_for_ibfd): New functions.
358 (ELF_MIPS_GP_OFFSET): Don't depend on SGI_COMPAT.
359 (MIPS_ELF_GOT_MAX_SIZE): New macro.
360 (STUB_LW): Generate 64-bit stub regardless of SGI_COMPAT.
361 (mips_elf_got_entry_hash): Take new fields into account. Use
362 mips_elf_hash_bfd_vma.
363 (mips_elf_got_entry_eq): Take new fields into account.
364 (mips_elf_create_got_section): Initialize new fields.
365 (mips_elf_calculate_relocation): Pass input_bfd to functions
366 that now take it. Adjust gp for the input_bfd.
367 (mips_elf_allocate_dynamic_relocation,
368 mips_elf_create_dynamic_relocation,
369 _bfd_mips_elf_create_dynamic_sections): Use...
370 (mips_elf_rel_dyn_section): New function. Borrow code from...
371 (_bfd_mips_elf_check_relocs): Pass input_bfd to functions that
372 now take it. Create the got section if needed, even if
373 excluded, before recording a global got symbol. Move some
374 code to...
375 (mips_elf_record_local_got_symbol): New fn.
376 (_bfd_mips_elf_size_dynamic_sections): Disable combreloc.
377 Compute multi-got global entries offsets. Move GOT code to...
378 (_bfd_mips_elf_always_size_sections): Call mips_elf_multi_got
379 if the GOT is too big.
380 (_bfd_mips_elf_finish_dynamic_symbol): Set got entry of
381 undefweak symbol to zero. Generate dynamic relocations for
382 non-primary GOT entries for global symbols.
383 (_bfd_mips_elf_finish_dynamic_sections): Handle multi-got
384 case. Generate dynamic relocations for local got entries.
385 Sort dynamic relocations on N64 too, using...
386 (sort_dynamic_relocs_64): New fns.
387 (_bfd_mips_elf_hide_symbol): Adjust multi-got counters.
388 (_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_XGOT.
389
390 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
391
392 * bfd.c (struct _bfd): Added id field.
393 * opncls.c (_bfd_id_counter): New static variable.
394 (_bfd_new_bfd): Use it.
395 * bfd-in2.h: Rebuilt.
396
397 2003-01-25 Alan Modra <amodra@bigpond.net.au>
398
399 * elf32-sparc.c (bfd_elf32_new_section_hook): Define.
400
401 2003-01-25 Jakub Jelinek <jakub@redhat.com>
402
403 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
404 (elf32_sparc_rev32_howto): New variable.
405 (sparc_reloc_map): Add TLS relocs.
406 (elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
407 Handle REV32.
408 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
409 New functions.
410 (struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
411 struct elf32_sparc_link_hash_table):
412 New structures.
413 (elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
414 elf32_sparc_hash_table): Define.
415 (link_hash_newfunc, elf32_sparc_link_hash_table_create,
416 create_got_section, elf32_sparc_create_dynamic_sections,
417 elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
418 functions.
419 (elf32_sparc_check_relocs): Handle TLS relocs. Add dynamic reloc
420 reference counting.
421 (elf32_sparc_gc_sweep_hook): Likewise.
422 (elf32_sparc_adjust_dynamic_symbol): Likewise.
423 (elf32_sparc_size_dynamic_sections): Likewise.
424 (elf32_sparc_relocate_section): Likewise.
425 (allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
426 New functions.
427 (elf32_sparc_object_p): Allocate backend private object data.
428 (bfd_elf32_bfd_link_hash_table_create,
429 elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
430 elf_backend_can_refcount): Define.
431 (elf_backend_create_dynamic_sections): Define to
432 elf32_sparc_create_dynamic_sections.
433 * reloc.c: Add SPARC TLS relocs.
434 * bfd-in2.h, libbfd.h: Rebuilt.
435 * elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
436 (sparc_reloc_map): Likewise.
437
438 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
439
440 * bfd-in2.h: Regenerate.
441 * elf32-s390.c (elf_s390_mkobject, elf_s390_tls_transition,
442 s390_tls_reloc, dtpoff_base, tpoff, invalid_tls_insn): New functions.
443 (elf_howto_table): Add TLS relocs.
444 (elf_s390_reloc_type_lookup): Likewise.
445 (elf_s390_link_hash_entry): Add tls_type.
446 (elf_s390_hash_entry, elf_s390_obj_tdata, elf_s390_local_got_tls_type):
447 New macros.
448 (elf_s390_link_hash_table): Add tls_ldm_got.
449 (link_hash_newfunc): Initialize tls_type.
450 (elf_s390_link_hash_table_create): Initialize refcount of tls_ldm_got.
451 (elf_s390_copy_indirect_symbol): Copy tls_type information.
452 (elf_s390_check_relocs): Support TLS relocs.
453 (elf_s390_gc_sweep_hook): Likewise.
454 (allocate_dynrelocs): Likewise.
455 (elf_s390_size_dynamic_sections): Likewise.
456 (elf_s390_relocate_section): Likewise.
457 (elf_s390_finish_dynamic_symbol): Likewise.
458 (bfd_elf32_mkobject): Define for TLS.
459 * elf64-s390.c: Same changes as for elf32-s390.c.
460 * libbfd.h: Regenerate.
461 * reloc.c: Add s390 TLS relocations.
462
463 2003-01-24 Charles Lepple clepple.ghz.cc
464
465 * aclocal.m4: Fix name of --enable-install-libbfd switch.
466
467 2003-01-23 Nick Clifton <nickc@redhat.com>
468
469 * Add sh2e support:
470
471 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
472
473 * archures.c (bfd_mach_sh2e): Added.
474 * bfd-in2.h: Rebuilt.
475 * cpu-sh.c (arch_info_struct): Added SH2e.
476 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle EF_SH2E.
477
478 2003-01-23 Alan Modra <amodra@bigpond.net.au>
479
480 * elf-bfd.h (struct bfd_elf_section_data): Remove tdata. Change
481 dynindx to an int. Rearrange for better packing.
482 * elf.c (_bfd_elf_new_section_hook): Don't alloc if already done.
483 * elf32-mips.c (bfd_elf32_new_section_hook): Define.
484 * elf32-sh64.h: New. Split out from include/elf/sh.h.
485 (struct _sh64_elf_section_data): New struct.
486 (sh64_elf_section_data): Don't dereference sh64_info (was tdata).
487 * elf32-sh64-com.c: Include elf32-sh64.h.
488 * elf32-sh64.c: Likewise.
489 (sh64_elf_new_section_hook): New function.
490 (bfd_elf32_new_section_hook): Define.
491 (sh64_elf_fake_sections): Adjust for sh64_elf_section_data change.
492 (sh64_bfd_elf_copy_private_section_data): Likewise.
493 (sh64_elf_final_write_processing): Likewise.
494 * elf32-sparc.c (struct elf32_sparc_section_data): New.
495 (elf32_sparc_new_section_hook): New function.
496 (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
497 (sec_do_relax): Define.
498 (elf32_sparc_relax_section): Adjust to use sec_do_relax.
499 (elf32_sparc_relocate_section): Likewise.
500 * elf64-mips.c (bfd_elf64_new_section_hook): Define.
501 * elf64-mmix.c (struct _mmix_elf_section_data): New.
502 (mmix_elf_section_data): Define. Use throughout file.
503 (mmix_elf_new_section_hook): New function.
504 (bfd_elf64_new_section_hook): Define.
505 * elf64-ppc.c (struct _ppc64_elf_section_data): New.
506 (ppc64_elf_section_data): Define. Use throughout.
507 (ppc64_elf_new_section_hook): New function.
508 (bfd_elf64_new_section_hook): Define.
509 * elf64-sparc.c (struct sparc64_elf_section_data): New.
510 (sparc64_elf_new_section_hook): New function.
511 (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
512 (sec_do_relax): Define.
513 (sparc64_elf_relax_section): Adjust to use sec_do_relax.
514 (sparc64_elf_relocate_section): Likewise.
515 (bfd_elf64_new_section_hook): Define.
516 * elfn32-mips.c (bfd_elf32_new_section_hook): Define.
517 * elfxx-mips.c (struct _mips_elf_section_data): New.
518 (mips_elf_section_data): Define. Use throughout.
519 (_bfd_mips_elf_new_section_hook): New function.
520 (mips_elf_create_got_section): Don't alloc used_by_bfd.
521 * elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare.
522 * elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef.
523 * Makefile.am: Run "make dep-am".
524 * Makefile.in: Regenerate.
525
526 2003-01-21 Richard Henderson <rth@redhat.com>
527
528 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_PLT_LOC): New.
529 (struct alpha_elf_link_hash_entry): Add plt_old_section, plt_old_value.
530 (elf64_alpha_adjust_dynamic_symbol): Set them.
531 (elf64_alpha_size_plt_section_1): Reset them when plt entry removed.
532 (elf64_alpha_relax_tls_get_addr): Handle LDM relocs. Frob the
533 symbol index when relaxing LDM to TPREL.
534 (elf64_alpha_relax_section): Likewise. Allow relaxation of GD
535 relocs, even if the target isn't locally defined.
536 (elf64_alpha_check_relocs): Frob LDM reloc symndx to zero.
537 (elf64_alpha_relocate_section): Likewise. Force TP-relative
538 relocs vs symndx 0 to the tp base.
539
540 2003-01-21 Fabio Alemagna <falemagn@aros.org>
541
542 * config.bfd: Handle i[3456]86-*-aros*.
543
544 2003-01-21 Andreas Schwab <schwab@suse.de>
545
546 * elf32-ppc.c (struct ppc_elf_dyn_relocs): Define.
547 (struct ppc_elf_link_hash_entry): Define.
548 (ppc_elf_hash_entry): New function.
549 (struct ppc_elf_link_hash_table): Define.
550 (ppc_elf_hash_table): New function.
551 (ppc_elf_link_hash_newfunc): New function.
552 (ppc_elf_link_hash_table_create): New function.
553 (ppc_elf_copy_indirect_symbol): New function.
554 (allocate_dynrelocs): New function.
555 (readonly_dynrelocs): New function.
556 (ppc_elf_size_dynamic_sections): Allocate space for dynamic
557 relocs and determine DT_TEXTREL.
558 (ppc_elf_check_relocs): Don't do that here, just count the
559 dynamic relocs.
560 (ppc_elf_gc_sweep_hook): Discard any dynamic relocs against the
561 removed section.
562 (bfd_elf32_bfd_link_hash_table_create): Define.
563 (elf_backend_copy_indirect_symbol): Define.
564
565 2003-01-21 Richard Henderson <rth@redhat.com>
566
567 * elf64-alpha.c (alpha_dynamic_entries_for_reloc): GOTTPREL and
568 TPREL also get a reloc if shared. Remove SREL support.
569 (elf64_alpha_emit_dynrel): New.
570 (elf64_alpha_relocate_section): Use it. Resolve dynamic TPREL
571 and GOTTPREL relocs to local symbols against the tp base.
572 (elf64_alpha_finish_dynamic_symbol): Use elf64_alpha_emit_dynrel.
573
574 * elf64-alpha.c (elf64_alpha_relax_got_load): Decrement got
575 use count before clobbering r_type.
576 (elf64_alpha_relax_tls_get_addr): Don't use pos[1] if insn
577 ordering would mean dataflow inspection is necessary.
578
579 2003-01-20 Svein E. Seldal <Svein.Seldal@solidas.com>
580
581 * coffcode.h (coff_set_flags): Added get/set arch hooks.
582
583 2003-01-20 Fabio Alemagna <falemagn@aros.org>
584
585 * elf32-sh.c: Treat elfNN_bed like other macros defined in
586 elfxx-target.h and #undef it before #define'ing it.
587 * elf32-i386.c: Likewise.
588 * elf32-sh64.c: Likewise.
589 * elf64-alpha.c: Likewise.
590 * elf64-sh64.c: Likewise.
591
592 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
593
594 * bfd-in2.h: Regenerate.
595 * elf32-s390.c (elf_s390_adjust_gotplt): New prototype.
596 (elf_howto_table): Rename R_390_GOTOFF to R_390_GOTOFF32. Add
597 R_390_GOTOFF16, R_390_GOTOFF64, R_390_GOTPLT12, R_390_GOTPLT16,
598 R_390_GOTPLT32, R_390_GOTPLT64, R_390_GOTPLTENT, R_390_PLTOFF16,
599 R_390_PLTOFF32 and R_390_PLTOFF64.
600 (elf_s390_reloc_type_lookup): Likewise.
601 (struct elf_s390_link_hash_entry): Add gotplt_refcount to keep track
602 of GOTPLT references to a function.
603 (link_hash_newfunc): Initialize gotplt_refcount.
604 (elf_s390_check_relocs): Move allocation of local_got_refcounts array
605 and creation of the got section out of the main switch. Add support
606 for the gotoff, gotplt and pltoff relocations.
607 (elf_s390_gc_sweep_hook): Add reference counting for gotoff, gotplt
608 and pltoff.
609 (elf_s390_adjust_gotplt): New function.
610 (elf_s390_adjust_dynamic_symbol): Adjust gotplt refcount for removed
611 plt entries.
612 (allocate_dynrelocs): Add comment.
613 (elf_s390_relocate_section): Change r_type to unsigned. Add support
614 for gotoff, gotplt and pltoff relocations.
615 * elf64-s390.c: Same changes as for elf32-s390.c.
616 * libbfd.h: Regenerate.
617 * reloc.c: Add BFD_RELOC_390_GOTOFF64, BFD_RELOC_390_GOTPLT12,
618 BFD_RELOC_390_GOTPLT16, BFD_RELOC_390_GOTPLT32, BFD_RELOC_390_GOTPLT64,
619 BFD_RELOC_390_GOTPLTENT, BFD_RELOC_390_PLTOFF16, BFD_RELOC_390_PLTOFF32
620 and BFD_RELOC_390_PLTOFF64.
621
622 2003-01-18 Jakub Jelinek <jakub@redhat.com>
623
624 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle
625 R_IA64_TPREL64[LM]SB against non-global symbol properly.
626
627 2003-01-16 Jakub Jelinek <jakub@redhat.com>
628
629 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add
630 self_dtpmod_done and self_dtpmod_offset.
631 (allocate_global_data_got): Only use one got entry for all
632 dtpmod relocs against local symbols.
633 (allocate_dynrel_entries): Only need .rela.got entry for
634 dtpmod against global symbol.
635 (elfNN_ia64_size_dynamic_sections): Initialize self_dtpmod_offset.
636 Reserve space in .rela.got for the local dtpmod entry.
637 (set_got_entry): Initialize the common local dtpmod .got entry.
638 (elfNN_ia64_relocate_section): Handle R_IA_64_DTPREL64LSB
639 and R_IA_64_DTPREL64MSB.
640
641 2003-01-16 Alan Modra <amodra@bigpond.net.au>
642
643 * elf64-ppc.c: Include elf/ppc64.h rather than elf/ppc.h.
644 (R_PPC_*): Rename all occurrences to R_PPC64_*.
645 (R_PPC64_ADDR30): Rename all occurrences to R_PPC64_REL30.
646 (enum elf_ppc_reloc_type): Ditto to enum elf_ppc64_reloc_type.
647 (ppc64_elf_gc_sweep_hook): Handle R_PPC64_REL30 along with other
648 relative relocs, not with absolute ones.
649 * Makefile.am: Run "make dep-am".
650 * Makefile.in: Regenerate.
651 * po/SRC-POTFILES.in: Regenerate.
652
653 2003-01-15 Andreas Schwab <schwab@suse.de>
654
655 * elf32-ppc.c (ppc_elf_check_relocs): Don't set DF_TEXTREL for a
656 relocation against a non-allocated readonly section.
657
658 2003-01-10 Alan Modra <amodra@bigpond.net.au>
659
660 * elf32-ppc.c (ppc_elf_relocate_section): Adjust addend for GOT16_HA.
661 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. PLTGOT16_HA too.
662
663 2002-01-08 Klee Dienes <kdienes@apple.com>
664
665 * Makefile.am (ALL_MACHINES): Use cpu-msp430.lo, not cpu-msp430.c.
666 (BFD32_BACKENDS): Use elf32-msp430.lo, not elf32-msp430.c.
667 * Makefile.in: Regenerate.
668
669 2003-01-08 Alexandre Oliva <aoliva@redhat.com>
670
671 * elfn32-mips.c (prev_reloc_section): New.
672 (GET_RELOC_ADDEND): Use it. Parenthesize macro arguments.
673 (SET_RELOC_ADDEND): Parenthesize macro argument.
674
675 2003-01-07 John David Anglin <dave.anglin@nrc.gc.ca>
676
677 * elf32-hppa.c (final_link_relocate): For all DP relative relocations,
678 adjust addil instructions if the symbol has no section.
679
680 2003-01-07 DJ Delorie <dj@redhat.com>
681
682 * elf32-xstormy16.c (xstormy16_elf_howto_table): Make REL_12 not
683 partial_inplace.
684
685 2003-01-07 Andreas Schwab <schwab@suse.de>
686
687 * elf32-m68k.c (elf_m68k_check_relocs): Don't set DF_TEXTREL for
688 PC relative relocations.
689 (elf_m68k_discard_copies): Set it here instead.
690
691 2002-01-02 Ben Elliston <bje@redhat.com>
692 Jeff Johnston <jjohnstn@redhat.com>
693
694 * Makefile.am (ALL_MACHINES): Add cpu-iq2000.lo.
695 (ALL_MACHINES_CFILES): Add cpu-iq2000.c.
696 (BFD32_BACKENDS): Add elf32-iq2000.lo.
697 (BFD32_BACKENDS_CFILES): Add elf32-iq2000.c.
698 (cpu-iq2000.lo): New target.
699 * Makefile.in: Regenerate.
700 * config.bfd: Handle iq2000-*-elf.
701 * archures.c (bfd_architecture): Add bfd_{arch,mach}_iq2000.
702 (bfd_archures_list): Add bfd_iq2000_arch.
703 * configure.in: Handle bfd_elf32_iq2000_vec.
704 * configure: Regenerate.
705 * reloc.c: Add BFD_RELOC_IQ2000_OFFSET_16, BFD_RELOC_IQ2000_OFFSET_21,
706 and BFD_RELOC_IQ2000_UHI16.
707 * targets.c (bfd_elf32_iq2000_vec): Declare.
708 (bfd_target_vector): Add bfd_elf32_iq2000_vec.
709 * elf.c (prep_headers): Set e_machine to EM_IQ2000.
710 * cpu-iq2000.c: New file.
711 * elf32-iq2000.c: Likewise.
712 * libbfd.h: Regenerate.
713 * bfd-in2.h: Likewise.
714
715 2003-01-02 Richard Sandiford <rsandifo@redhat.com>
716
717 * elfxx-mips.c: Include libiberty.h.
718 (elf_mips_isa, _bfd_mips_elf_mach_extends_p): Remove.
719 (mips_set_isa_flags): New function, split out from...
720 (_bfd_mips_elf_final_write_processing): ...here. Only call
721 mips_set_isa_flags if the EF_MIPS_MACH bits are clear.
722 (mips_mach_extensions): New array.
723 (mips_32bit_flags_p): New function.
724 (_bfd_mips_elf_merge_private_bfd_data): Rework architecture checks.
725 Use mips_32bit_flags_p to check if one binary is 32-bit and the
726 other is 64-bit. When adopting IBFD's architecture, adopt the
727 bfd_mach as well as the flags.
728
729 2003-01-02 Nick Kelsey <nickk@ubicom.com>
730
731 * elf32-ip2k.c: Re-work of linker relaxation code for the ip2k to
732 fix internal errors, fix bad code generation, fix incorrect stabs
733 information, and improve ability to eliminate redundant page
734 instructions. Added code to ip2k_final_link_relocate to self-verify
735 the linker relaxation. Fix formatting problems.
736
737 2002-12-30 Chris Demetriou <cgd@broadcom.com>
738
739 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case.
740 * archures.c (bfd_mach_mipsisa32r2): New define.
741 * bfd-in2.h: Regenerate.
742 * cpu-mips.c (I_mipsisa32r2): New enum value.
743 (arch_info_struct): Add entry for I_mipsisa32r2.
744 * elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach)
745 (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2.
746 (_bfd_mips_elf_final_write_processing): Add
747 bfd_mach_mipsisa32r2 case.
748 (_bfd_mips_elf_merge_private_bfd_data): Handle merging of
749 binaries marked as using MIPS32 Release 2.
750
751 2002-12-30 Dmitry Diky <diwil@mail.ru>
752
753 * Makefile.am: Add msp430 target.
754 * configure.in: Likewise.
755 * Makefile.in: Regenerate.
756 * configure: Regenerate.
757 * archures.c: Add msp430 architecture vector.
758 * config.bfd: Likewise.
759 * reloc.c: Add msp430 relocs.
760 * targets.c: Add msp320 target.
761 * cpu-msp430.c: New file: msp430 cpu detection.
762 * elf32-msp430.c: New file: msp430 reloc processing.
763 * bfd-in2.h: Regenerate.
764 * libbfd.h: Regenerate.
765
766 2002-12-28 Jakub Jelinek <jakub@redhat.com>
767
768 * elf.c (elf_sort_sections): Don't reorder .tbss.
769 (assign_file_positions_for_segments): Only adjust off/voff
770 for increased alignment in PT_LOAD or PT_NOTE segment,
771 but adjust p_filesz for .tbss too. in PT_LOAD consider
772 .tbss to have zero memory size.
773 (copy_private_bfd_data) [SECTION_SIZE]: Define.
774 [IS_CONTAINED_BY_VMA, IS_CONTAINED_BY_LMA]: Use it.
775 [INCLUDE_SECTION_IN_SEGMENT]: Only put SHF_TLS sections
776 into PT_TLS segment. Never put SHF_TLS sections in
777 segments other than PT_TLS or PT_LOAD.
778
779 * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Clear .plt
780 sh_entsize.
781
782 2002-12-23 DJ Delorie <dj@redhat.com>
783
784 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Fix logic reversal.
785
786 2002-12-23 Alan Modra <amodra@bigpond.net.au>
787
788 * elflink.h (elf_link_output_extsym): Heed strip_discarded.
789
790 2002-12-23 Nick Clifton <nickc@redhat.com>
791
792 * archures.c (bfd_arch_get_compatible): Add third parameter
793 'accept_unknowns'. Only accept unknown format BFDs if
794 accept_unknowns is true, or if the format is "binary".
795 * bfd-in2.h: Regenerate.
796
797 2002-12-21 Nick Clifton <nickc@redhat.com>
798
799 * coff-arm.c (coff_arm_relocate_section): Disable WINCE workaround
800 that subtracted 8 from pc relative relocations.
801
802 2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
803
804 * coff-h8300.c: Fix comment typos.
805 * coffcode.h: Likewise.
806 * cpu-cris.c: Likewise.
807 * elf32-vax.c: Likewise.
808 * genlink.h: Likewise.
809 * linker.c: Likewise.
810 * som.c: Likewise.
811 * tekhex.c: Likewise.
812 * vms-misc.c: Likewise.
813
814 2002-12-20 DJ Delorie <dj@redhat.com>
815
816 * reloc.c: Add BFD_RELOC_XSTORMY16_12.
817 * libbfd.h: Regenerate.
818 * bfd-in2.h: Regenerate.
819 * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12.
820 (xstormy16_reloc_map): Add R_XSTORMY16_12.
821
822 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
823
824 * doc/bfdint.texi: Fix typos.
825
826 2002-12-20 Paul Eggert <eggert@twinsun.com>
827
828 Port to POSIX 1003.1-2001.
829 * acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".
830 * configure.in (build-warnings): Likewise.
831 (Horrible hacks to build DLLs on Windows): Do not rely on "tail -1".
832 * aclocal.m4: Regenerate.
833 * config.in: Regenerate.
834 * configure: Regenerate.
835
836 2002-12-19 Alan Modra <amodra@bigpond.net.au>
837
838 * coff-h8300.c: Include libiberty.h.
839 (h8300_reloc16_extra_cases): Check the hash table creator before
840 referencing h8300 specific fields. Stash the hash table pointer
841 in a local var. Comment typo fixes.
842 (h8300_bfd_link_add_symbols): Likewise.
843
844 * bfd/reloc.c (struct reloc_howto_struct): Revise src_mask and
845 dst_mask comments.
846 * bfd-in2.h: Regenerate.
847
848 2002-12-18 Alan Modra <amodra@bigpond.net.au>
849
850 * elf32-ppc.c (ppc_elf_relocate_section): Reorganize dynamic reloc
851 code a little. Comment on dynamic relocs against section symbols.
852
853 2002-12-17 Roger Sayle <roger@eyesopen.com>
854
855 * configure.host (ia64-*-hpux*): Support 64 bit targets using
856 the HP compiler's "long long".
857
858 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
859
860 * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_LO16
861 and R_XSTORMY16_HI16) howto entries.
862 (xstormy16_reloc_map): Map R_XSTORMY16_{LO,HI}16 to BFD_RELOC_{LO,HI}16.
863 (xstormy16_info_to_howto_rela): Use R_XSTORMY16_GNU_VTINHERIT to
864 determine the start of the second reloc table.
865
866 2002-12-16 Nathan Tallent <eraxxon@alumni.rice.edu>
867
868 * ecofflink.c: Fix the reading of the debugging information
869 of Tru64/Alpha binaries that are produced by recent Compaq
870 compilers.
871 (mk_fdrtab): Fix error in creating the FDR (file descriptor)
872 table.
873 (lookup_line): Because of the strange information sometimes
874 generated by Compaq's recent compilers, change how the FDR
875 table is searched so that PDRs (procedure descriptors) are
876 correctly found. Note that this change is really more of a hack;
877 however, I have included extensive documentation as to why
878 this is the best solution short of an extensive rewrite or
879 another hack.
880 (fdrtab_lookup): Add comments to explain the algorithm.
881
882 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
883
884 * elf-m10300.c (elf32_mn10300_link_hash_newfunc): Reorder
885 initializers to match struct declaration.
886
887 2002-12-12 Alan Modra <amodra@bigpond.net.au>
888
889 * dwarf2.c (comp_unit_contains_address): Comment typo fix.
890 * elf.c (get_program_header_size): Likewise.
891 * elf32-m32r.c (m32r_elf_lo16_reloc): Likewise.
892 (m32r_elf_generic_reloc): Likewise.
893 * elf32-ppc.c (ppc_elf_howto_init): Likewise.
894 * elflink.h (elf_bfd_discard_info): Likewise.
895
896 2002-12-12 Alan Modra <amodra@bigpond.net.au>
897
898 * elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset
899 to DT_JMPREL. Use srelplt input section size for DT_PLTRELSZ and
900 DT_RELSZ adjustment, not output section. Avoid writing tags when
901 unchanged. Don't assume linker script is sane, adjust DT_REL too.
902 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw
903 size of srelplt for DT_PLTRELSZ. Use srelplt input section size for
904 DT_RELASZ adjustment, not output section. Avoid writing tags when
905 unchanged. Adjust DT_RELA.
906 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better
907 formatting. Avoid writing tags when unchanged. Adjust DT_RELA.
908
909 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
910
911 * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide
912 addend by 4.
913
914 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
915
916 * elfxx-mips.c (struct mips_got_entry): New.
917 (struct mips_got_info): Added got_entries field.
918 (mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions.
919 (mips_elf_local_got_index, mips_elf_got_page,
920 mips_elf_got16_entry): Re-implement in terms of new...
921 (mips_elf_create_local_got_entry): Rewrite to use got_entries.
922 Change return type.
923 (mips_elf_highest): Warning clean-up.
924 (mips_elf_create_got_section): Initialize got_entries.
925 (_bfd_mips_elf_check_relocs): Use got_entries to estimate
926 local got size.
927 (_bfd_mips_elf_size_dynamic_sections): Do not account for
928 GOT_PAGE entries, since we now reuse GOT16 entries.
929
930 2002-12-10 Jason Thorpe <thorpej@wasabisystems.com>
931
932 * aoutx.h (set_section_contents): Allow an otherwise unrepresentable
933 read-only section that lies after .text and before .data to be
934 written into the output file and included in a_text.
935 (translate_to_native_sym_flags): If an otherwise unrepresentable
936 section was merged with .text, convert its symbols to N_TEXT
937 symbols.
938 * libaout.h (aout_section_merge_with_text_p): New macro.
939
940 2002-12-08 Alan Modra <amodra@bigpond.net.au>
941
942 * bfd-in.h: Comment typo fix. Formatting.
943 * bfd-in2.h: Regenerate.
944 * coff64-rs6000.c (xcoff64_openr_next_archived_file): Warning fix.
945 * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): Prototype.
946 * elf64-mmix.c (mmix_dump_bpo_gregs): Warning fix.
947
948 2002-12-05 Richard Henderson <rth@redhat.com>
949
950 * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21BI.
951 Only send PCREL21B though the plt. Fix installed reloc type.
952 (elfNN_ia64_relocate_section): Give error for dynamic reloc
953 against PCREL22 or PCREL64I; clean up error messages for
954 branch relocs.
955
956 2002-12-04 Kevin Buettner <kevinb@redhat.com>
957
958 * elf64-mips.c (elf64_mips_grok_prstatus, elf64_mips_grok_psinfo):
959 New functions.
960 (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
961
962 2002-12-04 David Mosberger <davidm@hpl.hp.com>
963
964 * cpu-ia64-opc.c: Add operand constant "ar.csd".
965
966 2002-12-04 H.J. Lu <hjl@gnu.org>
967
968 * elfxx-ia64.c (get_local_sym_hash): Use section ID instead of
969 BFD address when constructing local name.
970
971 2002-12-04 Andreas Schwab <schwab@suse.de>
972
973 * elf32-m68k.c (struct elf_m68k_link_hash_table): Add sym_sec
974 member.
975 (elf_m68k_link_hash_table_create): Initialize it.
976 (elf_m68k_check_relocs): Handle symbols that are forced to be
977 local due to visibility changes.
978 (elf_m68k_adjust_dynamic_symbol): Likewise.
979 (elf_m68k_size_dynamic_sections): Likewise.
980 (elf_m68k_discard_copies): Likewise.
981 (elf_m68k_relocate_section): Likewise.
982
983 2002-12-04 Alan Modra <amodra@bigpond.net.au>
984
985 * elf64-ppc.c (ppc64_elf_edit_opd): Correct typo.
986
987 2002-12-04 Alan Modra <amodra@bigpond.net.au>
988
989 * srec.c (srec_write_symbols): Restore '$' prefix to address
990 accidentally removed in 2002-04-04 change.
991 (srec_get_symtab): Use 0 instead of `(long) FALSE'.
992
993 2002-12-03 Nick Clifton <nickc@redhat.com>
994
995 * elf32-ppc.c (apuinfo_list_init): New function.
996 (apuinfo_list_add): New function: Add a value to the list.
997 (apuinfo_list_length): New function: Return the number of
998 values on the list.
999 (apuinfo_list_element): New function: Return a value on the
1000 list.
1001 (apuinfo_list_finish): New function: Free the resources used
1002 by the list.
1003 (ppc_elf_begin_write_processing): New function. Scan the
1004 input bfds for apuinfo sections.
1005 (ppc_elf_write_section): New function: Delay the creation of
1006 the contents of an apuinfo section in an output bfd.
1007 (ppc_elf_final_write_processing): New function. Create the
1008 contents of an apuinfo section in an output bfd.
1009 (elf_backend_begin_write_processing): Define.
1010 (elf_backend_final_write_processing): Define.
1011 (elf_backend_write_section): Define.
1012
1013 2002-12-03 Richard Henderson <rth@redhat.com>
1014
1015 * cpu-ia64-opc.c (elf64_ia64_operands): Add ldxmov entry.
1016
1017 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1018
1019 Fix PR savannah/1417:
1020 * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Don't adjust
1021 branch if it goes to the start of the deleted region.
1022
1023 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1024
1025 * bfd-in2.h (bfd_mach_m6812): Rebuild.
1026 * archures.c (bfd_mach_m6812_default, bfd_mach_m6812,
1027 bfd_mach_m6812s): Declare.
1028
1029 * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): New function.
1030 (_bfd_m68hc12_elf_set_private_flags): Call it.
1031 (_bfd_m68hc12_elf_print_private_bfd_data): Report processor version.
1032 (_bfd_m68hc12_elf_merge_private_bfd_data): Merge the flags and
1033 report microcontroller incompatibilities (HC12 vs HCS12).
1034 (elf_backend_object_p): Update.
1035
1036 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1037
1038 * bfd-in.h (TRUE_FALSE_ALREADY_DEFINED, BFD_TRUE_FALSE): Delete.
1039 (enum bfd_boolean, boolean): Delete.
1040 (bfd_boolean): Typedef to an int.
1041 (FALSE, TRUE): Define.
1042 * aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c, aout-cris.c,
1043 aout-encap.c, aout-ns32k.c, aout-target.h, aout-tic30.c, aoutf1.h,
1044 aoutx.h, archive.c, archive64.c, archures.c, bfd-in.h, bfd.c, bfdwin.c,
1045 binary.c, bout.c, cache.c, cisco-core.c, coff-a29k.c, coff-alpha.c,
1046 coff-apollo.c, coff-arm.c, coff-aux.c, coff-h8300.c, coff-h8500.c,
1047 coff-i386.c, coff-i860.c, coff-i960.c, coff-ia64.c, coff-m68k.c,
1048 coff-m88k.c, coff-mcore.c, coff-mips.c, coff-or32.c, coff-ppc.c,
1049 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, coff-tic30.c,
1050 coff-tic4x.c, coff-tic54x.c, coff-tic80.c, coff-w65.c, coff-we32k.c,
1051 coff-z8k.c, coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c,
1052 corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c,
1053 cpu-cris.c, cpu-d10v.c, cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c,
1054 cpu-h8300.c, cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c,
1055 cpu-i860.c, cpu-i960.c, cpu-ia64.c, cpu-ip2k.c, cpu-m10200.c,
1056 cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c, cpu-m68hc12.c, cpu-m68k.c,
1057 cpu-m88k.c, cpu-mcore.c, cpu-mips.c, cpu-mmix.c, cpu-ns32k.c,
1058 cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c,
1059 cpu-rs6000.c, cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c,
1060 cpu-tic4x.c, cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c,
1061 cpu-w65.c, cpu-we32k.c, cpu-xstormy16.c, cpu-z8k.c, dwarf1.c,
1062 dwarf2.c, ecoff.c, ecofflink.c, efi-app-ia32.c, efi-app-ia64.c,
1063 elf-bfd.h, elf-eh-frame.c, elf-hppa.h, elf-m10200.c, elf-m10300.c,
1064 elf-strtab.c, elf.c, elf32-arc.c, elf32-arm.h, elf32-avr.c,
1065 elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c, elf32-fr30.c,
1066 elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c, elf32-hppa.h,
1067 elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
1068 elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c,
1069 elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c,
1070 elf32-pj.c, elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-sh64-com.c,
1071 elf32-sh64.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
1072 elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c,
1073 elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
1074 elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c,
1075 elfarm-oabi.c, elfcode.h, elfcore.h, elflink.c, elflink.h,
1076 elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
1077 elfxx-target.h, format.c, freebsd.h, genlink.h, hash.c, hp300hpux.c,
1078 hppabsd-core.c, hpux-core.c, i386aout.c, i386linux.c, i386lynx.c,
1079 i386mach3.c, i386msdos.c, i386os9k.c, ieee.c, ihex.c, irix-core.c,
1080 libaout.h, libbfd-in.h, libbfd.c, libcoff-in.h, libecoff.h, libieee.h,
1081 libnlm.h, liboasys.h, libpei.h, libxcoff.h, linker.c, lynx-core.c,
1082 m68klinux.c, m68klynx.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c,
1083 mmo.c, netbsd-core.c, netbsd.h, nlm.c, nlm32-alpha.c, nlm32-i386.c,
1084 nlm32-ppc.c, nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
1085 pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c, pe-mcore.c, pe-mips.c,
1086 pe-sh.c, peXXigen.c, pef.c, pei-arm.c, pei-i386.c, pei-mcore.c,
1087 pei-mips.c, pei-sh.c, peicode.h, ppcboot.c, ptrace-core.c, reloc.c,
1088 reloc16.c, riscix.c, rs6000-core.c, sco5-core.c, section.c, simple.c,
1089 som.c, som.h, sparclinux.c, sparclynx.c, srec.c, stabs.c, sunos.c,
1090 syms.c, targets.c, tekhex.c, ticoff.h, trad-core.c, versados.c,
1091 vms-gsd.c, vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h,
1092 xcoff-target.h, xcofflink.c, xsym.c, xsym.h: Replace boolean with
1093 bfd_boolean, true with TRUE, false with FALSE. Simplify comparisons
1094 of bfd_boolean vars with TRUE/FALSE. Formatting.
1095 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate
1096
1097 2002-11-28 Alan Modra <amodra@bigpond.net.au>
1098
1099 * elf-bfd.h: Replace occurrences of Elf32_Internal_* and
1100 Elf64_Internal_* with Elf_Internal_*. Replace Elf_Internal_Rel
1101 with Elf_Internal_Rela.
1102 * elf-hppa.h, elf-m10200.c, elf-m10300.c, elf32-arc.c, elf32-arm.h,
1103 elf32-avr.c, elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c,
1104 elf32-fr30.c, elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c,
1105 elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
1106 elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c,
1107 elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c,
1108 elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-v850.c, elf32-vax.c,
1109 elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c,
1110 elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c,
1111 elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c, elfarm-oabi.c,
1112 elfcode.h, elflink.h, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c: Ditto.
1113 * elf-hppa.h (elf_hppa_internal_shdr): Delete. Use Elf_Internal_Shdr
1114 throughout instead.
1115 * elf.c (_bfd_elf_no_info_to_howto_rel): Delete.
1116 * elfcode.h (elf_swap_reloca_in): Pass source operand as a bfd_byte *.
1117 Remove INLINE keyword.
1118 (elf_swap_reloc_in): Likewise. Also clear r_addend.
1119 (elf_swap_reloc_out, elf_swap_reloca_out): Pass destination operand
1120 as a bfd_byte *.
1121 (elf_write_relocs): Consolidate REL and RELA code.
1122 (elf_slurp_reloc_table_from_section): Simplify REL code.
1123 (NAME(_bfd_elf,size_info)): Populate reloc swap entries.
1124 * elf-bfd.h (MAX_INT_RELS_PER_EXT_REL): Define.
1125 * elflink.h (elf_link_read_relocs_from_section): Consolidate REL and
1126 RELA code.
1127 (elf_link_adjust_relocs): Likewise. Don't malloc space for temp
1128 reloc array, use a fixed size of MAX_INT_RELS_PER_EXT_REL.
1129 (elf_link_output_relocs): Likewise.
1130 (elf_reloc_link_order): Likewise.
1131 (elf_finish_pointer_linker_section): Likewise.
1132 (struct elf_link_sort_rela): Remove union.
1133 (elf_link_sort_cmp1): Update to suit.
1134 (elf_link_sort_cmp2): Here too.
1135 (elf_link_sort_relocs): Consolidate REL and RELA code. Fix memory
1136 over-allocation for int_rels_per_ext_rel != 1 case.
1137 * elf32-arm.h: Update all bfd_elf32_swap_reloc_out calls.
1138 * elf32-i386.c: Likewise.
1139 * elf32-cris.c: Likewise for bfd_elf32_swap_reloca_out.
1140 * elf32-hppa.c, elf32-i370.c, elf32-m68k.c, elf32-ppc.c, elf32-s390.c,
1141 elf32-sh.c, elf32-vax.c, elfxx-mips.c: Likewise.
1142 * elf64-alpha.c: Likewise for bfd_elf64_swap_reloca_out.
1143 * elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c,
1144 elf64-sparc.c, elf64-x86-64.c: Likewise.
1145 * elfxx-ia64.c: Likewise for bfd_elfNN_swap_reloca_out.
1146 * elfxx-mips.c (sort_dynamic_relocs): Likewise for
1147 bfd_elf32_swap_reloc_in.
1148
1149 * elf32-arm.h: Update elf32_arm_info_to_howto calls.
1150 * elf32-mips.c: Likewise for mips_info_to_howto_rel.
1151 (mips_elf64_swap_reloc_in): Zero r_addend.
1152 (mips_elf64_be_swap_reloc_in): Likewise.
1153 (mips_elf64_slurp_one_reloc_table): Simplify.
1154
1155 * elf64-alpha.c (alpha_elf_size_info): Populate reloc swap entries.
1156 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
1157 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
1158
1159 2002-11-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1160
1161 * elf32-sh.c (sh_elf_relocate_section): Don't complain about
1162 unresolved debugging relocs in dynamic applications.
1163 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1164
1165 2002-11-26 Alan Modra <amodra@bigpond.net.au>
1166
1167 * elf-eh-frame.c (ENSURE_NO_RELOCS): Disregard R_*_NONE relocs.
1168 (_bfd_elf_discard_section_eh_frame): Don't discard duplicate CIEs
1169 on a relocatable link. Comment typos.
1170 * elf.c (_bfd_elf_link_hash_newfunc): Assign elements of structure
1171 in the order they are declared. Clear elf_hash_value too.
1172 (_bfd_elf_link_hash_table_init): Likewise assign in order. Clear
1173 eh_info and tls_segment.
1174 * elflink.h (elf_link_input_bfd <emit_relocs>): Keep reloc offsets
1175 sorted when discarding relocs by turning them into R_*_NONE.
1176
1177 * libbfd.c (warn_deprecated): Comment spelling.
1178 * po/SRC-POTFILES.in: Regenerate.
1179
1180 2002-11-21 Richard Henderson <rth@redhat.com>
1181
1182 * elflink.h (elf_link_add_object_symbols): Don't overwrite the
1183 arch's st_other bits when merging visibilities.
1184 (elf_link_output_extsym): Tidy clearing of visibility field.
1185
1186 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1187
1188 * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
1189 (SWAP_OUT_RELOC_OFFSET): Define.
1190
1191 2002-11-20 Alexandre Oliva <aoliva@redhat.com>
1192
1193 * elf.c (_bfd_elf_link_hash_table_init): Make sure
1194 can_refcount is properly extended to the type of
1195 init_refcount.
1196
1197 2002-11-19 Alexandre Oliva <aoliva@redhat.com>
1198
1199 * elfxx-mips.c (MIPS_RELOC_RELA_P): New macro.
1200 (_bfd_mips_elf_relocate_section): Use it.
1201
1202 * elfxx-mips.c (MNAME): New macro.
1203 (_bfd_mips_elf_check_relocs): Use it.
1204 (_bfd_mips_elf_discard_info): Likewise.
1205 (_bfd_mips_elf_final_link): Likewise.
1206
1207 2002-11-19 Alan Modra <amodra@bigpond.net.au>
1208
1209 * elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
1210 rel_hdr.sh_size too.
1211
1212 2002-11-18 Klee Dienes <kdienes@apple.com>
1213
1214 * Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
1215 (BFD32_LIBS_CFILES): Add bfdwin.c, bfdio.c.
1216 (BFD_H_FILES): Add bfdwin.c, bfdio.c.
1217 (LIBBFD_H_FILES): Add bfdwin.c, bfdio.c.
1218 Add dependencies for bfdwin.c, bfdio.c.
1219 * bfd.c: Remove bfd_get_mtime, bfd_get_size.
1220 * libbfd.c: Remove real_read, bfd_bread, _bfd_window_internal,
1221 bfd_init_window, bfd_free_window, bfd_get_file_window, bfd_bwrite,
1222 bfd_tell, bfd_flush, bfd_stat, bfd_seek.
1223 * bfdio.c: New file. Contains real_read, bfd_bread, bfd_write,
1224 bfd_tell, bfd_flush, bfd_stat, bfd_seek, bfd_ge_mtime,
1225 bfd_get_size (moved from libbfd.c and bfd.c).
1226 * bfdwin.c New file. Contains _bfd_window_internal,
1227 bfd_init_window, bfd_free_window, bfd_get_file_window (moved from
1228 libbfd.c and bfd.c).
1229 * po/SRC-POTFILES.in: Regenerate.
1230 * po/bfd.pot: Regenerate.
1231 * libbfd.h: Regenerate.
1232 * bfd-in2.h: Regenerate.
1233 * aclocal.m4: Regenerate.
1234 * Makefile.in: Regenerate.
1235 * configure: Regenerate.
1236
1237 2002-11-18 Klee Dienes <kdienes@apple.com>
1238
1239 * bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
1240
1241 2002-11-15 Kazu Hirata <kazu@cs.umass.edu>
1242
1243 * coff-h8300.c (h8300_reloc16_estimate): Do not optimize away
1244 jsr after a short jump.
1245 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1246
1247 2002-11-15 Klee Dienes <kdienes@apple.com>
1248
1249 * pef.c (bfd_pef_convert_architecture): Move declaration of
1250 ARCH_POWERPC and ARCH_M68K to the start of the function.
1251
1252 2002-11-14 Svein E. Seldal <Svein.Seldal@solidas.com>
1253
1254 * coff-tic4x.c (tic4x_howto_table): Formatting fixup
1255
1256 2002-11-14 Hans-Peter Nilsson <hp@bitrange.com>
1257
1258 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
1259 For bpo_gregs_section->contents, allocate _raw_size, not
1260 _cooked_size.
1261
1262 2002-11-13 Klee Dienes <kdienes@apple.com>
1263
1264 * config.bfd: Add entries for powerpc-*-darwin and cousins.
1265
1266 2002-11-13 H.J. Lu <hjl@gnu.org>
1267
1268 * elfcode.h (elf_object_p): Don't restore abfd->arch_info.
1269
1270 2002-11-13 Klee Dienes <kdienes@apple.com>
1271 Alan Modra <amodra@bigpond.net.au>
1272
1273 * bfd.c (struct bfd_preserve): New.
1274 (bfd_preserve_save): New function.
1275 (bfd_preserve_restore): Ditto.
1276 (bfd_preserve_finish): Ditto.
1277 * bfd-in2.h: Regenerate.
1278 * mach-o.c: Formatting.
1279 (bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
1280 (bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
1281 (bfd_mach_o_core_p): Ditto.
1282 (bfd_mach_o_scan): Pass in mdata.
1283 * mach-o.h (bfd_mach_o_scan): Update prototype.
1284 * pef.c: Formatting.
1285 (bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
1286 (bfd_pef_xlib_object_p): Ditto.
1287 (bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
1288 * pef.h (bfd_pef_scan): Update prototype.
1289 * xsym.c: Formatting, K&R fixes.
1290 (bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
1291 (bfd_sym_scan): New function split out from bfd_sym_object_p.
1292 * xsym.h (bfd_sym_scan): Declare.
1293 * elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
1294 * elfcore.h (elf_core_file_p): Likewise.
1295 * targets.c (_bfd_target_vector): Revert 2002-11-08 change.
1296
1297 2002-11-12 Nick Clifton <nickc@redhat.com>
1298
1299 * po/da.po: Updated Danish translation.
1300
1301 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1302
1303 * elflink.h (elf_link_add_object_symbols): Optimize stabs for
1304 relocatable link too.
1305 (elf_link_input_bfd): When emitting relocs, adjust offsets for
1306 eh_frame and stab sections. Zap deleted relocs.
1307 (elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
1308 (elf_bfd_discard_info): Run for relocatable link too.
1309 * elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
1310 Handle ld -r case.
1311 (ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
1312 * elf64-ppc.h (ppc64_elf_edit_opd): Declare.
1313
1314 * elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
1315 (struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
1316 (struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
1317 (enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
1318 (struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
1319 (struct elf_link_hash_table): Add eh_info.
1320 (struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
1321 (_bfd_elf_discard_section_eh_frame): Update prototype.
1322 (_bfd_elf_discard_section_eh_frame_hdr): Likewise.
1323 (_bfd_elf_write_section_eh_frame): Likewise.
1324 (_bfd_elf_write_section_eh_frame_hdr): Likewise.
1325 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
1326 param. Get "hdr_info" from link hash table.
1327 (_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
1328 header section from link hash table. Save header section to elf_tdata.
1329 (_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
1330 header section from link hash table. Don't alloc hdr_info. Clear
1331 hdr_sec instead of setting "strip".
1332 (_bfd_elf_eh_frame_section_offset): Formatting.
1333 (_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
1334 Get header section from link hash table.
1335 (_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
1336 Get header section from link hash table.
1337 * elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
1338 (get_program_header_size): Likewise.
1339 (_bfd_elf_section_offset): Formatting.
1340 * elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
1341 section pointer in link hash table.
1342 (elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
1343 and _bfd_elf_write_section_eh_frame calls. Update comment about
1344 eh_frame entries.
1345 (elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
1346 _bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
1347
1348 * po/SRC-POTFILES.in: Regenerate.
1349
1350 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
1351 relocs for discarded FDEs. Remove dead code.
1352 (_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
1353 * elflink.h (elf_bfd_discard_info): Don't save edited relocs.
1354 Tidy conditions under which stabs are edited. Formatting.
1355 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
1356 from discarded relocs.
1357 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
1358 section adjustments after testing magic values.
1359
1360 2002-11-12 Thomas Moestl <tmm@FreeBSD.org>
1361
1362 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
1363 references to large plt symbols.
1364
1365 2002-11-12 Klee Dienes <kdienes@apple.com>
1366
1367 * mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
1368 looking for an unused section name.
1369
1370 2002-11-11 Kazu Hirata <kazu@cs.umass.edu>
1371
1372 * coff-h8300.c: Fix formatting.
1373 * elf32-h8300.c: Likewise.
1374 * reloc16.c: Likewise.
1375
1376 2002-11-09 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1377
1378 * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
1379 section when dynamic section unused; _bfd_strip_section_from_output
1380 instead.
1381
1382 2002-11-08 Alan Modra <amodra@bigpond.net.au>
1383
1384 * targets.c (_bfd_target_vector): Disable pef_vec, pef_xlib_vec
1385 and sym_vec.
1386
1387 * dwarf2.c: Revert last change.
1388
1389 2002-11-07 Michal Ludvig <mludvig@suse.cz>
1390
1391 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
1392 _bfd_dwarf2_find_nearest_line): Use
1393 bfd_simple_get_relocated_section_contents() instead of
1394 bfd_get_section_contents().
1395 * reloc.c (bfd_perform_relocation): Add sanity check.
1396 * simple.c (simple_get_relocated_section_contents): If the section
1397 does not have any relocs associated with it, just return the
1398 unadjusted contents.
1399
1400 2002-11-07 Hans-Peter Nilsson <hp@axis.com>
1401
1402 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT,
1403 case R_CRIS_32_GOT>: Correct test for filling in constant .got
1404 contents, enabling for a non-DSO, for symbols defined in the
1405 program with --export-dynamic.
1406
1407 2002-11-07 Alan Modra <amodra@bigpond.net.au>
1408
1409 * elf64-ppc.c: Comment typo fixes.
1410 (ppc64_elf_merge_private_bfd_data): Allow BFD_ENDIAN_UNKNOWN input.
1411
1412 2002-11-07 Nick Clifton <nickc@redhat.com>
1413
1414 * po/da.po: Updated Danish translation.
1415
1416 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1417
1418 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Generate
1419 exactly three internal relocs per external reloc. Set reloc_count
1420 to the external reloc count.
1421
1422 2002-11-06 Klee Dienes <kdienes@apple.com>
1423
1424 * coff-stgo32.c (stub_bytes): Mark as const.
1425 Fix comment formatting.
1426
1427 2002-11-06 Klee Dienes <kdienes@apple.com>
1428
1429 * Makefile.am (BFD32_BACKENDS): Add mach-o.lo, pef.lo, and
1430 xsym.lo.
1431 (BFD32_BACKENDS_CFILES): Add mach-o.c, pef.c, and xsym.c.
1432 (SOURCE_HFILES): Add mach-o.h, pef.h, pef-traceback.h, xsym.h
1433 * archures.c (enum bfd_architecture): Add bfd_arch_m98k.
1434 * bfd.c (struct bfd): Add private data for mach-o, pef, and sym.
1435 * targets.c (enum bfd_flavour): Add flavours for mach-o, pef, and
1436 sym.
1437 (_bfd_target_vector): Add target vectors for mach-o, pef, and sym.
1438 * Makefile.in: Regenerate.
1439 * doc/Makefile.in: Regenerate.
1440 * bfd-in2.h: Regenerate.
1441 * xsym.c: New file. Contains support for the Apple/Metrowerks
1442 xSYM debugging format.
1443 * xsym.h: New file.
1444 * pef.c: New file. Contains support for the Apple Code Fragment
1445 Manager Preferred Executable Format
1446 * pef.h: New file.
1447 * pef-traceback.h: New file. Contains support for parsing PowerPC
1448 traceback tables as used by PEF executables (and perhaps other
1449 systems as well).
1450 * mach-o.c: New file. Contains support for the Mach-O object file
1451 format.
1452 * mach-o.h: New file.
1453 * mach-o-target.c: New file. Declares the mach-o targets
1454 themselves. Included three times by mach-o.c; each time with a
1455 different set of macros set.
1456
1457 2002-11-06 Graeme Peterson <gp@qnx.com>
1458
1459 * Makefile.am: Remove entries for elf32-qnx.[ch].
1460 * Makefile.in: Regenerate.
1461 * config.bfd: Change arm-nto to use bfd_elf32_{big|little}arm_vec,
1462 ppc-nto to use bfd_elf32_powerpc{le}_vec, sh-nto to use
1463 bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
1464 * configure.in: Remove support for bfd_elf32_sh{l}qnx_vec,
1465 bfd_elf32_powerpc{le}qnx_vec, bfd_elf32_{big|little}armqnx_vec,
1466 and bfd_elf32_i386qnx_vec, and removed elf32-qnx.lo from other targets.
1467 bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
1468 * configure: Regenerate.
1469 * elf32-qnx.c: Remove.
1470 * elf32-qnx.h: Remove.
1471 * elf.c: Remove calls to QNX specific set_nonloadable_filepos,
1472 is_contained_by_filepos, and copy_private_bfd_data_p.
1473 * elf-bfd.h (struct elf_backend_data): Remove set_nonloadable_filepos,
1474 is_contained_by_filepos, and copy_private_bfd_data_p.
1475 * elf32-i386.c: Remove QNX extended bfd support.
1476 * elf32-ppc.c: Remove QNX extended bfd support.
1477 * elf32-sh.c: Remove QNX extended bfd support.
1478 * elfarm-nabi.c: Remove QNX extended bfd support.
1479 * targets.c: Remove qnx vectors.
1480 * elfxx-target.h (elf_backend_set_nonloadable_filepos): Remove
1481 (elf_backend_is_contained_by_filepos): Remove.
1482 (elf_backend_copy_private_bfd_data_p): Remove.
1483 * po/SRC-POTFILES.in: Regenerate.
1484
1485 2002-11-06 David O'Brien <obrien@FreeBSD.org>
1486 Alan Modra <amodra@bigpond.net.au>
1487
1488 * elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of
1489 dynamic relocs against section symbols for the output section vma.
1490
1491 2002-11-05 Alan Modra <amodra@bigpond.net.au>
1492
1493 * elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
1494 t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
1495
1496 2002-11-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1497 Alan Modra <amodra@bigpond.net.au>
1498
1499 * config.bfd (sh-*-linux*): Use bfd_elf*_sh64*lin_vec as sh64
1500 vectors in target_selvecs.
1501 (shle-*-netbsdelf*): Use bfd_elf*_sh64*nbsd_vec as sh64 vectors
1502 in target_selvecs.
1503 (sh-*-netbsdelf*): Likewise.
1504 * configure.in (assocvecs): New variable. Handle assocvecs like
1505 selvecs.
1506 * configure: Regenerate.
1507 * format.c (bfd_check_format_matches): Store bfd_target pointers
1508 in matching_vector instead of target names. Select first target
1509 from bfd_associated_vector that matches a list of ambiguous targets.
1510 * targets.c (_bfd_associated_vector): New array.
1511 (bfd_associated_vector): New variable.
1512 (_bfd_target_vector): Add bfd_elf*_sh64*lin_vec.
1513 * libbfd-in.h (bfd_associated_vector): Declare.
1514 * libbfd.h: Regenerate.
1515
1516 2002-11-05 Elias Athanasopoulos <eathan@otenet.gr>
1517
1518 * vms-gsd.c (_bfd_vms_write_gsd): Check that symbol->udata.p is
1519 non-NULL before dereferencing.
1520
1521 2002-11-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1522
1523 * vms.c (vms_object_p): Restore the start address when returning
1524 NULL.
1525
1526 2002-11-04 Alan Modra <amodra@bigpond.net.au>
1527 Hans-Peter Nilsson <hp@axis.com>
1528
1529 * elflink.h (struct elf_final_link_info): Add shndxbuf_size.
1530 (elf_bfd_final_link): Don't bother zeroing symtab_hdr fields.
1531 Set up a larger symshndxbuf, and write it out. Free it on
1532 exit rather than freeing symbuf twice. Correct section index
1533 on output section symbol loop.
1534 (elf_link_output_sym): Accumulate symbol extension section
1535 indices, reallocating symshndxbuf rather than writing it out.
1536 (elf_link_flush_output_syms): Don't flush symshndxbuf.
1537 * elf.c (assign_section_numbers): Init i_shdrp to all zero.
1538 Use bfd_zalloc to clear i_shdrp[0] too.
1539
1540 2002-11-03 Stephen Clarke <stephen.clarke@earthling.net>
1541
1542 * elf32-sh64-com.c (sh64_address_in_cranges): Use
1543 _raw_size of cranges section if _cooked_size not yet set.
1544
1545 2002-11-03 Hans-Peter Nilsson <hp@axis.com>
1546
1547 * elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters
1548 for bfd_elf32_swap_symbol_out.
1549
1550 2002-10-31 David O'Brien <obrien@FreeBSD.org>
1551
1552 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
1553 signed and unsigned in comparison.
1554
1555 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1556
1557 * coffcode.h: Remove extraneous '\'.
1558
1559 2002-10-28 H.J. Lu <hjl@gnu.org>
1560
1561 * Makefile.am (targets.lo): Depend on Makefile instead of
1562 config.status.
1563 (archures.lo): Likewise.
1564 * Makefile.in: Regenerated.
1565
1566 2002-10-25 Jason Thorpe <thorpej@wasabisystems.com>
1567
1568 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Add
1569 bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to
1570 targ_selvecs.
1571
1572 2002-10-25 Jim Wilson <wilson@redhat.com>
1573
1574 * elf64-sh64.c (sh_elf64_relocate_section): Call
1575 _bfd_elf_rela_local_sym. Handle relocs against STT_SECTION symbol
1576 of SHF_MERGE section.
1577
1578 2002-10-25 Hans-Peter Nilsson <hp@axis.com>
1579
1580 * simple.c: Correct placement of ATTRIBUTE_UNUSED.
1581
1582 2002-10-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
1583
1584 * aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to
1585 unsigned int. Cast RELOC_BASE10, RELOC_BASE13 and RELOC_BASE22 to
1586 unsigned int.
1587 (NAME(aout,final_link)): Cast enum used in assignment.
1588 (aout_link_write_symbols): Cast enums in comparisons, int values to
1589 boolean, enums in assignments to int.
1590 (aout_link_input_section_std): Cast rel->r_index to unsigned int.
1591 (aout_link_input_section_ext): Likewise. Cast enums used in comparisons
1592 with unsigned ints.
1593 (aout_link_reloc_link_order): Cast enum to int in assignment.
1594 * archive.c (_bfd_generic_read_ar_hdr_mag): Cast result of memchr
1595 calls to char *.
1596 * bfd-in.h (bfd_set_section_vma): Cast enum true to unsigned int in
1597 assignment.
1598 * bfd-in2.h (bfd_set_section_vma): Likewise.
1599 * bfd.c (bfd_record_phdr): Cast enums in assignments.
1600 * binary.c (bfd_alloc): Cast enum to long.
1601 * coffgen.c (_bfd_coff_is_local_label_name): Cast return to boolean.
1602 * dwarf2.c (read_abbrevs): Add casts to enum types.
1603 (read_attribute_value): Likewise.
1604 (arange_add): Cast result of bfd_zalloc call.
1605 (comp_unit_contains_address): Return true and false.
1606 (comp_unit_find_nearest_line): Cast return to boolean.
1607 * format.c (bfd_check_format_matches, bfd_set_format): Likewise.
1608 * gen-aout.c: define macro '_' if not defined.
1609 * libbfd.c (bfd_realloc): Cast malloc and realloc to PTR.
1610 (bfd_bwrite): Cast bfd_realloc to bfd_byte *.
1611 (bfd_write_bigendian_4byte_int): Cast return to boolean.
1612 (bfd_seek): Cast bfd_realloc to bfd_byte *.
1613 (bfd_generic_is_local_label_name): Cast return to boolean.
1614 * libcoff.h (_bfd_coff_adjust_symndx): Remove extraneous '\'.
1615 * linker.c (_bfd_link_hash_newfunc): Cast bfd_hash_allocate result to
1616 struct bfd_hash_entry *.
1617 (_bfd_generic_link_hash_newfunc): likewise.
1618 (_bfd_generic_final_link): Cast enum to unsigned int.
1619 * merge.c (sec_merge_emit): Cast return to boolean.
1620 (merge_strings): Add casts to const unsigned char *.
1621 * reloc.c (bfd_get_reloc_code_name): Cast enums in comparison to int.
1622 (bfd_generic_get_relocated_section_content): Cast enum to unsigned int.
1623 * section.c (bfd_section_hash_newfunc): Cast bfd_hash_allocate result to
1624 struct bfd_hash_entry *.
1625 (bfd_set_section_content): Add cast to PTR in comparison.
1626 * simple.c (simple_dummy_warning, simple_dummy_undefined_symbol,
1627 simple_dummy_reloc_overflow, simple_dummy_reloc_dangerous,
1628 simple_dummy_unattached_reloc,
1629 bfd_simple_get_relocated_section_contents): Add K&R declarations and
1630 function definitions.
1631 * srec.c (S3Forced): Initialize to false.
1632 (srec_get_symtab): Cast return value from bfd_alloc to asymbol *.
1633 * stabs.c (_bfd_link_section_stabs): Cast enum to int in comparisons.
1634 (_bfd_discard_section_stabs): Likewise. Also cast return to boolean.
1635 * syms.c (bfd_is_undefined_symclass): Cast return to boolean.
1636 (_bfd_stab_section_find_nearest_line): Cast enum to bfd_byte in
1637 comparisons.
1638
1639 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1640
1641 * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic
1642 relocs into shared lib non-allocated reloc sections.
1643
1644 2002-10-23 Nathan Tallent <eraxxon@alumni.rice.edu>
1645
1646 * dwarf2.c (add_line_info): Ensure that the line_info_table is
1647 sorted even when given an out-of-order line sequence.
1648 (lookup_address_in_line_info_table): When an exact VMA match is
1649 not found, return line information with the closest VMA.
1650
1651 2002-10-23 Ross Alexander <ross.alexander@uk.neceur.com>
1652
1653 * elf64-hppa.c: Force DT_FLAGS to always be set. Required by
1654 HPUX 11.00 patch PHSS_26559.
1655
1656 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1657
1658 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't move
1659 the options section into a separate section unless IRIX 6
1660 compatibility is enabled.
1661
1662 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1663
1664 * elflink.h (struct elf_link_sort_rela): Turn rel and rela
1665 into arrays.
1666 (elf_link_sort_cmp1, elf_link_sort_cmp2): Adjust.
1667 (elf_link_sort_relocs): Likewise. Take int_rels_per_ext_rel
1668 into account.
1669 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Compose
1670 R_MIPS_REL32 with R_MIPS64 if ABI_64_P.
1671
1672 2002-10-21 Graeme Peterson <gp@qnx.com>
1673
1674 * targets.c (_bfd_target_vector): Add missing qnx vectors.
1675
1676 2002-10-21 Alan Modra <amodra@bigpond.net.au>
1677
1678 * targets.c (bfd_target_list): Don't return the default target twice.
1679
1680 2002-10-21 Elias Athanasopoulos <eathan@otenet.gr>
1681
1682 * archive.c (_bfd_archive_bsd_update_armap_timestamp): Replace
1683 perror with bfd_perror.
1684
1685 2002-10-19 H.J. Lu <hjl@gnu.org>
1686
1687 * elflink.h (elf_link_add_object_symbols): Correctly handle
1688 DT_RPATH and DT_RUNPATH.
1689
1690 2002-10-19 Mark Kettenis <kettenis@gnu.org>
1691
1692 * elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.
1693
1694 2002-10-17 Denis Chertykov <denisc@overta.ru>
1695
1696 * elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code
1697 for ip2k port.
1698
1699 2002-10-17 Alan Modra <amodra@bigpond.net.au>
1700
1701 * elfxx-target.h (USE_REL): Don't define as 1.
1702 * elf32-arm.h (USE_REL): Provide a default define of 0.
1703 Use #if rather than #ifdef when testing USE_REL.
1704 * elf32-m32r.c: Likewise.
1705
1706 * elf32-arc.c (USE_REL): Define as 1.
1707 * elf32-d10v.c (USE_REL): Likewise.
1708 * elf32-m32r.c (USE_REL): Likewise.
1709 * elf32-m68hc11.c (USE_REL): Likewise.
1710 * elf32-m68hc12.c (USE_REL): Likewise.
1711 * elf32-or32.c (USE_REL): Likewise.
1712 * elfarm-nabi.c (USE_REL): Likewise.
1713
1714 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1715
1716 * config.bfd (s390-*-linux*): Add targ64_selvecs.
1717 (s390x-*-linux*): Add targ_selvecs.
1718
1719 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1720
1721 * Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
1722 elf32-i386-fbsd.lo, elf32-i386qnx.lo, elf32-ppcqnx.lo,
1723 elf32-sh-lin.lo, elf32-sh64-lin.lo, elf32-sh-nbsd.lo,
1724 elf32-sh64-nbsd.lo, elf32-shqnx.lo. Add elf32-qnx.lo.
1725 (BFD32_BACKENDS_CFILES): Likewise for corresponding C files.
1726 (BFD64_BACKENDS): Remove elf64-sh64-lin.lo, elf64-sh64-nbsd.lo.
1727 (BFD64_BACKENDS_CFILES): Likewise for corresponding C files.
1728 (SOURCE_HFILES): Add elf32-qnx.h.
1729 (BUILD_HFILES): Add bfdver.h.
1730 Run "make dep-am".
1731 * Makefile.in: Regenerate.
1732 * configure.in Update bfd vector dependencies.
1733 * configure: Regenerate.
1734 * elf32-i386-fbsd.c: Delete. Move code to elf32-i386.c.
1735 * elf32-i386qnx.c: Likewise.
1736 * elf32-ppcqnx.c: Delete. Move code to elf32-ppc.c.
1737 * elf32-sh-nbsd.c: Delete. Move code to elf32-sh.c.
1738 * elf32-sh-lin.c: Likewise.
1739 * elf32-shqnx.c: Likewise.
1740 * elf32-sh64-lin.c: Delete. Move code to elf32-sh64.c.
1741 * elf32-sh64-nbsd.c: Likewise.
1742 * elf64-sh64-lin.c: Delete. Move code to elf64-sh64.c.
1743 * elf64-sh64-nbsd.c: Likewise.
1744 * elfarmqnx-nabi.c: Delete. Move code to elfarm-nabi.c.
1745 * elf32-arm.h (ELF_MAXPAGESIZE): Always define.
1746 * elf32-i386.c: Remove ELF_ARCH and ELF32_I386_C_INCLUDED tests.
1747 * elf32-ppc.c: Remove ELF32_PPC_C_INCLUDED tests.
1748 * elf32-qnx.h (elf_backend_set_nonloadable_filepos): Always define.
1749 (elf_backend_is_contained_by_filepos): Likewise.
1750 (elf_backend_copy_private_bfd_data_p): Likewise.
1751 Globalize and move functions to..
1752 * elf32-qnx.c: ..here. New file.
1753 * elf32-sh.c: Remove ELF_ARCH and ELF32_SH_C_INCLUDED tests. Don't
1754 emit target vectors when INCLUDE_SHMEDIA.
1755 * elf32-sh64.c: Remove ELF_ARCH test. Move TARGET_* etc. defines to
1756 end of file.
1757 * elf64-sh64.c: Remove ELF_ARCH test.
1758 * elfarm-nabi.c: Remove ELFARM_NABI_C_INCLUDED test.
1759 * po/BLD-POTFILES.in: Regenerate.
1760 * po/SRC-POTFILES.in: Regenerate.
1761
1762 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1763
1764 * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
1765 loaded with --just-symbols.
1766
1767 * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define.
1768 * elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
1769 * elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
1770 * elfarmqnx-nabi.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
1771
1772 2002-10-15 Richard Henderson <rth@redhat.com>
1773
1774 * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd.
1775 (BFD64_BACKENDS_CFILES): Likewise.
1776 * configure.in (bfd_elf64_alpha_freebsd_vec): Use elf64-alpha.
1777 * elf64-alpha-fbsd.c: Remove file, move code ...
1778 * elf64-alpha.c: ... here.
1779 * Makefile.in, configure: Rebuild.
1780
1781 2002-10-14 Richard Henderson <rth@redhat.com>
1782
1783 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment
1784 VALUE, not ADDEND.
1785
1786 2002-10-14 Stephen Clarke <stephen.clarke@superh.com>
1787
1788 * elf32-sh.c (elf_sh_link_hash_entry): Replace
1789 datalabel_got_offset with union of datalabel_got
1790 offset and refcount.
1791 (sh_elf_link_hash_newfunc): Initialize datalabel_got.refcount.
1792 (allocate_dynrelocs): Delete unnecessary code for
1793 STT_DATALABEL type. Create entry in got for
1794 datalabel version of symbol if datalabel_got.refcount > 0.
1795 (sh_elf_relocate_section): Use datalabel_got union.
1796 (sh_elf_gc_sweep_hook): Pull common code to initialize
1797 h and eh out of switch statement. Declare seen_stt_datalabel.
1798 Initialize it. Decrement datalabel_got.refcount for
1799 got relocs when seen_stt_datalabel is true.
1800 Decrement local_got_refcounts entry for datalabel got relocs
1801 of local symbols.
1802 (sh_elf_copy_indirect_symbol): Copy datalabel_got field over.
1803 (sh_elf_check_relocs): Declare seen_stt_datalabel.
1804 Initialize it. When seen_stt_datalabel is true, increment
1805 datalabel_got refcount rather than got.refcount.
1806 (sh_elf_finish_dynamic_symbol): Create relocs to
1807 initialize got entry for datalabel version of symbol.
1808
1809 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1810
1811 * Makefile.am: Run "make dep-am".
1812 (BFD_H_FILES): Remove version.h.
1813 * bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move..
1814 * version.h: ..to here.
1815 * configure.in (bfd_version_date): Remove.
1816 (AC_OUTPUT): Make bfdver.h from version.h.
1817 * bfd.c: #include "bfdver.h".
1818 * vms-hdr.c: Likewise.
1819 * Makefile.in: Regenerate.
1820 * bfd-in2.h: Regenerate.
1821 * configure: Regenerate.
1822 * po/SRC-POTFILES.in: Regenerate.
1823
1824 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1825
1826 * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
1827 bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64,
1828 bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64,
1829 bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850,
1830 bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8,
1831 bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple,
1832 bfd_mach_ia64_elf64, bfd_mach_ia64_elf32,
1833 bfd_mach_ip2022, bfd_mach_ip2022ext,
1834 bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber.
1835 * bfd-in2.h: Regenerate.
1836
1837 2002-10-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1838
1839 * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
1840 endian vector to targ_selvecs.
1841
1842 2002-10-13 Alexandre Oliva <aoliva@redhat.com>
1843
1844 * elfxx-mips.c (mips_elf_calculate_relocation): Take
1845 save_addend argument. Don't apply the 32-bit mask to a
1846 GPREL32 value if it's to be used in another relocation. Don't
1847 use forced-check computation of local_p to decide whether to
1848 add gp0 to GPREL16 value. Don't use only the lowest 16 bits
1849 of the addend of a non-in-place GPREL16 relocation.
1850 (_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
1851 mips_elf_calculate_relocation().
1852
1853 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
1854
1855 * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
1856 with symbols in other sections if we relaxed something; the sections
1857 output offsets must be re-computed before.
1858
1859 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
1860
1861 * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
1862 handling to use Elf_Internal_Sym.
1863 (m68hc11_elf_relax_delete_bytes): Likewise.
1864
1865 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1866
1867 * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
1868 sh_elf_object_p, dtpoff_base): New functions.
1869 (sh_elf_howto_table): Add TLS relocs.
1870 (sh_reloc_map): Likewise.
1871 (sh_elf_info_to_howto): Support TLS relocs.
1872 (elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
1873 (sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
1874 New macros.
1875 (sh_elf_obj_tdata): New.
1876 (elf_sh_link_hash_table): Add tls_ldm_got.
1877 (sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
1878 (allocate_dynrelocs): Support TLS relocs.
1879 (sh_elf_size_dynamic_sections): Likewise.
1880 (sh_elf_relocate_section): Support TLS relocs. Don't try to find
1881 .rela.got section when found already. Return false after printing
1882 error about unresolvable relocation.
1883 (sh_elf_gc_sweep_hook): Support TLS relocs.
1884 (sh_elf_check_relocs): Likewise.
1885 (sh_elf_finish_dynamic_symbol): Likewise.
1886 (bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
1887 * reloc.c: Add SH TLS relocs.
1888 * bfd-in2.h, libbfd.h: Regenerate.
1889
1890 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1891
1892 * Makefile.in: Regenerated.
1893
1894 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1895
1896 * Makefile.am: Run dep-am.
1897 (BFD_H_DEP): Add simple.c and linker.c.
1898 (BFD32_LIBS): Add simple.lo.
1899 (BFD32_LIBS_CFILES): Add simple.c.
1900 * Makefile.in: Regenerated.
1901 * bfd-in2.h: Regenerated.
1902 * simple.c: New file.
1903
1904 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1905
1906 * coff-arm.c (record_arm_to_thumb_glue): Avoid type-punned pointers.
1907 (record_thumb_to_arm_glue): Likewise.
1908 * ecoff.c (ecoff_link_add_externals): Likewise.
1909 * elf32-arm.h (record_arm_to_thumb_glue): Likewise.
1910 (record_thumb_to_arm_glue): Likewise.
1911 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
1912 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
1913 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1914 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
1915 * elf64-ppc.c (func_desc_adjust): Likewise.
1916 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1917 (sh64_elf64_create_dynamic_sections): Likewise.
1918 * elflink.c (_bfd_elf_create_got_section): Likewise.
1919 (_bfd_elf_create_dynamic_sections): Likewise.
1920 (_bfd_elf_create_linker_section): Likewise.
1921 * elflink.h (elf_add_default_symbol): Likewise.
1922 (elf_link_create_dynamic_sections): Likewise.
1923 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
1924 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Likewise.
1925 * elfxx-mips.c (mips_elf_create_got_section): Likewise.
1926 (_bfd_mips_elf_add_symbol_hook): Likewise.
1927 (_bfd_mips_elf_create_dynamic_sections): Likewise.
1928 * linker.c (generic_link_add_symbol_list): Likewise.
1929 * xcofflink.c (xcoff_link_add_symbols): Likewise.
1930
1931 * elfxx-ia64.c (oor_brl, oor_ip): Conditionally define.
1932
1933 * elf64-ppc.c (edit_opd): Only zero opd syms when function is
1934 completely removed. Correct local sym adjustment.
1935
1936 2002-10-10 Stephen Clarke <stephen.clarke@superh.com>
1937
1938 * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1939 Correct mistake in calculation of address of .got.
1940 * elf64-sh64.c (elf_sh64_pic_plt_entry_be,
1941 elf_sh64_pic_plt_entry_le): Likewise.
1942
1943 2002-10-09 Richard Shann <richard.shann@superh.com>
1944 Stephen Clarke <stephen.clarke@superh.com>
1945
1946 * Makefile.am: Add entries for elf32-sh64-lin.c and
1947 elf64-sh64-lin.c. Regenerate.
1948 * Makefile.in: Regenerate.
1949 * config.bfd: Change sh64eb-*-linux* and sh64-*-linux*
1950 to use sh64 vectors rather than sh vectors.
1951 * configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
1952 bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
1953 * configure: Regenerate.
1954 * elf32-sh64-lin.c: New file.
1955 * elf64-sh64-lin.c: New file.
1956 * targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
1957 bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
1958
1959 2002-10-08 H.J. Lu <hjl@gnu.org>
1960
1961 * elf32-i386.c (elf_i386_relocate_section): Re-arrange the
1962 IE->LE transition for R_386_TLS_IE.
1963
1964 2002-10-08 Alan Modra <amodra@bigpond.net.au>
1965
1966 * elf64-ppc.c (edit_opd): Correct test for discarded sections.
1967
1968 2002-10-07 Mark Elbrecht <snowball3@softhome.net>
1969
1970 * cofflink.c (mark_relocs): Don't mark relocations in excluded
1971 sections.
1972
1973 2002-10-07 Alan Modra <amodra@bigpond.net.au>
1974
1975 * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
1976 code.
1977
1978 * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
1979
1980 2002-10-06 Alan Modra <amodra@bigpond.net.au>
1981
1982 * opncls.c: Formatting.
1983 (_bfd_new_bfd): Use a smaller section hash table.
1984
1985 2002-10-05 Alexandre Oliva <aoliva@redhat.com>
1986
1987 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
1988 of the other two relocations packed with a REL32 to NONE.
1989
1990 2002-10-02 Stephen Clarke <stephen.clarke@superh.com>
1991
1992 * elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
1993 (sh_elf_link_hash_newfunc): Initialize it.
1994 (allocate_dynrelocs): Transfer gotplt refs from plt.refcount
1995 to got.refcount for symbols that are forced local or when
1996 we have direct got refs.
1997 (sh_elf_gc_sweep_hook): Adjust gotplt_refcount. Use it
1998 to correctly adjust got.refcount and plt.refcount.
1999 (sh_elf_copy_indirect_symbol): Copy gotplt_refcount across.
2000 (sh_elf_check_relocs): Increment gotplt_refcount.
2001
2002 2002-10-01 Jakub Jelinek <jakub@redhat.com>
2003
2004 * elf32-i386.c (elf_i386_relocate_section): Fix
2005 movl foo@indntpoff, %eax IE->LE transition.
2006
2007 2002-10-01 Jakub Jelinek <jakub@redhat.com>
2008
2009 * elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
2010 sequence and its transitions.
2011
2012 2002-10-01 Jakub Jelinek <jakub@redhat.com>
2013
2014 * elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32
2015 to st_value + addend in non-code sections.
2016 * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve
2017 R_X86_64_DTPOFF32 to st_value + addend in non-code sections.
2018
2019 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2020 Ken Raeburn <raeburn@cygnus.com>
2021 Aldy Hernandez <aldyh@redhat.com>
2022 Eric Christopher <echristo@redhat.com>
2023 Richard Sandiford <rsandifo@redhat.com>
2024
2025 * archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New.
2026 (bfd_mach_mips5500): New.
2027 * cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New.
2028 (arch_info_struct): Add corresponding entries here.
2029 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120,
2030 E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
2031 (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120,
2032 bfd_mach_mips5400 and bfd_mach_mips5500.
2033 (_bfd_mips_elf_mach_extends_p): New function.
2034 (_bfd_mips_elf_merge_private_bfd_data): Use it to help merge
2035 the EF_MIPS_MACH flags.
2036 * bfd-in2.h: Regenerate.
2037
2038 2002-09-28 Jason Thorpe <thorpej@wasabisystems.com>
2039
2040 * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
2041 .got sections.
2042
2043 2002-09-28 Alan Modra <amodra@bigpond.net.au>
2044
2045 * elf.c (map_sections_to_segments): Correct test for start of
2046 writable section in the same page as end of read-only section.
2047
2048 2002-09-27 Matt Thomas <matt@3am-software.com>
2049
2050 * elf32-vax.c (elf_vax_check_relocs): Remove unused
2051 local_got_refcounts usage. Remove allocation of got slot.
2052 (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage.
2053 Remove de-allocation of got slot.
2054 (elf_vax_size_dynamic_section): Fix some indentation. Add hash
2055 traversal for elf_vax_instantiate_got_entries. Allow empty .got
2056 sections to be GC'ed.
2057 (elf_vax_instantiate_got_entries): New function.
2058 (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove
2059 tests that are now handled by elf_vax_instantiate_got_entries.
2060 Assert GOT entry falls within .got section size. Remove redundant
2061 comparisions. Fix comments.
2062
2063 2002-09-27 Jakub Jelinek <jakub@redhat.com>
2064
2065 * reloc.c: Add x86-64 TLS relocs.
2066 * bfd-in2.h, libbfd.h: Rebuilt.
2067 * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
2068 relocs. Add TLS relocs.
2069 (x86_64_reloc_map): Add TLS relocs.
2070 (elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
2071 (struct elf64_x86_64_link_hash_entry): Add tls_type field.
2072 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
2073 (elf64_x86_64_hash_entry): Define.
2074 (struct elf64_x86_64_obj_tdata): New.
2075 (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
2076 (struct elf64_x86_64_link_hash_table): Add tls_ld_got.
2077 (link_hash_newfunc): Initialize tls_type.
2078 (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
2079 (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
2080 (elf64_x86_64_mkobject): New.
2081 (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
2082 (elf64_x86_64_tls_transition): New.
2083 (elf64_x86_64_check_relocs): Add r_type variable and use it.
2084 Handle TLS relocs.
2085 (elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
2086 (allocate_dynrelocs): Allocate GOT space for TLS relocs.
2087 (elf64_x86_64_size_dynamic_sections): Likewise.
2088 (dtpoff_base, tpoff): New.
2089 (elf64_x86_64_relocate_section): Handle TLS relocs.
2090 (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
2091 entries.
2092 (bfd_elf64_mkobject): Define.
2093
2094 * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
2095 DF_STATIC_TLS if shared.
2096
2097 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2098
2099 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
2100 empty relocation sections.
2101
2102 2002-09-26 Alan Modra <amodra@bigpond.net.au>
2103
2104 * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
2105 (ppc64_elf_build_stubs): Build them here instead.
2106
2107 2002-09-24 Jakub Jelinek <jakub@redhat.com>
2108
2109 * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE
2110 addend into r_addend, not *r_offset.
2111 (elf32_sparc_finish_dynamic_symbol): Likewise.
2112 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at
2113 R_SPARC_RELATIVE's r_offset.
2114
2115 2002-09-23 Nathan Tallent <eraxxon@alumni.rice.edu>
2116
2117 * dwarf2.c (decode_line_info): Update to correctly decode
2118 the (non-standard DWARF2) out-of-order address sequences
2119 generated by the Intel C++ 6.0 compiler for ia64-Linux.
2120
2121 2002-09-23 Mark Elbrecht <snowball3@softhome.net>
2122
2123 * config.bfd: For DJGPP targets, match with any cpu and any machine.
2124
2125 2002-09-23 Alan Modra <amodra@bigpond.net.au>
2126
2127 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
2128 for discarded FDEs. Remove redundant assignment.
2129 * elflink.h (elf_bfd_discard_info): Save edited relocs.
2130
2131 2002-09-22 H.J. Lu <hjl@gnu.org>
2132
2133 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Don't merge
2134 the relocation count between different .reloc sections.
2135
2136 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2137
2138 * elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and
2139 ".sdata.*" for R_PPC_SDAREL16, ".sbss2*" and ".sdata2*" for
2140 R_PPC_EMB_SDA2REL. Similarly for R_PPC_EMB_SDA21 and
2141 R_PPC_EMB_RELSDA.
2142
2143 * elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount"
2144 unsigned. Move "symcount" assignment out of loop.
2145 * Makefile.am: Run "make dep-am".
2146 * Makefile.in: Regenerate.
2147 * configure: Regenerate.
2148 * po/SRC-POTFILES.in: Regnerate.
2149
2150 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
2151
2152 * dwarf2.c (_bfd_dwarf2_find_nearest_line): If address length is
2153 zero, set it to 8 for (non-standard) 64-bit DWARF2 formats
2154 (e.g. IRIX64).
2155
2156 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2157
2158 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word
2159 even if generating R_PPC_RELATIVE reloc.
2160 (ppc_elf_relocate_section): Make sure relocation is performed
2161 if skip == -2. Clear memory at r_offset when creating dynamic
2162 relocation.
2163
2164 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2165
2166 * reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
2167 BFD_RELOC_386_TLS_GOTIE): Add.
2168 * bfd-in2.h, libbfd.h: Rebuilt.
2169 * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
2170 and R_386_TLS_GOTIE.
2171 (elf_i386_reloc_type_lookup): Handle it.
2172 (struct elf_i386_link_hash_entry): Change tls_type type to unsigned
2173 char instead of enum, change GOT_* into defines.
2174 (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
2175 (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
2176 (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is
2177 accessed both as normal and TLS symbol. Move R_386_TLS_LDM and
2178 R_386_PLT32 cases so that R_386_TLS_IE can fall through.
2179 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
2180 (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
2181 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
2182 (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
2183 tls_type is GOT_TLS_IE_BOTH.
2184 (elf_i386_size_dynamic_sections): Likewise.
2185 (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
2186 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
2187 (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
2188 all 4 GOT_TLS_* TLS types.
2189
2190 2002-09-19 Nick Clifton <nickc@redhat.com>
2191
2192 * elflink.h (elf_fix_symbol_flags): When examining weak symbols,
2193 follow indirect links.
2194
2195 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
2196
2197 * ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
2198 correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
2199 on 64 bit machines.
2200 (ecoff_swap_sym_in) <iss>: Likewise.
2201 * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Fix error reading
2202 ECOFF information: 'ioptMax' refers to the actual *size*
2203 of the optimization symtab, not the number of entries.
2204
2205 2002-09-19 Daniel Jacobowitz <drow@mvista.com>
2206
2207 * elf32-arm.h (elf32_arm_adjust_dynamic_symbol): Update
2208 ELF_LINK_HASH_NEEDS_PLT logic.
2209
2210 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2211
2212 * elfcode.h (elf_slurp_reloc_table_from_section): Check
2213 correct relocation count.
2214
2215 2002-09-17 Daniel Jacobowitz <drow@mvista.com>
2216
2217 * bfd-in.h (bfd_get_dynamic_symcount): Define.
2218 * bfd.c (struct _bfd): Add dynsymcount.
2219 * bfd-in2.h: Regenerated.
2220 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
2221 abfd->dynsymcount.
2222 * elfcode.h (elf_slurp_reloc_table_from_section): Check
2223 for overflow.
2224
2225 2002-09-17 Stan Cox <scox@redhat.com>
2226
2227 * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
2228 (mips_elf64_final_gp): Don't make up gp value.
2229 * elfn32-mips.c (mips_elf_final_gp): Likewise.
2230 * elfxx-mips.c (_bfd_mips_elf_final_link): Always create
2231 .MIPS.options/.options section.
2232
2233 2002-09-17 David O'Brien <obrien@FreeBSD.org>
2234
2235 * elf32-i386-fbsd.c: Always label using the EI_OSABI method.
2236 It is benign for FreeBSD < 4.1. Minor reformatting.
2237 * elf64-alpha-fbsd.c: Likewise.
2238
2239 2002-09-17 Jakub Jelinek <jakub@redhat.com>
2240
2241 * elf32-i386.c (elf_i386_relocate_section) [R_386_TLS_TPOFF32]: Negate
2242 addend.
2243
2244 2002-09-17 Alan Modra <amodra@bigpond.net.au>
2245
2246 * elf64-alpha.c (alpha_elf_size_info): Make static.
2247
2248 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2249
2250 * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2251 * cpu-tic4x.c: Ditto.
2252
2253 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2254
2255 * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
2256 duplicate define.
2257
2258 2002-09-16 Bruno Haible <bruno@clisp.org>
2259
2260 * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
2261 by a target variant implementation.
2262 * elf64-alpha.c: Likewise.
2263 * elf32-i386-fbsd.c: New file.
2264 * elf64-alpha-fbsd.c: New file.
2265 * targets.c: Support bfd_elf32_i386_freebsd_vec and
2266 bfd_elf64_alpha_freebsd_vec.
2267 * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
2268 bfd_elf64_alpha_freebsd_vec.
2269 * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
2270 (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
2271 (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
2272 (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
2273 (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
2274 * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
2275 specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.
2276
2277 2002-09-12 Jakub Jelinek <jakub@redhat.com>
2278
2279 * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is
2280 NULL.
2281 (elf_i386_relocate_section): Return false after printing error about
2282 unresolvable relocation.
2283
2284 2002-09-12 Nick Clifton <nickc@redhat.com>
2285
2286 * elf32-arm.h (elf32_arm_final_link_relocate): Fix handling of
2287 R_ARM_THM_PC11.
2288
2289 2002-09-11 Jeffrey Law <law@redhat.com>
2290
2291 * elf32-h8300.c (elf32_h8_relax_section): Fix typo.
2292
2293 2002-09-11 Andrew Haley <aph@cambridge.redhat.com>
2294
2295 * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and
2296 line_ptr before deciding we've found a symbol.
2297
2298 2002-09-11 Nick Clifton <nickc@redhat.com>
2299
2300 * po/da.po: New Danish translation file.
2301 * configure.in (LINGUAS): Add 'da'.
2302 * configure: Regenerate.
2303
2304 2002-09-10 Michael Snyder <msnyder@redhat.com>
2305
2306 * irix-core.c (do_sections, do_sections64): New functions.
2307 (irix_core_core_file_p): Call new functions do_sections,
2308 do_sections64, depending on corefile (32-bit or 64-bit).
2309
2310 2002-09-09 Richard Henderson <rth@redhat.com>
2311
2312 * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M
2313 and PCREL21F like PCREL21B.
2314
2315 2002-09-04 Kevin Buettner <kevinb@redhat.com>
2316
2317 * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default
2318 vector.
2319
2320 2002-09-02 Nick Clifton <nickc@redhat.com>
2321
2322 * elf32-v850.c (v850_elf_final_link_relocate): Use helpful
2323 names instead of cryptically overloaded bfd_reloc error
2324 codes.
2325 (v850_elf_relocate_section): Likewise.
2326 (v850_elf_relax_section): Replace caching of external symbols
2327 with caching of internal symbols obtained from calling
2328 bfd_elf_get_elf_syms().
2329 Fixup problems with freeing cached allocated memory blocks.
2330
2331 2002-09-02 Alan Modra <amodra@bigpond.net.au>
2332
2333 * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
2334 (bfd_pj_arch): Use bfd_default_scan.
2335 * cpu-v850.c (scan): Remove.
2336 (N): Use bfd_default_scan.
2337 * cpu-z8k.c (scan_mach): Remove.
2338 (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
2339 first. Use bfd_default_scan.
2340
2341 * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
2342 bfd_mach constants.
2343 (ecoff_get_magic): Likewise.
2344 * elf32-v850.c (v850_elf_object_p): Likewise.
2345 (v850_elf_final_write_processing): Likewise.
2346 * mipsbsd.c (MY(set_arch_mach)): Likewise.
2347 (MY(write_object_contents)): Likewise.
2348 * coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
2349 * coffcode.h (coff_write_object_contents): Likewise.
2350 (coff_set_arch_mach_hook): Add comment describing machine == 0.
2351 Remove unnecessary "machine" assignments.
2352 (coff_write_relocs): Test for the absolute section sym by testing
2353 section and flags.
2354
2355 * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
2356 and bfd_mach_i386_i386_intel_syntax.
2357 * pdp11.c (NAME(aout,machine_type)): Likewise.
2358
2359 2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2360
2361 * bfd-in.h (align_power): Cast constants to bfd_vma type.
2362 * bfd-in2.h (align_power): Likewise.
2363
2364 2002-08-30 Alan Modra <amodra@bigpond.net.au>
2365
2366 * Makefile.am: Run "make dep-am".
2367 * Makefile.in: Regenerate.
2368
2369 * cpu-avr.c (compatible): Don't use hard-coded mach constants.
2370 * cpu-powerpc.c (powerpc_compatible): Likewise.
2371 * cpu-rs6000.c (rs6000_compatible): Likewise.
2372
2373 2002-08-28 Catherine Moore <clm@redhat.com>
2374
2375 * elf32-v850.c (v850_elf_reloc_map): Add new relocs.
2376 (v850-elf-reloc): Don't resolve pc relative relocs.
2377 (v850_elf_ignore_reloc): New routine.
2378 (v850_elf_final_link_relocate): Handle new relocs.
2379 (v850_elf_relax_delete_bytes ): New routine.
2380 (v850_elf_relax_section): New routine.
2381 (bfd_elf32_bfd_relax_section): Define.
2382 (HOWTO): New entries for new relocs.
2383 * reloc.c (BFD_RELOC_V850_LONGCALL): New reloc.
2384 (BFD_RELOC_V850_LONGJUMP): New reloc.
2385 (BFD_RELOC_V850_ALIGN): New reloc.
2386 * archures.c: Remove redundant v850ea architecture.
2387 * cpu-v850.c: Remove redundant v850ea support.
2388 * libbfd.h: Regenerate.
2389 * bfd-in2.h: Regenerated.
2390
2391 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2392
2393 * config.bfd: Add tic4x-*-*coff* and c4x-*-*coff* target.
2394 * configure.in: Add tic4x_coff vector files.
2395 * configure: Regenerate.
2396 * Makefile.am: Add tic4x target.
2397 * Makefile.in: Regenerate.
2398
2399 2002-08-27 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2400
2401 * archures.c: Add the BFD arch type tic4x.
2402 * bfd-in.h: Add BFD_IN_MEMORY flag.
2403 * coff-tic4x.c: New file.
2404 * coffswap.h (coff_swap_sym_out): Add preadjuster.
2405 * cpu-tic4x.c: New file.
2406 * targets.c: Added tic4x- in list of xvecs.
2407 * ticoff.h: New file.
2408 * bfd-in2.h: Regenerate.
2409
2410 2002-08-27 Adam Nemet <anemet@lnxw.com>
2411
2412 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Set the last
2413 bit of DT_INIT and DT_FINI for Thumb functions.
2414
2415 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2416
2417 * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.
2418
2419 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2420
2421 * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8.
2422
2423 2002-08-24 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2424
2425 * elf32-sh.c (sh_elf_copy_indirect_symbol): New.
2426 (create_got_section, allocate_dynrelocs, readonly_dynrelocs):
2427 Likewise.
2428 (struct elf_sh_pcrel_relocs_copied): Removed.
2429 (struct elf_sh_dyn_relocs): New.
2430 (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied
2431 field with dyn_relocs.
2432 (struct elf_sh_link_hash_table): Add short-cuts to get dynamic
2433 sections and sym_sec.
2434 (sh_elf_link_hash_newfunc): Clear dyn_relocs.
2435 (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec.
2436 (sh_elf_create_dynamic_sections): Use create_got_section instead
2437 of _bfd_elf_create_got_section.
2438 (sh_elf_check_relocs): Likewise.
2439 (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic
2440 sections.
2441 (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections,
2442 sh_elf_relocate_section, sh_elf_check_relocs,
2443 sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections):
2444 Likewise.
2445 (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the
2446 dynamic relocations and avoiding the copy relocation when we
2447 didn't find any dynamic relocations in the section which has
2448 contents or is read-only.
2449 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2450 (sh_elf_size_dynamic_sections): Don't reset the size of
2451 .rela.got section even if dynamic_sections_created flag is off.
2452 Don't use sh_elf_discard_copies. Scan all input bfd and use
2453 allocate_dynrelocs. Call readonly_dynrelocs to determine
2454 whether we need DT_TEXTREL.
2455 (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine
2456 whether the symbol was never referred to.
2457 (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL.
2458 (sh_elf_gc_sweep_hook): Fill with the real sweep function.
2459 (sh_elf_check_relocs): Call create_got_section if the short-cut
2460 to .got is null. Increment reference counters only instead of
2461 allocating space on dynamic sections here. Don't conditionalize
2462 uninitialized got.offset value when marking the symbol as a
2463 global offset table entry. Keep relocations for symbols satisfied
2464 by a dynamic library to avoid copy relocations for the symbol.
2465 Set dynobj field of an elf hash table if needed.
2466 (sh_elf_finish_dynamic_sections): Handle null section pointer
2467 correctly.
2468 (elf_backend_copy_indirect_symbol): Defined.
2469 (elf_backend_can_refcount): Defined.
2470
2471 2002-08-23 Nick Clifton <nickc@redhat.com>
2472
2473 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Undo
2474 previous change. Add comment explaining why.
2475
2476 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
2477
2478 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
2479 contents of .got.plt[2] to tr0, not address of .got.plt.
2480 (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
2481 patching absolute plt entry. For shmedia plt entry, set bottom bit
2482 of branch to plt0 as this is a branch to an shmedia instruction.
2483 * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
2484 Copy contents of .got.plt[2] to tr0, not address of .got.plt.
2485 (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
2486 branch to plt0.
2487 (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
2488 patching absolute plt entry. For shmedia plt entry, branch to
2489 plt0 is now ptrel, so use relative offset. Set bottom bit of
2490 branch target as it is a branch to an shmedia instruction.
2491
2492 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>,
2493 Richard Shann <richard.shann@superh.com>
2494
2495 * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT
2496 value if .init is an SHmedia function. Similarly for DT_FINI.
2497 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
2498
2499 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
2500
2501 * elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
2502 dynamic section.
2503 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2504
2505 2002-08-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2506
2507 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple
2508 byte read when reading the return address register column.
2509
2510 2002-08-22 Nick Clifton <nickc@redhat.com>
2511
2512 * config.bfd: Add powepc64-*-*bsd* target.
2513
2514 2002-08-22 Graeme Peterson <gp@qnx.com>
2515
2516 * Makefile.am: Add entries for elf32-shqnx.c
2517 * Makefile.in: Regenerate.
2518 * config.bfd: Add support sh-*-nto* target.
2519 * configure.in: Add support for bfd_elf32_sh{l}qnx_vec.
2520 * configure: Regenerate.
2521 * elf32-qnx.h: Changed typo "elf_i386qnx_*" to "elf_qnx_*" .
2522 * elf32-sh.c: Do not include elf32-target.h if
2523 ELF32_SH_C_INCLUDED is defined.
2524 * elf32-shqnx.c: New file: Support for QNX.
2525 * targets.c: Add bfd_elf32_sh{l}qnx_vec.
2526
2527 2002-08-22 Nick Clifton <nickc@redhat.com>
2528
2529 * po/tr.po: Updated Turkish translation.
2530
2531 * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
2532 symbols are not read.
2533
2534 2002-08-22 Alan Modra <amodra@bigpond.net.au>
2535
2536 * elf32-m68hc11.c: Formatting fixes.
2537 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
2538 * elf32-m68hc12.c: Formatting fixes.
2539 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
2540
2541 2002-08-22 Alan Modra <amodra@bigpond.net.au>
2542
2543 * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and
2544 SEC_DATA.
2545 (pmac_xcoff_vec): Likewise.
2546 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2547 (aix5coff64_vec): Likewise.
2548
2549 2002-08-22 Alan Modra <amodra@bigpond.net.au>
2550
2551 * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data
2552 param to elf_backend_copy_indirect_symbol.
2553 (_bfd_elf_link_hash_copy_indirect): Likewise.
2554 * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust
2555 calls to copy_indirect_symbol.
2556 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
2557 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
2558 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
2559 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
2560 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
2561 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
2562 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
2563 * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2564 * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2565 * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly
2566 test refcounts for "used" values.
2567
2568 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
2569
2570 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to
2571 argument declaration.
2572
2573 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2574
2575 * archures.c (bfd_mach_ppc_e500): Added.
2576 * bfd-in2.h: Rebuilt.
2577 * cpu-powerpc.c (bfd_powerpc_archs): Added e500.
2578
2579 2002-08-19 Alan Modra <amodra@bigpond.net.au>
2580
2581 * elf32-m68hc12.c (elf_backend_can_gc_sections): False.
2582
2583 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2584
2585 * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to
2586 `bfd_byte'.
2587
2588 2002-08-17 Stan Cox <scox@redhat.com>
2589
2590 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use the
2591 IRIX 6 segment layout for NEWABI.
2592
2593 2002-08-16 Stephen Clarke <stephen.clarke@superh.com>
2594
2595 * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
2596 symbols when looking for section referred to by a relocation.
2597 * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
2598
2599 2002-08-15 Alan Modra <amodra@bigpond.net.au>
2600
2601 * elf32-i370.c: Move reloc enum to include/elf/i370.h.
2602
2603 2002-08-15 Hans-Peter Nilsson <hp@axis.com>
2604
2605 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Add
2606 missing check for whether the symbol is referenced by DSO before
2607 unexporting it as an unneeded dynamic symbol.
2608
2609 2002-08-14 H.J. Lu <hjl@gnu.org>
2610
2611 * libbfd.h: Regenerate.
2612
2613 2002-08-14 H.J. Lu <hjl@gnu.org>
2614
2615 * config.bfd: Always add 64bit vectors to 32bit Linux/mips.
2616
2617 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2618
2619 * elf32-m68hc11.c (m68hc11_relax_group): New to relax group of
2620 instructions.
2621 (m68hc11_direct_relax): New to define table of relaxable instructions.
2622 (find_relaxable_insn): New, find a relaxable insn.
2623 (compare_reloc): New to compare two relocs.
2624 (m68hc11_elf_relax_section): New, relax text sections.
2625 (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs.
2626 (elf32_m68hc11_check_relocs): New function for GC support.
2627 (elf32_m68hc11_relocate_section): New function for GC support.
2628 (bfd_elf32_bfd_relax_section): Define to support linker relaxation.
2629 (elf_backend_check_relocs): Likewise.
2630 (elf_backend_relocate_section): Likewise.
2631
2632 2002-08-13 H.J. Lu <hjl@gnu.org>
2633
2634 * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
2635 definitions in shared objects when checking symbol with
2636 undefined version.
2637
2638 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2639
2640 * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.
2641 (elf32_m68hc11_gc_sweep_hook): Likewise.
2642 (elf_backend_gc_mark_hook): Define for GC section support.
2643 (elf_backend_gc_sweep_hook): Likewise.
2644 (elf_backend_can_gc_sections): Likewise.
2645
2646 * elf32-m68hc12.c: Likewise.
2647
2648 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2649
2650 * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
2651 (_bfd_m68hc11_elf_merge_private_bfd_data): New function.
2652 (_bfd_m68hc11_elf_set_private_flags): New function.
2653 Use them to set/check/print ELF flags specific to 68HC11.
2654
2655 * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New.
2656 (_bfd_m68hc12_elf_merge_private_bfd_data): New function.
2657 (_bfd_m68hc12_elf_set_private_flags): New function.
2658 Use them to set/check/print ELF flags specific to 68HC12.
2659
2660 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2661
2662 * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;
2663 fix masks for PC-rel relocs.
2664 (m68hc11_elf_ignore_reloc): New function.
2665
2666 * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific
2667 68HC12 banked addressing relocs.
2668 (m68hc12_phys_addr): New to compute physical address of banked memory.
2669 (m68hc12_phys_page): Likewise for page.
2670 (m68hc12_addr_is_banked): New to see if address is in banked area.
2671 (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
2672
2673 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2674
2675 * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,
2676 BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE,
2677 BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12.
2678 * bfd-in2.h: Regenerate.
2679
2680 2002-08-12 H.J. Lu <hjl@gnu.org>
2681
2682 * elflink.h (elf_add_default_symbol): Preserve section across
2683 elf_merge_symbol.
2684
2685 2002-08-09 Graeme Peterson <gp@qnx.com>
2686
2687 * Makefile.am: Add entries for elf32-ppcqnx.c, and add
2688 elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c.
2689 * Makefile.in: Regenerate.
2690 * config.bfd: Add support for powerpc{le}-*-nto targets.
2691 * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec.
2692 * configure: Regenerate.
2693 * elf32-i386qnx.c: Moved backend functions into a QNX specific
2694 common file "elf32-qnx.h", and now include that file.
2695 * elf32-qnx.h: New file: QNX specific common elf backend.
2696 * elf32-ppc.c: Do not include elf32-target.h if
2697 ELF32_PPC_C_INCLUDED is defined.
2698 * elf32-ppcqnx.c: New file: Support for QNX.
2699 * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend.
2700 * targets.c: Add bfd_elf32_powerpc{le}qnx_vec.
2701
2702 2002-08-09 Nick Clifton <nickc@redhat.com>
2703
2704 * po/sv.po: Updated Swedish translation.
2705
2706 2002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2707
2708 * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
2709 g->global_gotsym is NULL.
2710
2711 2002-08-08 H.J. Lu <hjl@gnu.org>
2712
2713 * elflink.h (elf_add_default_symbol): Don't warn if a definition
2714 overrides an indirect versioned symbol.
2715
2716 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2717
2718 * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend
2719 for R_386_TLS_TPOFF32 relocs against symndx 0.
2720
2721 2002-08-07 H.J. Lu <hjl@gnu.org>
2722
2723 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol
2724 with undefined version if needed.
2725 (elf_link_assign_sym_version): Match a default symbol with a
2726 version without definition. No need to hide the default
2727 definition separately.
2728
2729 2002-08-08 Alan Modra <amodra@bigpond.net.au>
2730
2731 * elflink.h (elf_link_output_extsym): Don't output symbols from
2732 SEC_EXCLUDE sections.
2733
2734 * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
2735
2736 2002-08-07 Alan Modra <amodra@bigpond.net.au>
2737
2738 * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd
2739 entries.
2740
2741 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2742
2743 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
2744 mismatch.
2745
2746 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2747
2748 * elfxx-mips.c (ABI_64_P): Remove superfluous check.
2749
2750 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2751
2752 * elf32-mips.c (mips_reloc_map): Fix typo.
2753
2754 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2755
2756 * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
2757
2758 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2759
2760 * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
2761
2762 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2763
2764 * libxcoff.h: Use PARAMS on function declarations.
2765 * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc.
2766 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
2767
2768 * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in
2769 addend.
2770 * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise.
2771
2772 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2773
2774 * coff-rs6000.c: Formatting fixes.
2775 (xcoff_calculate_relocation): Use PARAMS in declaration.
2776 (xcoff_complain_overflow): Likewise.
2777 (xcoff_ppc_relocate_section): Use old-style function pointer call.
2778 (bfd_xcoff_backend_data): Remove useless comments.
2779 (rs6000coff_vec): Likewise.
2780 (bfd_pmac_xcoff_backend_data): Likewise.
2781 (pmac_xcoff_vec): Likewise.
2782
2783 * coff64-rs6000.c: Formatting fixes.
2784 (xcoff64_calculate_relocation): Use PARAMS in declaration.
2785 (xcoff64_ppc_relocate_section): Use old-style function pointer call.
2786 (bfd_xcoff_backend_data): Remove useless comments.
2787 (rs6000coff64_vec): Likewise.
2788 (bfd_xcoff_aix5_backend_data): Likewise.
2789 (aix5coff64_vec): Likewise.
2790
2791 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2792
2793 * coff-rs6000.c (xcoff_howto_table): Revert some of last change to
2794 mask entries. Use complain_overflow_dont for R_REF.
2795 (xcoff_reloc_type_ba): Revert last change.
2796 (xcoff_reloc_type_br): Likewise.
2797 (xcoff_reloc_type_crel): Likewise.
2798 (xcoff_ppc_relocate_section): Likewise.
2799 * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise.
2800 (xcoff64_ppc_relocate_section): Likewise.
2801 (xcoff64_howto_table): Revert some of last change to mask entries.
2802 Use complain_overflow_dont for R_REF.
2803
2804 * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all
2805 relocs with bitsize == 16 have size = 1.
2806 (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment.
2807 (xcoff_reloc_type_br): Likewise.
2808 (xcoff_reloc_type_crel): Likewise.
2809 (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly.
2810 * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and
2811 dst_mask adjustment.
2812 (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly.
2813 (xcoff64_howto_table): Fix src_mask entries. Make all relocs with
2814 bitsize == 16 have size = 1.
2815
2816 2002-08-01 Denis Chertykov <denisc@overta.ru>
2817
2818 * elf32-ip2k.c: Processor manufacturer changed to Ubicom.
2819 (struct misc): New field isymbuf. All free_* fields removed.
2820 (symbol_value): Pass in internal syms. No need to swap syms in.
2821 (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free
2822 possibly cached info.
2823 (tidyup_after_error): Removed.
2824 (ip2k_elf_relax_section_pass1): Don't use removed fields of struct
2825 misc. Use new field.
2826 (adjust_all_relocations): Use internal syms. No need to swap syms
2827 in and out.
2828 (add_page_insn): Don't use removed fields of struct misc.
2829
2830 2002-08-01 Nick Clifton <nickc@redhat.com>
2831
2832 * elf32-arm.h: Revert previous delta.
2833
2834 2002-08-01 Nick Clifton <nickc@redhat.com>
2835
2836 * configure.in (AM_INIT_AUTOMAKE): Bump version number.
2837 * configure: Regenerate.
2838
2839 2002-07-31 H.J. Lu <hjl@gnu.org>
2840
2841 * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is
2842 selected.
2843
2844 2002-07-31 H.J. Lu <hjl@gnu.org>
2845
2846 * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
2847 is selected.
2848
2849 2002-07-31 Jakub Jelinek <jakub@redhat.com>
2850
2851 * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
2852 if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
2853
2854 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2855
2856 * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate):
2857 There is no 8 byte relocation type for this architecture.
2858 (do_ns32k_reloc): Use bfd_vma instead of native types.
2859 (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data
2860 returns void.
2861 (_bfd_ns32k_put_displacement): Don't check for overflow. We can
2862 rely on generic code to do that.
2863 * aout-ns32k.c (howto_table): Add appropriate overflow detection
2864 to all table entries.
2865 (_bfd_ns32k_relocate_contents): put_data returns void.
2866 * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate)
2867 (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions
2868 return void.
2869
2870 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2871
2872 * aoutx.h (aout_link_check_ar_symbols): Whether to include an
2873 archive object is target dependant.
2874
2875 2002-07-31 Adam Nemet <anemet@lnxw.com>
2876
2877 * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE.
2878 (THUMB_PLT_ENTRY_SIZE): New macro.
2879 (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE.
2880 (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to
2881 ARM_PLT_ENTRY_SIZE.
2882 (elf32_arm_plt_entry): Likewise.
2883 (elf_backend_plt_header_size): Likewise.
2884 (elf32_thumb_plt0_entry): New global.
2885 (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries
2886 into .plt.thumb.
2887 (elf32_thumb_plt_entry): New global.
2888 (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for
2889 Thumb entries. Set the bottom bit of the corresponding GOT entry
2890 for a Thumb PLT entry.
2891 (struct elf32_arm_plt_entry_info): New structure.
2892 (struct elf32_arm_link_hash_entry, plt_info): New member of this
2893 type.
2894 (elf32_arm_link_hash_newfunc): Initialize new member.
2895 (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle
2896 relocations against the PLT.
2897 (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set
2898 first_rel_type if this is the first time we encounter the symbol.
2899 (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case.
2900 Determine if relocation needs a PLT entry. Set first_rel_type if
2901 this is the first time we encounter the symbol
2902 (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb
2903 functions as well.
2904 (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt.
2905 (elf32_arm_create_dynamic_sections): New function. Create the
2906 .plt.thumb section.
2907 (elf_backend_create_dynamic_sections): Call it.
2908
2909 2002-07-31 Nick Clifton <nickc@redhat.com>
2910
2911 * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
2912 'alternative' in order to avoid shadowing global symbol of the
2913 same name.
2914 * bfd-in2.h: Regenerate.
2915 * libbfd.h: Regenerate.
2916 * libcoff.h: Regenerate.
2917
2918 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2919
2920 * Makefile.am: Add n32 ABI support.
2921 * Makefile.in: Regenerate.
2922 * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64
2923 bit vectors for mips*-*-linux targets as optional.
2924 * configure.in: Add n32 ABI vectors.
2925 * configure: Regenerate.
2926 * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files.
2927 * elfn32-mips.c: New file, n32 ABI support.
2928 * targets.c: Add n32 ABI vectors.
2929
2930 2002-07-30 Graeme Peterson <gp@qnx.com>
2931
2932 * elfarmqnx-nabi.c: New file: Support for QNX.
2933 * config.bfd: Add support for arm-*-nto target.
2934 * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec.
2935 * configure: Regenerate.
2936 * Makefile.am: Add entries for elfarmqnx-nabi.c.
2937 * Makefile.in: Regenerate.
2938 * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined.
2939 Do not define global function if ELFARM_NABI_C_INCLUDED is defined.
2940 * elfarm-nabi.c: Do not include elf32-arm.h if
2941 ELFARM_NABI_C_INCLUDED is defined.
2942 * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
2943
2944 2002-07-30 Nick Clifton <nickc@redhat.com>
2945
2946 * po/sv.po: Updated Swedish translation.
2947
2948 2002-07-30 Jakub Jelinek <jakub@redhat.com>
2949
2950 * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
2951
2952 2002-07-30 Alan Modra <amodra@bigpond.net.au>
2953
2954 * aoutx.h (some_aout_object_p): Clean up tdata properly on error.
2955 * archive.c (bfd_generic_archive_p): Likewise.
2956 * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise.
2957 (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol.
2958 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
2959 (xcoff64_archive_p): Likewise.
2960 (xcoff64_openr_next_archived_file): Likewise.
2961 (xcoff64_archive_p): Clean up tdata properly on error.
2962 * coffgen.c (coff_real_object_p): Likewise.
2963 (coff_object_p): Release filehdr and opthdr.
2964 * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error.
2965 * ieee.c (ieee_archive_p): Likewise.
2966 * ihex.c (ihex_object_p): Likewise.
2967 (ihex_mkobject): Always allocate tdata.
2968 * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error.
2969 * srec.c (srec_mkobject): Always allocate tdata.
2970 (srec_object_p): Clean up tdata properly on error.
2971 (symbolsrec_object_p): Likewise.
2972 * versados.c (versados_object_p): Likewise.
2973 * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc,
2974 and bfd_realloc instead of realloc.
2975 (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections.
2976 * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in
2977 place of bfd_malloc, simplifying error freeing. Free hash table too.
2978 (vms_object_p): Clean up tdata on error.
2979 (vms_mkobject): Don't complain on stderr if vms_initialize fails.
2980 (vms_close_and_cleanup): Adjust for bfd_alloc use.
2981
2982 2002-07-30 Alan Modra <amodra@bigpond.net.au>
2983
2984 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
2985
2986 2002-07-26 Chris Demetriou <cgd@broadcom.com>
2987
2988 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
2989 flags into resulting BFD.
2990
2991 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2992
2993 From John Reiser <jreiser@BitWagon.com>
2994 * elf32-i386.c (elf_i386_link_hash_table_create): Clear
2995 tls_ldm_got.refcount.
2996
2997 2002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2998
2999 * elf64-mips.c: Update TODO comment.
3000 (mips_elf64_higher_reloc,mips_elf64_highest_reloc,
3001 mips_elf64_gprel16_reloca): Remove prototypes.
3002 (mips16_jump_reloc,mips16_gprel_reloc): Add functions.
3003 (UNUSED_RELOC): Replace by EMPTY_RELOC.
3004 (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
3005 wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
3006 R_MIPS_HIGHEST.
3007 (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
3008 R_MIPS_GOT16. Remove wrong comments.
3009 (elf_mips16_jump_howto,elf_mips16_gprel_howto,
3010 elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
3011 from elf32-mips.c.
3012 (mips_elf64_hi16_reloc): Fix formatting.
3013 (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
3014 (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
3015 Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
3016 (mips_elf64_gprel16_reloc): Make static. Add check for
3017 partial_inplace.
3018 (mips_elf64_gprel16_reloca): Remove.
3019 (mips_elf64_literal_reloc): New function.
3020 (mips_elf64_gprel32_reloc): Fix formatting.
3021 (mips_elf64_shift6_reloc): Fix comment. Make static.
3022 (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
3023 elf32-mips.c.
3024 (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
3025 elf32-mips.c
3026 (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
3027 specific relocations.
3028 (mips_elf64_rtype_to_howto): Enable GNU specific relocations.
3029 (mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
3030 (ELF_MAXPAGESIZE): Add comment.
3031
3032 2002-07-25 Nick Clifton <nickc@redhat.com>
3033
3034 * po/sv.po: Updated Swedish translation.
3035 * po/es.po: Updated Spanish translation.
3036 * po/fr.po: Updated French translation.
3037
3038 2002-07-25 Alan Modra <amodra@bigpond.net.au>
3039
3040 * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
3041 as elf_link_record_local_dynamic_symbol.
3042 (_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
3043 (elf_link_record_local_dynamic_symbol): Declare. Now returns int.
3044 * elflink.h (elf_link_record_local_dynamic_symbol): Move to..
3045 * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
3046 attempt is made to record a symbol in a discarded section, and
3047 return `2' in that case.
3048
3049 2002-07-24 Nick Clifton <nickc@redhat.com>
3050
3051 * po/sv.po: Updated Swedish translation.
3052 * po/es.po: Updated Spanish translation.
3053
3054 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3055
3056 * po/SRC-POTFILES.in: Regenerate.
3057
3058 * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
3059 immediately. Remove code handling relocatable linking.
3060 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
3061 * elf32-cris.c (cris_elf_relocate_section): Likewise.
3062 * elf32-fr30.c (elf32_frv_relocate_section): Likewise.
3063 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
3064 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
3065 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3066 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
3067 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3068 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3069 * elf32-vax.c (elf_vax_relocate_section): Likewise.
3070 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3071 * elf32-avr.c (elf_backend_rela_normal): Define.
3072 * elf32-cris.c: Likewise.
3073 * elf32-fr30.c: Likewise.
3074 * elf32-frv.c: Likewise.
3075 * elf32-h8300.c: Likewise.
3076 * elf32-hppa.c: Likewise.
3077 * elf32-ip2k.c: Likewise.
3078 * elf32-sparc.c: Likewise.
3079 * elf32-v850.c: Likewise.
3080 * elf32-vax.c: Likewise.
3081 * elf64-hppa.c: Likewise.
3082 * elf64-sparc.c: Likewise.
3083 * elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
3084 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
3085 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
3086 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
3087 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3088 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
3089 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
3090 * elf-m10200.c (USE_RELA): Don't define.
3091 * elf-m10300.c: Likewise.
3092 * elfarm-oabi.c: Likewise.
3093 * elf32-i370.c: Likewise.
3094 * elf32-ip2k.c: Likewise.
3095 * elf32-m68k.c: Likewise.
3096 * elf32-mcore.c: Likewise.
3097 * elf32-ppc.c: Likewise.
3098 * elf32-s390.c: Likewise.
3099 * elf32-vax.c: Likewise.
3100 * elf64-ppc.c: Likewise.
3101 * elf64-s390.c: Likewise.
3102 * elf64-x86-64.c: Likewise.
3103 * elfxx-ia64.c: Likewise.
3104 * elf32-avr.c (USE_REL): Don't undef.
3105 * elf32-ip2k.c: Likewise.
3106
3107 2002-07-23 Nick Clifton <nickc@redhat.com>
3108
3109 * elf-bfd.h (struct elf_backend_data): Add new bitfield
3110 'want_p_paddr_set_to_zero'.
3111 * elfxx-target.h: Set default value for want_p_paddr_set_to_zero
3112 to false;
3113 * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target.
3114 * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero.
3115
3116 2002-07-23 Gabor Keresztfalvi <keresztg@mail.com>
3117
3118 * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of
3119 the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to
3120 show the Copyright string.
3121 Minor formatting tidy ups.
3122
3123 2002-07-23 Nick Clifton <nickc@redhat.com>
3124
3125 * po/fr.po: Updated French translation.
3126 * po/sv.po: Updated Swedish translation.
3127
3128 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3129
3130 * elflink.h (elf_link_input_bfd): Don't change internal symbols
3131 when outputting relocs.
3132
3133 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
3134
3135 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
3136 DT_PLTGOT into the dynamic section if there is a PLT.
3137
3138 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3139
3140 * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
3141 elf32-mips.c.
3142 (_bfd_mips_elf_write_section): Likewise.
3143 * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
3144 (_bfd_mips_elf_write_section): Likewise.
3145 * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
3146 (elf32_mips_write_section): Likewise.
3147 * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
3148 (_bfd_mips_elf_write_section): Likewise.
3149
3150 2002-07-19 Alan Modra <amodra@bigpond.net.au>
3151
3152 * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
3153 PT_IA_64_UNWIND segments for a given section.
3154
3155 2002-07-17 H.J. Lu <hjl@gnu.org>
3156
3157 * Makefile.am: Fix a typo.
3158 * Makefile.in: Regenerate.
3159
3160 2002-07-15 Denis Chertykov <denisc@overta.ru>
3161 Frank Ch. Eigler <fche@redhat.com>
3162 Ben Elliston <bje@redhat.com>
3163 Alan Lehotsky <alehotsky@cygnus.com>
3164 John Healy <jhealy@redhat.com>
3165 Graham Stott <grahams@redhat.com>
3166 Jeff Johnston <jjohnstn@redhat.com>
3167
3168 * Makefile.am: Add support for ip2k.
3169 * Makefile.in: Regenerate.
3170 * doc/Makefile.in: Regenerate.
3171 * archures.c: Add support for ip2k.
3172 * config.bfd: Add support for ip2k.
3173 * configure.in: Add support for ip2k.
3174 * configure: Regenerate.
3175 * reloc.c: Add support for ip2k.
3176 * targets.c: Add support for ip2k.
3177 * bfd-in2.h: Regenerate.
3178 * libbfd.h: Regenerate.
3179 * cpu-ip2k.c: New file.
3180 * elf32-ip2k.c: New file.
3181
3182 2002-07-17 Ian Rickards <irickard@arm.com>
3183
3184 * dwarf2.c (concat_filename): If we can't establish the directory
3185 just return the filename.
3186
3187 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3188
3189 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
3190
3191 2002-07-16 Alan Modra <amodra@bigpond.net.au>
3192
3193 * elflink.h: Formatting fixes, tidy prototypes.
3194 (elf_link_assign_sym_version): Move common code out of loop.
3195
3196 2002-07-16 Alan Modra <amodra@bigpond.net.au>
3197
3198 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
3199 reloc section size is zero. Correct reloc output location.
3200
3201 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3202
3203 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
3204 the final type for the e_fsel selector when generating PA2.0W code.
3205 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
3206 relocations.
3207
3208 2002-07-14 H.J. Lu <hjl@gnu.org>
3209
3210 * elflink.h (elf_link_assign_sym_version): Hide the default
3211 definition if there is a hidden versioned definition.
3212
3213 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
3214
3215 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
3216 dynamic reference test in assertion when initializing GOT with
3217 static contents. Just assert that there are either no dynamic
3218 sections, the symbol is defined in the regular objects or that the
3219 symbol is undef weak. Tweak comment.
3220 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
3221 only if the symbol isn't defined in the program and isn't undef
3222 weak.
3223 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
3224 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
3225 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
3226 (elf_cris_discard_excess_program_dynamics): Don't consider
3227 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
3228
3229 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3230
3231 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
3232 unresolved debugging relocs in dynamic applications.
3233 * elf32-s390.c (elf_s390_relocate_section): Likewise.
3234 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3235 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
3236 * elf64-s390.c (elf_s390_relocate_section): Likewise.
3237 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3238 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3239
3240 2002-07-10 Alan Modra <amodra@bigpond.net.au>
3241
3242 * elf64-ppc.c (ONES): Define.
3243 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
3244 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
3245 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
3246
3247 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
3248 (ppc64_elf_set_private_flags): Delete.
3249 (ppc64_elf_section_from_shdr): Delete.
3250 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
3251 (ppc64_elf_fake_sections): Delete.
3252 (bfd_elf64_bfd_set_private_flags): Don't define.
3253 (bfd_elf64_get_symbol_info): Likewise.
3254 (elf_backend_section_from_shdr): Likewise.
3255 (elf_backend_fake_sections): Likewise.
3256
3257 2002-07-10 Marco Walther <Marco.Walther@sun.com>
3258
3259 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
3260 when not already set.
3261 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
3262 (elf_backend_fake_sections): Define.
3263
3264 2002-07-10 Alan Modra <amodra@bigpond.net.au>
3265
3266 * merge.c (_bfd_merge_section): Remove redundant output_section check.
3267 Formatting.
3268 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
3269
3270 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
3271
3272 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
3273 NULL sym_hashes to just before use.
3274 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
3275 symbol with non-default visibility.
3276 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
3277 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
3278 Ditto.
3279 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
3280 symbol with non-default visibility.
3281 (cris_elf_check_relocs): At tests for local symbol before
3282 increasing h->plt.refcount, also check for non-default
3283 visibility. Ditto when checking for local symbol to eliminate
3284 pc-relative runtime relocs.
3285
3286 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3287
3288 * elf.c: Formatting.
3289 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
3290 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
3291 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
3292 segments.
3293
3294 2002-07-07 Mark Mitchell <mark@codesourcery.com>
3295 Alan Modra <amodra@bigpond.net.au>
3296
3297 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
3298 account the impact of relocation count overflow when computing
3299 section offsets.
3300 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
3301 or not to apply the PE COFF reloc overflow handling. Fix a
3302 fencepost error in deciding whether or not to use that technique.
3303
3304 2002-07-07 Alan Modra <amodra@bigpond.net.au>
3305
3306 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
3307 change type of locsyms.
3308 (bfd_elf_get_elf_syms): Declare.
3309 * elf.c (bfd_elf_get_elf_syms): New function.
3310 (group_signature): Use bfd_elf_get_elf_syms.
3311 (bfd_section_from_r_symndx): Likewise.
3312 * elfcode.h (elf_slurp_symbol_table): Likewise.
3313 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
3314 (elf_link_add_object_symbols): Likewise. Reorganise to increase
3315 locality of various data structures. Properly free internal relocs.
3316 (elf_bfd_final_link): Properly free internal relocs.
3317 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
3318 (elf_link_input_bfd): Likewise.
3319 (elf_gc_mark): Likewise. Properly free internal relocs.
3320 (elf_gc_sweep): Properly free internal relocs.
3321 (elf_reloc_symbol_deleted_p): No need to swap syms in.
3322 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
3323 internal relocs.
3324 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
3325 Properly free possibly cached info.
3326 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
3327 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
3328 symbol swapping code.
3329 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
3330 Properly free possibly cached info.
3331 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
3332 (mn10300_elf_relax_delete_bytes): Likewise.
3333 (mn10300_elf_symbol_address_p): Likewise.
3334 (mn10300_elf_get_relocated_section_contents): Likewise.
3335 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
3336 (elf32_h8_relax_delete_bytes): Likewise.
3337 (elf32_h8_symbol_address_p): Likewise.
3338 (elf32_h8_get_relocated_section_contents): Likewise.
3339 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
3340 (m32r_elf_relax_delete_bytes): Likewise.
3341 (m32r_elf_get_relocated_section_contents): Likewise.
3342 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
3343 elf_section_data to determine whether cached.
3344 (sh_elf_relax_section): As above for elf-m10200.c.
3345 (sh_elf_relax_delete_bytes): Likewise.
3346 (sh_elf_get_relocated_section_contents): Likewise.
3347 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
3348 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
3349 reading of local syms.
3350 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
3351 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
3352 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
3353 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
3354 relocs.
3355 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
3356 free internal relocs and section contents. Don't read symbols.
3357 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
3358 (elf32_hppa_size_stubs): Don't free local syms.
3359 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
3360 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
3361 possibly cached info.
3362 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
3363 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
3364 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
3365 all_local_syms.
3366 (get_local_syms): Delete function.
3367 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
3368 on exit.
3369 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
3370
3371 2002-07-05 Jim Wilson <wilson@redhat.com>
3372
3373 * syms.c (decode_section_type): New.
3374 (bfd_decode_symclass): Call decode_section_type.
3375
3376 2002-07-04 Jakub Jelinek <jakub@redhat.com>
3377
3378 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
3379 section content start.
3380 Reported by Michael Schumacher <mike@hightec-rt.com>.
3381
3382 2002-07-04 Alan Modra <amodra@bigpond.net.au>
3383
3384 * section.c (_bfd_strip_section_from_output): Remove unnecessary
3385 link order code. Don't actually remove the output section here;
3386 Just set a flag for the linker to do so.
3387 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
3388 sections when setting up output section dynsyms.
3389
3390 2002-07-04 Alan Modra <amodra@bigpond.net.au>
3391
3392 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
3393 fudge.
3394 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
3395 libs here instead.
3396
3397 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3398
3399 * elf64-s390.c (create_got_section): Set .got section alignment to
3400 8 bytes.
3401 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
3402
3403 2002-07-02 Alan Modra <amodra@bigpond.net.au>
3404
3405 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
3406
3407 2002-07-01 Matt Thomas <matt@3am-software.com>
3408
3409 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
3410 to EF_VAX_*.
3411
3412 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3413
3414 * elfxx-mips.c (ABI_64_P): Fix comment.
3415 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
3416 new section names for N64 ABI.
3417 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
3418 (mips_elf_calculate_relocation): Code formatting.
3419 (mips_elf_create_dynamic_relocation): Likewise.
3420 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
3421 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
3422 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
3423 in any NewABI.
3424 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
3425 for NewABI.
3426 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
3427 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
3428 here, too.
3429
3430 2002-07-01 Andreas Schwab <schwab@suse.de>
3431
3432 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
3433 R_X86_64_64 to R_X86_64_RELATIVE.
3434
3435 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
3436
3437 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
3438 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
3439 Run "make dep-am".
3440 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
3441 host_aout_vec.
3442 * configure.in (vaxbsd_vec): Add.
3443 * targets.c (vaxbsd_vec): Add.
3444 * Makefile.in: Rebuild.
3445 * configure: Rebuild.
3446 * po/SRC-POTFILES.in: Rebuild.
3447
3448 2002-07-01 Alan Modra <amodra@bigpond.net.au>
3449
3450 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
3451 examining to gc_mark_hook, rather than the bfd.
3452 (elf_gc_sections): Adjust.
3453 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
3454 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
3455 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
3456 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
3457 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
3458 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
3459 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
3460 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
3461 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
3462 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
3463 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
3464 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
3465 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
3466 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
3467 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
3468 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
3469 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
3470 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
3471 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
3472 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
3473 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
3474 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
3475 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
3476 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
3477 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
3478 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
3479 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
3480 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
3481 redundant local sym tests.
3482 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
3483 (link_hash_newfunc): Init is_entry.
3484 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
3485 (ppc64_elf_link_hash_table_create): Init all_local_syms.
3486 (create_linkage_sections): Use bfd_make_section_anyway rather than
3487 bfd_make_section.
3488 (ppc64_elf_mark_entry_syms): New function.
3489 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
3490 up opd entry to function section map.
3491 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
3492 relocs that reference the opd section.
3493 (edit_opd): New function.
3494 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
3495 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
3496 (get_local_syms): Do so here. Exit if we already have local syms.
3497 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
3498 read local syms on non-ELF input.
3499 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
3500 than duplicating it's function here. Adjust free of internal
3501 relocs to suit.
3502 (ppc64_elf_relocate_section): Adjust local syms in opd section.
3503 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
3504 * elf32-hppa.c (elf32_hppa_size_stubs): Call
3505 _bfd_elf32_link_read_relocs rather than duplicating it's function
3506 here. Adjust free of internal relocs to suit.
3507
3508 2002-07-01 Andreas Jaeger <aj@suse.de>
3509
3510 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
3511 are not allowed in shared libs code, enforce -fPIC.
3512
3513 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
3514
3515 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
3516 trailing zero-sequences when there's previous left-over data.
3517
3518 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
3519
3520 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
3521 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
3522 and opd_rel_sec in order for starting rela section. Check _raw_size.
3523 (elf_backend_reloc_type_class): Define.
3524
3525 2002-06-27 Kevin Buettner <kevinb@redhat.com>
3526
3527 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
3528 DWARF2 formats.
3529
3530 2002-06-27 Alan Modra <amodra@bigpond.net.au>
3531
3532 * cpu-powerpc.c: Comment on ordering of arch_info.
3533 * elf32-ppc.c (ppc_elf_object_p): New function.
3534 (elf_backend_object_p): Define.
3535 * elf64-ppc.c (ppc64_elf_object_p): New function.
3536 (elf_backend_object_p): Define.
3537
3538 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3539
3540 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
3541 * configure: Regenerate.
3542
3543 2002-06-25 Jason Eckhardt <jle@rice.edu>
3544
3545 * dwarf2.c (decode_line_info): Check unit->addr_size
3546 to read in the proper number of prologue bytes.
3547
3548 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
3549
3550 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
3551 aix5coff64_vec if 64-bit bfd support has been enabled.
3552 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
3553 been enabled.
3554
3555 * targets.c (_bfd_target_vector[]): Only include
3556 aix5coff64_vec if 64-bit bfd support has been enabled.
3557
3558 2002-06-25 Alan Modra <amodra@bigpond.net.au>
3559
3560 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
3561 * elf32-hppa.c (hppa_add_stub): Likewise.
3562 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3563 * elflink.h (elf_add_default_symbol): Fix comment typo.
3564 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
3565 (elf_link_add_object_symbols): Likewise.
3566 (elf_link_assign_sym_version): Likewise.
3567 * hash.c (bfd_hash_lookup): Likewise.
3568 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
3569 * section.c (bfd_get_unique_section_name): Likewise.
3570 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
3571 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
3572 (assign_section_numbers): Likewise.
3573 (_bfd_elfcore_make_pseudosection): Likewise.
3574 (elfcore_grok_lwpstatus): Likewise.
3575 (elfcore_grok_win32pstatus): Likewise.
3576 (elfcore_write_note): Constify input params. Use PTR instead of
3577 void *. Include terminating NUL in namesz. Correct padding.
3578 Support NULL "name" param. Use memcpy instead of strcpy.
3579 (elfcore_write_prpsinfo): Constify input params.
3580 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
3581 (elfcore_write_lwpstatus): Likewise.
3582 (elfcore_write_pstatus): Likewise.
3583 (elfcore_write_prfpreg): Likewise.
3584 (elfcore_write_prxfpreg): Likewise.
3585 * elf-bfd.h (elfcore_write_note): Update declaration.
3586 (elfcore_write_prpsinfo): Likewise.
3587 (elfcore_write_prstatus): Likewise.
3588 (elfcore_write_pstatus): Likewise.
3589 (elfcore_write_prfpreg): Likewise.
3590 (elfcore_write_prxfpreg): Likewise.
3591 (elfcore_write_lwpstatus): Likewise.
3592
3593 2002-06-25 Jason Eckhardt <jle@rice.edu>
3594
3595 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
3596 symbols of type stProc and stStaticProc.
3597
3598 2002-06-25 Nick Clifton <nickc@redhat.com>
3599
3600 * ecoff.c: VArious formatting fixes.
3601
3602 2002-06-25 Alan Modra <amodra@bigpond.net.au>
3603
3604 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
3605
3606 2002-06-25 Alan Modra <amodra@bigpond.net.au>
3607
3608 * aout-adobe.c: Don't compare against "true" or "false.
3609 * aout-target.h: Likewise.
3610 * aoutx.h: Likewise.
3611 * archive.c: Likewise.
3612 * bout.c: Likewise.
3613 * cache.c: Likewise.
3614 * coff-a29k.c: Likewise.
3615 * coff-alpha.c: Likewise.
3616 * coff-i386.c: Likewise.
3617 * coff-mips.c: Likewise.
3618 * coff-or32.c: Likewise.
3619 * coff64-rs6000.c: Likewise.
3620 * coffcode.h: Likewise.
3621 * coffgen.c: Likewise.
3622 * cpu-ns32k.c: Likewise.
3623 * ecoff.c: Likewise.
3624 * ecofflink.c: Likewise.
3625 * elf.c: Likewise.
3626 * elf32-arm.h: Likewise.
3627 * elf32-cris.c: Likewise.
3628 * elf32-d30v.c: Likewise.
3629 * elf32-i386.c: Likewise.
3630 * elf32-mcore.c: Likewise.
3631 * elf32-ppc.c: Likewise.
3632 * elf32-sh.c: Likewise.
3633 * elf32-sh64.c: Likewise.
3634 * elf32-v850.c: Likewise.
3635 * elf64-alpha.c: Likewise.
3636 * elf64-sh64.c: Likewise.
3637 * elfcode.h: Likewise.
3638 * elfcore.h: Likewise.
3639 * elflink.h: Likewise.
3640 * elfxx-mips.c: Likewise.
3641 * i386os9k.c: Likewise.
3642 * ieee.c: Likewise.
3643 * libbfd.c: Likewise.
3644 * linker.c: Likewise.
3645 * mmo.c: Likewise.
3646 * nlm32-alpha.c: Likewise.
3647 * nlm32-i386.c: Likewise.
3648 * nlm32-ppc.c: Likewise.
3649 * nlm32-sparc.c: Likewise.
3650 * nlmcode.h: Likewise.
3651 * oasys.c: Likewise.
3652 * pdp11.c: Likewise.
3653 * peicode.h: Likewise.
3654 * reloc.c: Likewise.
3655 * som.c: Likewise.
3656 * srec.c: Likewise.
3657 * tekhex.c: Likewise.
3658 * vms.c: Likewise.
3659 * xcofflink.c: Likewise.
3660 * elf64-sparc.c: Edit comment to not use "== false".
3661
3662 * aoutf1.h: Don't use "? true : false".
3663 * ecoff.c: Likewise.
3664 * format.c: Likewise.
3665 * ieee.c: Likewise.
3666 * linker.c: Likewise.
3667 * mmo.c: Likewise.
3668 * oasys.c: Likewise.
3669
3670 2002-06-23 H.J. Lu <hjl@gnu.org>
3671
3672 * elflink.h (elf_link_add_archive_symbols): For the default
3673 version, check references with only one `@' first.
3674
3675 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
3676
3677 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
3678 function.
3679 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
3680 symbol table.
3681 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
3682 (elf64_hppa_size_dynamic_sections): Revise to use
3683 elf64_hppa_mark_milli_and_exported_functions.
3684 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
3685 symbols out of dynamic symbol table.
3686
3687 2002-06-23 Alan Modra <amodra@bigpond.net.au>
3688
3689 * Makefile.in: Regenerate.
3690 * libbfd.h: Regenerate.
3691 * bfd-in2.h: Regenerate.
3692 * configure: Regenerate.
3693 * po/SRC-POTFILES.in: Regenerate.
3694
3695 * elflink.h: Comment typo fixes.
3696
3697 2002-06-23 H.J. Lu <hjl@gnu.org>
3698
3699 * elf-bfd.h (elf_link_loaded_list): New structure.
3700 (elf_link_hash_table): Add "loaded".
3701 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
3702 * elflink.h (elf_link_check_versioned_symbol): New function.
3703 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
3704
3705 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
3706
3707 * elflink.h (size_dynamic_sections): If the target does not
3708 support an ELF style hash table, return true, indicating that
3709 nothing needed to be done, rather than false, indicating that the
3710 section's size could not be computed.
3711
3712 2002-06-18 Dave Brolley <brolley@redhat.com>
3713
3714 From Catherine Moore, Michael Meissner, Dave Brolley:
3715 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
3716 * targets.c: Support bfd_elf32_frv_vec.
3717 * reloc.c: Add FRV relocs.
3718 * configure.in: Add support for bfd-elf32-frv-vec.
3719 * config.bfd (targ_cpu): Add support for frv-*-elf.
3720 * archures.c: Add frv arch and machines.
3721 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
3722 (ALL_MACHINES_CFILES): Add cpu-frv.c.
3723 (BFD32_BACKENDS): Add elf32-frv.lo.
3724 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
3725 (cpu-frv.lo): New target.
3726 (elf32-frv.lo): New target.
3727 * cpu-frv.c: New file.
3728 * elf32-frv.c: New file.
3729
3730 2002-06-18 Jakub Jelinek <jakub@redhat.com>
3731
3732 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
3733 e_shnum == 0.
3734 Only read the first section header if e_shoff is non-zero.
3735 Don't consider e_shstrndx if there are no sections.
3736
3737 2002-06-17 Tom Rix <trix@redhat.com>
3738
3739 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
3740 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
3741 complain_overflow_bitfield.
3742
3743 2002-06-17 Alan Modra <amodra@bigpond.net.au>
3744
3745 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
3746 (bfd_fdopenr): Likewise.
3747 (bfd_openstreamr): Likewise.
3748 (bfd_openw): Likewise.
3749
3750 * targets.c: Sort target vecs.
3751 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
3752 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
3753 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
3754 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
3755 * configure.in: Sort target vecs. Add m88kmach3_vec.
3756 * configure: Regenerate.
3757
3758 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
3759
3760 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
3761 bpo_reloc_no to break sort order ties, not address of items.
3762
3763 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3764
3765 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
3766 Skip excluded sections in determing __gp value.
3767 (elf_hppa_final_link_relocate): Use the symbol's address in
3768 R_PARISC_FPTR64 relocations that don't need an opd entry.
3769 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
3770 (elf64_hppa_finalize_dynreloc): Likewise.
3771 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
3772 (elf64_hppa_finish_dynamic_symbol): Break up assert.
3773
3774 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
3775
3776 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
3777 alignment for .bss, .data and .text sections so that sse and sse2
3778 code will work.
3779 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3780
3781 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
3782
3783 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
3784 sh[1234]*-elf*.
3785
3786 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3787
3788 * elflink.h (elf_bfd_final_link): Improve error handling for missing
3789 dynamic sections.
3790
3791 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
3792 for a symbol that has no output section.
3793 (allocate_dynrel_entries): Correct comment.
3794 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
3795 unless we want one.
3796 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
3797 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
3798 with no section. Remove unnecessary parentheses.
3799
3800 2002-06-11 Tom Rix <trix@redhat.com>
3801
3802 * coffcode.h (coff_compute_section_file_positions): Add data
3803 section to AIX loader alignment check.
3804
3805 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
3806 alignment to 4 bytes.
3807 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
3808 power accessor macro.
3809 (do_shared_object_padding): Remove invalid assertion.
3810
3811 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
3812
3813 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
3814 for removed output sections.
3815
3816 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
3817
3818 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
3819 htab_alloc.
3820 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
3821
3822 2002-06-08 H.J. Lu <hjl@gnu.org>
3823
3824 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
3825 work around a long long bug in gcc 2.96 on mips.
3826
3827 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3828
3829 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
3830 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
3831 Regenerate dependency lists.
3832 * Makefile.in: Regenerate.
3833 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
3834 vax1knetbsd_vec to targ_selvecs.
3835 * configure.in: Add vax1knetbsd_vec.
3836 * configure: Regenerate.
3837 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
3838 * vax1knetbsd.c: New file.
3839 * vaxnetbsd.c: Update copyright years.
3840 (TARGET_PAGE_SIZE): Set to 0x1000.
3841 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
3842
3843 2002-06-08 Matt Thomas <matt@3am-software.com>
3844
3845 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
3846
3847 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3848
3849 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
3850
3851 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3852
3853 * Makefile.am: Run "make dep-am".
3854 * Makefile.in: Regenerate.
3855
3856 * armnetbsd.c: Replace CONST with const.
3857 * corefile.c: Likewise.
3858 * elf32-dlx.c: Likewise.
3859 * elf64-mips.c: Likewise.
3860 * mmo.c: Likewise.
3861 * ns32knetbsd.c: Likewise.
3862
3863 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
3864 table is elf64-sparc.
3865
3866 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3867
3868 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
3869 Fix RELA addends to get not shifted in the result. Don't do special
3870 handling of R_MIPS_64 for NewABI.
3871
3872 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3873
3874 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
3875 (NAME(aout,slurp_reloc_table)): Likewise.
3876 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
3877 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
3878 (xcoff_write_archive_contents_big): Likewise.
3879 (xcoff_generate_rtinit): Likewise.
3880 (xcoff_generate_rtinit): Likewise, and check error return.
3881 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
3882 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
3883 (coff_get_normalized_symtab): Likewise.
3884 (coff_make_empty_symbol): Likewise.
3885 (bfd_coff_set_symbol_class): Likewise.
3886 * cofflink.c (coff_link_add_symbols): Likewise.
3887 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
3888 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
3889 (bfd_ecoff_write_accumulated_debug): Likewise.
3890 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
3891 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
3892 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
3893 * ieee.c (do_with_relocs): Use bfd_zalloc.
3894 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
3895 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
3896 (NAME(aout,slurp_reloc_table)): Likewise.
3897 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
3898 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
3899 * som.c (som_build_and_write_symbol_table): Likewise.
3900 (som_slurp_string_table): Likewise.
3901 (som_slurp_symbol_table): Likewise.
3902 (som_bfd_ar_write_symbol_stuff): Likewise.
3903 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
3904 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
3905 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
3906 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
3907 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
3908
3909 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3910
3911 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
3912 "group" union.
3913 (elf_group_name): Update.
3914 (elf_group_id): Define.
3915 (bfd_elf_set_group_contents): Declare.
3916 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
3917 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
3918 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
3919 that sym for the signature.
3920 (_bfd_elf_compute_section_file_positions): Don't call
3921 set_group_contents for "ld -r" case.
3922 (swap_out_syms): Use bfd_zalloc.
3923 * elflink.h (elf_link_add_archive_symbols): Likewise.
3924 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
3925 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
3926
3927 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3928
3929 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
3930 relocs in opd for non-shared too.
3931
3932 2002-06-06 Jeffrey Law <law@redhat.com>
3933
3934 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
3935 relocations.
3936
3937 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
3938
3939 * merge.c: Include libiberty.h.
3940 * elf-strtab.c: Include libiberty.h.
3941
3942 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
3943
3944 * peXXigen.c (pe_print_idata): Remove unused variable.
3945
3946 2002-06-06 David Heine <dlheine@tensilica.com>
3947
3948 * elf.c (assign_file_positions_for_segments): Remove unallocated
3949 sections from the section to segment mapping for PT_LOAD segments.
3950 Update comment about empty loadable segments.
3951
3952 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
3953
3954 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
3955 is within the .stabstr section.
3956
3957 2002-06-06 Alan Modra <amodra@bigpond.net.au>
3958
3959 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
3960 are "const PTR", not "const PTR *".
3961 (bfd_elf32_swap_symbol_in): Likewise.
3962 (bfd_elf64_swap_symbol_in): Likewise.
3963 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
3964 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
3965 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
3966 (elf_link_add_object_symbols): Likewise.
3967 (elf_link_record_local_dynamic_symbol): Likewise.
3968 (elf_link_input_bfd): Likewise.
3969 (elf_gc_mark): Likewise.
3970 (elf_reloc_symbol_deleted_p): Likewise.
3971 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
3972 (mn10200_elf_relax_delete_bytes): Likewise.
3973 (mn10200_elf_symbol_address_p): Likewise.
3974 (mn10200_elf_get_relocated_section_contents): Likewise.
3975 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
3976 (mn10300_elf_relax_section): Likewise.
3977 (mn10300_elf_relax_delete_bytes): Likewise.
3978 (mn10300_elf_symbol_address_p): Likewise.
3979 (mn10300_elf_get_relocated_section_contents): Likewise.
3980 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
3981 (elf32_h8_relax_delete_bytes): Likewise.
3982 (elf32_h8_symbol_address_p): Likewise.
3983 (elf32_h8_get_relocated_section_contents): Likewise.
3984 * elf32-hppa.c (get_local_syms): Likewise.
3985 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
3986 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
3987 * elf32-sh.c (sh_elf_relax_section): Likewise.
3988 (sh_elf_relax_delete_bytes): Likewise.
3989 (sh_elf_get_relocated_section_contents): Likewise.
3990 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
3991 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
3992 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
3993 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
3994 * elf64-ppc.c (get_local_syms): Likewise.
3995 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
3996 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
3997
3998 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
3999
4000 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
4001
4002 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4003
4004 * elf.c (group_signature): Swap in the whole symbol, and handle
4005 extracting section symbol names.
4006 (setup_group): Add comment.
4007 (set_group_contents): When called from objcopy or ld, arrange for
4008 section contents to be written. Write group member output section
4009 indices to allow objcopy to reorganize sections.
4010 (_bfd_elf_copy_private_section_data): Copy group info.
4011
4012 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
4013 (bfd_elf32_swap_symbol_in): Update prototype.
4014 (bfd_elf64_swap_symbol_in): Likewise.
4015 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
4016 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
4017 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
4018 (elf_link_add_object_symbols): Likewise.
4019 (elf_link_record_local_dynamic_symbol): Likewise.
4020 (elf_link_input_bfd): Likewise.
4021 (elf_gc_mark): Likewise.
4022 (elf_reloc_symbol_deleted_p): Likewise.
4023 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
4024 (mn10200_elf_relax_delete_bytes): Likewise.
4025 (mn10200_elf_symbol_address_p): Likewise.
4026 (mn10200_elf_get_relocated_section_contents): Likewise.
4027 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
4028 (mn10300_elf_relax_section): Likewise.
4029 (mn10300_elf_relax_delete_bytes): Likewise.
4030 (mn10300_elf_symbol_address_p): Likewise.
4031 (mn10300_elf_get_relocated_section_contents): Likewise.
4032 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
4033 (elf32_h8_relax_delete_bytes): Likewise.
4034 (elf32_h8_symbol_address_p): Likewise.
4035 (elf32_h8_get_relocated_section_contents): Likewise.
4036 * elf32-hppa.c (get_local_syms): Likewise.
4037 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
4038 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
4039 * elf32-sh.c (sh_elf_relax_section): Likewise.
4040 (sh_elf_relax_delete_bytes): Likewise.
4041 (sh_elf_get_relocated_section_contents): Likewise.
4042 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
4043 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
4044 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
4045 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
4046 * elf64-ppc.c (get_local_syms): Likewise.
4047 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
4048 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
4049 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
4050 * elf64-alpha.c (alpha_elf_size_info): Likewise.
4051 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
4052 * elf64-mips.c (mips_elf64_size_info): Likewise.
4053 * elf64-s390.c (s390_elf64_size_info): Likewise.
4054 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
4055
4056 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4057
4058 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
4059 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
4060 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
4061 _bfd_mips_elf_ignore_discarded_relocs.
4062 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
4063
4064 2002-06-05 H.J. Lu <hjl@gnu.org>
4065
4066 * elfxx-mips.c (mips_elf_calculate_relocation): Call
4067 _bfd_elf_rel_local_sym for STT_SECTION relocations against
4068 the SEC_MERGE section.
4069
4070 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4071
4072 * coff-alpha.c: Update copyright date.
4073 * coff-mips.c: Likewise.
4074 * xcoff-target.h: Likewise.
4075
4076 * bfd-in.h: Remove "taken from the source" comment.
4077 * libbfd-in.h: Likewise.
4078 * libcoff-in.h: Likewise.
4079 * bfd-in2.h: Regenerate.
4080 * libbfd.h: Regenerate.
4081 * libcoff.h: Regenerate.
4082
4083 * elf.c (bfd_elf_discard_group): Return true.
4084 * elf-bfd.h (bfd_elf_discard_group): Declare.
4085 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
4086 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
4087 * bfd.c (bfd_discard_group): Define.
4088 * targets.c (struct bfd_target): Add _bfd_discard_group.
4089 (BFD_JUMP_TABLE_LINK): Here too.
4090 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
4091 * aout-adobe.c (aout_32_bfd_discard_group): Define.
4092 * aout-target.h (MY_bfd_discard_group): Define.
4093 * aout-tic30.c (MY_bfd_discard_group): Define.
4094 * binary.c (binary_bfd_discard_group): Define.
4095 * bout.c (b_out_bfd_discard_group): Define.
4096 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
4097 * coffcode.h (coff_bfd_discard_group): Define.
4098 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
4099 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
4100 * i386msdos.c (msdos_bfd_discard_group): Define.
4101 * i386os9k.c (os9k_bfd_discard_group): Define.
4102 * ieee.c (ieee_bfd_discard_group): Define.
4103 * ihex.c (ihex_bfd_discard_group): Define.
4104 * mmo.c (mmo_bfd_discard_group): Define.
4105 * nlm-target.h (nlm_bfd_discard_group): Define.
4106 * oasys.c (oasys_bfd_discard_group): Define.
4107 * ppcboot.c (ppcboot_bfd_discard_group): Define.
4108 * som.c (som_bfd_discard_group): Define.
4109 * srec.c (srec_bfd_discard_group): Define.
4110 * tekhex.c (tekhex_bfd_discard_group): Define.
4111 * versados.c (versados_bfd_discard_group): Define.
4112 * vms.c (vms_bfd_discard_group): Define.
4113 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
4114 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
4115 (aix5coff64_vec): Likewise.
4116 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
4117
4118 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4119
4120 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
4121 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
4122 (elf32-sh64-com.lo): New dependency list.
4123 * Makefile.in: Regenerate.
4124 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
4125 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
4126 elf32-sh64-com.lo.
4127 * configure: Regenerate.
4128 * elf32-sh64.c (sh64_address_in_cranges)
4129 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
4130 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
4131 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
4132 * elf32-sh64-com.c: ...here. New file.
4133
4134 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4135
4136 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
4137 ATTRIBUTE_UNUSED on used params.
4138 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
4139 before calling bfd_section_from_elf_index on local syms.
4140 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
4141
4142 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4143
4144 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
4145 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
4146 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
4147 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
4148 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
4149 * Makefile.in: Regenerate.
4150 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
4151 (sh64-*-netbsd*): New targets.
4152 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
4153 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
4154 * configure: Regenerate.
4155 * elf32-sh64-nbsd.c: New file.
4156 * elf64-sh64-nbsd.c: New file.
4157 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
4158 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
4159 bfd_elf64_sh64lnbsd_vec.
4160
4161 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4162
4163 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
4164 (bfd_section_from_shdr): Likewise. Set section name of group
4165 sections from signature.
4166 (group_signature): Split out from setup_group. Ensure symbol table
4167 is available.
4168 (bfd_elf_discard_group): New function.
4169 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
4170 .gnu.linkonce* sections if they are members of a group.
4171 (set_group_contents): Set GRP_COMDAT flag.
4172 * section.c (bfd_discard_group): New function.
4173 * bfd-in.h (bfd_elf_discard_group): Declare.
4174 * bfd-in2.h: Regenerate.
4175 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
4176 (elf_linkonce_p): Define.
4177
4178 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4179
4180 * elf.c (bfd_section_from_shdr): Make "name" const.
4181 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
4182 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
4183 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
4184 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
4185 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
4186 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
4187 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
4188 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
4189 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
4190 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
4191 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
4192
4193 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4194
4195 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
4196 ABI.
4197
4198 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
4199
4200 * elf32-arc.c: Fix formatting.
4201 * elf32-arm.h: Likewise.
4202 * elf32-cris.c: Likewise.
4203 * elf32-dlx.c: Likewise.
4204 * elf32-hppa.c: Likewise.
4205 * elf32-i386.c: Likewise.
4206 * elf32-i386qnx.c: Likewise.
4207 * elf32-or32.c: Likewise.
4208 * elf32-s390.c: Likewise.
4209 * elf32-sh64.c: Likewise.
4210 * elf32-vax.c: Likewise.
4211 * elf32-xstormy16.c: Likewise.
4212 * elf64-alpha.c: Likewise.
4213 * elf64-mmix.c: Likewise.
4214 * elf64-ppc.c: Likewise.
4215 * elf64-s390.c: Likewise.
4216 * elf64-sh64.c: Likewise.
4217 * elf64-x86-64.c: Likewise.
4218
4219 2002-06-02 Richard Henderson <rth@redhat.com>
4220
4221 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
4222 null when there are no got entries for a symbol.
4223 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
4224 uninitialized variable warning.
4225
4226 2002-06-01 Richard Henderson <rth@redhat.com>
4227
4228 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
4229 undefined symbols here.
4230 (elf64_alpha_relax_section): Do it here. Also test for not
4231 defined in the current module.
4232 (elf64_alpha_relocate_section_r): Split out of ...
4233 (elf64_alpha_relocate_section): ... here. Don't dereference
4234 NULL when looking up local got entries.
4235
4236 2002-06-01 Richard Henderson <rth@redhat.com>
4237
4238 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
4239 symbols from JSR relaxation.
4240 (elf64_alpha_size_plt_section_1): New.
4241 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
4242 (elf64_alpha_size_rela_got_1): ... here.
4243 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
4244 (elf64_alpha_size_rela_got_section): ... here.
4245 (elf64_alpha_size_plt_section): New.
4246 (elf64_alpha_relax_section): Call them.
4247 (elf64_alpha_size_got_sections): Remove output_bfd arg.
4248 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
4249
4250 2002-06-01 Richard Henderson <rth@redhat.com>
4251
4252 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
4253 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
4254 in shared libraries. Fix DTPRELHI and TPRELHI value.
4255 (INSN_ADDQ, INSN_RDUNIQ): New.
4256 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
4257 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
4258 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
4259 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
4260 Handle GOTDTPREL and GOTTPREL relocations.
4261 (elf64_alpha_relax_gprelhilo): New.
4262 (elf64_alpha_relax_tls_get_addr): New.
4263 (elf64_alpha_relax_find_tls_segment): New.
4264 (elf64_alpha_relax_section): Handle TLS relocations.
4265 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
4266 (elf64_alpha_check_relocs): Set it.
4267
4268 2002-06-01 Richard Henderson <rth@redhat.com>
4269
4270 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
4271
4272 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
4273 check; don't suppress dynamic relocs for non-allocated sections.
4274
4275 * elf64-alpha.c: Remove dead code.
4276
4277 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4278
4279 * bfd-in2.h: Regenerate.
4280 * libbfd.h: Regenerate.
4281 * po/SRC-POTFILES.in: Regenerate.
4282
4283 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
4284 space for bss .plt.
4285
4286 2002-05-31 Graeme Peterson <gp@qnx.com>
4287
4288 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
4289 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
4290 Run "make dep-am".
4291 * Makefile.in: Regenerate.
4292 * config.bfd: Add i[3456]86-*-nto-qnx* support.
4293 * configure.in: Add bfd_elf32_i386qnx_vec support.
4294 * configure: Regenerate.
4295 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
4296 is_contained_by_filepos, and copy_private_bfd_data_p.
4297 * elf.c (assign_file_positions_for_segments): Call backend
4298 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
4299 (IS_CONTAINED_BY_FILEPOS): Define.
4300 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
4301 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
4302 Fix non-K&R call to _bfd_error_handler.
4303 (_bfd_elf_copy_private_section_data): Use backend
4304 copy_private_bfd_data_p.
4305 * elf32-i386.c: Don't include elfxx-target.h when
4306 ELF32_I386_C_INCLUDED is defined.
4307 * elf32-i386qnx.c: New QNX elf backend file.
4308 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
4309 elf_backend_is_contained_by_filepos, and
4310 elf_backend_do_copy_private_bfd_data.
4311 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
4312
4313 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4314
4315 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
4316 Move other similar defines to start of file.
4317
4318 2002-05-30 Tom Rix <trix@redhat.com>
4319
4320 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
4321 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
4322
4323 2002-05-30 Richard Henderson <rth@redhat.com>
4324
4325 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
4326 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
4327 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
4328 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
4329 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
4330 (struct alpha_elf_obj_tdata): Rename total_got_entries and
4331 n_local_got_entries to total_got_size and local_got_size.
4332 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
4333 (alpha_got_entry_size): New.
4334 (elf64_alpha_relax_with_lituse): Use it.
4335 (elf64_alpha_relax_without_lituse): Likewise.
4336 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
4337 (get_got_entry): New.
4338 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
4339 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
4340 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
4341 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
4342 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
4343 (elf64_alpha_calc_got_offsets): Likewise.
4344 (alpha_dynamic_entries_for_reloc): New.
4345 (elf64_alpha_calc_dynrel_sizes): Use it.
4346 (elf64_alpha_size_dynamic_sections): Likewise.
4347 (elf64_alpha_relocate_section): Handle TLS relocations.
4348 * reloc.c: Add Alpha TLS relocations.
4349 * bfd-in2.h, libbfd.h: Rebuild.
4350
4351 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
4352
4353 * peXXigen.c (pe_print_idata): Remove double printed
4354 import table lines; add Bound-To comment.
4355
4356 2002-05-29 Matt Thomas <matt@3am-software.com>
4357
4358 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
4359 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
4360 (elf32-vax.lo): New rule.
4361 * Makefile.in: Regenerate.
4362 * configure.in (bfd_elf32_vax_vec)
4363 (vaxnetbsd_vec): New vectors.
4364 * configure: Regenerate.
4365 * config.bfd (vax-*-netbsdelf*)
4366 (vax-*-netbsdaout*)
4367 (vax-*-netbsd*): New targets.
4368 * elf32-vax.c: New file.
4369 * reloc.c: Add VAX relocations.
4370 * bfd-in2.h: Regenerate.
4371 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
4372
4373 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4374
4375 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
4376 and bfd_elf32_bigarm_vec to targ_selvecs.
4377
4378 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
4379
4380 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
4381 with auto-imported symbols.
4382
4383 2002-05-29 Adam Nemet <anemet@lnxw.com>
4384
4385 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
4386 sections only record bfd.
4387 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
4388 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
4389 * bfd-in2.h: Regenerate.
4390
4391 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4392
4393 * syms.c (_bfd_stab_section_find_nearest_line): Move
4394 declaration and initialisation of saw_line and saw_func out of
4395 for loop.
4396
4397 2002-05-29 Alan Modra <amodra@bigpond.net.au>
4398
4399 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
4400 (bfd_elf64_get_symbol_info): Define.
4401 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
4402
4403 2002-05-29 Andrey Volkov <avolkov@transas.com>
4404
4405 * cpu-h8300.c: Make default h8300 machine first in machine list.
4406
4407 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4408
4409 * config.bfd: Added DLX configuraton.
4410 * Makefile.am: Added DLX configuraton.
4411 * configure.in: Added DLX configuraton.
4412 * archures.c: Add DLX architecure.
4413 * reloc.c: Add DLX relocs.
4414 * targets.c: Added DLX target vector.
4415 * configure: Regenerate.
4416 * Makefile.in: Regenreate.
4417 * bfd-in2.h: Regenreate.
4418 * elf32-dlx.c: New file: Support DLX target.
4419 * cpu-dlx.c: New file: Support DLX target.
4420
4421 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4422
4423 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
4424
4425 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
4426 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
4427 strings to point inside function code sym string.
4428 (func_desc_adjust): Likewise.
4429 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
4430
4431 2002-05-24 Michal Ludvig <mludvig@suse.cz>
4432
4433 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
4434 (elf64_x86_64_grok_psinfo): Added.
4435
4436 2002-05-24 TAMURA Kent <kent@netbsd.org>
4437
4438 * config.bfd: Add a target for i386-netbsdpe.
4439
4440 2002-05-24 Alan Modra <amodra@bigpond.net.au>
4441
4442 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
4443 and is_func_descriptor.
4444 (func_desc_adjust): Hide function code sym in shared libs unless
4445 there is a matching exported function descriptor sym.
4446
4447 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4448
4449 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
4450 for symbols from SHF_TLS section.
4451 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
4452 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
4453 (map_sections_to_segments): Build PT_TLS segment if necessary.
4454 (assign_file_positions_for_segments): Likewise.
4455 (get_program_header_size): Account for PT_TLS segment.
4456 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
4457 SEC_THREAD_LOCAL sections to STT_TLS.
4458 * reloc.c: Add 386 and IA-64 TLS relocs.
4459 * section.c (SEC_THREAD_LOCAL): Define.
4460 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
4461 Remove.
4462 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
4463 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
4464 unconditionally.
4465 (struct elf_final_link_info): Add first_tls_sec.
4466 (elf_bfd_final_link): Set first_tls_sec.
4467 Compute elf_hash_table (info)->tls_segment.
4468 (elf_link_output_extsym): Handle STT_TLS symbols.
4469 (elf_link_input_bfd): Likewise.
4470 * syms.c (BSF_THREAD_LOCAL): Define.
4471 * bfd-in2.h: Rebuilt.
4472 * libbfd.h: Rebuilt.
4473 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
4474 elf_i386_mkobject, elf_i386_object_p): New functions.
4475 (elf_howto_table): Add TLS relocs.
4476 (elf_i386_reloc_type_lookup): Support TLS relocs.
4477 (elf_i386_info_to_howto_rel): Likewise.
4478 (struct elf_i386_link_hash_entry): Add tls_type.
4479 (struct elf_i386_obj_tdata): New.
4480 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
4481 New macros.
4482 (struct elf_i386_link_hash_table): Add tls_ldm_got.
4483 (link_hash_newfunc): Clear tls_type.
4484 (elf_i386_check_relocs): Support TLS relocs.
4485 (elf_i386_gc_sweep_hook): Likewise.
4486 (allocate_dynrelocs): Likewise.
4487 (elf_i386_size_dynamic_sections): Likewise.
4488 (elf_i386_relocate_section): Likewise.
4489 (elf_i386_finish_dynamic_symbol): Likewise.
4490 (bfd_elf32_mkobject, elf_backend_object_p): Define.
4491 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
4492 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
4493 want_tprel, want_dtpmod, want_dtprel.
4494 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
4495 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
4496 R_IA64_LTOFF_TPREL22.
4497 (elf_code_to_howto_index): Add TLS relocs.
4498 (elfNN_ia64_check_relocs): Support TLS relocs.
4499 (allocate_global_data_got): Account for TLS .got data.
4500 (allocate_dynrel_entries): Account for TLS dynamic relocations.
4501 (elfNN_ia64_install_value): Supprt TLS relocs.
4502 (set_got_entry): Support TLS relocs.
4503 (elfNN_ia64_relocate_section): Likewise.
4504
4505 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4506
4507 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
4508 BLX reloc round the relocation up rather than down.
4509 * coff-arm.c (coff_arm_relocate_section): Likewise.
4510
4511 2002-05-21 H.J. Lu (hjl@gnu.org)
4512
4513 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
4514 definition.
4515
4516 2002-05-22 Alan Modra <amodra@bigpond.net.au>
4517
4518 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
4519 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
4520
4521 2002-05-22 Alan Modra <amodra@bigpond.net.au>
4522
4523 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
4524 unresolved relocs.
4525 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
4526
4527 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4528
4529 * bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
4530 non-ELF targets.
4531
4532 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4533
4534 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
4535 an error value.
4536 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
4537 return with false on error.
4538 (elf_link_input_bfd): Check reloc_emitter return value.
4539
4540 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4541
4542 * config.bfd (armeb-*-netbsdelf*): New target.
4543
4544 2002-05-20 Alan Modra <amodra@bigpond.net.au>
4545
4546 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
4547 at the plt call stub.
4548
4549 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4550
4551 * cpu-mips.c (mips_compatible): Don't try to check machine
4552 compatibility.
4553
4554 2002-05-18 Tom Rix <trix@redhat.com>
4555
4556 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
4557
4558 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4559
4560 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
4561 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
4562 we've already warned about an undefined symbol. Report more
4563 detail on reloc errors.
4564
4565 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4566
4567 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
4568 * configure.in: Invoke AM_INSTALL_LIBBFD.
4569 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
4570 (install_libbfd): .. New target.
4571 (uninstall_libbfd): Likewise.
4572 (install-bfdlibLTLIBRARIES): Likewise.
4573 (uninstall-bfdlibLTLIBRARIES): Likewise.
4574 (bfdlibdir): New.
4575 (bfdincludedir): New.
4576 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
4577 * aclocal.m4: Regenerate.
4578 * configure: Regenerate.
4579 * Makefile.in: Regenerate.
4580
4581 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
4582
4583 * hash.c (bfd_hash_lookup): Remove computation of len from inside
4584 hash loop.
4585
4586 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4587
4588 * config.bfd: Add targets for sh64-linux (little endian and
4589 big endian).
4590
4591 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
4592
4593 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
4594 is located in the same section as the import table. Instead
4595 check, and if necessary load the section containing the thunk.
4596
4597 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
4598
4599 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
4600 bfd_bread.
4601 (xcoff64_core_file_matches_executable_p): Replace bfd_read
4602 with bfd_bread.
4603
4604 2002-05-15 Alan Modra <amodra@bigpond.net.au>
4605
4606 * aix5ppc-core.c: Warning fixes.
4607 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
4608 * aout-target.h (MY_bfd_link_just_syms): Define.
4609 * aout-tic30.c (MY_bfd_link_just_syms): Define.
4610 * bfd.c (bfd_link_just_syms): Define.
4611 * binary.c (binary_bfd_link_just_syms): Define.
4612 * bout.c (b_out_bfd_link_just_syms): Define.
4613 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
4614 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
4615 * coffcode.h (coff_bfd_link_just_syms): Define.
4616 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
4617 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
4618 (_bfd_elf_link_just_syms): Declare.
4619 * elf.c (_bfd_elf_link_just_syms): New function.
4620 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
4621 sections haven't already been discarded by the linker.
4622 * elflink.h (elf_link_add_object_symbols): Likewise for stab
4623 sections and SEC_MERGE sections.
4624 (elf_bfd_discard_info): Similarly here.
4625 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
4626 * i386msdos.c (msdos_bfd_link_just_syms): Define.
4627 * i386os9k.c (os9k_bfd_link_just_syms): Define.
4628 * ieee.c (ieee_bfd_link_just_syms): Define.
4629 * ihex.c (ihex_bfd_link_just_syms): Define.
4630 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
4631 (_bfd_generic_link_just_syms): Declare.
4632 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
4633 * linker.c (_bfd_generic_link_just_syms): New function.
4634 * mmo.c (mmo_bfd_link_just_syms): Define.
4635 * nlm-target.h (nlm_bfd_link_just_syms): Define.
4636 * oasys.c (oasys_bfd_link_just_syms): Define.
4637 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
4638 * som.c (som_bfd_link_just_syms): Define.
4639 * srec.c (srec_bfd_link_just_syms): Define.
4640 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
4641 (BFD_JUMP_TABLE_LINK): And here.
4642 * tekhex.c (tekhex_bfd_link_just_syms): Define.
4643 * versados.c (versados_bfd_link_just_syms): Define.
4644 * vms.c (vms_bfd_link_just_syms): Define.
4645 * libbfd.h: Regenerate.
4646 * bfd-in2.h: Regenerate.
4647
4648 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4649
4650 * elf32-mips.c: Remove superfluous definitions copied from
4651 elfxx-mips.c.
4652 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
4653 SGIish vectors to check the special case.
4654 (mips_elf_hi16_reloc): Fix comment.
4655 (mips_elf_got16_reloc): Likewise.
4656 (_bfd_mips_elf32_gprel16_reloc): Likewise.
4657 (elf_reloc_map): Code cleanup.
4658 (mips_reloc_map): Add comment.
4659 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
4660 (mips_elf32_rtype_to_howto): Likewise.
4661 (mips_elf32_discard_info): Likewise.
4662 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
4663 lead to IRIX compatibility now.
4664
4665 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4666
4667 * elfxx-mips.c: Call it IRIX, not Irix in comments.
4668
4669 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
4670
4671 * config.bfd (shle-*-netbsdelf*): Add target which includes
4672 sh64 support.
4673
4674 2002-05-13 David Edelsohn <edelsohn@gnu.org>
4675
4676 * configure.in: Revert 2002-04-07. Instead, auto-configure
4677 HAVE_ST_C_IMPL.
4678 * configure: Regenerate.
4679 * config.in: Regenerate.
4680 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
4681 or AIX_5_CORE.
4682
4683 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
4684
4685 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
4686 corefiles as well.2
4687 * configure: Regenerate.
4688
4689 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4690
4691 * Makefile.am (install-data-local): Install headers to
4692 $(exec_prefix)/include.
4693 * Makefile.in: Regenerate.
4694
4695 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4696 Daniel Jacobowitz <drow@mvista.com>
4697
4698 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
4699 map BFD_RELOC_RVA.
4700
4701 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
4702
4703 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
4704 hppa*-*-openbsd*): New targets.
4705 * configure.in (alpha*-*-openbsd*): Set COREFILE.
4706 * configure: Regenerate.
4707
4708 2002-05-10 Tom Rix <trix@redhat.com>
4709
4710 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
4711 xcoff64_ppc_relocate_section.
4712 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
4713 * libxcoff.h: Common xcoff_reloc_type function declaration.
4714
4715 2002-05-10 Alan Modra <amodra@bigpond.net.au>
4716
4717 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
4718 added in 2002-05-09 commit.
4719
4720 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
4721 don't look for stubs on all undefined syms.
4722
4723 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4724
4725 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
4726 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
4727 pcrel_offset.
4728
4729 * elf32-i386.c (elf_howto_table): Comments.
4730 (elf_i386_relocate_section): Handle more relocs for relocatable
4731 linking and against SEC_MERGE sections.
4732
4733 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4734
4735 * elf32-ppc.c (ppc_elf_create_got): New function.
4736 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
4737 _bfd_elf_create_dynamic_sections. Correct .plt flags.
4738 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
4739 _bfd_elf_create_got_section.
4740
4741 2002-05-07 Alan Modra <amodra@bigpond.net.au>
4742
4743 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
4744 * elfxx-target.h (elf_backend_rela_normal): Define.
4745 (elfNN_bed): Init rela_normal.
4746 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
4747 for section symbols here if rela_normal. Simplify abs section test.
4748 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
4749 return immediately. Remove code handling relocatable linking.
4750 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4751 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4752 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4753 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
4754 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4755 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4756 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
4757 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4758 * elf32-s390.c (elf_s390_relocate_section): Likewise.
4759 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
4760 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
4761 * elf64-s390.c (elf_s390_relocate_section): Likewise.
4762 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
4763 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
4764 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
4765 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4766 * elf-m10200.c (elf_backend_rela_normal): Define.
4767 * elf-m10300.c (elf_backend_rela_normal): Define.
4768 * elf32-fr30.c (elf_backend_rela_normal): Define.
4769 * elf32-i370.c (elf_backend_rela_normal): Define.
4770 * elf32-i860.c (elf_backend_rela_normal): Define.
4771 * elf32-m68k.c (elf_backend_rela_normal): Define.
4772 * elf32-mcore.c (elf_backend_rela_normal): Define.
4773 * elf32-openrisc.c (elf_backend_rela_normal): Define.
4774 * elf32-ppc.c (elf_backend_rela_normal): Define.
4775 * elf32-s390.c (elf_backend_rela_normal): Define.
4776 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
4777 * elf64-ppc.c (elf_backend_rela_normal): Define.
4778 * elf64-s390.c (elf_backend_rela_normal): Define.
4779 * elf64-x86-64.c (elf_backend_rela_normal): Define.
4780 * elfxx-ia64.c (elf_backend_rela_normal): Define.
4781 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
4782 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
4783
4784 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
4785
4786 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
4787 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
4788
4789 2002-05-06 Alan Modra <amodra@bigpond.net.au>
4790
4791 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
4792 when not relocatable. Fix reloc_emitter call for K&R.
4793
4794 2002-05-04 Alan Modra <amodra@bigpond.net.au>
4795
4796 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
4797 reloading local sym addend mistakenly removed in 2002-05-01 change.
4798
4799 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
4800 (read_abbrevs): Change "offset" param to bfd_vma.
4801 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
4802 Change "abbrev_offset" to bfd_vma.
4803 (read_indirect_string): Use correct conversion chars in error
4804 message format string, cast bfd_vma's to unsigned long.
4805 (read_abbrevs): Likewise.
4806 (read_attribute_value): Likewise.
4807 (decode_line_info): Likewise.
4808 (scan_unit_for_functions): Likewise.
4809 (parse_comp_unit): Likewise.
4810
4811 2002-05-04 Tom Rix <trix@redhat.com>
4812
4813 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
4814 (coff_swap_reloc_out): Same.
4815 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
4816 (xcoff_swap_reloc_out): Same.
4817 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
4818 case some 16 bit relocs. Add reloc value to output.
4819 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
4820 R_RBR. Improve names.
4821 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
4822 (bfd_xcoff_backend_data): Update with new reloc swap names.
4823 (bfd_pmac_xcoff_backend_data) : Same.
4824 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
4825 (xcoff64_swap_reloc_out): Same.
4826 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
4827 R_POS. Add reloc value to output.
4828 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
4829 bit R_RBR. Improve names, masks.
4830 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
4831 (bfd_xcoff_backend_data): Update with new reloc swap names.
4832 (bfd_xcoff_aix5_backend_data) : Same.
4833
4834 2002-05-04 Alan Modra <amodra@bigpond.net.au>
4835
4836 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
4837 bfd_count top_index, input_list, all_local_syms.
4838 (elf32_hppa_setup_section_lists): New function, split from
4839 elf32_hppa_size_stubs.
4840 (elf32_hppa_next_input_section): Likewise.
4841 (group_sections): Likewise.
4842 (get_local_syms): Likewise.
4843 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
4844 stubs on undefined syms too.
4845 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
4846 Only access htab elf fields when we have an elf hash table.
4847 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
4848 (elf32_hppa_next_input_section): Declare.
4849
4850 2002-05-04 Bob Byrnes <byrnes@curl.com>
4851
4852 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
4853 _bfd_new_bfd.
4854
4855 2002-05-03 H.J. Lu (hjl@gnu.org)
4856
4857 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
4858 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
4859 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
4860 to hide a global symbol.
4861 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
4862 forced_local to true.
4863
4864 2002-05-02 Richard Henderson <rth@redhat.com>
4865
4866 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
4867 vs SHN_UNDEF to zero.
4868
4869 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4870
4871 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
4872 16 bit reloc.
4873 <R_PPC64_SECTOFF_DS>: Likewise.
4874 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
4875 SECTOFF reloc.
4876 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
4877 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
4878 SECTOFF reloc.
4879
4880 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
4881 (ppc64_elf_ha_reloc): New function.
4882 (ppc64_elf_brtaken_reloc): New function.
4883 (ppc64_elf_sectoff_reloc): New function.
4884 (ppc64_elf_sectoff_ha_reloc): New function.
4885 (ppc64_elf_toc_reloc): New function.
4886 (ppc64_elf_toc_ha_reloc): New function.
4887 (ppc64_elf_toc64_reloc): New function.
4888 (ppc64_elf_unhandled_reloc): New function.
4889 (ppc64_elf_howto_raw): Use the above.
4890 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
4891 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
4892 <R_PPC64_SECTOFF_DS>: Likewise.
4893 (IS_ABSOLUTE_RELOC): Update.
4894 (struct ppc_link_hash_table): Add have_undefweak.
4895 (ppc64_elf_link_hash_table_create): Init.
4896 (func_desc_adjust): Set have_undefweak.
4897 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
4898 add the .sfpr blr when have_undefweak.
4899 (ppc64_elf_setup_section_lists): Check hash table flavour.
4900 (ppc64_elf_next_input_section): Move output_section->owner test to
4901 ppc64elf.em.
4902 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
4903 and relocatable test. Return TOCstart and don't set elf_gp.
4904 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
4905 offset calculation. Add assert on weak sym branch tweaks.
4906 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
4907 (ppc64_elf_toc): Declare.
4908 (ppc64_elf_next_input_section): Update.
4909
4910 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4911
4912 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
4913 file_name.
4914
4915 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4916
4917 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
4918 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
4919 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
4920 call branches. Correct undefined weak destination.
4921 (ppc64_elf_func_desc_adjust): Always create at least one blr in
4922 .sfpr, and correct case where either only savef* or restf* is
4923 needed.
4924
4925 Long branch stubs, multiple stub sections.
4926 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
4927 (ppc64_elf_next_input_section): Declare.
4928 * elf64-ppc.c: Move linker-only prototypes.
4929 (STUB_SUFFIX): Define.
4930 (enum ppc_stub_type): New.
4931 (struct ppc_stub_hash_entry): New.
4932 (struct ppc_branch_hash_entry): New.
4933 (struct ppc_link_hash_entry): Add stub_cache, oh.
4934 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
4935 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
4936 Rename plt_overflow to stub_error.
4937 (ppc_stub_hash_lookup): Define.
4938 (ppc_branch_hash_lookup): Define.
4939 (stub_hash_newfunc): New function.
4940 (branch_hash_newfunc): New function.
4941 (link_hash_newfunc): Init new fields.
4942 (ppc64_elf_link_hash_table_create): Likewise.
4943 (ppc64_elf_link_hash_table_free): New function.
4944 (ppc_stub_name): New function.
4945 (ppc_get_stub_entry): New function.
4946 (ppc_add_stub): New function.
4947 (create_linkage_sections): Use bfd_make_section_anyway. Create
4948 .branch_lt and .rela.branch_lt sections. Don't create .stub.
4949 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
4950 and set up for plt call stubs. Link func and func desc syms.
4951 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
4952 (func_desc_adjust): Avoid hash lookup when func desc sym available
4953 via shortcut, and set links when processing.
4954 (ppc64_elf_hide_symbol): Likewise.
4955 (allocate_dynrelocs): Don't allocate stub section here.
4956 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
4957 Remove sstub code.
4958 (ppc_type_of_stub): New function.
4959 (build_one_stub): Delete.
4960 (ppc_build_one_stub): New function.
4961 (ppc_size_one_stub): New function.
4962 (ppc64_elf_setup_section_lists): New function.
4963 (ppc64_elf_next_input_section): New function.
4964 (group_sections): New function.
4965 (get_local_syms): New function.
4966 (ppc64_elf_size_stubs): Rewrite.
4967 (ppc64_elf_build_stubs): Rewrite.
4968 (ppc64_elf_relocate_section): Look up stub entry for REL24
4969 relocs. Don't propagate REL14* to dynamic objects. Look for long
4970 branch stubs if REL14* or REL24 relocs won't reach.
4971 (bfd_elf64_bfd_link_hash_table_free): Define.
4972
4973 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4974
4975 * config.bfd: Add support for powerpc-*-windiss.
4976
4977 2002-04-30 Tom Rix <trix@redhat.com>
4978
4979 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
4980 symbol names into the hash table.
4981
4982 2002-04-28 Tom Rix <trix@redhat.com>
4983
4984 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
4985 calulating relocations.
4986 (xcoff_complain_overflow) : Function table for relocation errors.
4987 (xcoff_ppc_relocate_section): Use relocation and complain function
4988 tables.
4989 (xcoff_complain_overflow_unsigned_func): New complain function.
4990 (xcoff_complain_overflow_signed_func): Same.
4991 (xcoff_complain_overflow_bitfield_func): Same.
4992 (xcoff_complain_overflow_dont_func): Same.
4993 (xcoff_reloc_type_crel): New recot function.
4994 (xcoff_reloc_type_br): Same.
4995 (xcoff_reloc_type_ba): Same.
4996 (xcoff_reloc_type_toc): Same.
4997 (xcoff_reloc_type_rel): Same.
4998 (xcoff_reloc_type_neg): Same.
4999 (xcoff_reloc_type_pos): Same.
5000 (xcoff_reloc_type_fail): Same.
5001 (xcoff_reloc_type_noop): Same.
5002 * libxcoff.h : Declare common parts for xcoff64.
5003 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
5004 and complain function tables.
5005
5006 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5007
5008 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
5009 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
5010
5011 2002-04-26 Alan Modra <amodra@bigpond.net.au>
5012
5013 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
5014 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
5015
5016 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
5017 same as the output before calling elf_link_input_bfd.
5018
5019 * coffcode.h (coff_compute_section_file_positions): Set
5020 section_tail after shuffling section list.
5021
5022 2002-04-24 Christian Groessler <chris@groessler.org>
5023
5024 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
5025 addresses are 23bit with a special layout, not plain 32bit
5026 values. Prevent relocation of immediate values.
5027
5028 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5029
5030 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
5031 MIPS-16 ASE flags are set, print something to indicate that.
5032
5033 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5034
5035 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
5036 under which a plt call stub is used.
5037 (final_link_relocate): Similarly.
5038 (allocate_plt_static): Clear h-plabel except when plt entry is
5039 exclusively used for a plabel.
5040 (allocate_dynrelocs): Use the above to simplify plt sizing.
5041 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
5042 (elf32_hppa_link_hash_table_create): Init.
5043 (BL22_RP): Define.
5044 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
5045 (elf32_hppa_check_relocs): Set has_22bit_branch.
5046
5047 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
5048 (final_link_relocate): Likewise.
5049
5050 2002-04-22 Jakub Jelinek <jakub@redhat.com>
5051
5052 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
5053 search table if some FDE is DW_EH_PE_aligned encoded either.
5054 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
5055
5056 2002-04-22 Richard Smith <richard@ex-parrot.com>
5057 Jakub Jelinek <jakub@redhat.com>
5058
5059 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
5060 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
5061 encoded personality.
5062 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
5063 for CIE/FDE removal.
5064
5065 2002-04-20 Tom Rix <trix@redhat.com>
5066
5067 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
5068
5069 2002-04-20 Alan Modra <amodra@bigpond.net.au>
5070
5071 * archures.c (bfd_lookup_arch): Move the list order comment..
5072 (struct bfd_arch_info): ..to where it belongs.
5073 * bfd-in2.h: Regenerate.
5074
5075 * archures.c (bfd_lookup_arch): Add comment on list order.
5076 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
5077 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
5078 is always at head of list.
5079
5080 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
5081
5082 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
5083 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
5084 definition of these functions for ARM_WINCE builds as they are
5085 not used.
5086 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
5087 for ARM_WINCE builds.
5088
5089 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
5090
5091 * coff-arm.c (bfd_arm_process_before_allocation):
5092
5093 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
5094
5095 * cpu-sh.c (scan_mach): Delete.
5096 (arch_info_struct): Replace scan_mach with bfd_default_scan.
5097 (bfd_sh_arch): Likewise.
5098
5099 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
5100
5101 * ihex.c (ihex_write_object_contents): Fix check for records
5102 crossing 64K boundaries.
5103
5104 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5105
5106 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
5107 type rather than just assuming entries are ELF.
5108 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
5109 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
5110 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
5111 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
5112 rather than elf_link_hash_entry.
5113
5114 2002-04-15 Richard Henderson <rth@redhat.com>
5115
5116 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
5117 n32 binaries.
5118
5119 2002-04-15 Michael Snyder <msnyder@redhat.com>
5120
5121 * opncls.c (bfd_close): Write contents if writeable.
5122 Minor formatting tidy-ups.
5123
5124 2002-04-15 Alan Modra <amodra@bigpond.net.au>
5125
5126 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
5127
5128 2002-04-12 Michael Snyder <msnyder@redhat.com>
5129
5130 * bfd-in.h (bfd_get_section_lma): New access macro.
5131 Minor white-space fix-up.
5132
5133 2002-04-12 Alan Modra <amodra@bigpond.net.au>
5134
5135 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
5136 header pad.
5137
5138 2002-04-09 DJ Delorie <dj@redhat.com>
5139
5140 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
5141
5142 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
5143
5144 * coffcode.h (coff_read_word): New.
5145 (coff_compute_checksum): New.
5146 (coff_apply_checksum): New.
5147 (coff_write_object_contents): Call coff_apply_checksum () to
5148 apply checksum to PE image.
5149
5150 2002-04-08 Randolph Chung <tausq@debian.org>
5151
5152 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
5153 (elf32_hppa_final_link): Split out sorting logic to..
5154 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
5155 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
5156
5157 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5158
5159 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
5160 pattern.
5161 * configure: Re-generate.
5162
5163 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5164
5165 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
5166 is greater or equal to 4.3.3.
5167 * configure: Regenerate.
5168 Fix PR gdb/344.
5169
5170 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
5171
5172 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
5173 R_CRIS_32_PCREL>: Fix typo in name.
5174 (cris_elf_check_relocs): Always create .rela.got here when
5175 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
5176 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
5177 assume it's created.
5178
5179 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5180
5181 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
5182 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
5183 define.
5184 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
5185 * bfd.c (bfd_link_hash_table_free): Define.
5186 * binary.c (binary_bfd_link_hash_table_free): Define.
5187 * bout.c (b_out_bfd_link_hash_table_free): Define.
5188 * coff-rs6000.c (rs6000coff_vec): Include
5189 _bfd_generic_link_hash_table_free.
5190 (pmac_xcoff_vec): Likewise.
5191 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
5192 (aix5coff64_vec): Likewise.
5193 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
5194 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
5195 (bfd_elf32_bfd_link_hash_table_free): Define.
5196 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
5197 (bfd_elf32_bfd_link_hash_table_free): Define.
5198 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
5199 define.
5200 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
5201 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
5202 * ieee.c (ieee_bfd_link_hash_table_free): Define.
5203 * ihex.c (ihex_bfd_link_hash_table_free): Define.
5204 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
5205 (_bfd_generic_link_hash_table_free): Add prototype.
5206 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
5207 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
5208 * linker.c (_bfd_generic_link_hash_table_free): New function.
5209 * mmo.c (mmo_bfd_link_hash_table_free): Define.
5210 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
5211 * oasys.c (oasys_bfd_link_hash_table_free): Define.
5212 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
5213 * som.c (som_bfd_link_hash_table_free): Define.
5214 * srec.c (srec_bfd_link_hash_table_free): Define.
5215 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
5216 * versados.c (versados_bfd_link_hash_table_free): Define.
5217 * vms.c (vms_bfd_link_hash_table_free): New function.
5218 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
5219
5220 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
5221 instead of bfd_alloc.
5222 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
5223 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
5224 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
5225 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
5226 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
5227 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
5228 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
5229 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
5230 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
5231 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
5232 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
5233 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
5234 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
5235 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
5236 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
5237 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
5238 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
5239 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
5240 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
5241 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
5242 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
5243 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
5244 * m68klinux.c (linux_link_hash_table_create): Likewise.
5245 * sparclinux.c (linux_link_hash_table_create): Likewise.
5246 * sunos.c (sunos_link_hash_table_create): Likewise.
5247 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
5248
5249 * targets.c: Add _bfd_link_hash_table_free to xvec.
5250
5251 * bfd-in2.h: Regenerate.
5252 * libbfd.h: Regenerate.
5253 * libcoff.h: Regenerate.
5254
5255 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5256
5257 * dep-in.sed: Cope with absolute paths.
5258 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
5259 Run "make dep-am".
5260 * Makefile.in: Regenerate.
5261 * coff-arm.c: Fix copyright date.
5262 * cpu-h8300.c: Likewise.
5263 * cpu-i370.c: Likewise.
5264 * cpu-s390.c: Likewise.
5265 * cpu-mips.c: Likewise.
5266 * po/SRC-POTFILES.in: Regenerate.
5267
5268 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5269
5270 * Makefile.am: Add elfxx-mips.c to the known backends.
5271 (elf32-mips.lo): remove dependency to coff/external.h.
5272 * Makefile.in: Regenerate.
5273 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
5274 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
5275 accordingly.
5276 * configure: Regenerate.
5277 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
5278 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
5279 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
5280 MIPS specific backend functions.
5281 * elf32-mips.c: Moved most code to elfxx-mips.c.
5282 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
5283 static.
5284 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
5285 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
5286 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
5287 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
5288 interface to allow selection of the right REL or RELA howto table.
5289 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
5290 static. Let it refuse n32 objects.
5291 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
5292 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
5293 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
5294 (elf32_mips_ignore_discarded_relocs): Rename from
5295 _bfd_elf32_mips_ignore_discarded_relocs.
5296 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
5297 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
5298 (elf_mips_howto_table_rela): Remove.
5299 * elf64-mips.c: Moved most code to elfxx-mips.c.
5300 (bfd_elf64_bfd_reloc_type_lookup): Make static.
5301 (mips_elf64_rtype_to_howto): New function.
5302 (mips_elf64_object_p): Likewise.
5303 (elf64_mips_irix_compat): Likewise.
5304 * elfxx-mips.c: New file containing common code merged together from
5305 elf32-mips.c and elf64-mips.c.
5306 * elfxx-mips.h: New file containing MIPS specific prototypes from
5307 elf-bfd.h.
5308 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
5309 elf_backend_mips_rtype_to_howto.
5310
5311 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5312
5313 * srec.c (MAXCHUNK, Chunk): Revise comments.
5314 (srec_write_record): Correct buffer size.
5315 (srec_write_header): Do without intermediate buffer.
5316 (srec_write_section): Validate Chunk.
5317 (srec_write_terminator): Pass NULL instead of dummy buffer.
5318 (srec_write_symbols): Pass file and symbol names directly to
5319 bfd_bwrite so sprintf won't overflow buffer.
5320
5321 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5322
5323 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
5324 PC relative relocs against hidden symbols.
5325 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5326
5327 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5328
5329 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
5330 LMAs, loop over segments until p_vaddr and p_memsz specify an
5331 extent enclosing the section.
5332
5333 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
5334
5335 * ihex.c (ihex_write_object_contents): Do not allow records to
5336 cross a 64K boundary - wrap if necessary.
5337
5338 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
5339
5340 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
5341 which caused the returned LWP ID to always be 0.
5342
5343 2002-04-01 Richard Henderson <rth@redhat.com>
5344
5345 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
5346 (elf32_sparc_relocate_section): Use it to figure out when to
5347 initialize .got entries.
5348 * elf64-sparc.c: Similarly.
5349
5350 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5351
5352 * linker.c (link_action): Ignore duplicate warning syms.
5353 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
5354 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
5355 (elf_adjust_dynamic_symbol): Likewise.
5356 (elf_export_symbol): Likewise.
5357 (elf_link_find_version_dependencies): Likewise.
5358 (elf_link_assign_sym_version): Likewise.
5359 (elf_link_sec_merge_syms): Likewise.
5360 (elf_link_output_extsym): Likewise.
5361 (elf_gc_sweep_symbol): Likewise.
5362 (elf_gc_propagate_vtable_entries_used): Likewise.
5363 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5364 (elf_gc_allocate_got_offsets): Likewise.
5365 (elf_collect_hash_codes): Likewise.
5366 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
5367 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
5368 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
5369 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
5370 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
5371 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
5372 (elf_cris_discard_excess_dso_dynamics): Likewise.
5373 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
5374 (mark_PIC_calls): Likewise.
5375 (allocate_plt_static): Likewise.
5376 (allocate_dynrelocs): Likewise.
5377 (readonly_dynrelocs): Likewise.
5378 * elf32-i386.c (allocate_dynrelocs): Likewise.
5379 (readonly_dynrelocs): Likewise.
5380 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
5381 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
5382 * elf32-mips.c (mips_elf_output_extsym): Likewise.
5383 (mips_elf_sort_hash_table_f): Likewise.
5384 (mips_elf_check_mips16_stubs): Likewise.
5385 * elf32-s390.c (allocate_dynrelocs): Likewise.
5386 (readonly_dynrelocs): Likewise.
5387 * elf32-sh.c (sh_elf_discard_copies): Likewise.
5388 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
5389 (xstormy16_relax_plt_realloc): Likewise.
5390 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
5391 (elf64_alpha_output_extsym): Likewise.
5392 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
5393 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
5394 (mips_elf64_check_mips16_stubs): Likewise.
5395 (mips_elf64_output_extsym): Likewise.
5396 * elf64-ppc.c (func_desc_adjust): Likewise.
5397 (allocate_dynrelocs): Likewise.
5398 (readonly_dynrelocs): Likewise.
5399 * elf64-s390.c (allocate_dynrelocs): Likewise.
5400 (readonly_dynrelocs): Likewise.
5401 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
5402 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
5403 (readonly_dynrelocs): Likewise.
5404 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
5405 * aoutx.h (aout_link_write_other_symbol): Likewise.
5406 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
5407 (_bfd_coff_write_global_sym): Likewise.
5408 * i386linux.c (linux_tally_symbols): Likewise.
5409 * m68klinux.c (linux_tally_symbols): Likewise.
5410 * sparclinux.c (linux_tally_symbols): Likewise.
5411 * pdp11.c (aout_link_write_other_symbol): Likewise.
5412 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
5413 * xcofflink.c (xcoff_build_ldsyms): Likewise.
5414 (xcoff_write_global_symbol): Likewise.
5415
5416 * cofflink.c (_bfd_coff_final_link): Formatting.
5417 * cpu-mips.c (mips_compatible): Make static, prototype.
5418 * elf32-i386.c (elf_i386_check_relocs): Formatting.
5419 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
5420 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
5421 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
5422 (mips_elf64_final_link): Likewise.
5423 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
5424 prototype.
5425
5426 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
5427
5428 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
5429 (SWAP_OUT_RELOC_OFFSET): Define.
5430
5431 2002-03-27 Gregory Steuck <greg@nest.cx>
5432
5433 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
5434 terminating NULL if empty symbol table.
5435 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
5436
5437 2002-03-26 H.J. Lu (hjl@gnu.org)
5438
5439 * elflink.h (elf_link_input_bfd): Revert the last change since
5440 the gcc exception handling isn't fixed yet.
5441
5442 2002-03-26 H.J. Lu (hjl@gnu.org)
5443
5444 * elflink.h (elf_link_input_bfd): Complain about relocations
5445 against local symbols in discarded sections.
5446
5447 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5448
5449 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
5450
5451 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5452
5453 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
5454 section file offset for !SEC_LOAD sections.
5455
5456 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
5457
5458 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
5459 <case R_ARM_GOT>): Handle relocations to Thumb functions.
5460
5461 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5462
5463 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
5464 Whitespace changes.
5465 * archive.c: Update copyright date.
5466 * bfd-in2.h: Regenerate.
5467 * libbfd.h: Regenerate.
5468 * Makefile.am: Run "make dep-am"
5469 * Makefile.in: Regenerate.
5470 * po/SRC-POTFILES.in: Regenerate.
5471
5472 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5473
5474 * dwarf2.c (struct funcinfo): Move up.
5475 (lookup_address_in_function_table): New argument function_ptr.
5476 Set it.
5477 (lookup_address_in_line_table): New argument function. If function
5478 is non-NULL, use it to handle ``addr'' before the first line note of
5479 the function.
5480 (comp_unit_find_nearest_line): Update and swap calls to
5481 lookup_address_in_function_table and lookup_address_in_line_table.
5482 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
5483 N_SLINE encountered if we see an N_FUN before any N_SLINE.
5484
5485 2002-03-20 Tom Rix <trix@redhat.com>
5486
5487 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
5488 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
5489 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
5490
5491 2002-03-19 Tom Rix <trix@redhat.com>
5492
5493 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
5494 dynamic objects in archives.
5495
5496 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
5497
5498 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
5499 STT_NOTYPE symbols to STT_OBJECT.
5500
5501 2002-03-18 Jan Hubicka <jh@suse.cz>
5502
5503 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
5504
5505 2002-03-18 Tom Rix <trix@redhat.com>
5506
5507 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
5508 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
5509 * coff-rs6000 (do_pad) : New function for archive padding.
5510 (do_copy) : New function for object file copying in archives.
5511 (do_shared_object_padding) : New function for padding shared
5512 objects to their text section alignment in archives.
5513 (bfd_xcoff_ar_achive_set_magic) : Stub.
5514 (xcoff_write_armap_big) : Use do_copy and do_pad.
5515 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
5516 do_copy and do_pad.
5517 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
5518 bfd_xcoff_magic_number.
5519 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
5520 fop.
5521 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
5522 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
5523 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
5524 * rs6000-core.c : Update copyright date.
5525 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
5526 csectpp.
5527 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
5528 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
5529 (coff_set_flags) : Use bfd_xcoff_magic_number.
5530 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
5531 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
5532 * Makefile.am : Same.
5533 * config.bfd : Same.
5534 * targets.c : Same.
5535 * configure : Regnerate.
5536 * Makefile.in : Same.
5537 * bfd-in2.h : Same.
5538
5539 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5540
5541 * po/fr.po: Updated version.
5542
5543 2002-03-18 Alan Modra <amodra@bigpond.net.au>
5544
5545 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
5546 * libbfd.h: Regenerate.
5547 * archive.c (coff_write_armap): Pass on failures from
5548 bfd_write_bigendian_4byte_int.
5549
5550 2002-03-14 H.J. Lu <hjl@gnu.org>
5551
5552 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
5553 error to bfd_error_nonrepresentable_section for reinit_array
5554 section in DSO.
5555
5556 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
5557
5558 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
5559 OR it in rather than replacing previously selected flags.
5560
5561 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
5562 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
5563
5564 2002-03-14 Alan Modra <amodra@bigpond.net.au>
5565
5566 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
5567 (N): Use the above.
5568 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
5569 ensure reloc size matches before calling elf_link_input_bfd.
5570 Add an assert to check reloc size when counting output relocs.
5571
5572 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
5573
5574 * mmo.c (mmo_get_loc): Return NULL rather than false.
5575
5576 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5577
5578 * po/fr.po: Updated version.
5579
5580 2002-03-13 Alan Modra <amodra@bigpond.net.au>
5581
5582 * archures.c (bfd_default_compatible): Test bits_per_word.
5583 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
5584 bfd_default_compatible.
5585 * cpu-i370.c (i370_compatible): Likewise.
5586 * cpu-sparc.c (sparc_compatible): Likewise.
5587 * cpu-h8300.c (compatible): Test in->arch == out->arch.
5588
5589 * elflink.h: Formatting fixes.
5590 (elf_link_output_extsym): Merge undefined and undef weak cases.
5591
5592 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
5593 when word size of input matches output word size.
5594
5595 2002-03-12 Andreas Jaeger <aj@suse.de>
5596
5597 * cpu-i386.c (i386_compatible): New. Use it instead of
5598 bfd_default_compatible.
5599
5600 2002-03-07 H.J. Lu (hjl@gnu.org)
5601
5602 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
5603 as the type for bfd_reloc_val.
5604
5605 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5606
5607 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
5608 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
5609 (elf_hppa_final_link_relocate): Correct relocations for indirect
5610 references to local data through the DLT. Fix .opd creation for
5611 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
5612 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
5613 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
5614 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
5615 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
5616 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
5617 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
5618
5619 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5620
5621 * merge.c (_bfd_merge_sections): Don't segfault if there
5622 is nothing to merge due to GC.
5623
5624 2002-03-05 Alan Modra <amodra@bigpond.net.au>
5625
5626 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
5627 symbols that have been forced local.
5628
5629 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
5630 to output forced local syms for non-shared link.
5631 (elf_link_output_extsym): Tweak condition for calling backend
5632 adjust_dynamic_symbol so that previous behaviour is kept.
5633 Whitespace changes throughout file.
5634
5635 2002-03-04 H.J. Lu <hjl@gnu.org>
5636
5637 * elf.c (bfd_section_from_shdr): Handle special sections,
5638 .init_array, .fini_array and .preinit_array.
5639 (elf_fake_sections): Likewise.
5640
5641 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
5642 DT entry only if the section is in output for .init_array,
5643 .fini_array and .preinit_array. Complain about .preinit_array
5644 section in DSO.
5645 (elf_bfd_final_link): Warn zero size for .init_array,
5646 .fini_array and .preinit_array sections.
5647
5648 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
5649 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
5650 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
5651 .preinit_array.
5652
5653 2002-03-04 Alan Modra <amodra@bigpond.net.au>
5654
5655 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
5656 * configure: Regenerate.
5657
5658 2002-03-02 Tom Rix <trix@redhat.com>
5659
5660 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
5661 symbolic equiv.
5662 * coff-rs6000.c (xcoff_howto_table): Same.
5663
5664 2002-03-01 David Mosberger <davidm@hpl.hp.com>
5665
5666 * elflink.h (size_dynamic_sections): If section named
5667 ".preinit_array" exists, create DT_PREINIT_ARRAY and
5668 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
5669 ".init_array" and ".fini_array".
5670 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
5671 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
5672 DT_FINI_ARRAY.
5673
5674 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
5675
5676 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
5677 dynsyms.
5678
5679 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5680
5681 * elf64-hppa.h: Update copyright date.
5682
5683 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
5684 (ppc64_elf_relocate_section): Don't generate power4 style branch
5685 hints for *_BRTAKEN and *_BRNTAKEN relocs.
5686
5687 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5688
5689 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
5690 last patch.
5691 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
5692
5693 2002-02-21 Andreas Jaeger <aj@suse.de>
5694
5695 * elf64-x86-64.c: Major rework that introduces all recent changes
5696 to the x86-64 backend. Get a closer match to elf32-i386.
5697 (struct elf64_x86_64_dyn_relocs): Rename from
5698 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
5699 all users.
5700 (struct elf64_x86_64_link_hash_table): Add short cuts to some
5701 sections.
5702 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
5703 remove casts, initialize new hash members.
5704 (create_got_section): New.
5705 (elf64_x86_64_create_dynamic_sections): New.
5706 (elf64_x86_64_copy_indirect_symbol): New.
5707 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
5708 relocs, .got or .relgot here but do it in allocate_dynrelocs.
5709 Reference count possible .plt and .got entries. Don't test input
5710 section SEC_READONLY here to try to avoid copy relocs, and keep
5711 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
5712 DF_TEXTREL here. Delay setting of variables until needed. Cache
5713 pointer to "sreloc" section in elf_section_data. Tweak condition
5714 under which .got created. Report files with bad relocation
5715 section names.
5716 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
5717 Reference count possible .plt entries. Don't deallocate .got and
5718 .relgot space here.
5719 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
5720 do copy reloc processing for weakdefs. Remove redundant casts and
5721 aborts. Delay setting of vars until needed. Move creation of
5722 dynamic symbols and allocation of .plt and .rela.plt to
5723 allocate_dynrelocs. Replace BFD_ASSERT with abort.
5724 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
5725 (allocate_dynrelocs): New.
5726 (readonly_dynrelocs): New.
5727 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
5728 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
5729 Zero out the dynamic allocated content space.
5730 (elf64_x86_64_discard_copies): Removed.
5731 (elf64_x86_64_relocate_section): Make use of dynamic section
5732 short-cuts. Localise vars, and delay setting. Better error
5733 reporting, replace BFD_ASSERT with abort. Check
5734 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
5735 regular object file and tread the weak definition as the normal
5736 one. Don't discard relocs for undefweak or undefined symbols and
5737 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
5738 relocs.
5739 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
5740 symbols that have been forced local. Use same test to decide if
5741 we can use a relative reloc for got as relocate_section. Expand
5742 SHN_UNDEF comment. Move expressions out of function calls.
5743 Replace BFD_ASSERT with abort.
5744 (bfd_elf64_bfd_final_link): Removed.
5745 (elf_backend_copy_indirect_symbol): Define.
5746
5747 2002-02-20 Tom Rix <trix@redhat.com>
5748
5749 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
5750 (_bfd_xcoff_reloc_type_lookup): Use it.
5751 * coff64-rs6000.c (xcoff64_howto_table): Same.
5752 (xcoff64_reloc_type_lookup): Same.
5753
5754 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5755
5756 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
5757 little endian.
5758
5759 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5760
5761 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
5762 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
5763 * bfd-in2.h: Regenerate.
5764 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
5765 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
5766 with "s390:64-bit".
5767 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
5768 (elf_s390_reloc_type_lookup): Likewise.
5769 (elf_s390_check_relocs): Likewise.
5770 (elf_s390_gc_sweep_hook): Likewise.
5771 (elf_s390_relocate_section): Likewise.
5772 (elf_s390_object_p): Use renamed architecture define.
5773 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
5774
5775 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
5776
5777 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
5778
5779 2002-02-19 Jakub Jelinek <jakub@redhat.com>
5780
5781 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
5782 absptr -> pcrel optimization for shared libs.
5783 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
5784 library cannot be converted to pcrel.
5785 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
5786 relative.
5787 * elf32-i386.c (elf_i386_relocate_section): If
5788 _bfd_elf_section_offset returned -2, skip, but make sure the
5789 relocation is installed.
5790 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
5791 * elf32-cris.c (cris_elf_relocate_section): Likewise.
5792 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5793 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5794 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5795 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5796 * elf32-s390.c (elf_s390_relocate_section): Likewise.
5797 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5798 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5799 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
5800 * elf64-s390.c (elf_s390_relocate_section): Likewise.
5801 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
5802 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5803 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
5804 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
5805 _bfd_elf_section_offset returning -2 the same way as -1.
5806 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
5807 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
5808 and BFD_ASSERT.
5809 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
5810
5811 2002-02-18 Tom Rix <trix@redhat.com>
5812
5813 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
5814 (bfd_xcoff_size_dynamic_sections): Same.
5815 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
5816 (bfd_xcoff_size_dynamic_sections): Same.
5817 * coff-rs6000.c (xcoff_generate_rtinit): Same.
5818 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
5819 * libxcoff.h (struct xcoff_backend_data_rec): Same.
5820 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
5821 * bfd-in2.h: Regenerate.
5822
5823 2002-02-18 Alan Modra <amodra@bigpond.net.au>
5824
5825 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
5826 (struct ppc_link_hash_table): Add sfpr.
5827 (ppc64_elf_link_hash_table_create): Init it.
5828 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
5829 .glink out to..
5830 (create_linkage_sections): ..here. Make .sfpr too.
5831 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
5832 dynobj early.
5833 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
5834 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
5835 ._restf* functions, and create as needed.
5836 (func_desc_adjust): Only force_local for shared libs.
5837
5838 2002-02-18 David O'Brien <obrien@FreeBSD.org>
5839
5840 * configure.in: Bump version number post 2.12 branching.
5841 * configure: Regenerate.
5842
5843 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
5844
5845 * mmo.c: Correct and improve comments.
5846 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
5847 zero-pad. Use input to fill up non-empty bfd buffer.
5848 (mmo_flush_chunk): New function.
5849 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
5850 changed. Don't emit location specifier if VMA is same as
5851 *LAST_VMAP after omitting leading zero contents. Call
5852 mmo_flush_chunk before emitting location specifier.
5853 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
5854 with mmo_write_loc_chunk calls.
5855 (mmo_internal_write_section): Call mmo_flush_chunk after
5856 mmo_write_chunk.
5857 (mmo_write_symbols_and_terminator): Move :Main to first position
5858 in symbol array. Add faked one if it does not exist if there are
5859 other symbols. Don't add it if there are no symbols at all. Move
5860 out test for value of :Main from symbol loop. Rename table
5861 fakemain to maintable and variable mainsym to fakemain.
5862
5863 2002-02-15 Richard Henderson <rth@redhat.com>
5864
5865 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
5866 section with no got matches any got. Simplify error generaion.
5867
5868 2002-02-15 Alan Modra <amodra@bigpond.net.au>
5869
5870 Support arbitrary length fill patterns.
5871 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
5872 (_bfd_default_link_order): Remove bfd_fill_link_order code.
5873 Call default_data_link_order.
5874 (default_fill_link_order): Delete.
5875 (default_data_link_order): New function.
5876 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
5877 of bfd_fill_link_order with bfd_data_link_order.
5878 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
5879 * elf64-mips.c (mips_elf64_final_link): Likewise.
5880
5881 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
5882 Correct value returned in "end" for "0x<non-hex>".
5883
5884 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
5885
5886 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
5887 (scan): Test against 'mach' field in info structure.
5888
5889 2002-02-14 Alan Modra <amodra@bigpond.net.au>
5890
5891 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
5892
5893 2002-02-14 Matt Fredette <fredette@netbsd.org>
5894
5895 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
5896 EF_M68000.
5897
5898 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
5899
5900 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
5901 non-zero physical addresses when adjusting the LMAs of new
5902 sections.
5903
5904 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5905
5906 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
5907 from _bfd_elf_hppa_gen_reloc_type.
5908 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
5909 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
5910 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
5911 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
5912
5913 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5914
5915 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
5916 loading its contents if there's nothing to do in it.
5917
5918 2002-02-12 Alan Modra <amodra@bigpond.net.au>
5919
5920 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
5921 64k boundary.
5922
5923 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
5924 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
5925 (ppc64_elf_finish_dynamic_sections): Set values for them.
5926
5927 2002-02-11 Michael Snyder <msnyder@redhat.com>
5928
5929 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
5930 * elf.c (elfcore_grok_pstatus): Add prototype.
5931 (elfcore_grok_lwpstatus): Add prototype.
5932 (elfcore_write_lwpstatus): New function.
5933 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
5934
5935 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5936
5937 * elf32-sh.c: Added missing prototypes.
5938 * elf32-sh64.c: Likewise.
5939 (sh_elf_align_loads): Mark unused args as such.
5940 * elf64-sh64.c: Added missing prototypes.
5941 (struct elf_sh64_link_hash_entry): Fix typo.
5942 (sh_elf64_relocate_section): Fix info argument passed to
5943 _bfd_elf_section_offset.
5944
5945 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5946
5947 * Makefile.am: "make dep-am".
5948 * Makefile.in: Regenerate.
5949 * aclocal.m4: Regenerate.
5950 * config.in: Regenerate.
5951 * configure: Regenerate.
5952
5953 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5954
5955 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
5956 variable warnings.
5957 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
5958 comparison warning.
5959 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
5960 cast warnings for the common case.
5961
5962 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5963
5964 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
5965 vectors.
5966 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
5967 vectors.
5968
5969 2002-02-09 Richard Henderson <rth@redhat.com>
5970
5971 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
5972 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
5973 (elf64_alpha_relocate_section): Likewise.
5974 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
5975 * bfd-in2.h, libbfd.h: Rebuild.
5976
5977 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
5978
5979 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
5980 that base-plus-offset reloc accounting is consistent.
5981 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
5982 up to date for undefined symbols.
5983
5984 2002-02-08 Eric Christopher <echristo@redhat.com>
5985
5986 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5987
5988 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
5989 sections for the O32 ABI.
5990
5991 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5992
5993 * elf32-arm.h: Fix formatting of _("...").
5994 * elf32-d10v.c: Likewise.
5995 * elf32-m68k.c: Likewise.
5996 * elf32-mips.c: Likewise.
5997
5998 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
5999
6000 * coff-or32.c: Fix compile time warning messages.
6001
6002 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6003
6004 Contribute sh64-elf.
6005 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
6006 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
6007 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
6008 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
6009 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
6010 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
6011 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
6012 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
6013 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
6014 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
6015 New relocs.
6016 * libbfd.h, bfd-in2.h: Rebuilt.
6017 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
6018 (sh_reloc_map): Map them.
6019 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6020 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
6021 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
6022 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6023 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
6024 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
6025 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
6026 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
6027 datalabel_got_offset.
6028 (sh_elf_link_hash_newfunc): Initialize it.
6029 (sh_elf_relocate_section): Augment the scope of
6030 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
6031 GOT and GOTOFF handling to new SHmedia relocation types. Support
6032 GOT_BIAS.
6033 (sh_elf_check_relocs): Likewise.
6034 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
6035 PLT entries using movi_shori_putval. Support GOT_BIAS.
6036 (sh_elf_finish_dynamic_sections): Likewise.
6037 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
6038 relocation, it's now done by the caller.
6039 (GOT_BIAS): New.
6040 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
6041 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
6042 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
6043 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
6044 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
6045 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
6046 sh64_elf64_hash_table): New.
6047 (sh_elf64_howto_table): Introduce new relocs.
6048 (sh_elf64_info_to_howto): Accept new PIC relocs.
6049 (sh_elf64_relocate_section): Augment the scope of
6050 seen_stt_datalabel. Support new PIC relocs.
6051 (sh_elf64_check_relocs): Support new PIC relocs.
6052 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
6053 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
6054 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
6055 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
6056 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
6057 movi_shori_putval, movi_3shori_putval,
6058 sh64_elf64_create_dynamic_sections,
6059 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
6060 sh64_elf64_size_dynamic_sections,
6061 sh64_elf64_finish_dynamic_symbol,
6062 sh64_elf64_finish_dynamic_sections): New.
6063 (elf_backend_create_dynamic-sections,
6064 bfd_elf64_bfd_link_hash_table_create,
6065 elf_backend_adjust_dynamic_symbol,
6066 elf_backend_size_dynamic_sections,
6067 elf_backend_finish_dynamic_symbol,
6068 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6069 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6070 elf_backend_got_header_size, elf_backend_plt_header_size):
6071 Define.
6072 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
6073 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
6074 match official numbers and names; moved unmaching ones to the
6075 range 0xf2-0xff.
6076 * elf32-sh64.c, elf64-sh64.c: Likewise.
6077 2001-03-12 DJ Delorie <dj@redhat.com>
6078 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
6079 sections.
6080 2001-03-12 DJ Delorie <dj@redhat.com>
6081 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
6082 be aligned.
6083 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
6084 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
6085 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
6086 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
6087 .cranges section with SEC_SORT_ENTRIES set.
6088 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
6089 incoming sorted .cranges section.
6090 (sh64_bfd_elf_copy_private_section_data): New.
6091 (sh64_elf_final_write_processing): Only sort .cranges and modify
6092 start address if called by linker.
6093 2001-01-08 Ben Elliston <bje@redhat.com>
6094 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
6095 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
6096 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
6097 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6098 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
6099 line. Add comments before all entries.
6100 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
6101 comment.
6102 (sh_elf64_reloc): Correct head comment.
6103 (sh_elf64_relocate_section): Correct spacing.
6104 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
6105 instead call reloc_dangerous callback.
6106 <case R_SH_SHMEDIA_CODE>: New case.
6107 (sh_elf64_gc_mark_hook): Correct spacing.
6108 (sh_elf64_check_relocs): Ditto.
6109 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
6110 New case.
6111 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
6112 functions.
6113 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
6114 clarify describing comment. Add comments before all entries.
6115 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
6116 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
6117 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6118 Sort .cranges section in final link. Prepare to set bit 0 on
6119 entry address.
6120 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
6121 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
6122 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
6123 .cranges section.
6124 (sh64_backend_section_from_shdr): New, to recognize
6125 SHT_SH5_CR_SORTED on incoming .cranges section.
6126 (elf_backend_section_from_shdr): Define.
6127 (sh64_elf_final_write_processing): Sort outgoing .cranges
6128 section. (New, temporarily disabled:) Set bit 0 on entry address
6129 according to ISA type.
6130 (sh64_find_section_for_address): New.
6131 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
6132 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
6133 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
6134 bfd_malloc, not xmalloc.
6135 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
6136 global.
6137 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
6138 temporarily disabled) setting bit 0 on entry address.
6139 (elf_backend_final_write_processing): Define.
6140 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6141 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
6142 be a proper relocation for PTA and PTB rather than a marker.
6143 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
6144 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
6145 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
6146 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
6147 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
6148 Zero src_mask.
6149 * elf64-sh64.c: Ditto.
6150 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
6151 * elf32-sh64.c: Include opcodes/sh64-opc.h
6152 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
6153 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
6154 parameters. No unused parameters. Caller changed.
6155 <case R_SH_PT_16>: New case.
6156 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
6157 * Makefile.in: Regenerate.
6158 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6159 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
6160 all code sections.
6161 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
6162 (sh64_elf_merge_private_data): Ditto.
6163 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
6164 to access stored section flags.
6165 (sh64_elf_final_write_processing): Return immediately unless
6166 called by linker. Use sh64_elf_section_data (cranges) to get size
6167 of linker-generated cranges entries.
6168 (sh64_elf_copy_private_data): Add missing "return true".
6169 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
6170 (sh_elf64_merge_private_data): Ditto.
6171 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6172 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
6173 elf64-sh64.c:sh64_elf_fake_sections.
6174 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
6175 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6176 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
6177 (sh64_elf_final_write_processing): New.
6178 (elf_backend_final_write_processing): Define.
6179 (sh64_elf_fake_sections): Get header flags from tdata field.
6180 (sh64_elf_copy_private_data): Do not call
6181 sh64_elf_copy_private_data_internal, just copy e_flags field.
6182 (sh64_elf_merge_private_data): Do not call
6183 sh64_elf_copy_private_data_internal.
6184 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6185 Remove EF_SH64_ABI64, let ELF size make difference.
6186 Remove SH64-specific BFD section flag.
6187 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
6188 containing SHmedia through elf_section_data (asect)->tdata
6189 non-zero, not using a BFD section flag.
6190 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
6191 (sh64_elf_merge_private_data): Similar.
6192 (elf_backend_section_flags): Don't define.
6193 (sh64_elf_backend_section_flags): Delete.
6194 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
6195 not EF_SH64_ABI64.
6196 (sh_elf64_merge_private_data): Similar.
6197 * section.c (Section flags definitions): Don't define
6198 SEC_SH_ISA_SHMEDIA.
6199 (bfd-in2.h): Regenerate.
6200 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
6201 Make DataLabel references work with partial linking.
6202 * elf32-sh64.c: Fix formatting.
6203 (sh64_elf_link_output_symbol_hook): New.
6204 (elf_backend_link_output_symbol_hook): Define to
6205 sh64_elf_link_output_symbol_hook.
6206 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
6207 undefined if partial linking. Adjust sanity check.
6208 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
6209 (elf_backend_link_output_symbol_hook): Define to
6210 sh64_elf64_link_output_symbol_hook.
6211 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
6212 undefined if partial linking. Adjust sanity check.
6213 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6214 Implement semantics for inter-file DataLabel references.
6215 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
6216 (sh64_elf64_add_symbol_hook): New.
6217 (sh_elf64_relocate_section): If passing an indirect symbol with
6218 st_type STT_DATALABEL on the way to a symbol with st_other
6219 STO_SH5_ISA32, do not bitor 1 to the relocation.
6220 (elf_backend_add_symbol_hook): Define to
6221 sh64_elf64_add_symbol_hook.
6222 * elf64-sh32.c: Tweak comments.
6223 (DATALABEL_SUFFIX): Define.
6224 (sh64_elf_add_symbol_hook): New.
6225 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
6226 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
6227 symbol with st_type STT_DATALABEL on the way to a symbol with
6228 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
6229 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6230 Pass through STT_DATALABEL.
6231 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
6232 (elf_backend_get_symbol_type): Define.
6233 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
6234 (elf_backend_get_symbol_type): Define.
6235 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6236 * elf32-sh64.c: Tweak comments.
6237 (sh64_elf_copy_private_data_internal): Add prototype.
6238 (bfd_elf32_bfd_set_private_flags): Define.
6239 (sh64_elf_copy_private_data_internal): Compare machine name, not
6240 textual BFD target name, to check whether to copy section flag
6241 SHF_SH5_ISA32.
6242 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
6243 Tweak section-contents-type-mismatch message.
6244 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
6245 Validize reloc-types.
6246 * elf64-sh64.c: New file.
6247 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
6248 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
6249 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
6250 Regenerate dependencies.
6251 * Makefile.in: Regenerate.
6252 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
6253 bfd_elf64_sh64l_vec.
6254 * configure.in: Handle bfd_elf64_sh64_vec and
6255 bfd_elf64_sh64l_vec.
6256 * configure: Regenerate.
6257 * po/POTFILES.in: Regenerate.
6258 * po/bfd.pot: Regenerate.
6259 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6260 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
6261 anything else but EF_SH64 and EF_SH64_ABI64.
6262 (sh64_elf_merge_private_data): Emit error for anything else but
6263 EF_SH64 and EF_SH64_ABI64.
6264 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
6265 from targ_selvecs.
6266 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
6267 bfd_elf32_sh64l_vec as a temporary measure.
6268 * configure: Regenerate.
6269 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6270 * cpu-sh.c (arch_info_struct): Include sh5 item
6271 unconditionalized.
6272 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
6273 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
6274 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
6275 * elf32-sh64.c: Tweak comments.
6276 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
6277 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
6278 (sh64_elf_copy_private_data_internal): Wrap long line.
6279 (sh64_elf_merge_private_data): Rewrite to allow objects from
6280 SH64 subsets to be linked together.
6281 (INCLUDE_SHMEDIA): Define.
6282 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
6283 Parenthesize plus-expression inside or-expression.
6284 <global symbol>: Ditto.
6285 (sh_elf_set_mach_from_flags): Remove code refusing
6286 deleted EF_SH64_32BIT_ABI flag.
6287 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
6288 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
6289 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
6290 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
6291 (sh_elf_relocate_section) <local symbol>: Or 1 in
6292 calculation of relocation if sym->st_other & STO_SH5_ISA32.
6293 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
6294 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
6295 relocation.
6296 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6297 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
6298 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
6299 Regenerate dependencies.
6300 * Makefile.in: Regenerate.
6301 * archures.c: Add bfd_mach_sh5.
6302 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
6303 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
6304 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
6305 * configure: Regenerate.
6306 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
6307 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
6308 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6309 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
6310 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
6311 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
6312 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
6313 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
6314 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
6315 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
6316 in item for SH5.
6317 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
6318 for SHmedia relocs.
6319 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
6320 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
6321 shmedia_prepare_reloc, goto final_link_relocate if it returns
6322 non-zero, else fail as before.
6323 (sh_elf_set_mach_from_flags): Provide function only if not defined
6324 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
6325 (sh_elf_set_private_flags): Provide function only if not defined
6326 as a macro.
6327 (sh_elf_copy_private_data): Similar.
6328 (sh_elf_merge_private_data): Similar.
6329 * section.c (SEC_SH_ISA_SHMEDIA): New.
6330 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
6331 * elf32-sh64.c: New file.
6332 * libbfd.h: Regenerate.
6333 * bfd-in2.h: Regenerate.
6334 * po/POTFILES.in: Regenerate.
6335 * po/bfd.pot: Regenerate.
6336 * bfd-in2.h: Regenerate.
6337 * libbfd.h: Regenerate.
6338
6339 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
6340
6341 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
6342 been included, not drag it in.
6343 * bfd-in2.h: Regenerate.
6344
6345 2002-02-06 H.J. Lu (hjl@gnu.org)
6346
6347 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
6348 the mach and ISA fields if necessary.
6349
6350 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6351
6352 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
6353 ARM architecture when an F_ARM_5 flag is detected, since we cannot
6354 be sure exactly which architecture this represents.
6355
6356 2002-02-05 Nick Clifton <nickc@redhat.com>
6357
6358 * po/tr.po: Updated translation.
6359
6360 2002-02-05 Alan Modra <amodra@bigpond.net.au>
6361
6362 From Jimi X <jimix@watson.ibm.com>
6363 * archures (bfd_mach_ppc64): Define.
6364 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
6365 (bfd_powerpc_arch): Define.
6366 * bfd-in2.h: Regenerate.
6367 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
6368 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
6369 (bfd_powerpc_archs): Add default powerpc64 arch.
6370
6371 2002-02-05 Alan Modra <amodra@bigpond.net.au>
6372
6373 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
6374 against section syms in readonly sections. Don't do the global
6375 sym check if we find one.
6376 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
6377 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
6378 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6379 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
6380 (elf_s390_grok_prstatus): Add missing prototype.
6381
6382 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6383
6384 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
6385 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
6386 Call bfd_get_section_by_name only once. Initialize
6387 bpodata->n_bpo_relocs_this_section.
6388 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
6389 referring to DSOs.
6390 (bpo_reloc_request_sort_fn): Don't use difference of values as
6391 return-value.
6392
6393 2002-02-02 David O'Brien <obrien@FreeBSD>
6394
6395 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
6396 version 4.5 and later the same as 5-CURRENT.
6397 * configure: Re-generate.
6398
6399 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6400
6401 * config.bfd (hppa*-*-netbsd*): New target.
6402
6403 2002-01-31 Philipp Thomas <pthomas@suse.de>
6404
6405 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
6406 to front of message. Unify messages with elf32-arm.h. Use
6407 commas where neccessary.
6408 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
6409 ERROR in messages. Unify messages with coff-arm.c. Correct
6410 VFP/FPA error message.
6411 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
6412 APCS-32 for translation.
6413
6414 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6415
6416 Perform on-demand global register allocation from
6417 R_MMIX_BASE_PLUS_OFFSET relocs.
6418 * elf64-mmix.c (struct bpo_reloc_section_info, struct
6419 bpo_reloc_request, struct bpo_greg_section_info): New.
6420 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
6421 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
6422 _bfd_mmix_check_all_relocs,
6423 _bfd_mmix_prepare_linker_allocated_gregs,
6424 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
6425 (elf_mmix_howto_table): Correct src_mask for most relocs.
6426 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
6427 case.
6428 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
6429 case. Fix typo in comment. New label do_mmix_reloc.
6430 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
6431 store first object file with a base-plus-offset reloc. Call
6432 mmix_elf_check_common_relocs for the part common with mmo.
6433 (mmix_elf_final_link): Write out linker-allocated register
6434 contents section.
6435 (elf_backend_gc_sweep_hook): Define.
6436 (bfd_elf64_bfd_relax_section): Define.
6437
6438 * mmo.c: Don't include <ctype.h>
6439 (mmo_init): Correct init-once logic.
6440
6441 2002-02-01 Tom Rix <trix@redhat.com>
6442
6443 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
6444
6445 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6446
6447 * Makefile.am: Run "make dep-am"
6448 * Makefile.in: Regenerate.
6449
6450 2002-01-31 David O'Brien <obrien@FreeBSD>
6451
6452 * configure.in: Recognize the differences in core files from FreeBSD
6453 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
6454 5-CURRENT.
6455 * configure: Regenerate.
6456
6457 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6458
6459 * coff-or32.c: New file.
6460 * cpu-or32.c: New file.
6461 * elf32-or32.c: New file.
6462 * archures.c: Add support for or32.
6463 * targets.c: Add support for or32.
6464 * bfd-in2.h: Regenerate.
6465 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
6466 coff_write_object_contents): Add support for or32.
6467 * config.bfd: Add target.
6468 * configure.in: Add support for or32.
6469 * configure: Regenerate.
6470 * Makefile.am: Add support for or32.
6471 * Makefile.in: Regenerate.
6472 * po/SRC-POTFILES.in: Add or32 files.
6473 * po/bfd.pot: Regenerate.
6474
6475 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
6476 Don Lindsay <lindsayd@cisco.com>
6477
6478 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
6479 false' with a return of a bfd_reloc_ error code.
6480
6481 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
6482
6483 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
6484 unexport unreferenced symbols when --export-dynamic. Call
6485 _bfd_elf_strtab_delref when unexporting.
6486
6487 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6488
6489 * bfd-in.h: Include <stdbool.h> if it is available.
6490 * bfd-in2.h: Regenerated.
6491
6492 2002-01-31 Alan Modra <amodra@bigpond.net.au>
6493
6494 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
6495 not go via the plt.
6496
6497 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
6498
6499 * archures.c: Tidy up formatting of embedded comments.
6500 * bfd.c: Tidy up formatting of embedded comments.
6501 * bfd-in.h: Fix formatting of comments.
6502 * reloc.c: Tidy up formatting of ordinary & embedded comments.
6503 * section.c: Tidy up formatting of embedded comments.
6504 * syms.c: Tidy up formatting of embedded comments.
6505 * targets.c: Tidy up formatting of embedded comments.
6506
6507 * bfd-in2.h: Regenerate.
6508
6509 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
6510
6511 * vms-tir.c (cmd_name): New function.
6512 (tir_cmd_name): New function.
6513 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
6514 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
6515 Fix formatting.
6516
6517 * peXXigen.c (pe_print_idata): Rearrange message to aid in
6518 translation.
6519 (pe_print_pdata): Rearrange message to aid in translation.
6520
6521 * libbfd.c (warn_deprecated): Rearrange error message to aid in
6522 translation.
6523
6524 * ihex.c (ihex_write_object_contents): Fix spelling typo.
6525
6526 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
6527
6528 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
6529 message to aid in translation.
6530
6531 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
6532 to aid in translation.
6533
6534 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
6535
6536 2002-01-30 Philipp Thomas <pthomas@suse.de>
6537
6538 * coff-arm.c, elf32-elf.h: Unify messages.
6539
6540 2002-01-30 Nick Clifton <nickc@redhat.com>
6541
6542 * po/sv.po: Updated translation.
6543
6544 2002-01-30 Philipp Thomas <pthomas@suse.de>
6545
6546 * dwarf2.c (read_abbrev): Use full section name in error message.
6547 (decode_line_info): Likewise.
6548
6549 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
6550 message.
6551
6552 2002-01-30 Alan Modra <amodra@bigpond.net.au>
6553
6554 * elf64-ppc.c (func_desc_adjust): Only provide missing function
6555 descriptor symbols for undefined function code syms. Clear
6556 ELF_LINK_NON_ELF so that they can stay weak.
6557
6558 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6559 Mitch Lichtenberg <mpl@broadcom.com>
6560
6561 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
6562 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
6563 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
6564 generation.
6565 * bfd-in2.h: Regenerate.
6566
6567 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6568
6569 * elf32-mips.c: Add additional comments about HI16 relocation
6570 processing.
6571 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
6572 pc-relative relocations. (Reverts change made on 2001-10-31.)
6573 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
6574 for pc-relative relocations.
6575 (mips_elf_calculate_relocation): Add a comment about a kludge
6576 in the R_MIPS_GNU_REL_HI16 handling.
6577 (_bfd_mips_elf_relocate_section): Implement that kludge;
6578 adjust pc-relative HI16 relocation for difference in HI16 and
6579 LO16 addresses, since it can't easily be done in
6580 mips_elf_calculate_relocation.
6581
6582 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6583
6584 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
6585 relocations with PC32 relocations for undefined or weak symbols.
6586 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
6587 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
6588
6589 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
6590
6591 * elfcore.h (elf_core_file_p): Improve comment for last change.
6592
6593 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6594
6595 * configure: Regenerated.
6596
6597 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
6598
6599 * elfcore.h (elf_core_file_p): Set the machine architecture
6600 before processing the program headers.
6601
6602 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6603
6604 * configure.in <64-bit configuration>: If using gcc, check and
6605 emit error for egcs-1.1.2.
6606 * configure: Regenerate.
6607
6608 2002-01-26 Egor Duda <deo@logos-m.ru>
6609
6610 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
6611 as possible to avoid stack corruption.
6612
6613 2002-01-26 Richard Henderson <rth@redhat.com>
6614
6615 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
6616 for non-allocated sections.
6617
6618 2002-01-25 Mark Kettenis <kettenis@gnu.org>
6619
6620 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
6621 prstat.pr_reg even if it is a struct.
6622
6623 2002-01-25 Steve Ellcey <sje@cup.hp.com>
6624
6625 * elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
6626
6627 2002-01-25 Philipp Thomas <pthomas@suse.de>
6628
6629 * coffgen.c (coff_print_symbol): Don't mark info message
6630 for translation.
6631
6632 2002-01-25 Nick Clifton <nickc@redhat.com>
6633
6634 * po/fr.po: Updated translation.
6635 * po/es.po: Updated translation.
6636
6637 2002-01-25 Philipp Thomas <pthomas@suse.de>
6638
6639 * coff-alpha.c (alpha_relocate_section): Unify warning message
6640 for GP relative relocations without GP defined.
6641 * coff-mips.c (mips_relocate_section): Likewise.
6642
6643 2002-01-25 Alan Modra <amodra@bigpond.net.au>
6644
6645 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
6646 unsigned overflow when new_offset < old_offset.
6647
6648 2002-01-24 Philipp Thomas <pthomas@suse.de>
6649
6650 * bfd.c (_bfd_abort): Fix typo.
6651
6652 2002-01-23 Richard Henderson <rth@redhat.com>
6653
6654 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
6655 plt entries for undefweak symbols.
6656
6657 2002-01-23 Steve Ellcey <sje@cup.hp.com>
6658
6659 * targets.c (bfd_elf32_ia64_hpux_big_vec): Add to DEFAULT_VECTOR.
6660 (bfd_elf64_ia64_hpux_big_vec): Ditto.
6661 (bfd_elf32_h8300_vec): Ditto.
6662
6663 2002-01-23 Alan Modra <amodra@bigpond.net.au>
6664
6665 * elf64-ppc.c: Remove stale part of ABI comment.
6666 (NO_OPD_RELOCS): Define.
6667 (ppc64_elf_check_relocs): Use it.
6668 (ppc64_elf_relocate_section): Here too.
6669 (build_one_stub): Don't point function syms at the stub. Instead,
6670 hijack plt.offset.
6671 (ppc64_elf_relocate_section): Check whether REL24 relocs should
6672 really go to the stub. Make all dynamic relocs in opd against
6673 locals.
6674 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
6675 plt.offset.
6676
6677 2002-01-22 Richard Henderson <rth@redhat.com>
6678
6679 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
6680
6681 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6682
6683 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
6684 TOC_BASE_OFF adjustment.
6685
6686 * Makefile.am: Run "make dep-am".
6687 * Makefile.in: Regenerate.
6688 * po/SRC-POTFILES.in: Regenerate.
6689
6690 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
6691
6692 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
6693 host defines.
6694
6695 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
6696
6697 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
6698 Check for and emit error if sgot is NULL at this point.
6699
6700 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6701
6702 * config.bfd (ia64*-*-netbsd*): New target.
6703
6704 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
6705
6706 * som.c (som_write_space_strings): Comment typo fix.
6707
6708 2002-01-21 Alan Modra <amodra@bigpond.net.au>
6709
6710 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
6711 is_func_descriptor fields.
6712 (link_hash_newfunc): Init them.
6713 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
6714 dot are candidates for plt entries. When processing .opd relocs,
6715 set function descriptor strings to point inside function code
6716 string, and set new ppc_link_hash_entry fields.
6717 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
6718 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
6719 function descriptors. It's now done in..
6720 (func_desc_adjust): New.
6721 (ppc64_elf_func_desc_adjust): New.
6722 (define elf_backend_always_size_sections): Define.
6723 (ppc64_elf_hide_symbol): New.
6724 (define elf_backend_hide_symbol): Define.
6725 (allocate_dynrelocs): Remove code looking up function descriptors
6726 as that has been done earlier.
6727 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
6728 table.
6729 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
6730 up function descriptor.
6731 (build_one_stub): Look up the function code sym. Check for
6732 invalid plt offsets.
6733 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
6734 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
6735
6736 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
6737 boolean param.
6738 (_bfd_elf_link_hash_hide_symbol): Likewise.
6739 * elflink.h (elf_link_add_object_symbols): Adjust call to
6740 elf_backend_hide_symbol.
6741 (elf_fix_symbol_flags): Likewise.
6742 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
6743 than bfd_alloc.
6744 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
6745 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
6746 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
6747 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
6748 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
6749 and adjust to suit.
6750 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
6751 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
6752 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
6753
6754 2002-01-18 Alan Modra <amodra@bigpond.net.au>
6755
6756 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
6757 dynamic function descriptor symbol, not the associated function
6758 symbol.
6759
6760 2002-01-17 Eric Christopher <echristo@redhat.com>
6761
6762 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
6763
6764 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6765
6766 * po/bfd.pot: Regenerate.
6767 * po/fr.po: Regenerate.
6768
6769 2002-01-17 Alan Modra <amodra@bigpond.net.au>
6770
6771 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
6772 Remove "Elf_Internal_Shdr *" param.
6773 (_bfd_mips_elf_section_from_bfd_section): Ditto.
6774 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
6775 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
6776 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
6777 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
6778 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
6779 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
6780 function to override special sections. Remove hdr arg from
6781 backend call, and don't loop.
6782
6783 2002-01-16 Eric Christopher <echristo@redhat.com>
6784
6785 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
6786 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
6787 relocations requiring gp0 and gp.
6788
6789 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
6790
6791 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
6792 EF_ARM_VFP_FLOAT.
6793 (elf32_arm_print_private_bfd_data): Likewise.
6794
6795 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6796
6797 * po/tr.po: Import new version.
6798
6799 2002-01-16 Alan Modra <amodra@bigpond.net.au>
6800
6801 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
6802 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
6803 (ORI_R0_R0_0): Correct.
6804
6805 2002-01-16 Alan Modra <amodra@bigpond.net.au>
6806
6807 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
6808 when plt_not_loaded.
6809 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
6810 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
6811 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
6812 (ppc64_elf_glink_code): Delete.
6813 (PPC64_ELF_GLINK_SIZE): Delete.
6814 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
6815 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
6816 ORI_R0_R0_0): Define.
6817 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
6818 (struct ppc_link_hash_table): Add sstub and plt_overflow.
6819 (ppc64_elf_link_hash_table_create): Init them.
6820 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
6821 Don't copy to shared lib.
6822 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
6823 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
6824 (allocate_dynrelocs <plt>): Don't change function sym here. Make
6825 room for .stub and .glink code.
6826 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
6827 DT_PPC64_GLINK.
6828 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
6829 bfd_elf64_bfd_final_link.
6830 (bfd_elf64_bfd_final_link): Don't define.
6831 (ppc64_elf_size_stubs): New.
6832 (build_plt_stub): New.
6833 (build_one_stub): New.
6834 (ppc64_elf_build_stubs): New.
6835 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
6836 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
6837 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
6838 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
6839 case output sections not separate. Adjust DT_RELASZ to not
6840 include plt relocs. Set reserved got entry. Set got and plt
6841 entry size.
6842 (elf_backend_got_header_size): Set to 8.
6843 * elf64-ppc.h: New file.
6844
6845 2002-01-16 Alan Modra <amodra@bigpond.net.au>
6846
6847 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
6848 sections, use bfd_section_list_remove.
6849 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6850 * elflink.h (elf_link_add_object_symbols): When removing all
6851 sections, use bfd_section_list_clear.
6852
6853 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6854
6855 * po/sv.po: New file: Swedish translation.
6856 * configure.in (ALL_LINGUAS): Add sv.
6857 * configure: Regenerate.
6858
6859 2002-01-15 Jakub Jelinek <jakub@redhat.com>
6860
6861 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
6862 * elf.c (merge_sections_remove_hook): New function.
6863 (_bfd_elf_merge_sections): Pass it as 3rd argument to
6864 _bfd_merge_sections.
6865 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
6866 * libbfd.h: Rebuilt.
6867 * merge.c (_bfd_merge_sections): Add remove_hook argument.
6868 Call remove_hook if a SEC_EXCLUDE section is encountered.
6869
6870 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6871
6872 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
6873 (xstormy16_reloc_map): Initialise new field with correct howto
6874 table.
6875 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
6876 howto entry.
6877
6878 2002-01-10 Michael Snyder <msnyder@redhat.com>
6879
6880 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
6881 (elfcore_write_pstatus): Use long instead of pid_t;
6882 * elf-bfd.h: Change prototypes to use long instead of pid_t;
6883
6884 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * elf.c: Update copyright years.
6887 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
6888 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
6889
6890 2002-01-08 Michael Snyder <msnyder@redhat.com>
6891
6892 Add capability to write corefile note sections, for gdb.
6893 * elf.c (elfcore_write_note): New function.
6894 (elfcore_write_prpsinfo): New function.
6895 (elfcore_write_prstatus): New function.
6896 (elfcore_write_pstatus): New function.
6897 (elfcore_write_prfpreg): New function.
6898 (elfcore_write_prxfpreg): New function.
6899 * elf-bfd.h: Add prototypes for above functions.
6900
6901 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
6902
6903 * elf.c (elf_fake_sections): Propagate errors from
6904 elf_backend_fake_section.
6905
6906 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6907
6908 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
6909 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
6910 (elf32-sh-nbsd.lo): New rule.
6911 * Makefile.in: Regenerate.
6912 * config.bfd (sh*le-*-netbsdelf*): New target.
6913 (sh*-*-netbsdelf*): New target.
6914 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
6915 (bfd_elf32_shnbsd_vec): New vector.
6916 (bfd_elf32_shlnbsd_vec): New vector.
6917 * configure: Regenerate.
6918 * elf32-sh-nbsd.c: New file.
6919 * targets.c: Update copyright years.
6920 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
6921 bfd_elf32_shnbsd_vec.
6922
6923 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
6924
6925 * coff-rs6000.c (READ20): Use bfd_scan_vma.
6926
6927 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
6928
6929 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
6930 of a symbol in a section that will be deleted.
6931
6932 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6933
6934 * po/es.po: New file: Spanish translation.
6935 * configure.in (ALL_LINGUAS): Add es.
6936 * configure: Regenerate.
6937
6938 2002-01-06 Steve Ellcey <sje@cup.hp.com>
6939
6940 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
6941 argument so we can handle HP-UX specially.
6942 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
6943 (elfNN_hpux_backend_section_from_bfd_section): New for support
6944 of SHN_IA_64_ANSI_COMMON.
6945 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
6946 (is_unwind_section_name): Add special HP-UX support.
6947 (elfNN_ia64_section_from_shdr): Add support for more sections.
6948 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
6949 add support for more sections.
6950 (elfNN_ia64_additional_program_headers): Modify
6951 is_unwind_section_name call.
6952 (elfNN_ia64_modify_segment_map): Remove assumption that there is
6953 only one unwind section in segment.
6954
6955 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6956
6957 * syms.c (_bfd_generic_make_empty_symbol): New function.
6958 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
6959 _bfd_generic_make_empty_symbol.
6960 * libbfd.h: Regenerate.
6961 * bfd-in2.h: Regenerate.
6962 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
6963 (hppabsd_core_get_symtab_upper_bound): Don't define.
6964 (hppabsd_core_get_symtab): Likewise.
6965 (hppabsd_core_print_symbol): Likewise.
6966 (hppabsd_core_get_symbol_info): Likewise.
6967 (hppabsd_core_bfd_is_local_label_name): Likewise.
6968 (hppabsd_core_get_lineno): Likewise.
6969 (hppabsd_core_find_nearest_line): Likewise.
6970 (hppabsd_core_bfd_make_debug_symbol): Likewise.
6971 (hppabsd_core_read_minisymbols): Likewise.
6972 (hppabsd_core_minisymbol_to_symbol): Likewise.
6973 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
6974 Formatting fixes.
6975 * hpux-core.c: Similarly.
6976 * irix-core.c: Similarly.
6977 * osf-core.c: Similarly.
6978 * sco5-core.c: Similarly.
6979 * binary.c (binary_make_empty_symbol): Remove function, define as
6980 _bfd_generic_make_empty_symbol.
6981 * ihex.c (ihex_make_empty_symbol): Likewise.
6982 * mmo.c (mmo_make_empty_symbol): Likewise.
6983 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
6984 * srec.c (srec_make_empty_symbol): Likewise.
6985 * versados.c (versados_make_empty_symbol): Likewise.
6986 * vms.c (_bfd_vms_make_empty_symbol): Remove.
6987 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
6988 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
6989 rather than _bfd_vms_make_empty_symbol.
6990 * vms-misc.c (new_symbol): Likewise.
6991
6992 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6993
6994 * section.c (bfd_section_init): Remove unnecessary initialisations.
6995 (bfd_section_list_clear): New function.
6996 (bfd_section_list_remove, bfd_section_list_insert): New macros.
6997 (_bfd_strip_section_from_output): Use them.
6998 * coffcode.h (coff_set_alignment_hook): Likewise.
6999 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
7000 * elf64-mips.c (mips_elf64_final_link): Likewise.
7001 * elf64-mmix.c (mmix_elf_final_link): Likewise.
7002 * sunos.c (sunos_add_dynamic_symbols): Likewise.
7003 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
7004 * bfd-in2.h: Regenerate.
7005
7006 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
7007 rather than doing our own section handling. Clean up after errors
7008 with bfd_release and bfd_section_list_clear. Handle unexpected
7009 flags.
7010 * aoutf1.h (sunos4_core_file_p): Likewise.
7011 * aix386-core.c (aix386_core_file_p): Likewise.
7012 * cisco-core.c (cisco_core_file_validate): Likewise.
7013 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
7014 * trad-core.c (trad_unix_core_file_p): Likewise.
7015
7016 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
7017 with bfd_release and bfd_section_list_clear.
7018 * hpux-core.c (hpux_core_core_file_p): Likewise.
7019 * irix-core.c (irix_core_core_file_p): Likewise.
7020 * lynx-core.c (lynx_core_file_p): Likewise.
7021 * osf-core.c (osf_core_core_file_p): Likewise.
7022 * rs6000-core.c (rs6000coff_core_p): Likewise.
7023 * sco5-core.c (sco5_core_file_p): Likewise.
7024
7025 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
7026 sign extension adjustments without conditionals.
7027
7028 2002-01-04 Jakub Jelinek <jakub@redhat.com>
7029
7030 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
7031 CIE at .eh_frame start is removed due to no FDEs referencing it.
7032
7033 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * config.bfd (x86_64-*-netbsd*): New target.
7036 * configure.in (x86_64-*-netbsd*): Set COREFILE
7037 to netbsd-core.lo.
7038 * configure: Regenerated.
7039
7040 2002-01-03 Tom Rix <trix@redhat.com>
7041
7042 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
7043 for recent bfd_make_section_anyway change.
7044
7045 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
7046
7047 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7048 R_ARM_THM_PC11 reloc.
7049
7050 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
7051
7052 * configure.in (LINGUAS): Add ja.
7053 * configure: Regenerate.
7054 * po/ja.po: Import from translation project's web site.
7055
7056 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
7057
7058 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
7059 messages to ease translation into other languages.
7060
7061 For older changes see ChangeLog-0001
7062 \f
7063 Local Variables:
7064 mode: change-log
7065 left-margin: 8
7066 fill-column: 74
7067 version-control: never
7068 End:
This page took 0.180745 seconds and 4 git commands to generate.