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