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