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