* gdbint.texinfo (Releasing GDB): Fix typos in @itemize @bullet
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3c2bfad6
JT
12002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
4 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
5 Regenerate dependency lists.
6 * Makefile.in: Regenerate.
7 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
8 vax1knetbsd_vec to targ_selvecs.
9 * configure.in: Add vax1knetbsd_vec.
10 * configure: Regenerate.
11 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
12 * vax1knetbsd.c: New file.
13 * vaxnetbsd.c: Update copyright years.
14 (TARGET_PAGE_SIZE): Set to 0x1000.
15 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
16
91149be3
JT
172002-06-08 Matt Thomas <matt@3am-software.com>
18
19 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
20
21e15248
AM
212002-06-08 Alan Modra <amodra@bigpond.net.au>
22
23 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
24
986b7daa
AM
252002-06-08 Alan Modra <amodra@bigpond.net.au>
26
e90b95f6
AM
27 * Makefile.am: Run "make dep-am".
28 * Makefile.in: Regenerate.
29
3f9c735e
AM
30 * armnetbsd.c: Replace CONST with const.
31 * corefile.c: Likewise.
32 * elf32-dlx.c: Likewise.
33 * elf64-mips.c: Likewise.
34 * mmo.c: Likewise.
35 * ns32knetbsd.c: Likewise.
36
986b7daa
AM
37 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
38 table is elf64-sparc.
39
5a659663
TS
402002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
41
42 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
43 Fix RELA addends to get not shifted in the result. Don't do special
44 handling of R_MIPS_64 for NewABI.
45
9bab7074
AM
462002-06-07 Alan Modra <amodra@bigpond.net.au>
47
48 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
49 (NAME(aout,slurp_reloc_table)): Likewise.
50 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
51 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
52 (xcoff_write_archive_contents_big): Likewise.
53 (xcoff_generate_rtinit): Likewise.
54 (xcoff_generate_rtinit): Likewise, and check error return.
55 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
56 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
57 (coff_get_normalized_symtab): Likewise.
58 (coff_make_empty_symbol): Likewise.
59 (bfd_coff_set_symbol_class): Likewise.
60 * cofflink.c (coff_link_add_symbols): Likewise.
61 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
62 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
63 (bfd_ecoff_write_accumulated_debug): Likewise.
64 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
65 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
66 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
67 * ieee.c (do_with_relocs): Use bfd_zalloc.
68 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
69 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
70 (NAME(aout,slurp_reloc_table)): Likewise.
71 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
72 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
73 * som.c (som_build_and_write_symbol_table): Likewise.
74 (som_slurp_string_table): Likewise.
75 (som_slurp_symbol_table): Likewise.
76 (som_bfd_ar_write_symbol_stuff): Likewise.
77 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
78 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
79 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
80 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
81 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
82
1126897b
AM
832002-06-07 Alan Modra <amodra@bigpond.net.au>
84
85 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
86 "group" union.
87 (elf_group_name): Update.
88 (elf_group_id): Define.
89 (bfd_elf_set_group_contents): Declare.
90 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
91 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
92 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
93 that sym for the signature.
94 (_bfd_elf_compute_section_file_positions): Don't call
95 set_group_contents for "ld -r" case.
96 (swap_out_syms): Use bfd_zalloc.
97 * elflink.h (elf_link_add_archive_symbols): Likewise.
98 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
99 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
100
3fad3c7c
AM
1012002-06-07 Alan Modra <amodra@bigpond.net.au>
102
103 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
104 relocs in opd for non-shared too.
105
76f99c63
JL
1062002-06-06 Jeffrey Law <law@redhat.com
107
108 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
109 relocations.
110
7217313c
NC
1112002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
112
113 * merge.c: Include libiberty.h.
114 * elf-strtab.c: Include libiberty.h.
115
6cb22815
AM
1162002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
117
118 * peXXigen.c (pe_print_idata): Remove unused variable.
119
1ed89aa9
NC
1202002-06-06 David Heine <dlheine@tensilica.com>
121
122 * elf.c (assign_file_positions_for_segments): Remove unallocated
123 sections from the section to segment mapping for PT_LOAD segments.
124 Update comment about empty loadable segments.
125
644c4c80
RS
1262002-06-06 Richard Sandiford <rsandifo@redhat.com>
127
128 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
129 is within the .stabstr section.
130
f8ecb12b
AM
1312002-06-06 Alan Modra <amodra@bigpond.net.au>
132
133 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
134 are "const PTR", not "const PTR *".
135 (bfd_elf32_swap_symbol_in): Likewise.
136 (bfd_elf64_swap_symbol_in): Likewise.
137 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
138 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
139 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
140 (elf_link_add_object_symbols): Likewise.
141 (elf_link_record_local_dynamic_symbol): Likewise.
142 (elf_link_input_bfd): Likewise.
143 (elf_gc_mark): Likewise.
144 (elf_reloc_symbol_deleted_p): Likewise.
145 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
146 (mn10200_elf_relax_delete_bytes): Likewise.
147 (mn10200_elf_symbol_address_p): Likewise.
148 (mn10200_elf_get_relocated_section_contents): Likewise.
149 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
150 (mn10300_elf_relax_section): Likewise.
151 (mn10300_elf_relax_delete_bytes): Likewise.
152 (mn10300_elf_symbol_address_p): Likewise.
153 (mn10300_elf_get_relocated_section_contents): Likewise.
154 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
155 (elf32_h8_relax_delete_bytes): Likewise.
156 (elf32_h8_symbol_address_p): Likewise.
157 (elf32_h8_get_relocated_section_contents): Likewise.
158 * elf32-hppa.c (get_local_syms): Likewise.
159 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
160 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
161 * elf32-sh.c (sh_elf_relax_section): Likewise.
162 (sh_elf_relax_delete_bytes): Likewise.
163 (sh_elf_get_relocated_section_contents): Likewise.
164 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
165 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
166 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
167 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
168 * elf64-ppc.c (get_local_syms): Likewise.
169 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
170 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
171
1ed89aa9 1722002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
173
174 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
175
73ff0d56
AM
1762002-06-05 Alan Modra <amodra@bigpond.net.au>
177
9dce4196
AM
178 * elf.c (group_signature): Swap in the whole symbol, and handle
179 extracting section symbol names.
180 (setup_group): Add comment.
181 (set_group_contents): When called from objcopy or ld, arrange for
182 section contents to be written. Write group member output section
183 indices to allow objcopy to reorganize sections.
184 (_bfd_elf_copy_private_section_data): Copy group info.
185
73ff0d56
AM
186 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
187 (bfd_elf32_swap_symbol_in): Update prototype.
188 (bfd_elf64_swap_symbol_in): Likewise.
189 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
190 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
191 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
192 (elf_link_add_object_symbols): Likewise.
193 (elf_link_record_local_dynamic_symbol): Likewise.
194 (elf_link_input_bfd): Likewise.
195 (elf_gc_mark): Likewise.
196 (elf_reloc_symbol_deleted_p): Likewise.
197 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
198 (mn10200_elf_relax_delete_bytes): Likewise.
199 (mn10200_elf_symbol_address_p): Likewise.
200 (mn10200_elf_get_relocated_section_contents): Likewise.
201 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
202 (mn10300_elf_relax_section): Likewise.
203 (mn10300_elf_relax_delete_bytes): Likewise.
204 (mn10300_elf_symbol_address_p): Likewise.
205 (mn10300_elf_get_relocated_section_contents): Likewise.
206 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
207 (elf32_h8_relax_delete_bytes): Likewise.
208 (elf32_h8_symbol_address_p): Likewise.
209 (elf32_h8_get_relocated_section_contents): Likewise.
210 * elf32-hppa.c (get_local_syms): Likewise.
211 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
212 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
213 * elf32-sh.c (sh_elf_relax_section): Likewise.
214 (sh_elf_relax_delete_bytes): Likewise.
215 (sh_elf_get_relocated_section_contents): Likewise.
216 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
217 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
218 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
219 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
220 * elf64-ppc.c (get_local_syms): Likewise.
221 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
222 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
223 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
224 * elf64-alpha.c (alpha_elf_size_info): Likewise.
225 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
226 * elf64-mips.c (mips_elf64_size_info): Likewise.
227 * elf64-s390.c (s390_elf64_size_info): Likewise.
228 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
229
53bfd6b4
MR
2302002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
231
232 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
233 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
234 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
235 _bfd_mips_elf_ignore_discarded_relocs.
236 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
237
d4df96e6
L
2382002-06-05 H.J. Lu <hjl@gnu.org>
239
240 * elfxx-mips.c (mips_elf_calculate_relocation): Call
241 _bfd_elf_rel_local_sym for STT_SECTION relocations against
242 the SEC_MERGE section.
243
e61463e1
AM
2442002-06-05 Alan Modra <amodra@bigpond.net.au>
245
3cac74d0
AM
246 * coff-alpha.c: Update copyright date.
247 * coff-mips.c: Likewise.
248 * xcoff-target.h: Likewise.
249
e61463e1
AM
250 * bfd-in.h: Remove "taken from the source" comment.
251 * libbfd-in.h: Likewise.
252 * libcoff-in.h: Likewise.
253 * bfd-in2.h: Regenerate.
254 * libbfd.h: Regenerate.
255 * libcoff.h: Regenerate.
256
257 * elf.c (bfd_elf_discard_group): Return true.
258 * elf-bfd.h (bfd_elf_discard_group): Declare.
259 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
260 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
261 * bfd.c (bfd_discard_group): Define.
262 * targets.c (struct bfd_target): Add _bfd_discard_group.
263 (BFD_JUMP_TABLE_LINK): Here too.
264 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
265 * aout-adobe.c (aout_32_bfd_discard_group): Define.
266 * aout-target.h (MY_bfd_discard_group): Define.
267 * aout-tic30.c (MY_bfd_discard_group): Define.
268 * binary.c (binary_bfd_discard_group): Define.
269 * bout.c (b_out_bfd_discard_group): Define.
270 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
271 * coffcode.h (coff_bfd_discard_group): Define.
272 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
273 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
274 * i386msdos.c (msdos_bfd_discard_group): Define.
275 * i386os9k.c (os9k_bfd_discard_group): Define.
276 * ieee.c (ieee_bfd_discard_group): Define.
277 * ihex.c (ihex_bfd_discard_group): Define.
278 * mmo.c (mmo_bfd_discard_group): Define.
279 * nlm-target.h (nlm_bfd_discard_group): Define.
280 * oasys.c (oasys_bfd_discard_group): Define.
281 * ppcboot.c (ppcboot_bfd_discard_group): Define.
282 * som.c (som_bfd_discard_group): Define.
283 * srec.c (srec_bfd_discard_group): Define.
284 * tekhex.c (tekhex_bfd_discard_group): Define.
285 * versados.c (versados_bfd_discard_group): Define.
286 * vms.c (vms_bfd_discard_group): Define.
287 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
288 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
289 (aix5coff64_vec): Likewise.
290 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
291
9cba27b2
JT
2922002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
293
294 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
295 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
296 (elf32-sh64-com.lo): New dependency list.
297 * Makefile.in: Regenerate.
298 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
299 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
300 elf32-sh64-com.lo.
301 * configure: Regenerate.
302 * elf32-sh64.c (sh64_address_in_cranges)
303 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
304 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
305 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
306 * elf32-sh64-com.c: ...here. New file.
307
8d2c33be
AM
3082002-06-04 Alan Modra <amodra@bigpond.net.au>
309
310 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
311 ATTRIBUTE_UNUSED on used params.
312 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
313 before calling bfd_section_from_elf_index on local syms.
314 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
315
5b0e55b6
JT
3162002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
317
318 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
319 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
320 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
321 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
322 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
323 * Makefile.in: Regenerate.
324 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
325 (sh64-*-netbsd*): New targets.
326 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
327 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
328 * configure: Regenerate.
329 * elf32-sh64-nbsd.c: New file.
330 * elf64-sh64-nbsd.c: New file.
331 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
332 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
333 bfd_elf64_sh64lnbsd_vec.
334
b885599b
AM
3352002-06-04 Alan Modra <amodra@bigpond.net.au>
336
337 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
338 (bfd_section_from_shdr): Likewise. Set section name of group
339 sections from signature.
340 (group_signature): Split out from setup_group. Ensure symbol table
341 is available.
342 (bfd_elf_discard_group): New function.
343 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
344 .gnu.linkonce* sections if they are members of a group.
345 (set_group_contents): Set GRP_COMDAT flag.
346 * section.c (bfd_discard_group): New function.
347 * bfd-in.h (bfd_elf_discard_group): Declare.
348 * bfd-in2.h: Regenerate.
349 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
350 (elf_linkonce_p): Define.
351
90937f86
AM
3522002-06-04 Alan Modra <amodra@bigpond.net.au>
353
354 * elf.c (bfd_section_from_shdr): Make "name" const.
355 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
356 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
357 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
358 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
359 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
360 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
361 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
362 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
363 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
364 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
365 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
366
cf6fb9ce
MR
3672002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
368
369 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
370 ABI.
371
cedb70c5
KH
3722002-06-02 Kazu Hirata <kazu@cs.umass.edu>
373
374 * elf32-arc.c: Fix formatting.
375 * elf32-arm.h: Likewise.
376 * elf32-cris.c: Likewise.
377 * elf32-dlx.c: Likewise.
378 * elf32-hppa.c: Likewise.
379 * elf32-i386.c: Likewise.
380 * elf32-i386qnx.c: Likewise.
381 * elf32-or32.c: Likewise.
382 * elf32-s390.c: Likewise.
383 * elf32-sh64.c: Likewise.
384 * elf32-vax.c: Likewise.
385 * elf32-xstormy16.c: Likewise.
386 * elf64-alpha.c: Likewise.
387 * elf64-mmix.c: Likewise.
388 * elf64-ppc.c: Likewise.
389 * elf64-s390.c: Likewise.
390 * elf64-sh64.c: Likewise.
391 * elf64-x86-64.c: Likewise.
392
048d873d
RH
3932002-06-02 Richard Henderson <rth@redhat.com>
394
395 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
396 null when there are no got entries for a symbol.
397 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
398 uninitialized variable warning.
399
4a67a098
RH
4002002-06-01 Richard Henderson <rth@redhat.com>
401
402 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
403 undefined symbols here.
404 (elf64_alpha_relax_section): Do it here. Also test for not
405 defined in the current module.
406 (elf64_alpha_relocate_section_r): Split out of ...
407 (elf64_alpha_relocate_section): ... here. Don't dereference
408 NULL when looking up local got entries.
409
f44f99a5
RH
4102002-06-01 Richard Henderson <rth@redhat.com>
411
412 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
413 symbols from JSR relaxation.
414 (elf64_alpha_size_plt_section_1): New.
415 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
416 (elf64_alpha_size_rela_got_1): ... here.
417 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
418 (elf64_alpha_size_rela_got_section): ... here.
419 (elf64_alpha_size_plt_section): New.
420 (elf64_alpha_relax_section): Call them.
421 (elf64_alpha_size_got_sections): Remove output_bfd arg.
422 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
423
9e756d64
RH
4242002-06-01 Richard Henderson <rth@redhat.com>
425
426 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
427 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
428 in shared libraries. Fix DTPRELHI and TPRELHI value.
429 (INSN_ADDQ, INSN_RDUNIQ): New.
430 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
431 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
432 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
433 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
434 Handle GOTDTPREL and GOTTPREL relocations.
435 (elf64_alpha_relax_gprelhilo): New.
436 (elf64_alpha_relax_tls_get_addr): New.
437 (elf64_alpha_relax_find_tls_segment): New.
438 (elf64_alpha_relax_section): Handle TLS relocations.
439 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
440 (elf64_alpha_check_relocs): Set it.
441
c853d7f6
RH
4422002-06-01 Richard Henderson <rth@redhat.com>
443
b646261c
RH
444 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
445
c853d7f6
RH
446 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
447 check; don't suppress dynamic relocs for non-allocated sections.
448
d7e41a96
RH
449 * elf64-alpha.c: Remove dead code.
450
5f333394
AM
4512002-05-31 Alan Modra <amodra@bigpond.net.au>
452
08e0ee05
AM
453 * bfd-in2.h: Regenerate.
454 * libbfd.h: Regenerate.
455 * po/SRC-POTFILES.in: Regenerate.
456
5f333394
AM
457 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
458 space for bss .plt.
459
caf47ea6
AM
4602002-05-31 Graeme Peterson <gp@qnx.com>
461
462 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
463 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
464 Run "make dep-am".
465 * Makefile.in: Regenerate.
466 * config.bfd: Add i[3456]86-*-nto-qnx* support.
467 * configure.in: Add bfd_elf32_i386qnx_vec support.
468 * configure: Regenerate.
469 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
470 is_contained_by_filepos, and copy_private_bfd_data_p.
471 * elf.c (assign_file_positions_for_segments): Call backend
472 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
473 (IS_CONTAINED_BY_FILEPOS): Define.
474 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
475 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
476 Fix non-K&R call to _bfd_error_handler.
477 (_bfd_elf_copy_private_section_data): Use backend
478 copy_private_bfd_data_p.
479 * elf32-i386.c: Don't include elfxx-target.h when
480 ELF32_I386_C_INCLUDED is defined.
481 * elf32-i386qnx.c: New QNX elf backend file.
482 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
483 elf_backend_is_contained_by_filepos, and
484 elf_backend_do_copy_private_bfd_data.
485 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
486
5bc56484
AM
4872002-05-31 Alan Modra <amodra@bigpond.net.au>
488
489 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
490 Move other similar defines to start of file.
491
1b164155
TR
4922002-05-30 Tom Rix <trix@redhat.com>
493
494 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
495 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
496
3765b1be
RH
4972002-05-30 Richard Henderson <rth@redhat.com>
498
499 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
500 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
501 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
502 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
503 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
504 (struct alpha_elf_obj_tdata): Rename total_got_entries and
505 n_local_got_entries to total_got_size and local_got_size.
506 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
507 (alpha_got_entry_size): New.
508 (elf64_alpha_relax_with_lituse): Use it.
509 (elf64_alpha_relax_without_lituse): Likewise.
510 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
511 (get_got_entry): New.
512 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
513 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
514 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
515 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
516 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
517 (elf64_alpha_calc_got_offsets): Likewise.
518 (alpha_dynamic_entries_for_reloc): New.
519 (elf64_alpha_calc_dynrel_sizes): Use it.
520 (elf64_alpha_size_dynamic_sections): Likewise.
521 (elf64_alpha_relocate_section): Handle TLS relocations.
522 * reloc.c: Add Alpha TLS relocations.
523 * bfd-in2.h, libbfd.h: Rebuild.
524
5e226794
NC
5252002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
526
527 * peXXigen.c (pe_print_idata): Remove double printed
528 import table lines; add Bound-To comment.
529
90ace9e9
JT
5302002-05-29 Matt Thomas <matt@3am-software.com>
531
532 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
533 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
534 (elf32-vax.lo): New rule.
535 * Makefile.in: Regenerate.
536 * configure.in (bfd_elf32_vax_vec)
537 (vaxnetbsd_vec): New vectors.
538 * configure: Regenerate.
539 * config.bfd (vax-*-netbsdelf*)
540 (vax-*-netbsdaout*)
541 (vax-*-netbsd*): New targets.
542 * elf32-vax.c: New file.
543 * reloc.c: Add VAX relocations.
544 * bfd-in2.h: Regenerate.
545 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
546
4a253e81
JT
5472002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
548
549 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
550 and bfd_elf32_bigarm_vec to targ_selvecs.
551
6e7c73dd
CF
5522002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
553
554 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
555 with auto-imported symbols.
556
8afb0e02
NC
5572002-05-29 Adam Nemet <anemet@lnxw.com>
558
559 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
560 sections only record bfd.
9bab7074 561 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
8afb0e02 562 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
9bab7074 563 * bfd-in2.h: Regenerate.
8afb0e02 564
a95653f5
NC
5652002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
566
567 * syms.c (_bfd_stab_section_find_nearest_line): Move
568 declaration and initialisation of saw_line and saw_func out of
569 for loop.
570
7cdc5bba
AM
5712002-05-29 Alan Modra <amodra@bigpond.net.au>
572
573 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
574 (bfd_elf64_get_symbol_info): Define.
575 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
576
4c7aad1c
AM
5772002-05-29 Andrey Volkov <avolkov@transas.com>
578
579 * cpu-h8300.c: Make default h8300 machine first in machine list.
580
d172d4ba
NC
5812002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
582
583 * config.bfd: Added DLX configuraton.
584 * Makefile.am: Added DLX configuraton.
585 * configure.in: Added DLX configuraton.
586 * archures.c: Add DLX architecure.
587 * reloc.c: Add DLX relocs.
588 * targets.c: Added DLX target vector.
589 * configure: Regenerate.
590 * Makefile.in: Regenreate.
591 * bfd-in2.h: Regenreate.
592 * elf32-dlx.c: New file: Support DLX target.
593 * cpu-dlx.c: New file: Support DLX target.
594
d1329ca3
AM
5952002-05-25 Alan Modra <amodra@bigpond.net.au>
596
428d0de3
AM
597 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
598
d1329ca3
AM
599 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
600 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
601 strings to point inside function code sym string.
602 (func_desc_adjust): Likewise.
603 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
604
3bab7989
ML
6052002-05-24 Michal Ludvig <mludvig@suse.cz>
606
607 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
608 (elf64_x86_64_grok_psinfo): Added.
609
436e8db0
NC
6102002-05-24 TAMURA Kent <kent@netbsd.org>
611
612 * config.bfd: Add a target for i386-netbsdpe.
613
ea1e4b0d
AM
6142002-05-24 Alan Modra <amodra@bigpond.net.au>
615
616 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
617 and is_func_descriptor.
618 (func_desc_adjust): Hide function code sym in shared libs unless
619 there is a matching exported function descriptor sym.
620
13ae64f3
JJ
6212002-05-23 Jakub Jelinek <jakub@redhat.com>
622
623 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
624 for symbols from SHF_TLS section.
625 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
626 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
627 (map_sections_to_segments): Build PT_TLS segment if necessary.
628 (assign_file_positions_for_segments): Likewise.
629 (get_program_header_size): Account for PT_TLS segment.
630 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
631 SEC_THREAD_LOCAL sections to STT_TLS.
632 * reloc.c: Add 386 and IA-64 TLS relocs.
633 * section.c (SEC_THREAD_LOCAL): Define.
634 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
635 Remove.
636 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
637 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
638 unconditionally.
639 (struct elf_final_link_info): Add first_tls_sec.
640 (elf_bfd_final_link): Set first_tls_sec.
641 Compute elf_hash_table (info)->tls_segment.
642 (elf_link_output_extsym): Handle STT_TLS symbols.
643 (elf_link_input_bfd): Likewise.
644 * syms.c (BSF_THREAD_LOCAL): Define.
645 * bfd-in2.h: Rebuilt.
646 * libbfd.h: Rebuilt.
647 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
648 elf_i386_mkobject, elf_i386_object_p): New functions.
649 (elf_howto_table): Add TLS relocs.
650 (elf_i386_reloc_type_lookup): Support TLS relocs.
651 (elf_i386_info_to_howto_rel): Likewise.
652 (struct elf_i386_link_hash_entry): Add tls_type.
653 (struct elf_i386_obj_tdata): New.
654 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
655 New macros.
656 (struct elf_i386_link_hash_table): Add tls_ldm_got.
657 (link_hash_newfunc): Clear tls_type.
658 (elf_i386_check_relocs): Support TLS relocs.
659 (elf_i386_gc_sweep_hook): Likewise.
660 (allocate_dynrelocs): Likewise.
661 (elf_i386_size_dynamic_sections): Likewise.
662 (elf_i386_relocate_section): Likewise.
663 (elf_i386_finish_dynamic_symbol): Likewise.
664 (bfd_elf32_mkobject, elf_backend_object_p): Define.
665 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
666 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
667 want_tprel, want_dtpmod, want_dtprel.
668 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
669 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
670 R_IA64_LTOFF_TPREL22.
671 (elf_code_to_howto_index): Add TLS relocs.
672 (elfNN_ia64_check_relocs): Support TLS relocs.
673 (allocate_global_data_got): Account for TLS .got data.
674 (allocate_dynrel_entries): Account for TLS dynamic relocations.
675 (elfNN_ia64_install_value): Supprt TLS relocs.
676 (set_got_entry): Support TLS relocs.
677 (elfNN_ia64_relocate_section): Likewise.
678
c62e1cc3
NC
6792002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
680
681 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
682 BLX reloc round the relocation up rather than down.
683 * coff-arm.c (coff_arm_relocate_section): Likewise.
684
c5a43a5d
L
6852002-05-21 H.J. Lu (hjl@gnu.org)
686
687 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
688 definition.
689
afbe61cf
AM
6902002-05-22 Alan Modra <amodra@bigpond.net.au>
691
692 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
693 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
694
9c07fe7c
AM
6952002-05-22 Alan Modra <amodra@bigpond.net.au>
696
697 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
698 unresolved relocs.
699 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
700
21611032
TS
7012002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
702
703 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
704 non-ELF targets.
705
41241523
TS
7062002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
707
708 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
709 an error value.
710 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
711 return with false on error.
712 (elf_link_input_bfd): Check reloc_emitter return value.
713
658f2588
JT
7142002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
715
716 * config.bfd (armeb-*-netbsdelf*): New target.
717
c862ae31
AM
7182002-05-20 Alan Modra <amodra@bigpond.net.au>
719
720 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
721 at the plt call stub.
722
6dd14845
TS
7232002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
724
725 * cpu-mips.c (mips_compatible): Don't try to check machine
726 compatibility.
727
a58d9c34
TR
7282002-05-18 Tom Rix <trix@redhat.com>
729
730 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
731
ef60b7ff
AM
7322002-05-17 Alan Modra <amodra@bigpond.net.au>
733
734 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
735 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
736 we've already warned about an undefined symbol. Report more
737 detail on reloc errors.
738
a703a6ea
AM
7392002-05-17 Alan Modra <amodra@bigpond.net.au>
740
741 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
742 * configure.in: Invoke AM_INSTALL_LIBBFD.
743 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
744 (install_libbfd): .. New target.
745 (uninstall_libbfd): Likewise.
746 (install-bfdlibLTLIBRARIES): Likewise.
747 (uninstall-bfdlibLTLIBRARIES): Likewise.
748 (bfdlibdir): New.
749 (bfdincludedir): New.
750 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
751 * aclocal.m4: Regenerate.
752 * configure: Regenerate.
753 * Makefile.in: Regenerate.
754
2c13d98b
NC
7552002-05-17 Stuart Balfour <sbalfour@cisco.com>
756
757 * hash.c (bfd_hash_lookup): Remove computation of len from inside
758 hash loop.
759
629936c5
NC
7602002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
761
762 * config.bfd: Add targets for sh64-linux (little endian and
763 big endian).
764
e4cf60a8
NC
7652002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
766
767 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
768 is located in the same section as the import table. Instead
769 check, and if necessary load the section containing the thunk.
770
d1e66cd4
NC
7712002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
772
773 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
774 bfd_bread.
775 (xcoff64_core_file_matches_executable_p): Replace bfd_read
776 with bfd_bread.
d1e66cd4 777
2d653fc7
AM
7782002-05-15 Alan Modra <amodra@bigpond.net.au>
779
780 * aix5ppc-core.c: Warning fixes.
781 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
782 * aout-target.h (MY_bfd_link_just_syms): Define.
783 * aout-tic30.c (MY_bfd_link_just_syms): Define.
784 * bfd.c (bfd_link_just_syms): Define.
785 * binary.c (binary_bfd_link_just_syms): Define.
786 * bout.c (b_out_bfd_link_just_syms): Define.
787 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
788 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
789 * coffcode.h (coff_bfd_link_just_syms): Define.
790 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
791 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
792 (_bfd_elf_link_just_syms): Declare.
793 * elf.c (_bfd_elf_link_just_syms): New function.
794 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
795 sections haven't already been discarded by the linker.
796 * elflink.h (elf_link_add_object_symbols): Likewise for stab
797 sections and SEC_MERGE sections.
798 (elf_bfd_discard_info): Similarly here.
799 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
800 * i386msdos.c (msdos_bfd_link_just_syms): Define.
801 * i386os9k.c (os9k_bfd_link_just_syms): Define.
802 * ieee.c (ieee_bfd_link_just_syms): Define.
803 * ihex.c (ihex_bfd_link_just_syms): Define.
804 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
805 (_bfd_generic_link_just_syms): Declare.
806 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
807 * linker.c (_bfd_generic_link_just_syms): New function.
808 * mmo.c (mmo_bfd_link_just_syms): Define.
809 * nlm-target.h (nlm_bfd_link_just_syms): Define.
810 * oasys.c (oasys_bfd_link_just_syms): Define.
811 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
812 * som.c (som_bfd_link_just_syms): Define.
813 * srec.c (srec_bfd_link_just_syms): Define.
814 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
815 (BFD_JUMP_TABLE_LINK): And here.
816 * tekhex.c (tekhex_bfd_link_just_syms): Define.
817 * versados.c (versados_bfd_link_just_syms): Define.
818 * vms.c (vms_bfd_link_just_syms): Define.
819 * libbfd.h: Regenerate.
820 * bfd-in2.h: Regenerate.
821
cb7394f2
TS
8222002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
823
824 * elf32-mips.c: Remove superfluous definitions copied from
825 elfxx-mips.c.
826 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
827 SGIish vectors to check the special case.
828 (mips_elf_hi16_reloc): Fix comment.
829 (mips_elf_got16_reloc): Likewise.
830 (_bfd_mips_elf32_gprel16_reloc): Likewise.
831 (elf_reloc_map): Code cleanup.
832 (mips_reloc_map): Add comment.
833 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
834 (mips_elf32_rtype_to_howto): Likewise.
835 (mips_elf32_discard_info): Likewise.
836 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
837 lead to IRIX compatibility now.
838
8dc1a139
TS
8392002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
840
841 * elfxx-mips.c: Call it IRIX, not Irix in comments.
842
2051e1b5
JT
8432002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
844
845 * config.bfd (shle-*-netbsdelf*): Add target which includes
846 sh64 support.
847
83954261
AM
8482002-05-13 David Edelsohn <edelsohn@gnu.org>
849
850 * configure.in: Revert 2002-04-07. Instead, auto-configure
851 HAVE_ST_C_IMPL.
852 * configure: Regenerate.
853 * config.in: Regenerate.
854 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
855 or AIX_5_CORE.
856
a9bf1154
NC
8572002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
858
859 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
860 corefiles as well.2
861 * configure: Regenerate.
862
3129eb7a
AM
8632002-05-13 Alan Modra <amodra@bigpond.net.au>
864
865 * Makefile.am (install-data-local): Install headers to
866 $(exec_prefix)/include.
867 * Makefile.in: Regenerate.
868
a9a32010
DJ
8692002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
870 Daniel Jacobowitz <drow@mvista.com>
871
872 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
873 map BFD_RELOC_RVA.
874
8752002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
876
877 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
878 hppa*-*-openbsd*): New targets.
879 * configure.in (alpha*-*-openbsd*): Set COREFILE.
880 * configure: Regenerate.
881
f1f0d9ab
TR
8822002-05-10 Tom Rix <trix@redhat.com>
883
ea1e4b0d 884 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
885 xcoff64_ppc_relocate_section.
886 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
887 * libxcoff.h: Common xcoff_reloc_type function declaration.
888
c432ba1a
AM
8892002-05-10 Alan Modra <amodra@bigpond.net.au>
890
16a10388 891 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
90937f86 892 added in 2002-05-09 commit.
16a10388 893
c432ba1a
AM
894 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
895 don't look for stubs on all undefined syms.
896
4a335f3d
AM
8972002-05-09 Alan Modra <amodra@bigpond.net.au>
898
8fc39d5d
AM
899 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
900 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
901 pcrel_offset.
902
4a335f3d
AM
903 * elf32-i386.c (elf_howto_table): Comments.
904 (elf_i386_relocate_section): Handle more relocs for relocatable
905 linking and against SEC_MERGE sections.
906
41fcb14e
AM
9072002-05-08 Alan Modra <amodra@bigpond.net.au>
908
909 * elf32-ppc.c (ppc_elf_create_got): New function.
910 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 911 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
912 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
913 _bfd_elf_create_got_section.
914
b491616a
AM
9152002-05-07 Alan Modra <amodra@bigpond.net.au>
916
917 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
918 * elfxx-target.h (elf_backend_rela_normal): Define.
919 (elfNN_bed): Init rela_normal.
920 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
921 for section symbols here if rela_normal. Simplify abs section test.
922 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
923 return immediately. Remove code handling relocatable linking.
924 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
925 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
926 * elf32-i370.c (i370_elf_relocate_section): Likewise.
927 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
928 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
929 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
930 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
931 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
932 * elf32-s390.c (elf_s390_relocate_section): Likewise.
933 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
934 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
935 * elf64-s390.c (elf_s390_relocate_section): Likewise.
936 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
937 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
938 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
939 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
940 * elf-m10200.c (elf_backend_rela_normal): Define.
941 * elf-m10300.c (elf_backend_rela_normal): Define.
942 * elf32-fr30.c (elf_backend_rela_normal): Define.
943 * elf32-i370.c (elf_backend_rela_normal): Define.
944 * elf32-i860.c (elf_backend_rela_normal): Define.
945 * elf32-m68k.c (elf_backend_rela_normal): Define.
946 * elf32-mcore.c (elf_backend_rela_normal): Define.
947 * elf32-openrisc.c (elf_backend_rela_normal): Define.
948 * elf32-ppc.c (elf_backend_rela_normal): Define.
949 * elf32-s390.c (elf_backend_rela_normal): Define.
950 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
951 * elf64-ppc.c (elf_backend_rela_normal): Define.
952 * elf64-s390.c (elf_backend_rela_normal): Define.
953 * elf64-x86-64.c (elf_backend_rela_normal): Define.
954 * elfxx-ia64.c (elf_backend_rela_normal): Define.
955 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
956 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
957
df212a7e
NC
9582002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
959
960 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
961 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
962
3decf53c
AM
9632002-05-06 Alan Modra <amodra@bigpond.net.au>
964
965 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
966 when not relocatable. Fix reloc_emitter call for K&R.
967
f46c2da6
AM
9682002-05-04 Alan Modra <amodra@bigpond.net.au>
969
970 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
971 reloading local sym addend mistakenly removed in 2002-05-01 change.
972
973 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
974 (read_abbrevs): Change "offset" param to bfd_vma.
975 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
976 Change "abbrev_offset" to bfd_vma.
977 (read_indirect_string): Use correct conversion chars in error
978 message format string, cast bfd_vma's to unsigned long.
979 (read_abbrevs): Likewise.
980 (read_attribute_value): Likewise.
981 (decode_line_info): Likewise.
982 (scan_unit_for_functions): Likewise.
983 (parse_comp_unit): Likewise.
984
59862849
TR
9852002-05-04 Tom Rix <trix@redhat.com>
986
987 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
988 (coff_swap_reloc_out): Same.
989 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
990 (xcoff_swap_reloc_out): Same.
991 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
992 case some 16 bit relocs. Add reloc value to output.
993 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 994 R_RBR. Improve names.
59862849
TR
995 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
996 (bfd_xcoff_backend_data): Update with new reloc swap names.
997 (bfd_pmac_xcoff_backend_data) : Same.
998 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
999 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 1000 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 1001 R_POS. Add reloc value to output.
ea1e4b0d
AM
1002 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1003 bit R_RBR. Improve names, masks.
59862849
TR
1004 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1005 (bfd_xcoff_backend_data): Update with new reloc swap names.
1006 (bfd_xcoff_aix5_backend_data) : Same.
1007
b4655ea9
AM
10082002-05-04 Alan Modra <amodra@bigpond.net.au>
1009
1010 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1011 bfd_count top_index, input_list, all_local_syms.
1012 (elf32_hppa_setup_section_lists): New function, split from
1013 elf32_hppa_size_stubs.
1014 (elf32_hppa_next_input_section): Likewise.
1015 (group_sections): Likewise.
1016 (get_local_syms): Likewise.
1017 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1018 stubs on undefined syms too.
1019 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 1020 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
1021 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1022 (elf32_hppa_next_input_section): Declare.
1023
301e3139
AM
10242002-05-04 Bob Byrnes <byrnes@curl.com>
1025
1026 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1027 _bfd_new_bfd.
1028
7c5fcef7
L
10292002-05-03 H.J. Lu (hjl@gnu.org)
1030
1031 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1032 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1033 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1034 to hide a global symbol.
1035 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 1036 forced_local to true.
7c5fcef7 1037
84de6048
RH
10382002-05-02 Richard Henderson <rth@redhat.com>
1039
1040 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1041 vs SHN_UNDEF to zero.
1042
805fc799
AM
10432002-05-02 Alan Modra <amodra@bigpond.net.au>
1044
c061c2d8
AM
1045 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1046 16 bit reloc.
1047 <R_PPC64_SECTOFF_DS>: Likewise.
1048 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1049 SECTOFF reloc.
1050 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1051 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1052 SECTOFF reloc.
1053
805fc799
AM
1054 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1055 (ppc64_elf_ha_reloc): New function.
1056 (ppc64_elf_brtaken_reloc): New function.
1057 (ppc64_elf_sectoff_reloc): New function.
1058 (ppc64_elf_sectoff_ha_reloc): New function.
1059 (ppc64_elf_toc_reloc): New function.
1060 (ppc64_elf_toc_ha_reloc): New function.
1061 (ppc64_elf_toc64_reloc): New function.
1062 (ppc64_elf_unhandled_reloc): New function.
1063 (ppc64_elf_howto_raw): Use the above.
1064 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1065 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1066 <R_PPC64_SECTOFF_DS>: Likewise.
1067 (IS_ABSOLUTE_RELOC): Update.
1068 (struct ppc_link_hash_table): Add have_undefweak.
1069 (ppc64_elf_link_hash_table_create): Init.
1070 (func_desc_adjust): Set have_undefweak.
1071 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1072 add the .sfpr blr when have_undefweak.
1073 (ppc64_elf_setup_section_lists): Check hash table flavour.
1074 (ppc64_elf_next_input_section): Move output_section->owner test to
1075 ppc64elf.em.
1076 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1077 and relocatable test. Return TOCstart and don't set elf_gp.
1078 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1079 offset calculation. Add assert on weak sym branch tweaks.
1080 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1081 (ppc64_elf_toc): Declare.
1082 (ppc64_elf_next_input_section): Update.
ea1e4b0d 1083
818c39a3
AM
10842002-05-01 Alan Modra <amodra@bigpond.net.au>
1085
1086 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1087 file_name.
1088
721956f4
AM
10892002-05-01 Alan Modra <amodra@bigpond.net.au>
1090
1091 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1092 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1093 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1094 call branches. Correct undefined weak destination.
1095 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1096 .sfpr, and correct case where either only savef* or restf* is
1097 needed.
1098
1099 Long branch stubs, multiple stub sections.
1100 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1101 (ppc64_elf_next_input_section): Declare.
1102 * elf64-ppc.c: Move linker-only prototypes.
1103 (STUB_SUFFIX): Define.
1104 (enum ppc_stub_type): New.
1105 (struct ppc_stub_hash_entry): New.
1106 (struct ppc_branch_hash_entry): New.
1107 (struct ppc_link_hash_entry): Add stub_cache, oh.
1108 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1109 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1110 Rename plt_overflow to stub_error.
1111 (ppc_stub_hash_lookup): Define.
1112 (ppc_branch_hash_lookup): Define.
1113 (stub_hash_newfunc): New function.
1114 (branch_hash_newfunc): New function.
1115 (link_hash_newfunc): Init new fields.
1116 (ppc64_elf_link_hash_table_create): Likewise.
1117 (ppc64_elf_link_hash_table_free): New function.
1118 (ppc_stub_name): New function.
1119 (ppc_get_stub_entry): New function.
1120 (ppc_add_stub): New function.
1121 (create_linkage_sections): Use bfd_make_section_anyway. Create
1122 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1123 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1124 and set up for plt call stubs. Link func and func desc syms.
1125 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1126 (func_desc_adjust): Avoid hash lookup when func desc sym available
1127 via shortcut, and set links when processing.
1128 (ppc64_elf_hide_symbol): Likewise.
1129 (allocate_dynrelocs): Don't allocate stub section here.
1130 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1131 Remove sstub code.
1132 (ppc_type_of_stub): New function.
1133 (build_one_stub): Delete.
1134 (ppc_build_one_stub): New function.
1135 (ppc_size_one_stub): New function.
1136 (ppc64_elf_setup_section_lists): New function.
1137 (ppc64_elf_next_input_section): New function.
1138 (group_sections): New function.
1139 (get_local_syms): New function.
1140 (ppc64_elf_size_stubs): Rewrite.
1141 (ppc64_elf_build_stubs): Rewrite.
1142 (ppc64_elf_relocate_section): Look up stub entry for REL24
1143 relocs. Don't propagate REL14* to dynamic objects. Look for long
1144 branch stubs if REL14* or REL24 relocs won't reach.
1145 (bfd_elf64_bfd_link_hash_table_free): Define.
1146
09c2219b
MM
11472002-04-30 Mark Mitchell <mark@codesourcery.com>
1148
1149 * bfd/config.bfd: Add support for powerpc-*-windiss.
1150
07b678c0
TR
11512002-04-30 Tom Rix <trix@redhat.com>
1152
1153 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1154 symbol names into the hash table.
1155
dbe341c6
TR
11562002-04-28 Tom Rix <trix@redhat.com>
1157
1158 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 1159 calulating relocations.
dbe341c6 1160 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
1161 (xcoff_ppc_relocate_section): Use relocation and complain function
1162 tables.
1163 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
1164 (xcoff_complain_overflow_signed_func): Same.
1165 (xcoff_complain_overflow_bitfield_func): Same.
1166 (xcoff_complain_overflow_dont_func): Same.
1167 (xcoff_reloc_type_crel): New recot function.
1168 (xcoff_reloc_type_br): Same.
1169 (xcoff_reloc_type_ba): Same.
1170 (xcoff_reloc_type_toc): Same.
1171 (xcoff_reloc_type_rel): Same.
1172 (xcoff_reloc_type_neg): Same.
1173 (xcoff_reloc_type_pos): Same.
1174 (xcoff_reloc_type_fail): Same.
1175 (xcoff_reloc_type_noop): Same.
1176 * libxcoff.h : Declare common parts for xcoff64.
1177 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 1178 and complain function tables.
dbe341c6 1179
985142a4
AM
11802002-04-28 Alan Modra <amodra@bigpond.net.au>
1181
1182 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1183 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1184
eba91044
AM
11852002-04-26 Alan Modra <amodra@bigpond.net.au>
1186
e54fdaa5
AM
1187 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1188 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1189
a50c1845
AM
1190 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1191 same as the output before calling elf_link_input_bfd.
1192
eba91044
AM
1193 * coffcode.h (coff_compute_section_file_positions): Set
1194 section_tail after shuffling section list.
1195
3c25c5f6
NC
11962002-04-24 Christian Groessler <chris@groessler.org>
1197
1198 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1199 addresses are 23bit with a special layout, not plain 32bit
1200 values. Prevent relocation of immediate values.
1201
40d32fc6
CD
12022002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1203
1204 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1205 MIPS-16 ASE flags are set, print something to indicate that.
1206
067fa4a6
AM
12072002-04-23 Alan Modra <amodra@bigpond.net.au>
1208
1209 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1210 under which a plt call stub is used.
1211 (final_link_relocate): Similarly.
1212 (allocate_plt_static): Clear h-plabel except when plt entry is
1213 exclusively used for a plabel.
1214 (allocate_dynrelocs): Use the above to simplify plt sizing.
1215 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1216 (elf32_hppa_link_hash_table_create): Init.
1217 (BL22_RP): Define.
1218 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1219 (elf32_hppa_check_relocs): Set has_22bit_branch.
1220
1221 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1222 (final_link_relocate): Likewise.
1223
af40ce3c
JJ
12242002-04-22 Jakub Jelinek <jakub@redhat.com>
1225
1226 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1227 search table if some FDE is DW_EH_PE_aligned encoded either.
1228 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1229
09ae86c2
JJ
12302002-04-22 Richard Smith <richard@ex-parrot.com>
1231 Jakub Jelinek <jakub@redhat.com>
1232
1233 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1234 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1235 encoded personality.
1236 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1237 for CIE/FDE removal.
1238
deeb2cd7
TR
12392002-04-20 Tom Rix <trix@redhat.com>
1240
1241 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1242
99dc0092
AM
12432002-04-20 Alan Modra <amodra@bigpond.net.au>
1244
aa3d5824
AM
1245 * archures.c (bfd_lookup_arch): Move the list order comment..
1246 (struct bfd_arch_info): ..to where it belongs.
1247 * bfd-in2.h: Regenerate.
1248
99dc0092
AM
1249 * archures.c (bfd_lookup_arch): Add comment on list order.
1250 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1251 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1252 is always at head of list.
1253
7831a775
NC
12542002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1255
1256 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1257 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1258 definition of these functions for ARM_WINCE builds as they are
1259 not used.
ea1e4b0d 1260 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
1261 for ARM_WINCE builds.
1262
12632002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1264
ea1e4b0d 1265 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
1266
12672002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1268
1269 * cpu-sh.c (scan_mach): Delete.
1270 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1271 (bfd_sh_arch): Likewise.
1272
3d8dbe36
NC
12732002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1274
1275 * ihex.c (ihex_write_object_contents): Fix check for records
1276 crossing 64K boundaries.
1277
4ab82700
AM
12782002-04-16 Alan Modra <amodra@bigpond.net.au>
1279
1280 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1281 type rather than just assuming entries are ELF.
1282 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1283 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1284 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1285 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1286 rather than elf_link_hash_entry.
1287
036fe0fe
RH
12882002-04-15 Richard Henderson <rth@redhat.com>
1289
1290 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1291 n32 binaries.
1292
c4f3d130
NC
12932002-04-15 Michael Snyder <msnyder@redhat.com>
1294
1295 * opncls.c (bfd_close): Write contents if writeable.
1296 Minor formatting tidy-ups.
1297
4ab82700 12982002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
1299
1300 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1301
0c04d169
MS
13022002-04-12 Michael Snyder <msnyder@redhat.com>
1303
1304 * bfd-in.h (bfd_get_section_lma): New access macro.
1305 Minor white-space fix-up.
1306
89d4966f
AM
13072002-04-12 Alan Modra <amodra@bigpond.net.au>
1308
1309 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1310 header pad.
1311
8d0da3c2
DD
13122002-04-09 DJ Delorie <dj@redhat.com>
1313
1314 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1315
05793179
NC
13162002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1317
1318 * coffcode.h (coff_read_word): New.
1319 (coff_compute_checksum): New.
1320 (coff_apply_checksum): New.
1321 (coff_write_object_contents): Call coff_apply_checksum () to
1322 apply checksum to PE image.
1323
46fe4e66
AM
13242002-04-08 Randolph Chung <tausq@debian.org>
1325
1326 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1327 (elf32_hppa_final_link): Split out sorting logic to..
1328 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1329 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1330
3b5b409c
AC
13312002-04-07 Andrew Cagney <ac131313@redhat.com>
1332
1333 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1334 pattern.
1335 * configure: Re-generate.
1336
ac7b6ceb
AC
13372002-04-07 Andrew Cagney <ac131313@redhat.com>
1338
1339 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1340 is greater or equal to 4.3.3.
1341 * configure: Regenerate.
1342 Fix PR gdb/344.
1343
44aa49bb
HPN
13442002-04-05 Hans-Peter Nilsson <hp@axis.com>
1345
1346 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1347 R_CRIS_32_PCREL>: Fix typo in name.
1348 (cris_elf_check_relocs): Always create .rela.got here when
1349 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1350 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1351 assume it's created.
1352
e2d34d7d
DJ
13532002-04-04 Daniel Jacobowitz <drow@mvista.com>
1354
1355 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1356 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1357 define.
1358 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1359 * bfd.c (bfd_link_hash_table_free): Define.
1360 * binary.c (binary_bfd_link_hash_table_free): Define.
1361 * bout.c (b_out_bfd_link_hash_table_free): Define.
1362 * coff-rs6000.c (rs6000coff_vec): Include
1363 _bfd_generic_link_hash_table_free.
1364 (pmac_xcoff_vec): Likewise.
1365 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1366 (aix5coff64_vec): Likewise.
1367 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1368 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1369 (bfd_elf32_bfd_link_hash_table_free): Define.
1370 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1371 (bfd_elf32_bfd_link_hash_table_free): Define.
1372 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1373 define.
1374 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1375 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1376 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1377 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1378 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1379 (_bfd_generic_link_hash_table_free): Add prototype.
1380 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1381 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1382 * linker.c (_bfd_generic_link_hash_table_free): New function.
1383 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1384 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1385 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1386 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1387 * som.c (som_bfd_link_hash_table_free): Define.
1388 * srec.c (srec_bfd_link_hash_table_free): Define.
1389 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1390 * versados.c (versados_bfd_link_hash_table_free): Define.
1391 * vms.c (vms_bfd_link_hash_table_free): New function.
1392 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1393
1394 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1395 instead of bfd_alloc.
1396 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1397 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1398 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1399 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1400 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1401 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1402 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1403 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1404 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1405 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1406 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1407 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1408 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1409 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1410 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1411 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1412 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1413 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1414 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1415 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1416 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1417 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1418 * m68klinux.c (linux_link_hash_table_create): Likewise.
1419 * sparclinux.c (linux_link_hash_table_create): Likewise.
1420 * sunos.c (sunos_link_hash_table_create): Likewise.
1421 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1422
1423 * targets.c: Add _bfd_link_hash_table_free to xvec.
1424
1425 * bfd-in2.h: Regenerate.
1426 * libbfd.h: Regenerate.
1427 * libcoff.h: Regenerate.
1428
830629ab
AM
14292002-04-04 Alan Modra <amodra@bigpond.net.au>
1430
1431 * dep-in.sed: Cope with absolute paths.
1432 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1433 Run "make dep-am".
1434 * Makefile.in: Regenerate.
1435 * coff-arm.c: Fix copyright date.
1436 * cpu-h8300.c: Likewise.
1437 * cpu-i370.c: Likewise.
1438 * cpu-s390.c: Likewise.
1439 * cpu-mips.c: Likewise.
1440 * po/SRC-POTFILES.in: Regenerate.
1441
c6e90b02
TS
14422002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1443
1444 * Makefile.am: Add elfxx-mips.c to the known backends.
1445 (elf32-mips.lo): remove dependency to coff/external.h.
1446 * Makefile.in: Regenerate.
1447 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1448 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1449 accordingly.
1450 * configure: Regenerate.
1451 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1452 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1453 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1454 MIPS specific backend functions.
1455 * elf32-mips.c: Moved most code to elfxx-mips.c.
1456 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1457 static.
1458 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1459 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1460 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1461 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1462 interface to allow selection of the right REL or RELA howto table.
1463 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1464 static. Let it refuse n32 objects.
1465 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1466 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1467 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1468 (elf32_mips_ignore_discarded_relocs): Rename from
1469 _bfd_elf32_mips_ignore_discarded_relocs.
1470 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1471 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1472 (elf_mips_howto_table_rela): Remove.
1473 * elf64-mips.c: Moved most code to elfxx-mips.c.
1474 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1475 (mips_elf64_rtype_to_howto): New function.
1476 (mips_elf64_object_p): Likewise.
1477 (elf64_mips_irix_compat): Likewise.
1478 * elfxx-mips.c: New file containing common code merged together from
1479 elf32-mips.c and elf64-mips.c.
1480 * elfxx-mips.h: New file containing MIPS specific prototypes from
1481 elf-bfd.h.
1482 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1483 elf_backend_mips_rtype_to_howto.
1484
d8dce692
AM
14852002-04-04 Alan Modra <amodra@bigpond.net.au>
1486
1487 * srec.c (MAXCHUNK, Chunk): Revise comments.
1488 (srec_write_record): Correct buffer size.
1489 (srec_write_header): Do without intermediate buffer.
1490 (srec_write_section): Validate Chunk.
1491 (srec_write_terminator): Pass NULL instead of dummy buffer.
1492 (srec_write_symbols): Pass file and symbol names directly to
1493 bfd_bwrite so sprintf won't overflow buffer.
1494
b88a866a
JJ
14952002-04-03 Jakub Jelinek <jakub@redhat.com>
1496
1497 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1498 PC relative relocs against hidden symbols.
1499 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1500
d7866f04
AM
15012002-04-03 Alan Modra <amodra@bigpond.net.au>
1502
1503 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1504 LMAs, loop over segments until p_vaddr and p_memsz specify an
1505 extent enclosing the section.
1506
9e81ee67
NC
15072002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1508
1509 * ihex.c (ihex_write_object_contents): Do not allow records to
1510 cross a 64K boundary - wrap if necessary.
1511
d2b64500
JT
15122002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1513
1514 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1515 which caused the returned LWP ID to always be 0.
1516
e36f7d53
RH
15172002-04-01 Richard Henderson <rth@redhat.com>
1518
1519 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1520 (elf32_sparc_relocate_section): Use it to figure out when to
1521 initialize .got entries.
1522 * elf64-sparc.c: Similarly.
1523
e92d460e
AM
15242002-03-28 Alan Modra <amodra@bigpond.net.au>
1525
1526 * linker.c (link_action): Ignore duplicate warning syms.
1527 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1528 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1529 (elf_adjust_dynamic_symbol): Likewise.
1530 (elf_export_symbol): Likewise.
1531 (elf_link_find_version_dependencies): Likewise.
1532 (elf_link_assign_sym_version): Likewise.
1533 (elf_link_sec_merge_syms): Likewise.
1534 (elf_link_output_extsym): Likewise.
1535 (elf_gc_sweep_symbol): Likewise.
1536 (elf_gc_propagate_vtable_entries_used): Likewise.
1537 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1538 (elf_gc_allocate_got_offsets): Likewise.
1539 (elf_collect_hash_codes): Likewise.
1540 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1541 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1542 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1543 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1544 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1545 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1546 (elf_cris_discard_excess_dso_dynamics): Likewise.
1547 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1548 (mark_PIC_calls): Likewise.
1549 (allocate_plt_static): Likewise.
1550 (allocate_dynrelocs): Likewise.
1551 (readonly_dynrelocs): Likewise.
1552 * elf32-i386.c (allocate_dynrelocs): Likewise.
1553 (readonly_dynrelocs): Likewise.
1554 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1555 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1556 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1557 (mips_elf_sort_hash_table_f): Likewise.
1558 (mips_elf_check_mips16_stubs): Likewise.
1559 * elf32-s390.c (allocate_dynrelocs): Likewise.
1560 (readonly_dynrelocs): Likewise.
1561 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1562 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1563 (xstormy16_relax_plt_realloc): Likewise.
1564 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1565 (elf64_alpha_output_extsym): Likewise.
1566 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1567 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1568 (mips_elf64_check_mips16_stubs): Likewise.
1569 (mips_elf64_output_extsym): Likewise.
1570 * elf64-ppc.c (func_desc_adjust): Likewise.
1571 (allocate_dynrelocs): Likewise.
1572 (readonly_dynrelocs): Likewise.
1573 * elf64-s390.c (allocate_dynrelocs): Likewise.
1574 (readonly_dynrelocs): Likewise.
1575 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1576 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1577 (readonly_dynrelocs): Likewise.
1578 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1579 * aoutx.h (aout_link_write_other_symbol): Likewise.
1580 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1581 (_bfd_coff_write_global_sym): Likewise.
1582 * i386linux.c (linux_tally_symbols): Likewise.
1583 * m68klinux.c (linux_tally_symbols): Likewise.
1584 * sparclinux.c (linux_tally_symbols): Likewise.
1585 * pdp11.c (aout_link_write_other_symbol): Likewise.
1586 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1587 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1588 (xcoff_write_global_symbol): Likewise.
1589
1590 * cofflink.c (_bfd_coff_final_link): Formatting.
1591 * cpu-mips.c (mips_compatible): Make static, prototype.
1592 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1593 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1594 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1595 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1596 (mips_elf64_final_link): Likewise.
1597 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1598 prototype.
1599
2106126f
NC
16002002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1601
1602 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1603 (SWAP_OUT_RELOC_OFFSET): Define.
1604
b99d1833
AM
16052002-03-27 Gregory Steuck <greg@nest.cx>
1606
1607 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1608 terminating NULL if empty symbol table.
1609 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1610
ad43ed4c
L
16112002-03-26 H.J. Lu (hjl@gnu.org)
1612
1613 * elflink.h (elf_link_input_bfd): Revert the last change since
1614 the gcc exception handling isn't fixed yet.
1615
3851fca4
L
16162002-03-26 H.J. Lu (hjl@gnu.org)
1617
1618 * elflink.h (elf_link_input_bfd): Complain about relocations
1619 against local symbols in discarded sections.
1620
b91afed7
AM
16212002-03-26 Alan Modra <amodra@bigpond.net.au>
1622
1623 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1624
dba143ef
AM
16252002-03-23 Alan Modra <amodra@bigpond.net.au>
1626
1627 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1628 section file offset for !SEC_LOAD sections.
1629
ee29b9fb
RE
16302002-03-21 Richard Earnshaw <rearnsha@arm.com>
1631
830629ab
AM
1632 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1633 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 1634
54327882
AM
16352002-03-21 Alan Modra <amodra@bigpond.net.au>
1636
1637 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1638 Whitespace changes.
1639 * archive.c: Update copyright date.
1640 * bfd-in2.h: Regenerate.
1641 * libbfd.h: Regenerate.
1642 * Makefile.am: Run "make dep-am"
1643 * Makefile.in: Regenerate.
1644 * po/SRC-POTFILES.in: Regenerate.
1645
1ee24f27
DJ
16462002-03-20 Daniel Jacobowitz <drow@mvista.com>
1647
1648 * dwarf2.c (struct funcinfo): Move up.
1649 (lookup_address_in_function_table): New argument function_ptr.
1650 Set it.
1651 (lookup_address_in_line_table): New argument function. If function
1652 is non-NULL, use it to handle ``addr'' before the first line note of
1653 the function.
1654 (comp_unit_find_nearest_line): Update and swap calls to
1655 lookup_address_in_function_table and lookup_address_in_line_table.
1656 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1657 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1658
51b9608c
TR
16592002-03-20 Tom Rix <trix@redhat.com>
1660
ea1e4b0d 1661 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 1662 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 1663 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 1664
789c90aa
TR
16652002-03-19 Tom Rix <trix@redhat.com>
1666
ea1e4b0d 1667 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
1668 dynamic objects in archives.
1669
1da54d81
HPN
16702002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1671
1672 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1673 STT_NOTYPE symbols to STT_OBJECT.
1674
7831a775 16752002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
1676
1677 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1678
eb1e0e80
NC
16792002-03-18 Tom Rix <trix@redhat.com>
1680
1681 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1682 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1683 * coff-rs6000 (do_pad) : New function for archive padding.
1684 (do_copy) : New function for object file copying in archives.
1685 (do_shared_object_padding) : New function for padding shared
1686 objects to their text section alignment in archives.
1687 (bfd_xcoff_ar_achive_set_magic) : Stub.
1688 (xcoff_write_armap_big) : Use do_copy and do_pad.
1689 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1690 do_copy and do_pad.
1691 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 1692 bfd_xcoff_magic_number.
eb1e0e80
NC
1693 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1694 fop.
1695 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1696 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1697 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1698 * rs6000-core.c : Update copyright date.
ea1e4b0d 1699 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
1700 csectpp.
1701 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1702 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1703 (coff_set_flags) : Use bfd_xcoff_magic_number.
1704 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1705 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1706 * Makefile.am : Same.
1707 * config.bfd : Same.
1708 * targets.c : Same.
1709 * configure : Regnerate.
1710 * Makefile.in : Same.
1711 * bfd-in2.h : Same.
1712
a1c259a1
NC
17132002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1714
1715 * po/fr.po: Updated version.
1716
4dae1ae7
AM
17172002-03-18 Alan Modra <amodra@bigpond.net.au>
1718
1719 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1720 * libbfd.h: Regenerate.
1721 * archive.c (coff_write_armap): Pass on failures from
1722 bfd_write_bigendian_4byte_int.
1723
36b4f6e7
L
17242002-03-14 H.J. Lu <hjl@gnu.org>
1725
1726 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1727 error to bfd_error_nonrepresentable_section for reinit_array
1728 section in DSO.
1729
a1aefc76
NC
17302002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1731
a181be0a
NC
1732 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1733 OR it in rather than replacing previously selected flags.
1734
a1aefc76
NC
1735 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1736 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1737
c119f9b8
AM
17382002-03-14 Alan Modra <amodra@bigpond.net.au>
1739
1740 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1741 (N): Use the above.
1742 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1743 ensure reloc size matches before calling elf_link_input_bfd.
1744 Add an assert to check reloc size when counting output relocs.
1745
c295a511
NC
17462002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1747
1748 * mmo.c (mmo_get_loc): Return NULL rather than false.
1749
9ce88e60
NC
17502002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1751
1752 * po/fr.po: Updated version.
1753
4ddafab0
AM
17542002-03-13 Alan Modra <amodra@bigpond.net.au>
1755
b74fa2cd
AM
1756 * archures.c (bfd_default_compatible): Test bits_per_word.
1757 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1758 bfd_default_compatible.
1759 * cpu-i370.c (i370_compatible): Likewise.
1760 * cpu-sparc.c (sparc_compatible): Likewise.
1761 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1762
40b829d4
AM
1763 * elflink.h: Formatting fixes.
1764 (elf_link_output_extsym): Merge undefined and undef weak cases.
1765
4ddafab0
AM
1766 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1767 when word size of input matches output word size.
1768
dd53c801
AJ
17692002-03-12 Andreas Jaeger <aj@suse.de>
1770
1771 * cpu-i386.c (i386_compatible): New. Use it instead of
1772 bfd_default_compatible.
1773
aa066ac8
L
17742002-03-07 H.J. Lu (hjl@gnu.org)
1775
1776 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1777 as the type for bfd_reloc_val.
1778
1bf42538
JL
17792002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1780
1781 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1782 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1783 (elf_hppa_final_link_relocate): Correct relocations for indirect
1784 references to local data through the DLT. Fix .opd creation for
1785 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1786 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1787 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1788 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1789 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1790 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1791 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1792
86eaf01e
JJ
17932002-03-05 Jakub Jelinek <jakub@redhat.com>
1794
1795 * merge.c (_bfd_merge_sections): Don't segfault if there
1796 is nothing to merge due to GC.
1797
c44233aa
AM
17982002-03-05 Alan Modra <amodra@bigpond.net.au>
1799
039cc25f
AM
1800 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1801 symbols that have been forced local.
1802
c44233aa
AM
1803 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1804 to output forced local syms for non-shared link.
1805 (elf_link_output_extsym): Tweak condition for calling backend
1806 adjust_dynamic_symbol so that previous behaviour is kept.
1807 Whitespace changes throughout file.
1808
25e27870
L
18092002-03-04 H.J. Lu <hjl@gnu.org>
1810
1811 * elf.c (bfd_section_from_shdr): Handle special sections,
1812 .init_array, .fini_array and .preinit_array.
1813 (elf_fake_sections): Likewise.
1814
1815 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1816 DT entry only if the section is in output for .init_array,
1817 .fini_array and .preinit_array. Complain about .preinit_array
1818 section in DSO.
1819 (elf_bfd_final_link): Warn zero size for .init_array,
1820 .fini_array and .preinit_array sections.
1821
1822 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1823 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1824 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1825 .preinit_array.
1826
bb2a49f2
AM
18272002-03-04 Alan Modra <amodra@bigpond.net.au>
1828
1829 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1830 * configure: Regenerate.
1831
38487e5e
TR
18322002-03-02 Tom Rix <trix@redhat.com>
1833
c44233aa
AM
1834 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1835 symbolic equiv.
38487e5e
TR
1836 * coff-rs6000.c (xcoff_howto_table): Same.
1837
30831527
RH
18382002-03-01 David Mosberger <davidm@hpl.hp.com>
1839
1840 * elflink.h (size_dynamic_sections): If section named
1841 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1842 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1843 ".init_array" and ".fini_array".
1844 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1845 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1846 DT_FINI_ARRAY.
1847
c8e5ddc8
AM
18482002-02-26 Andrew Macleod <amacleod@cygnus.com>
1849
1850 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1851 dynsyms.
1852
96e0dda4
AM
18532002-02-25 Alan Modra <amodra@bigpond.net.au>
1854
1c5b6bf8
AM
1855 * elf64-hppa.h: Update copyright date.
1856
96e0dda4
AM
1857 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1858 (ppc64_elf_relocate_section): Don't generate power4 style branch
1859 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1860
0fb19cbc
JJ
18612002-02-22 Jakub Jelinek <jakub@redhat.com>
1862
1863 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1864 last patch.
1865 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1866
c434dee6
AJ
18672002-02-21 Andreas Jaeger <aj@suse.de>
1868
1869 * elf64-x86-64.c: Major rework that introduces all recent changes
1870 to the x86-64 backend. Get a closer match to elf32-i386.
1871 (struct elf64_x86_64_dyn_relocs): Rename from
1872 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1873 all users.
1874 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1875 sections.
1876 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1877 remove casts, initialize new hash members.
1878 (create_got_section): New.
1879 (elf64_x86_64_create_dynamic_sections): New.
1880 (elf64_x86_64_copy_indirect_symbol): New.
1881 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1882 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1883 Reference count possible .plt and .got entries. Don't test input
1884 section SEC_READONLY here to try to avoid copy relocs, and keep
1885 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1886 DF_TEXTREL here. Delay setting of variables until needed. Cache
1887 pointer to "sreloc" section in elf_section_data. Tweak condition
1888 under which .got created. Report files with bad relocation
1889 section names.
1890 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1891 Reference count possible .plt entries. Don't deallocate .got and
1892 .relgot space here.
1893 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1894 do copy reloc processing for weakdefs. Remove redundant casts and
1895 aborts. Delay setting of vars until needed. Move creation of
1896 dynamic symbols and allocation of .plt and .rela.plt to
1897 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1898 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1899 (allocate_dynrelocs): New.
1900 (readonly_dynrelocs): New.
1901 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1902 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1903 Zero out the dynamic allocated content space.
1904 (elf64_x86_64_discard_copies): Removed.
1905 (elf64_x86_64_relocate_section): Make use of dynamic section
1906 short-cuts. Localise vars, and delay setting. Better error
1907 reporting, replace BFD_ASSERT with abort. Check
1908 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1909 regular object file and tread the weak definition as the normal
1910 one. Don't discard relocs for undefweak or undefined symbols and
1911 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1912 relocs.
1913 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1914 symbols that have been forced local. Use same test to decide if
1915 we can use a relative reloc for got as relocate_section. Expand
1916 SHN_UNDEF comment. Move expressions out of function calls.
1917 Replace BFD_ASSERT with abort.
1918 (bfd_elf64_bfd_final_link): Removed.
1919 (elf_backend_copy_indirect_symbol): Define.
1920
ff3a6ee3
TR
19212002-02-20 Tom Rix <trix@redhat.com>
1922
1923 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1924 (_bfd_xcoff_reloc_type_lookup): Use it.
1925 * coff64-rs6000.c (xcoff64_howto_table): Same.
1926 (xcoff64_reloc_type_lookup): Same.
c434dee6 1927
a68d41fb
AM
19282002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1929
1930 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1931 little endian.
1932
befc3abb
MS
19332002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1934
1935 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1936 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1937 * bfd-in2.h: Regenerate.
1938 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1939 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1940 with "s390:64-bit".
1941 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1942 (elf_s390_reloc_type_lookup): Likewise.
1943 (elf_s390_check_relocs): Likewise.
1944 (elf_s390_gc_sweep_hook): Likewise.
1945 (elf_s390_relocate_section): Likewise.
1946 (elf_s390_object_p): Use renamed architecture define.
1947 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1948
6eeeec9b
FCE
19492002-02-19 Frank Ch. Eigler <fche@redhat.com>
1950
1951 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1952
0bb2d96a
JJ
19532002-02-19 Jakub Jelinek <jakub@redhat.com>
1954
1955 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1956 absptr -> pcrel optimization for shared libs.
1957 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1958 library cannot be converted to pcrel.
1959 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1960 relative.
1961 * elf32-i386.c (elf_i386_relocate_section): If
1962 _bfd_elf_section_offset returned -2, skip, but make sure the
1963 relocation is installed.
1964 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1965 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1966 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1967 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1968 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1969 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1970 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1971 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1972 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1973 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1974 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1975 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1976 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1977 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1978 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1979 _bfd_elf_section_offset returning -2 the same way as -1.
1980 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1981 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1982 and BFD_ASSERT.
1983 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1984
69f284c7
TR
19852002-02-18 Tom Rix <trix@redhat.com>
1986
1987 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1988 (bfd_xcoff_size_dynamic_sections): Same.
1989 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1990 (bfd_xcoff_size_dynamic_sections): Same.
1991 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1992 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1993 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1994 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1995 * bfd-in2.h: Regenerate.
1996
82bd7b59
AM
19972002-02-18 Alan Modra <amodra@bigpond.net.au>
1998
1999 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2000 (struct ppc_link_hash_table): Add sfpr.
2001 (ppc64_elf_link_hash_table_create): Init it.
2002 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2003 .glink out to..
2004 (create_linkage_sections): ..here. Make .sfpr too.
2005 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2006 dynobj early.
2007 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2008 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2009 ._restf* functions, and create as needed.
2010 (func_desc_adjust): Only force_local for shared libs.
2011
ef1355e8
NC
20122002-02-18 David O'Brien <obrien@FreeBSD.org>
2013
2014 * configure.in: Bump version number post 2.12 branching.
2015 * configure: Regenerate.
2016
dfa36a69
HPN
20172002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2018
2019 * mmo.c: Correct and improve comments.
2020 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2021 zero-pad. Use input to fill up non-empty bfd buffer.
2022 (mmo_flush_chunk): New function.
2023 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2024 changed. Don't emit location specifier if VMA is same as
2025 *LAST_VMAP after omitting leading zero contents. Call
2026 mmo_flush_chunk before emitting location specifier.
2027 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2028 with mmo_write_loc_chunk calls.
2029 (mmo_internal_write_section): Call mmo_flush_chunk after
2030 mmo_write_chunk.
2031 (mmo_write_symbols_and_terminator): Move :Main to first position
2032 in symbol array. Add faked one if it does not exist if there are
2033 other symbols. Don't add it if there are no symbols at all. Move
2034 out test for value of :Main from symbol loop. Rename table
2035 fakemain to maintable and variable mainsym to fakemain.
2036
ccf00ab6
RH
20372002-02-15 Richard Henderson <rth@redhat.com>
2038
2039 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2040 section with no got matches any got. Simplify error generaion.
2041
88eaccc2
AM
20422002-02-15 Alan Modra <amodra@bigpond.net.au>
2043
fd96f80f
AM
2044 Support arbitrary length fill patterns.
2045 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2046 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2047 Call default_data_link_order.
2048 (default_fill_link_order): Delete.
2049 (default_data_link_order): New function.
2050 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2051 of bfd_fill_link_order with bfd_data_link_order.
2052 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2053 * elf64-mips.c (mips_elf64_final_link): Likewise.
2054
88eaccc2
AM
2055 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2056 Correct value returned in "end" for "0x<non-hex>".
2057
e2fd756b
NC
20582002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
2059
2060 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2061 (scan): Test against 'mach' field in info structure.
2062
edd29cf9
AM
20632002-02-14 Alan Modra <amodra@bigpond.net.au>
2064
2065 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2066
1e30956e 20672002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
2068
2069 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2070 EF_M68000.
2071
bf36db18
NC
20722002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
2073
2074 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
2075 non-zero physical addresses when adjusting the LMAs of new
2076 sections.
bf36db18 2077
189c6563
AM
20782002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2079
2080 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2081 from _bfd_elf_hppa_gen_reloc_type.
2082 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2083 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2084 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2085 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2086
e948afaf
AO
20872002-02-12 Alexandre Oliva <aoliva@redhat.com>
2088
2089 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2090 loading its contents if there's nothing to do in it.
2091
19397422
AM
20922002-02-12 Alan Modra <amodra@bigpond.net.au>
2093
0ad3a73b
AM
2094 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2095 64k boundary.
2096
19397422
AM
2097 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2098 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2099 (ppc64_elf_finish_dynamic_sections): Set values for them.
2100
51316059
MS
21012002-02-11 Michael Snyder <msnyder@redhat.com>
2102
2103 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2104 * elf.c (elfcore_grok_pstatus): Add prototype.
2105 (elfcore_grok_lwpstatus): Add prototype.
2106 (elfcore_write_lwpstatus): New function.
2107 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2108
518313c3
AO
21092002-02-11 Alexandre Oliva <aoliva@redhat.com>
2110
2111 * elf32-sh.c: Added missing prototypes.
2112 * elf32-sh64.c: Likewise.
2113 (sh_elf_align_loads): Mark unused args as such.
2114 * elf64-sh64.c: Added missing prototypes.
2115 (struct elf_sh64_link_hash_entry): Fix typo.
2116 (sh_elf64_relocate_section): Fix info argument passed to
2117 _bfd_elf_section_offset.
2118
2c73f9d8
AM
21192002-02-11 Alan Modra <amodra@bigpond.net.au>
2120
2121 * Makefile.am: "make dep-am".
2122 * Makefile.in: Regenerate.
2123 * aclocal.m4: Regenerate.
2124 * config.in: Regenerate.
2125 * configure: Regenerate.
2126
d426c6b0
DJ
21272002-02-10 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2130 variable warnings.
2131 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2132 comparison warning.
2133 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2134 cast warnings for the common case.
2135
e58ee0cd
HPN
21362002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2137
2138 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2139 vectors.
2140 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2141 vectors.
2142
7793f4d0
RH
21432002-02-09 Richard Henderson <rth@redhat.com>
2144
2145 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2146 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2147 (elf64_alpha_relocate_section): Likewise.
2148 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2149 * bfd-in2.h, libbfd.h: Rebuild.
2150
7e799044
HPN
21512002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2152
2153 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2154 that base-plus-offset reloc accounting is consistent.
2155 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2156 up to date for undefined symbols.
2157
027d73eb
EC
21582002-02-08 Eric Christopher <echristo@redhat.com>
2159
2160 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2161
2162 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2163 sections for the O32 ABI.
2164
517662d4
CD
21652002-02-08 Chris Demetriou <cgd@broadcom.com>
2166
2167 * elf32-arm.h: Fix formatting of _("...").
2168 * elf32-d10v.c: Likewise.
2169 * elf32-m68k.c: Likewise.
2170 * elf32-mips.c: Likewise.
2171
5e37cc46
NC
21722002-02-08 Ivan Guzvinec <ivang@opencores.org>
2173
2174 * coff-or32.c: Fix compile time warning messages.
2175
fbca6ad9
AO
21762002-02-08 Alexandre Oliva <aoliva@redhat.com>
2177
2178 Contribute sh64-elf.
2179 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2180 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2181 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2182 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2183 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2184 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2185 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2186 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2187 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2188 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2189 New relocs.
2190 * libbfd.h, bfd-in2.h: Rebuilt.
2191 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2192 (sh_reloc_map): Map them.
2193 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2194 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2195 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2196 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2197 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2198 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2199 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2200 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2201 datalabel_got_offset.
2202 (sh_elf_link_hash_newfunc): Initialize it.
2203 (sh_elf_relocate_section): Augment the scope of
2204 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2205 GOT and GOTOFF handling to new SHmedia relocation types. Support
2206 GOT_BIAS.
2207 (sh_elf_check_relocs): Likewise.
2208 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2209 PLT entries using movi_shori_putval. Support GOT_BIAS.
2210 (sh_elf_finish_dynamic_sections): Likewise.
2211 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2212 relocation, it's now done by the caller.
2213 (GOT_BIAS): New.
2214 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2215 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2216 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2217 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2218 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2219 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2220 sh64_elf64_hash_table): New.
2221 (sh_elf64_howto_table): Introduce new relocs.
2222 (sh_elf64_info_to_howto): Accept new PIC relocs.
2223 (sh_elf64_relocate_section): Augment the scope of
2224 seen_stt_datalabel. Support new PIC relocs.
2225 (sh_elf64_check_relocs): Support new PIC relocs.
2226 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2227 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2228 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2229 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2230 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2231 movi_shori_putval, movi_3shori_putval,
2232 sh64_elf64_create_dynamic_sections,
2233 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2234 sh64_elf64_size_dynamic_sections,
2235 sh64_elf64_finish_dynamic_symbol,
2236 sh64_elf64_finish_dynamic_sections): New.
2237 (elf_backend_create_dynamic-sections,
2238 bfd_elf64_bfd_link_hash_table_create,
2239 elf_backend_adjust_dynamic_symbol,
2240 elf_backend_size_dynamic_sections,
2241 elf_backend_finish_dynamic_symbol,
2242 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2243 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2244 elf_backend_got_header_size, elf_backend_plt_header_size):
2245 Define.
2246 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2247 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2248 match official numbers and names; moved unmaching ones to the
2249 range 0xf2-0xff.
2250 * elf32-sh64.c, elf64-sh64.c: Likewise.
2251 2001-03-12 DJ Delorie <dj@redhat.com>
2252 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2253 sections.
2254 2001-03-12 DJ Delorie <dj@redhat.com>
2255 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2256 be aligned.
2257 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2258 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2259 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2260 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2261 .cranges section with SEC_SORT_ENTRIES set.
2262 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2263 incoming sorted .cranges section.
2264 (sh64_bfd_elf_copy_private_section_data): New.
2265 (sh64_elf_final_write_processing): Only sort .cranges and modify
2266 start address if called by linker.
2267 2001-01-08 Ben Elliston <bje@redhat.com>
2268 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2269 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2270 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2271 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2272 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2273 line. Add comments before all entries.
2274 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2275 comment.
2276 (sh_elf64_reloc): Correct head comment.
2277 (sh_elf64_relocate_section): Correct spacing.
2278 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2279 instead call reloc_dangerous callback.
2280 <case R_SH_SHMEDIA_CODE>: New case.
2281 (sh_elf64_gc_mark_hook): Correct spacing.
2282 (sh_elf64_check_relocs): Ditto.
2283 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2284 New case.
2285 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2286 functions.
2287 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2288 clarify describing comment. Add comments before all entries.
2289 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2290 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2291 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2292 Sort .cranges section in final link. Prepare to set bit 0 on
2293 entry address.
2294 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2295 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2296 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2297 .cranges section.
2298 (sh64_backend_section_from_shdr): New, to recognize
2299 SHT_SH5_CR_SORTED on incoming .cranges section.
2300 (elf_backend_section_from_shdr): Define.
2301 (sh64_elf_final_write_processing): Sort outgoing .cranges
2302 section. (New, temporarily disabled:) Set bit 0 on entry address
2303 according to ISA type.
2304 (sh64_find_section_for_address): New.
2305 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2306 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2307 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2308 bfd_malloc, not xmalloc.
2309 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2310 global.
2311 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2312 temporarily disabled) setting bit 0 on entry address.
2313 (elf_backend_final_write_processing): Define.
2314 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2315 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2316 be a proper relocation for PTA and PTB rather than a marker.
2317 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2318 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2319 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2320 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2321 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2322 Zero src_mask.
2323 * elf64-sh64.c: Ditto.
2324 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2325 * elf32-sh64.c: Include opcodes/sh64-opc.h
2326 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2327 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2328 parameters. No unused parameters. Caller changed.
2329 <case R_SH_PT_16>: New case.
2330 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2331 * Makefile.in: Regenerate.
2332 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2333 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2334 all code sections.
2335 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2336 (sh64_elf_merge_private_data): Ditto.
2337 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2338 to access stored section flags.
2339 (sh64_elf_final_write_processing): Return immediately unless
2340 called by linker. Use sh64_elf_section_data (cranges) to get size
2341 of linker-generated cranges entries.
2342 (sh64_elf_copy_private_data): Add missing "return true".
2343 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2344 (sh_elf64_merge_private_data): Ditto.
2345 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2346 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2347 elf64-sh64.c:sh64_elf_fake_sections.
2348 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2349 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2350 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2351 (sh64_elf_final_write_processing): New.
2352 (elf_backend_final_write_processing): Define.
2353 (sh64_elf_fake_sections): Get header flags from tdata field.
2354 (sh64_elf_copy_private_data): Do not call
2355 sh64_elf_copy_private_data_internal, just copy e_flags field.
2356 (sh64_elf_merge_private_data): Do not call
2357 sh64_elf_copy_private_data_internal.
2358 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2359 Remove EF_SH64_ABI64, let ELF size make difference.
2360 Remove SH64-specific BFD section flag.
2361 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2362 containing SHmedia through elf_section_data (asect)->tdata
2363 non-zero, not using a BFD section flag.
2364 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2365 (sh64_elf_merge_private_data): Similar.
2366 (elf_backend_section_flags): Don't define.
2367 (sh64_elf_backend_section_flags): Delete.
2368 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2369 not EF_SH64_ABI64.
2370 (sh_elf64_merge_private_data): Similar.
2371 * section.c (Section flags definitions): Don't define
2372 SEC_SH_ISA_SHMEDIA.
2373 (bfd-in2.h): Regenerate.
2374 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2375 Make DataLabel references work with partial linking.
2376 * elf32-sh64.c: Fix formatting.
2377 (sh64_elf_link_output_symbol_hook): New.
2378 (elf_backend_link_output_symbol_hook): Define to
2379 sh64_elf_link_output_symbol_hook.
2380 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2381 undefined if partial linking. Adjust sanity check.
2382 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2383 (elf_backend_link_output_symbol_hook): Define to
2384 sh64_elf64_link_output_symbol_hook.
2385 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2386 undefined if partial linking. Adjust sanity check.
2387 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2388 Implement semantics for inter-file DataLabel references.
2389 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2390 (sh64_elf64_add_symbol_hook): New.
2391 (sh_elf64_relocate_section): If passing an indirect symbol with
2392 st_type STT_DATALABEL on the way to a symbol with st_other
2393 STO_SH5_ISA32, do not bitor 1 to the relocation.
2394 (elf_backend_add_symbol_hook): Define to
2395 sh64_elf64_add_symbol_hook.
2396 * elf64-sh32.c: Tweak comments.
2397 (DATALABEL_SUFFIX): Define.
2398 (sh64_elf_add_symbol_hook): New.
2399 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2400 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2401 symbol with st_type STT_DATALABEL on the way to a symbol with
2402 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2403 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2404 Pass through STT_DATALABEL.
2405 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2406 (elf_backend_get_symbol_type): Define.
2407 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2408 (elf_backend_get_symbol_type): Define.
2409 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2410 * elf32-sh64.c: Tweak comments.
2411 (sh64_elf_copy_private_data_internal): Add prototype.
2412 (bfd_elf32_bfd_set_private_flags): Define.
2413 (sh64_elf_copy_private_data_internal): Compare machine name, not
2414 textual BFD target name, to check whether to copy section flag
2415 SHF_SH5_ISA32.
2416 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2417 Tweak section-contents-type-mismatch message.
2418 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2419 Validize reloc-types.
2420 * elf64-sh64.c: New file.
2421 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2422 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2423 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2424 Regenerate dependencies.
2425 * Makefile.in: Regenerate.
2426 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2427 bfd_elf64_sh64l_vec.
2428 * configure.in: Handle bfd_elf64_sh64_vec and
2429 bfd_elf64_sh64l_vec.
2430 * configure: Regenerate.
2431 * po/POTFILES.in: Regenerate.
2432 * po/bfd.pot: Regenerate.
2433 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2434 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2435 anything else but EF_SH64 and EF_SH64_ABI64.
2436 (sh64_elf_merge_private_data): Emit error for anything else but
2437 EF_SH64 and EF_SH64_ABI64.
2438 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2439 from targ_selvecs.
2440 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2441 bfd_elf32_sh64l_vec as a temporary measure.
2442 * configure: Regenerate.
2443 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2444 * cpu-sh.c (arch_info_struct): Include sh5 item
2445 unconditionalized.
2446 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2447 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2448 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2449 * elf32-sh64.c: Tweak comments.
2450 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2451 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2452 (sh64_elf_copy_private_data_internal): Wrap long line.
2453 (sh64_elf_merge_private_data): Rewrite to allow objects from
2454 SH64 subsets to be linked together.
2455 (INCLUDE_SHMEDIA): Define.
2456 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2457 Parenthesize plus-expression inside or-expression.
2458 <global symbol>: Ditto.
2459 (sh_elf_set_mach_from_flags): Remove code refusing
2460 deleted EF_SH64_32BIT_ABI flag.
2461 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2462 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2463 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2464 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2465 (sh_elf_relocate_section) <local symbol>: Or 1 in
2466 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2467 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2468 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2469 relocation.
2470 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2471 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2472 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2473 Regenerate dependencies.
2474 * Makefile.in: Regenerate.
2475 * archures.c: Add bfd_mach_sh5.
2476 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2477 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2478 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2479 * configure: Regenerate.
2480 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2481 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2482 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2483 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2484 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2485 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2486 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2487 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2488 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2489 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2490 in item for SH5.
2491 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2492 for SHmedia relocs.
2493 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2494 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2495 shmedia_prepare_reloc, goto final_link_relocate if it returns
2496 non-zero, else fail as before.
2497 (sh_elf_set_mach_from_flags): Provide function only if not defined
2498 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2499 (sh_elf_set_private_flags): Provide function only if not defined
2500 as a macro.
2501 (sh_elf_copy_private_data): Similar.
2502 (sh_elf_merge_private_data): Similar.
2503 * section.c (SEC_SH_ISA_SHMEDIA): New.
2504 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2505 * elf32-sh64.c: New file.
2506 * libbfd.h: Regenerate.
2507 * bfd-in2.h: Regenerate.
2508 * po/POTFILES.in: Regenerate.
2509 * po/bfd.pot: Regenerate.
2510 * bfd-in2.h: Regenerate.
2511 * libbfd.h: Regenerate.
2512
e108f470
DJ
25132002-02-07 Daniel Jacobowitz <drow@mvista.com>
2514
2515 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2516 been included, not drag it in.
2517 * bfd-in2.h: Regenerate.
2518
259d18a3
L
25192002-02-06 H.J. Lu (hjl@gnu.org)
2520
2521 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2522 the mach and ISA fields if necessary.
2523
f13b834e
NC
25242002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2525
2526 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2527 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2528 be sure exactly which architecture this represents.
2529
82f6addb
NC
25302002-02-05 Nick Clifton <nickc@redhat.com>
2531
2532 * po/tr.po: Updated translation.
2533
899f54f5
AM
25342002-02-05 Alan Modra <amodra@bigpond.net.au>
2535
2536 From Jimi X <jimix@watson.ibm.com>
2537 * archures (bfd_mach_ppc64): Define.
2538 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2539 (bfd_powerpc_arch): Define.
2540 * bfd-in2.h: Regenerate.
2541 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2542 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2543 (bfd_powerpc_archs): Add default powerpc64 arch.
2544
248866a8
AM
25452002-02-05 Alan Modra <amodra@bigpond.net.au>
2546
2547 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2548 against section syms in readonly sections. Don't do the global
2549 sym check if we find one.
2550 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2551 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 2552 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
2553 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2554 (elf_s390_grok_prstatus): Add missing prototype.
2555
4fa5c2a8
HPN
25562002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2557
2558 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2559 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2560 Call bfd_get_section_by_name only once. Initialize
2561 bpodata->n_bpo_relocs_this_section.
2562 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2563 referring to DSOs.
2564 (bpo_reloc_request_sort_fn): Don't use difference of values as
2565 return-value.
2566
537c972e
DB
25672002-02-02 David O'Brien <obrien@FreeBSD>
2568
2569 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2570 version 4.5 and later the same as 5-CURRENT.
2571 * configure: Re-generate.
2572
006336b8
JT
25732002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2574
2575 * config.bfd (hppa*-*-netbsd*): New target.
2576
6c571f00
PT
25772002-01-31 Philipp Thomas <pthomas@suse.de>
2578
19397422
AM
2579 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2580 to front of message. Unify messages with elf32-arm.h. Use
2581 commas where neccessary.
2582 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2583 ERROR in messages. Unify messages with coff-arm.c. Correct
2584 VFP/FPA error message.
2585 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2586 APCS-32 for translation.
6c571f00 2587
930b4cb2
HPN
25882002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2589
2590 Perform on-demand global register allocation from
2591 R_MMIX_BASE_PLUS_OFFSET relocs.
2592 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2593 bpo_reloc_request, struct bpo_greg_section_info): New.
2594 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2595 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2596 _bfd_mmix_check_all_relocs,
2597 _bfd_mmix_prepare_linker_allocated_gregs,
2598 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2599 (elf_mmix_howto_table): Correct src_mask for most relocs.
2600 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2601 case.
2602 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2603 case. Fix typo in comment. New label do_mmix_reloc.
2604 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2605 store first object file with a base-plus-offset reloc. Call
2606 mmix_elf_check_common_relocs for the part common with mmo.
2607 (mmix_elf_final_link): Write out linker-allocated register
2608 contents section.
2609 (elf_backend_gc_sweep_hook): Define.
2610 (bfd_elf64_bfd_relax_section): Define.
2611
2612 * mmo.c: Don't include <ctype.h>
2613 (mmo_init): Correct init-once logic.
2614
3e36d993
TR
26152002-02-01 Tom Rix <trix@redhat.com>
2616
2617 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2618
ba323545
AM
26192002-02-01 Alan Modra <amodra@bigpond.net.au>
2620
2621 * Makefile.am: Run "make dep-am"
2622 * Makefile.in: Regenerate.
2623
012884d6
DB
26242002-01-31 David O'Brien <obrien@FreeBSD>
2625
2626 * configure.in: Recognize the differences in core files from FreeBSD
2627 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2628 5-CURRENT.
2629 * configure: Regenerate.
2630
3b16e843
NC
26312002-01-31 Ivan Guzvinec <ivang@opencores.org>
2632
2633 * coff-or32.c: New file.
2634 * cpu-or32.c: New file.
2635 * elf32-or32.c: New file.
2636 * archures.c: Add support for or32.
2637 * targets.c: Add support for or32.
2638 * bfd-in2.h: Regenerate.
7dc0ab31 2639 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
2640 coff_write_object_contents): Add support for or32.
2641 * config.bfd: Add target.
2642 * configure.in: Add support for or32.
2643 * configure: Regenerate.
2644 * Makefile.am: Add support for or32.
2645 * Makefile.in: Regenerate.
3b16e843
NC
2646 * po/SRC-POTFILES.in: Add or32 files.
2647 * po/bfd.pot: Regenerate.
7dc0ab31 2648
caf8ca8e
NC
26492002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2650 Don Lindsay <lindsayd@cisco.com>
2651
2652 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2653 false' with a return of a bfd_reloc_ error code.
2654
e5dfef09
HPN
26552002-01-31 Hans-Peter Nilsson <hp@axis.com>
2656
2657 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2658 unexport unreferenced symbols when --export-dynamic. Call
2659 _bfd_elf_strtab_delref when unexporting.
2660
4e4770d0
DJ
26612002-01-30 Daniel Jacobowitz <drow@mvista.com>
2662
2663 * bfd-in.h: Include <stdbool.h> if it is available.
2664 * bfd-in2.h: Regenerated.
2665
e1fa50e7
AM
26662002-01-31 Alan Modra <amodra@bigpond.net.au>
2667
2668 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2669 not go via the plt.
2670
b5f79c76
NC
26712002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2672
b5f79c76
NC
2673 * archures.c: Tidy up formatting of embedded comments.
2674 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 2675 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
2676 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2677 * section.c: Tidy up formatting of embedded comments.
2678 * syms.c: Tidy up formatting of embedded comments.
2679 * targets.c: Tidy up formatting of embedded comments.
2680
2681 * bfd-in2.h: Regenerate.
2682
ca09e32b
NC
26832002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2684
2685 * vms-tir.c (cmd_name): New function.
2686 (tir_cmd_name): New function.
2687 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2688 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2689 Fix formatting.
7dc0ab31 2690
ca09e32b
NC
2691 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2692 translation.
2693 (pe_print_pdata): Rearrange message to aid in translation.
2694
2695 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2696 translation.
2697
2698 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2699
2700 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2701
2702 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2703 message to aid in translation.
2704
2705 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2706 to aid in translation.
2707
2708 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2709
7dc0ab31 27102002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
2711
2712 * coff-arm.c, elf32-elf.h: Unify messages.
2713
05f64ac6
NC
27142002-01-30 Nick Clifton <nickc@redhat.com>
2715
2716 * po/sv.po: Updated translation.
2717
f5a3e38a
NC
27182002-01-30 Philipp Thomas <pthomas@suse.de>
2719
2720 * dwarf2.c (read_abbrev): Use full section name in error message.
2721 (decode_line_info): Likewise.
661a3fd4
NC
2722
2723 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2724 message.
2725
d926e03d
AM
27262002-01-30 Alan Modra <amodra@bigpond.net.au>
2727
2728 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2729 descriptor symbols for undefined function code syms. Clear
2730 ELF_LINK_NON_ELF so that they can stay weak.
2731
030d18fb 27322002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 2733 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
2734
2735 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2736 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2737 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2738 generation.
2739 * bfd-in2.h: Regenerate.
2740
fcc76bea
CD
27412002-01-29 Chris Demetriou <cgd@broadcom.com>
2742
2743 * elf32-mips.c: Add additional comments about HI16 relocation
2744 processing.
2745 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2746 pc-relative relocations. (Reverts change made on 2001-10-31.)
2747 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2748 for pc-relative relocations.
2749 (mips_elf_calculate_relocation): Add a comment about a kludge
2750 in the R_MIPS_GNU_REL_HI16 handling.
2751 (_bfd_mips_elf_relocate_section): Implement that kludge;
2752 adjust pc-relative HI16 relocation for difference in HI16 and
2753 LO16 addresses, since it can't easily be done in
2754 mips_elf_calculate_relocation.
2755
f9cd9119
MS
27562002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2757
2758 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2759 relocations with PC32 relocations for undefined or weak symbols.
2760 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2761 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2762
702248bb
JT
27632002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2764
2765 * elfcore.h (elf_core_file_p): Improve comment for last change.
2766
4867be41
DJ
27672002-01-27 Daniel Jacobowitz <drow@mvista.com>
2768
2769 * configure: Regenerated.
2770
a94cef6a
JT
27712002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2772
2773 * elfcore.h (elf_core_file_p): Set the machine architecture
2774 before processing the program headers.
2775
7562a296
HPN
27762002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2777
966abd70
HPN
2778 * configure.in <64-bit configuration>: If using gcc, check and
2779 emit error for egcs-1.1.2.
2780 * configure: Regenerate.
2781
e8eab623
NC
27822002-01-26 Egor Duda <deo@logos-m.ru>
2783
2784 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2785 as possible to avoid stack corruption.
2786
73896efb
RH
27872002-01-26 Richard Henderson <rth@redhat.com>
2788
2789 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2790 for non-allocated sections.
2791
27922002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
2793
2794 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2795 prstat.pr_reg even if it is a struct.
2796
73896efb 27972002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
2798
2799 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2800
3d66c4f7
NC
28012002-01-25 Philipp Thomas <pthomas@suse.de>
2802
2803 * coffgen.c (coff_print_symbol): Don't mark info message
2804 for translation.
2805
9460ecda
NC
28062002-01-25 Nick Clifton <nickc@redhat.com>
2807
2808 * po/fr.po: Updated translation.
2809 * po/es.po: Updated translation.
2810
cc9ff76a
AM
28112002-01-25 Philipp Thomas <pthomas@suse.de>
2812
2813 * coff-alpha.c (alpha_relocate_section): Unify warning message
2814 for GP relative relocations without GP defined.
2815 * coff-mips.c (mips_relocate_section): Likewise.
2816
c68836a9
AM
28172002-01-25 Alan Modra <amodra@bigpond.net.au>
2818
2819 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2820 unsigned overflow when new_offset < old_offset.
2821
e8eab623 28222002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
2823
2824 * bfd.c (_bfd_abort): Fix typo.
2825
8ba89f17
RH
28262002-01-23 Richard Henderson <rth@redhat.com>
2827
2828 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2829 plt entries for undefweak symbols.
2830
c6953948
NC
28312002-01-23 Steve Ellcey <sje@cup.hp.com>
2832
2833 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2834 DEFAULT_VECTOR.
2835 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2836 (bfd_elf32_h8300_vec): Ditto.
2837
41bd81ab
AM
28382002-01-23 Alan Modra <amodra@bigpond.net.au>
2839
2840 * elf64-ppc.c: Remove stale part of ABI comment.
2841 (NO_OPD_RELOCS): Define.
2842 (ppc64_elf_check_relocs): Use it.
2843 (ppc64_elf_relocate_section): Here too.
2844 (build_one_stub): Don't point function syms at the stub. Instead,
2845 hijack plt.offset.
2846 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2847 really go to the stub. Make all dynamic relocs in opd against
2848 locals.
2849 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2850 plt.offset.
2851
f304919d
RH
28522002-01-22 Richard Henderson <rth@redhat.com>
2853
2854 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2855
c0ef99a7
AM
28562002-01-22 Alan Modra <amodra@bigpond.net.au>
2857
60ee0d4a
AM
2858 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2859 TOC_BASE_OFF adjustment.
2860
c0ef99a7
AM
2861 * Makefile.am: Run "make dep-am".
2862 * Makefile.in: Regenerate.
2863 * po/SRC-POTFILES.in: Regenerate.
2864
64328b46
AM
28652002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2866
2867 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2868 host defines.
2869
59953665 28702002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
2871
2872 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2873 Check for and emit error if sgot is NULL at this point.
2874
9596feea
JT
28752002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2876
2877 * config.bfd (ia64*-*-netbsd*): New target.
2878
7b45c6e1
AM
28792002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2880
2881 * som.c (som_write_space_strings): Comment typo fix.
2882
e5094212
AM
28832002-01-21 Alan Modra <amodra@bigpond.net.au>
2884
e86ce104
AM
2885 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2886 is_func_descriptor fields.
2887 (link_hash_newfunc): Init them.
2888 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2889 dot are candidates for plt entries. When processing .opd relocs,
2890 set function descriptor strings to point inside function code
2891 string, and set new ppc_link_hash_entry fields.
2892 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2893 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2894 function descriptors. It's now done in..
2895 (func_desc_adjust): New.
2896 (ppc64_elf_func_desc_adjust): New.
2897 (define elf_backend_always_size_sections): Define.
2898 (ppc64_elf_hide_symbol): New.
2899 (define elf_backend_hide_symbol): Define.
2900 (allocate_dynrelocs): Remove code looking up function descriptors
2901 as that has been done earlier.
2902 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2903 table.
2904 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2905 up function descriptor.
2906 (build_one_stub): Look up the function code sym. Check for
2907 invalid plt offsets.
2908 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2909 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2910
e5094212
AM
2911 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2912 boolean param.
2913 (_bfd_elf_link_hash_hide_symbol): Likewise.
2914 * elflink.h (elf_link_add_object_symbols): Adjust call to
2915 elf_backend_hide_symbol.
2916 (elf_fix_symbol_flags): Likewise.
2917 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2918 than bfd_alloc.
2919 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2920 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2921 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2922 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2923 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2924 and adjust to suit.
2925 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2926 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2927 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2928
40b8271b
AM
29292002-01-18 Alan Modra <amodra@bigpond.net.au>
2930
2931 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2932 dynamic function descriptor symbol, not the associated function
2933 symbol.
2934
55baa95b
EC
29352002-01-17 Eric Christopher <echristo@redhat.com>
2936
2937 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2938
328577ad
NC
29392002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2940
2941 * po/bfd.pot: Regenerate.
2942 * po/fr.po: Regenerate.
2943
af746e92
AM
29442002-01-17 Alan Modra <amodra@bigpond.net.au>
2945
2946 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2947 Remove "Elf_Internal_Shdr *" param.
2948 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2949 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2950 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2951 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2952 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2953 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2954 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2955 function to override special sections. Remove hdr arg from
2956 backend call, and don't loop.
2957
175e9962
EC
29582002-01-16 Eric Christopher <echristo@redhat.com>
2959
2960 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2961 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2962 relocations requiring gp0 and gp.
2963
96a846ea
RE
29642002-01-16 Richard Earnshaw <rearnsha@arm.com>
2965
175e9962 2966 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
2967 EF_ARM_VFP_FLOAT.
2968 (elf32_arm_print_private_bfd_data): Likewise.
2969
af3ae48d
NC
29702002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2971
2972 * po/tr.po: Import new version.
2973
10ed1bba
AM
29742002-01-16 Alan Modra <amodra@bigpond.net.au>
2975
2976 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2977 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2978 (ORI_R0_R0_0): Correct.
2979
5d1634d7
AM
29802002-01-16 Alan Modra <amodra@bigpond.net.au>
2981
2982 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2983 when plt_not_loaded.
2984 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2985 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2986 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2987 (ppc64_elf_glink_code): Delete.
2988 (PPC64_ELF_GLINK_SIZE): Delete.
2989 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2990 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2991 ORI_R0_R0_0): Define.
2992 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2993 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2994 (ppc64_elf_link_hash_table_create): Init them.
2995 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2996 Don't copy to shared lib.
2997 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2998 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2999 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3000 room for .stub and .glink code.
3001 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3002 DT_PPC64_GLINK.
3003 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3004 bfd_elf64_bfd_final_link.
3005 (bfd_elf64_bfd_final_link): Don't define.
3006 (ppc64_elf_size_stubs): New.
3007 (build_plt_stub): New.
3008 (build_one_stub): New.
3009 (ppc64_elf_build_stubs): New.
3010 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3011 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3012 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3013 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3014 case output sections not separate. Adjust DT_RELASZ to not
3015 include plt relocs. Set reserved got entry. Set got and plt
3016 entry size.
3017 (elf_backend_got_header_size): Set to 8.
3018 * elf64-ppc.h: New file.
3019
c601ffdb
AM
30202002-01-16 Alan Modra <amodra@bigpond.net.au>
3021
3022 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3023 sections, use bfd_section_list_remove.
3024 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3025 * elflink.h (elf_link_add_object_symbols): When removing all
3026 sections, use bfd_section_list_clear.
3027
8fb4cb7f
NC
30282002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3029
3030 * po/sv.po: New file: Swedish translation.
3031 * configure.in (ALL_LINGUAS): Add sv.
3032 * configure: Regenerate.
3033
d3c456e9
JJ
30342002-01-15 Jakub Jelinek <jakub@redhat.com>
3035
3036 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3037 * elf.c (merge_sections_remove_hook): New function.
3038 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3039 _bfd_merge_sections.
3040 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3041 * libbfd.h: Rebuilt.
3042 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3043 Call remove_hook if a SEC_EXCLUDE section is encountered.
3044
1f7fd478
NC
30452002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3046
3047 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3048 (xstormy16_reloc_map): Initialise new field with correct howto
3049 table.
3050 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3051 howto entry.
3052
b87011e9
MS
30532002-01-10 Michael Snyder <msnyder@redhat.com>
3054
3055 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3056 (elfcore_write_pstatus): Use long instead of pid_t;
3057 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3058
175e9962 30592002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
3060
3061 * elf.c: Update copyright years.
3062 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3063 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3064
7c76fa91
MS
30652002-01-08 Michael Snyder <msnyder@redhat.com>
3066
3067 Add capability to write corefile note sections, for gdb.
3068 * elf.c (elfcore_write_note): New function.
3069 (elfcore_write_prpsinfo): New function.
3070 (elfcore_write_prstatus): New function.
3071 (elfcore_write_pstatus): New function.
3072 (elfcore_write_prfpreg): New function.
3073 (elfcore_write_prxfpreg): New function.
97996af6 3074 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 3075
e1fddb6b
AO
30762002-01-08 Alexandre Oliva <aoliva@redhat.com>
3077
3078 * elf.c (elf_fake_sections): Propagate errors from
3079 elf_backend_fake_section.
3080
8d05742f
JT
30812002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3082
3083 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3084 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3085 (elf32-sh-nbsd.lo): New rule.
3086 * Makefile.in: Regenerate.
3087 * config.bfd (sh*le-*-netbsdelf*): New target.
3088 (sh*-*-netbsdelf*): New target.
3089 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3090 (bfd_elf32_shnbsd_vec): New vector.
3091 (bfd_elf32_shlnbsd_vec): New vector.
3092 * configure: Regenerate.
3093 * elf32-sh-nbsd.c: New file.
3094 * targets.c: Update copyright years.
175e9962 3095 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
3096 bfd_elf32_shnbsd_vec.
3097
1dba4cb4
AH
30982002-01-07 Aldy Hernandez <aldyh@redhat.com>
3099
3100 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3101
47b22aef
GK
31022002-01-07 Geoffrey Keating <geoffk@redhat.com>
3103
3104 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3105 of a symbol in a section that will be deleted.
3106
be2d1673
NC
31072002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3108
3109 * po/es.po: New file: Spanish translation.
3110 * configure.in (ALL_LINGUAS): Add es.
3111 * configure: Regenerate.
3112
d9cf1b54
AM
31132002-01-06 Steve Ellcey <sje@cup.hp.com>
3114
3115 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3116 argument so we can handle HP-UX specially.
3117 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3118 (elfNN_hpux_backend_section_from_bfd_section): New for support
3119 of SHN_IA_64_ANSI_COMMON.
3120 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3121 (is_unwind_section_name): Add special HP-UX support.
3122 (elfNN_ia64_section_from_shdr): Add support for more sections.
3123 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3124 add support for more sections.
3125 (elfNN_ia64_additional_program_headers): Modify
3126 is_unwind_section_name call.
3127 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3128 only one unwind section in segment.
3129
3f3c5c34
AM
31302002-01-06 Alan Modra <amodra@bigpond.net.au>
3131
3132 * syms.c (_bfd_generic_make_empty_symbol): New function.
3133 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3134 _bfd_generic_make_empty_symbol.
3135 * libbfd.h: Regenerate.
3136 * bfd-in2.h: Regenerate.
3137 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3138 (hppabsd_core_get_symtab_upper_bound): Don't define.
3139 (hppabsd_core_get_symtab): Likewise.
3140 (hppabsd_core_print_symbol): Likewise.
3141 (hppabsd_core_get_symbol_info): Likewise.
3142 (hppabsd_core_bfd_is_local_label_name): Likewise.
3143 (hppabsd_core_get_lineno): Likewise.
3144 (hppabsd_core_find_nearest_line): Likewise.
3145 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3146 (hppabsd_core_read_minisymbols): Likewise.
3147 (hppabsd_core_minisymbol_to_symbol): Likewise.
3148 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3149 Formatting fixes.
3150 * hpux-core.c: Similarly.
3151 * irix-core.c: Similarly.
3152 * osf-core.c: Similarly.
3153 * sco5-core.c: Similarly.
3154 * binary.c (binary_make_empty_symbol): Remove function, define as
3155 _bfd_generic_make_empty_symbol.
3156 * ihex.c (ihex_make_empty_symbol): Likewise.
3157 * mmo.c (mmo_make_empty_symbol): Likewise.
3158 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3159 * srec.c (srec_make_empty_symbol): Likewise.
3160 * versados.c (versados_make_empty_symbol): Likewise.
3161 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3162 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3163 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3164 rather than _bfd_vms_make_empty_symbol.
3165 * vms-misc.c (new_symbol): Likewise.
3166
3f0a7f7f
AM
31672002-01-05 Alan Modra <amodra@bigpond.net.au>
3168
9e7b37b3
AM
3169 * section.c (bfd_section_init): Remove unnecessary initialisations.
3170 (bfd_section_list_clear): New function.
3171 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3172 (_bfd_strip_section_from_output): Use them.
3173 * coffcode.h (coff_set_alignment_hook): Likewise.
3174 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3175 * elf64-mips.c (mips_elf64_final_link): Likewise.
3176 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3177 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3178 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3179 * bfd-in2.h: Regenerate.
3180
3181 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3182 rather than doing our own section handling. Clean up after errors
3183 with bfd_release and bfd_section_list_clear. Handle unexpected
3184 flags.
3185 * aoutf1.h (sunos4_core_file_p): Likewise.
3186 * aix386-core.c (aix386_core_file_p): Likewise.
3187 * cisco-core.c (cisco_core_file_validate): Likewise.
3188 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3189 * trad-core.c (trad_unix_core_file_p): Likewise.
3190
3191 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3192 with bfd_release and bfd_section_list_clear.
3193 * hpux-core.c (hpux_core_core_file_p): Likewise.
3194 * irix-core.c (irix_core_core_file_p): Likewise.
3195 * lynx-core.c (lynx_core_file_p): Likewise.
3196 * osf-core.c (osf_core_core_file_p): Likewise.
3197 * rs6000-core.c (rs6000coff_core_p): Likewise.
3198 * sco5-core.c (sco5_core_file_p): Likewise.
3199
3f0a7f7f
AM
3200 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3201 sign extension adjustments without conditionals.
3202
a3aa38ee
JJ
32032002-01-04 Jakub Jelinek <jakub@redhat.com>
3204
3205 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3206 CIE at .eh_frame start is removed due to no FDEs referencing it.
3207
8a8b2d4b
AJ
32082002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3209
3210 * config.bfd (x86_64-*-netbsd*): New target.
3211 * configure.in (x86_64-*-netbsd*): Set COREFILE
3212 to netbsd-core.lo.
3213 * configure: Regenerated.
3214
04b5af89
TR
32152002-01-03 Tom Rix <trix@redhat.com>
3216
3217 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3218 for recent bfd_make_section_anyway change.
3219
51c5503b
NC
32202002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3221
3222 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3223 R_ARM_THM_PC11 reloc.
3224
07f7c046
NC
32252002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3226
3227 * configure.in (LINGUAS): Add ja.
3228 * configure: Regenerate.
3229 * po/ja.po: Import from translation project's web site.
3230
5eefb65f
NC
32312002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3232
3233 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3234 messages to ease translation into other languages.
3235
39e90f10 3236For older changes see ChangeLog-0001
56882138
AM
3237\f
3238Local Variables:
3239mode: change-log
3240left-margin: 8
3241fill-column: 74
3242version-control: never
3243End:
This page took 0.222478 seconds and 4 git commands to generate.