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