* archures.c (bfd_lookup_arch): Add comment on list order.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
99dc0092
AM
12002-04-20 Alan Modra <amodra@bigpond.net.au>
2
3 * archures.c (bfd_lookup_arch): Add comment on list order.
4 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
5 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
6 is always at head of list.
7
7831a775
NC
82002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
9
10 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
11 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
12 definition of these functions for ARM_WINCE builds as they are
13 not used.
14 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
15 for ARM_WINCE builds.
16
172002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
18
19 * coff-arm.c (bfd_arm_process_before_allocation):
20
212002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
22
23 * cpu-sh.c (scan_mach): Delete.
24 (arch_info_struct): Replace scan_mach with bfd_default_scan.
25 (bfd_sh_arch): Likewise.
26
3d8dbe36
NC
272002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
28
29 * ihex.c (ihex_write_object_contents): Fix check for records
30 crossing 64K boundaries.
31
4ab82700
AM
322002-04-16 Alan Modra <amodra@bigpond.net.au>
33
34 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
35 type rather than just assuming entries are ELF.
36 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
37 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
38 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
39 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
40 rather than elf_link_hash_entry.
41
036fe0fe
RH
422002-04-15 Richard Henderson <rth@redhat.com>
43
44 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
45 n32 binaries.
46
c4f3d130
NC
472002-04-15 Michael Snyder <msnyder@redhat.com>
48
49 * opncls.c (bfd_close): Write contents if writeable.
50 Minor formatting tidy-ups.
51
4ab82700 522002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
53
54 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
55
0c04d169
MS
562002-04-12 Michael Snyder <msnyder@redhat.com>
57
58 * bfd-in.h (bfd_get_section_lma): New access macro.
59 Minor white-space fix-up.
60
89d4966f
AM
612002-04-12 Alan Modra <amodra@bigpond.net.au>
62
63 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
64 header pad.
65
8d0da3c2
DD
662002-04-09 DJ Delorie <dj@redhat.com>
67
68 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
69
05793179
NC
702002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
71
72 * coffcode.h (coff_read_word): New.
73 (coff_compute_checksum): New.
74 (coff_apply_checksum): New.
75 (coff_write_object_contents): Call coff_apply_checksum () to
76 apply checksum to PE image.
77
46fe4e66
AM
782002-04-08 Randolph Chung <tausq@debian.org>
79
80 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
81 (elf32_hppa_final_link): Split out sorting logic to..
82 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
83 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
84
3b5b409c
AC
852002-04-07 Andrew Cagney <ac131313@redhat.com>
86
87 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
88 pattern.
89 * configure: Re-generate.
90
ac7b6ceb
AC
912002-04-07 Andrew Cagney <ac131313@redhat.com>
92
93 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
94 is greater or equal to 4.3.3.
95 * configure: Regenerate.
96 Fix PR gdb/344.
97
44aa49bb
HPN
982002-04-05 Hans-Peter Nilsson <hp@axis.com>
99
100 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
101 R_CRIS_32_PCREL>: Fix typo in name.
102 (cris_elf_check_relocs): Always create .rela.got here when
103 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
104 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
105 assume it's created.
106
e2d34d7d
DJ
1072002-04-04 Daniel Jacobowitz <drow@mvista.com>
108
109 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
110 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
111 define.
112 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
113 * bfd.c (bfd_link_hash_table_free): Define.
114 * binary.c (binary_bfd_link_hash_table_free): Define.
115 * bout.c (b_out_bfd_link_hash_table_free): Define.
116 * coff-rs6000.c (rs6000coff_vec): Include
117 _bfd_generic_link_hash_table_free.
118 (pmac_xcoff_vec): Likewise.
119 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
120 (aix5coff64_vec): Likewise.
121 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
122 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
123 (bfd_elf32_bfd_link_hash_table_free): Define.
124 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
125 (bfd_elf32_bfd_link_hash_table_free): Define.
126 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
127 define.
128 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
129 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
130 * ieee.c (ieee_bfd_link_hash_table_free): Define.
131 * ihex.c (ihex_bfd_link_hash_table_free): Define.
132 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
133 (_bfd_generic_link_hash_table_free): Add prototype.
134 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
135 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
136 * linker.c (_bfd_generic_link_hash_table_free): New function.
137 * mmo.c (mmo_bfd_link_hash_table_free): Define.
138 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
139 * oasys.c (oasys_bfd_link_hash_table_free): Define.
140 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
141 * som.c (som_bfd_link_hash_table_free): Define.
142 * srec.c (srec_bfd_link_hash_table_free): Define.
143 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
144 * versados.c (versados_bfd_link_hash_table_free): Define.
145 * vms.c (vms_bfd_link_hash_table_free): New function.
146 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
147
148 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
149 instead of bfd_alloc.
150 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
151 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
152 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
153 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
154 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
155 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
156 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
157 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
158 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
159 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
160 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
161 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
162 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
163 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
164 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
165 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
166 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
167 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
168 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
169 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
170 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
171 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
172 * m68klinux.c (linux_link_hash_table_create): Likewise.
173 * sparclinux.c (linux_link_hash_table_create): Likewise.
174 * sunos.c (sunos_link_hash_table_create): Likewise.
175 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
176
177 * targets.c: Add _bfd_link_hash_table_free to xvec.
178
179 * bfd-in2.h: Regenerate.
180 * libbfd.h: Regenerate.
181 * libcoff.h: Regenerate.
182
830629ab
AM
1832002-04-04 Alan Modra <amodra@bigpond.net.au>
184
185 * dep-in.sed: Cope with absolute paths.
186 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
187 Run "make dep-am".
188 * Makefile.in: Regenerate.
189 * coff-arm.c: Fix copyright date.
190 * cpu-h8300.c: Likewise.
191 * cpu-i370.c: Likewise.
192 * cpu-s390.c: Likewise.
193 * cpu-mips.c: Likewise.
194 * po/SRC-POTFILES.in: Regenerate.
195
c6e90b02
TS
1962002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
197
198 * Makefile.am: Add elfxx-mips.c to the known backends.
199 (elf32-mips.lo): remove dependency to coff/external.h.
200 * Makefile.in: Regenerate.
201 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
202 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
203 accordingly.
204 * configure: Regenerate.
205 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
206 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
207 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
208 MIPS specific backend functions.
209 * elf32-mips.c: Moved most code to elfxx-mips.c.
210 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
211 static.
212 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
213 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
214 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
215 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
216 interface to allow selection of the right REL or RELA howto table.
217 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
218 static. Let it refuse n32 objects.
219 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
220 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
221 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
222 (elf32_mips_ignore_discarded_relocs): Rename from
223 _bfd_elf32_mips_ignore_discarded_relocs.
224 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
225 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
226 (elf_mips_howto_table_rela): Remove.
227 * elf64-mips.c: Moved most code to elfxx-mips.c.
228 (bfd_elf64_bfd_reloc_type_lookup): Make static.
229 (mips_elf64_rtype_to_howto): New function.
230 (mips_elf64_object_p): Likewise.
231 (elf64_mips_irix_compat): Likewise.
232 * elfxx-mips.c: New file containing common code merged together from
233 elf32-mips.c and elf64-mips.c.
234 * elfxx-mips.h: New file containing MIPS specific prototypes from
235 elf-bfd.h.
236 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
237 elf_backend_mips_rtype_to_howto.
238
d8dce692
AM
2392002-04-04 Alan Modra <amodra@bigpond.net.au>
240
241 * srec.c (MAXCHUNK, Chunk): Revise comments.
242 (srec_write_record): Correct buffer size.
243 (srec_write_header): Do without intermediate buffer.
244 (srec_write_section): Validate Chunk.
245 (srec_write_terminator): Pass NULL instead of dummy buffer.
246 (srec_write_symbols): Pass file and symbol names directly to
247 bfd_bwrite so sprintf won't overflow buffer.
248
b88a866a
JJ
2492002-04-03 Jakub Jelinek <jakub@redhat.com>
250
251 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
252 PC relative relocs against hidden symbols.
253 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
254
d7866f04
AM
2552002-04-03 Alan Modra <amodra@bigpond.net.au>
256
257 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
258 LMAs, loop over segments until p_vaddr and p_memsz specify an
259 extent enclosing the section.
260
9e81ee67
NC
2612002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
262
263 * ihex.c (ihex_write_object_contents): Do not allow records to
264 cross a 64K boundary - wrap if necessary.
265
d2b64500
JT
2662002-04-01 Nathan Williams <nathanw@wasabisystems.com>
267
268 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
269 which caused the returned LWP ID to always be 0.
270
e36f7d53
RH
2712002-04-01 Richard Henderson <rth@redhat.com>
272
273 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
274 (elf32_sparc_relocate_section): Use it to figure out when to
275 initialize .got entries.
276 * elf64-sparc.c: Similarly.
277
e92d460e
AM
2782002-03-28 Alan Modra <amodra@bigpond.net.au>
279
280 * linker.c (link_action): Ignore duplicate warning syms.
281 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
282 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
283 (elf_adjust_dynamic_symbol): Likewise.
284 (elf_export_symbol): Likewise.
285 (elf_link_find_version_dependencies): Likewise.
286 (elf_link_assign_sym_version): Likewise.
287 (elf_link_sec_merge_syms): Likewise.
288 (elf_link_output_extsym): Likewise.
289 (elf_gc_sweep_symbol): Likewise.
290 (elf_gc_propagate_vtable_entries_used): Likewise.
291 (elf_gc_smash_unused_vtentry_relocs): Likewise.
292 (elf_gc_allocate_got_offsets): Likewise.
293 (elf_collect_hash_codes): Likewise.
294 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
295 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
296 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
297 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
298 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
299 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
300 (elf_cris_discard_excess_dso_dynamics): Likewise.
301 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
302 (mark_PIC_calls): Likewise.
303 (allocate_plt_static): Likewise.
304 (allocate_dynrelocs): Likewise.
305 (readonly_dynrelocs): Likewise.
306 * elf32-i386.c (allocate_dynrelocs): Likewise.
307 (readonly_dynrelocs): Likewise.
308 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
309 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
310 * elf32-mips.c (mips_elf_output_extsym): Likewise.
311 (mips_elf_sort_hash_table_f): Likewise.
312 (mips_elf_check_mips16_stubs): Likewise.
313 * elf32-s390.c (allocate_dynrelocs): Likewise.
314 (readonly_dynrelocs): Likewise.
315 * elf32-sh.c (sh_elf_discard_copies): Likewise.
316 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
317 (xstormy16_relax_plt_realloc): Likewise.
318 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
319 (elf64_alpha_output_extsym): Likewise.
320 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
321 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
322 (mips_elf64_check_mips16_stubs): Likewise.
323 (mips_elf64_output_extsym): Likewise.
324 * elf64-ppc.c (func_desc_adjust): Likewise.
325 (allocate_dynrelocs): Likewise.
326 (readonly_dynrelocs): Likewise.
327 * elf64-s390.c (allocate_dynrelocs): Likewise.
328 (readonly_dynrelocs): Likewise.
329 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
330 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
331 (readonly_dynrelocs): Likewise.
332 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
333 * aoutx.h (aout_link_write_other_symbol): Likewise.
334 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
335 (_bfd_coff_write_global_sym): Likewise.
336 * i386linux.c (linux_tally_symbols): Likewise.
337 * m68klinux.c (linux_tally_symbols): Likewise.
338 * sparclinux.c (linux_tally_symbols): Likewise.
339 * pdp11.c (aout_link_write_other_symbol): Likewise.
340 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
341 * xcofflink.c (xcoff_build_ldsyms): Likewise.
342 (xcoff_write_global_symbol): Likewise.
343
344 * cofflink.c (_bfd_coff_final_link): Formatting.
345 * cpu-mips.c (mips_compatible): Make static, prototype.
346 * elf32-i386.c (elf_i386_check_relocs): Formatting.
347 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
348 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
349 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
350 (mips_elf64_final_link): Likewise.
351 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
352 prototype.
353
2106126f
NC
3542002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
355
356 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
357 (SWAP_OUT_RELOC_OFFSET): Define.
358
b99d1833
AM
3592002-03-27 Gregory Steuck <greg@nest.cx>
360
361 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
362 terminating NULL if empty symbol table.
363 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
364
ad43ed4c
L
3652002-03-26 H.J. Lu (hjl@gnu.org)
366
367 * elflink.h (elf_link_input_bfd): Revert the last change since
368 the gcc exception handling isn't fixed yet.
369
3851fca4
L
3702002-03-26 H.J. Lu (hjl@gnu.org)
371
372 * elflink.h (elf_link_input_bfd): Complain about relocations
373 against local symbols in discarded sections.
374
b91afed7
AM
3752002-03-26 Alan Modra <amodra@bigpond.net.au>
376
377 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
378
dba143ef
AM
3792002-03-23 Alan Modra <amodra@bigpond.net.au>
380
381 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
382 section file offset for !SEC_LOAD sections.
383
ee29b9fb
RE
3842002-03-21 Richard Earnshaw <rearnsha@arm.com>
385
830629ab
AM
386 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
387 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 388
54327882
AM
3892002-03-21 Alan Modra <amodra@bigpond.net.au>
390
391 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
392 Whitespace changes.
393 * archive.c: Update copyright date.
394 * bfd-in2.h: Regenerate.
395 * libbfd.h: Regenerate.
396 * Makefile.am: Run "make dep-am"
397 * Makefile.in: Regenerate.
398 * po/SRC-POTFILES.in: Regenerate.
399
1ee24f27
DJ
4002002-03-20 Daniel Jacobowitz <drow@mvista.com>
401
402 * dwarf2.c (struct funcinfo): Move up.
403 (lookup_address_in_function_table): New argument function_ptr.
404 Set it.
405 (lookup_address_in_line_table): New argument function. If function
406 is non-NULL, use it to handle ``addr'' before the first line note of
407 the function.
408 (comp_unit_find_nearest_line): Update and swap calls to
409 lookup_address_in_function_table and lookup_address_in_line_table.
410 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
411 N_SLINE encountered if we see an N_FUN before any N_SLINE.
412
51b9608c
TR
4132002-03-20 Tom Rix <trix@redhat.com>
414
415 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
416 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
417 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
418
789c90aa
TR
4192002-03-19 Tom Rix <trix@redhat.com>
420
421 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
422 dynamic objects in archives.
423
1da54d81
HPN
4242002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
425
426 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
427 STT_NOTYPE symbols to STT_OBJECT.
428
7831a775 4292002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
430
431 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
432
eb1e0e80
NC
4332002-03-18 Tom Rix <trix@redhat.com>
434
435 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
436 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
437 * coff-rs6000 (do_pad) : New function for archive padding.
438 (do_copy) : New function for object file copying in archives.
439 (do_shared_object_padding) : New function for padding shared
440 objects to their text section alignment in archives.
441 (bfd_xcoff_ar_achive_set_magic) : Stub.
442 (xcoff_write_armap_big) : Use do_copy and do_pad.
443 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
444 do_copy and do_pad.
445 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
446 bfd_xcoff_magic_number.
447 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
448 fop.
449 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
450 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
451 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
452 * rs6000-core.c : Update copyright date.
453 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
454 csectpp.
455 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
456 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
457 (coff_set_flags) : Use bfd_xcoff_magic_number.
458 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
459 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
460 * Makefile.am : Same.
461 * config.bfd : Same.
462 * targets.c : Same.
463 * configure : Regnerate.
464 * Makefile.in : Same.
465 * bfd-in2.h : Same.
466
a1c259a1
NC
4672002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
468
469 * po/fr.po: Updated version.
470
4dae1ae7
AM
4712002-03-18 Alan Modra <amodra@bigpond.net.au>
472
473 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
474 * libbfd.h: Regenerate.
475 * archive.c (coff_write_armap): Pass on failures from
476 bfd_write_bigendian_4byte_int.
477
36b4f6e7
L
4782002-03-14 H.J. Lu <hjl@gnu.org>
479
480 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
481 error to bfd_error_nonrepresentable_section for reinit_array
482 section in DSO.
483
a1aefc76
NC
4842002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
485
a181be0a
NC
486 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
487 OR it in rather than replacing previously selected flags.
488
a1aefc76
NC
489 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
490 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
491
c119f9b8
AM
4922002-03-14 Alan Modra <amodra@bigpond.net.au>
493
494 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
495 (N): Use the above.
496 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
497 ensure reloc size matches before calling elf_link_input_bfd.
498 Add an assert to check reloc size when counting output relocs.
499
c295a511
NC
5002002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
501
502 * mmo.c (mmo_get_loc): Return NULL rather than false.
503
9ce88e60
NC
5042002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
505
506 * po/fr.po: Updated version.
507
4ddafab0
AM
5082002-03-13 Alan Modra <amodra@bigpond.net.au>
509
b74fa2cd
AM
510 * archures.c (bfd_default_compatible): Test bits_per_word.
511 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
512 bfd_default_compatible.
513 * cpu-i370.c (i370_compatible): Likewise.
514 * cpu-sparc.c (sparc_compatible): Likewise.
515 * cpu-h8300.c (compatible): Test in->arch == out->arch.
516
40b829d4
AM
517 * elflink.h: Formatting fixes.
518 (elf_link_output_extsym): Merge undefined and undef weak cases.
519
4ddafab0
AM
520 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
521 when word size of input matches output word size.
522
dd53c801
AJ
5232002-03-12 Andreas Jaeger <aj@suse.de>
524
525 * cpu-i386.c (i386_compatible): New. Use it instead of
526 bfd_default_compatible.
527
aa066ac8
L
5282002-03-07 H.J. Lu (hjl@gnu.org)
529
530 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
531 as the type for bfd_reloc_val.
532
1bf42538
JL
5332002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
534
535 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
536 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
537 (elf_hppa_final_link_relocate): Correct relocations for indirect
538 references to local data through the DLT. Fix .opd creation for
539 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
540 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
541 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
542 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
543 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
544 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
545 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
546
86eaf01e
JJ
5472002-03-05 Jakub Jelinek <jakub@redhat.com>
548
549 * merge.c (_bfd_merge_sections): Don't segfault if there
550 is nothing to merge due to GC.
551
c44233aa
AM
5522002-03-05 Alan Modra <amodra@bigpond.net.au>
553
039cc25f
AM
554 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
555 symbols that have been forced local.
556
c44233aa
AM
557 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
558 to output forced local syms for non-shared link.
559 (elf_link_output_extsym): Tweak condition for calling backend
560 adjust_dynamic_symbol so that previous behaviour is kept.
561 Whitespace changes throughout file.
562
25e27870
L
5632002-03-04 H.J. Lu <hjl@gnu.org>
564
565 * elf.c (bfd_section_from_shdr): Handle special sections,
566 .init_array, .fini_array and .preinit_array.
567 (elf_fake_sections): Likewise.
568
569 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
570 DT entry only if the section is in output for .init_array,
571 .fini_array and .preinit_array. Complain about .preinit_array
572 section in DSO.
573 (elf_bfd_final_link): Warn zero size for .init_array,
574 .fini_array and .preinit_array sections.
575
576 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
577 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
578 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
579 .preinit_array.
580
bb2a49f2
AM
5812002-03-04 Alan Modra <amodra@bigpond.net.au>
582
583 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
584 * configure: Regenerate.
585
38487e5e
TR
5862002-03-02 Tom Rix <trix@redhat.com>
587
c44233aa
AM
588 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
589 symbolic equiv.
38487e5e
TR
590 * coff-rs6000.c (xcoff_howto_table): Same.
591
30831527
RH
5922002-03-01 David Mosberger <davidm@hpl.hp.com>
593
594 * elflink.h (size_dynamic_sections): If section named
595 ".preinit_array" exists, create DT_PREINIT_ARRAY and
596 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
597 ".init_array" and ".fini_array".
598 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
599 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
600 DT_FINI_ARRAY.
601
c8e5ddc8
AM
6022002-02-26 Andrew Macleod <amacleod@cygnus.com>
603
604 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
605 dynsyms.
606
96e0dda4
AM
6072002-02-25 Alan Modra <amodra@bigpond.net.au>
608
1c5b6bf8
AM
609 * elf64-hppa.h: Update copyright date.
610
96e0dda4
AM
611 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
612 (ppc64_elf_relocate_section): Don't generate power4 style branch
613 hints for *_BRTAKEN and *_BRNTAKEN relocs.
614
0fb19cbc
JJ
6152002-02-22 Jakub Jelinek <jakub@redhat.com>
616
617 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
618 last patch.
619 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
620
c434dee6
AJ
6212002-02-21 Andreas Jaeger <aj@suse.de>
622
623 * elf64-x86-64.c: Major rework that introduces all recent changes
624 to the x86-64 backend. Get a closer match to elf32-i386.
625 (struct elf64_x86_64_dyn_relocs): Rename from
626 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
627 all users.
628 (struct elf64_x86_64_link_hash_table): Add short cuts to some
629 sections.
630 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
631 remove casts, initialize new hash members.
632 (create_got_section): New.
633 (elf64_x86_64_create_dynamic_sections): New.
634 (elf64_x86_64_copy_indirect_symbol): New.
635 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
636 relocs, .got or .relgot here but do it in allocate_dynrelocs.
637 Reference count possible .plt and .got entries. Don't test input
638 section SEC_READONLY here to try to avoid copy relocs, and keep
639 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
640 DF_TEXTREL here. Delay setting of variables until needed. Cache
641 pointer to "sreloc" section in elf_section_data. Tweak condition
642 under which .got created. Report files with bad relocation
643 section names.
644 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
645 Reference count possible .plt entries. Don't deallocate .got and
646 .relgot space here.
647 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
648 do copy reloc processing for weakdefs. Remove redundant casts and
649 aborts. Delay setting of vars until needed. Move creation of
650 dynamic symbols and allocation of .plt and .rela.plt to
651 allocate_dynrelocs. Replace BFD_ASSERT with abort.
652 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
653 (allocate_dynrelocs): New.
654 (readonly_dynrelocs): New.
655 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
656 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
657 Zero out the dynamic allocated content space.
658 (elf64_x86_64_discard_copies): Removed.
659 (elf64_x86_64_relocate_section): Make use of dynamic section
660 short-cuts. Localise vars, and delay setting. Better error
661 reporting, replace BFD_ASSERT with abort. Check
662 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
663 regular object file and tread the weak definition as the normal
664 one. Don't discard relocs for undefweak or undefined symbols and
665 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
666 relocs.
667 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
668 symbols that have been forced local. Use same test to decide if
669 we can use a relative reloc for got as relocate_section. Expand
670 SHN_UNDEF comment. Move expressions out of function calls.
671 Replace BFD_ASSERT with abort.
672 (bfd_elf64_bfd_final_link): Removed.
673 (elf_backend_copy_indirect_symbol): Define.
674
ff3a6ee3
TR
6752002-02-20 Tom Rix <trix@redhat.com>
676
677 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
678 (_bfd_xcoff_reloc_type_lookup): Use it.
679 * coff64-rs6000.c (xcoff64_howto_table): Same.
680 (xcoff64_reloc_type_lookup): Same.
c434dee6 681
a68d41fb
AM
6822002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
683
684 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
685 little endian.
686
befc3abb
MS
6872002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
688
689 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
690 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
691 * bfd-in2.h: Regenerate.
692 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
693 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
694 with "s390:64-bit".
695 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
696 (elf_s390_reloc_type_lookup): Likewise.
697 (elf_s390_check_relocs): Likewise.
698 (elf_s390_gc_sweep_hook): Likewise.
699 (elf_s390_relocate_section): Likewise.
700 (elf_s390_object_p): Use renamed architecture define.
701 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
702
6eeeec9b
FCE
7032002-02-19 Frank Ch. Eigler <fche@redhat.com>
704
705 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
706
0bb2d96a
JJ
7072002-02-19 Jakub Jelinek <jakub@redhat.com>
708
709 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
710 absptr -> pcrel optimization for shared libs.
711 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
712 library cannot be converted to pcrel.
713 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
714 relative.
715 * elf32-i386.c (elf_i386_relocate_section): If
716 _bfd_elf_section_offset returned -2, skip, but make sure the
717 relocation is installed.
718 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
719 * elf32-cris.c (cris_elf_relocate_section): Likewise.
720 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
721 * elf32-i370.c (i370_elf_relocate_section): Likewise.
722 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
723 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
724 * elf32-s390.c (elf_s390_relocate_section): Likewise.
725 * elf32-sh.c (sh_elf_relocate_section): Likewise.
726 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
727 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
728 * elf64-s390.c (elf_s390_relocate_section): Likewise.
729 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
730 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
731 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
732 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
733 _bfd_elf_section_offset returning -2 the same way as -1.
734 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
735 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
736 and BFD_ASSERT.
737 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
738
69f284c7
TR
7392002-02-18 Tom Rix <trix@redhat.com>
740
741 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
742 (bfd_xcoff_size_dynamic_sections): Same.
743 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
744 (bfd_xcoff_size_dynamic_sections): Same.
745 * coff-rs6000.c (xcoff_generate_rtinit): Same.
746 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
747 * libxcoff.h (struct xcoff_backend_data_rec): Same.
748 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
749 * bfd-in2.h: Regenerate.
750
82bd7b59
AM
7512002-02-18 Alan Modra <amodra@bigpond.net.au>
752
753 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
754 (struct ppc_link_hash_table): Add sfpr.
755 (ppc64_elf_link_hash_table_create): Init it.
756 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
757 .glink out to..
758 (create_linkage_sections): ..here. Make .sfpr too.
759 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
760 dynobj early.
761 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
762 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
763 ._restf* functions, and create as needed.
764 (func_desc_adjust): Only force_local for shared libs.
765
ef1355e8
NC
7662002-02-18 David O'Brien <obrien@FreeBSD.org>
767
768 * configure.in: Bump version number post 2.12 branching.
769 * configure: Regenerate.
770
dfa36a69
HPN
7712002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
772
773 * mmo.c: Correct and improve comments.
774 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
775 zero-pad. Use input to fill up non-empty bfd buffer.
776 (mmo_flush_chunk): New function.
777 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
778 changed. Don't emit location specifier if VMA is same as
779 *LAST_VMAP after omitting leading zero contents. Call
780 mmo_flush_chunk before emitting location specifier.
781 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
782 with mmo_write_loc_chunk calls.
783 (mmo_internal_write_section): Call mmo_flush_chunk after
784 mmo_write_chunk.
785 (mmo_write_symbols_and_terminator): Move :Main to first position
786 in symbol array. Add faked one if it does not exist if there are
787 other symbols. Don't add it if there are no symbols at all. Move
788 out test for value of :Main from symbol loop. Rename table
789 fakemain to maintable and variable mainsym to fakemain.
790
ccf00ab6
RH
7912002-02-15 Richard Henderson <rth@redhat.com>
792
793 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
794 section with no got matches any got. Simplify error generaion.
795
88eaccc2
AM
7962002-02-15 Alan Modra <amodra@bigpond.net.au>
797
fd96f80f
AM
798 Support arbitrary length fill patterns.
799 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
800 (_bfd_default_link_order): Remove bfd_fill_link_order code.
801 Call default_data_link_order.
802 (default_fill_link_order): Delete.
803 (default_data_link_order): New function.
804 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
805 of bfd_fill_link_order with bfd_data_link_order.
806 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
807 * elf64-mips.c (mips_elf64_final_link): Likewise.
808
88eaccc2
AM
809 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
810 Correct value returned in "end" for "0x<non-hex>".
811
e2fd756b
NC
8122002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
813
814 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
815 (scan): Test against 'mach' field in info structure.
816
edd29cf9
AM
8172002-02-14 Alan Modra <amodra@bigpond.net.au>
818
819 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
820
1e30956e 8212002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
822
823 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
824 EF_M68000.
825
bf36db18
NC
8262002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
827
828 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
829 non-zero physical addresses when adjusting the LMAs of new
830 sections.
bf36db18 831
189c6563
AM
8322002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
833
834 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
835 from _bfd_elf_hppa_gen_reloc_type.
836 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
837 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
838 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
839 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
840
e948afaf
AO
8412002-02-12 Alexandre Oliva <aoliva@redhat.com>
842
843 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
844 loading its contents if there's nothing to do in it.
845
19397422
AM
8462002-02-12 Alan Modra <amodra@bigpond.net.au>
847
0ad3a73b
AM
848 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
849 64k boundary.
850
19397422
AM
851 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
852 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
853 (ppc64_elf_finish_dynamic_sections): Set values for them.
854
51316059
MS
8552002-02-11 Michael Snyder <msnyder@redhat.com>
856
857 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
858 * elf.c (elfcore_grok_pstatus): Add prototype.
859 (elfcore_grok_lwpstatus): Add prototype.
860 (elfcore_write_lwpstatus): New function.
861 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
862
518313c3
AO
8632002-02-11 Alexandre Oliva <aoliva@redhat.com>
864
865 * elf32-sh.c: Added missing prototypes.
866 * elf32-sh64.c: Likewise.
867 (sh_elf_align_loads): Mark unused args as such.
868 * elf64-sh64.c: Added missing prototypes.
869 (struct elf_sh64_link_hash_entry): Fix typo.
870 (sh_elf64_relocate_section): Fix info argument passed to
871 _bfd_elf_section_offset.
872
2c73f9d8
AM
8732002-02-11 Alan Modra <amodra@bigpond.net.au>
874
875 * Makefile.am: "make dep-am".
876 * Makefile.in: Regenerate.
877 * aclocal.m4: Regenerate.
878 * config.in: Regenerate.
879 * configure: Regenerate.
880
d426c6b0
DJ
8812002-02-10 Daniel Jacobowitz <drow@mvista.com>
882
883 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
884 variable warnings.
885 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
886 comparison warning.
887 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
888 cast warnings for the common case.
889
e58ee0cd
HPN
8902002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
891
892 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
893 vectors.
894 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
895 vectors.
896
7793f4d0
RH
8972002-02-09 Richard Henderson <rth@redhat.com>
898
899 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
900 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
901 (elf64_alpha_relocate_section): Likewise.
902 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
903 * bfd-in2.h, libbfd.h: Rebuild.
904
7e799044
HPN
9052002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
906
907 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
908 that base-plus-offset reloc accounting is consistent.
909 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
910 up to date for undefined symbols.
911
027d73eb
EC
9122002-02-08 Eric Christopher <echristo@redhat.com>
913
914 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
915
916 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
917 sections for the O32 ABI.
918
517662d4
CD
9192002-02-08 Chris Demetriou <cgd@broadcom.com>
920
921 * elf32-arm.h: Fix formatting of _("...").
922 * elf32-d10v.c: Likewise.
923 * elf32-m68k.c: Likewise.
924 * elf32-mips.c: Likewise.
925
5e37cc46
NC
9262002-02-08 Ivan Guzvinec <ivang@opencores.org>
927
928 * coff-or32.c: Fix compile time warning messages.
929
fbca6ad9
AO
9302002-02-08 Alexandre Oliva <aoliva@redhat.com>
931
932 Contribute sh64-elf.
933 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
934 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
935 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
936 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
937 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
938 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
939 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
940 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
941 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
942 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
943 New relocs.
944 * libbfd.h, bfd-in2.h: Rebuilt.
945 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
946 (sh_reloc_map): Map them.
947 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
948 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
949 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
950 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
951 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
952 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
953 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
954 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
955 datalabel_got_offset.
956 (sh_elf_link_hash_newfunc): Initialize it.
957 (sh_elf_relocate_section): Augment the scope of
958 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
959 GOT and GOTOFF handling to new SHmedia relocation types. Support
960 GOT_BIAS.
961 (sh_elf_check_relocs): Likewise.
962 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
963 PLT entries using movi_shori_putval. Support GOT_BIAS.
964 (sh_elf_finish_dynamic_sections): Likewise.
965 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
966 relocation, it's now done by the caller.
967 (GOT_BIAS): New.
968 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
969 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
970 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
971 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
972 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
973 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
974 sh64_elf64_hash_table): New.
975 (sh_elf64_howto_table): Introduce new relocs.
976 (sh_elf64_info_to_howto): Accept new PIC relocs.
977 (sh_elf64_relocate_section): Augment the scope of
978 seen_stt_datalabel. Support new PIC relocs.
979 (sh_elf64_check_relocs): Support new PIC relocs.
980 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
981 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
982 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
983 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
984 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
985 movi_shori_putval, movi_3shori_putval,
986 sh64_elf64_create_dynamic_sections,
987 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
988 sh64_elf64_size_dynamic_sections,
989 sh64_elf64_finish_dynamic_symbol,
990 sh64_elf64_finish_dynamic_sections): New.
991 (elf_backend_create_dynamic-sections,
992 bfd_elf64_bfd_link_hash_table_create,
993 elf_backend_adjust_dynamic_symbol,
994 elf_backend_size_dynamic_sections,
995 elf_backend_finish_dynamic_symbol,
996 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
997 elf_backend_plt_readonly, elf_backend_want_plt_sym,
998 elf_backend_got_header_size, elf_backend_plt_header_size):
999 Define.
1000 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1001 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1002 match official numbers and names; moved unmaching ones to the
1003 range 0xf2-0xff.
1004 * elf32-sh64.c, elf64-sh64.c: Likewise.
1005 2001-03-12 DJ Delorie <dj@redhat.com>
1006 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1007 sections.
1008 2001-03-12 DJ Delorie <dj@redhat.com>
1009 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1010 be aligned.
1011 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1012 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1013 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1014 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1015 .cranges section with SEC_SORT_ENTRIES set.
1016 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1017 incoming sorted .cranges section.
1018 (sh64_bfd_elf_copy_private_section_data): New.
1019 (sh64_elf_final_write_processing): Only sort .cranges and modify
1020 start address if called by linker.
1021 2001-01-08 Ben Elliston <bje@redhat.com>
1022 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1023 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1024 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1025 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1026 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1027 line. Add comments before all entries.
1028 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1029 comment.
1030 (sh_elf64_reloc): Correct head comment.
1031 (sh_elf64_relocate_section): Correct spacing.
1032 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1033 instead call reloc_dangerous callback.
1034 <case R_SH_SHMEDIA_CODE>: New case.
1035 (sh_elf64_gc_mark_hook): Correct spacing.
1036 (sh_elf64_check_relocs): Ditto.
1037 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1038 New case.
1039 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1040 functions.
1041 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1042 clarify describing comment. Add comments before all entries.
1043 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1044 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1045 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1046 Sort .cranges section in final link. Prepare to set bit 0 on
1047 entry address.
1048 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1049 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1050 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1051 .cranges section.
1052 (sh64_backend_section_from_shdr): New, to recognize
1053 SHT_SH5_CR_SORTED on incoming .cranges section.
1054 (elf_backend_section_from_shdr): Define.
1055 (sh64_elf_final_write_processing): Sort outgoing .cranges
1056 section. (New, temporarily disabled:) Set bit 0 on entry address
1057 according to ISA type.
1058 (sh64_find_section_for_address): New.
1059 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1060 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1061 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1062 bfd_malloc, not xmalloc.
1063 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1064 global.
1065 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1066 temporarily disabled) setting bit 0 on entry address.
1067 (elf_backend_final_write_processing): Define.
1068 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1069 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1070 be a proper relocation for PTA and PTB rather than a marker.
1071 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1072 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1073 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1074 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1075 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1076 Zero src_mask.
1077 * elf64-sh64.c: Ditto.
1078 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1079 * elf32-sh64.c: Include opcodes/sh64-opc.h
1080 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1081 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1082 parameters. No unused parameters. Caller changed.
1083 <case R_SH_PT_16>: New case.
1084 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1085 * Makefile.in: Regenerate.
1086 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1087 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1088 all code sections.
1089 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1090 (sh64_elf_merge_private_data): Ditto.
1091 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1092 to access stored section flags.
1093 (sh64_elf_final_write_processing): Return immediately unless
1094 called by linker. Use sh64_elf_section_data (cranges) to get size
1095 of linker-generated cranges entries.
1096 (sh64_elf_copy_private_data): Add missing "return true".
1097 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1098 (sh_elf64_merge_private_data): Ditto.
1099 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1100 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1101 elf64-sh64.c:sh64_elf_fake_sections.
1102 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1103 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1104 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1105 (sh64_elf_final_write_processing): New.
1106 (elf_backend_final_write_processing): Define.
1107 (sh64_elf_fake_sections): Get header flags from tdata field.
1108 (sh64_elf_copy_private_data): Do not call
1109 sh64_elf_copy_private_data_internal, just copy e_flags field.
1110 (sh64_elf_merge_private_data): Do not call
1111 sh64_elf_copy_private_data_internal.
1112 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1113 Remove EF_SH64_ABI64, let ELF size make difference.
1114 Remove SH64-specific BFD section flag.
1115 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1116 containing SHmedia through elf_section_data (asect)->tdata
1117 non-zero, not using a BFD section flag.
1118 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1119 (sh64_elf_merge_private_data): Similar.
1120 (elf_backend_section_flags): Don't define.
1121 (sh64_elf_backend_section_flags): Delete.
1122 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1123 not EF_SH64_ABI64.
1124 (sh_elf64_merge_private_data): Similar.
1125 * section.c (Section flags definitions): Don't define
1126 SEC_SH_ISA_SHMEDIA.
1127 (bfd-in2.h): Regenerate.
1128 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1129 Make DataLabel references work with partial linking.
1130 * elf32-sh64.c: Fix formatting.
1131 (sh64_elf_link_output_symbol_hook): New.
1132 (elf_backend_link_output_symbol_hook): Define to
1133 sh64_elf_link_output_symbol_hook.
1134 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1135 undefined if partial linking. Adjust sanity check.
1136 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1137 (elf_backend_link_output_symbol_hook): Define to
1138 sh64_elf64_link_output_symbol_hook.
1139 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1140 undefined if partial linking. Adjust sanity check.
1141 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1142 Implement semantics for inter-file DataLabel references.
1143 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1144 (sh64_elf64_add_symbol_hook): New.
1145 (sh_elf64_relocate_section): If passing an indirect symbol with
1146 st_type STT_DATALABEL on the way to a symbol with st_other
1147 STO_SH5_ISA32, do not bitor 1 to the relocation.
1148 (elf_backend_add_symbol_hook): Define to
1149 sh64_elf64_add_symbol_hook.
1150 * elf64-sh32.c: Tweak comments.
1151 (DATALABEL_SUFFIX): Define.
1152 (sh64_elf_add_symbol_hook): New.
1153 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1154 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1155 symbol with st_type STT_DATALABEL on the way to a symbol with
1156 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1157 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1158 Pass through STT_DATALABEL.
1159 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1160 (elf_backend_get_symbol_type): Define.
1161 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1162 (elf_backend_get_symbol_type): Define.
1163 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1164 * elf32-sh64.c: Tweak comments.
1165 (sh64_elf_copy_private_data_internal): Add prototype.
1166 (bfd_elf32_bfd_set_private_flags): Define.
1167 (sh64_elf_copy_private_data_internal): Compare machine name, not
1168 textual BFD target name, to check whether to copy section flag
1169 SHF_SH5_ISA32.
1170 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1171 Tweak section-contents-type-mismatch message.
1172 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1173 Validize reloc-types.
1174 * elf64-sh64.c: New file.
1175 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1176 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1177 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1178 Regenerate dependencies.
1179 * Makefile.in: Regenerate.
1180 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1181 bfd_elf64_sh64l_vec.
1182 * configure.in: Handle bfd_elf64_sh64_vec and
1183 bfd_elf64_sh64l_vec.
1184 * configure: Regenerate.
1185 * po/POTFILES.in: Regenerate.
1186 * po/bfd.pot: Regenerate.
1187 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1188 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1189 anything else but EF_SH64 and EF_SH64_ABI64.
1190 (sh64_elf_merge_private_data): Emit error for anything else but
1191 EF_SH64 and EF_SH64_ABI64.
1192 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1193 from targ_selvecs.
1194 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1195 bfd_elf32_sh64l_vec as a temporary measure.
1196 * configure: Regenerate.
1197 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1198 * cpu-sh.c (arch_info_struct): Include sh5 item
1199 unconditionalized.
1200 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1201 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1202 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1203 * elf32-sh64.c: Tweak comments.
1204 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1205 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1206 (sh64_elf_copy_private_data_internal): Wrap long line.
1207 (sh64_elf_merge_private_data): Rewrite to allow objects from
1208 SH64 subsets to be linked together.
1209 (INCLUDE_SHMEDIA): Define.
1210 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1211 Parenthesize plus-expression inside or-expression.
1212 <global symbol>: Ditto.
1213 (sh_elf_set_mach_from_flags): Remove code refusing
1214 deleted EF_SH64_32BIT_ABI flag.
1215 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1216 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1217 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1218 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1219 (sh_elf_relocate_section) <local symbol>: Or 1 in
1220 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1221 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1222 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1223 relocation.
1224 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1225 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1226 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1227 Regenerate dependencies.
1228 * Makefile.in: Regenerate.
1229 * archures.c: Add bfd_mach_sh5.
1230 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1231 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1232 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1233 * configure: Regenerate.
1234 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1235 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1236 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1237 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1238 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1239 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1240 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1241 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1242 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1243 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1244 in item for SH5.
1245 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1246 for SHmedia relocs.
1247 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1248 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1249 shmedia_prepare_reloc, goto final_link_relocate if it returns
1250 non-zero, else fail as before.
1251 (sh_elf_set_mach_from_flags): Provide function only if not defined
1252 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1253 (sh_elf_set_private_flags): Provide function only if not defined
1254 as a macro.
1255 (sh_elf_copy_private_data): Similar.
1256 (sh_elf_merge_private_data): Similar.
1257 * section.c (SEC_SH_ISA_SHMEDIA): New.
1258 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1259 * elf32-sh64.c: New file.
1260 * libbfd.h: Regenerate.
1261 * bfd-in2.h: Regenerate.
1262 * po/POTFILES.in: Regenerate.
1263 * po/bfd.pot: Regenerate.
1264 * bfd-in2.h: Regenerate.
1265 * libbfd.h: Regenerate.
1266
e108f470
DJ
12672002-02-07 Daniel Jacobowitz <drow@mvista.com>
1268
1269 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1270 been included, not drag it in.
1271 * bfd-in2.h: Regenerate.
1272
259d18a3
L
12732002-02-06 H.J. Lu (hjl@gnu.org)
1274
1275 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1276 the mach and ISA fields if necessary.
1277
f13b834e
NC
12782002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1279
1280 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1281 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1282 be sure exactly which architecture this represents.
1283
82f6addb
NC
12842002-02-05 Nick Clifton <nickc@redhat.com>
1285
1286 * po/tr.po: Updated translation.
1287
899f54f5
AM
12882002-02-05 Alan Modra <amodra@bigpond.net.au>
1289
1290 From Jimi X <jimix@watson.ibm.com>
1291 * archures (bfd_mach_ppc64): Define.
1292 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1293 (bfd_powerpc_arch): Define.
1294 * bfd-in2.h: Regenerate.
1295 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1296 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1297 (bfd_powerpc_archs): Add default powerpc64 arch.
1298
248866a8
AM
12992002-02-05 Alan Modra <amodra@bigpond.net.au>
1300
1301 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1302 against section syms in readonly sections. Don't do the global
1303 sym check if we find one.
1304 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1305 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 1306 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
1307 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1308 (elf_s390_grok_prstatus): Add missing prototype.
1309
4fa5c2a8
HPN
13102002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1311
1312 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1313 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1314 Call bfd_get_section_by_name only once. Initialize
1315 bpodata->n_bpo_relocs_this_section.
1316 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1317 referring to DSOs.
1318 (bpo_reloc_request_sort_fn): Don't use difference of values as
1319 return-value.
1320
537c972e
DB
13212002-02-02 David O'Brien <obrien@FreeBSD>
1322
1323 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1324 version 4.5 and later the same as 5-CURRENT.
1325 * configure: Re-generate.
1326
006336b8
JT
13272002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1328
1329 * config.bfd (hppa*-*-netbsd*): New target.
1330
6c571f00
PT
13312002-01-31 Philipp Thomas <pthomas@suse.de>
1332
19397422
AM
1333 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1334 to front of message. Unify messages with elf32-arm.h. Use
1335 commas where neccessary.
1336 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1337 ERROR in messages. Unify messages with coff-arm.c. Correct
1338 VFP/FPA error message.
1339 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1340 APCS-32 for translation.
6c571f00 1341
930b4cb2
HPN
13422002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1343
1344 Perform on-demand global register allocation from
1345 R_MMIX_BASE_PLUS_OFFSET relocs.
1346 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1347 bpo_reloc_request, struct bpo_greg_section_info): New.
1348 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1349 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1350 _bfd_mmix_check_all_relocs,
1351 _bfd_mmix_prepare_linker_allocated_gregs,
1352 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1353 (elf_mmix_howto_table): Correct src_mask for most relocs.
1354 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1355 case.
1356 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1357 case. Fix typo in comment. New label do_mmix_reloc.
1358 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1359 store first object file with a base-plus-offset reloc. Call
1360 mmix_elf_check_common_relocs for the part common with mmo.
1361 (mmix_elf_final_link): Write out linker-allocated register
1362 contents section.
1363 (elf_backend_gc_sweep_hook): Define.
1364 (bfd_elf64_bfd_relax_section): Define.
1365
1366 * mmo.c: Don't include <ctype.h>
1367 (mmo_init): Correct init-once logic.
1368
3e36d993
TR
13692002-02-01 Tom Rix <trix@redhat.com>
1370
1371 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1372
ba323545
AM
13732002-02-01 Alan Modra <amodra@bigpond.net.au>
1374
1375 * Makefile.am: Run "make dep-am"
1376 * Makefile.in: Regenerate.
1377
012884d6
DB
13782002-01-31 David O'Brien <obrien@FreeBSD>
1379
1380 * configure.in: Recognize the differences in core files from FreeBSD
1381 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1382 5-CURRENT.
1383 * configure: Regenerate.
1384
3b16e843
NC
13852002-01-31 Ivan Guzvinec <ivang@opencores.org>
1386
1387 * coff-or32.c: New file.
1388 * cpu-or32.c: New file.
1389 * elf32-or32.c: New file.
1390 * archures.c: Add support for or32.
1391 * targets.c: Add support for or32.
1392 * bfd-in2.h: Regenerate.
7dc0ab31 1393 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
1394 coff_write_object_contents): Add support for or32.
1395 * config.bfd: Add target.
1396 * configure.in: Add support for or32.
1397 * configure: Regenerate.
1398 * Makefile.am: Add support for or32.
1399 * Makefile.in: Regenerate.
3b16e843
NC
1400 * po/SRC-POTFILES.in: Add or32 files.
1401 * po/bfd.pot: Regenerate.
7dc0ab31 1402
caf8ca8e
NC
14032002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1404 Don Lindsay <lindsayd@cisco.com>
1405
1406 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1407 false' with a return of a bfd_reloc_ error code.
1408
e5dfef09
HPN
14092002-01-31 Hans-Peter Nilsson <hp@axis.com>
1410
1411 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1412 unexport unreferenced symbols when --export-dynamic. Call
1413 _bfd_elf_strtab_delref when unexporting.
1414
4e4770d0
DJ
14152002-01-30 Daniel Jacobowitz <drow@mvista.com>
1416
1417 * bfd-in.h: Include <stdbool.h> if it is available.
1418 * bfd-in2.h: Regenerated.
1419
e1fa50e7
AM
14202002-01-31 Alan Modra <amodra@bigpond.net.au>
1421
1422 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1423 not go via the plt.
1424
b5f79c76
NC
14252002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1426
b5f79c76
NC
1427 * archures.c: Tidy up formatting of embedded comments.
1428 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 1429 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
1430 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1431 * section.c: Tidy up formatting of embedded comments.
1432 * syms.c: Tidy up formatting of embedded comments.
1433 * targets.c: Tidy up formatting of embedded comments.
1434
1435 * bfd-in2.h: Regenerate.
1436
ca09e32b
NC
14372002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1438
1439 * vms-tir.c (cmd_name): New function.
1440 (tir_cmd_name): New function.
1441 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1442 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1443 Fix formatting.
7dc0ab31 1444
ca09e32b
NC
1445 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1446 translation.
1447 (pe_print_pdata): Rearrange message to aid in translation.
1448
1449 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1450 translation.
1451
1452 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1453
1454 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1455
1456 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1457 message to aid in translation.
1458
1459 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1460 to aid in translation.
1461
1462 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1463
7dc0ab31 14642002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
1465
1466 * coff-arm.c, elf32-elf.h: Unify messages.
1467
05f64ac6
NC
14682002-01-30 Nick Clifton <nickc@redhat.com>
1469
1470 * po/sv.po: Updated translation.
1471
f5a3e38a
NC
14722002-01-30 Philipp Thomas <pthomas@suse.de>
1473
1474 * dwarf2.c (read_abbrev): Use full section name in error message.
1475 (decode_line_info): Likewise.
661a3fd4
NC
1476
1477 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1478 message.
1479
d926e03d
AM
14802002-01-30 Alan Modra <amodra@bigpond.net.au>
1481
1482 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1483 descriptor symbols for undefined function code syms. Clear
1484 ELF_LINK_NON_ELF so that they can stay weak.
1485
030d18fb 14862002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 1487 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
1488
1489 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1490 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1491 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1492 generation.
1493 * bfd-in2.h: Regenerate.
1494
fcc76bea
CD
14952002-01-29 Chris Demetriou <cgd@broadcom.com>
1496
1497 * elf32-mips.c: Add additional comments about HI16 relocation
1498 processing.
1499 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1500 pc-relative relocations. (Reverts change made on 2001-10-31.)
1501 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1502 for pc-relative relocations.
1503 (mips_elf_calculate_relocation): Add a comment about a kludge
1504 in the R_MIPS_GNU_REL_HI16 handling.
1505 (_bfd_mips_elf_relocate_section): Implement that kludge;
1506 adjust pc-relative HI16 relocation for difference in HI16 and
1507 LO16 addresses, since it can't easily be done in
1508 mips_elf_calculate_relocation.
1509
f9cd9119
MS
15102002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1511
1512 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1513 relocations with PC32 relocations for undefined or weak symbols.
1514 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1515 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1516
702248bb
JT
15172002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1518
1519 * elfcore.h (elf_core_file_p): Improve comment for last change.
1520
4867be41
DJ
15212002-01-27 Daniel Jacobowitz <drow@mvista.com>
1522
1523 * configure: Regenerated.
1524
a94cef6a
JT
15252002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1526
1527 * elfcore.h (elf_core_file_p): Set the machine architecture
1528 before processing the program headers.
1529
7562a296
HPN
15302002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1531
966abd70
HPN
1532 * configure.in <64-bit configuration>: If using gcc, check and
1533 emit error for egcs-1.1.2.
1534 * configure: Regenerate.
1535
e8eab623
NC
15362002-01-26 Egor Duda <deo@logos-m.ru>
1537
1538 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1539 as possible to avoid stack corruption.
1540
73896efb
RH
15412002-01-26 Richard Henderson <rth@redhat.com>
1542
1543 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1544 for non-allocated sections.
1545
15462002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
1547
1548 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1549 prstat.pr_reg even if it is a struct.
1550
73896efb 15512002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
1552
1553 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1554
3d66c4f7
NC
15552002-01-25 Philipp Thomas <pthomas@suse.de>
1556
1557 * coffgen.c (coff_print_symbol): Don't mark info message
1558 for translation.
1559
9460ecda
NC
15602002-01-25 Nick Clifton <nickc@redhat.com>
1561
1562 * po/fr.po: Updated translation.
1563 * po/es.po: Updated translation.
1564
cc9ff76a
AM
15652002-01-25 Philipp Thomas <pthomas@suse.de>
1566
1567 * coff-alpha.c (alpha_relocate_section): Unify warning message
1568 for GP relative relocations without GP defined.
1569 * coff-mips.c (mips_relocate_section): Likewise.
1570
c68836a9
AM
15712002-01-25 Alan Modra <amodra@bigpond.net.au>
1572
1573 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1574 unsigned overflow when new_offset < old_offset.
1575
e8eab623 15762002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
1577
1578 * bfd.c (_bfd_abort): Fix typo.
1579
8ba89f17
RH
15802002-01-23 Richard Henderson <rth@redhat.com>
1581
1582 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1583 plt entries for undefweak symbols.
1584
c6953948
NC
15852002-01-23 Steve Ellcey <sje@cup.hp.com>
1586
1587 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1588 DEFAULT_VECTOR.
1589 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1590 (bfd_elf32_h8300_vec): Ditto.
1591
41bd81ab
AM
15922002-01-23 Alan Modra <amodra@bigpond.net.au>
1593
1594 * elf64-ppc.c: Remove stale part of ABI comment.
1595 (NO_OPD_RELOCS): Define.
1596 (ppc64_elf_check_relocs): Use it.
1597 (ppc64_elf_relocate_section): Here too.
1598 (build_one_stub): Don't point function syms at the stub. Instead,
1599 hijack plt.offset.
1600 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1601 really go to the stub. Make all dynamic relocs in opd against
1602 locals.
1603 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1604 plt.offset.
1605
f304919d
RH
16062002-01-22 Richard Henderson <rth@redhat.com>
1607
1608 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1609
c0ef99a7
AM
16102002-01-22 Alan Modra <amodra@bigpond.net.au>
1611
60ee0d4a
AM
1612 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1613 TOC_BASE_OFF adjustment.
1614
c0ef99a7
AM
1615 * Makefile.am: Run "make dep-am".
1616 * Makefile.in: Regenerate.
1617 * po/SRC-POTFILES.in: Regenerate.
1618
64328b46
AM
16192002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1620
1621 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1622 host defines.
1623
59953665 16242002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
1625
1626 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1627 Check for and emit error if sgot is NULL at this point.
1628
9596feea
JT
16292002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1630
1631 * config.bfd (ia64*-*-netbsd*): New target.
1632
7b45c6e1
AM
16332002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1634
1635 * som.c (som_write_space_strings): Comment typo fix.
1636
e5094212
AM
16372002-01-21 Alan Modra <amodra@bigpond.net.au>
1638
e86ce104
AM
1639 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1640 is_func_descriptor fields.
1641 (link_hash_newfunc): Init them.
1642 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1643 dot are candidates for plt entries. When processing .opd relocs,
1644 set function descriptor strings to point inside function code
1645 string, and set new ppc_link_hash_entry fields.
1646 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1647 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1648 function descriptors. It's now done in..
1649 (func_desc_adjust): New.
1650 (ppc64_elf_func_desc_adjust): New.
1651 (define elf_backend_always_size_sections): Define.
1652 (ppc64_elf_hide_symbol): New.
1653 (define elf_backend_hide_symbol): Define.
1654 (allocate_dynrelocs): Remove code looking up function descriptors
1655 as that has been done earlier.
1656 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1657 table.
1658 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1659 up function descriptor.
1660 (build_one_stub): Look up the function code sym. Check for
1661 invalid plt offsets.
1662 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1663 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1664
e5094212
AM
1665 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1666 boolean param.
1667 (_bfd_elf_link_hash_hide_symbol): Likewise.
1668 * elflink.h (elf_link_add_object_symbols): Adjust call to
1669 elf_backend_hide_symbol.
1670 (elf_fix_symbol_flags): Likewise.
1671 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1672 than bfd_alloc.
1673 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1674 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1675 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1676 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1677 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1678 and adjust to suit.
1679 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1680 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1681 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1682
40b8271b
AM
16832002-01-18 Alan Modra <amodra@bigpond.net.au>
1684
1685 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1686 dynamic function descriptor symbol, not the associated function
1687 symbol.
1688
55baa95b
EC
16892002-01-17 Eric Christopher <echristo@redhat.com>
1690
1691 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1692
328577ad
NC
16932002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1694
1695 * po/bfd.pot: Regenerate.
1696 * po/fr.po: Regenerate.
1697
af746e92
AM
16982002-01-17 Alan Modra <amodra@bigpond.net.au>
1699
1700 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1701 Remove "Elf_Internal_Shdr *" param.
1702 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1703 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1704 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1705 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1706 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1707 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1708 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1709 function to override special sections. Remove hdr arg from
1710 backend call, and don't loop.
1711
175e9962
EC
17122002-01-16 Eric Christopher <echristo@redhat.com>
1713
1714 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1715 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1716 relocations requiring gp0 and gp.
1717
96a846ea
RE
17182002-01-16 Richard Earnshaw <rearnsha@arm.com>
1719
175e9962 1720 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
1721 EF_ARM_VFP_FLOAT.
1722 (elf32_arm_print_private_bfd_data): Likewise.
1723
af3ae48d
NC
17242002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1725
1726 * po/tr.po: Import new version.
1727
10ed1bba
AM
17282002-01-16 Alan Modra <amodra@bigpond.net.au>
1729
1730 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1731 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1732 (ORI_R0_R0_0): Correct.
1733
5d1634d7
AM
17342002-01-16 Alan Modra <amodra@bigpond.net.au>
1735
1736 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1737 when plt_not_loaded.
1738 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1739 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1740 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1741 (ppc64_elf_glink_code): Delete.
1742 (PPC64_ELF_GLINK_SIZE): Delete.
1743 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1744 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1745 ORI_R0_R0_0): Define.
1746 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1747 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1748 (ppc64_elf_link_hash_table_create): Init them.
1749 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1750 Don't copy to shared lib.
1751 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1752 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1753 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1754 room for .stub and .glink code.
1755 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1756 DT_PPC64_GLINK.
1757 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1758 bfd_elf64_bfd_final_link.
1759 (bfd_elf64_bfd_final_link): Don't define.
1760 (ppc64_elf_size_stubs): New.
1761 (build_plt_stub): New.
1762 (build_one_stub): New.
1763 (ppc64_elf_build_stubs): New.
1764 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1765 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1766 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1767 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1768 case output sections not separate. Adjust DT_RELASZ to not
1769 include plt relocs. Set reserved got entry. Set got and plt
1770 entry size.
1771 (elf_backend_got_header_size): Set to 8.
1772 * elf64-ppc.h: New file.
1773
c601ffdb
AM
17742002-01-16 Alan Modra <amodra@bigpond.net.au>
1775
1776 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1777 sections, use bfd_section_list_remove.
1778 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1779 * elflink.h (elf_link_add_object_symbols): When removing all
1780 sections, use bfd_section_list_clear.
1781
8fb4cb7f
NC
17822002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1783
1784 * po/sv.po: New file: Swedish translation.
1785 * configure.in (ALL_LINGUAS): Add sv.
1786 * configure: Regenerate.
1787
d3c456e9
JJ
17882002-01-15 Jakub Jelinek <jakub@redhat.com>
1789
1790 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1791 * elf.c (merge_sections_remove_hook): New function.
1792 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1793 _bfd_merge_sections.
1794 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1795 * libbfd.h: Rebuilt.
1796 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1797 Call remove_hook if a SEC_EXCLUDE section is encountered.
1798
1f7fd478
NC
17992002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1800
1801 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1802 (xstormy16_reloc_map): Initialise new field with correct howto
1803 table.
1804 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1805 howto entry.
1806
b87011e9
MS
18072002-01-10 Michael Snyder <msnyder@redhat.com>
1808
1809 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1810 (elfcore_write_pstatus): Use long instead of pid_t;
1811 * elf-bfd.h: Change prototypes to use long instead of pid_t;
1812
175e9962 18132002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
1814
1815 * elf.c: Update copyright years.
1816 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1817 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
1818
7c76fa91
MS
18192002-01-08 Michael Snyder <msnyder@redhat.com>
1820
1821 Add capability to write corefile note sections, for gdb.
1822 * elf.c (elfcore_write_note): New function.
1823 (elfcore_write_prpsinfo): New function.
1824 (elfcore_write_prstatus): New function.
1825 (elfcore_write_pstatus): New function.
1826 (elfcore_write_prfpreg): New function.
1827 (elfcore_write_prxfpreg): New function.
97996af6 1828 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 1829
e1fddb6b
AO
18302002-01-08 Alexandre Oliva <aoliva@redhat.com>
1831
1832 * elf.c (elf_fake_sections): Propagate errors from
1833 elf_backend_fake_section.
1834
8d05742f
JT
18352002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1836
1837 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1838 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1839 (elf32-sh-nbsd.lo): New rule.
1840 * Makefile.in: Regenerate.
1841 * config.bfd (sh*le-*-netbsdelf*): New target.
1842 (sh*-*-netbsdelf*): New target.
1843 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1844 (bfd_elf32_shnbsd_vec): New vector.
1845 (bfd_elf32_shlnbsd_vec): New vector.
1846 * configure: Regenerate.
1847 * elf32-sh-nbsd.c: New file.
1848 * targets.c: Update copyright years.
175e9962 1849 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
1850 bfd_elf32_shnbsd_vec.
1851
1dba4cb4
AH
18522002-01-07 Aldy Hernandez <aldyh@redhat.com>
1853
1854 * coff-rs6000.c (READ20): Use bfd_scan_vma.
1855
47b22aef
GK
18562002-01-07 Geoffrey Keating <geoffk@redhat.com>
1857
1858 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1859 of a symbol in a section that will be deleted.
1860
be2d1673
NC
18612002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1862
1863 * po/es.po: New file: Spanish translation.
1864 * configure.in (ALL_LINGUAS): Add es.
1865 * configure: Regenerate.
1866
d9cf1b54
AM
18672002-01-06 Steve Ellcey <sje@cup.hp.com>
1868
1869 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1870 argument so we can handle HP-UX specially.
1871 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1872 (elfNN_hpux_backend_section_from_bfd_section): New for support
1873 of SHN_IA_64_ANSI_COMMON.
1874 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1875 (is_unwind_section_name): Add special HP-UX support.
1876 (elfNN_ia64_section_from_shdr): Add support for more sections.
1877 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1878 add support for more sections.
1879 (elfNN_ia64_additional_program_headers): Modify
1880 is_unwind_section_name call.
1881 (elfNN_ia64_modify_segment_map): Remove assumption that there is
1882 only one unwind section in segment.
1883
3f3c5c34
AM
18842002-01-06 Alan Modra <amodra@bigpond.net.au>
1885
1886 * syms.c (_bfd_generic_make_empty_symbol): New function.
1887 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1888 _bfd_generic_make_empty_symbol.
1889 * libbfd.h: Regenerate.
1890 * bfd-in2.h: Regenerate.
1891 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1892 (hppabsd_core_get_symtab_upper_bound): Don't define.
1893 (hppabsd_core_get_symtab): Likewise.
1894 (hppabsd_core_print_symbol): Likewise.
1895 (hppabsd_core_get_symbol_info): Likewise.
1896 (hppabsd_core_bfd_is_local_label_name): Likewise.
1897 (hppabsd_core_get_lineno): Likewise.
1898 (hppabsd_core_find_nearest_line): Likewise.
1899 (hppabsd_core_bfd_make_debug_symbol): Likewise.
1900 (hppabsd_core_read_minisymbols): Likewise.
1901 (hppabsd_core_minisymbol_to_symbol): Likewise.
1902 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1903 Formatting fixes.
1904 * hpux-core.c: Similarly.
1905 * irix-core.c: Similarly.
1906 * osf-core.c: Similarly.
1907 * sco5-core.c: Similarly.
1908 * binary.c (binary_make_empty_symbol): Remove function, define as
1909 _bfd_generic_make_empty_symbol.
1910 * ihex.c (ihex_make_empty_symbol): Likewise.
1911 * mmo.c (mmo_make_empty_symbol): Likewise.
1912 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1913 * srec.c (srec_make_empty_symbol): Likewise.
1914 * versados.c (versados_make_empty_symbol): Likewise.
1915 * vms.c (_bfd_vms_make_empty_symbol): Remove.
1916 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1917 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1918 rather than _bfd_vms_make_empty_symbol.
1919 * vms-misc.c (new_symbol): Likewise.
1920
3f0a7f7f
AM
19212002-01-05 Alan Modra <amodra@bigpond.net.au>
1922
9e7b37b3
AM
1923 * section.c (bfd_section_init): Remove unnecessary initialisations.
1924 (bfd_section_list_clear): New function.
1925 (bfd_section_list_remove, bfd_section_list_insert): New macros.
1926 (_bfd_strip_section_from_output): Use them.
1927 * coffcode.h (coff_set_alignment_hook): Likewise.
1928 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1929 * elf64-mips.c (mips_elf64_final_link): Likewise.
1930 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1931 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1932 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1933 * bfd-in2.h: Regenerate.
1934
1935 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1936 rather than doing our own section handling. Clean up after errors
1937 with bfd_release and bfd_section_list_clear. Handle unexpected
1938 flags.
1939 * aoutf1.h (sunos4_core_file_p): Likewise.
1940 * aix386-core.c (aix386_core_file_p): Likewise.
1941 * cisco-core.c (cisco_core_file_validate): Likewise.
1942 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1943 * trad-core.c (trad_unix_core_file_p): Likewise.
1944
1945 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
1946 with bfd_release and bfd_section_list_clear.
1947 * hpux-core.c (hpux_core_core_file_p): Likewise.
1948 * irix-core.c (irix_core_core_file_p): Likewise.
1949 * lynx-core.c (lynx_core_file_p): Likewise.
1950 * osf-core.c (osf_core_core_file_p): Likewise.
1951 * rs6000-core.c (rs6000coff_core_p): Likewise.
1952 * sco5-core.c (sco5_core_file_p): Likewise.
1953
3f0a7f7f
AM
1954 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1955 sign extension adjustments without conditionals.
1956
a3aa38ee
JJ
19572002-01-04 Jakub Jelinek <jakub@redhat.com>
1958
1959 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1960 CIE at .eh_frame start is removed due to no FDEs referencing it.
1961
8a8b2d4b
AJ
19622002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1963
1964 * config.bfd (x86_64-*-netbsd*): New target.
1965 * configure.in (x86_64-*-netbsd*): Set COREFILE
1966 to netbsd-core.lo.
1967 * configure: Regenerated.
1968
04b5af89
TR
19692002-01-03 Tom Rix <trix@redhat.com>
1970
1971 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1972 for recent bfd_make_section_anyway change.
1973
51c5503b
NC
19742002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
1975
1976 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1977 R_ARM_THM_PC11 reloc.
1978
07f7c046
NC
19792002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1980
1981 * configure.in (LINGUAS): Add ja.
1982 * configure: Regenerate.
1983 * po/ja.po: Import from translation project's web site.
1984
5eefb65f
NC
19852002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1986
1987 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1988 messages to ease translation into other languages.
1989
39e90f10 1990For older changes see ChangeLog-0001
56882138
AM
1991\f
1992Local Variables:
1993mode: change-log
1994left-margin: 8
1995fill-column: 74
1996version-control: never
1997End:
This page took 0.177906 seconds and 4 git commands to generate.