2002-06-03 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
cedb70c5
KH
12002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2
3 * elf32-arc.c: Fix formatting.
4 * elf32-arm.h: Likewise.
5 * elf32-cris.c: Likewise.
6 * elf32-dlx.c: Likewise.
7 * elf32-hppa.c: Likewise.
8 * elf32-i386.c: Likewise.
9 * elf32-i386qnx.c: Likewise.
10 * elf32-or32.c: Likewise.
11 * elf32-s390.c: Likewise.
12 * elf32-sh64.c: Likewise.
13 * elf32-vax.c: Likewise.
14 * elf32-xstormy16.c: Likewise.
15 * elf64-alpha.c: Likewise.
16 * elf64-mmix.c: Likewise.
17 * elf64-ppc.c: Likewise.
18 * elf64-s390.c: Likewise.
19 * elf64-sh64.c: Likewise.
20 * elf64-x86-64.c: Likewise.
21
048d873d
RH
222002-06-02 Richard Henderson <rth@redhat.com>
23
24 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
25 null when there are no got entries for a symbol.
26 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
27 uninitialized variable warning.
28
4a67a098
RH
292002-06-01 Richard Henderson <rth@redhat.com>
30
31 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
32 undefined symbols here.
33 (elf64_alpha_relax_section): Do it here. Also test for not
34 defined in the current module.
35 (elf64_alpha_relocate_section_r): Split out of ...
36 (elf64_alpha_relocate_section): ... here. Don't dereference
37 NULL when looking up local got entries.
38
f44f99a5
RH
392002-06-01 Richard Henderson <rth@redhat.com>
40
41 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
42 symbols from JSR relaxation.
43 (elf64_alpha_size_plt_section_1): New.
44 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
45 (elf64_alpha_size_rela_got_1): ... here.
46 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
47 (elf64_alpha_size_rela_got_section): ... here.
48 (elf64_alpha_size_plt_section): New.
49 (elf64_alpha_relax_section): Call them.
50 (elf64_alpha_size_got_sections): Remove output_bfd arg.
51 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
52
9e756d64
RH
532002-06-01 Richard Henderson <rth@redhat.com>
54
55 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
56 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
57 in shared libraries. Fix DTPRELHI and TPRELHI value.
58 (INSN_ADDQ, INSN_RDUNIQ): New.
59 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
60 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
61 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
62 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
63 Handle GOTDTPREL and GOTTPREL relocations.
64 (elf64_alpha_relax_gprelhilo): New.
65 (elf64_alpha_relax_tls_get_addr): New.
66 (elf64_alpha_relax_find_tls_segment): New.
67 (elf64_alpha_relax_section): Handle TLS relocations.
68 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
69 (elf64_alpha_check_relocs): Set it.
70
c853d7f6
RH
712002-06-01 Richard Henderson <rth@redhat.com>
72
b646261c
RH
73 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
74
c853d7f6
RH
75 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
76 check; don't suppress dynamic relocs for non-allocated sections.
77
d7e41a96
RH
78 * elf64-alpha.c: Remove dead code.
79
5f333394
AM
802002-05-31 Alan Modra <amodra@bigpond.net.au>
81
08e0ee05
AM
82 * bfd-in2.h: Regenerate.
83 * libbfd.h: Regenerate.
84 * po/SRC-POTFILES.in: Regenerate.
85
5f333394
AM
86 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
87 space for bss .plt.
88
caf47ea6
AM
892002-05-31 Graeme Peterson <gp@qnx.com>
90
91 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
92 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
93 Run "make dep-am".
94 * Makefile.in: Regenerate.
95 * config.bfd: Add i[3456]86-*-nto-qnx* support.
96 * configure.in: Add bfd_elf32_i386qnx_vec support.
97 * configure: Regenerate.
98 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
99 is_contained_by_filepos, and copy_private_bfd_data_p.
100 * elf.c (assign_file_positions_for_segments): Call backend
101 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
102 (IS_CONTAINED_BY_FILEPOS): Define.
103 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
104 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
105 Fix non-K&R call to _bfd_error_handler.
106 (_bfd_elf_copy_private_section_data): Use backend
107 copy_private_bfd_data_p.
108 * elf32-i386.c: Don't include elfxx-target.h when
109 ELF32_I386_C_INCLUDED is defined.
110 * elf32-i386qnx.c: New QNX elf backend file.
111 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
112 elf_backend_is_contained_by_filepos, and
113 elf_backend_do_copy_private_bfd_data.
114 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
115
5bc56484
AM
1162002-05-31 Alan Modra <amodra@bigpond.net.au>
117
118 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
119 Move other similar defines to start of file.
120
1b164155
TR
1212002-05-30 Tom Rix <trix@redhat.com>
122
123 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
124 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
125
3765b1be
RH
1262002-05-30 Richard Henderson <rth@redhat.com>
127
128 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
129 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
130 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
131 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
132 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
133 (struct alpha_elf_obj_tdata): Rename total_got_entries and
134 n_local_got_entries to total_got_size and local_got_size.
135 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
136 (alpha_got_entry_size): New.
137 (elf64_alpha_relax_with_lituse): Use it.
138 (elf64_alpha_relax_without_lituse): Likewise.
139 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
140 (get_got_entry): New.
141 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
142 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
143 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
144 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
145 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
146 (elf64_alpha_calc_got_offsets): Likewise.
147 (alpha_dynamic_entries_for_reloc): New.
148 (elf64_alpha_calc_dynrel_sizes): Use it.
149 (elf64_alpha_size_dynamic_sections): Likewise.
150 (elf64_alpha_relocate_section): Handle TLS relocations.
151 * reloc.c: Add Alpha TLS relocations.
152 * bfd-in2.h, libbfd.h: Rebuild.
153
5e226794
NC
1542002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
155
156 * peXXigen.c (pe_print_idata): Remove double printed
157 import table lines; add Bound-To comment.
158
90ace9e9
JT
1592002-05-29 Matt Thomas <matt@3am-software.com>
160
161 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
162 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
163 (elf32-vax.lo): New rule.
164 * Makefile.in: Regenerate.
165 * configure.in (bfd_elf32_vax_vec)
166 (vaxnetbsd_vec): New vectors.
167 * configure: Regenerate.
168 * config.bfd (vax-*-netbsdelf*)
169 (vax-*-netbsdaout*)
170 (vax-*-netbsd*): New targets.
171 * elf32-vax.c: New file.
172 * reloc.c: Add VAX relocations.
173 * bfd-in2.h: Regenerate.
174 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
175
4a253e81
JT
1762002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
177
178 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
179 and bfd_elf32_bigarm_vec to targ_selvecs.
180
6e7c73dd
CF
1812002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
182
183 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
184 with auto-imported symbols.
185
8afb0e02
NC
1862002-05-29 Adam Nemet <anemet@lnxw.com>
187
188 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
189 sections only record bfd.
190 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
191 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
192 * bfd-in2.h: Regenerate.
193
a95653f5
NC
1942002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
195
196 * syms.c (_bfd_stab_section_find_nearest_line): Move
197 declaration and initialisation of saw_line and saw_func out of
198 for loop.
199
7cdc5bba
AM
2002002-05-29 Alan Modra <amodra@bigpond.net.au>
201
202 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
203 (bfd_elf64_get_symbol_info): Define.
204 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
205
4c7aad1c
AM
2062002-05-29 Andrey Volkov <avolkov@transas.com>
207
208 * cpu-h8300.c: Make default h8300 machine first in machine list.
209
d172d4ba
NC
2102002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
211
212 * config.bfd: Added DLX configuraton.
213 * Makefile.am: Added DLX configuraton.
214 * configure.in: Added DLX configuraton.
215 * archures.c: Add DLX architecure.
216 * reloc.c: Add DLX relocs.
217 * targets.c: Added DLX target vector.
218 * configure: Regenerate.
219 * Makefile.in: Regenreate.
220 * bfd-in2.h: Regenreate.
221 * elf32-dlx.c: New file: Support DLX target.
222 * cpu-dlx.c: New file: Support DLX target.
223
d1329ca3
AM
2242002-05-25 Alan Modra <amodra@bigpond.net.au>
225
428d0de3
AM
226 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
227
d1329ca3
AM
228 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
229 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
230 strings to point inside function code sym string.
231 (func_desc_adjust): Likewise.
232 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
233
3bab7989
ML
2342002-05-24 Michal Ludvig <mludvig@suse.cz>
235
236 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
237 (elf64_x86_64_grok_psinfo): Added.
238
436e8db0
NC
2392002-05-24 TAMURA Kent <kent@netbsd.org>
240
241 * config.bfd: Add a target for i386-netbsdpe.
242
ea1e4b0d
AM
2432002-05-24 Alan Modra <amodra@bigpond.net.au>
244
245 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
246 and is_func_descriptor.
247 (func_desc_adjust): Hide function code sym in shared libs unless
248 there is a matching exported function descriptor sym.
249
13ae64f3
JJ
2502002-05-23 Jakub Jelinek <jakub@redhat.com>
251
252 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
253 for symbols from SHF_TLS section.
254 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
255 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
256 (map_sections_to_segments): Build PT_TLS segment if necessary.
257 (assign_file_positions_for_segments): Likewise.
258 (get_program_header_size): Account for PT_TLS segment.
259 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
260 SEC_THREAD_LOCAL sections to STT_TLS.
261 * reloc.c: Add 386 and IA-64 TLS relocs.
262 * section.c (SEC_THREAD_LOCAL): Define.
263 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
264 Remove.
265 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
266 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
267 unconditionally.
268 (struct elf_final_link_info): Add first_tls_sec.
269 (elf_bfd_final_link): Set first_tls_sec.
270 Compute elf_hash_table (info)->tls_segment.
271 (elf_link_output_extsym): Handle STT_TLS symbols.
272 (elf_link_input_bfd): Likewise.
273 * syms.c (BSF_THREAD_LOCAL): Define.
274 * bfd-in2.h: Rebuilt.
275 * libbfd.h: Rebuilt.
276 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
277 elf_i386_mkobject, elf_i386_object_p): New functions.
278 (elf_howto_table): Add TLS relocs.
279 (elf_i386_reloc_type_lookup): Support TLS relocs.
280 (elf_i386_info_to_howto_rel): Likewise.
281 (struct elf_i386_link_hash_entry): Add tls_type.
282 (struct elf_i386_obj_tdata): New.
283 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
284 New macros.
285 (struct elf_i386_link_hash_table): Add tls_ldm_got.
286 (link_hash_newfunc): Clear tls_type.
287 (elf_i386_check_relocs): Support TLS relocs.
288 (elf_i386_gc_sweep_hook): Likewise.
289 (allocate_dynrelocs): Likewise.
290 (elf_i386_size_dynamic_sections): Likewise.
291 (elf_i386_relocate_section): Likewise.
292 (elf_i386_finish_dynamic_symbol): Likewise.
293 (bfd_elf32_mkobject, elf_backend_object_p): Define.
294 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
295 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
296 want_tprel, want_dtpmod, want_dtprel.
297 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
298 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
299 R_IA64_LTOFF_TPREL22.
300 (elf_code_to_howto_index): Add TLS relocs.
301 (elfNN_ia64_check_relocs): Support TLS relocs.
302 (allocate_global_data_got): Account for TLS .got data.
303 (allocate_dynrel_entries): Account for TLS dynamic relocations.
304 (elfNN_ia64_install_value): Supprt TLS relocs.
305 (set_got_entry): Support TLS relocs.
306 (elfNN_ia64_relocate_section): Likewise.
307
c62e1cc3
NC
3082002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
309
310 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
311 BLX reloc round the relocation up rather than down.
312 * coff-arm.c (coff_arm_relocate_section): Likewise.
313
c5a43a5d
L
3142002-05-21 H.J. Lu (hjl@gnu.org)
315
316 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
317 definition.
318
afbe61cf
AM
3192002-05-22 Alan Modra <amodra@bigpond.net.au>
320
321 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
322 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
323
9c07fe7c
AM
3242002-05-22 Alan Modra <amodra@bigpond.net.au>
325
326 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
327 unresolved relocs.
328 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
329
21611032
TS
3302002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
331
332 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
333 non-ELF targets.
334
41241523
TS
3352002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
336
337 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
338 an error value.
339 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
340 return with false on error.
341 (elf_link_input_bfd): Check reloc_emitter return value.
342
658f2588
JT
3432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
344
345 * config.bfd (armeb-*-netbsdelf*): New target.
346
c862ae31
AM
3472002-05-20 Alan Modra <amodra@bigpond.net.au>
348
349 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
350 at the plt call stub.
351
6dd14845
TS
3522002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
353
354 * cpu-mips.c (mips_compatible): Don't try to check machine
355 compatibility.
356
a58d9c34
TR
3572002-05-18 Tom Rix <trix@redhat.com>
358
359 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
360
ef60b7ff
AM
3612002-05-17 Alan Modra <amodra@bigpond.net.au>
362
363 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
364 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
365 we've already warned about an undefined symbol. Report more
366 detail on reloc errors.
367
a703a6ea
AM
3682002-05-17 Alan Modra <amodra@bigpond.net.au>
369
370 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
371 * configure.in: Invoke AM_INSTALL_LIBBFD.
372 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
373 (install_libbfd): .. New target.
374 (uninstall_libbfd): Likewise.
375 (install-bfdlibLTLIBRARIES): Likewise.
376 (uninstall-bfdlibLTLIBRARIES): Likewise.
377 (bfdlibdir): New.
378 (bfdincludedir): New.
379 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
380 * aclocal.m4: Regenerate.
381 * configure: Regenerate.
382 * Makefile.in: Regenerate.
383
2c13d98b
NC
3842002-05-17 Stuart Balfour <sbalfour@cisco.com>
385
386 * hash.c (bfd_hash_lookup): Remove computation of len from inside
387 hash loop.
388
629936c5
NC
3892002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
390
391 * config.bfd: Add targets for sh64-linux (little endian and
392 big endian).
393
e4cf60a8
NC
3942002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
395
396 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
397 is located in the same section as the import table. Instead
398 check, and if necessary load the section containing the thunk.
399
d1e66cd4
NC
4002002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
401
402 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
403 bfd_bread.
404 (xcoff64_core_file_matches_executable_p): Replace bfd_read
405 with bfd_bread.
d1e66cd4 406
2d653fc7
AM
4072002-05-15 Alan Modra <amodra@bigpond.net.au>
408
409 * aix5ppc-core.c: Warning fixes.
410 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
411 * aout-target.h (MY_bfd_link_just_syms): Define.
412 * aout-tic30.c (MY_bfd_link_just_syms): Define.
413 * bfd.c (bfd_link_just_syms): Define.
414 * binary.c (binary_bfd_link_just_syms): Define.
415 * bout.c (b_out_bfd_link_just_syms): Define.
416 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
417 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
418 * coffcode.h (coff_bfd_link_just_syms): Define.
419 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
420 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
421 (_bfd_elf_link_just_syms): Declare.
422 * elf.c (_bfd_elf_link_just_syms): New function.
423 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
424 sections haven't already been discarded by the linker.
425 * elflink.h (elf_link_add_object_symbols): Likewise for stab
426 sections and SEC_MERGE sections.
427 (elf_bfd_discard_info): Similarly here.
428 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
429 * i386msdos.c (msdos_bfd_link_just_syms): Define.
430 * i386os9k.c (os9k_bfd_link_just_syms): Define.
431 * ieee.c (ieee_bfd_link_just_syms): Define.
432 * ihex.c (ihex_bfd_link_just_syms): Define.
433 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
434 (_bfd_generic_link_just_syms): Declare.
435 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
436 * linker.c (_bfd_generic_link_just_syms): New function.
437 * mmo.c (mmo_bfd_link_just_syms): Define.
438 * nlm-target.h (nlm_bfd_link_just_syms): Define.
439 * oasys.c (oasys_bfd_link_just_syms): Define.
440 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
441 * som.c (som_bfd_link_just_syms): Define.
442 * srec.c (srec_bfd_link_just_syms): Define.
443 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
444 (BFD_JUMP_TABLE_LINK): And here.
445 * tekhex.c (tekhex_bfd_link_just_syms): Define.
446 * versados.c (versados_bfd_link_just_syms): Define.
447 * vms.c (vms_bfd_link_just_syms): Define.
448 * libbfd.h: Regenerate.
449 * bfd-in2.h: Regenerate.
450
cb7394f2
TS
4512002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
452
453 * elf32-mips.c: Remove superfluous definitions copied from
454 elfxx-mips.c.
455 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
456 SGIish vectors to check the special case.
457 (mips_elf_hi16_reloc): Fix comment.
458 (mips_elf_got16_reloc): Likewise.
459 (_bfd_mips_elf32_gprel16_reloc): Likewise.
460 (elf_reloc_map): Code cleanup.
461 (mips_reloc_map): Add comment.
462 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
463 (mips_elf32_rtype_to_howto): Likewise.
464 (mips_elf32_discard_info): Likewise.
465 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
466 lead to IRIX compatibility now.
467
8dc1a139
TS
4682002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
469
470 * elfxx-mips.c: Call it IRIX, not Irix in comments.
471
2051e1b5
JT
4722002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
473
474 * config.bfd (shle-*-netbsdelf*): Add target which includes
475 sh64 support.
476
83954261
AM
4772002-05-13 David Edelsohn <edelsohn@gnu.org>
478
479 * configure.in: Revert 2002-04-07. Instead, auto-configure
480 HAVE_ST_C_IMPL.
481 * configure: Regenerate.
482 * config.in: Regenerate.
483 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
484 or AIX_5_CORE.
485
a9bf1154
NC
4862002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
487
488 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
489 corefiles as well.2
490 * configure: Regenerate.
491
3129eb7a
AM
4922002-05-13 Alan Modra <amodra@bigpond.net.au>
493
494 * Makefile.am (install-data-local): Install headers to
495 $(exec_prefix)/include.
496 * Makefile.in: Regenerate.
497
a9a32010
DJ
4982002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
499 Daniel Jacobowitz <drow@mvista.com>
500
501 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
502 map BFD_RELOC_RVA.
503
5042002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
505
506 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
507 hppa*-*-openbsd*): New targets.
508 * configure.in (alpha*-*-openbsd*): Set COREFILE.
509 * configure: Regenerate.
510
f1f0d9ab
TR
5112002-05-10 Tom Rix <trix@redhat.com>
512
ea1e4b0d 513 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
514 xcoff64_ppc_relocate_section.
515 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
516 * libxcoff.h: Common xcoff_reloc_type function declaration.
517
c432ba1a
AM
5182002-05-10 Alan Modra <amodra@bigpond.net.au>
519
16a10388
AM
520 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
521 addend in 2002-05-09 commit.
522
c432ba1a
AM
523 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
524 don't look for stubs on all undefined syms.
525
4a335f3d
AM
5262002-05-09 Alan Modra <amodra@bigpond.net.au>
527
8fc39d5d
AM
528 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
529 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
530 pcrel_offset.
531
4a335f3d
AM
532 * elf32-i386.c (elf_howto_table): Comments.
533 (elf_i386_relocate_section): Handle more relocs for relocatable
534 linking and against SEC_MERGE sections.
535
41fcb14e
AM
5362002-05-08 Alan Modra <amodra@bigpond.net.au>
537
538 * elf32-ppc.c (ppc_elf_create_got): New function.
539 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 540 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
541 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
542 _bfd_elf_create_got_section.
543
b491616a
AM
5442002-05-07 Alan Modra <amodra@bigpond.net.au>
545
546 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
547 * elfxx-target.h (elf_backend_rela_normal): Define.
548 (elfNN_bed): Init rela_normal.
549 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
550 for section symbols here if rela_normal. Simplify abs section test.
551 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
552 return immediately. Remove code handling relocatable linking.
553 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
554 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
555 * elf32-i370.c (i370_elf_relocate_section): Likewise.
556 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
557 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
558 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
559 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
560 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
561 * elf32-s390.c (elf_s390_relocate_section): Likewise.
562 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
563 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
564 * elf64-s390.c (elf_s390_relocate_section): Likewise.
565 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
566 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
567 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
568 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
569 * elf-m10200.c (elf_backend_rela_normal): Define.
570 * elf-m10300.c (elf_backend_rela_normal): Define.
571 * elf32-fr30.c (elf_backend_rela_normal): Define.
572 * elf32-i370.c (elf_backend_rela_normal): Define.
573 * elf32-i860.c (elf_backend_rela_normal): Define.
574 * elf32-m68k.c (elf_backend_rela_normal): Define.
575 * elf32-mcore.c (elf_backend_rela_normal): Define.
576 * elf32-openrisc.c (elf_backend_rela_normal): Define.
577 * elf32-ppc.c (elf_backend_rela_normal): Define.
578 * elf32-s390.c (elf_backend_rela_normal): Define.
579 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
580 * elf64-ppc.c (elf_backend_rela_normal): Define.
581 * elf64-s390.c (elf_backend_rela_normal): Define.
582 * elf64-x86-64.c (elf_backend_rela_normal): Define.
583 * elfxx-ia64.c (elf_backend_rela_normal): Define.
584 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
585 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
586
df212a7e
NC
5872002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
588
589 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
590 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
591
3decf53c
AM
5922002-05-06 Alan Modra <amodra@bigpond.net.au>
593
594 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
595 when not relocatable. Fix reloc_emitter call for K&R.
596
f46c2da6
AM
5972002-05-04 Alan Modra <amodra@bigpond.net.au>
598
599 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
600 reloading local sym addend mistakenly removed in 2002-05-01 change.
601
602 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
603 (read_abbrevs): Change "offset" param to bfd_vma.
604 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
605 Change "abbrev_offset" to bfd_vma.
606 (read_indirect_string): Use correct conversion chars in error
607 message format string, cast bfd_vma's to unsigned long.
608 (read_abbrevs): Likewise.
609 (read_attribute_value): Likewise.
610 (decode_line_info): Likewise.
611 (scan_unit_for_functions): Likewise.
612 (parse_comp_unit): Likewise.
613
59862849
TR
6142002-05-04 Tom Rix <trix@redhat.com>
615
616 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
617 (coff_swap_reloc_out): Same.
618 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
619 (xcoff_swap_reloc_out): Same.
620 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
621 case some 16 bit relocs. Add reloc value to output.
622 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 623 R_RBR. Improve names.
59862849
TR
624 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
625 (bfd_xcoff_backend_data): Update with new reloc swap names.
626 (bfd_pmac_xcoff_backend_data) : Same.
627 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
628 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 629 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 630 R_POS. Add reloc value to output.
ea1e4b0d
AM
631 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
632 bit R_RBR. Improve names, masks.
59862849
TR
633 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
634 (bfd_xcoff_backend_data): Update with new reloc swap names.
635 (bfd_xcoff_aix5_backend_data) : Same.
636
b4655ea9
AM
6372002-05-04 Alan Modra <amodra@bigpond.net.au>
638
639 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
640 bfd_count top_index, input_list, all_local_syms.
641 (elf32_hppa_setup_section_lists): New function, split from
642 elf32_hppa_size_stubs.
643 (elf32_hppa_next_input_section): Likewise.
644 (group_sections): Likewise.
645 (get_local_syms): Likewise.
646 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
647 stubs on undefined syms too.
648 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 649 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
650 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
651 (elf32_hppa_next_input_section): Declare.
652
301e3139
AM
6532002-05-04 Bob Byrnes <byrnes@curl.com>
654
655 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
656 _bfd_new_bfd.
657
7c5fcef7
L
6582002-05-03 H.J. Lu (hjl@gnu.org)
659
660 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
661 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
662 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
663 to hide a global symbol.
664 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 665 forced_local to true.
7c5fcef7 666
84de6048
RH
6672002-05-02 Richard Henderson <rth@redhat.com>
668
669 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
670 vs SHN_UNDEF to zero.
671
805fc799
AM
6722002-05-02 Alan Modra <amodra@bigpond.net.au>
673
c061c2d8
AM
674 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
675 16 bit reloc.
676 <R_PPC64_SECTOFF_DS>: Likewise.
677 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
678 SECTOFF reloc.
679 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
680 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
681 SECTOFF reloc.
682
805fc799
AM
683 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
684 (ppc64_elf_ha_reloc): New function.
685 (ppc64_elf_brtaken_reloc): New function.
686 (ppc64_elf_sectoff_reloc): New function.
687 (ppc64_elf_sectoff_ha_reloc): New function.
688 (ppc64_elf_toc_reloc): New function.
689 (ppc64_elf_toc_ha_reloc): New function.
690 (ppc64_elf_toc64_reloc): New function.
691 (ppc64_elf_unhandled_reloc): New function.
692 (ppc64_elf_howto_raw): Use the above.
693 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
694 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
695 <R_PPC64_SECTOFF_DS>: Likewise.
696 (IS_ABSOLUTE_RELOC): Update.
697 (struct ppc_link_hash_table): Add have_undefweak.
698 (ppc64_elf_link_hash_table_create): Init.
699 (func_desc_adjust): Set have_undefweak.
700 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
701 add the .sfpr blr when have_undefweak.
702 (ppc64_elf_setup_section_lists): Check hash table flavour.
703 (ppc64_elf_next_input_section): Move output_section->owner test to
704 ppc64elf.em.
705 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
706 and relocatable test. Return TOCstart and don't set elf_gp.
707 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
708 offset calculation. Add assert on weak sym branch tweaks.
709 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
710 (ppc64_elf_toc): Declare.
711 (ppc64_elf_next_input_section): Update.
ea1e4b0d 712
818c39a3
AM
7132002-05-01 Alan Modra <amodra@bigpond.net.au>
714
715 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
716 file_name.
717
721956f4
AM
7182002-05-01 Alan Modra <amodra@bigpond.net.au>
719
720 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
721 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
722 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
723 call branches. Correct undefined weak destination.
724 (ppc64_elf_func_desc_adjust): Always create at least one blr in
725 .sfpr, and correct case where either only savef* or restf* is
726 needed.
727
728 Long branch stubs, multiple stub sections.
729 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
730 (ppc64_elf_next_input_section): Declare.
731 * elf64-ppc.c: Move linker-only prototypes.
732 (STUB_SUFFIX): Define.
733 (enum ppc_stub_type): New.
734 (struct ppc_stub_hash_entry): New.
735 (struct ppc_branch_hash_entry): New.
736 (struct ppc_link_hash_entry): Add stub_cache, oh.
737 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
738 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
739 Rename plt_overflow to stub_error.
740 (ppc_stub_hash_lookup): Define.
741 (ppc_branch_hash_lookup): Define.
742 (stub_hash_newfunc): New function.
743 (branch_hash_newfunc): New function.
744 (link_hash_newfunc): Init new fields.
745 (ppc64_elf_link_hash_table_create): Likewise.
746 (ppc64_elf_link_hash_table_free): New function.
747 (ppc_stub_name): New function.
748 (ppc_get_stub_entry): New function.
749 (ppc_add_stub): New function.
750 (create_linkage_sections): Use bfd_make_section_anyway. Create
751 .branch_lt and .rela.branch_lt sections. Don't create .stub.
752 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
753 and set up for plt call stubs. Link func and func desc syms.
754 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
755 (func_desc_adjust): Avoid hash lookup when func desc sym available
756 via shortcut, and set links when processing.
757 (ppc64_elf_hide_symbol): Likewise.
758 (allocate_dynrelocs): Don't allocate stub section here.
759 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
760 Remove sstub code.
761 (ppc_type_of_stub): New function.
762 (build_one_stub): Delete.
763 (ppc_build_one_stub): New function.
764 (ppc_size_one_stub): New function.
765 (ppc64_elf_setup_section_lists): New function.
766 (ppc64_elf_next_input_section): New function.
767 (group_sections): New function.
768 (get_local_syms): New function.
769 (ppc64_elf_size_stubs): Rewrite.
770 (ppc64_elf_build_stubs): Rewrite.
771 (ppc64_elf_relocate_section): Look up stub entry for REL24
772 relocs. Don't propagate REL14* to dynamic objects. Look for long
773 branch stubs if REL14* or REL24 relocs won't reach.
774 (bfd_elf64_bfd_link_hash_table_free): Define.
775
09c2219b
MM
7762002-04-30 Mark Mitchell <mark@codesourcery.com>
777
778 * bfd/config.bfd: Add support for powerpc-*-windiss.
779
07b678c0
TR
7802002-04-30 Tom Rix <trix@redhat.com>
781
782 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
783 symbol names into the hash table.
784
dbe341c6
TR
7852002-04-28 Tom Rix <trix@redhat.com>
786
787 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 788 calulating relocations.
dbe341c6 789 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
790 (xcoff_ppc_relocate_section): Use relocation and complain function
791 tables.
792 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
793 (xcoff_complain_overflow_signed_func): Same.
794 (xcoff_complain_overflow_bitfield_func): Same.
795 (xcoff_complain_overflow_dont_func): Same.
796 (xcoff_reloc_type_crel): New recot function.
797 (xcoff_reloc_type_br): Same.
798 (xcoff_reloc_type_ba): Same.
799 (xcoff_reloc_type_toc): Same.
800 (xcoff_reloc_type_rel): Same.
801 (xcoff_reloc_type_neg): Same.
802 (xcoff_reloc_type_pos): Same.
803 (xcoff_reloc_type_fail): Same.
804 (xcoff_reloc_type_noop): Same.
805 * libxcoff.h : Declare common parts for xcoff64.
806 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 807 and complain function tables.
dbe341c6 808
985142a4
AM
8092002-04-28 Alan Modra <amodra@bigpond.net.au>
810
811 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
812 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
813
eba91044
AM
8142002-04-26 Alan Modra <amodra@bigpond.net.au>
815
e54fdaa5
AM
816 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
817 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
818
a50c1845
AM
819 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
820 same as the output before calling elf_link_input_bfd.
821
eba91044
AM
822 * coffcode.h (coff_compute_section_file_positions): Set
823 section_tail after shuffling section list.
824
3c25c5f6
NC
8252002-04-24 Christian Groessler <chris@groessler.org>
826
827 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
828 addresses are 23bit with a special layout, not plain 32bit
829 values. Prevent relocation of immediate values.
830
40d32fc6
CD
8312002-04-24 Chris G. Demetriou <cgd@broadcom.com>
832
833 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
834 MIPS-16 ASE flags are set, print something to indicate that.
835
067fa4a6
AM
8362002-04-23 Alan Modra <amodra@bigpond.net.au>
837
838 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
839 under which a plt call stub is used.
840 (final_link_relocate): Similarly.
841 (allocate_plt_static): Clear h-plabel except when plt entry is
842 exclusively used for a plabel.
843 (allocate_dynrelocs): Use the above to simplify plt sizing.
844 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
845 (elf32_hppa_link_hash_table_create): Init.
846 (BL22_RP): Define.
847 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
848 (elf32_hppa_check_relocs): Set has_22bit_branch.
849
850 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
851 (final_link_relocate): Likewise.
852
af40ce3c
JJ
8532002-04-22 Jakub Jelinek <jakub@redhat.com>
854
855 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
856 search table if some FDE is DW_EH_PE_aligned encoded either.
857 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
858
09ae86c2
JJ
8592002-04-22 Richard Smith <richard@ex-parrot.com>
860 Jakub Jelinek <jakub@redhat.com>
861
862 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
863 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
864 encoded personality.
865 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
866 for CIE/FDE removal.
867
deeb2cd7
TR
8682002-04-20 Tom Rix <trix@redhat.com>
869
870 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
871
99dc0092
AM
8722002-04-20 Alan Modra <amodra@bigpond.net.au>
873
aa3d5824
AM
874 * archures.c (bfd_lookup_arch): Move the list order comment..
875 (struct bfd_arch_info): ..to where it belongs.
876 * bfd-in2.h: Regenerate.
877
99dc0092
AM
878 * archures.c (bfd_lookup_arch): Add comment on list order.
879 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
880 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
881 is always at head of list.
882
7831a775
NC
8832002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
884
885 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
886 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
887 definition of these functions for ARM_WINCE builds as they are
888 not used.
ea1e4b0d 889 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
890 for ARM_WINCE builds.
891
8922002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
893
ea1e4b0d 894 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
895
8962002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
897
898 * cpu-sh.c (scan_mach): Delete.
899 (arch_info_struct): Replace scan_mach with bfd_default_scan.
900 (bfd_sh_arch): Likewise.
901
3d8dbe36
NC
9022002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
903
904 * ihex.c (ihex_write_object_contents): Fix check for records
905 crossing 64K boundaries.
906
4ab82700
AM
9072002-04-16 Alan Modra <amodra@bigpond.net.au>
908
909 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
910 type rather than just assuming entries are ELF.
911 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
912 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
913 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
914 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
915 rather than elf_link_hash_entry.
916
036fe0fe
RH
9172002-04-15 Richard Henderson <rth@redhat.com>
918
919 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
920 n32 binaries.
921
c4f3d130
NC
9222002-04-15 Michael Snyder <msnyder@redhat.com>
923
924 * opncls.c (bfd_close): Write contents if writeable.
925 Minor formatting tidy-ups.
926
4ab82700 9272002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
928
929 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
930
0c04d169
MS
9312002-04-12 Michael Snyder <msnyder@redhat.com>
932
933 * bfd-in.h (bfd_get_section_lma): New access macro.
934 Minor white-space fix-up.
935
89d4966f
AM
9362002-04-12 Alan Modra <amodra@bigpond.net.au>
937
938 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
939 header pad.
940
8d0da3c2
DD
9412002-04-09 DJ Delorie <dj@redhat.com>
942
943 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
944
05793179
NC
9452002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
946
947 * coffcode.h (coff_read_word): New.
948 (coff_compute_checksum): New.
949 (coff_apply_checksum): New.
950 (coff_write_object_contents): Call coff_apply_checksum () to
951 apply checksum to PE image.
952
46fe4e66
AM
9532002-04-08 Randolph Chung <tausq@debian.org>
954
955 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
956 (elf32_hppa_final_link): Split out sorting logic to..
957 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
958 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
959
3b5b409c
AC
9602002-04-07 Andrew Cagney <ac131313@redhat.com>
961
962 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
963 pattern.
964 * configure: Re-generate.
965
ac7b6ceb
AC
9662002-04-07 Andrew Cagney <ac131313@redhat.com>
967
968 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
969 is greater or equal to 4.3.3.
970 * configure: Regenerate.
971 Fix PR gdb/344.
972
44aa49bb
HPN
9732002-04-05 Hans-Peter Nilsson <hp@axis.com>
974
975 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
976 R_CRIS_32_PCREL>: Fix typo in name.
977 (cris_elf_check_relocs): Always create .rela.got here when
978 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
979 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
980 assume it's created.
981
e2d34d7d
DJ
9822002-04-04 Daniel Jacobowitz <drow@mvista.com>
983
984 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
985 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
986 define.
987 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
988 * bfd.c (bfd_link_hash_table_free): Define.
989 * binary.c (binary_bfd_link_hash_table_free): Define.
990 * bout.c (b_out_bfd_link_hash_table_free): Define.
991 * coff-rs6000.c (rs6000coff_vec): Include
992 _bfd_generic_link_hash_table_free.
993 (pmac_xcoff_vec): Likewise.
994 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
995 (aix5coff64_vec): Likewise.
996 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
997 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
998 (bfd_elf32_bfd_link_hash_table_free): Define.
999 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1000 (bfd_elf32_bfd_link_hash_table_free): Define.
1001 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1002 define.
1003 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1004 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1005 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1006 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1007 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1008 (_bfd_generic_link_hash_table_free): Add prototype.
1009 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1010 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1011 * linker.c (_bfd_generic_link_hash_table_free): New function.
1012 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1013 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1014 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1015 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1016 * som.c (som_bfd_link_hash_table_free): Define.
1017 * srec.c (srec_bfd_link_hash_table_free): Define.
1018 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1019 * versados.c (versados_bfd_link_hash_table_free): Define.
1020 * vms.c (vms_bfd_link_hash_table_free): New function.
1021 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1022
1023 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1024 instead of bfd_alloc.
1025 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1026 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1027 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1028 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1029 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1030 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1031 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1032 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1033 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1034 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1035 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1036 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1037 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1038 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1039 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1040 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1041 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1042 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1043 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1044 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1045 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1046 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1047 * m68klinux.c (linux_link_hash_table_create): Likewise.
1048 * sparclinux.c (linux_link_hash_table_create): Likewise.
1049 * sunos.c (sunos_link_hash_table_create): Likewise.
1050 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1051
1052 * targets.c: Add _bfd_link_hash_table_free to xvec.
1053
1054 * bfd-in2.h: Regenerate.
1055 * libbfd.h: Regenerate.
1056 * libcoff.h: Regenerate.
1057
830629ab
AM
10582002-04-04 Alan Modra <amodra@bigpond.net.au>
1059
1060 * dep-in.sed: Cope with absolute paths.
1061 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1062 Run "make dep-am".
1063 * Makefile.in: Regenerate.
1064 * coff-arm.c: Fix copyright date.
1065 * cpu-h8300.c: Likewise.
1066 * cpu-i370.c: Likewise.
1067 * cpu-s390.c: Likewise.
1068 * cpu-mips.c: Likewise.
1069 * po/SRC-POTFILES.in: Regenerate.
1070
c6e90b02
TS
10712002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1072
1073 * Makefile.am: Add elfxx-mips.c to the known backends.
1074 (elf32-mips.lo): remove dependency to coff/external.h.
1075 * Makefile.in: Regenerate.
1076 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1077 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1078 accordingly.
1079 * configure: Regenerate.
1080 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1081 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1082 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1083 MIPS specific backend functions.
1084 * elf32-mips.c: Moved most code to elfxx-mips.c.
1085 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1086 static.
1087 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1088 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1089 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1090 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1091 interface to allow selection of the right REL or RELA howto table.
1092 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1093 static. Let it refuse n32 objects.
1094 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1095 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1096 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1097 (elf32_mips_ignore_discarded_relocs): Rename from
1098 _bfd_elf32_mips_ignore_discarded_relocs.
1099 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1100 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1101 (elf_mips_howto_table_rela): Remove.
1102 * elf64-mips.c: Moved most code to elfxx-mips.c.
1103 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1104 (mips_elf64_rtype_to_howto): New function.
1105 (mips_elf64_object_p): Likewise.
1106 (elf64_mips_irix_compat): Likewise.
1107 * elfxx-mips.c: New file containing common code merged together from
1108 elf32-mips.c and elf64-mips.c.
1109 * elfxx-mips.h: New file containing MIPS specific prototypes from
1110 elf-bfd.h.
1111 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1112 elf_backend_mips_rtype_to_howto.
1113
d8dce692
AM
11142002-04-04 Alan Modra <amodra@bigpond.net.au>
1115
1116 * srec.c (MAXCHUNK, Chunk): Revise comments.
1117 (srec_write_record): Correct buffer size.
1118 (srec_write_header): Do without intermediate buffer.
1119 (srec_write_section): Validate Chunk.
1120 (srec_write_terminator): Pass NULL instead of dummy buffer.
1121 (srec_write_symbols): Pass file and symbol names directly to
1122 bfd_bwrite so sprintf won't overflow buffer.
1123
b88a866a
JJ
11242002-04-03 Jakub Jelinek <jakub@redhat.com>
1125
1126 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1127 PC relative relocs against hidden symbols.
1128 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1129
d7866f04
AM
11302002-04-03 Alan Modra <amodra@bigpond.net.au>
1131
1132 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1133 LMAs, loop over segments until p_vaddr and p_memsz specify an
1134 extent enclosing the section.
1135
9e81ee67
NC
11362002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1137
1138 * ihex.c (ihex_write_object_contents): Do not allow records to
1139 cross a 64K boundary - wrap if necessary.
1140
d2b64500
JT
11412002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1142
1143 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1144 which caused the returned LWP ID to always be 0.
1145
e36f7d53
RH
11462002-04-01 Richard Henderson <rth@redhat.com>
1147
1148 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1149 (elf32_sparc_relocate_section): Use it to figure out when to
1150 initialize .got entries.
1151 * elf64-sparc.c: Similarly.
1152
e92d460e
AM
11532002-03-28 Alan Modra <amodra@bigpond.net.au>
1154
1155 * linker.c (link_action): Ignore duplicate warning syms.
1156 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1157 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1158 (elf_adjust_dynamic_symbol): Likewise.
1159 (elf_export_symbol): Likewise.
1160 (elf_link_find_version_dependencies): Likewise.
1161 (elf_link_assign_sym_version): Likewise.
1162 (elf_link_sec_merge_syms): Likewise.
1163 (elf_link_output_extsym): Likewise.
1164 (elf_gc_sweep_symbol): Likewise.
1165 (elf_gc_propagate_vtable_entries_used): Likewise.
1166 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1167 (elf_gc_allocate_got_offsets): Likewise.
1168 (elf_collect_hash_codes): Likewise.
1169 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1170 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1171 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1172 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1173 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1174 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1175 (elf_cris_discard_excess_dso_dynamics): Likewise.
1176 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1177 (mark_PIC_calls): Likewise.
1178 (allocate_plt_static): Likewise.
1179 (allocate_dynrelocs): Likewise.
1180 (readonly_dynrelocs): Likewise.
1181 * elf32-i386.c (allocate_dynrelocs): Likewise.
1182 (readonly_dynrelocs): Likewise.
1183 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1184 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1185 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1186 (mips_elf_sort_hash_table_f): Likewise.
1187 (mips_elf_check_mips16_stubs): Likewise.
1188 * elf32-s390.c (allocate_dynrelocs): Likewise.
1189 (readonly_dynrelocs): Likewise.
1190 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1191 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1192 (xstormy16_relax_plt_realloc): Likewise.
1193 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1194 (elf64_alpha_output_extsym): Likewise.
1195 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1196 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1197 (mips_elf64_check_mips16_stubs): Likewise.
1198 (mips_elf64_output_extsym): Likewise.
1199 * elf64-ppc.c (func_desc_adjust): Likewise.
1200 (allocate_dynrelocs): Likewise.
1201 (readonly_dynrelocs): Likewise.
1202 * elf64-s390.c (allocate_dynrelocs): Likewise.
1203 (readonly_dynrelocs): Likewise.
1204 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1205 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1206 (readonly_dynrelocs): Likewise.
1207 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1208 * aoutx.h (aout_link_write_other_symbol): Likewise.
1209 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1210 (_bfd_coff_write_global_sym): Likewise.
1211 * i386linux.c (linux_tally_symbols): Likewise.
1212 * m68klinux.c (linux_tally_symbols): Likewise.
1213 * sparclinux.c (linux_tally_symbols): Likewise.
1214 * pdp11.c (aout_link_write_other_symbol): Likewise.
1215 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1216 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1217 (xcoff_write_global_symbol): Likewise.
1218
1219 * cofflink.c (_bfd_coff_final_link): Formatting.
1220 * cpu-mips.c (mips_compatible): Make static, prototype.
1221 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1222 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1223 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1224 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1225 (mips_elf64_final_link): Likewise.
1226 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1227 prototype.
1228
2106126f
NC
12292002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1230
1231 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1232 (SWAP_OUT_RELOC_OFFSET): Define.
1233
b99d1833
AM
12342002-03-27 Gregory Steuck <greg@nest.cx>
1235
1236 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1237 terminating NULL if empty symbol table.
1238 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1239
ad43ed4c
L
12402002-03-26 H.J. Lu (hjl@gnu.org)
1241
1242 * elflink.h (elf_link_input_bfd): Revert the last change since
1243 the gcc exception handling isn't fixed yet.
1244
3851fca4
L
12452002-03-26 H.J. Lu (hjl@gnu.org)
1246
1247 * elflink.h (elf_link_input_bfd): Complain about relocations
1248 against local symbols in discarded sections.
1249
b91afed7
AM
12502002-03-26 Alan Modra <amodra@bigpond.net.au>
1251
1252 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1253
dba143ef
AM
12542002-03-23 Alan Modra <amodra@bigpond.net.au>
1255
1256 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1257 section file offset for !SEC_LOAD sections.
1258
ee29b9fb
RE
12592002-03-21 Richard Earnshaw <rearnsha@arm.com>
1260
830629ab
AM
1261 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1262 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 1263
54327882
AM
12642002-03-21 Alan Modra <amodra@bigpond.net.au>
1265
1266 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1267 Whitespace changes.
1268 * archive.c: Update copyright date.
1269 * bfd-in2.h: Regenerate.
1270 * libbfd.h: Regenerate.
1271 * Makefile.am: Run "make dep-am"
1272 * Makefile.in: Regenerate.
1273 * po/SRC-POTFILES.in: Regenerate.
1274
1ee24f27
DJ
12752002-03-20 Daniel Jacobowitz <drow@mvista.com>
1276
1277 * dwarf2.c (struct funcinfo): Move up.
1278 (lookup_address_in_function_table): New argument function_ptr.
1279 Set it.
1280 (lookup_address_in_line_table): New argument function. If function
1281 is non-NULL, use it to handle ``addr'' before the first line note of
1282 the function.
1283 (comp_unit_find_nearest_line): Update and swap calls to
1284 lookup_address_in_function_table and lookup_address_in_line_table.
1285 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1286 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1287
51b9608c
TR
12882002-03-20 Tom Rix <trix@redhat.com>
1289
ea1e4b0d 1290 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 1291 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 1292 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 1293
789c90aa
TR
12942002-03-19 Tom Rix <trix@redhat.com>
1295
ea1e4b0d 1296 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
1297 dynamic objects in archives.
1298
1da54d81
HPN
12992002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1300
1301 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1302 STT_NOTYPE symbols to STT_OBJECT.
1303
7831a775 13042002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
1305
1306 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1307
eb1e0e80
NC
13082002-03-18 Tom Rix <trix@redhat.com>
1309
1310 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1311 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1312 * coff-rs6000 (do_pad) : New function for archive padding.
1313 (do_copy) : New function for object file copying in archives.
1314 (do_shared_object_padding) : New function for padding shared
1315 objects to their text section alignment in archives.
1316 (bfd_xcoff_ar_achive_set_magic) : Stub.
1317 (xcoff_write_armap_big) : Use do_copy and do_pad.
1318 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1319 do_copy and do_pad.
1320 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 1321 bfd_xcoff_magic_number.
eb1e0e80
NC
1322 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1323 fop.
1324 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1325 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1326 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1327 * rs6000-core.c : Update copyright date.
ea1e4b0d 1328 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
1329 csectpp.
1330 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1331 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1332 (coff_set_flags) : Use bfd_xcoff_magic_number.
1333 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1334 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1335 * Makefile.am : Same.
1336 * config.bfd : Same.
1337 * targets.c : Same.
1338 * configure : Regnerate.
1339 * Makefile.in : Same.
1340 * bfd-in2.h : Same.
1341
a1c259a1
NC
13422002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1343
1344 * po/fr.po: Updated version.
1345
4dae1ae7
AM
13462002-03-18 Alan Modra <amodra@bigpond.net.au>
1347
1348 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1349 * libbfd.h: Regenerate.
1350 * archive.c (coff_write_armap): Pass on failures from
1351 bfd_write_bigendian_4byte_int.
1352
36b4f6e7
L
13532002-03-14 H.J. Lu <hjl@gnu.org>
1354
1355 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1356 error to bfd_error_nonrepresentable_section for reinit_array
1357 section in DSO.
1358
a1aefc76
NC
13592002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1360
a181be0a
NC
1361 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1362 OR it in rather than replacing previously selected flags.
1363
a1aefc76
NC
1364 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1365 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1366
c119f9b8
AM
13672002-03-14 Alan Modra <amodra@bigpond.net.au>
1368
1369 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1370 (N): Use the above.
1371 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1372 ensure reloc size matches before calling elf_link_input_bfd.
1373 Add an assert to check reloc size when counting output relocs.
1374
c295a511
NC
13752002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1376
1377 * mmo.c (mmo_get_loc): Return NULL rather than false.
1378
9ce88e60
NC
13792002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1380
1381 * po/fr.po: Updated version.
1382
4ddafab0
AM
13832002-03-13 Alan Modra <amodra@bigpond.net.au>
1384
b74fa2cd
AM
1385 * archures.c (bfd_default_compatible): Test bits_per_word.
1386 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1387 bfd_default_compatible.
1388 * cpu-i370.c (i370_compatible): Likewise.
1389 * cpu-sparc.c (sparc_compatible): Likewise.
1390 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1391
40b829d4
AM
1392 * elflink.h: Formatting fixes.
1393 (elf_link_output_extsym): Merge undefined and undef weak cases.
1394
4ddafab0
AM
1395 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1396 when word size of input matches output word size.
1397
dd53c801
AJ
13982002-03-12 Andreas Jaeger <aj@suse.de>
1399
1400 * cpu-i386.c (i386_compatible): New. Use it instead of
1401 bfd_default_compatible.
1402
aa066ac8
L
14032002-03-07 H.J. Lu (hjl@gnu.org)
1404
1405 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1406 as the type for bfd_reloc_val.
1407
1bf42538
JL
14082002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1409
1410 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1411 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1412 (elf_hppa_final_link_relocate): Correct relocations for indirect
1413 references to local data through the DLT. Fix .opd creation for
1414 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1415 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1416 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1417 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1418 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1419 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1420 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1421
86eaf01e
JJ
14222002-03-05 Jakub Jelinek <jakub@redhat.com>
1423
1424 * merge.c (_bfd_merge_sections): Don't segfault if there
1425 is nothing to merge due to GC.
1426
c44233aa
AM
14272002-03-05 Alan Modra <amodra@bigpond.net.au>
1428
039cc25f
AM
1429 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1430 symbols that have been forced local.
1431
c44233aa
AM
1432 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1433 to output forced local syms for non-shared link.
1434 (elf_link_output_extsym): Tweak condition for calling backend
1435 adjust_dynamic_symbol so that previous behaviour is kept.
1436 Whitespace changes throughout file.
1437
25e27870
L
14382002-03-04 H.J. Lu <hjl@gnu.org>
1439
1440 * elf.c (bfd_section_from_shdr): Handle special sections,
1441 .init_array, .fini_array and .preinit_array.
1442 (elf_fake_sections): Likewise.
1443
1444 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1445 DT entry only if the section is in output for .init_array,
1446 .fini_array and .preinit_array. Complain about .preinit_array
1447 section in DSO.
1448 (elf_bfd_final_link): Warn zero size for .init_array,
1449 .fini_array and .preinit_array sections.
1450
1451 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1452 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1453 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1454 .preinit_array.
1455
bb2a49f2
AM
14562002-03-04 Alan Modra <amodra@bigpond.net.au>
1457
1458 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1459 * configure: Regenerate.
1460
38487e5e
TR
14612002-03-02 Tom Rix <trix@redhat.com>
1462
c44233aa
AM
1463 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1464 symbolic equiv.
38487e5e
TR
1465 * coff-rs6000.c (xcoff_howto_table): Same.
1466
30831527
RH
14672002-03-01 David Mosberger <davidm@hpl.hp.com>
1468
1469 * elflink.h (size_dynamic_sections): If section named
1470 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1471 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1472 ".init_array" and ".fini_array".
1473 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1474 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1475 DT_FINI_ARRAY.
1476
c8e5ddc8
AM
14772002-02-26 Andrew Macleod <amacleod@cygnus.com>
1478
1479 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1480 dynsyms.
1481
96e0dda4
AM
14822002-02-25 Alan Modra <amodra@bigpond.net.au>
1483
1c5b6bf8
AM
1484 * elf64-hppa.h: Update copyright date.
1485
96e0dda4
AM
1486 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1487 (ppc64_elf_relocate_section): Don't generate power4 style branch
1488 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1489
0fb19cbc
JJ
14902002-02-22 Jakub Jelinek <jakub@redhat.com>
1491
1492 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1493 last patch.
1494 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1495
c434dee6
AJ
14962002-02-21 Andreas Jaeger <aj@suse.de>
1497
1498 * elf64-x86-64.c: Major rework that introduces all recent changes
1499 to the x86-64 backend. Get a closer match to elf32-i386.
1500 (struct elf64_x86_64_dyn_relocs): Rename from
1501 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1502 all users.
1503 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1504 sections.
1505 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1506 remove casts, initialize new hash members.
1507 (create_got_section): New.
1508 (elf64_x86_64_create_dynamic_sections): New.
1509 (elf64_x86_64_copy_indirect_symbol): New.
1510 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1511 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1512 Reference count possible .plt and .got entries. Don't test input
1513 section SEC_READONLY here to try to avoid copy relocs, and keep
1514 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1515 DF_TEXTREL here. Delay setting of variables until needed. Cache
1516 pointer to "sreloc" section in elf_section_data. Tweak condition
1517 under which .got created. Report files with bad relocation
1518 section names.
1519 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1520 Reference count possible .plt entries. Don't deallocate .got and
1521 .relgot space here.
1522 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1523 do copy reloc processing for weakdefs. Remove redundant casts and
1524 aborts. Delay setting of vars until needed. Move creation of
1525 dynamic symbols and allocation of .plt and .rela.plt to
1526 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1527 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1528 (allocate_dynrelocs): New.
1529 (readonly_dynrelocs): New.
1530 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1531 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1532 Zero out the dynamic allocated content space.
1533 (elf64_x86_64_discard_copies): Removed.
1534 (elf64_x86_64_relocate_section): Make use of dynamic section
1535 short-cuts. Localise vars, and delay setting. Better error
1536 reporting, replace BFD_ASSERT with abort. Check
1537 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1538 regular object file and tread the weak definition as the normal
1539 one. Don't discard relocs for undefweak or undefined symbols and
1540 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1541 relocs.
1542 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1543 symbols that have been forced local. Use same test to decide if
1544 we can use a relative reloc for got as relocate_section. Expand
1545 SHN_UNDEF comment. Move expressions out of function calls.
1546 Replace BFD_ASSERT with abort.
1547 (bfd_elf64_bfd_final_link): Removed.
1548 (elf_backend_copy_indirect_symbol): Define.
1549
ff3a6ee3
TR
15502002-02-20 Tom Rix <trix@redhat.com>
1551
1552 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1553 (_bfd_xcoff_reloc_type_lookup): Use it.
1554 * coff64-rs6000.c (xcoff64_howto_table): Same.
1555 (xcoff64_reloc_type_lookup): Same.
c434dee6 1556
a68d41fb
AM
15572002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1558
1559 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1560 little endian.
1561
befc3abb
MS
15622002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1563
1564 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1565 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1566 * bfd-in2.h: Regenerate.
1567 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1568 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1569 with "s390:64-bit".
1570 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1571 (elf_s390_reloc_type_lookup): Likewise.
1572 (elf_s390_check_relocs): Likewise.
1573 (elf_s390_gc_sweep_hook): Likewise.
1574 (elf_s390_relocate_section): Likewise.
1575 (elf_s390_object_p): Use renamed architecture define.
1576 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1577
6eeeec9b
FCE
15782002-02-19 Frank Ch. Eigler <fche@redhat.com>
1579
1580 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1581
0bb2d96a
JJ
15822002-02-19 Jakub Jelinek <jakub@redhat.com>
1583
1584 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1585 absptr -> pcrel optimization for shared libs.
1586 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1587 library cannot be converted to pcrel.
1588 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1589 relative.
1590 * elf32-i386.c (elf_i386_relocate_section): If
1591 _bfd_elf_section_offset returned -2, skip, but make sure the
1592 relocation is installed.
1593 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1594 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1595 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1596 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1597 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1598 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1599 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1600 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1601 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1602 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1603 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1604 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1605 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1606 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1607 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1608 _bfd_elf_section_offset returning -2 the same way as -1.
1609 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1610 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1611 and BFD_ASSERT.
1612 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1613
69f284c7
TR
16142002-02-18 Tom Rix <trix@redhat.com>
1615
1616 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1617 (bfd_xcoff_size_dynamic_sections): Same.
1618 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1619 (bfd_xcoff_size_dynamic_sections): Same.
1620 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1621 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1622 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1623 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1624 * bfd-in2.h: Regenerate.
1625
82bd7b59
AM
16262002-02-18 Alan Modra <amodra@bigpond.net.au>
1627
1628 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1629 (struct ppc_link_hash_table): Add sfpr.
1630 (ppc64_elf_link_hash_table_create): Init it.
1631 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1632 .glink out to..
1633 (create_linkage_sections): ..here. Make .sfpr too.
1634 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1635 dynobj early.
1636 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1637 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1638 ._restf* functions, and create as needed.
1639 (func_desc_adjust): Only force_local for shared libs.
1640
ef1355e8
NC
16412002-02-18 David O'Brien <obrien@FreeBSD.org>
1642
1643 * configure.in: Bump version number post 2.12 branching.
1644 * configure: Regenerate.
1645
dfa36a69
HPN
16462002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1647
1648 * mmo.c: Correct and improve comments.
1649 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1650 zero-pad. Use input to fill up non-empty bfd buffer.
1651 (mmo_flush_chunk): New function.
1652 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1653 changed. Don't emit location specifier if VMA is same as
1654 *LAST_VMAP after omitting leading zero contents. Call
1655 mmo_flush_chunk before emitting location specifier.
1656 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1657 with mmo_write_loc_chunk calls.
1658 (mmo_internal_write_section): Call mmo_flush_chunk after
1659 mmo_write_chunk.
1660 (mmo_write_symbols_and_terminator): Move :Main to first position
1661 in symbol array. Add faked one if it does not exist if there are
1662 other symbols. Don't add it if there are no symbols at all. Move
1663 out test for value of :Main from symbol loop. Rename table
1664 fakemain to maintable and variable mainsym to fakemain.
1665
ccf00ab6
RH
16662002-02-15 Richard Henderson <rth@redhat.com>
1667
1668 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1669 section with no got matches any got. Simplify error generaion.
1670
88eaccc2
AM
16712002-02-15 Alan Modra <amodra@bigpond.net.au>
1672
fd96f80f
AM
1673 Support arbitrary length fill patterns.
1674 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1675 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1676 Call default_data_link_order.
1677 (default_fill_link_order): Delete.
1678 (default_data_link_order): New function.
1679 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1680 of bfd_fill_link_order with bfd_data_link_order.
1681 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1682 * elf64-mips.c (mips_elf64_final_link): Likewise.
1683
88eaccc2
AM
1684 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1685 Correct value returned in "end" for "0x<non-hex>".
1686
e2fd756b
NC
16872002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1688
1689 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1690 (scan): Test against 'mach' field in info structure.
1691
edd29cf9
AM
16922002-02-14 Alan Modra <amodra@bigpond.net.au>
1693
1694 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1695
1e30956e 16962002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1697
1698 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1699 EF_M68000.
1700
bf36db18
NC
17012002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1702
1703 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1704 non-zero physical addresses when adjusting the LMAs of new
1705 sections.
bf36db18 1706
189c6563
AM
17072002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1708
1709 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1710 from _bfd_elf_hppa_gen_reloc_type.
1711 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1712 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1713 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1714 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1715
e948afaf
AO
17162002-02-12 Alexandre Oliva <aoliva@redhat.com>
1717
1718 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1719 loading its contents if there's nothing to do in it.
1720
19397422
AM
17212002-02-12 Alan Modra <amodra@bigpond.net.au>
1722
0ad3a73b
AM
1723 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1724 64k boundary.
1725
19397422
AM
1726 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1727 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1728 (ppc64_elf_finish_dynamic_sections): Set values for them.
1729
51316059
MS
17302002-02-11 Michael Snyder <msnyder@redhat.com>
1731
1732 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1733 * elf.c (elfcore_grok_pstatus): Add prototype.
1734 (elfcore_grok_lwpstatus): Add prototype.
1735 (elfcore_write_lwpstatus): New function.
1736 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1737
518313c3
AO
17382002-02-11 Alexandre Oliva <aoliva@redhat.com>
1739
1740 * elf32-sh.c: Added missing prototypes.
1741 * elf32-sh64.c: Likewise.
1742 (sh_elf_align_loads): Mark unused args as such.
1743 * elf64-sh64.c: Added missing prototypes.
1744 (struct elf_sh64_link_hash_entry): Fix typo.
1745 (sh_elf64_relocate_section): Fix info argument passed to
1746 _bfd_elf_section_offset.
1747
2c73f9d8
AM
17482002-02-11 Alan Modra <amodra@bigpond.net.au>
1749
1750 * Makefile.am: "make dep-am".
1751 * Makefile.in: Regenerate.
1752 * aclocal.m4: Regenerate.
1753 * config.in: Regenerate.
1754 * configure: Regenerate.
1755
d426c6b0
DJ
17562002-02-10 Daniel Jacobowitz <drow@mvista.com>
1757
1758 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1759 variable warnings.
1760 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1761 comparison warning.
1762 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1763 cast warnings for the common case.
1764
e58ee0cd
HPN
17652002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1766
1767 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1768 vectors.
1769 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1770 vectors.
1771
7793f4d0
RH
17722002-02-09 Richard Henderson <rth@redhat.com>
1773
1774 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1775 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1776 (elf64_alpha_relocate_section): Likewise.
1777 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1778 * bfd-in2.h, libbfd.h: Rebuild.
1779
7e799044
HPN
17802002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1781
1782 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1783 that base-plus-offset reloc accounting is consistent.
1784 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1785 up to date for undefined symbols.
1786
027d73eb
EC
17872002-02-08 Eric Christopher <echristo@redhat.com>
1788
1789 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1790
1791 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1792 sections for the O32 ABI.
1793
517662d4
CD
17942002-02-08 Chris Demetriou <cgd@broadcom.com>
1795
1796 * elf32-arm.h: Fix formatting of _("...").
1797 * elf32-d10v.c: Likewise.
1798 * elf32-m68k.c: Likewise.
1799 * elf32-mips.c: Likewise.
1800
5e37cc46
NC
18012002-02-08 Ivan Guzvinec <ivang@opencores.org>
1802
1803 * coff-or32.c: Fix compile time warning messages.
1804
fbca6ad9
AO
18052002-02-08 Alexandre Oliva <aoliva@redhat.com>
1806
1807 Contribute sh64-elf.
1808 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1809 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1810 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1811 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1812 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1813 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1814 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1815 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1816 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1817 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1818 New relocs.
1819 * libbfd.h, bfd-in2.h: Rebuilt.
1820 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1821 (sh_reloc_map): Map them.
1822 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1823 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1824 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1825 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1826 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1827 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1828 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1829 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1830 datalabel_got_offset.
1831 (sh_elf_link_hash_newfunc): Initialize it.
1832 (sh_elf_relocate_section): Augment the scope of
1833 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1834 GOT and GOTOFF handling to new SHmedia relocation types. Support
1835 GOT_BIAS.
1836 (sh_elf_check_relocs): Likewise.
1837 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1838 PLT entries using movi_shori_putval. Support GOT_BIAS.
1839 (sh_elf_finish_dynamic_sections): Likewise.
1840 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1841 relocation, it's now done by the caller.
1842 (GOT_BIAS): New.
1843 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1844 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1845 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1846 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1847 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1848 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1849 sh64_elf64_hash_table): New.
1850 (sh_elf64_howto_table): Introduce new relocs.
1851 (sh_elf64_info_to_howto): Accept new PIC relocs.
1852 (sh_elf64_relocate_section): Augment the scope of
1853 seen_stt_datalabel. Support new PIC relocs.
1854 (sh_elf64_check_relocs): Support new PIC relocs.
1855 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1856 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1857 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1858 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1859 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1860 movi_shori_putval, movi_3shori_putval,
1861 sh64_elf64_create_dynamic_sections,
1862 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1863 sh64_elf64_size_dynamic_sections,
1864 sh64_elf64_finish_dynamic_symbol,
1865 sh64_elf64_finish_dynamic_sections): New.
1866 (elf_backend_create_dynamic-sections,
1867 bfd_elf64_bfd_link_hash_table_create,
1868 elf_backend_adjust_dynamic_symbol,
1869 elf_backend_size_dynamic_sections,
1870 elf_backend_finish_dynamic_symbol,
1871 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1872 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1873 elf_backend_got_header_size, elf_backend_plt_header_size):
1874 Define.
1875 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1876 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1877 match official numbers and names; moved unmaching ones to the
1878 range 0xf2-0xff.
1879 * elf32-sh64.c, elf64-sh64.c: Likewise.
1880 2001-03-12 DJ Delorie <dj@redhat.com>
1881 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1882 sections.
1883 2001-03-12 DJ Delorie <dj@redhat.com>
1884 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1885 be aligned.
1886 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1887 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1888 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1889 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1890 .cranges section with SEC_SORT_ENTRIES set.
1891 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1892 incoming sorted .cranges section.
1893 (sh64_bfd_elf_copy_private_section_data): New.
1894 (sh64_elf_final_write_processing): Only sort .cranges and modify
1895 start address if called by linker.
1896 2001-01-08 Ben Elliston <bje@redhat.com>
1897 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1898 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1899 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1900 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1901 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1902 line. Add comments before all entries.
1903 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1904 comment.
1905 (sh_elf64_reloc): Correct head comment.
1906 (sh_elf64_relocate_section): Correct spacing.
1907 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1908 instead call reloc_dangerous callback.
1909 <case R_SH_SHMEDIA_CODE>: New case.
1910 (sh_elf64_gc_mark_hook): Correct spacing.
1911 (sh_elf64_check_relocs): Ditto.
1912 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1913 New case.
1914 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1915 functions.
1916 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1917 clarify describing comment. Add comments before all entries.
1918 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1919 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1920 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1921 Sort .cranges section in final link. Prepare to set bit 0 on
1922 entry address.
1923 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1924 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1925 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1926 .cranges section.
1927 (sh64_backend_section_from_shdr): New, to recognize
1928 SHT_SH5_CR_SORTED on incoming .cranges section.
1929 (elf_backend_section_from_shdr): Define.
1930 (sh64_elf_final_write_processing): Sort outgoing .cranges
1931 section. (New, temporarily disabled:) Set bit 0 on entry address
1932 according to ISA type.
1933 (sh64_find_section_for_address): New.
1934 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1935 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1936 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1937 bfd_malloc, not xmalloc.
1938 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1939 global.
1940 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1941 temporarily disabled) setting bit 0 on entry address.
1942 (elf_backend_final_write_processing): Define.
1943 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1944 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1945 be a proper relocation for PTA and PTB rather than a marker.
1946 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1947 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1948 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1949 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1950 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1951 Zero src_mask.
1952 * elf64-sh64.c: Ditto.
1953 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1954 * elf32-sh64.c: Include opcodes/sh64-opc.h
1955 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1956 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1957 parameters. No unused parameters. Caller changed.
1958 <case R_SH_PT_16>: New case.
1959 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1960 * Makefile.in: Regenerate.
1961 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1962 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1963 all code sections.
1964 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1965 (sh64_elf_merge_private_data): Ditto.
1966 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1967 to access stored section flags.
1968 (sh64_elf_final_write_processing): Return immediately unless
1969 called by linker. Use sh64_elf_section_data (cranges) to get size
1970 of linker-generated cranges entries.
1971 (sh64_elf_copy_private_data): Add missing "return true".
1972 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1973 (sh_elf64_merge_private_data): Ditto.
1974 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1975 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1976 elf64-sh64.c:sh64_elf_fake_sections.
1977 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1978 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1979 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1980 (sh64_elf_final_write_processing): New.
1981 (elf_backend_final_write_processing): Define.
1982 (sh64_elf_fake_sections): Get header flags from tdata field.
1983 (sh64_elf_copy_private_data): Do not call
1984 sh64_elf_copy_private_data_internal, just copy e_flags field.
1985 (sh64_elf_merge_private_data): Do not call
1986 sh64_elf_copy_private_data_internal.
1987 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1988 Remove EF_SH64_ABI64, let ELF size make difference.
1989 Remove SH64-specific BFD section flag.
1990 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1991 containing SHmedia through elf_section_data (asect)->tdata
1992 non-zero, not using a BFD section flag.
1993 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1994 (sh64_elf_merge_private_data): Similar.
1995 (elf_backend_section_flags): Don't define.
1996 (sh64_elf_backend_section_flags): Delete.
1997 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1998 not EF_SH64_ABI64.
1999 (sh_elf64_merge_private_data): Similar.
2000 * section.c (Section flags definitions): Don't define
2001 SEC_SH_ISA_SHMEDIA.
2002 (bfd-in2.h): Regenerate.
2003 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2004 Make DataLabel references work with partial linking.
2005 * elf32-sh64.c: Fix formatting.
2006 (sh64_elf_link_output_symbol_hook): New.
2007 (elf_backend_link_output_symbol_hook): Define to
2008 sh64_elf_link_output_symbol_hook.
2009 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2010 undefined if partial linking. Adjust sanity check.
2011 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2012 (elf_backend_link_output_symbol_hook): Define to
2013 sh64_elf64_link_output_symbol_hook.
2014 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2015 undefined if partial linking. Adjust sanity check.
2016 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2017 Implement semantics for inter-file DataLabel references.
2018 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2019 (sh64_elf64_add_symbol_hook): New.
2020 (sh_elf64_relocate_section): If passing an indirect symbol with
2021 st_type STT_DATALABEL on the way to a symbol with st_other
2022 STO_SH5_ISA32, do not bitor 1 to the relocation.
2023 (elf_backend_add_symbol_hook): Define to
2024 sh64_elf64_add_symbol_hook.
2025 * elf64-sh32.c: Tweak comments.
2026 (DATALABEL_SUFFIX): Define.
2027 (sh64_elf_add_symbol_hook): New.
2028 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2029 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2030 symbol with st_type STT_DATALABEL on the way to a symbol with
2031 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2032 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2033 Pass through STT_DATALABEL.
2034 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2035 (elf_backend_get_symbol_type): Define.
2036 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2037 (elf_backend_get_symbol_type): Define.
2038 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2039 * elf32-sh64.c: Tweak comments.
2040 (sh64_elf_copy_private_data_internal): Add prototype.
2041 (bfd_elf32_bfd_set_private_flags): Define.
2042 (sh64_elf_copy_private_data_internal): Compare machine name, not
2043 textual BFD target name, to check whether to copy section flag
2044 SHF_SH5_ISA32.
2045 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2046 Tweak section-contents-type-mismatch message.
2047 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2048 Validize reloc-types.
2049 * elf64-sh64.c: New file.
2050 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2051 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2052 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2053 Regenerate dependencies.
2054 * Makefile.in: Regenerate.
2055 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2056 bfd_elf64_sh64l_vec.
2057 * configure.in: Handle bfd_elf64_sh64_vec and
2058 bfd_elf64_sh64l_vec.
2059 * configure: Regenerate.
2060 * po/POTFILES.in: Regenerate.
2061 * po/bfd.pot: Regenerate.
2062 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2063 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2064 anything else but EF_SH64 and EF_SH64_ABI64.
2065 (sh64_elf_merge_private_data): Emit error for anything else but
2066 EF_SH64 and EF_SH64_ABI64.
2067 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2068 from targ_selvecs.
2069 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2070 bfd_elf32_sh64l_vec as a temporary measure.
2071 * configure: Regenerate.
2072 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2073 * cpu-sh.c (arch_info_struct): Include sh5 item
2074 unconditionalized.
2075 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2076 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2077 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2078 * elf32-sh64.c: Tweak comments.
2079 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2080 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2081 (sh64_elf_copy_private_data_internal): Wrap long line.
2082 (sh64_elf_merge_private_data): Rewrite to allow objects from
2083 SH64 subsets to be linked together.
2084 (INCLUDE_SHMEDIA): Define.
2085 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2086 Parenthesize plus-expression inside or-expression.
2087 <global symbol>: Ditto.
2088 (sh_elf_set_mach_from_flags): Remove code refusing
2089 deleted EF_SH64_32BIT_ABI flag.
2090 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2091 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2092 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2093 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2094 (sh_elf_relocate_section) <local symbol>: Or 1 in
2095 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2096 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2097 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2098 relocation.
2099 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2100 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2101 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2102 Regenerate dependencies.
2103 * Makefile.in: Regenerate.
2104 * archures.c: Add bfd_mach_sh5.
2105 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2106 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2107 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2108 * configure: Regenerate.
2109 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2110 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2111 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2112 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2113 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2114 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2115 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2116 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2117 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2118 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2119 in item for SH5.
2120 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2121 for SHmedia relocs.
2122 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2123 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2124 shmedia_prepare_reloc, goto final_link_relocate if it returns
2125 non-zero, else fail as before.
2126 (sh_elf_set_mach_from_flags): Provide function only if not defined
2127 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2128 (sh_elf_set_private_flags): Provide function only if not defined
2129 as a macro.
2130 (sh_elf_copy_private_data): Similar.
2131 (sh_elf_merge_private_data): Similar.
2132 * section.c (SEC_SH_ISA_SHMEDIA): New.
2133 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2134 * elf32-sh64.c: New file.
2135 * libbfd.h: Regenerate.
2136 * bfd-in2.h: Regenerate.
2137 * po/POTFILES.in: Regenerate.
2138 * po/bfd.pot: Regenerate.
2139 * bfd-in2.h: Regenerate.
2140 * libbfd.h: Regenerate.
2141
e108f470
DJ
21422002-02-07 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2145 been included, not drag it in.
2146 * bfd-in2.h: Regenerate.
2147
259d18a3
L
21482002-02-06 H.J. Lu (hjl@gnu.org)
2149
2150 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2151 the mach and ISA fields if necessary.
2152
f13b834e
NC
21532002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2154
2155 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2156 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2157 be sure exactly which architecture this represents.
2158
82f6addb
NC
21592002-02-05 Nick Clifton <nickc@redhat.com>
2160
2161 * po/tr.po: Updated translation.
2162
899f54f5
AM
21632002-02-05 Alan Modra <amodra@bigpond.net.au>
2164
2165 From Jimi X <jimix@watson.ibm.com>
2166 * archures (bfd_mach_ppc64): Define.
2167 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2168 (bfd_powerpc_arch): Define.
2169 * bfd-in2.h: Regenerate.
2170 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2171 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2172 (bfd_powerpc_archs): Add default powerpc64 arch.
2173
248866a8
AM
21742002-02-05 Alan Modra <amodra@bigpond.net.au>
2175
2176 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2177 against section syms in readonly sections. Don't do the global
2178 sym check if we find one.
2179 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2180 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 2181 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
2182 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2183 (elf_s390_grok_prstatus): Add missing prototype.
2184
4fa5c2a8
HPN
21852002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2186
2187 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2188 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2189 Call bfd_get_section_by_name only once. Initialize
2190 bpodata->n_bpo_relocs_this_section.
2191 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2192 referring to DSOs.
2193 (bpo_reloc_request_sort_fn): Don't use difference of values as
2194 return-value.
2195
537c972e
DB
21962002-02-02 David O'Brien <obrien@FreeBSD>
2197
2198 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2199 version 4.5 and later the same as 5-CURRENT.
2200 * configure: Re-generate.
2201
006336b8
JT
22022002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2203
2204 * config.bfd (hppa*-*-netbsd*): New target.
2205
6c571f00
PT
22062002-01-31 Philipp Thomas <pthomas@suse.de>
2207
19397422
AM
2208 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2209 to front of message. Unify messages with elf32-arm.h. Use
2210 commas where neccessary.
2211 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2212 ERROR in messages. Unify messages with coff-arm.c. Correct
2213 VFP/FPA error message.
2214 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2215 APCS-32 for translation.
6c571f00 2216
930b4cb2
HPN
22172002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2218
2219 Perform on-demand global register allocation from
2220 R_MMIX_BASE_PLUS_OFFSET relocs.
2221 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2222 bpo_reloc_request, struct bpo_greg_section_info): New.
2223 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2224 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2225 _bfd_mmix_check_all_relocs,
2226 _bfd_mmix_prepare_linker_allocated_gregs,
2227 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2228 (elf_mmix_howto_table): Correct src_mask for most relocs.
2229 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2230 case.
2231 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2232 case. Fix typo in comment. New label do_mmix_reloc.
2233 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2234 store first object file with a base-plus-offset reloc. Call
2235 mmix_elf_check_common_relocs for the part common with mmo.
2236 (mmix_elf_final_link): Write out linker-allocated register
2237 contents section.
2238 (elf_backend_gc_sweep_hook): Define.
2239 (bfd_elf64_bfd_relax_section): Define.
2240
2241 * mmo.c: Don't include <ctype.h>
2242 (mmo_init): Correct init-once logic.
2243
3e36d993
TR
22442002-02-01 Tom Rix <trix@redhat.com>
2245
2246 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2247
ba323545
AM
22482002-02-01 Alan Modra <amodra@bigpond.net.au>
2249
2250 * Makefile.am: Run "make dep-am"
2251 * Makefile.in: Regenerate.
2252
012884d6
DB
22532002-01-31 David O'Brien <obrien@FreeBSD>
2254
2255 * configure.in: Recognize the differences in core files from FreeBSD
2256 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2257 5-CURRENT.
2258 * configure: Regenerate.
2259
3b16e843
NC
22602002-01-31 Ivan Guzvinec <ivang@opencores.org>
2261
2262 * coff-or32.c: New file.
2263 * cpu-or32.c: New file.
2264 * elf32-or32.c: New file.
2265 * archures.c: Add support for or32.
2266 * targets.c: Add support for or32.
2267 * bfd-in2.h: Regenerate.
7dc0ab31 2268 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
2269 coff_write_object_contents): Add support for or32.
2270 * config.bfd: Add target.
2271 * configure.in: Add support for or32.
2272 * configure: Regenerate.
2273 * Makefile.am: Add support for or32.
2274 * Makefile.in: Regenerate.
3b16e843
NC
2275 * po/SRC-POTFILES.in: Add or32 files.
2276 * po/bfd.pot: Regenerate.
7dc0ab31 2277
caf8ca8e
NC
22782002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2279 Don Lindsay <lindsayd@cisco.com>
2280
2281 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2282 false' with a return of a bfd_reloc_ error code.
2283
e5dfef09
HPN
22842002-01-31 Hans-Peter Nilsson <hp@axis.com>
2285
2286 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2287 unexport unreferenced symbols when --export-dynamic. Call
2288 _bfd_elf_strtab_delref when unexporting.
2289
4e4770d0
DJ
22902002-01-30 Daniel Jacobowitz <drow@mvista.com>
2291
2292 * bfd-in.h: Include <stdbool.h> if it is available.
2293 * bfd-in2.h: Regenerated.
2294
e1fa50e7
AM
22952002-01-31 Alan Modra <amodra@bigpond.net.au>
2296
2297 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2298 not go via the plt.
2299
b5f79c76
NC
23002002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2301
b5f79c76
NC
2302 * archures.c: Tidy up formatting of embedded comments.
2303 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 2304 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
2305 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2306 * section.c: Tidy up formatting of embedded comments.
2307 * syms.c: Tidy up formatting of embedded comments.
2308 * targets.c: Tidy up formatting of embedded comments.
2309
2310 * bfd-in2.h: Regenerate.
2311
ca09e32b
NC
23122002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2313
2314 * vms-tir.c (cmd_name): New function.
2315 (tir_cmd_name): New function.
2316 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2317 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2318 Fix formatting.
7dc0ab31 2319
ca09e32b
NC
2320 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2321 translation.
2322 (pe_print_pdata): Rearrange message to aid in translation.
2323
2324 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2325 translation.
2326
2327 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2328
2329 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2330
2331 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2332 message to aid in translation.
2333
2334 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2335 to aid in translation.
2336
2337 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2338
7dc0ab31 23392002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
2340
2341 * coff-arm.c, elf32-elf.h: Unify messages.
2342
05f64ac6
NC
23432002-01-30 Nick Clifton <nickc@redhat.com>
2344
2345 * po/sv.po: Updated translation.
2346
f5a3e38a
NC
23472002-01-30 Philipp Thomas <pthomas@suse.de>
2348
2349 * dwarf2.c (read_abbrev): Use full section name in error message.
2350 (decode_line_info): Likewise.
661a3fd4
NC
2351
2352 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2353 message.
2354
d926e03d
AM
23552002-01-30 Alan Modra <amodra@bigpond.net.au>
2356
2357 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2358 descriptor symbols for undefined function code syms. Clear
2359 ELF_LINK_NON_ELF so that they can stay weak.
2360
030d18fb 23612002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 2362 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
2363
2364 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2365 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2366 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2367 generation.
2368 * bfd-in2.h: Regenerate.
2369
fcc76bea
CD
23702002-01-29 Chris Demetriou <cgd@broadcom.com>
2371
2372 * elf32-mips.c: Add additional comments about HI16 relocation
2373 processing.
2374 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2375 pc-relative relocations. (Reverts change made on 2001-10-31.)
2376 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2377 for pc-relative relocations.
2378 (mips_elf_calculate_relocation): Add a comment about a kludge
2379 in the R_MIPS_GNU_REL_HI16 handling.
2380 (_bfd_mips_elf_relocate_section): Implement that kludge;
2381 adjust pc-relative HI16 relocation for difference in HI16 and
2382 LO16 addresses, since it can't easily be done in
2383 mips_elf_calculate_relocation.
2384
f9cd9119
MS
23852002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2386
2387 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2388 relocations with PC32 relocations for undefined or weak symbols.
2389 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2390 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2391
702248bb
JT
23922002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2393
2394 * elfcore.h (elf_core_file_p): Improve comment for last change.
2395
4867be41
DJ
23962002-01-27 Daniel Jacobowitz <drow@mvista.com>
2397
2398 * configure: Regenerated.
2399
a94cef6a
JT
24002002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2401
2402 * elfcore.h (elf_core_file_p): Set the machine architecture
2403 before processing the program headers.
2404
7562a296
HPN
24052002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2406
966abd70
HPN
2407 * configure.in <64-bit configuration>: If using gcc, check and
2408 emit error for egcs-1.1.2.
2409 * configure: Regenerate.
2410
e8eab623
NC
24112002-01-26 Egor Duda <deo@logos-m.ru>
2412
2413 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2414 as possible to avoid stack corruption.
2415
73896efb
RH
24162002-01-26 Richard Henderson <rth@redhat.com>
2417
2418 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2419 for non-allocated sections.
2420
24212002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
2422
2423 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2424 prstat.pr_reg even if it is a struct.
2425
73896efb 24262002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
2427
2428 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2429
3d66c4f7
NC
24302002-01-25 Philipp Thomas <pthomas@suse.de>
2431
2432 * coffgen.c (coff_print_symbol): Don't mark info message
2433 for translation.
2434
9460ecda
NC
24352002-01-25 Nick Clifton <nickc@redhat.com>
2436
2437 * po/fr.po: Updated translation.
2438 * po/es.po: Updated translation.
2439
cc9ff76a
AM
24402002-01-25 Philipp Thomas <pthomas@suse.de>
2441
2442 * coff-alpha.c (alpha_relocate_section): Unify warning message
2443 for GP relative relocations without GP defined.
2444 * coff-mips.c (mips_relocate_section): Likewise.
2445
c68836a9
AM
24462002-01-25 Alan Modra <amodra@bigpond.net.au>
2447
2448 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2449 unsigned overflow when new_offset < old_offset.
2450
e8eab623 24512002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
2452
2453 * bfd.c (_bfd_abort): Fix typo.
2454
8ba89f17
RH
24552002-01-23 Richard Henderson <rth@redhat.com>
2456
2457 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2458 plt entries for undefweak symbols.
2459
c6953948
NC
24602002-01-23 Steve Ellcey <sje@cup.hp.com>
2461
2462 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2463 DEFAULT_VECTOR.
2464 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2465 (bfd_elf32_h8300_vec): Ditto.
2466
41bd81ab
AM
24672002-01-23 Alan Modra <amodra@bigpond.net.au>
2468
2469 * elf64-ppc.c: Remove stale part of ABI comment.
2470 (NO_OPD_RELOCS): Define.
2471 (ppc64_elf_check_relocs): Use it.
2472 (ppc64_elf_relocate_section): Here too.
2473 (build_one_stub): Don't point function syms at the stub. Instead,
2474 hijack plt.offset.
2475 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2476 really go to the stub. Make all dynamic relocs in opd against
2477 locals.
2478 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2479 plt.offset.
2480
f304919d
RH
24812002-01-22 Richard Henderson <rth@redhat.com>
2482
2483 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2484
c0ef99a7
AM
24852002-01-22 Alan Modra <amodra@bigpond.net.au>
2486
60ee0d4a
AM
2487 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2488 TOC_BASE_OFF adjustment.
2489
c0ef99a7
AM
2490 * Makefile.am: Run "make dep-am".
2491 * Makefile.in: Regenerate.
2492 * po/SRC-POTFILES.in: Regenerate.
2493
64328b46
AM
24942002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2495
2496 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2497 host defines.
2498
59953665 24992002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
2500
2501 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2502 Check for and emit error if sgot is NULL at this point.
2503
9596feea
JT
25042002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2505
2506 * config.bfd (ia64*-*-netbsd*): New target.
2507
7b45c6e1
AM
25082002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2509
2510 * som.c (som_write_space_strings): Comment typo fix.
2511
e5094212
AM
25122002-01-21 Alan Modra <amodra@bigpond.net.au>
2513
e86ce104
AM
2514 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2515 is_func_descriptor fields.
2516 (link_hash_newfunc): Init them.
2517 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2518 dot are candidates for plt entries. When processing .opd relocs,
2519 set function descriptor strings to point inside function code
2520 string, and set new ppc_link_hash_entry fields.
2521 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2522 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2523 function descriptors. It's now done in..
2524 (func_desc_adjust): New.
2525 (ppc64_elf_func_desc_adjust): New.
2526 (define elf_backend_always_size_sections): Define.
2527 (ppc64_elf_hide_symbol): New.
2528 (define elf_backend_hide_symbol): Define.
2529 (allocate_dynrelocs): Remove code looking up function descriptors
2530 as that has been done earlier.
2531 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2532 table.
2533 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2534 up function descriptor.
2535 (build_one_stub): Look up the function code sym. Check for
2536 invalid plt offsets.
2537 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2538 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2539
e5094212
AM
2540 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2541 boolean param.
2542 (_bfd_elf_link_hash_hide_symbol): Likewise.
2543 * elflink.h (elf_link_add_object_symbols): Adjust call to
2544 elf_backend_hide_symbol.
2545 (elf_fix_symbol_flags): Likewise.
2546 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2547 than bfd_alloc.
2548 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2549 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2550 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2551 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2552 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2553 and adjust to suit.
2554 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2555 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2556 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2557
40b8271b
AM
25582002-01-18 Alan Modra <amodra@bigpond.net.au>
2559
2560 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2561 dynamic function descriptor symbol, not the associated function
2562 symbol.
2563
55baa95b
EC
25642002-01-17 Eric Christopher <echristo@redhat.com>
2565
2566 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2567
328577ad
NC
25682002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2569
2570 * po/bfd.pot: Regenerate.
2571 * po/fr.po: Regenerate.
2572
af746e92
AM
25732002-01-17 Alan Modra <amodra@bigpond.net.au>
2574
2575 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2576 Remove "Elf_Internal_Shdr *" param.
2577 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2578 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2579 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2580 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2581 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2582 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2583 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2584 function to override special sections. Remove hdr arg from
2585 backend call, and don't loop.
2586
175e9962
EC
25872002-01-16 Eric Christopher <echristo@redhat.com>
2588
2589 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2590 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2591 relocations requiring gp0 and gp.
2592
96a846ea
RE
25932002-01-16 Richard Earnshaw <rearnsha@arm.com>
2594
175e9962 2595 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
2596 EF_ARM_VFP_FLOAT.
2597 (elf32_arm_print_private_bfd_data): Likewise.
2598
af3ae48d
NC
25992002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2600
2601 * po/tr.po: Import new version.
2602
10ed1bba
AM
26032002-01-16 Alan Modra <amodra@bigpond.net.au>
2604
2605 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2606 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2607 (ORI_R0_R0_0): Correct.
2608
5d1634d7
AM
26092002-01-16 Alan Modra <amodra@bigpond.net.au>
2610
2611 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2612 when plt_not_loaded.
2613 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2614 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2615 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2616 (ppc64_elf_glink_code): Delete.
2617 (PPC64_ELF_GLINK_SIZE): Delete.
2618 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2619 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2620 ORI_R0_R0_0): Define.
2621 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2622 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2623 (ppc64_elf_link_hash_table_create): Init them.
2624 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2625 Don't copy to shared lib.
2626 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2627 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2628 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2629 room for .stub and .glink code.
2630 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2631 DT_PPC64_GLINK.
2632 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2633 bfd_elf64_bfd_final_link.
2634 (bfd_elf64_bfd_final_link): Don't define.
2635 (ppc64_elf_size_stubs): New.
2636 (build_plt_stub): New.
2637 (build_one_stub): New.
2638 (ppc64_elf_build_stubs): New.
2639 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2640 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2641 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2642 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2643 case output sections not separate. Adjust DT_RELASZ to not
2644 include plt relocs. Set reserved got entry. Set got and plt
2645 entry size.
2646 (elf_backend_got_header_size): Set to 8.
2647 * elf64-ppc.h: New file.
2648
c601ffdb
AM
26492002-01-16 Alan Modra <amodra@bigpond.net.au>
2650
2651 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2652 sections, use bfd_section_list_remove.
2653 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2654 * elflink.h (elf_link_add_object_symbols): When removing all
2655 sections, use bfd_section_list_clear.
2656
8fb4cb7f
NC
26572002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2658
2659 * po/sv.po: New file: Swedish translation.
2660 * configure.in (ALL_LINGUAS): Add sv.
2661 * configure: Regenerate.
2662
d3c456e9
JJ
26632002-01-15 Jakub Jelinek <jakub@redhat.com>
2664
2665 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2666 * elf.c (merge_sections_remove_hook): New function.
2667 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2668 _bfd_merge_sections.
2669 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2670 * libbfd.h: Rebuilt.
2671 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2672 Call remove_hook if a SEC_EXCLUDE section is encountered.
2673
1f7fd478
NC
26742002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2675
2676 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2677 (xstormy16_reloc_map): Initialise new field with correct howto
2678 table.
2679 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2680 howto entry.
2681
b87011e9
MS
26822002-01-10 Michael Snyder <msnyder@redhat.com>
2683
2684 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2685 (elfcore_write_pstatus): Use long instead of pid_t;
2686 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2687
175e9962 26882002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2689
2690 * elf.c: Update copyright years.
2691 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2692 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2693
7c76fa91
MS
26942002-01-08 Michael Snyder <msnyder@redhat.com>
2695
2696 Add capability to write corefile note sections, for gdb.
2697 * elf.c (elfcore_write_note): New function.
2698 (elfcore_write_prpsinfo): New function.
2699 (elfcore_write_prstatus): New function.
2700 (elfcore_write_pstatus): New function.
2701 (elfcore_write_prfpreg): New function.
2702 (elfcore_write_prxfpreg): New function.
97996af6 2703 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2704
e1fddb6b
AO
27052002-01-08 Alexandre Oliva <aoliva@redhat.com>
2706
2707 * elf.c (elf_fake_sections): Propagate errors from
2708 elf_backend_fake_section.
2709
8d05742f
JT
27102002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2711
2712 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2713 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2714 (elf32-sh-nbsd.lo): New rule.
2715 * Makefile.in: Regenerate.
2716 * config.bfd (sh*le-*-netbsdelf*): New target.
2717 (sh*-*-netbsdelf*): New target.
2718 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2719 (bfd_elf32_shnbsd_vec): New vector.
2720 (bfd_elf32_shlnbsd_vec): New vector.
2721 * configure: Regenerate.
2722 * elf32-sh-nbsd.c: New file.
2723 * targets.c: Update copyright years.
175e9962 2724 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2725 bfd_elf32_shnbsd_vec.
2726
1dba4cb4
AH
27272002-01-07 Aldy Hernandez <aldyh@redhat.com>
2728
2729 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2730
47b22aef
GK
27312002-01-07 Geoffrey Keating <geoffk@redhat.com>
2732
2733 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2734 of a symbol in a section that will be deleted.
2735
be2d1673
NC
27362002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2737
2738 * po/es.po: New file: Spanish translation.
2739 * configure.in (ALL_LINGUAS): Add es.
2740 * configure: Regenerate.
2741
d9cf1b54
AM
27422002-01-06 Steve Ellcey <sje@cup.hp.com>
2743
2744 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2745 argument so we can handle HP-UX specially.
2746 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2747 (elfNN_hpux_backend_section_from_bfd_section): New for support
2748 of SHN_IA_64_ANSI_COMMON.
2749 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2750 (is_unwind_section_name): Add special HP-UX support.
2751 (elfNN_ia64_section_from_shdr): Add support for more sections.
2752 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2753 add support for more sections.
2754 (elfNN_ia64_additional_program_headers): Modify
2755 is_unwind_section_name call.
2756 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2757 only one unwind section in segment.
2758
3f3c5c34
AM
27592002-01-06 Alan Modra <amodra@bigpond.net.au>
2760
2761 * syms.c (_bfd_generic_make_empty_symbol): New function.
2762 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2763 _bfd_generic_make_empty_symbol.
2764 * libbfd.h: Regenerate.
2765 * bfd-in2.h: Regenerate.
2766 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2767 (hppabsd_core_get_symtab_upper_bound): Don't define.
2768 (hppabsd_core_get_symtab): Likewise.
2769 (hppabsd_core_print_symbol): Likewise.
2770 (hppabsd_core_get_symbol_info): Likewise.
2771 (hppabsd_core_bfd_is_local_label_name): Likewise.
2772 (hppabsd_core_get_lineno): Likewise.
2773 (hppabsd_core_find_nearest_line): Likewise.
2774 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2775 (hppabsd_core_read_minisymbols): Likewise.
2776 (hppabsd_core_minisymbol_to_symbol): Likewise.
2777 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2778 Formatting fixes.
2779 * hpux-core.c: Similarly.
2780 * irix-core.c: Similarly.
2781 * osf-core.c: Similarly.
2782 * sco5-core.c: Similarly.
2783 * binary.c (binary_make_empty_symbol): Remove function, define as
2784 _bfd_generic_make_empty_symbol.
2785 * ihex.c (ihex_make_empty_symbol): Likewise.
2786 * mmo.c (mmo_make_empty_symbol): Likewise.
2787 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2788 * srec.c (srec_make_empty_symbol): Likewise.
2789 * versados.c (versados_make_empty_symbol): Likewise.
2790 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2791 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2792 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2793 rather than _bfd_vms_make_empty_symbol.
2794 * vms-misc.c (new_symbol): Likewise.
2795
3f0a7f7f
AM
27962002-01-05 Alan Modra <amodra@bigpond.net.au>
2797
9e7b37b3
AM
2798 * section.c (bfd_section_init): Remove unnecessary initialisations.
2799 (bfd_section_list_clear): New function.
2800 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2801 (_bfd_strip_section_from_output): Use them.
2802 * coffcode.h (coff_set_alignment_hook): Likewise.
2803 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2804 * elf64-mips.c (mips_elf64_final_link): Likewise.
2805 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2806 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2807 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2808 * bfd-in2.h: Regenerate.
2809
2810 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2811 rather than doing our own section handling. Clean up after errors
2812 with bfd_release and bfd_section_list_clear. Handle unexpected
2813 flags.
2814 * aoutf1.h (sunos4_core_file_p): Likewise.
2815 * aix386-core.c (aix386_core_file_p): Likewise.
2816 * cisco-core.c (cisco_core_file_validate): Likewise.
2817 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2818 * trad-core.c (trad_unix_core_file_p): Likewise.
2819
2820 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2821 with bfd_release and bfd_section_list_clear.
2822 * hpux-core.c (hpux_core_core_file_p): Likewise.
2823 * irix-core.c (irix_core_core_file_p): Likewise.
2824 * lynx-core.c (lynx_core_file_p): Likewise.
2825 * osf-core.c (osf_core_core_file_p): Likewise.
2826 * rs6000-core.c (rs6000coff_core_p): Likewise.
2827 * sco5-core.c (sco5_core_file_p): Likewise.
2828
3f0a7f7f
AM
2829 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2830 sign extension adjustments without conditionals.
2831
a3aa38ee
JJ
28322002-01-04 Jakub Jelinek <jakub@redhat.com>
2833
2834 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2835 CIE at .eh_frame start is removed due to no FDEs referencing it.
2836
8a8b2d4b
AJ
28372002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2838
2839 * config.bfd (x86_64-*-netbsd*): New target.
2840 * configure.in (x86_64-*-netbsd*): Set COREFILE
2841 to netbsd-core.lo.
2842 * configure: Regenerated.
2843
04b5af89
TR
28442002-01-03 Tom Rix <trix@redhat.com>
2845
2846 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2847 for recent bfd_make_section_anyway change.
2848
51c5503b
NC
28492002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2850
2851 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2852 R_ARM_THM_PC11 reloc.
2853
07f7c046
NC
28542002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2855
2856 * configure.in (LINGUAS): Add ja.
2857 * configure: Regenerate.
2858 * po/ja.po: Import from translation project's web site.
2859
5eefb65f
NC
28602002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2861
2862 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2863 messages to ease translation into other languages.
2864
39e90f10 2865For older changes see ChangeLog-0001
56882138
AM
2866\f
2867Local Variables:
2868mode: change-log
2869left-margin: 8
2870fill-column: 74
2871version-control: never
2872End:
This page took 0.244803 seconds and 4 git commands to generate.