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