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