2001-10-22 H.J. Lu <hjl@gnu.org>
[binutils-gdb.git] / bfd / ChangeLog
1 2001-10-22 H.J. Lu <hjl@gnu.org>
2
3 * configure.in (WIN32LIBADD): Use -L../libiberty for
4 mips*-*-linux*.
5 * configure: Rebuild.
6
7 2001-10-21 H.J. Lu <hjl@gnu.org>
8
9 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
10 if shared library is enabled only for Linux hosts.
11 * configure: Rebuild.
12
13 2001-10-21 H.J. Lu <hjl@gnu.org>
14
15 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
16 ../libiberty/Makefile instead of $enable_shared.
17 * configure: Rebuild.
18
19 2001-10-21 H.J. Lu <hjl@gnu.org>
20
21 * elf32-cris.c (cris_reloc_type_lookup): Use int for index.
22
23 2001-10-20 H.J. Lu <hjl@gnu.org>
24
25 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
26 if shared library is enabled.
27 * configure: Rebuild.
28
29 2001-10-20 H.J. Lu <hjl@gnu.org>
30
31 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
32
33 2001-10-19 H.J. Lu <hjl@gnu.org>
34
35 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
36 size is empty.
37
38 2001-10-18 H.J. Lu <hjl@gnu.org>
39
40 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
41 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
42
43 2001-10-18 Jakub Jelinek <jakub@redhat.com>
44
45 * section.c (_bfd_strip_section_from_output): Don't count
46 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
47
48 2001-10-17 Alan Modra <amodra@bigpond.net.au>
49
50 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
51 Elf_Internal_Shdr.contents now that it's no longer a PTR.
52 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
53 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
54 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
55 * elf32-sh.c (sh_elf_relax_section): Likewise.
56 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
57 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
58 * elf.c (setup_group): Warning fixes.
59 * elflink.h (elf_link_sort_relocs): Likewise.
60 * pdp11.c (slurp_reloc_table): Likewise.
61
62 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
63
64 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
65 casts.
66
67 2001-10-15 H.J. Lu <hjl@gnu.org>
68
69 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
70 for relocations against discarded link-once section.
71
72 2001-10-15 Alan Modra <amodra@bigpond.net.au>
73
74 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
75 bfd_reloc_outofrange and similar errors.
76
77 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
78 rather than ind->weakdef.
79 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
80 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
81 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
82 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
83 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
84
85 2001-10-15 Alan Modra <amodra@bigpond.net.au>
86 H.J. Lu <hjl@gnu.org>
87
88 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
89 counts for aliases instead of aborting.
90 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
91 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
92
93 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
94 to -1 for non-function symbols.
95 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
96 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
97 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
98 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
99 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
100 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
101 plt.offset instead of plt.refcount when setting to -1.
102
103 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
104
105 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
106 like R_ARM_PC24. Include reloc number in error message about
107 unresolvable relocs.
108
109 2001-10-10 Jakub Jelinek <jakub@redhat.com>
110
111 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
112 relocations against the same symbol in .rel{,a}.dyn section.
113
114 2001-10-10 Kazu Hirata <kazu@hxi.com>
115
116 * aout-encap.c: Fix comment typos.
117 * aoutx.h: Likewise.
118 * archive.c: Likewise.
119 * bout.c: Likewise.
120 * coff64-rs6000.c: Likewise.
121 * coffcode.h: Likewise.
122 * coffgen.c: Likewise.
123 * cofflink.c: Likewise.
124 * coff-mips.c: Likewise.
125 * ecoff.c: Likewise.
126 * elf32-m32r.c: Likewise.
127 * libcoff-in.h: Likewise.
128 * libecoff.h: Likewise.
129 * libxcoff.h: Likewise.
130 * nlm32-i386.c: Likewise.
131 * pdp11.c: Likewise.
132 * section.c: Likewise.
133 * som.c: Likewise.
134 * som.h: Likewise.
135 * bfd-in2.h: Regenerate.
136 * libcoff.h: Likewise.
137
138 2001-10-10 Alan Modra <amodra@bigpond.net.au>
139
140 * elf.c (elf_map_symbols): Don't create new section symbols; Use
141 existing section syms. Update comments.
142 (copy_private_bfd_data): Formatting fixes.
143 (elfcore_grok_win32pstatus): Likewise.
144 (swap_out_syms): Likewise. Remove unnecessary level of braces.
145
146 2001-10-09 Alan Modra <amodra@bigpond.net.au>
147
148 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
149 "group_name".
150 (elf_group_name): Define.
151 (elf_next_in_group): Define.
152 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
153 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
154 first member section; Instead use elf_next_in_group.
155 (bfd_section_from_shdr): Likewise.
156 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
157
158 2001-10-09 Alan Modra <amodra@bigpond.net.au>
159
160 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
161 "next_in_group". Fix gp and gp_size comments.
162 * elf.c (union elf_internal_group): New.
163 (setup_group): New function.
164 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
165 Call setup_group for SHF_GROUP sections.
166 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
167 (elf_fake_sections): Set header type for SEC_GROUP, and header
168 flags for sections in a group.
169 (set_group_contents): New function.
170 (_bfd_elf_compute_section_file_positions): Call it.
171 (assign_section_numbers): Set sh_link for SHT_GROUP.
172
173 * elflink.h (gc_mark_hook): Handle section groups.
174 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
175 * section.c (SEC_GROUP): Define.
176 (struct sec): Comment fixes.
177 * bfd-in2.h: Regenerate.
178
179 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
180 out of function args.
181 (_bfd_elf_canonicalize_reloc): Similarly.
182 (_bfd_elf_get_symtab): Here too.
183 (_bfd_elf_canonicalize_dynamic_symtab): And here.
184 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
185 bfd_bread, and remove unnecessary cast.
186
187 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
188
189 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
190
191 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
192
193 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
194 compilation unit.
195
196 2001-10-06 Alan Modra <amodra@bigpond.net.au>
197
198 * bfd.c (bfd_assert): Report bfd version.
199 (_bfd_abort): Likewise.
200
201 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
202 section sym values. Instead replace any relocs against them with
203 relocs against STN_UNDEF, which has a zero value.
204
205 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
206 relocs.
207
208 2001-10-05 Jeff Law <law@redhat.com>
209
210 * som.h (som_exec_data): New field "version_id".
211 * som.c (som_object_setup): Record the version_id if it
212 exists.
213 (som_prep_headers): Do not initialize version_id here.
214 (som_finish_writing): Initialize version_id here.
215
216 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
217
218 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
219 according to the MIPS/SGI ELF64 ABI Draft.
220 (mips_elf_sort_hash_table): Typo.
221
222 2001-10-04 Alan Modra <amodra@bigpond.net.au>
223
224 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
225
226 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
227 copying flags if this is a weakdef.
228
229 2001-10-04 Alan Modra <amodra@bigpond.net.au>
230
231 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
232 packing.
233
234 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
235 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
236 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
237
238 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
239 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
240 backends we configure. Run "make dep-am".
241 (install-data-local): Install symcat.h.
242 * dep-in.sed: Remove symcat.h from dependencies.
243 * Makefile.in: Regenerate.
244
245 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
246
247 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
248
249 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
250
251 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
252 (elf_backend_default_use_rela_p): New define.
253
254 2001-10-03 Alan Modra <amodra@bigpond.net.au>
255
256 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
257 change.
258
259 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
260 * configure: Regenerate.
261 * Makefile.am (BFD_H_FILES): Add version.h.
262 * Makefile.in: Regenerate.
263 * po/SRC-POTFILES.in: Regenerate.
264
265 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
266 elf_backend_copy_indirect_symbol so that backend has a chance to
267 copy other necessary fields.
268 * elf-bfd.h (struct elf_backend_data): Update description of
269 elf_backend_copy_indirect_symbol.
270 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
271 copying flags if this is a weakdef.
272 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
273 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
274 than bfd_link_hash_lookup.
275 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
276 reloc processing for weakdefs.
277 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
278 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
279
280 2001-10-02 Alan Modra <amodra@bigpond.net.au>
281
282 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
283 result of ELF64_R_TYPE to enum before using in a switch.
284 (ppc64_elf_gc_mark_hook): Likewise.
285 (ppc64_elf_gc_sweep_hook): Likewise.
286 (ppc64_elf_reloc_type_class): Likewise.
287
288 2001-10-02 Alan Modra <amodra@bigpond.net.au>
289
290 * version.h: New file.
291 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
292 (BFD_VERSION_DATE): Define.
293 (BFD_VERSION_STRING): Define.
294 * configure.in: AC_SUBST bfd_version, bfd_version_date and
295 bfd_version_string.
296 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
297 * bfd-in2.h: Regenerate.
298 * configure: Regenerate.
299 * Makefile.am: Run "make dep-am".
300 * Makefile.in: Regenerate.
301
302 * bfd-in.h: Include "symcat.h".
303 (CONCAT4): Redefine as for old CAT4.
304 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
305 Add warning regarding whitespace.
306 * aout-cris.c: Likewise.
307 * aout-ns32k.c: Likewise.
308 * aout-sparcle.c: Likewise.
309 * aout-tic30.c: Likewise.
310 * aout0.c: Likewise.
311 * armnetbsd.c: Likewise.
312 * demo64.c: Likewise.
313 * elf-bfd.h: Likewise.
314 * gen-aout.c: Likewise.
315 * host-aout.c: Likewise.
316 * hp300bsd.c: Likewise.
317 * hp300hpux.c: Likewise.
318 * i386aout.c: Likewise.
319 * i386bsd.c: Likewise.
320 * i386dynix.c: Likewise.
321 * i386freebsd.c: Likewise.
322 * i386linux.c: Likewise.
323 * i386lynx.c: Likewise.
324 * i386mach3.c: Likewise.
325 * i386netbsd.c: Likewise.
326 * libaout.h: Likewise.
327 * m68k4knetbsd.c: Likewise.
328 * m68klinux.c: Likewise.
329 * m68klynx.c: Likewise.
330 * m68knetbsd.c: Likewise.
331 * m88kmach3.c: Likewise.
332 * mipsbsd.c: Likewise.
333 * newsos3.c: Likewise.
334 * ns32knetbsd.c: Likewise.
335 * pc532-mach.c: Likewise.
336 * pdp11.c: Likewise.
337 * riscix.c: Likewise.
338 * sparclinux.c: Likewise.
339 * sparclynx.c: Likewise.
340 * sparcnetbsd.c: Likewise.
341 * sunos.c: Likewise.
342 * targets.c: Likewise.
343 * vaxnetbsd.c: Likewise.
344 * vms-hdr.c: Likewise.
345
346 2001-10-01 Alan Modra <amodra@bigpond.net.au>
347
348 * bfd-in.h: Remove comments regarding generated files.
349 * libbfd-in.h: Likewise.
350 * libcoff-in.h: Likewise.
351 * bfd-in2.h: Regenerate.
352 * libbfd.h: Likewise.
353 * libcoff.h: Likewise.
354
355 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
356 Hans-Peter Nilsson <hp@bitrange.com>
357
358 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
359 partial_inplace, matching assembler output. Set src_mask to
360 all ones.
361 (sh_elf_relocate_section): Delete misplaced comment.
362 For relocatable linking against section symbol, call
363 _bfd_relocate_contents for partial_inplace relocs and adjust
364 rel->r_addend for others.
365 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
366 bfd_get_32, not at rel->r_addend.
367
368 2001-09-30 Alan Modra <amodra@bigpond.net.au>
369
370 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
371 the old dir refcount, so we indirectly set them to init_refcount.
372 Short-circuit asserts when we've just verified they are true.
373
374 2001-09-29 Alan Modra <amodra@bigpond.net.au>
375
376 * section.c (struct sec): Remove kept_section.
377 (STD_SECTION): Remove kept_section initialisation.
378 (bfd_make_section_anyway): Here too.
379 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
380 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
381 * elflink.h (elf_link_input_bfd): Set discarded link-once section
382 symbols to zero, and remove all code involved with kept_section
383 and tracking section symbol values.
384 * bfd-in2.h: Regenerate.
385 * configure.in: Bump version number.
386 * configure: Regenerate.
387
388 2001-09-29 Alan Modra <amodra@bigpond.net.au>
389
390 * elf64-ppc.c (struct ppc_dyn_relocs): New.
391 (IS_ABSOLUTE_RELOC): Define.
392 (struct ppc_link_hash_entry): New.
393 (struct ppc_link_hash_table): New.
394 (ppc_hash_table): Define.
395 (link_hash_newfunc): New function.
396 (ppc64_elf_link_hash_table_create): New function.
397 (create_got_section): New function.
398 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
399 pointers to our dynamic sections in hash table.
400 (ppc64_elf_copy_indirect_symbol): New function.
401 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
402 dynamic sections. Localise vars. Modify code for refcounts
403 starting from zero. Don't allocate here, or force symbols dynamic.
404 Don't copy all relocs if shared, select ones we need. Add code
405 to track possible copy relocs for non-shared link.
406 (ppc64_elf_gc_mark_hook): Update comment.
407 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
408 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
409 code for reference counting garbage collection. Don't create .plt
410 entries for functions that don't comply with ABI naming convention,
411 and don't allocate .plt space here. Use short-cuts to dynamic
412 sections. If possible, keep dynamic relocations instead of using
413 copy relocs. Remove confused comments.
414 (ppc_adjust_dynindx): Delete.
415 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
416 (allocate_dynrelocs): New function.
417 (readonly_dynrelocs): New function.
418 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
419 space here, and call allocate_dynrelocs to allocate space for
420 global .plt, .got and reloc sections. Use short-cuts to dynamic
421 sections. Call readonly_dynrelocs to determine whether we need
422 DT_TEXTREL. Don't generate section symbols here, the generic
423 ELF linker code does it for us.
424 (ppc64_elf_final_link): Call regular ELF backend linker rather than
425 gc variety, since we do our own .got handling.
426 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
427 dynamic section short-cuts. Localise vars, and delay setting.
428 Handle unknown relocs in main switch statement. Replace ugly
429 complicated tests for unresolvable relocs with a simple direct
430 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
431 before allowing an undefined sym in a shared lib. Do R_*_DS tests
432 after main switch, when we've set addend. Do non-addend insn
433 tweaks before main swithc. Ignore input_section->vma when
434 calculating reloc offsets as it's always zero. Rewrite dynamic
435 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
436 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
437 of dynamic section short-cuts. Reorganise .plt handling code.
438 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
439 Move expressions out of swap_reloca_out function calls.
440 (ppc64_elf_reloc_type_class): New function.
441 (ppc64_elf_info_to_howto): Move common expression to local var.
442 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
443 of dynamic section short-cuts. Don't fiddle with section syms
444 here as the ELF linker does it for us.
445 (elf_backend_can_refcount): Define.
446 (bfd_elf64_bfd_link_hash_table_create): Define.
447 (elf_backend_copy_indirect_symbol): Define.
448 (elf_backend_reloc_type_class): Define.
449 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
450
451 2001-09-29 Alan Modra <amodra@bigpond.net.au>
452
453 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
454 (struct elf_backend_data): Add can_refcount.
455 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
456 got.refcount and plt.refcount from init_refcount.
457 (_bfd_elf_link_hash_table_init): Set up init_refcount.
458 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
459 rather than got/plt.offset, and test for <= 0 rather than -1.
460 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
461 * elfxx-target.h (elf_backend_can_refcount): Define.
462 (elfNN_bed): Init can_refcount.
463 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
464 (_bfd_generic_link_hash_newfunc): Likewise.
465 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
466 starting from zero.
467 (elf_backend_can_refcount): Define.
468 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
469 starting from zero.
470 (elf32_hppa_copy_indirect_symbol): Make static to agree with
471 prototype.
472 (elf_backend_can_refcount): Define.
473 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
474 starting from zero.
475 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
476 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
477 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
478 (elf_backend_can_refcount): Define.
479 (elf_i386_copy_indirect_symbol): Make static to agree with
480 prototype. Formatting fix.
481 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
482 starting from zero.
483 (elf_backend_can_refcount): Define.
484 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
485 starting from zero.
486 (elf_backend_can_refcount): Define.
487 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
488 starting from zero.
489 (elf_backend_can_refcount): Define.
490 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
491 starting from zero.
492 (elf_backend_can_refcount): Define.
493 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
494 starting from zero.
495 (elf_backend_can_refcount): Define.
496
497 * som.c (som_write_symbol_strings): Cast current_offset in
498 bfd_seek call to match param type.
499
500 2001-09-28 J. Brobecker <brobecker@gnat.com>
501
502 * som.c (som_write_symbol_strings): Fix incorrect type of
503 current_offset to match the function definition. Fixes a build
504 failure on HPUX-11.00.
505
506 2001-09-28 Richard Henderson <rth@redhat.com>
507
508 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
509 SEC_MERGE, SEC_STRINGS.
510
511 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
512 * bfd-in2.h: Rebuild.
513
514 2001-09-28 Alan Modra <amodra@bigpond.net.au>
515
516 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
517 reloc code using x86_64_reloc_map.
518
519 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
520 no longer allocate here. Localise some vars to blocks where they
521 are used.
522 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
523 setting of vars until needed.
524 (allocate_dynrelocs): Don't create a .plt entry without a reloc
525 when symbol visibilty makes a function local.
526 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
527 swap_reloca_out function calls.
528 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
529 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
530 switch statement.
531
532 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
533 no longer allocate here. Localise some vars to blocks where they
534 are used. Remove separate switch stmt for creating .got sec.
535 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
536 redundant casts and aborts. Delay setting of vars until needed.
537 (allocate_dynrelocs): Remove redundant casts and aborts.
538 (elf_i386_size_dynamic_sections): Move comment.
539 (elf_i386_finish_dynamic_symbol): Move expressions out of function
540 calls.
541 (elf_i386_relocate_section): Likewise. Comment typo fix.
542 (elf_i386_finish_dynamic_sections): Migrate common code out of
543 switch statement.
544 (elf_backend_* defines): Sort.
545
546 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
547 without a reloc when symbol visibilty makes a function local.
548
549 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
550
551 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
552 conflicting float flags.
553
554 2001-09-26 Alan Modra <amodra@bigpond.net.au>
555
556 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
557 (elf_backend_copy_indirect_symbol): Define.
558 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
559 (struct elf_i386_link_hash_table): Likewise.
560 (link_hash_newfunc): Get rid of unnecessary casts.
561 (elf_i386_link_hash_table_create): Likewise.
562 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
563 Don't test input section SEC_READONLY here to try to avoid copy
564 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
565 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
566 here to properly test whether we need copy relocs. Do so for weak
567 syms too.
568
569 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
570 (elf_backend_copy_indirect_symbol): Define.
571 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
572 (stub_hash_newfunc): Get rid of unnecessary casts.
573 (hppa_link_hash_newfunc): Likewise.
574 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
575 Don't test input section SEC_READONLY here to try to avoid copy
576 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
577 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
578 here to properly test whether we need copy relocs. Do so for weak
579 syms too.
580
581 2001-09-26 Alan Modra <amodra@bigpond.net.au>
582
583 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
584 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
585 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
586
587 2001-09-25 Jakub Jelinek <jakub@redhat.com>
588
589 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
590 computation.
591
592 2001-09-25 H.J. Lu <hjl@gnu.org>
593
594 * bfd-in2.h: Regenerated.
595
596 2001-09-25 Alan Modra <amodra@bigpond.net.au>
597
598 * elf32-i386.c: Add comment re linker function names and ordering.
599 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
600 (elf_i386_grok_prstatus): Move before linker functions.
601 (elf_i386_grok_psinfo): Likewise.
602 (elf_i386_fake_sections): Move so that functions are ordered.
603 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
604
605 2001-09-25 Alan Modra <amodra@bigpond.net.au>
606
607 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
608 throughout file.
609
610 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
611 code handling this option.
612 (LONG_BRANCH_VIA_PLT): Likewise.
613 (RELATIVE_DYNRELOCS): Define as zero.
614 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
615 "pc_count" fields. Remove "section" field.
616 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
617 (elf32_hppa_check_relocs): Don't allocate space for dynamic
618 relocs here. Instead, record all needed dynamic relocs via
619 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
620 in elf_section_data.
621 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
622 (allocate_plt_and_got_and_discard_relocs): Rename to
623 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
624 (readonly_dynrelocs): New function.
625 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
626 Call readonly_dynrelocs to determine need for DT_TEXTREL.
627 Rename "i" to "ibfd". Allocate space for local dyn relocs.
628 (elf32_hppa_relocate_section): Make use of cached sreloc.
629 (elf32_hppa_reloc_type_class): New function.
630 (elf_backend_reloc_type_class): Define.
631
632 2001-09-25 Alan Modra <amodra@bigpond.net.au>
633
634 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
635 and "sreloc" fields.
636 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
637 "pc_count" fields. Remove "section" field.
638 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
639 allocate space for dynamic relocs here. Instead, record all
640 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
641 pointer to "sreloc" section in elf_section_data.
642 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
643 (allocate_plt_and_got_and_discard_relocs): Rename to
644 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
645 (readonly_dynrelocs): New function.
646 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
647 Rename "i" to "ibfd". Allocate space for local dyn relocs.
648 (elf_i386_relocate_section): Make use of cached sreloc.
649
650 2001-09-24 Alan Modra <amodra@bigpond.net.au>
651
652 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
653 reloc rather than just the type.
654 (_bfd_elf_reloc_type_class): Likewise.
655 * elf.c (_bfd_elf_reloc_type_class): Likewise.
656 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
657 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
658 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
659 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
660 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
661 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
662 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
663 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
664 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
665 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
666 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
667 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
668 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
669 * elflink.h: Formatting fixes.
670 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
671 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
672 o->contents to PTR. Update call to elf_backend_reloc_type_class.
673
674 2001-09-22 John Reiser <jreiser@BitWagon.com>
675
676 * elfcode.h (elf_object_p): Allow for no section header at all in
677 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
678
679 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
680
681 * elfxx-ia64.c: Fix compile time warning messages.
682 * coff-mcore.c: Fix compile time warning messages.
683 * coff-ppc.c: Fix compile time warning messages.
684 * coffcode.h: Fix compile time warning messages.
685 * elf32-mips.c: Fix compile time warning messages.
686 * elf64-alpha.c: Fix compile time warning messages.
687 * libbfd.c: Fix compile time warning messages.
688 * bfd-in2.h: Regenerate.
689
690 2001-09-21 Alan Modra <amodra@bigpond.net.au>
691
692 * Makefile.am: Run "make dep-am".
693 * Makefile.in: Regenerate.
694
695 * aoutx.h: Formatting fixes.
696 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
697
698 * linker.c: Replace bfd_get_filename with bfd_archive_filename
699 in error message.
700
701 2001-09-21 Alan Modra <amodra@bigpond.net.au>
702
703 * bfd.c (bfd_archive_filename): New function.
704 * bfd-in2.h: Regenerate.
705 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
706 in error messages where the bfd is an input bfd.
707 * aout-cris.c: Likewise.
708 * coff-arm.c: Likewise.
709 * coff-mcore.c: Likewise.
710 * coff-ppc.c: Likewise.
711 * coff-rs6000.c: Likewise.
712 * coff-sh.c: Likewise.
713 * coff-tic54x.c: Likewise.
714 * coff-tic80.c: Likewise.
715 * coff64-rs6000.c: Likewise.
716 * coffcode.h: Likewise.
717 * coffgen.c: Likewise.
718 * cofflink.c: Likewise.
719 * ecofflink.c: Likewise.
720 * elf-hppa.h: Likewise.
721 * elf.c: Likewise.
722 * elf32-arm.h: Likewise.
723 * elf32-cris.c: Likewise.
724 * elf32-gen.c: Likewise.
725 * elf32-hppa.c: Likewise.
726 * elf32-i370.c: Likewise.
727 * elf32-i386.c: Likewise.
728 * elf32-m32r.c: Likewise.
729 * elf32-mcore.c: Likewise.
730 * elf32-mips.c: Likewise.
731 * elf32-ppc.c: Likewise.
732 * elf32-s390.c: Likewise.
733 * elf32-sh.c: Likewise.
734 * elf32-sparc.c: Likewise.
735 * elf32-v850.c: Likewise.
736 * elf64-alpha.c: Likewise.
737 * elf64-gen.c: Likewise.
738 * elf64-ppc.c: Likewise.
739 * elf64-s390.c: Likewise.
740 * elf64-sparc.c: Likewise.
741 * elf64-x86-64.c: Likewise.
742 * elflink.h: Likewise.
743 * elfxx-ia64.c: Likewise.
744 * ieee.c: Likewise.
745 * ihex.c: Likewise.
746 * libbfd.c: Likewise.
747 * pdp11.c: Likewise.
748 * pe-mips.c: Likewise.
749 * peicode.h: Likewise.
750 * srec.c: Likewise.
751 * xcofflink.c: Likewise.
752
753 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
754
755 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
756 error message.
757
758 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
759 error message.
760
761 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
762 Consolidate error messages, and split long messages to two lines.
763
764 2001-09-20 John Reiser <jreiser@BitWagon.com>
765
766 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
767 and info->allow_shlib_undefined.
768 * elf32-cris.c: Likewise.
769 * elf32-hppa.c: Likewise.
770 * elf32-m68k.c: Likewise.
771 * elf32-mips.c: Likewise.
772 * elf32-ppc.c: Likewise.
773 * elf32-s390.c: Likewise.
774 * elf32-sh.c: Likewise.
775 * elf32-sparc.c: Likewise.
776 * elf64-alpha.c: Likewise.
777 * elf64-hppa.c: Likewise.
778 * elf64-ppc.c: Likewise.
779 * elf64-s390.c: Likewise.
780 * elf64-sparc.c: Likewise.
781 * elf64-x86-64.c: Likewise.
782 * elfxx-ia64.c: Likewise.
783
784 2001-09-18 Bruno Haible <haible@clisp.cons.org>
785
786 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
787 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
788 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
789 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
790 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
791 (bfd_default_scan): Use ISDIGIT instead of isdigit.
792 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
793 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
794 isxdigit/isdigit/islower.
795 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
796 (mangle_name): Use ISALNUM instead of isalnum.
797 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
798 (scan): Use ISDIGIT instead of isdigit.
799 * hosts/alphavms.h: Don't include <ctype.h>.
800 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
801 (ieee_object_p): Use TOUPPER instead of toupper.
802 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
803 (ihex_bad_byte): Use ISPRINT instead of isprint.
804 * merge.c: Don't include <ctype.h>.
805 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
806 (oasys_write_sections): Use ISDIGIT instead of isdigit.
807 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
808 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
809 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
810 (mangle_name): Use ISALNUM instead of isalnum.
811 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
812 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
813 isupper/islower/isdigit.
814 (som_decode_symclass): Use TOUPPER instead of toupper.
815 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
816 (srec_bad_byte): Use ISPRINT instead of isprint.
817 (srec_scan): Use ISSPACE instead of isspace.
818 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
819 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
820 * syms.c: Include "safe-ctype.h"
821 (islower, toupper): Remove macro definitions.
822 (bfd_decode_symclass): Use TOUPPER instead of toupper.
823 * vms-gsd.c: Don't include <ctype.h>.
824 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
825 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
826 islower/toupper.
827 * vms-tir.c: Don't include <ctype.h>.
828
829 2001-09-18 Alan Modra <amodra@bigpond.net.au>
830
831 * libbfd.c (bfd_bread): New function replacing bfd_read without
832 redundant params. Allow reads up to (size_t) -2 in length.
833 (bfd_bwrite): Similarly for bfd_write.
834 (real_read): Return a size_t.
835 (bfd_read): Call bfd_bread.
836 (bfd_write): Call bfd_bwrite.
837 (warn_deprecated): New function to annoy everybody.
838 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
839 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
840 (bfd_read, bfd_write): Define as macro.
841 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
842 likewise for bfd_write. Ensure function args are correct size by
843 using casts or local vars. In some cases, remove unnecessary
844 casts. Formatting fixes, in some cases removing a large expression
845 from function args by using a local var. Replace CONST with const.
846 Modify variable types to avoid warings. Use casts to avoid
847 warnings when using negative numbers in unsigned expressions.
848 * aout-adobe.c: Likewise.
849 * aout-arm.c: Likewise.
850 * aout-cris.c: Likewise.
851 * aout-encap.c: Likewise.
852 * aout-ns32k.c: Likewise.
853 * aout-target.h: Likewise.
854 * aout-tic30.c: Likewise.
855 * aoutf1.h: Likewise.
856 * aoutx.h: Likewise.
857 * archive.c: Likewise.
858 * archures.c: Likewise.
859 * bfd-in.h: Likewise.
860 * bfd.c: Likewise.
861 * binary.c: Likewise.
862 * bout.c: Likewise.
863 * cache.c: Likewise.
864 * cisco-core.c: Likewise.
865 * coff-a29k.c: Likewise.
866 * coff-alpha.c: Likewise.
867 * coff-arm.c: Likewise.
868 * coff-h8300.c: Likewise.
869 * coff-h8500.c: Likewise.
870 * coff-i386.c: Likewise.
871 * coff-i860.c: Likewise.
872 * coff-i960.c: Likewise.
873 * coff-ia64.c: Likewise.
874 * coff-m68k.c: Likewise.
875 * coff-m88k.c: Likewise.
876 * coff-mcore.c: Likewise.
877 * coff-mips.c: Likewise.
878 * coff-ppc.c: Likewise.
879 * coff-rs6000.c: Likewise.
880 * coff-sh.c: Likewise.
881 * coff-sparc.c: Likewise.
882 * coff-stgo32.c: Likewise.
883 * coff-tic30.c: Likewise.
884 * coff-tic54x.c: Likewise.
885 * coff-tic80.c: Likewise.
886 * coff-w65.c: Likewise.
887 * coff-z8k.c: Likewise.
888 * coff64-rs6000.c: Likewise.
889 * coffcode.h: Likewise.
890 * coffgen.c: Likewise.
891 * cofflink.c: Likewise.
892 * coffswap.h: Likewise.
893 * corefile.c: Likewise.
894 * cpu-arc.c: Likewise.
895 * cpu-h8300.c: Likewise.
896 * cpu-h8500.c: Likewise.
897 * cpu-i960.c: Likewise.
898 * cpu-ia64-opc.c: Likewise.
899 * cpu-ns32k.c: Likewise.
900 * cpu-pdp11.c: Likewise.
901 * cpu-pj.c: Likewise.
902 * cpu-sh.c: Likewise.
903 * cpu-w65.c: Likewise.
904 * cpu-z8k.c: Likewise.
905 * dwarf1.c: Likewise.
906 * dwarf2.c: Likewise.
907 * ecoff.c: Likewise.
908 * ecofflink.c: Likewise.
909 * ecoffswap.h: Likewise.
910 * elf-bfd.h: Likewise.
911 * elf-hppa.h: Likewise.
912 * elf-m10200.c: Likewise.
913 * elf-m10300.c: Likewise.
914 * elf.c: Likewise.
915 * elf32-arc.c: Likewise.
916 * elf32-arm.h: Likewise.
917 * elf32-avr.c: Likewise.
918 * elf32-cris.c: Likewise.
919 * elf32-fr30.c: Likewise.
920 * elf32-gen.c: Likewise.
921 * elf32-h8300.c: Likewise.
922 * elf32-hppa.c: Likewise.
923 * elf32-i370.c: Likewise.
924 * elf32-i386.c: Likewise.
925 * elf32-i860.c: Likewise.
926 * elf32-m32r.c: Likewise.
927 * elf32-m68k.c: Likewise.
928 * elf32-mcore.c: Likewise.
929 * elf32-mips.c: Likewise.
930 * elf32-openrisc.c: Likewise.
931 * elf32-pj.c: Likewise.
932 * elf32-ppc.c: Likewise.
933 * elf32-s390.c: Likewise.
934 * elf32-sh-lin.c: Likewise.
935 * elf32-sh.c: Likewise.
936 * elf32-sparc.c: Likewise.
937 * elf32-v850.c: Likewise.
938 * elf64-alpha.c: Likewise.
939 * elf64-hppa.c: Likewise.
940 * elf64-mips.c: Likewise.
941 * elf64-ppc.c: Likewise.
942 * elf64-s390.c: Likewise.
943 * elf64-sparc.c: Likewise.
944 * elf64-x86-64.c: Likewise.
945 * elfarm-nabi.c: Likewise.
946 * elfcode.h: Likewise.
947 * elfcore.h: Likewise.
948 * elflink.c: Likewise.
949 * elflink.h: Likewise.
950 * elfxx-ia64.c: Likewise.
951 * elfxx-target.h: Likewise.
952 * format.c: Likewise.
953 * hash.c: Likewise.
954 * hp300hpux.c: Likewise.
955 * hppabsd-core.c: Likewise.
956 * hpux-core.c: Likewise.
957 * i386aout.c: Likewise.
958 * i386dynix.c: Likewise.
959 * i386linux.c: Likewise.
960 * i386lynx.c: Likewise.
961 * i386mach3.c: Likewise.
962 * i386msdos.c: Likewise.
963 * i386os9k.c: Likewise.
964 * ieee.c: Likewise.
965 * ihex.c: Likewise.
966 * irix-core.c: Likewise.
967 * libaout.h: Likewise.
968 * libbfd-in.h: Likewise.
969 * libbfd.c: Likewise.
970 * libcoff-in.h: Likewise.
971 * libecoff.h: Likewise.
972 * libieee.h: Likewise.
973 * libnlm.h: Likewise.
974 * libpei.h: Likewise.
975 * libxcoff.h: Likewise.
976 * linker.c: Likewise.
977 * lynx-core.c: Likewise.
978 * m68klinux.c: Likewise.
979 * merge.c: Likewise.
980 * mipsbsd.c: Likewise.
981 * netbsd-core.c: Likewise.
982 * nlm.c: Likewise.
983 * nlm32-alpha.c: Likewise.
984 * nlm32-i386.c: Likewise.
985 * nlm32-ppc.c: Likewise.
986 * nlm32-sparc.c: Likewise.
987 * nlmcode.h: Likewise.
988 * nlmswap.h: Likewise.
989 * ns32k.h: Likewise.
990 * oasys.c: Likewise.
991 * opncls.c: Likewise.
992 * osf-core.c: Likewise.
993 * pc532-mach.c: Likewise.
994 * pdp11.c: Likewise.
995 * pe-mips.c: Likewise.
996 * peXXigen.c: Likewise.
997 * peicode.h: Likewise.
998 * ppcboot.c: Likewise.
999 * ptrace-core.c: Likewise.
1000 * reloc.c: Likewise.
1001 * reloc16.c: Likewise.
1002 * riscix.c: Likewise.
1003 * rs6000-core.c: Likewise.
1004 * sco5-core.c: Likewise.
1005 * section.c: Likewise.
1006 * som.c: Likewise.
1007 * sparclinux.c: Likewise.
1008 * sparclynx.c: Likewise.
1009 * srec.c: Likewise.
1010 * stabs.c: Likewise.
1011 * sunos.c: Likewise.
1012 * syms.c: Likewise.
1013 * targets.c: Likewise.
1014 * tekhex.c: Likewise.
1015 * trad-core.c: Likewise.
1016 * versados.c: Likewise.
1017 * vms-gsd.c: Likewise.
1018 * vms-hdr.c: Likewise.
1019 * vms-misc.c: Likewise.
1020 * vms-tir.c: Likewise.
1021 * vms.c: Likewise.
1022 * vms.h: Likewise.
1023 * xcofflink.c: Likewise.
1024 * bfd-in2.h: Regenerate.
1025 * libbfd.h: Regenerate.
1026 * libcoff.h: Regenerate.
1027
1028 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1029 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1030 (ufile_ptr): Define.
1031 (bfd_tell): Return a ufile_ptr.
1032 * libbfd.c (bfd_tell): Likewise.
1033 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1034 unnecessarily.
1035 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1036 * aoutf1.h: Likewise.
1037 * som.c: Likewise.
1038 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1039 larger than unsigned long can represent.
1040
1041 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1042 size overflows size_t.
1043 (bfd_realloc): Likewise.
1044 (bfd_zmalloc): Likewise.
1045 * opncls.c (bfd_alloc): Likewise.
1046 (bfd_zalloc): Likewise.
1047 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1048 (bfd_alloc, bfd_zalloc): Update.
1049
1050 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1051 8 bits.
1052 (bfd_get_signed_8): Likewise.
1053 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1054 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1055 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1056 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1057 * libaout.h: Likewise define and use here.
1058 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1059 * aout-arm.c: Likewise.
1060 * aout-encap.c: Likewise.
1061 * aout-ns32k.c: Likewise.
1062 * aout-tic30.c: Likewise.
1063 * aoutf1.h: Likewise.
1064 * aoutx.h: Likewise.
1065 * bout.c: Likewise.
1066 * coff-alpha.c: Likewise.
1067 * coff-h8300.c: Likewise.
1068 * coff-h8500.c: Likewise.
1069 * coff-i960.c: Likewise.
1070 * coff-ia64.c: Likewise.
1071 * coff-m88k.c: Likewise.
1072 * coff-mips.c: Likewise.
1073 * coff-ppc.c: Likewise.
1074 * coff-rs6000.c: Likewise.
1075 * coff-sh.c: Likewise.
1076 * coff-sparc.c: Likewise.
1077 * coff-stgo32.c: Likewise.
1078 * coff-tic30.c: Likewise.
1079 * coff-tic80.c: Likewise.
1080 * coff-w65.c: Likewise.
1081 * coff-z8k.c: Likewise.
1082 * coff64-rs6000.c: Likewise.
1083 * coffgen.c: Likewise.
1084 * cofflink.c: Likewise.
1085 * coffswap.h: Likewise.
1086 * ecoff.c: Likewise.
1087 * ecoffswap.h: Likewise.
1088 * elf.c: Likewise.
1089 * elf32-mips.c: Likewise.
1090 * elf64-mips.c: Likewise.
1091 * hp300hpux.c: Likewise.
1092 * i386dynix.c: Likewise.
1093 * i386lynx.c: Likewise.
1094 * i386msdos.c: Likewise.
1095 * i386os9k.c: Likewise.
1096 * libpei.h: Likewise.
1097 * nlm32-alpha.c: Likewise.
1098 * nlm32-i386.c: Likewise.
1099 * nlm32-ppc.c: Likewise.
1100 * nlmcode.h: Likewise.
1101 * nlmswap.h: Likewise.
1102 * oasys.c: Likewise.
1103 * pdp11.c: Likewise.
1104 * pe-mips.c: Likewise.
1105 * peXXigen.c: Likewise.
1106 * peicode.h: Likewise.
1107 * riscix.c: Likewise.
1108 * sunos.c: Likewise.
1109 * xcofflink.c: Likewise.
1110 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1111 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1112 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1113 equivalent H_PUT_* macro instead.
1114 (GETWORD, GETHALF, GETBYTE): Similarly.
1115 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1116 (GETWORD, GETHALF, GETBYTE): Likewise.
1117 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1118
1119 * bfd-in.h (struct orl): Change "pos" to a union.
1120 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1121 (bsd_write_armap): Here too.
1122 (coff_write_armap): And here.
1123 * coff-rs6000.c (xcoff_write_armap_old): And here.
1124 (xcoff_write_one_armap_big): And here.
1125 (xcoff_write_armap_big): And here.
1126 * ecoff.c (_bfd_ecoff_write_armap): And here.
1127 * elf64-mips.c (mips_elf64_write_armap): And here.
1128
1129 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1130 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1131 * elf32-h8300.c (elf32_h8_mach): Likewise.
1132 * elf32-mips.c (elf_mips_mach): Likewise.
1133 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1134
1135 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1136 calls.
1137 (aix386_core_vec): Typo fix.
1138
1139 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1140 etc. to avoid redefined macro warning.
1141 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1142 (MY(fix_pcrel_26)): Likewise.
1143 * aout-ns32k.c (MY(put_reloc)): Likewise.
1144 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1145 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1146 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1147
1148 * aout-encap.c: Include "file", not <file> for binutils headers.
1149 (encap_object_p): Half baked attempt to fix compile errors in
1150 code dealing with "magic".
1151
1152 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1153 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1154 bfd_vma's rather than longs.
1155 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1156 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1157 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1158 remove case 3.
1159 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1160 Use unsigned comparisons.
1161 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1162 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1163 (_bfd_do_ns32k_reloc_contents): Likewise.
1164 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1165 (_bfd_ns32k_get_immediate): Likewise.
1166 (_bfd_ns32k_put_displacement): Likewise.
1167 (_bfd_ns32k_put_immediate): Likewise.
1168 (bfd_reloc_status_type): Likewise.
1169
1170 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1171 to avoid shadowing.
1172 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1173 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1174 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1175 avoid shadowing.
1176 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1177 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1178 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1179 shadow warning.
1180 (_bfd_elfcore_strndup): Likewise for "dup".
1181 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1182 "name" to avoid shadowing.
1183 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1184 definition of "off".
1185 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1186 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1187 definition of "s".
1188 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1189 "secpp".
1190 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1191 to avoid shadowing.
1192 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1193 to avoid shadowing.
1194 (elf_link_input_bfd): Likewise.
1195 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1196 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1197 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1198 "input_section".
1199 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1200 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1201 (sunos_write_dynamic_symbol): Remove unused vars.
1202 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1203 innermost "directory_name" and "file_name" vars.
1204 * tekhex.c (first_phase): Rename local var "type" to "stype".
1205 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1206 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1207 doing comparison at caller.
1208 (vms_esecflag_by_name): Likewise.
1209 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1210 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1211 (xcoff_write_global_symbol): Rename "p" param to "inf".
1212
1213 * cisco-core.c: Add missing prototypes.
1214 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1215 (cisco_core_file_failing_signal): Likewise.
1216 (cisco_core_file_matches_executable_p): Likewise.
1217 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1218 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1219 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1220 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1221
1222 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1223 thumb_glue_size and arm_glue_size.
1224 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1225
1226 * coff64-rs6000.c: Group prototypes together.
1227
1228 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1229 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1230
1231 * cpu-arc.c: Add missing prototypes.
1232 * cpu-h8500.c: Likewise.
1233 * cpu-i960.c: Likewise.
1234 * cpu-pj.c: Likewise.
1235 * cpu-sh.c: Likewise.
1236 * cpu-w65.c: Likewise.
1237 * cpu-z8k.c: Likewise.
1238 * elf32-fr30.c: Likewise.
1239 * elf32-h8300.c: Likewise.
1240 * elf32-i370.c: Likewise.
1241 * hpux-core.c: Likewise.
1242 * versados.c: Likewise.
1243
1244 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1245 * cpu-h8500.c: Likewise.
1246 * cpu-i960.c: Likewise.
1247 * cpu-z8k.c: Likewise.
1248
1249 * cpu-ia64-opc.c: Correct comment.
1250
1251 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1252
1253 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1254 to unsigned.
1255 (bfd_elf32_write_out_phdrs): Likewise.
1256 (bfd_elf64_write_out_phdrs): Likewise.
1257 (elf_linker_section_pointers): Change addend to bfd_vma.
1258 (_bfd_elf_find_pointer_linker_section): Likewise.
1259 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1260 filepos to unsigned file_ptr.
1261 (_bfd_elfcore_strndup): Change max param to size_t.
1262 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1263 (_bfd_elfcore_strndup): Likewise.
1264 (_bfd_elf_find_pointer_linker_section): Likewise.
1265
1266 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1267 insn and sym_value to ints.
1268
1269 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1270 bfd_size_type.
1271 (elfcore_read_notes): Likewise.
1272
1273 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1274 param from unsigned char to int.
1275 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1276 for info_to_howto call.
1277 (add_dynamic_entry): Define macro.
1278 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1279
1280 * elf32-cris.c (add_dynamic_entry): Define macro.
1281 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1282
1283 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1284 (elf32_h8_object_p): Likewise.
1285 (elf32_h8_merge_private_bfd_data): Likewise.
1286 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1287
1288 * elf32-hppa.c (add_dynamic_entry): Define macro.
1289 (elf32_hppa_size_dynamic_sections): Use it.
1290 * elf32-i370.c (add_dynamic_entry): Define macro.
1291 (i370_elf_size_dynamic_sections): Use it.
1292 (i370_noop): Make static.
1293 * elf32-i386.c (add_dynamic_entry): Define macro.
1294 (elf_i386_size_dynamic_sections): Use it.
1295 * elf32-m68k.c (add_dynamic_entry): Define macro.
1296 (elf_m68k_size_dynamic_sections): Use it.
1297 * elf32-ppc.c (add_dynamic_entry): Define macro.
1298 (ppc_elf_size_dynamic_sections): Use it.
1299 * elf32-s390.c (add_dynamic_entry): Define macro.
1300 (elf_s390_size_dynamic_sections): Use it.
1301 * elf64-alpha.c (add_dynamic_entry): Define macro.
1302 (elf64_alpha_size_dynamic_sections): Use it.
1303 * elf64-hppa.c (add_dynamic_entry): Define macro.
1304 (elf64_hppa_size_dynamic_sections): Use it.
1305 * elf64-ppc.c (add_dynamic_entry): Define macro.
1306 (ppc64_elf_size_dynamic_sections): Use it.
1307 * elf64-s390.c (add_dynamic_entry): Define macro.
1308 (elf_s390_size_dynamic_sections): Use it.
1309 * elf64-sparc.c (add_dynamic_entry): Define macro.
1310 (sparc64_elf_size_dynamic_sections): Use it.
1311 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1312 (elf64_x86_64_size_dynamic_sections): Use it.
1313 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1314 (elfNN_ia64_size_dynamic_sections): Use it.
1315
1316 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1317 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1318
1319 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1320 false if the first malloc fails rather than going via error_return.
1321
1322 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1323 "index" param.
1324 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1325
1326 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1327
1328 * elfxx-ia64.c (global_sym_index): Return a long.
1329
1330 * ieee.c (get_symbol): Use int rather than char param.
1331 (ieee_slurp_sections): Move "section" var to inner blocks.
1332 (copy_expression): Don't init "value" to zero or worry about
1333 clearing to zero after using.
1334 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1335 shadowing.
1336
1337 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1338 unsigned int.
1339
1340 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1341 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1342
1343 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1344
1345 * pc532-mach.c (MYNSX): Delete.
1346 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1347 (write_object_contents): Correct prototype.
1348
1349 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1350 than unsigned short.
1351
1352 * section.c (bfd_set_section_contents): Remove redundant
1353 "offset < 0" test. Check that "count" doesn't overflow size_t.
1354 (bfd_get_section_contents): Likewise.
1355
1356 * som.c (som_fixup_formats): Add missing braces.
1357 (som_reloc_addend): Pass a bfd_vma for "addend".
1358
1359 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1360 (srec_write_symbols): Remove an unnecessary var.
1361
1362 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1363 to match.
1364 * configure.in: Sort to match. Bump version number.
1365 * configure: Regenerate.
1366
1367 * tekhex.c (move_section_contents): Assert offset == 0.
1368
1369 * versados.c (new_symbol_string): Constify arg.
1370 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1371 (versados_get_symbol_info): Make static.
1372 (versados_print_symbol): Likewise.
1373 (versados_get_reloc_upper_bound): Likewise.
1374 (versados_canonicalize_reloc): Likewise.
1375
1376 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1377
1378 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1379
1380 2001-09-17 H.J. Lu <hjl@gnu.org>
1381
1382 * dwarf1.c (parse_die): Take a new arg for the end of the
1383 section. Return false if die is beyond the section.
1384 (parse_functions_in_unit): Pass the end of the section to
1385 parse_die ().
1386 (_bfd_dwarf1_find_nearest_line): Likewise.
1387
1388 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1389
1390 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1391 just like R_SPARC_32.
1392
1393 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1394
1395 * configure.bfd: Add arm-openbsd target.
1396
1397 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1398
1399 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1400 Add support for mips64.
1401
1402 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1403
1404 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1405
1406 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1407
1408 * elf.c (prep_headers): Get the machine code from the elf
1409 backend data.
1410 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1411 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1412 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1413 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1414 * elf-arc.c (arc_elf_final_write_processing): Don't override
1415 e_machine, it's now properly set in prep_headers.
1416 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1417 EM_AVR_OLD.
1418 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1419 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1420 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1421 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1422 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1423 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1424 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1425 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1426 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1427 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1428 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1429 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1430
1431 2001-09-11 Richard Henderson <rth@redhat.com>
1432
1433 * elf64-alpha.c (elf64_alpha_section_flags): New.
1434 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1435
1436 2001-09-11 Richard Henderson <rth@redhat.com>
1437
1438 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1439 apply HINT relocations against dynamic symbols.
1440
1441 2001-09-11 H.J. Lu <hjl@gnu.org>
1442
1443 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1444
1445 2001-09-09 Richard Henderson <rth@redhat.com>
1446
1447 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1448
1449 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1450 following a call to a near function.
1451
1452 2001-09-08 Richard Henderson <rth@redhat.com>
1453
1454 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1455 relocation errors. Fail gp-relative relocations against
1456 dynamic symbols.
1457
1458 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1459
1460 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1461 as well as DEF_DYNAMIC in test for avoided copy relocs.
1462 (allocate_plt_and_got_and_discard_relocs): Likewise.
1463 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1464 (allocate_plt_and_got_and_discard_relocs): Likewise.
1465
1466 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1467
1468 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1469 of R_MIPS_PC16.
1470
1471 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1472
1473 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1474 definitions.
1475 (mips_elf64_howto_table_rel): Likewise.
1476
1477 2001-09-05 Tom Rix <trix@redhat.com>
1478
1479 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1480 and syscall symbols.
1481 (write_global_symbol) : Same.
1482 (bfd_xcoff_export_symbol): Remove unused syscall param.
1483 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1484 bfd_xcoff_import_symbol.
1485 * bfd-in.h: Same.
1486 * bfd-in2.h : Regenerate.
1487
1488 2001-09-04 Richard Henderson <rth@redhat.com>
1489
1490 * elf64-alpha.c (SKIP_HOWTO): New.
1491 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1492 Fix sizes of 16-bit mem format relocs.
1493 (elf64_alpha_reloc_map): Update to match.
1494 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1495 (elf64_alpha_relax_without_lituse): Likewise.
1496 (elf64_alpha_check_relocs): Handle GPREL16.
1497 (elf64_alpha_relocate_section): Likewise.
1498 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1499 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1500 * bfd-in2.h, libbfd.h: Rebuild.
1501
1502 2001-09-04 Jeff Law <law@redhat.com>
1503
1504 * elf32-h8300.c (elf32_h8_relax_section): New function.
1505 (elf32_h8_relax_delete_bytes): Likewise.
1506 (elf32_h8_symbol_address_p): Likewise.
1507 (elf32_h8_get_relocated_section_contents): Likewise.
1508 (bfd_elf32_bfd_relax_section): Define.
1509 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1510
1511 * elf32-h8300.c (special): New function.
1512 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1513 all relocations.
1514 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1515 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1516 Fix minor problems with 8bit and 16bit PC relative relocations.
1517
1518 2001-09-01 Andreas Jaeger <aj@suse.de>
1519
1520 * vms-tir.c: Add missing prototypes.
1521 * vms-hdr.c: Likewise.
1522 * vms-gsd.c: Likewise.
1523 * vms-misc.c: Likewise.
1524
1525 2001-08-31 H.J. Lu <hjl@gnu.org>
1526
1527 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1528 with bad relocation.
1529
1530 2001-08-31 Eric Christopher <echristo@redhat.com>
1531 Jason Eckhardt <jle@redhat.com>
1532
1533 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1534 mips32_4k and mips64.
1535 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1536 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1537 * bfd/cpu-mips.c: Ditto.
1538 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1539 * bfd/bfd-in2.h: Regenerate.
1540
1541 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1542
1543 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1544 value into R_ALPHA_RELATIVE's addend.
1545 (elf64_alpha_finish_dynamic_symbol): Likewise.
1546
1547 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1548
1549 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1550 recomputed addend during relocatable link if not USE_REL.
1551
1552 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1553 error.
1554
1555 2001-08-30 H.J. Lu <hjl@gnu.org>
1556
1557 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1558 2 changes.
1559 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1560 relocations for weak definitions.
1561
1562 2001-08-30 H.J. Lu <hjl@gnu.org>
1563
1564 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1565 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1566 * Makefile.in: Rebuild.
1567
1568 2001-08-30 H.J. Lu <hjl@gnu.org>
1569
1570 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1571 dynamic relocation for undefined weak symbols when creating
1572 executables. Check h->root.root.type, instead of h->root.type.
1573
1574 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1575
1576 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1577 default from coff to elf.
1578
1579 2001-08-29 Jeff Law <law@redhat.com>
1580
1581 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1582 relocations.
1583 (h8_reloc_map): Similarly.
1584 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1585 Add support for PC relative relocations.
1586
1587 * elf32-h8300.c: Put all prototypes together.
1588 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1589 (elf32_h8_final_link_relocate): New function for linker.
1590 (elf32_h8_relocate_section): Similarly.
1591 (elf_backend_relocate_section): Define.
1592
1593 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1594 (h8300_scan): Handle architecture:machine encodings typically
1595 found in linker scripts.
1596 * elf.c (prep_headers): Do not try to do H8 machine recognition
1597 here.
1598 * elf32-h8300.c: Add some missing prototypes.
1599 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1600 (elf32_h8_object_p): Similarly.
1601
1602 2001-08-29 Tom Rix <trix@redhat.com>
1603
1604 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1605 does not follow a XTY_SD.
1606
1607 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1608
1609 * targmatch.sed: Delete case statements.
1610 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1611 aix4.3 and above.
1612
1613 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1614
1615 * Makefile.am (elf32-h8300.lo): New target.
1616 * config.bfd (h8300*-*-elf): New case.
1617 * configure.in (bfd_elf32_h8300_vec): New case.
1618 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1619 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1620 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1621 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1622 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1623 * elf32-h8300.c: New file.
1624 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1625
1626 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1627
1628 * sparclynx.c: Add missing prototypes.
1629 * coff-mcore.c: Add missing prototypes.
1630 * elf32-pj.c: Add missing prototypes.
1631 * nlm32-sparc.c: Add missing prototypes.
1632 * oasys.c: Add missing prototypes.
1633 * pdp11.c: Add missing prototypes.
1634 * pe-mips.c: Add missing prototypes.
1635 * riscix.c: Add missing prototypes.
1636
1637 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * elf32-i386.c: Add missing prototypes.
1640 * elf32-ppc.c: Likewise.
1641 * elf32-sh-lin.c: Likewise.
1642 * elfarm-nabi.c: Likewise.
1643
1644 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1645
1646 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1647 (elf_i386_grok_psinfo): New function.
1648 (elf_backend_grok_prstatus): Define.
1649 (elf_backend_grok_psinfo): Likewise.
1650 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1651 (ppc_elf_grok_psinfo): New function.
1652 (elf_backend_grok_prstatus): Define.
1653 (elf_backend_grok_psinfo): Likewise.
1654 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1655 (elf32_shlin_grok_psinfo): New function.
1656 (elf_backend_grok_prstatus): Define.
1657 (elf_backend_grok_psinfo): Likewise.
1658 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1659 (elf32_arm_nabi_grok_psinfo): New function.
1660 (elf_backend_grok_prstatus): Define.
1661 (elf_backend_grok_psinfo): Likewise.
1662
1663 2001-08-27 H.J. Lu <hjl@gnu.org>
1664
1665 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1666 sanity check.
1667 (mips_elf_calculate_relocation): Create dynamic relocation for
1668 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1669 bit is not set.
1670
1671 2001-08-27 H.J. Lu <hjl@gnu.org>
1672
1673 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1674 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1675 (_bfd_elf32_mips_grok_prstatus): Likewise.
1676 (_bfd_elf32_mips_grok_psinfo): Likewise.
1677 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1678 `struct mips_elf_link_hash_entry *'.
1679 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1680
1681 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1682
1683 * mipsbsd.c: Add missing prototypes.
1684 * hp300hpux.c: Add missing prototypes.
1685 * i386aout.c: Add missing prototypes.
1686 * i386lynx.c: Add missing prototypes.
1687 * i386mach3.c: Add missing prototypes.
1688 * i386msdos.c: Add missing prototypes.
1689 * i386os9k.c: Add missing prototypes.
1690
1691 2001-08-27 Linus Nordberg <linus@swox.se>
1692 Torbjorn Granlund <tege@swox.com>
1693 Staffan Ulfberg <staffanu@swox.se>
1694 Alan Modra <amodra@bigpond.net.au>
1695
1696 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1697 targ64_selvecs for 32 bit powerpc targets.
1698 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1699 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1700 Run "make dep-am".
1701 * Makefile.in: Regenerate.
1702 * configure.in: Add elf64_powerpc vecs.
1703 * configure: Regenerate.
1704 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1705 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1706 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1707 * elf64-ppc.c: New file.
1708 * reloc.c: Add powerpc64 relocs.
1709 * libbfd.h: Regenerate.
1710 * bfd-in2.h: Regenerate.
1711
1712 2001-08-27 Andreas Schwab <schwab@suse.de>
1713
1714 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1715 reloc is against read-only section.
1716 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1717 looking up section names for DT_TEXTREL.
1718 (elf32_m68k_reloc_type_class): New function.
1719 (elf_backend_reloc_type_class): Define.
1720
1721 2001-08-27 Andreas Jaeger <aj@suse.de>
1722
1723 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1724 reloc is against read-only section.
1725 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1726 looking up section names for DT_TEXTREL.
1727 (elf_s390_reloc_type_class): New.
1728 (elf_backend_reloc_type_class): Define.
1729
1730 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1731 reloc is against read-only section.
1732 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1733 looking up section names for DT_TEXTREL.
1734 (elf_s390_reloc_type_class): New.
1735 (elf_backend_reloc_type_class): Define.
1736
1737 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1738 is against read-only section.
1739 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1740 looking up section names for DT_TEXTREL.
1741 (ppc_elf_reloc_type_class): New.
1742 (elf_backend_reloc_type_class): Define.
1743
1744 2001-08-26 Andreas Jaeger <aj@suse.de>
1745
1746 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1747 reloc is against read-only section.
1748 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1749 looking up section names for DT_TEXTREL.
1750 (elf_cris_reloc_type_class): New.
1751 (elf_backend_reloc_type_class): Define.
1752
1753 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1754 against read-only section.
1755 (elf_backend_reloc_type_class): Define.
1756 (sh_elf_reloc_type_class): New.
1757 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1758 looking up section names for DT_TEXTREL.
1759
1760 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1761 reloc is against read-only section.
1762 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1763 looking up section names for DT_TEXTREL.
1764 (elf32_arm_reloc_type_class): New.
1765 (elf_backend_reloc_type_class): Define.
1766
1767 2001-08-25 Andreas Jaeger <aj@suse.de>
1768
1769 * oasys.c: Add missing prototypes.
1770
1771 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1772 attribute for parameter.
1773 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1774
1775 * versados.c (get_4): Make static.
1776 (get_10): Make static.
1777 Add missing prototypes.
1778 (process_esd): Fix call to versados_new_symbol.
1779
1780 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1781
1782 * coff-a29k.c: Add missing prototypes.
1783 * coff-apollo.c: Add missing prototypes.
1784 * coff-arm.c: Add missing prototypes.
1785 * coff-i860.c: Add missing prototypes.
1786 * coff-rs6000.c: Add missing prototypes.
1787 * coff-tic80.c: Add missing prototypes.
1788 * elf-m10200.c: Add missing prototypes.
1789 * elf-m10300.c: Add missing prototypes.
1790 * elf32-arm.h: Add missing prototypes.
1791 * elf32-d10v.c: Add missing prototypes.
1792 * elf32-m32r.c: Add missing prototypes.
1793 * elf32-mcore.c: Add missing prototypes.
1794 * elf32-openrisc.c: Add missing prototypes.
1795 * elf32-sh.c: Add missing prototypes.
1796 * elf32-sparc.c: Add missing prototypes.
1797 * elf32-v850.c: Add missing prototypes.
1798 * elfarm-nabi.c: Add missing prototypes.
1799 * elfarm-oabi.c: Add missing prototypes.
1800
1801 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1802
1803 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1804 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1805
1806 2001-08-24 H.J. Lu <hjl@gnu.org>
1807
1808 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1809 hash structure.
1810
1811 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1812
1813 * elf-bfd.h (elf_hash_table): Revert definition.
1814 (is_elf_hash_table): New macro.
1815 * elflink.h (elf_link_add_object_symbols): Test
1816 is_elf_hash_table before accessing ELF only fields in hash
1817 structure.
1818 (elf_link_create_dynamic_sections): Fail if not using an ELF
1819 hash structure.
1820 (elf_add_dynamic_entry): Fail if not using an ELF hash
1821 structure.
1822 (elf_link_record_local_dynamic_symbol): Fail if not using an
1823 ELF hash structure.
1824 (size_dynamic_sections): Fail if not using an ELF hash
1825 structure.
1826 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1827 hash structure.
1828 (elf_bfd_final_link): Fail if not using an ELF hash
1829 structure.
1830
1831 2001-08-24 H.J. Lu <hjl@gnu.org>
1832
1833 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1834 table is not an ELF linker hash table.
1835
1836 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1837 table type to bfd_link_elf_hash_table.
1838
1839 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1840 the last change.
1841
1842 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1843 table type to bfd_link_generic_hash_table.
1844
1845 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1846
1847 * bfd.c (bfd_alt_mach_code): New function.
1848 * bfd-in2.h: Rebuilt.
1849
1850 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1851
1852 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1853 `type' field in the hash entry when deciding whether to follow a
1854 link.
1855
1856 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1857
1858 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1859 last.
1860 (elf_link_sort_relocs): Adjust accordingly.
1861
1862 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1863 (elf64_alpha_check_relocs): Set it if section this reloc is against
1864 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1865 read-only section.
1866 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1867 is is against read-only section.
1868 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1869 check section names.
1870 (elf64_alpha_reloc_type_class): New.
1871 (elf_backend_reloc_type_class): Define.
1872
1873 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1874
1875 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1876 by bfd_malloc().
1877
1878 2001-08-23 Andreas Jaeger <aj@suse.de>
1879
1880 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1881 the reloc is against read-only section.
1882 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1883 of looking up section names for DT_TEXTREL.
1884 (elf64_x86_64_reloc_type_class): New.
1885 (elf_backend_reloc_type_class): Define.
1886
1887 2001-08-23 H.J. Lu <hjl@gnu.org>
1888
1889 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1890 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1891
1892 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1893 bfd_print_symbol_vandf.
1894 * coffgen.c (coff_print_symbol): Likewise.
1895 * elf.c (bfd_elf_print_symbol): Likewise.
1896 * ieee.c (ieee_print_symbol): Likewise.
1897 * nlmcode.h (nlm_print_symbol): Likewise.
1898 * oasys.c (oasys_print_symbol): Likewise.
1899 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1900 * som.c (som_print_symbol): Likewise.
1901 * srec.c (srec_print_symbol): Likewise.
1902 * tekhex.c (tekhex_print_symbol): Likewise.
1903 * versados.c (versados_print_symbol): Likewise.
1904 * vms.c (vms_print_symbol): Likewise.
1905
1906 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1907 with bfd_fprintf_vma.
1908 (bfd_elf_print_symbol): Likewise.
1909 * syms.c (bfd_print_symbol_vandf): Likewise.
1910
1911 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1912
1913 * aoutf1.h (sunos_write_object_contents): Silence compile time
1914 warning.
1915 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1916
1917 * bout.c: Add missing function prototypes. Fix formatting.
1918 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1919 * coff-w65.c: Add missing function prototypes. Fix formatting.
1920 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1921 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1922 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1923 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1924 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1925 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1926 * coff-sh.c: Add missing function prototypes. Fix formatting.
1927
1928 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1929
1930 * elf-bfd.h (enum elf_reloc_type_class): New.
1931 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1932 (_bfd_elf_reloc_type_class): New.
1933 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1934 (elfNN_bed): Add elf_backend_reloc_type_class.
1935 * elf.c (_bfd_elf_reloc_type_class): New.
1936 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1937 is against read-only section.
1938 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1939 looking up section names for DT_TEXTREL.
1940 (elf_i386_reloc_type_class): New.
1941 (elf_backend_reloc_type_class): Define.
1942 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1943 reloc is against read-only section.
1944 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1945 looking up section names for DT_TEXTREL.
1946 (elf32_sparc_reloc_type_class): New.
1947 (elf_backend_reloc_type_class): Define.
1948 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1949 reloc is against read-only section.
1950 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1951 looking up section names for DT_TEXTREL.
1952 (sparc64_elf_reloc_type_class): New.
1953 (elf_backend_reloc_type_class): Define.
1954 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1955 (elfNN_ia64_hash_table_create): Clear ia64_info.
1956 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1957 section.
1958 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1959 instead of looking up section names for DT_TEXTREL.
1960 (elfNN_ia64_reloc_type_class): New.
1961 (elf_backend_reloc_type_class): Define.
1962 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1963 (struct elf_link_sort_rela): New.
1964 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1965 (elf_bfd_final_link): Call elf_link_sort_relocs.
1966 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1967 necessary.
1968
1969 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1970
1971 * configure.in (x86-bsdi): No corefile support.
1972 * configure: Regenerate.
1973
1974 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1975
1976 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1977 comma.
1978
1979 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1980
1981 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1982 the alignment of dwarf2 linkonce sections to 0.
1983 * coff-sto32.c: Likewise.
1984
1985 2001-08-20 Andreas Jaeger <aj@suse.de>
1986
1987 * coff-sparc.c: Add missing prototypes.
1988 * elf32-s390.c: Likewise.
1989 * elf32-i960.c: Likewise.
1990 * aout-target.h: Likewise.
1991
1992 2001-08-20 H.J. Lu <hjl@gnu.org>
1993
1994 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1995 (elf_num_section_syms): New for num_section_syms.
1996
1997 * elf.c (elf_map_symbols): Set num_section_syms.
1998 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1999 the section symbol index.
2000
2001 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2002
2003 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2004 select the generic has table creator. All elf backends need elf
2005 specific fields in the hash table.
2006
2007 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2008
2009 * archive.c (offsetof): Remove define.
2010 * elf.c: Likewise.
2011 * oasys.c: Likewise
2012 * sysdep.h (offsetof): Define.
2013
2014 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2015
2016 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2017 (bfd_set_gp_size): Make param unsigned.
2018 * bfd-in2.h: Regenerate.
2019 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2020 than calling bfd_get_gp_size.
2021 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2022 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2023
2024 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2025
2026 * linker.c (default_fill_link_order): Handle four byte fill value.
2027
2028 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2029
2030 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2031 prototype.
2032 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2033
2034 * elf64-mips.c (UNUSED_RELOC): Define.
2035 (mips_elf64_howto_table_rel): Use it.
2036 (mips_elf64_howto_table_rela): Here too.
2037 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2038
2039 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2040 silence warning.
2041 * coffgen.c (coff_print_symbol): Fix warnings.
2042 (coff_find_nearest_line): Likewise.
2043 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2044 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2045 * format.c (bfd_check_format_matches): Likewise.
2046 (bfd_set_format): Likewise.
2047 * coff-ia64.c: Add missing prototypes.
2048 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2049 signed to silence warnings.
2050 (elf64_alpha_relocate_section): Likewise.
2051 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2052 (elf64_alpha_add_symbol_hook): Likewise.
2053 (elf64_alpha_final_link): Likewise.
2054 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2055 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2056 (elf64_alpha_size_got_sections): Likewise.
2057 * elfxx-ia64.c: Add missing prototypes.
2058 (elfNN_ia64_relocate_section): Fix warning.
2059 (elfNN_ia64_unwind_entry_compare): Make params const.
2060
2061 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2062
2063 * config.bfd (targ64_selvecs): New.
2064 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2065
2066 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2067 (BFD_DEFAULT_TARGET_SIZE): New.
2068 (BFD_ARCH_SIZE): Comment.
2069 * configure.in (target_size): New. Set instead of target64 in
2070 selvecs case statement. Set target64 from it.
2071 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2072 * bfd-in2.h: Regenerate.
2073 * configure: Regenerate.
2074
2075 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2076
2077 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2078 (bfd_errmsgs): Add corresponding message.
2079 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2080 finding an archive that contains different format object files.
2081 Return bfd_error_wrong_object_format for this case.
2082 * format.c: Formatting fixes. s/CONST/const/.
2083 (bfd_check_format_matches): Accept archives that give
2084 bfd_error_wrong_object_format if no full match is found. Tidy
2085 code handling matching_vector. Don't return a pointer to freed
2086 memory in `matching'. Handle ambiguous matches as for partial
2087 archive matches.
2088 * bfd-in2.h: Regenerate.
2089
2090 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2091
2092 * libieee.h (common_header_type): Add last_byte field.
2093
2094 * ieee.c: Add missing prototypes. Some format fixes.
2095 (struct output_buffer_struct): Move for availability to prototypes.
2096 (ieee_part_after): New function.
2097 (ieee_slurp_debug): Use it here.
2098 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2099 ieee_part_after to set last_byte to one past end of current part.
2100 Update callers.
2101 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2102 Update callers.
2103 (parse_expression): Don't go beyond the end of the current part.
2104 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2105 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2106 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2107 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2108 ieee_set_section_contents, ieee_write_object_contents,
2109 ieee_make_empty_symbol): Make static.
2110 (ieee_archive_p): Correct comments regarding bfd_read.
2111 (ieee_object_p): Similarly.
2112 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2113 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2114 input_bfd, output_bfd, output_buffer.
2115 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2116 do_with_relocs, ie. as a symbol for relocatable files.
2117 (ieee_vec): Add comments showing functions referenced by macros.
2118
2119 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2120
2121 * aout-tic30.c: Add missing prototypes. Fix formatting.
2122 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2123 * peXXigen.c: Add missining prototypes. Fix formatting.
2124 * aout-adobe.c: Add missining prototypes. Fix formatting.
2125
2126 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2127
2128 * elf32-v850.c: Add missing function prototypes.
2129 Fix some formatting.
2130
2131 * cpu-v850.c: Add missing function prototype.
2132 Fix some formatting.
2133
2134 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2135
2136 * elf-bfd.h (struct elf_backend_data): Add new fields
2137 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2138 (bfd_elf_sprintf_vma): Rename function prototype to
2139 '_bfd_elf_sprintf_vma'.
2140 (bfd_elf_fprintf_vma): Rename function prototype to
2141 '_bfd_elf_fprintf_vma'.
2142 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2143 directly, instead indirect via the elf_backend_data structure.
2144 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2145 instead indirect via the elf_backend_data structure.
2146 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2147 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2148 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2149 already defined.
2150 (elf_backend_fprintf_vma): Initialise if not already defined.
2151 (struct elf_backend_data): Initialise the
2152 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2153
2154 2001-08-10 Andreas Jaeger <aj@suse.de>
2155
2156 * elf64-sparc.c: Add missing prototypes.
2157 * elf32-cris.c: Likewise.
2158 * elf32-i370.c: Likewise.
2159 * elf64-hppa.c: Likewise.
2160 * elf64-s390.c: Likewise.
2161
2162 2001-08-10 Andreas Jaeger <aj@suse.de>
2163
2164 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2165 Add prototypes where needed.
2166
2167 2001-08-10 H.J. Lu <hjl@gnu.org>
2168
2169 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2170 (bfd_fprintf_vma): Likewise.
2171
2172 2001-08-10 H.J. Lu <hjl@gnu.org>
2173
2174 * bfd.c (bfd_sprintf_vma): Don't return void.
2175 (bfd_fprintf_vma): Likewise.
2176
2177 2001-08-10 Andreas Jaeger <aj@suse.de>
2178
2179 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2180 to build warnings.
2181 * configure: Regenerate.
2182
2183 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2184
2185 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2186 warning if not BFD64. Add braces so emacs auto format works.
2187 (bfd_elf_fprintf_vma): Likewise.
2188
2189 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2190 of _xcoff_swap_ld*.
2191 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2192 param to agree with libxcoff.h.
2193 (xcoff_swap_ldhdr_out): Likewise.
2194 (xcoff_swap_ldsym_in): Likewise.
2195 (xcoff_swap_ldsym_out): Likewise.
2196 (xcoff_swap_ldrel_in): Likewise.
2197 (xcoff_swap_ldrel_out): Likewise.
2198 (xcoff_create_csect_from_smclas): Likewise.
2199 * coff64-rs6000.c: Add missing prototypes.
2200 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2201 with libxcoff.h.
2202 (xcoff64_swap_ldhdr_out): Likewise.
2203 (xcoff64_swap_ldsym_in): Likewise.
2204 (xcoff64_swap_ldsym_out): Likewise.
2205 (xcoff64_swap_ldrel_in): Likewise.
2206 (xcoff64_swap_ldrel_out): Likewise.
2207 (xcoff64_ppc_relocate_section): Make static.
2208 (xcoff64_slurp_armap): Likewise.
2209 (xcoff64_archive_p): Likewise.
2210 (xcoff64_openr_next_archived_file): Likewise.
2211 (xcoff64_sizeof_headers): Likewise.
2212 (xcoff64_is_lineno_count_overflow): Likewise.
2213 (xcoff64_is_reloc_count_overflow): Likewise.
2214 (xcoff64_loader_symbol_offset): Likewise.
2215 (xcoff64_loader_reloc_offset): Likewise.
2216 * elf64-gen.c: Add missing prototypes.
2217
2218 2001-08-09 H.J. Lu <hjl@gnu.org>
2219
2220 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2221 (bfd_elf_fprintf_vma): Likewise.
2222
2223 2001-08-09 H.J. Lu <hjl@gnu.org>
2224
2225 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2226 to ...
2227 * elf-bfd.h: Here.
2228 * bfd-in2.h: Regenerated.
2229
2230 2001-08-09 H.J. Lu <hjl@gnu.org>
2231
2232 * bfd-in.h (bfd_sprintf_vma): New prototype.
2233 (bfd_fprintf_vma): Likewise.
2234 (bfd_elf_sprintf_vma): Likewise.
2235 (bfd_elf_fprintf_vma): Likewise.
2236 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2237 * bfd-in2.h: Regenerated.
2238
2239 * bfd.c (bfd_sprintf_vma): New. Defined.
2240 (bfd_fprintf_vma): Likewise.
2241
2242 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2243 (bfd_elf_fprintf_vma): Likewise.
2244
2245 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2246
2247 * coff-rs6000.c: Add missing prototypes.
2248 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2249 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2250 xcoff_loader_reloc_offset): Make static.
2251 * dwarf1.c: Add missing prototypes.
2252 * dwarf2.c: Add missing prototypes.
2253 (struct abbrev_info): Move definition.
2254 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2255 * elf.c: Add missing prototypes.
2256 * elf32-gen.c: Likewise.
2257 * elf32-i386.c: Likewise.
2258 * elf32-ppc.c: Likewise.
2259 (ppc_elf_sort_rela): Use PTR instead of "void *".
2260 * elflink.h: Add missing prototypes. Formatting fixes.
2261 * merge.c: Add missing prototypes.
2262 (last4_eq): Use PTR instead of "void *".
2263 (last_eq): Likewise.
2264 * syms.c: Add missing prototypes.
2265
2266 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2267
2268 * bfd.c: Fix formatting.
2269 * bfd-in2.h: Regenerate.
2270
2271 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2272
2273 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2274 true (this target uses REL relocations) and 'pcrel_offset' to
2275 false (the PC is implied, not stored in the offset).
2276
2277 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2278
2279 1999-10-19 Linus Nordberg <linus@swox.se>
2280 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2281 * elfxx-target.h (elf_backend_want_got_sym): Define.
2282 (elfNN_bed): Add elf_backend_want_got_sym.
2283 * elflink.c (_bfd_elf_create_got_section): Define
2284 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2285
2286 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2287
2288 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2289 (find_rela_addend): New function.
2290 (parse_comp_unit): Call it to find the abbrev offset addend.
2291 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2292 members of dwarf2_debug as debugging information is read.
2293
2294 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2295
2296 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2297 targets as well as sh-pe.
2298
2299 2001-08-03 Ben Harris <bjh21@netbsd.org>
2300
2301 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2302 reloc from start of section when computing value for R_ARM_REL32
2303 reloc.
2304
2305 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2306
2307 From H.J. Lu <hjl@gnu.org>
2308 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2309 keep relocs for undefined syms if there are no dynamic sections in
2310 executable.
2311 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2312
2313 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2314
2315 * cofflink.c (coff_link_check_ar_symbols): also search for
2316 __imp__symbol as well as _symbol.
2317 * linker.c (_bfd_generic_link_add_archive_symbols): also
2318 search for __imp__symbol as well as _symbol.
2319
2320 2001-08-01 Adam Nemet <anemet@lnxw.com>
2321
2322 * elf.c (elf_sort_sections): Return zero only as the last step.
2323
2324 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2325
2326 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2327 ARM_COFF_BUGFIX.
2328 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2329 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2330 ARM_COFF_BUGFIX.
2331
2332 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2333
2334 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2335 to match corresponding bfd_coff_backend data member.
2336
2337 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2338
2339 * Makefile.am: Update dependencies with "make dep-am".
2340 * Makefile.in: Regenerate
2341
2342 2001-07-15 H.J. Lu <hjl@gnu.org>
2343
2344 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2345 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2346 * Makefile.in: Regenerate.
2347
2348 2001-07-11 H.J. Lu <hjl@gnu.org>
2349
2350 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2351 flags when creating the reloc section if the ALLOC flag in the
2352 source section is set.
2353
2354 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2355
2356 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2357 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2358 * bfd-in2.h: Regenerate.
2359 * libbfd.h: Regenerate.
2360 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2361 new relocations.
2362 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2363 (elfNN_ia64_check_relocs): Likewise.
2364 (elfNN_ia64_install_value): Likewise.
2365 (elfNN_ia64_relocate_section): Likewise.
2366
2367 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2368
2369 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2370 R_SPARC_UA64.
2371 (elf32_sparc_check_relocs): Likewise.
2372 Only create .rela section for alloced sections in shared libraries.
2373 (elf32_sparc_relocate_section): Likewise.
2374 Remove redundant check.
2375 Optimize unaligned reloc usage.
2376 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2377 check.
2378
2379 2001-07-11 H.J. Lu <hjl@gnu.org>
2380
2381 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2382 ALLOC|LOAD flags as the source section for debugging sections
2383 when creating the reloc section.
2384
2385 2001-07-05 Jim Wilson <wilson@redhat.com>
2386
2387 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2388 the section of the bigger symbol.
2389
2390 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2391
2392 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2393
2394 * peicode.h (coff_swap_scnhdr_in): For sections containing
2395 uninitialised data, only set their size to s_paddr if this does
2396 not reset their size to zero. MS's latest compilers will set
2397 s_paddr to zero.
2398
2399 2001-07-04 H.J. Lu <hjl@gnu.org>
2400
2401 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2402 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2403 bfd_mach_mips5000.
2404
2405 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2406
2407 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2408
2409 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2410 sections being discarded.
2411
2412 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2413
2414 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2415 instead of _bfd_elfcore_section_from_phdr.
2416 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2417 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2418 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2419 (elfcore_grok_prstatus): Likewise.
2420 (elfcore_grok_lwpstatus): Likewise.
2421 (bfd_get_elf_phdr_upper_bound): Likewise.
2422 (elfcore_make_note_pseudosection): Formatting.
2423 (_bfd_elfcore_strndup): Formatting.
2424 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2425 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2426
2427 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2428
2429 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2430 and _bfd_elfcore_strndup.
2431 (struct elf_backend_data): Add elf_backend_grok_prstatus
2432 and elf_backend_grok_psinfo.
2433 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2434 (elfcore_grok_prstatus): Use it.
2435 (elfcore_make_note_pseudosection): Likewise.
2436 (elfcore_strndup): Rename to...
2437 (_bfd_elfcore_strndup): Here, and make global.
2438 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2439 (elfcore_grok_note): Call elf_backend_grok_prstatus
2440 and elf_backend_grok_psinfo if available.
2441 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2442 (_bfd_elf32_mips_grok_psinfo): New function.
2443 (elf_backend_grok_prstatus): Define.
2444 (elf_backend_grok_psinfo): Define.
2445 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2446 (elf_backend_grok_psinfo): Likewise.
2447 (elfNN_bed): Include elf_backend_grok_prstatus and
2448 elf_backend_grok_psinfo.
2449
2450 2001-06-29 H.J. Lu <hjl@gnu.org>
2451
2452 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2453 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2454 is NULL before filling PLT.
2455
2456 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2457
2458 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2459
2460 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2461
2462 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2463 here..
2464 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2465 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2466 after gc has run.
2467
2468 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2469 (IS_ABSOLUTE_RELOC): Define.
2470 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2471 (hppa_link_hash_newfunc): Always init it.
2472 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2473 create COPY relocs only when the reloc is in a read-only section.
2474 Instead, allocate space for a dynamic reloc to reference the
2475 library symbol directly. Keep track of space we allocate using
2476 relocs_entries.
2477 (hppa_discard_copies): Delete, and move code to..
2478 (allocate_plt_and_got): ..here. Rename to
2479 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2480 relocs for non-shared link.
2481 (elf32_hppa_size_dynamic_sections): Update calls to above.
2482 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2483 in lieu of COPY relocs.
2484
2485 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2486 here..
2487 (elf_i386_adjust_dynamic_symbol): ..nor here..
2488 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2489 after gc has run.
2490 (elf_i386_size_dynamic_sections): Fix a comment.
2491 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2492 involved in writing reloc out.
2493
2494 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2495
2496 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2497 Ensure syms are dynamic if we might be emitting a reloc.
2498 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2499 for undefweak or undefined syms..
2500 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2501
2502 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2503 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2504 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2505 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2506
2507 2001-06-24 H.J. Lu <hjl@gnu.org>
2508
2509 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2510 strncasecmp/strcasecmp instead of strncmp/strcmp.
2511
2512 2001-06-23 H.J. Lu <hjl@gnu.org>
2513
2514 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2515 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2516 in the regular object file and treat the weak definition as
2517 the normal one.
2518
2519 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2520
2521 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2522 unresolved_reloc test to exclude cases where we use "relocation"
2523 before setting it to point into the .got. Reinstate fudge for
2524 unresolved relocs in debugging sections.
2525
2526 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2527 complicated tests for unresolvable relocs with a simple direct
2528 scheme using "unresolved_reloc" var.
2529
2530 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2531 elf_i386_dyn_relocs. Update comment.
2532 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2533 dyn_relocs.
2534 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2535 others to aborts.
2536 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2537 abort.
2538 (elf_i386_size_dynamic_sections): Likewise.
2539 (elf_i386_finish_dynamic_symbol): Likewise.
2540 (elf_i386_finish_dynamic_sections): Likewise.
2541 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2542 handling code.
2543
2544 Avoid creating COPY relocs if possible.
2545 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2546 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2547 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2548 reloc is in a read-only section. Instead, allocate space for a
2549 dynamic reloc to reference the library symbol directly. Keep
2550 track of space we allocate using pcrel_relocs_copied.
2551 (discard_copies): Delete, and move code to ..
2552 (allocate_plt_and_got): ..here. Rename to
2553 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2554 relocs for non-shared link.
2555 (elf_i386_size_dynamic_sections): Update calls to above functions.
2556 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2557 more ugly logic to avoid "unresolvable relocation" error. Use
2558 htab shortcut in place of elf_hash_table macro.
2559 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2560 not always be created now.
2561
2562 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2563
2564 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2565 shared libraries.
2566
2567 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2568
2569 * configure.host (mips64-*-linux): Reformat.
2570
2571 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2572
2573 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2574 allocate local .got space. Use shortcuts from hash table for .got
2575 and .plt rather than comparing section names.
2576 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2577 adjusting index into local_got_refcounts to document what we are
2578 really doing.
2579 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2580 Tidy .got and .plt error checking.
2581
2582 2001-06-20 Catherine Moore <clm@redhat.com>
2583
2584 * elf-bfd.h (struct elf_backend_data):
2585 elf_backend_emit_relocs: New field: Function for emitting
2586 relocs.
2587 elf_backend_count_relocs: New field: Function for determining
2588 the number of relocs to be emitted.
2589 * elfxx-target.h: Provide default (NULL) values for
2590 elf_backend_emit_relocs and elf_backend_count_relocs.
2591 * elflink.h (elf_link_size_reloc_section): Make the hash table
2592 big enough to hold the relocs counted by either reloc_count or
2593 o->reloc_count.
2594 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2595 should be emitted, either because of a command line option
2596 stored in the info structure or because the target provides a
2597 special reloc emitting function.
2598 If the target provides a reloc counting function use it,
2599 unless performing a relocatable link or emitting all relocs.
2600 Also set the SEC_RELOC flag on any output section which will
2601 contain relocs.
2602 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2603 should be emitted, either because of a command line option
2604 stored in the info structure or because the target provides a
2605 special reloc emitting function.
2606 If the target provides a reloc emitting function, use it,
2607 unless performing a relocatable link or emitting all relocs.
2608
2609 2001-06-20 H.J. Lu <hjl@gnu.org>
2610
2611 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2612 allocate local .got space.
2613
2614 2001-06-19 Andreas Jaeger <aj@suse.de>
2615
2616 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2617 dynamic symbols.
2618
2619 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2620
2621 * elflink.h (struct elf_assign_sym_version_info): Remove member
2622 export_dynamic. All users changed to use info member.
2623 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2624 export_dynamic, instead use member in parameter info.
2625 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2626 bfd_elf64_size_dynamic_sections): Update prototype.
2627 * bfd-in2.h: Regenerate.
2628
2629 2001-06-18 H.J. Lu <hjl@gnu.org>
2630
2631 * elflink.h (elf_info_failed): Add a new field, verdefs.
2632 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2633 elf_export_symbol.
2634 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2635 should be exported.
2636
2637 2001-06-17 H.J. Lu <hjl@gnu.org>
2638
2639 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2640 readonly_reloc, to record if a relocation in the .rel.dyn
2641 section is against a read-only section.
2642 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2643 field to false.
2644 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2645 in the .rel.dyn section against a read-only section by setting
2646 DF_TEXTREL or readonly_reloc.
2647 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2648 it is true.
2649 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2650 there is a relocation in the .rel.dyn section against a
2651 read-only section.
2652 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2653 DF_TEXTREL is set.
2654
2655 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2656
2657 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2658 function. Move flagword result into parameter list. Remove
2659 comment about setting bfd_error_handler to intercept failure
2660 results.
2661 * coffgen.c (make_a_section_from_file): Examine result of
2662 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2663 caller.
2664 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2665 function. Move flagword result into parameter list.
2666 * libcoff.h: Regenerate.
2667 * libecoff.h: Regenerate.
2668
2669 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2670
2671 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2672 section is going to follow it.
2673
2674 2001-06-12 Catherine Moore <clm@redhat.com>
2675
2676 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2677 with the file_align entry from elf_backend_data.
2678 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2679 (elf_gc_record_vtentry): Likewise.
2680
2681 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2682
2683 * elflink.h: Whitespace changes.
2684 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2685 rather than "unsigned char".
2686 (elf_link_output_relocs): Likewise.
2687 (elf_link_input_bfd): Likewise.
2688 (elf_reloc_link_order): LIkewise.
2689 * elf.c: s/CONST/const/. Whitespace changes.
2690 * elf32-mips.c: Formatting fix.
2691
2692 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2693 * Makefile.in: Regenerate.
2694 * po/Make-in: Remove trailing tab.
2695
2696 2001-06-09 Philip Blundell <philb@gnu.org>
2697
2698 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2699 change.
2700 (elf32_arm_plt_entry): Likewise.
2701
2702 2001-06-08 H.J. Lu <hjl@gnu.org>
2703
2704 * elf.c (swap_out_syms): Keep names for global section symbols.
2705
2706 2001-06-07 H.J. Lu <hjl@gnu.org>
2707
2708 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2709 MIPS-based machines need it.
2710
2711 2001-06-07 H.J. Lu <hjl@gnu.org>
2712
2713 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2714 for SGI only.
2715
2716 * config.bfd: Remove ecoff from Linux/mips.
2717
2718 2001-06-07 Andreas Jaeger <aj@suse.de>
2719
2720 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2721 assertion.
2722 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2723 alignment of 8 for .rela sections; handle further relocations.
2724
2725 2001-06-06 Christian Groessler <cpg@aladdin.de>
2726
2727 * coff-z8k.c: Fix formatting.
2728 Fix howtos: howto->size was always 1.
2729
2730 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2731
2732 * configure.host (mips64*-*-linux*): Define.
2733
2734 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2735
2736 * elf32-i386.c (elf_i386_discard_copies): Rename to
2737 discard_copies, and use elf_link_hash_entry arg rather than
2738 elf_i386_link_hash_entry.
2739 (elf_i386_link_hash_traverse): Delete.
2740 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2741 Tidy sizing of dynamic sections.
2742 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2743 possible .plt entries.
2744 (elf_i386_gc_sweep_hook): Likewise.
2745 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2746 everything with plt.refcount <= 0.
2747
2748 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2749 .relgot space here.
2750 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2751 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2752 .rel.plt here..
2753 (allocate_plt_and_got): ..instead do it all here. New function.
2754 (elf_i386_size_dynamic_sections): Allocate local .got space and
2755 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2756 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2757 rather than gc variety).
2758 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2759 (elf_i386_relocate_section): Use it here and correct handling of
2760 R_386_GOT32. Provide section and offset for "unresolvable
2761 relocation" error message.
2762 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2763
2764 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2765 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2766 (elf_i386_link_hash_table_create): Init them.
2767 (create_got_section): New function.
2768 (elf_i386_create_dynamic_sections): New function.
2769 (elf_backend_create_dynamic_sections): Set to above.
2770 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2771 calling bfd_get_section_by_name.
2772 (elf_i386_gc_sweep_hook): Likewise.
2773 (elf_i386_adjust_dynamic_symbol): Likewise.
2774 (elf_i386_size_dynamic_sections): Likewise.
2775 (elf_i386_relocate_section): Likewise.
2776 (elf_i386_finish_dynamic_sections): Likewise.
2777
2778 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2779
2780 2001-06-02 H.J. Lu <hjl@gnu.org>
2781
2782 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2783 and ELFOSABI_HPUX.
2784 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2785
2786 2001-06-02 H.J. Lu <hjl@gnu.org>
2787
2788 * aout-cris.c (MACHTYPE_OK): New. Defined.
2789
2790 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2791
2792 * section.c (_bfd_strip_section_from_output): Handle NULL
2793 output_section.
2794
2795 2001-06-02 H.J. Lu <hjl@gnu.org>
2796
2797 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2798 rs6000coff64_vec only if BFD64 is defined.
2799 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2800
2801 2001-06-02 H.J. Lu <hjl@gnu.org>
2802
2803 * coff-ia64.c (ia64coff_object_p): Rewrite with
2804 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2805
2806 2001-06-01 Andreas Jaeger <aj@suse.de>
2807
2808 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2809 relocation, small reformatting.
2810
2811 2001-05-29 Andreas Jaeger <aj@suse.de>
2812
2813 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2814 (elf64_x86_64_relocate_section): Likewise.
2815
2816 2001-05-30 Alan Modra <amodra@one.net.au>
2817
2818 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2819 millicode. Don't allocate .got and .rela.got space here..
2820 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2821 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2822 .rela.plt here..
2823 (hppa_handle_PIC_calls): ..nor here..
2824 (allocate_plt_and_got): ..instead do it all here. New function.
2825 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2826 call allocate_plt_and_got. No need to zap .got if not dynamic.
2827 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2828 gc_common_final_link.
2829 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2830 (elf32_hppa_relocate_section): Use it here.
2831 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2832 dynamic_sections_created.
2833 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2834
2835 2001-05-28 Andreas Jaeger <aj@suse.de>
2836
2837 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2838 generic version since we want a hashsize of 4.
2839 (elf_backend_size_info): Likewise.
2840
2841 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2842
2843 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2844 a zeroing loop.
2845 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2846 (elf_link_input_bfd): Likewise.
2847 (elf_reloc_link_order): Likewise.
2848 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2849 relocations correctly.
2850
2851 2001-05-28 Nicolas Pitre <nico@cam.org>
2852
2853 * elf32-arm.h: fix PLT generation for big endian ARM
2854
2855 2001-05-28 Alan Modra <amodra@one.net.au>
2856
2857 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2858 for symbols forced local that need plabels.
2859 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2860 .plt.rela for local syms if non-shared.
2861 (hppa_build_one_stub): Mask lsb of plt.offset.
2862 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2863 (clobber_millicode_symbols): Correct comment.
2864 (elf32_hppa_relocate_section): Likewise.
2865 (elf32_hppa_finish_dynamic_symbol): Likewise.
2866
2867 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2868
2869 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2870 * bfd-in2.h: Regenerate.
2871 * libbfd.h: Regenerate.
2872 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2873 and BFD_RELOC_SPARC_UA64 mapping
2874 * elf64-sparc.c: Likewise.
2875
2876 2001-05-25 H.J. Lu <hjl@gnu.org>
2877
2878 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2879 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2880 (coff-rs6000.lo): Remove the old dependency.
2881 * Makefile.in: Rebuild.
2882
2883 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2884 coff-rs6000.lo.
2885
2886 2001-05-25 H.J. Lu <hjl@gnu.org>
2887
2888 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2889 rs6000coff_core_file_matches_executable_p,
2890 rs6000coff_core_file_failing_command and
2891 rs6000coff_core_file_failing_signal only if AIX_CORE is
2892 defined.
2893 (pmac_xcoff_vec): Likewise.
2894 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2895
2896 2001-05-25 Timothy Wall <twall@redhat.com>
2897
2898 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2899 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2900
2901 2001-05-25 H.J. Lu <hjl@gnu.org>
2902
2903 * bfd-in2.h: Regenerated.
2904 * libcoff.h: Likewise.
2905
2906 2001-05-25 Alan Modra <amodra@one.net.au>
2907
2908 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2909 undefined millicode syms in shared libs.
2910 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2911 (elf32_hppa_check_relocs): Likewise.
2912 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2913 (elf32_hppa_size_dynamic_sections): Likewise.
2914 (elf32_hppa_relocate_section): Likewise.
2915 (elf32_hppa_finish_dynamic_symbol): Likewise.
2916 (elf32_hppa_finish_dynamic_sections): Likewise.
2917
2918 2001-05-24 Tom Rix <trix@redhat.com>
2919
2920 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2921 xcoff-target.h not used to define rs6000 or ppc bfd.
2922 * Makefile.in same
2923
2924 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2925 to 64 bit.
2926
2927 * coff-rs6000.c : Many changes for 64 bit support. Move common
2928 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2929 and pmac_xcoff_vec
2930
2931 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2932 linker now supported. Explictly define the rs6000coff64_vec.
2933
2934 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2935 (coff_print_aux) same
2936 (coff_write_object_contents) same
2937 (coff_slurp_line_table) same
2938
2939 * coffgen.c : (coff_fix_symbol_name) formatting
2940 (coff_mangle_symbols) xcoff 64 bit support
2941 (coff_write_symbol) same
2942 (coff_write_alien_symbol) same
2943 (coff_write_native_symbol) same
2944 (coff_write_symbols) same
2945 (coff_get_symbol_info) same
2946 (bfd_coff_get_syment) same
2947 (coff_print_symbol) same
2948
2949 * config.bfd : add powerpc64-*-aix* target
2950
2951 * libcoff-in.h : formatting
2952
2953 * libcoff.h : move xcoff extern declarations to libxcoff.h
2954
2955 * libxcoff.h : New file
2956
2957 * xcofflink.c : Many changes for xcoff64 support. Move common
2958 structures to include/coff/xcoff.h. Move specific structure to
2959 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2960 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2961
2962 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2963 aix4.2+ -binitfini.
2964
2965 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2966
2967 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2968
2969 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2970 s/ENTIRES/ENTRIES/.
2971
2972 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2973
2974 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2975 * libbfd.h: Regenerate.
2976 * bfd-in2.h: Regenerate.
2977
2978 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2979 * archures.c (bfd_mach_mips12000): Define.
2980 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2981 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2982 support.
2983 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2984 * bfd-in2.h: Regenerate.
2985 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2986
2987 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2988
2989 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2990 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2991 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2992 that is used by GCC.
2993
2994 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2995
2996 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2997 of entries in a structured section.
2998 * elf.c: Use new macro.
2999 * elf32-i386.c: Use new macro.
3000 * elf32-mips.c: Use new macro.
3001 * elf64-alpha.c: Use new macro.
3002 * elf64-sparc.c: Use new macro.
3003 * elfcode.h: Use new macro.
3004 * elflink.h: Use new macro.
3005
3006 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3007
3008 * bfdint.texi: Replace -oformat with --oformat.
3009
3010 2001-05-21 Andreas Jaeger <aj@suse.de>
3011
3012 * dwarf2.c (decode_line_info): Fix error message.
3013 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3014 adjust error message.
3015
3016 2001-05-18 H.J. Lu <hjl@gnu.org>
3017
3018 * elflink.h (elf_link_add_object_symbols): Revert the last
3019 change.
3020
3021 2001-05-17 Alan Modra <amodra@one.net.au>
3022
3023 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3024 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3025 (hppa_build_one_stub): Add an assert to check plt.offset.
3026
3027 2001-05-17 H.J. Lu <hjl@gnu.org>
3028
3029 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3030 version definition to basename of the output filename.
3031
3032 2001-05-17 H.J. Lu <hjl@gnu.org>
3033
3034 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3035 basename of the bfd filename.
3036
3037 2001-05-16 Alan Modra <amodra@one.net.au>
3038
3039 * section.c (asection): Add linker_has_input field.
3040 (STD_SECTION): Adjust initialization to suit.
3041 * ecoff.c (bfd_debug_section): Likewise.
3042 * bfd-in2.h: Regenerate.
3043
3044 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3045
3046 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3047 negative 32-bit operands to 16 operands when the operand is
3048 going to be zero-extended by the modified opcode.
3049
3050 2001-05-12 Peter Targett <peter.targett@arccores.com>
3051
3052 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3053 name for 'arc5' core versions.
3054 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3055
3056 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3057 architecture.
3058 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3059
3060 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3061
3062 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3063 sections as well.
3064 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3065 to .gnu.linkonce.t.FOO text section.
3066
3067 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3068
3069 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3070 fields, change sec into secinfo.
3071 (struct sec_merge_info): Add chain, remove last fields.
3072 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3073 (sec_merge_hash_lookup): If lookup could not use a string only
3074 because it has bad alignment, mark the old string for deletion.
3075 (sec_merge_add): Add secinfo argument. Don't compute entry's
3076 position, instead record the section.
3077 (sec_merge_emit): Update for the sec into secinfo change in
3078 struct sec_merge_hash_entry.
3079 (_bfd_merge_section): Only record the section for merging, defer
3080 putting strings into the hash table.
3081 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3082 _bfd_merge_sections): New functions.
3083 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3084 changes.
3085 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3086 (_bfd_nolink_bfd_merge_sections): Define.
3087 * libbfd.h: Likewise.
3088 (bfd_generic_merge_sections): Add prototype.
3089 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3090 (struct bfd_target): Likewise.
3091 * bfd.c (bfd_merge_sections): Define.
3092 * bfd-in2.h: Rebuilt.
3093 * elf.c (_bfd_elf_merge_sections): New function.
3094 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3095 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3096 * reloc.c (bfd_generic_merge_sections): New function.
3097 * vms.c (vms_bfd_merge_sections): New function.
3098 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3099 * aout-target.h (MY_bfd_merge_sections): Define.
3100 * aout-tic30.c (MY_bfd_merge_sections): Define.
3101 * binary.c (binary_bfd_merge_sections): Define.
3102 * bout.c (b_out_bfd_merge_sections): Define.
3103 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3104 * coffcode.c (coff_bfd_merge_sections): Define.
3105 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3106 * i386msdos.c (msdos_bfd_merge_sections): Define.
3107 * i386os9k.c (os9k_bfd_merge_sections): Define.
3108 * ieee.c (ieee_bfd_merge_sections): Define.
3109 * ihex.c (ihex_bfd_merge_sections): Define.
3110 * nlm-target.h (nlm_bfd_merge_sections): Define.
3111 * oasys.c (oasys_bfd_merge_sections): Define.
3112 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3113 * som.c (som_bfd_merge_sections): Define.
3114 * srec.c (srec_bfd_merge_sections): Define.
3115 * tekhex.c (tekhex_bfd_merge_sections): Define.
3116 * versados.c (versados_bfd_merge_sections): Define.
3117 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3118
3119 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3120
3121 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3122 to be unsigned long, in order to match its use.
3123
3124 2001-05-10 H.J. Lu <hjl@gnu.org>
3125
3126 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3127 indirect symbols.
3128
3129 2001-05-09 H.J. Lu <hjl@gnu.org>
3130
3131 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3132 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3133 Remove the unused veriable `dynver'.
3134
3135 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3136
3137 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3138 NULL or is not COFF.
3139 (coff_i386_rtype_to_howto): Don't dump core if output section
3140 owner is not COFF.
3141
3142 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3143
3144 * ecoff.c (bfd_debug_section): Fix initialization.
3145 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3146 is always a positive integer. Cast away sign mismatch.
3147 * elf32-mips.c: Fix misleading comment and typo.
3148 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3149 correct data type.
3150 * elflink.c: Fix typo.
3151 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3152 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3153
3154 2001-05-04 Richard Henderson <rth@redhat.com>
3155
3156 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3157
3158 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3159
3160 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3161 EF_ARM_HASENTRY if the start address is set.
3162
3163 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3164
3165 * targets.c (_bfd_target_vector_entries): Compute value based on
3166 the size of the _bfd_target_vector and not bfd_target_vector.
3167
3168 2001-05-03 H.J. Lu <hjl@gnu.org>
3169
3170 * elfcode.h: Include "libiberty.h".
3171
3172 * elflink.h (elf_link_add_object_symbols): Set
3173 elf_dt_name (abfd) to basename of the bfd filename.
3174 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3175 of the bfd filename.
3176
3177 2001-05-03 Andreas Jaeger <aj@suse.de>
3178
3179 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3180 (elf_generic_info_to_howto_rel): Likewise.
3181 * coff-alpha.c (reloc_nil): Likewise.
3182 (alpha_ecoff_bad_format_hook): Likewise.
3183 (alpha_adjust_reloc_out): Likewise.
3184 (alpha_bfd_reloc_type_lookup): Likewise.
3185 (alpha_convert_external_reloc): Likewise.
3186 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3187 (elf64_alpha_reloc_bad): Likewise.
3188 (elf64_alpha_reloc_gpdisp): Likewise.
3189 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3190 (elf64_alpha_info_to_howto): Likewise.
3191 (elf64_alpha_add_symbol_hook): Likewise.
3192 (elf64_alpha_create_got_section): Likewise.
3193 (elf64_alpha_is_local_label_name): Likewise.
3194 (elf64_alpha_merge_ind_symbols): Likewise.
3195 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3196 (mips_elf64_get_reloc_upper_bound): Likewise.
3197 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3198 (nlm_alpha_get_public_offset): Likewise.
3199
3200 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3201
3202 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3203 about overflow in R_OPENRISC_LO_16_IN_INSN and
3204 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3205
3206 2001-04-30 H.J. Lu <hjl@gnu.org>
3207
3208 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3209 only for ELF_LINK_FORCED_LOCAL.
3210 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3211 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3212 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3213
3214 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3215 if the symbol has hidden or internal visibility.
3216
3217 2001-04-30 Alan Modra <amodra@one.net.au>
3218
3219 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3220 calls to undefined weak symbols.
3221
3222 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3223
3224 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3225 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3226
3227 2001-04-27 Andreas Jaeger <aj@suse.de>
3228
3229 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3230 out handled entries.
3231 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3232 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3233 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3234 GOT32.
3235
3236 2001-04-27 Sean McNeil <sean@mcneil.com>
3237
3238 * config.bfd: Add arm-vxworks target.
3239 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3240 addend (fro VXworks targets).
3241
3242 2001-04-26 H.J. Lu <hjl@gnu.org>
3243
3244 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3245 valid.
3246
3247 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3248
3249 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3250 * bfd-in2.h: Regenerated.
3251
3252 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3253
3254 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3255 (struct sec_merge_hash): Remove alignment_power.
3256 (sec_merge_hash_newfunc): Clear alignment.
3257 (sec_merge_hash_lookup): Pass alignment as argument.
3258 Use hashp->root.next, not hashp->next to walk the hash chain.
3259 If a string already in the hashtable does not have required
3260 alignment, create a new hashtable entry.
3261 (sec_merge_init): Remove alignment_power argument.
3262 (sec_merge_add): Add alignment argument.
3263 (sec_merge_emit): Alignment is now a per-entity thing, not per
3264 section.
3265 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3266 for proper alignment.
3267 Pass alignment information to sec_merge_add.
3268
3269 2001-04-24 Christian Groessler <cpg@aladdin.de>
3270
3271 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3272 and R_REL16 reloc types; accept odd values for R_REL16 type
3273
3274 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3275
3276 * cpu-openrisc.c: New file.
3277 * elf32-openrisc.c: Likewise.
3278
3279 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3280 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3281 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3282 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3283 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3284 * Makefile.in: Regenerated.
3285 * config.bfd: (openrisc-*-elf): New target.
3286 * configure.in (bfd_elf32_openrisc_vec): New vector.
3287 * configure: Regenerated.
3288 * libbfd.h: Regenerated.
3289 * bfd-in2.h: Regenerated.
3290 * reloc.c: Add OpenRISC relocations.
3291 * targets.c (bfd_elf32_openrisc_vec): Declare.
3292 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3293 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3294 (bfd_openrisc_arch): Declare.
3295 (bfd_archures_list): Add bfd_openrisc_arch.
3296 * elf.c (prep_headers): Add bfd_arch_openrisc.
3297
3298 2001-04-23 Bo Thorsen <bo@suse.de>
3299
3300 * elf64-x86-64.c: Add c++ vtable hack.
3301 Small whitespace and comment changes.
3302
3303 2001-04-19 Andreas Jaeger <aj@suse.de>
3304
3305 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3306 (elf64_x86_64_plt_entry): Likewise.
3307 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3308 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3309
3310 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3311
3312 * elf32-cris.c: Tweak comments related to dynamic linking.
3313 (cris_elf_relocate_section): When not creating shared object, fill
3314 in the .got table for any symbol not in the dynamic symbol table.
3315 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3316 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3317 table.
3318 (cris_elf_check_relocs): Use variable r_type in all places rather
3319 than the original expression. Add default case in switch for
3320 reloc types.
3321 (elf_cris_size_dynamic_sections): Iterate over
3322 elf_cris_discard_excess_program_dynamics when not creating shared
3323 library.
3324 (elf_cris_discard_excess_dso_dynamics): Renamed from
3325 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3326 (elf_cris_discard_excess_program_dynamics): New.
3327
3328 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3329
3330 * coffcode.h (coff_write_object_contents): Use
3331 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3332
3333 2001-04-14 H.J. Lu <hjl@gnu.org>
3334
3335 * bfd-in2.h: Regenerate.
3336
3337 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3338
3339 * section.c (STD_SECTION): Add entsize.
3340
3341 2001-04-13 H.J. Lu <hjl@gnu.org>
3342
3343 * section.c (SEC_MERGE): Define new flag for merging.
3344 (SEC_STRINGS): Likewise.
3345 (entsize): New field.
3346
3347 2001-04-13 Roger Sayle <roger@metaphorics.com>
3348
3349 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3350 flag on pe-i386 targets.
3351
3352 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3353
3354 * libbfd-in.h (_bfd_merge_section): New.
3355 (_bfd_write_merged_section): New.
3356 (_bfd_merged_section_offset): New.
3357 * libbfd.h: Rebuilt.
3358 * linker.c (_bfd_generic_link_output_symbols): Handle
3359 discard_sec_merge.
3360 * aoutx.h (aout_link_write_symbols): Likewise.
3361 * pdp11.c (aout_link_write_symbols): Likewise.
3362 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3363 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3364 sections.
3365 (elf_link_sec_merge_syms): New.
3366 (elf_link_input_bfd): Call _bfd_merged_section_offset
3367 and _bfd_write_merged_section.
3368 Handle discard_sec_merge.
3369 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3370 field.
3371 (struct bfd_elf_section_data): Likewise.
3372 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3373 SEC_STRINGS section flags and entsize from their ELF counterparts.
3374 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3375 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3376 from their BFD counterparts.
3377 * merge.c: New file.
3378 * Makefile.am: Add strtab.lo.
3379 * Makefile.in: Rebuilt.
3380
3381 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3382
3383 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3384 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3385
3386 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3387
3388 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3389 endian MIPS ELF target.
3390 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3391 MIPS ELF target.
3392
3393 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3394 64bit big endian MIPS ELF target.
3395 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3396 endian MIPS ELF target.
3397 * configure: Regenerated.
3398
3399 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3400 little endian targets.
3401 (mips_elf_sym_is_global): Handle traditional targets.
3402
3403 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3404 64bit big endian MIPS ELF target.
3405 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3406 endian MIPS ELF target.
3407
3408 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3409 and bfd_elf64_tradlittlemips_vec.
3410
3411 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3412
3413 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3414 ordinary "progbits" section.
3415
3416 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3417
3418 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3419 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3420
3421 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3422
3423 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3424
3425 2001-03-30 H.J. Lu <hjl@gnu.org>
3426
3427 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3428 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3429
3430 2001-03-26 H.J. Lu <hjl@gnu.org>
3431
3432 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3433 if there are any relocations for generic ELF.
3434 (bfd_elf32_bfd_link_add_symbols): Defined to
3435 elf32_generic_link_add_symbols.
3436 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3437 if there are any relocations for generic ELF.
3438 (bfd_elf64_bfd_link_add_symbols): Defined to
3439 elf64_generic_link_add_symbols.
3440
3441 2001-03-23 Nick Clifton <nickc@redhat.com>
3442
3443 * Makefile.am (BUILD_CFILES): New variable: List of C source
3444 files created in build directory.
3445 (BUILD_HFILES): New variable: List of header files created in
3446 build directory.
3447 (POTFILES): Delete.
3448 (po/POTFILES.in): Replace rule with empty entry.
3449 (po/SRC-POTFILES.in): New rule: Create a list of source files
3450 in the source directory.
3451 (po/BLD-POTFILES.in): New rule: Create a list of source files
3452 in the build directory.
3453 (MOSTLYCLEAN): Do not delete source files created in build
3454 directory.
3455 * Makefile.in: Regenerate.
3456 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3457 into po/Makefile.
3458 * configure: Regenerate.
3459
3460 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3461 and BLD_POTFILES.
3462 Add .. to the search path when building bfd.pot.
3463 Delete POTFILES when performing distclean.
3464 Add comment describing why distclean is broken in maintainer mode.
3465 * po/POTFILES.in: Delete.
3466 * po/SRC-POTFILES.in: New file.
3467 * po/BLD-POTFILES.in: New file.
3468 * po/bfd.pot: Regenerate.
3469
3470 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3471
3472 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3473 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3474 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3475 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3476 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3477 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3478 functions.
3479 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3480 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3481 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3482 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3483 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3484 New HOWTO members for new relocs.
3485 (cris_reloc_map): Map new relocs.
3486 (ELF_DYNAMIC_INTERPRETER): Define.
3487 (PLT_ENTRY_SIZE): Define.
3488 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3489 elf_cris_pic_plt_entry): New, PLT templates.
3490 (struct elf_cris_pcrel_relocs_copied, struct
3491 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3492 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3493 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3494 positive values. Adjust PCREL relocs to be relative to location
3495 after relocation.
3496 (cris_elf_relocate_section): Handle relocations to dynamic
3497 objects. Handle new relocations. Call error handler when seeing
3498 non-PIC relocation for read-only sections while generating shared
3499 object.
3500 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3501 entries.
3502 (bfd_elf32_bfd_link_hash_table_create,
3503 elf_backend_adjust_dynamic_symbol,
3504 elf_backend_size_dynamic_sections,
3505 elf_backend_finish_dynamic_symbol,
3506 elf_backend_finish_dynamic_sections,
3507 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3508 elf_backend_hide_symbol, elf_backend_want_got_plt,
3509 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3510 elf_backend_got_header_size, elf_backend_plt_header_size):
3511 Define.
3512
3513 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3514 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3515 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3516 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3517 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3518 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3519 * bfd-in2.h, libbfd.h: Regenerate.
3520
3521 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3522
3523 (_bfd_mips_elf_relocate_section): Give a better error message when
3524 a relocation is not recognized.
3525
3526 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3527
3528 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3529 non-NULL before attempting to dereference.
3530
3531 2001-03-20 H.J. Lu <hjl@gnu.org>
3532
3533 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3534 * configure: Rebuild.
3535
3536 2001-03-20 Andreas Schwab <schwab@suse.de>
3537
3538 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3539 relocation value when resolving a reference from a debugging
3540 section.
3541
3542 2001-03-16 Scott Thomason <SThomaso@hii.com>
3543
3544 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3545 (xcoff64_swap_sym_out): Fix syntax errors.
3546
3547 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3548
3549 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3550
3551 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3552
3553 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3554 (hppa_link_hash_newfunc): Init it.
3555 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3556 section appears to be non-PIC.
3557 (final_link_relocate): Likewise.
3558 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3559 possible candidate function, and set pic_call for those that will
3560 only have a .plt entry for the PIC call stub.
3561 (hppa_handle_PIC_calls): Set maybe_pic_call.
3562
3563 2001-03-12 DJ Delorie <dj@redhat.com>
3564
3565 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3566 R_SH_DIR8WP* relocs if they're against external symbols, else
3567 they're just for relaxing. Validate the reloc values.
3568
3569 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3570
3571 * binary.c (bfd_external_binary_architecture): Declare.
3572 (binary_object_p): If bfd_external_binary_architecture is defined,
3573 set the architecture to this string.
3574
3575 2001-03-11 Philip Blundell <philb@gnu.org>
3576
3577 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3578 entries that could serve as a definition for a weak symbol.
3579
3580 2001-03-08 Nick Clifton <nickc@redhat.com>
3581
3582 * Most files: Update copyright notices using Perl script created
3583 by Kevin Buettner <kevinb@redhat.com>.
3584
3585 2001-03-07 Nick Clifton <nickc@redhat.com>
3586
3587 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3588 prior patch on ! defined OLD_ARM_ABI.
3589
3590 2001-03-07 Andreas Jaeger <aj@suse.de>
3591
3592 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3593 some relocation values.
3594
3595 2001-03-06 Nick Clifton <nickc@redhat.com>
3596
3597 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3598 of offset in BLX(1) instruction.
3599 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3600 offset in BLX(1) instruction.
3601 Fix formatting.
3602
3603 2001-03-06 Nick Clifton <nickc@redhat.com>
3604
3605 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3606 BFD_RELOC_THUMB_PCREL_BLX.
3607
3608 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3609
3610 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3611 * bfd-in2.h: Regenerate.
3612 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3613 * ieee.c (ieee_write_processor): Set proper id for
3614 Coldfire CPUs.
3615
3616 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3617
3618 * configure.in: Add s390 target.
3619 * configure: Regenerate.
3620
3621 2001-02-28 Andreas Jaeger <aj@suse.de>
3622
3623 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3624 to addend.
3625
3626 2001-02-28 Philip Blundell <pb@futuretv.com>
3627
3628 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3629 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3630
3631 2001-02-27 H.J. Lu <hjl@gnu.org>
3632
3633 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3634 abfd->tdata.aout_data == NULL.
3635
3636 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3637
3638 * elf32-hppa.c: Correct field selector in stub comments.
3639 (clobber_millicode_symbols): Formatting fix.
3640
3641 * configure.in: Bump version to 2.11.90.
3642 * configure: Regenerate.
3643 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3644 (CFILES): $SOURCE_CFILES + generated C files.
3645 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3646 Run "make dep-am"
3647 * Makefile.in: Regenerate.
3648 * doc/Makefile.in: This too.
3649
3650 2001-02-26 Timothy Wall <twall@cygnus.com>
3651
3652 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3653 comments.
3654
3655 2001-02-26 Nick Clifton <nickc@redhat.com>
3656
3657 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3658 up, replacing multiple if statements with a switch.
3659 (handle_COMDAT): New function.
3660
3661 2001-02-26 H.J. Lu <hjl@gnu.org>
3662
3663 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3664 a warning for section flags we do not handle instead of
3665 aborting.
3666
3667 2001-02-26 Andreas Jaeger <aj@suse.de>
3668
3669 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3670
3671 2001-02-22 Timothy Wall <twall@cygnus.com>
3672
3673 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3674 * configure.in: Add objects for elf64_ia64_aix vectors.
3675 * configure: Regenerated.
3676 * configure.host: Recognize ia64-*-aix*.
3677 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3678 for AIX. AIX5 requires most relocations to be dynamic (*all*
3679 binaries are somewhat similar to shared libraries).
3680 * targets.c: Add elf64_ia64_aix vectors.
3681
3682 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3683
3684 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3685 C8 said "1" instead of "8". Clarify error string for IMM22:
3686 "signed integer" instead of just "integer".
3687
3688 2001-02-20 Andreas Jaeger <aj@suse.de>
3689
3690 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3691 PLT entries that could serve as a definition for a weak symbol.
3692
3693 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3694
3695 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3696 entries that could serve as a definition for a weak symbol.
3697 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3698
3699 2001-02-18 David O'Brien <obrien@FreeBSD>
3700
3701 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3702 FreeBSD/i386-CURRENT differently until I can figure out the needed
3703 corefile changes.
3704 * configure: Regenerate.
3705 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3706 FreeBSD/PowerPC, and FreeBSD/sparc64.
3707
3708 2001-02-18 lars brinkhoff <lars@nocrew.org>
3709
3710 * Makefile.am: Add PDP-11 a.out target.
3711 * config.bfd: Likewise.
3712 * configure.in: Likewise.
3713 * targets.c: Likewise.
3714 * archures.c: Likewise.
3715 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3716 * libbfd.h: Add PDP-11 relocations.
3717 * reloc.c: Likewise.
3718 * cpu-pdp11.c: New file.
3719 * pdp11.c: New file.
3720
3721 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3722 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3723 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3724 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3725 (GET_MAGIC): New macro.
3726 (PUT_MAGIC): Likewise.
3727 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3728
3729 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3730
3731 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3732 multiarch needs it).
3733
3734 2001-02-18 H.J. Lu <hjl@gnu.org>
3735
3736 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3737 index.
3738
3739 2001-02-18 Kazu Hirata <kazu@hxi.com>
3740
3741 * vms-misc.c: Fix formatting.
3742
3743 2001-02-16 Kazu Hirata <kazu@hxi.com>
3744
3745 * vms.c: Fix formatting.
3746
3747 2001-02-14 H.J. Lu <hjl@gnu.org>
3748
3749 * elf.c (elf_find_function): New function.
3750 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3751 the file name and function name.
3752
3753 2001-02-14 Nick Clifton <nickc@redhat.com>
3754
3755 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3756 asection structure.
3757
3758 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3759 (BFD64_BACKENDS): Add pepigen.c
3760 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3761
3762 * Makefile.in: Regenerate.
3763 * configure: Regenerate.
3764 * po/POTFILES.in: Regenerate.
3765 * po/bfd.pot: Regenerate.
3766
3767 2001-02-14 H.J. Lu <hjl@gnu.org>
3768
3769 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3770 force_minimum_alignment.
3771
3772 2001-02-14 Bo Thorsen <bo@suse.de>
3773
3774 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3775 (elf64_86_64_size_info): Struct added to fix a problem
3776 with the hashtable string entries.
3777 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3778 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3779 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3780 remove the FIXME for this.
3781 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3782 section. Also removed the FIXME for it.
3783 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3784 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3785 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3786
3787 2001-02-13 Richard Henderson <rth@redhat.com>
3788
3789 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3790 and not user provided.
3791
3792 2001-02-13 Kazu Hirata <kazu@hxi.com>
3793
3794 * vms.c (vms_print_symbol): Remove unreachable code.
3795
3796 * rs6000-core.c: Fix formatting.
3797
3798 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3799
3800 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3801 as _bfd_XXi_only_swap_filehdr_out.
3802 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3803 pe->force_minimum_alignment to TRUE.
3804 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3805 PEI_TARGET_SUBSYSTEM.
3806 (pe_print_private_bfd_data): Call
3807 _bfd_XX_print_private_bfd_data_common() instead of
3808 _bfd_pe_print_private_bfd_data_common().
3809 (pe_bfd_copy_private_bfd_data): Call
3810 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3811 _bfd_pe_bfd_copy_private_bfd_data_common().
3812 (coff_bfd_copy_private_section_data): Define as
3813 _bfd_XX_bfd_copy_private_section_data instead of
3814 _bfd_pe_bfd_copy_private_section_data.
3815 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3816 of a _bfd_pe_get_symbol_info.
3817
3818 * peigen.c: Delete.
3819
3820 * peXXigen.c: Renamed from peigen.c.
3821 (COFF_WITH_XX): Define this macro (will get expanded into
3822 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3823 compiled as peigen.c or pepigen.c.
3824 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3825 define the canonical PEP structures and definitions.
3826 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3827 effect, enforce minimum file and section alignments. If
3828 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3829 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3830 so, by default, this is a no-op).
3831
3832 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3833 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3834 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3835 _bfd_pefoo if it's not defined. Use these macros to define
3836 coff swap macros.
3837
3838 * libcoff.h (pe_tdata): Add members target_subsystem and
3839 force_minimum_alignment.
3840
3841 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3842 COFF_WITH_pep.
3843 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3844
3845 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3846 peigen.lo.
3847
3848 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3849 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3850 PEPAOUTHDR.
3851
3852 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3853 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3854 (peigen.c): Add rule to generate from peXXigen.c.
3855 (pepigen.c): Ditto.
3856 (pepigen.lo): List dependencies for pepigen.lo.
3857
3858 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3859
3860 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3861 $global$ referenced but not defined, set its value here.
3862
3863 2001-02-09 Bo Thorsen <bo@suse.de>
3864
3865 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3866 alignment to 3.
3867 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3868 and relocation.
3869 (elf64_x86_64_relocate_section): Fix formatting.
3870 (elf64_x86_64_relocate_section): Fix addend for relocation of
3871 R_X86_64_(8|16|32|PC8|PC16|PC32).
3872
3873 2001-02-12 Jan Hubicka <jh@suse.cz>
3874
3875 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3876
3877 2001-02-11 H.J. Lu <hjl@gnu.org>
3878
3879 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3880 alignment.
3881
3882 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3883
3884 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3885 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3886 relocations against dynsym symbols.
3887
3888 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3889 the R_MIPS_26 relocation.
3890 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3891 the R_MIPS_26 relocation.
3892 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3893 relocation.
3894 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3895 the R_MIPS_26 relocation.
3896 (mips_elf64_howto_table_rela): Likewise.
3897
3898 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3899 member to mark symbols that have non-CALL relocations against
3900 them.
3901 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3902 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3903 R_MIPS_GOT16.
3904 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3905 non-CALL relocation against it is encountered.
3906 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3907 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3908 no_fn_stub is not set.
3909
3910 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3911 information from the real symbol for indirect ones.
3912 Check no_fn_stub to find out if a symbol has a function stub
3913 indeed.
3914
3915 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3916
3917 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3918 * Makefile.in: Regenerate.
3919
3920 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3921
3922 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3923 true if section name is an unwind table section name.
3924 (elfNN_ia64_additional_program_headers): Count each unwind section
3925 separately.
3926 (elfNN_ia64_modify_segment_map): Install one unwind program header
3927 for each unwind separate section. Note: normally the linker
3928 script merges the unwind sections that go into a single segment,
3929 so this still generates at most one unwind program header per
3930 segment.
3931
3932 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3933 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3934 (elfNN_ia64_fake_sections): Mark sections with names that start
3935 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3936 unwind section.
3937
3938 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3939 Use it to make sh_info in unwind section point to the text section
3940 it applies to.
3941
3942 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3943
3944 * Makefile.am: Add linux target for S/390.
3945 * archures.c: Likewise.
3946 * bfd-in2.h: Likewise.
3947 * config.bfd: Likewise.
3948 * configure.in: Likewise.
3949 * elf.c: Likewise.
3950 * libbfd.h: Likewise.
3951 * targets.c: Likewise.
3952 * cpu-s390.c: New file.
3953 * elf32-s390.c: New file.
3954 * elf64-s390.c: New file.
3955
3956 2001-02-09 Nick Clifton <nickc@redhat.com>
3957
3958 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3959 ImageBase. This has already been done by coff_swap_hdr_in.
3960
3961 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3962
3963 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3964
3965 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3966
3967 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3968 (sparc64_elf_relocate_section): Likewise.
3969
3970 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3971
3972 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3973 similar to R_SPARC_32.
3974 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3975
3976 2001-02-08 H.J. Lu <hjl@gnu.org>
3977
3978 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3979 relocation entries for weak definitions when building DSO with
3980 -Bsymbolic.
3981
3982 2001-02-08 Richard Henderson <rth@redhat.com>
3983
3984 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3985 before visibility. Locally defined protected symbols are not
3986 dynamic.
3987
3988 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3989
3990 * config.bfd: Enable coff64 for rs6000-*. Patch from
3991 <hzoli@austin.ibm.com>.
3992
3993 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3994
3995 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3996 found, do not attempt to find dwarf2 info before returning.
3997
3998 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3999
4000 * elflink.h (is_global_symbol_definition): Rename to
4001 is_global_data_symbol_definition and have it reject function
4002 symbols.
4003 (elf_link_is_defined_archive_symbol): Use renamed function.
4004
4005 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4006
4007 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4008 * libbfd.h (bfd_target_vector): Likewise.
4009 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4010 make static; create pointer reference named bfd_target_vector.
4011 (_bfd_target_vector_entries): Calculate this based on the array
4012 typed _bfd_target_vector.
4013
4014 2001-02-06 H.J. Lu <hjl@gnu.org>
4015
4016 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4017 internal symbols are not dynamic.
4018 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4019
4020 2001-02-06 Nick Clifton <nickc@redhat.com>
4021
4022 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4023 that it will not be pulled into the list of files that make up
4024 po/POTFILES.in.
4025 * Makefile.in: Regenerate.
4026 * po/bfd.pot: Regenerate.
4027
4028 2001-02-06 H.J. Lu <hjl@gnu.org>
4029
4030 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4031 checking.
4032 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4033 external_PEI_IMAGE_hdr.
4034
4035 2001-02-06 Kazu Hirata <kazu@hxi.com>
4036
4037 * elf-m10200.c: Fix formatting.
4038
4039 2001-02-04 Nick Clifton <nickc@redhat.com>
4040
4041 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4042 rel, it will be handled later on.
4043
4044 2001-02-02 Fred Fish <fnf@ninemoons.com>
4045
4046 * Makefile.in: Fix typo.
4047
4048 2001-02-01 Kazu Hirata <kazu@hxi.com>
4049
4050 * elf-m10300.c: Fix formatting.
4051
4052 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4053
4054 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4055 (elf_backend_get_symbol_type): Define.
4056 (elf64_hppa_object_p): Set architecture and machine from elf
4057 header flags.
4058
4059 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4060
4061 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4062 before mdebug.
4063
4064 2001-01-26 Richard Henderson <rth@redhat.com>
4065
4066 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4067 for non-default visibility.
4068 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4069 delete ugly macro and replace with pretty function.
4070
4071 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4072
4073 * coff-go32.c: Update copyright.
4074 * coff-stgo32.c: Likewise.
4075 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4076 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4077 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4078 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4079
4080 2001-01-25 Kazu Hirata <kazu@hxi.com>
4081
4082 * bfd-in2.h: Rebuild.
4083 * libbfd.h: Likewise.
4084
4085 2001-01-23 H.J. Lu <hjl@gnu.org>
4086
4087 * bfd-in2.h: Rebuild.
4088
4089 2001-01-23 H.J. Lu <hjl@gnu.org>
4090
4091 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4092 is NULL or PRIV(vms_rec) is outside of the buffer.
4093
4094 2001-01-23 Kazu Hirata <kazu@hxi.com>
4095
4096 * coff64-rs6000.c: Fix formatting.
4097 * coff-arm.c: Likewise.
4098 * coffgen.c: Likewise.
4099 * cofflink.c: Likewise.
4100 * coff-mcore.c: Likewise.
4101 * coff-mips.c: Likewise.
4102 * coff-pmac.c: Likewise.
4103 * coff-ppc.c: Likewise.
4104 * coff-rs6000.c: Likewise.
4105 * elf32.c: Likewise.
4106 * elf32-fr30.c: Likewise.
4107 * elf32-i370.c: Likewise.
4108 * elf32-i860.c: Likewise.
4109 * elf32-m32r.c: Likewise.
4110 * elf32-m68k.c: Likewise.
4111 * elf32-mcore.c: Likewise.
4112 * elf32-ppc.c: Likewise.
4113 * elf32-sh.c: Likewise.
4114 * elf32-v850.c: Likewise.
4115 * elf64-alpha.c: Likewise.
4116 * elf64-sparc.c: Likewise.
4117 * elflink.c: Likewise.
4118 * elflink.h: Likewise.
4119 * elf-m10200.c: Likewise.
4120 * elf-m10300.c: Likewise.
4121 * elfxx-ia64.c: Likewise.
4122
4123 * aoutx.h: Fix formatting.
4124 * bfd.c: Likewise.
4125 * bfd-in2.h: Likewise.
4126 * bfd-in.h: Likewise.
4127 * cpu-i386.c: Likewise.
4128 * cpu-m68hc11.c: Likewise.
4129 * dwarf2.c: Likewise.
4130 * elf64-x86-64.c: Likewise.
4131 * format.c: Likewise.
4132 * freebsd.h: Likewise.
4133 * hash.c: Likewise.
4134 * hp300hpux.c: Likewise.
4135 * hppabsd-core.c: Likewise.
4136 * hpux-core.c: Likewise.
4137
4138 2001-01-22 Bo Thorsen <bo@suse.de>
4139
4140 * elf64-x86-64.c: Added PIC support for X86-64.
4141 (elf64_x86_64_link_hash_newfunc): Function added.
4142 (elf64_x86_64_link_hash_table_create): Likewise.
4143 (elf64_x86_64_check_relocs): Likewise.
4144 (elf64_x86_64_gc_mark_hook): Likewise.
4145 (elf64_x86_64_gc_sweep_hook): Likewise.
4146 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4147 (elf64_x86_64_size_dynamic_sections): Likewise.
4148 (elf64_x86_64_discard_copies): Likewise.
4149 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4150 (elf64_x86_64_finish_dynamic_sections): Likewise.
4151 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4152
4153 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4154
4155 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4156 * Makefile.in: Regenerate.
4157
4158 2001-01-21 Kazu Hirata <kazu@hxi.com>
4159
4160 * coff-a29k.c: Fix formatting.
4161
4162 2001-01-19 H.J. Lu <hjl@gnu.org>
4163
4164 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4165 relocation section names.
4166 (elf_i386_relocate_section): Report files with bad relocation
4167 section names and return false.
4168
4169 2001-01-17 Bo Thorsen <bo@suse.de>
4170
4171 * targets.c: Alphabetize list of xvecs.
4172
4173 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4174
4175 * config.bfd: Add linux target variant for elfxx-hppa.
4176 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4177 bfd_elf64_hppa_linux_vec.
4178 * configure: Regenerate.
4179 * elf64-hppa.c: Include elf64-target.h again to support linux
4180 target variant.
4181 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4182 * elf32-hppa.c: Include elf32-target.h again to support linux
4183 target variant.
4184 (elf32_hppa_post_process_headers): New function.
4185 (elf_backend_post_process_headers): Define.
4186 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4187 bfd_elf32_hppa_linux_vec.
4188
4189 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4190 and data_segment_base fields.
4191 (elf32_hppa_link_hash_table_create ): Init them.
4192 (elf32_hppa_check_relocs): Update comments.
4193 (hppa_record_segment_addr): New function.
4194 (elf32_hppa_relocate_section): Call it.
4195 (final_link_relocate): Handle R_PARISC_SEGREL32.
4196 (elf32_hppa_final_link): New function.
4197 (bfd_elf32_bfd_final_link): Define to call it.
4198 (hppa_unwind_entry_compare): New function.
4199 * cache.c (bfd_open_file): Create files in write+read mode.
4200
4201 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4202 SEGREL32 and numerous other relocs. Change duplicate
4203 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4204
4205 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4206 O_ACCMODE.
4207
4208 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4209 .plt entries for DT_INIT and DT_FINI.
4210 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4211 DT_INIT and DT_FINI.
4212
4213 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4214 offsets for stub .plt access if wide mode. Check offset in range.
4215
4216 2001-01-13 Nick Clifton <nickc@redhat.com>
4217
4218 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4219 line.
4220
4221 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4222 line.
4223
4224 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4225
4226 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4227 * configure: Regenerate.
4228
4229 2001-01-11 Peter Targett <peter.targett@arccores.com>
4230
4231 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4232 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4233 * cpu-arc.c (arch_info_struct): Add entries for variants.
4234 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4235 (arc_get_mach) Don't assume machine names prefixed arc- before
4236 testing.
4237 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4238 selections.
4239 (arc_elf_final_write_processing) Likewise.
4240 (ELF_MACHINE_CODE) Use EM_ARC.
4241
4242 2001-01-10 Nick Clifton <nickc@redhat.com>
4243
4244 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4245
4246 2001-01-07 Philip Blundell <philb@gnu.org>
4247
4248 * README: Replace `bug-gnu-utils@gnu.org' with
4249 `bug-binutils@gnu.org'.
4250
4251 2001-01-04 Kazu Hirata <kazu@hxi.com>
4252
4253 * som.c: Fix formatting.
4254
4255 2001-01-03 Kazu Hirata <kazu@hxi.com>
4256
4257 * ecoffswap.h: Fix formatting.
4258 * elf-bfd.h: Likewise.
4259 * elfarm-nabi.c: Likewise.
4260 * elfarm-oabi.c: Likewise.
4261 * elfcode.h: Likewise.
4262 * elfcore.h: Likewise.
4263 * elflink.c: Likewise.
4264 * elflink.h: Likewise.
4265 * elfxx-ia64.c: Likewise.
4266 * elfxx-target.h: Likewise.
4267 * libbfd.c: Likewise
4268 * linker.c: Likewise.
4269 * lynx-core.c: Likewise.
4270
4271 2001-01-02 Kazu Hirata <kazu@hxi.com>
4272
4273 * pc532-mach.c: Fix formatting.
4274 * pe-arm.c: Likewise.
4275 * pe-i386.c: Likewise.
4276 * pe-mips.c: Likewise.
4277 * pe-ppc.c: Likewise.
4278 * pe-sh.c: Likewise.
4279 * pei-mips.c: Likewise.
4280 * pei-sh.c: Likewise.
4281 * peicode.h: Likewise.
4282 * ppcboot.c: Likewise.
4283 * ptrace-core.c: Likewise.
4284
4285 2001-01-01 Kazu Hirata <kazu@hxi.com>
4286
4287 * reloc.c: Fix formatting.
4288 * riscix.c: Likewise.
4289 * rs6000-core.c: Likewise.
4290 * xcoff-target.h: Likewise.
4291
4292 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4293
4294 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4295 error, by calling bfd_default_set_arch_mach with incoming
4296 values.
4297
4298 2000-12-26 Kazu Hirata <kazu@hxi.com>
4299
4300 * vaxnetbsd.c: Fix formatting.
4301 * versados.c: Likewise.
4302 * vms-gsd.c: Likewise.
4303 * vms-hdr.c: Likewise.
4304 * vms-misc.c: Likewise.
4305
4306 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4307
4308 * archive.c (coff_write_armap): Don't write more than symbol_count
4309 `archive_member_file_ptr's.
4310
4311 2000-12-25 Kazu Hirata <kazu@hxi.com>
4312
4313 * vms-tir.c: Fix formatting.
4314
4315 2000-12-23 Kazu Hirata <kazu@hxi.com>
4316
4317 * vms.c: Fix formatting.
4318 * vms.h: Likewise.
4319
4320 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4321
4322 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4323
4324 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4325
4326 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4327 arithmetic.
4328
4329 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4330
4331 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4332
4333 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4334
4335 * libbfd.c (bfd_get_bits): Added
4336 (bfd_put_bits): Likewise
4337 * bfd-in.h: Declared the above.
4338 * bfd-in2.h: Regenerated.
4339
4340 2000-12-20 Kazu Hirata <kazu@hxi.com>
4341
4342 * targets.c: Fix formatting.
4343 * tekhex.c: Likewise.
4344 * trad-core.c: Likewise.
4345
4346 2000-12-19 Kazu Hirata <kazu@hxi.com>
4347
4348 * sco5-core.c: Fix formatting.
4349 * section.c: Likewise.
4350 * sparclinux.c: Likewise.
4351 * sparclynx.c: Likewise.
4352 * sparcnetbsd.c: Likewise.
4353 * srec.c: Likewise.
4354 * stabs.c: Likewise.
4355 * stab-syms.c: Likewise.
4356 * sunos.c: Likewise.
4357 * syms.c: Likewise.
4358 * sysdep.h: Likewise.
4359
4360 2000-12-18 Nick Clifton <nickc@redhat.com>
4361
4362 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4363 defined.
4364 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4365 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4366
4367 2000-12-18 Nick Clifton <nickc@redhat.com>
4368
4369 * vms-misc.c (_bfd_vms_get_record): Add default case to
4370 file_format switch.
4371
4372 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4373
4374 * elfcore.h (elf_core_file_p): Move to the start of the program
4375 headers before attempting to read them.
4376
4377 2000-12-14 Kazu Hirata <kazu@hxi.com>
4378
4379 * peigen.c: Fix formatting.
4380 * som.c: Likewise.
4381 * som.h: Likewise.
4382
4383 2000-12-13 Kazu Hirata <kazu@hxi.com>
4384
4385 * peigen.c: Fix formatting.
4386
4387 2000-12-12 Jim Wilson <wilson@redhat.com>
4388
4389 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4390
4391 2000-12-08 Mark Salter <msalter@redhat.com>
4392
4393 * binary.c (binary_set_section_contents): Ignore sections
4394 with zero size.
4395
4396 2000-12-12 Kazu Hirata <kazu@hxi.com>
4397
4398 * m68klinux.c: Fix formatting.
4399 * m68knetbsd.c: Likewise.
4400 * mipsbsd.c: Likewise.
4401 * netbsd-core.c: Likewise.
4402 * netbsd.h: Likewise.
4403 * newsos3.c: Likewise.
4404 * nlm32-alpha.c: Likewise.
4405 * nlm32-i386.c: Likewise.
4406 * nlm32-ppc.c: Likewise.
4407 * nlm32-sparc.c: Likewise.
4408 * nlmcode.h: Likewise.
4409 * nlmswap.h: Likewise.
4410 * nlm-target.h: Likewise.
4411 * ns32knetbsd.c: Likewise.
4412
4413 2000-12-10 Fred Fish <fnf@be.com>
4414
4415 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4416 symbols in shared objects if allow_shlib_undefined is true.
4417
4418 2000-12-12 Nick Clifton <nickc@redhat.com>
4419
4420 * cpu-sh.c: Fix formattng.
4421 * elf.c: Fix formattng.
4422 * elf32-mips.c: Fix formattng.
4423 * elf32-sh.c: Fix formattng.
4424 * elf64-alpha.c: Fix formattng.
4425
4426 2000-12-09 Nick Clifton <nickc@redhat.com>
4427
4428 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4429 dwarf2_find_line_info as last parameter to invocation of
4430 _bfd_dwarf2_find_nearest_line.
4431 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4432 dwarf2_find_line_info as last parameter to invocation of
4433 _bfd_dwarf2_find_nearest_line.
4434
4435 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4436
4437 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4438 (BFD_LIBS): ...to here.
4439 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4440 (BFD_LIBS_CFILES): ...to here.
4441 * Makefile.in: Regenerate.
4442 * configure.in: Remove dwarf.lo from the elf shell variable.
4443 * configure: Regenerate.
4444 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4445 * libcoff.h: Regenerate.
4446 * coffgen.c (coff_find_nearest_line): Call
4447 _bfd_dwarf2_find_nearest_line.
4448 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4449 accordingly.
4450 (read_abbrevs): Likewise
4451 (decode_line_info): Likewise.
4452 (parse_comp_unit): Likewise.
4453 (comp_unit_find_nearest_line): Likewise.
4454 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4455 * libbfd.h: Regenerate.
4456 * elf.c (_bfd_elf_find_nearest_line): Update call.
4457 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4458 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4459 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4460 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4461 (styp_to_sec_flags): Handle DWARF2 sections.
4462 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4463 to _bfd_find_nearest_line.
4464 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4465 call to _bfd_find_nearest_line.
4466
4467 2000-12-08 Kazu Hirata <kazu@hxi.com>
4468
4469 * coffgen.c: Fix formatting.
4470 * elf-m10300.c: Likewise.
4471 * elf32-i386.c: Likewise.
4472 * elf32-i960.c: Likewise.
4473 * elf32-m68k.c: Likewise.
4474 * elf32-mcore.c: Likewise.
4475 * elf32-ppc.c: Likewise.
4476 * elf32-sh.c: Likewise.
4477 * elf32-sparc.c: Likewise.
4478 * elf32-v850.c: Likewise.
4479 * elf64-alpha.c: Likewise.
4480 * elf64-hppa.c: Likewise.
4481 * elf64-mips.c: Likewise.
4482 * elf64-sparc.c: Likewise.
4483
4484 2000-12-07 Kazu Hirata <kazu@hxi.com>
4485
4486 * elf32-ppc.c: Fix formatting.
4487 * elf64-x86-64.c: Likewise.
4488
4489 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4490
4491 From Ralf Baechle <ralf@gnu.org>
4492
4493 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4494 BFDs containing no sections or empty .text, .data or .bss sections
4495 to be merged, regardless of their flags.
4496
4497 2000-12-06 Kazu Hirata <kazu@hxi.com>
4498
4499 * elf32-m32r.c: Fix formatting.
4500 * elf32-m68hc11.c: Likewise.
4501 * elf32-m68hc12.c: Likewise.
4502 * elf32-m68k.c: Likewise.
4503 * elf32-mcore.c: Likewise.
4504 * elf32-pj.c: Likewise.
4505 * elf32-ppc.c: Likewise.
4506
4507 2000-12-05 Kazu Hirata <kazu@hxi.com>
4508
4509 * elf32-fr30.c: Fix formatting.
4510 * elf32-hppa.c: Likewise.
4511 * elf32-i370.c: Likewise.
4512 * elf32-i386.c: Likewise.
4513 * elf32-i860.c: Likewise.
4514 * elf32-i960.c: Likewise.
4515
4516 2000-12-03 Kazu Hirata <kazu@hxi.com>
4517
4518 * elf32-arm.h: Fix formatting.
4519 * elf32-avr.c: Likewise.
4520 * elf32-cris.c: Likewise.
4521 * elf32-d10v.c: Likewise.
4522 * elf32-d30v.c: Likewise.
4523 * elf-hppa.h: Likewise.
4524 * elf-m10200.c: Likewise.
4525 * elf-m10300.c: Likewise.
4526
4527 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4528
4529 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4530 bfd_mach_mips32_4k. Update FIXME comment.
4531 * archures.c (bfd_mach_mips32): New constant.
4532 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4533 the latter, renumber it.
4534 * bfd-in2.h (bfd_mach_mips32): New constant.
4535 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4536 the latter, renumber it.
4537 * cpu-mips.c (I_mips32): New constant.
4538 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4539 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4540 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4541 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4542 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4543 with E_MIPS_MACH_MIPS32_4K.
4544 (_bfd_mips_elf_final_write_processing): Replace
4545 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4546 bfd_mach_mips32 case.
4547 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4548 comparison with support for MIPS32.
4549 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4550 MIPS32.
4551
4552 * aoutx.h (NAME(aout,machine_type)): Add cases for
4553 bfd_mach_mips5 and bfd_mach_mips64.
4554 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4555 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4556 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4557 (arch_info_struct): Add entries for bfd_mach_mips5 and
4558 bfd_mach_mips64.
4559 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4560 _bfd_mips_elf_print_private_bfd_data): Add cases for
4561 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4562 (_bfd_mips_elf_final_write_processing): Add cases for
4563 bfd_mach_mips5 and bfd_mach_mips64.
4564
4565 * aoutx.h (NAME(aout,machine_type)): Add a
4566 bfd_mach_mips_sb1 case.
4567 * archures.c (bfd_mach_mips_sb1): New constant.
4568 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4569 * cpu-mips.c (I_sb1): New constant.
4570 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4571 * elf32-mips.c (elf_mips_mach): Add case for
4572 E_MIPS_MACH_SB1.
4573 (_bfd_mips_elf_final_write_processing): Add case for
4574 bfd_mach_mips_sb1.
4575
4576 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4577
4578 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4579 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4580 (sparc*-*-rtems*): Switched from a.out to ELF.
4581
4582 2000-11-30 Jan Hubicka <jh@suse.cz>
4583
4584 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4585 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4586 (elf64-x86-64.lo): Add dependencies.
4587 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4588 bfd_mach_x86_64_intel_syntax.
4589 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4590 * config.bfd (x86_64): Add.
4591 * configure.in: Add support for bfd_elf64_x86_64_vec.
4592 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4593 (bfd_i386_arch, i8086_ar): Link in.
4594 * elf64-x86-64.c: New file.
4595 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4596 * targets.c (bfd_elf64_x86_64_vec): Add.
4597 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4598
4599 2000-11-30 Kazu Hirata <kazu@hxi.com>
4600
4601 * xcofflink.c: Fix formatting.
4602
4603 2000-11-28 Kazu Hirata <kazu@hxi.com>
4604
4605 * aoutx.h: Fix formatting.
4606 * bfd-in.h: Likewise.
4607 * bfd-in2.h: Likewise.
4608 * cache.c: Likewise.
4609 * cisco-core.c: Likewise.
4610 * coff64-rs6000.c: Likewise.
4611 * coffcode.h: Likewise.
4612 * coffswap.h: Likewise.
4613 * corefile.c: Likewise.
4614 * elf32-mips.c: Likewise.
4615
4616 2000-11-27 Kazu Hirata <kazu@hxi.com>
4617
4618 * aout-adobe.c: Fix formatting.
4619 * coff64-rs6000.c: Likewise.
4620 * coffgen.c: Likewise.
4621 * cofflink.c: Likewise.
4622
4623 2000-11-27 Philip Blundell <pb@futuretv.com>
4624
4625 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4626 (obj_coff_strings_written): New accessor macro for above.
4627 * libcoff.h: Regenerate.
4628 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4629 strings.
4630 * coffcode.h (coff_write_object_contents): No need to write out
4631 the string table if it's already been done.
4632
4633 2000-11-22 Philip Blundell <pb@futuretv.com>
4634
4635 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4636 weak undefined symbols.
4637
4638 2000-11-24 Nick Clifton <nickc@redhat.com>
4639
4640 * archures.c (bfd_mach_arm_5TE): Define.
4641 (bfd_mach_arm+XScale): Define.
4642 * bfd-in2.h: Regenerate.
4643
4644 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4645 BFD_RELOC_ARM_PCREL_BLX.
4646
4647 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4648 XScale machine numbers.
4649
4650 * config.bfd (xscale-elf): Add target.
4651 (xscale-coff): Add target.
4652
4653 * cpu-arm.c: Add xscale machine name.
4654 Add v5t, v5te and XScale machine numbers.
4655
4656 2000-11-23 Kazu Hirata <kazu@hxi.com>
4657
4658 * aix386-core.c: Fix formatting.
4659
4660 2000-11-22 Jim Wilson <wilson@redhat.com>
4661
4662 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4663 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4664 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4665 (ins_imms_scaled): Initialize sign_bit at function entry.
4666 (elf64_ia64_operands): Add missing initializers.
4667 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4668 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4669 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4670 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4671 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4672 parameters.
4673 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4674 and free_extsyms at function entry.
4675 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4676 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4677 (get_got): Delete unused local srel.
4678 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4679 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4680
4681 2000-11-21 Kazu Hirata <kazu@hxi.com>
4682
4683 * coff-a29k.c: Fix formatting.
4684 * coff-h8500.c: Likewise.
4685 * coff-i960.c: Likewise.
4686 * coff-ppc.c: Likewise.
4687 * coff-rs6000.c: Likewise.
4688 * coff-stgo32.c: Likewise.
4689 * coff-tic54x.c: Likewise.
4690 * coff-w65.c: Likewise.
4691 * cpu-h8500.c: Likewise.
4692 * cpu-hppa.c: Likewise.
4693 * cpu-ns32k.c: Likewise.
4694 * ecoff.c: Likewise.
4695 * ecofflink.c: Likewise.
4696
4697 2000-11-21 Nick Clifton <nickc@redhat.com>
4698
4699 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4700 remove possibility of infinite loop.
4701
4702 2000-11-20 Kazu Hirata <kazu@hxi.com>
4703
4704 * aix386-core.c: Fix formatting.
4705 * aout-adobe.c: Likewise.
4706 * aout-arm.c: Likewise.
4707 * aout-encap.c: Likewise.
4708 * aout-ns32k.c: Likewise.
4709 * aout-target.h: Likewise.
4710 * aout-tic30.c: Likewise.
4711 * aoutf1.h: Likewise.
4712 * aoutx.h: Likewise.
4713 * archive.c: Likewise.
4714 * bfd-in.h: Likewise.
4715 * bfd-in2.h: Likewise.
4716 * bfd.c: Likewise.
4717 * bout.c: Likewise.
4718
4719 2000-11-17 H.J. Lu <hjl@gnu.org>
4720
4721 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4722 pltoff entries for DT_INIT and DT_FINI.
4723 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4724 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4725 entries.
4726
4727 2000-11-16 Richard Henderson <rth@redhat.com>
4728
4729 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4730 (allocate_dynrel_entries): Likewise.
4731 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4732 (set_pltoff_entry): Likewise.
4733 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4734 (elfNN_ia64_reloc_type_lookup): Likewise.
4735 (elfNN_ia64_install_value): Likewise.
4736 (elfNN_ia64_relocate_section): Likewise.
4737 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4738 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4739
4740 2000-11-16 Kazu Hirata <kazu@hxi.com>
4741
4742 * cpu-a29k.c: Fix formatting.
4743 * cpu-alpha.c: Likewise.
4744 * cpu-arm.c: Likewise.
4745 * cpu-avr.c: Likewise.
4746 * cpu-d10v.c: Likewise.
4747 * cpu-h8500.c: Likewise.
4748 * cpu-hppa.c: Likewise.
4749 * cpu-i370.c: Likewise.
4750 * cpu-i386.c: Likewise.
4751 * cpu-i960.c: Likewise.
4752 * cpu-ia64-opc.c: Likewise.
4753 * cpu-ia64.c: Likewise.
4754 * cpu-m32r.c: Likewise.
4755 * cpu-m68hc11.c: Likewise.
4756 * cpu-m68hc12.c: Likewise.
4757 * cpu-m68k.c: Likewise.
4758 * cpu-m88k.c: Likewise.
4759 * cpu-mips.c: Likewise.
4760 * cpu-ns32k.c: Likewise.
4761 * cpu-pj.c: Likewise.
4762 * cpu-powerpc.c: Likewise.
4763 * cpu-sh.c: Likewise.
4764 * cpu-sparc.c: Likewise.
4765 * cpu-tic54x.c: Likewise.
4766 * cpu-v850.c: Likewise.
4767 * cpu-vax.c: Likewise.
4768 * cpu-w65.c: Likewise.
4769 * cpu-we32k.c: Likewise.
4770 * cpu-z8k.c: Likewise.
4771 * dwarf1.c: Likewise.
4772 * dwarf2.c: Likewise.
4773
4774 2000-11-15 Kazu Hirata <kazu@hxi.com>
4775
4776 * coff-arm.c: Fix formatting.
4777 * coff-ppc.c: Likewise.
4778 * coff-rs6000.c: Likewise.
4779 * coff-sh.c: Likewise.
4780 * coff-sparc.c: Likewise.
4781 * coff-tic30.c: Likewise.
4782 * coff-tic54x.c: Likewise.
4783 * coff-tic80.c: Likewise.
4784 * coff-w65.c: Likewise.
4785 * coff-we32k.c: Likewise.
4786 * coff-z8k.c: Likewise.
4787
4788 2000-11-15 Richard Henderson <rth@redhat.com>
4789
4790 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4791 section with the same ALLOC|LOAD flags as the source section.
4792
4793 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4794
4795 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4796 by STO_ALPHA constants.
4797
4798 2000-11-14 Kazu Hirata <kazu@hxi.com>
4799
4800 * coff-pmac.c: Fix formatting.
4801 * coff-ppc.c: Likewise.
4802
4803 2000-11-13 H.J. Lu <hjl@gnu.org>
4804
4805 * elflink.h (elf_link_add_object_symbols): Also add indirect
4806 symbols for common symbols with the default version.
4807
4808 2000-11-09 Philip Blundell <pb@futuretv.com>
4809
4810 * section.c (STD_SECTION): Set gc_mark flag.
4811
4812 2000-11-11 Kazu Hirata <kazu@hxi.com>
4813
4814 * coff-i960.c: Likewise.
4815 * coff-m68k.c: Likewise.
4816 * coff-m88k.c: Likewise.
4817 * coff-mcore.c: Likewise.
4818 * coff-mips.c: Likewise.
4819
4820 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4821
4822 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4823
4824 2000-11-10 Kazu Hirata <kazu@hxi.com>
4825
4826 * coff-h8300.c: Fix formatting.
4827 * coff-h8500.c: Likewise.
4828 * coff-i386.c: Likewise.
4829 * coff-i860.c: Likewise.
4830 * coff-i960.c: Likewise.
4831 * coff-ia64.c: Likewise.
4832
4833 2000-11-09 Kazu Hirata <kazu@hxi.com>
4834
4835 * archive.c: Fix formatting.
4836 * archures.c: Likewise.
4837
4838 2000-11-07 Richard Henderson <rth@redhat.com>
4839
4840 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4841 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4842 * section.c (bfd_set_section_contents): Call memcpy if
4843 section->contents set and location not equal to contents plus offset.
4844
4845 2000-11-08 Kazu Hirata <kazu@hxi.com>
4846
4847 * bfd-in.h: Fix formatting.
4848 * bfd-in2.h: Likewise.
4849 * bfd.c: Likewise.
4850 * binary.c: Likewise.
4851 * bout.c: Likewise.
4852 * coff-a29k.c: Likewise.
4853 * coff-alpha.c: Likewise.
4854 * coff-apollo.c: Likewise.
4855 * coff-aux.c: Likewise.
4856
4857 2000-11-07 Kazu Hirata <kazu@hxi.com>
4858
4859 * aix386-core.c: Fix formatting.
4860 * aoutf1.h: Likewise.
4861 * aoutx.h: Likewise.
4862 * archures.c: Likewise.
4863 * armnetbsd.c: Likewise.
4864
4865 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4866
4867 * coff-h8300.c (special): Adjust reloc address.
4868
4869 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4870
4871 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4872 to differentiate elf32 and elf64 on ia64.
4873 * bfd-in2.h: Regenerate.
4874 * config.bfd: Add target for "ia64*-*-hpux*".
4875 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4876 * configure: Regenerate.
4877 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4878 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4879
4880 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4881 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4882 * Makefile.in: Regnerate.
4883 * elf64-ia64.c: Deleted.
4884 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4885
4886 2000-11-06 Kazu Hirata <kazu@hxi.com>
4887
4888 * aout-adobe.c: Fix formatting.
4889 * aout-arm.c: Likewise.
4890 * aout-cris.c: Likewise.
4891 * aout-encap.c: Likewise.
4892 * aout-ns32k.c: Likewise.
4893 * aout-target.h: Likewise.
4894 * aout-tic30.c: Likewise.
4895
4896 2000-11-05 Philip Blundell <philb@gnu.org>
4897
4898 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4899 BFDs containing no sections to be merged, regardless of their flags.
4900
4901 2000-11-04 Philip Blundell <philb@gnu.org>
4902
4903 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4904 if a relocation for an undefined symbol also results in an
4905 overflow.
4906
4907 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4908
4909 * config.bfd: Add support for Sun Chorus.
4910
4911 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4912
4913 * configure.in: Recognize alpha-*-freebsd*.
4914 * configure: Regenerate.
4915
4916 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4917
4918 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4919 (Chunk): New global variable set by a parameter in objcopy.c.
4920 (S3Forced): New global variable set by a parameter in
4921 objcopy.c.
4922 (srec_set_section_contents): If S3Forced is true, always generate
4923 S3 records.
4924 (srec_write_section): Use 'Chunk' to limit maximum length of S
4925 records.
4926
4927 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4928
4929 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4930 * Makefile.in: Regenerate.
4931 * bfd-in2.h: Regenerate.
4932 * po/bfd.pot: Regenerate.
4933
4934 2000-10-31 Philip Blundell <philb@gnu.org>
4935
4936 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4937 EF_SOFT_FLOAT if it is defined.
4938
4939 2000-10-27 Philip Blundell <philb@gnu.org>
4940
4941 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4942 attempts to mix PIC code with non-PIC, just mark the output as
4943 being position dependent.
4944 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4945 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4946 all mismatches, not just the first one.
4947
4948 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4949
4950 * ieee.c (ieee_archive_p): Plug one of many possible
4951 memory leaks in error handling.
4952
4953 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4954
4955 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4956 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4957 Support v8plusb.
4958 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4959 sparc64_elf_object_p): Support v9b.
4960 * archures.c: Declare v8plusb and v9b machines.
4961 * bfd-in2.h: Ditto.
4962 * cpu-sparc.c: Ditto.
4963
4964 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4965
4966 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4967 of a GOT reloc.
4968
4969 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4970 (SYMBOL_CALLS_LOCAL): New macro.
4971 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4972 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4973 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4974 (ppc_elf_relocate_section): Use flag variable to determine
4975 whether the relocation refers to a local symbol.
4976 Test whether a PLTREL24 reloc will produce a reloc by looking
4977 to see whether a PLT entry was made.
4978
4979 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4980
4981 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4982 entries that could serve as a definition for a weak symbol.
4983
4984 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4985
4986 From Ralf Baechle <ralf@gnu.org>
4987
4988 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4989 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4990 against local symbols.
4991 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4992
4993 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4994
4995 * section.c (struct sec): Add kept_section.
4996 (struct bfd_comdat_info): Remove sec, we can use above.
4997 (STD_SECTION): Add initializer.
4998 (bfd_make_section_anyway): Init here too.
4999
5000 * bfd-in2.h: Regenerate.
5001
5002 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5003 zeroing of `flags'.
5004 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5005 fudge values for discarded link-once section symbols.
5006
5007 * elf64-hppa.c: Include alloca-conf.h
5008
5009 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5010
5011 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5012
5013 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5014
5015 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5016
5017 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5018
5019 2000-10-10 Tom Rix <trix@redhat.com>
5020
5021 * section.c (bfd_make_section_anyway): Release newsect ptr when
5022 newsect->symbol fails to alloc. Use bfd_release instead of free.
5023
5024 2000-10-09 Richard Henderson <rth@cygnus.com
5025
5026 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5027 (elf64_ia64_unwind_entry_compare): New.
5028 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5029
5030 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5031
5032 * elflink.h (size_dynamic_sections): Don't create various tags if
5033 .dynstr is excluded from the link. Don't set first dynsym entry
5034 if dynsymcount is zero.
5035 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5036 .dynsym excluded from the link. Don't try to write any dynamic
5037 sections excluded from the link.
5038
5039 * elf.c (swap_out_syms): Handle global section symbols.
5040
5041 2000-10-05 DJ Delorie <dj@redhat.com>
5042
5043 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5044 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5045 (coff_write_relocs): write extended reloc count
5046 (coff_write_object_contents): account for extended relocs
5047
5048 2000-10-05 Jim Wilson <wilson@cygnus.com>
5049
5050 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5051 field.
5052 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5053 elf_backend_section_flags function.
5054 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5055 code.
5056 (elf64_ia64_section_flags): New function containing flag conversion
5057 code.
5058 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5059 * elfxx-target.h (elf_backend_section_flags): Define.
5060 (elfNN_bed): Initialize elf_backend_section_flags field.
5061
5062 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5063
5064 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5065 _bfd_elf32_gc_record_vtable. Correct a comment.
5066
5067 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5068
5069 From Ralf Baechle <ralf@gnu.org>
5070
5071 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5072 produces binaries with got[1] = 0x80000001 to differenciate them
5073 for the dynamic linker from the broken binaries produced by old
5074 versions.
5075
5076 2000-09-30 Petr Sorfa <petrs@sco.com>
5077
5078 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5079 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5080 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5081 * configure: Regenerate.
5082
5083 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5084
5085 Define two bfd_targets for absence and presence of leading
5086 underscore on symbols. Make sure to only link same kind.
5087 * elf32-cris.c (cris_elf_object_p,
5088 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5089 cris_elf_merge_private_bfd_data): New.
5090 (elf_backend_object_p, elf_backend_final_write_processing,
5091 bfd_elf32_bfd_print_private_bfd_data,
5092 bfd_elf32_bfd_merge_private_bfd_data): Define.
5093 <Target vector definition>: Include elf32-target.h twice with
5094 different macro settings:
5095 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5096 bfd_elf32_us_cris_vec.
5097 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5098 (elf_symbol_leading_char): First as 0, then '_'.
5099 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5100 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5101 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5102 * configure: Regenerate.
5103 * targets.c: Declare bfd_elf32_us_cris_vec.
5104 * po/bfd.pot: Regenerate.
5105
5106 2000-09-29 Momchil Velikov <velco@fadata.bg>
5107
5108 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5109 R_ARM_THM_PC22 relocations.
5110
5111 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5112
5113 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5114
5115 2000-09-29 Momchil Velikov <velco@fadata.bg>
5116
5117 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5118 is has the SEC_HAS_CONTENTS flag set.
5119
5120 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
5121 Hans-Peter Nilsson <hp@axis.com>
5122
5123 * aout-cris.c (N_TXTADDR): Define.
5124
5125 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5126
5127 * som.c: Include alloca-conf.h.
5128 * Makefile.am: "make dep-am"
5129 * Makefile.in: Regenerate.
5130
5131 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5132
5133 * elf32-hppa.c (plt_stub): New.
5134 (PLT_STUB_ENTRY): Define.
5135 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5136 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5137 (elf32_hppa_link_hash_table_create): Init to suit.
5138 (elf32_hppa_check_relocs): Set has_12bit_branch and
5139 has_17bit_branch as appropriate.
5140 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5141 non-local functions.
5142 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5143 Add space for plt_stub as needed.
5144 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5145 functions at plt_stub.
5146 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5147 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5148
5149 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5150 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5151 of fixed size, and if negative, disable handling of input sections
5152 before stub section. Set up default stub group size depending
5153 on detected branch relocs.
5154 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5155 ensure different offsets from sym_value aren't rounded to
5156 different 2k blocks. Use lrsel and rrsel for other stubs too for
5157 consistency rather than necessity.
5158 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5159 (final_link_relocate): Likewise.
5160 (elf32_hppa_relocate_section): Likewise.
5161
5162 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5163 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5164 (elf_hppa_final_link_relocate): Handle them.
5165 (elf_hppa_relocate_insn): Likewise.
5166 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5167
5168 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5169
5170 * elfcode.h (elf_object_p): Preserve and clear abfd section
5171 information. Restore at error.
5172
5173 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5174
5175 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5176 is empty, make sure that its rva also 0. NT loader dislikes
5177 having otherwise.
5178
5179 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5180
5181 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5182 global by default.
5183
5184 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5185
5186 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5187 currently unused RELATIVE_DYNAMIC_RELOCS code.
5188 (hppa_discard_copies): Likewise.
5189 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5190 comments. Don't check non-code output sections for stub grouping.
5191
5192 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5193
5194 * section.c (bfd_get_unique_section_name): Return NULL if
5195 bfd_malloc fails.
5196
5197 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5198
5199 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5200 instruction sequence to actually work.
5201 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5202 accordingly.
5203
5204 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5205
5206 * elf32-sh.c (sh_elf_relocate_section): Use
5207 _bfd_final_link_relocate to apply the relocation against a section
5208 symbol, when doing relocatable links.
5209
5210 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5211
5212 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5213 to id_sec.
5214 (stub_hash_newfunc): Here too.
5215 (hppa_add_stub): And here.
5216 (elf32_hppa_link_hash_table): Remove stub_section_created,
5217 reloc_section_created, first_init_sec and first_fini_sec. Add
5218 stub_group.
5219 (elf32_hppa_link_hash_table_create): Init to suit.
5220 (hppa_get_stub_entry): Add support for grouping stub sections.
5221 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5222 section code. Index stub vars by section->id.
5223 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5224 exit paths. Zap allocation of above removed vars. Refine
5225 link-once test.
5226
5227 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5228 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5229 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5230 rather than pointer to bfd_link_info.
5231 (hppa_add_stub): Likewise.
5232 (final_link_relocate): Likewise.
5233
5234 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5235
5236 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5237 link-once sections.
5238
5239 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5240
5241 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5242 ld/emulparams/shelf.sh.
5243
5244 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5245
5246 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5247 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5248 * bfd-in2.h: Regenerate.
5249
5250 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5251
5252 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5253 LITUSE relocations incorrectly if -relax is specified on the ld
5254 command line and the displacement field of the load or store
5255 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5256
5257 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5258
5259 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5260 first_fini_sec here.
5261 (elf32_hppa_size_stubs): Instead correctly find the first .init
5262 and .fini section here.
5263
5264 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5265
5266 * elf32-hppa.c (clobber_millicode_symbols): New function.
5267 (elf32_hppa_size_dynamic_sections): Call it.
5268
5269 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5270
5271 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5272 packed. Add plabel, plt_abs packed booleans.
5273 (hppa_link_hash_newfunc): Init new fields.
5274 (PLABEL_PLT_ENTRY_SIZE): Define.
5275 (hppa_stub_name): Use size_t len vars.
5276 (hppa_add_stub): Likewise.
5277 (elf32_hppa_build_stubs): Likewise.
5278 (hppa_build_one_stub): Kill some compiler warnings.
5279 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5280 if dynamic linking. Munge the local plt offsets into
5281 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5282 size_t len vars. Add assert for plabel addend.
5283 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5284 (elf32_hppa_hide_symbol): New function.
5285 (elf_backend_hide_symbol): Define.
5286 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5287 with h->plabel set. Don't make plt entries to have dynamic syms
5288 when they have been forced local. If plt entry is used by a
5289 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5290 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5291 Set up .plt offsets for local syms.
5292 (elf32_hppa_relocate_section): Initialise plt entries for local
5293 syms. Leave weak undefined plabels zero. Make global plabel
5294 relocs against function symbol, and leave the addend zero.
5295 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5296 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5297 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5298 relocs instead of SEGREL32 for dynamic got relocs.
5299 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5300 (elf_backend_got_header_size): Adjust.
5301 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5302
5303 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5304 (hppa_type_of_stub): Use it instead of #if 0
5305 (hppa_discard_copies): Use it here too.
5306 (elf32_hppa_size_dynamic_sections): And here.
5307
5308 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5309 (elf32_hppa_link_hash_table_create): And here.
5310 (hppa_build_one_stub): And here. Instead keep track of stub
5311 offset using _raw_size.
5312 (elf32_hppa_size_stubs): Likewise.
5313 (elf32_hppa_build_stubs): Likewise.
5314 (hppa_size_one_stub): Likewise. Resize reloc section too.
5315
5316 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5317 first_fini_sec handling. Don't search for reloc section or set
5318 hplink->reloc_section_created here.
5319 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5320 set reloc_section_created here.
5321 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5322 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5323 and DT_FINI.
5324 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5325
5326 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5327 with `hplink->root.'.
5328 (elf32_hppa_check_relocs): Likewise.
5329 (elf32_hppa_gc_sweep_hook): Likewise.
5330 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5331 (hppa_handle_PIC_calls): Likewise.
5332 (elf32_hppa_size_dynamic_sections): Likewise.
5333 (elf32_hppa_set_gp): Likewise.
5334 (elf32_hppa_relocate_section): Likewise.
5335 (elf32_hppa_finish_dynamic_symbol): Likewise.
5336 (elf32_hppa_finish_dynamic_sections): Likewise.
5337
5338 From David Huggins-Daines <dhd@linuxcare.com>
5339 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5340 defined weak symbols in shared links.
5341 (final_link_relocate): Calls to defined weak symbols in shared
5342 objects must go via import stubs, as the target might not be known
5343 at link time.
5344
5345 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5346
5347 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5348 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5349 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5350 the original entries with EMPTY_HOWTOs, and added new ones to fill
5351 in the gap.
5352 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5353 (sh_elf_relocate_section): Likewise.
5354
5355 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5356
5357 * cpu-mips.c (arch_info_struct): Add mips:4K
5358 * bfd-in2.h (bfd_mach_mips4K): New define.
5359 * archures.c: Add bfd_mach_mips4K to comment.
5360 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5361 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5362
5363 2000-09-13 Marco Franzen <marcof@thyron.com>
5364
5365 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5366 use size_t as a counter.
5367 (som_write_space_strings): Similarly.
5368
5369 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5370
5371 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5372 and prototype.
5373 (elf32_i860_relocate_section): Invoke new function from here.
5374
5375 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5376
5377 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5378 static.
5379
5380 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5381
5382 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5383 target section name instead of dumping core when the target symbol is
5384 undefined.
5385
5386 2000-09-09 Kazu Hirata <kazu@hxi.com>
5387
5388 * riscix.c: Remove DEFUN.
5389
5390 2000-09-08 Nick Clifton <nickc@redhat.com>
5391
5392 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5393 initialise flags in output bfd if the input bfd is the default
5394 architecture with the default flags.
5395
5396 2000-09-08 Kazu Hirata <kazu@hxi.com>
5397
5398 * archive.c: Fix formatting.
5399 * coff-arm.c: Likewise.
5400 * doc/chew.c: Likewise.
5401
5402 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5403
5404 * section.c (bfd_get_unique_section_name): Put a dot before the
5405 numeric suffix.
5406
5407 2000-09-07 Kazu Hirata <kazu@hxi.com>
5408
5409 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5410 * elf.c: Fix formatting.
5411
5412 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5413
5414 * config.bfd (sh-*-linux*): Added.
5415 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5416 * targets.c: Declare them.
5417 * elf32-sh-lin.c: New file.
5418 * Makefile.am: Compile it.
5419 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5420 * configure, Makefile.in: Rebuilt.
5421
5422 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5423
5424 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5425 pseduo-section when determining where the TOC ends.
5426
5427 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5428 output x_tvndx as it is only two bytes wide.
5429
5430 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5431 reloc is 26 or 32 bits wide.
5432
5433 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5434 for relocs that don't change anything. Also look at the full
5435 6 bits of bitsize.
5436
5437 2000-09-06 Philip Blundell <philb@gnu.org>
5438
5439 * config.bfd (arm*-*-uclinux*): New target.
5440
5441 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5442
5443 * configure: Rebuilt with new libtool.m4.
5444
5445 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5446
5447 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5448 word for variable name.
5449 * bfd-in2.h: Regenerate.
5450
5451 2000-09-05 Nick Clifton <nickc@redhat.com>
5452
5453 * config.in: Regenerate.
5454 * libbfd.h: Regenerate.
5455 * po/bfd.pot: Regenerate.
5456 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5457 local versions.
5458
5459 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5460
5461 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5462
5463 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5464
5465 Shared library and PIC support.
5466 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5467 (GOT_ENTRY_SIZE): New.
5468 (ELF_DYNAMIC_INTERPRETER): New.
5469 (STUB_SUFFIX): Define.
5470 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5471 (RELATIVE_DYNAMIC_RELOCS): Define.
5472 (enum elf32_hppa_stub_type): New.
5473 (struct elf32_hppa_stub_hash_entry): Rename offset to
5474 stub_offset. Add a number of new fields.
5475 (struct elf32_hppa_link_hash_entry): New.
5476 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5477 global_value.
5478 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5479 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5480 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5481 new fields.
5482 (hppa_link_hash_newfunc): New function.
5483 (elf32_hppa_link_hash_table_create): Use above function. Init new
5484 fields.
5485 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5486 instead of addend, and remove sym_name from args. Don't use
5487 symbol name for local syms, instead use sym index.
5488 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5489 stub type rather than size. Pass in hash and handle import stub
5490 case. Also pass in reloc instead of offset so we can calculate
5491 PCREL22F and PCREL12F branches properly.
5492 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5493 import and export stubs too.
5494 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5495 import and export stub sizing.
5496 (elf32_hppa_check_relocs): New function.
5497 (elf32_hppa_adjust_dynamic_symbol): New function.
5498 (hppa_discard_copies): New function.
5499 (elf32_hppa_size_dynamic_sections): New function.
5500 (elf_backend_size_dynamic_sections): Define.
5501 (elf32_hppa_finish_dynamic_symbol): New function.
5502 (elf_backend_finish_dynamic_symbol): Define.
5503 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5504 some local vars into the link hash table too. For shared links,
5505 trundle over function syms, generating export stubs. Handle
5506 PCREL22F branches. Break out stub creation code from here..
5507 (hppa_add_stub): .. to here. New function.
5508 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5509 call the bfd linker. Use elf_gp to record global pointer.
5510 Calculate a value from sections if $global$ is missing.
5511 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5512 (elf32_hppa_gc_mark_hook): New function.
5513 (elf_backend_gc_mark_hook): Define.
5514 (elf32_hppa_gc_sweep_hook): New function.
5515 (elf_backend_gc_sweep_hook): Define.
5516 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5517 Add rel to args, and remove howto, input_bfd, offset, addend,
5518 sym_name as we can recalculate these locally. Handle calls to
5519 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5520 handling of undefined weak syms. Check that stubs are in range.
5521 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5522 message on hitting a DPREL21L reloc that needs fixing. Subtract
5523 off PC for PCREL14F. Break out code that does a stub lookup from
5524 here..
5525 (hppa_get_stub_entry): ..to here. New function.
5526 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5527 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5528 relocs, etc. etc.
5529 (elf32_hppa_finish_dynamic_sections): New function.
5530 (elf_backend_finish_dynamic_sections): Define.
5531 (elf_backend_final_write_processing) Define.
5532 (hppa_handle_PIC_calls): New function.
5533 (elf32_hppa_build_stubs): Call it. Pass link_info to
5534 hppa_build_one_stub.
5535 (elf32_hppa_create_dynamic_sections): New function
5536 to create .plt and .got then set .plt flags correctly.
5537 (elf_backend_create_dynamic_sections): Define.
5538 (elf32_hppa_object_p): New function.
5539 (elf_backend_object_p): Define.
5540 (elf32_hppa_elf_get_symbol_type): New function.
5541 (elf_backend_get_symbol_type): Define.
5542 (elf_backend_can_gc_sections): Define.
5543 (elf_backend_want_got_plt): Define.
5544 (elf_backend_plt_alignment): Set to 2.
5545 (elf_backend_plt_readonly): Define.
5546 (elf_backend_want_plt_sym): Define.
5547 (elf_backend_got_header_size): Reserve one entry.
5548
5549 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5550 (elf32_hppa_size_stubs): Pass in multi_subspace.
5551 (elf32_hppa_set_gp): Declare.
5552
5553 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5554 (bfd_get_unique_section_name): New function.
5555 * bfd-in2.h: Regenerate.
5556
5557 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5558 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5559 comment.
5560
5561 From David Huggins-Daines <dhd@linuxcare.com>
5562 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5563 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5564 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5565 been updated in finish_dynamic_symbol before modifying function
5566 symbol.
5567
5568 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5569 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5570 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5571 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5572 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5573 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5574 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5575 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5576
5577 From David Huggins-Daines <dhd@linuxcare.com>
5578 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5579 style of local labels as well.
5580
5581 2000-09-03 Philip Blundell <philb@gnu.org>
5582
5583 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5584 references to undefined symbols in debugging sections.
5585
5586 2000-09-02 H.J. Lu <hjl@gnu.org>
5587
5588 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5589 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5590 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5591 section.
5592
5593 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5594
5595 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5596 (elf32_i860_is_local_label_name): New function and prototype.
5597
5598 2000-09-02 Nick Clifton <nickc@redhat.com>
5599
5600 * configure.in: Increase version number to 2.10.91.
5601 * configure: Regenerate.
5602 * aclocal.m4: Regenerate.
5603 * config.in: Regenerate.
5604 * po/bfd.pot: Regenerate.
5605
5606 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5607
5608 * elf.c (_bfd_elf_make_section_from_shdr): Add
5609 .gnu.linkobce.wi. to the list of debug section names.
5610
5611 2000-09-02 Nick Clifton <nickc@redhat.com>
5612
5613 * dwarf2.c (find_debug_info): New function: Locate a section
5614 containing dwarf2 debug information.
5615 (bfd_dwarf2_find_nearest_line): Find all sections containing
5616 debug information and include them in the stash.
5617
5618 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5619
5620 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5621 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5622 (sh_reloc_map): Add new relocs.
5623 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5624 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5625 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5626 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5627 functions.
5628 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5629 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5630 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5631 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5632 New array constants.
5633 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5634 New variables.
5635 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5636 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5637 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5638 elf_sh_plt_reloc_offset): Define.
5639 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5640 elf_sh_link_hash_table): New structs.
5641 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5642 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5643 relocation types.
5644 (elf_backend_create_dynamic_sections,
5645 bfd_elf32_bfd_link_hash_table_create,
5646 elf_backend_adjust_dynamic_symbol,
5647 elf_backend_size_dynamic_sections,
5648 elf_backend_finish_dynamic_symbol,
5649 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5650 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5651 elf_backend_got_header_size, elf_backend_plt_header_size):
5652 Define.
5653 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5654 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5655 New relocs.
5656 * bfd-in2.h, libbfd.h: Rebuilt.
5657
5658 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5659
5660 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5661 change.
5662
5663 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5664
5665 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5666 not initialized, set them to indicate the SH1 instruction set.
5667
5668 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5669
5670 * acinclude.m4: Include libtool and gettext macros from the
5671 top level.
5672 * aclocal.m4, configure: Rebuilt.
5673
5674 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5675
5676 * elf.c: Eliminate references to __sparcv9 macro; replace with
5677 autoconf variables HAVE_PSINFO32_T etc.
5678 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5679 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5680 * config.in: Ditto.
5681 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5682 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5683 * aclocal.m4: Ditto.
5684 * configure: Regenerate.
5685
5686 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5687
5688 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5689 for any shared link, not just shared -Bsymbolic.
5690 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5691 any shared link, and pass link info to it.
5692 (elf_i386_size_dynamic_sections): Update comment.
5693 (elf_i386_discard_copies): Modify to discard relocs for symbols
5694 that have been forced local.
5695 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5696 that have been forced local.
5697
5698 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5699
5700 * elflink.h (elf_link_add_object_symbols): Allow common
5701 symbols to have an alignment of 1 if explicitly requested, and
5702 not overridden by other definitions.
5703
5704 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5705
5706 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5707 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5708
5709 2000-08-22 H.J. Lu <hjl@gnu.org>
5710
5711 * elf-bfd.h (elf_link_hash_table): Add runpath.
5712
5713 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5714 * bfd-in2.h: Rebuilt.
5715
5716 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5717 "runpath" field to NULL.
5718 (bfd_elf_get_runpath_list): New function.
5719
5720 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5721 DT_RUNPATH entries.
5722
5723 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5724
5725 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5726 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5727 explicitly. Improve validation of r_type.
5728
5729 2000-08-21 H.J. Lu <hjl@gnu.org>
5730
5731 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5732 dynamic allocated content space. Add a comment to remind us that
5733 one day this ought to be fixed.
5734 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5735 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5736 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5737
5738 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5739
5740 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5741 field with the newly relocated value instead of adding it to the
5742 existing immediate field.
5743 (elf32_i860_relocate_splitn): Likewise.
5744 (elf32_i860_relocate_highadj): Likewise.
5745
5746 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5747
5748 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5749 was previously just a stub).
5750
5751 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5752
5753 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5754 Formatting fixes.
5755 (_bfd_elf_create_dynamic_sections): Likewise.
5756
5757 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5758
5759 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5760 for undefined symbols to be the beginning of the section.
5761
5762 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5763 four extra entries at the beginning of the .rela.plt section.
5764 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5765 section to account for the four reserved entries in the .plt section.
5766
5767 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5768
5769 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5770 to the list of NOPs we recognize after a branch-and-link.
5771 Use the ori NOP when one is needed.
5772
5773 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5774 for large archives.
5775
5776 2000-08-14 Jim Wilson <wilson@cygnus.com>
5777
5778 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5779 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5780 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5781 EF_IA_64_ABSOLUTE.
5782
5783 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5784
5785 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5786
5787 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5788
5789 * elf32-i860.c (elf32_i860_relocate_section): New function.
5790 (i860_final_link_relocate): New function.
5791 (elf32_i860_relocate_splitn): New function.
5792 (elf32_i860_relocate_pc16): New function.
5793 (elf32_i860_relocate_highadj): New function.
5794 (elf32_i860_howto): Minor adjustments to some relocations.
5795 (elf_info_to_howto_rel): Define.
5796 (elf_backend_relocate_section): Define.
5797
5798 2000-08-10 Nick Clifton <nickc@cygnus.com>
5799
5800 * elf32-arm.h: Fix formatting.
5801
5802 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5803
5804 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5805
5806 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5807
5808 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5809
5810 2000-08-07 Kazu Hirata <kazu@hxi.com>
5811
5812 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5813 * elf64-ia64.c: Fix a typo.
5814
5815 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5816
5817 * elf32-i860.c (elf32_i860_howto_table): New structure.
5818 (lookup_howto): New function.
5819 (elf32_i860_reloc_type_lookup): New function.
5820 (elf32_i860_info_to_howto_rela): New function.
5821 (elf_code_to_howto_index): New structure.
5822 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5823 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5824 elf32_i860_reloc_type_lookup.
5825
5826 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5827
5828 * som.c (struct fixup_format): Constify `format'.
5829 (som_hppa_howto_table): Use SOM_HOWTO macro.
5830 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5831 (som_bfd_reloc_type_lookup): Likewise.
5832 (compare_subspaces): Remove unused `count1', `count2'.
5833 (som_begin_writing): Remove unused `total_reloc_size'.
5834 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5835 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5836 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5837 (som_find_nearest_line): Decorate unused parameter(s).
5838 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5839 (som_bfd_link_split_section): Likewise.
5840
5841 2000-08-03 Nick Clifton <nickc@cygnus.com>
5842
5843 * section.c: Restore backed out code.
5844 * elf.c: Restore backed out code.
5845 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5846 binaries from working.
5847 * bfd-in2.h: Regenerate.
5848
5849 2000-08-03 H.J. Lu <hjl@gnu.org>
5850
5851 * section.c: Back out the change made by Nick Clifton
5852 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5853 binaries.
5854 * bfd-in2.h: Likewise.
5855 * elf.c: Likewise.
5856
5857 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5858
5859 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5860
5861 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5862
5863 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5864 * bfd-in2.h, libbfd.h: Regenerate.
5865
5866 2000-07-31 Nick Clifton <nickc@cygnus.com>
5867
5868 * section.c (struct sec): Add new boolean field 'segment_mark'.
5869 (STD_SECTION): Initialise new field to zero.
5870
5871 * bfd-in2.h: Regenerate.
5872
5873 * elf.c (copy_private_bfd_data): Reorganise section to segment
5874 mapping to cope with moved sections requiring new segments,
5875 and overlapping segments.
5876 (SEGMENT_END): New macro: Return the end address of a segment.
5877 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5878 contains a section by comparing their VMA addresses.
5879 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5880 contains a section by comparing their LMA addresses.
5881 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5882 section should be included in a segment.
5883 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5884 follows another in memory.
5885 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5886 segments overlap.
5887
5888 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5889
5890 * cpu-i860.c: Added comments.
5891
5892 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5893 bfd_elf32_i860_little_vec.
5894 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5895 (ELF_MAXPAGESIZE): Changed to 4096.
5896
5897 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5898 new target.
5899 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5900
5901 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5902 config for little endian elf32 i860.
5903 (targ_defvec): Define for the new config above
5904 as "bfd_elf32_i860_little_vec".
5905 (targ_selvecs): Define for the new config above
5906 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5907
5908 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5909 of new target vec.
5910
5911 * configure: Regenerated.
5912
5913 2000-07-27 H.J. Lu <hjl@gnu.org>
5914
5915 * elflink.h (elf_merge_symbol): Take one more argument,
5916 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5917 entry. Don't overide the existing weak definition if dt_needed
5918 is true.
5919 (elf_link_add_object_symbols): Pass dt_needed to
5920 elf_merge_symbol ().
5921
5922 2000-07-27 Nick Clifton <nickc@cygnus.com>
5923
5924 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5925 allocated contents.
5926
5927 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5928
5929 * configure.host (*-*-aix*): AIX has 'long long' always.
5930
5931 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5932 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5933 (xcoff_write_archive_contents_big): Don't update the offset
5934 of the symbol table, xcoff_write_armap will do it.
5935
5936 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5937
5938 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5939 of dynobj for SGI_COMPAT checks.
5940
5941 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5942
5943 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5944 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5945 * bfd-in2.h: Regenerate.
5946
5947 2000-07-21 Nick Clifton <nickc@cygnus.com>
5948
5949 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5950 range symbol indices in relocs and issue an error message.
5951
5952 2000-07-20 H.J. Lu <hjl@gnu.org>
5953
5954 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5955 info->new_dtags when setting DT_FLAGS_1. It will only be set
5956 by the new linker options. It shouldn't break anything.
5957
5958 2000-07-20 H.J. Lu <hjl@gnu.org>
5959
5960 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5961 only if info->new_dtags is true.
5962
5963 2000-07-20 H.J. Lu <hjl@gnu.org>
5964
5965 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5966 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5967
5968 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5969
5970 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5971 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5972 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5973 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5974 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5975 * Makefile.in: Rebuild.
5976 * aclocal.m4: Rebuild.
5977 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5978 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5979 (bfd_cris_arch): Declare.
5980 (bfd_archures_list): Add bfd_cris_arch.
5981 * bfd-in2.h: Rebuild.
5982 * config.bfd: (cris-*-*): New target.
5983 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5984 * configure: Rebuild.
5985 * elf.c (prep_headers): Add bfd_arch_cris.
5986 * libbfd.h: Rebuild.
5987 * libaout.h (enum machine_type): Add M_CRIS.
5988 * reloc.c: Add CRIS relocations.
5989 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5990 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5991 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5992 * po/POTFILES.in, po/bfd.pot: Regenerate.
5993
5994 2000-07-19 H.J. Lu <hjl@gnu.org>
5995
5996 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5997 DF_TEXTREL if DT_TEXTREL is set.
5998 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5999 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6000 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6001 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6002 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6003 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6004 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6005 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6006 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6007 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6008
6009 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6010 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6011 DT_RPATH is set.
6012 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6013
6014 2000-07-19 H.J. Lu <hjl@gnu.org>
6015
6016 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6017 * bfd-in2.h: Rebuild.
6018
6019 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6020 (elf_dt_soname): New.
6021
6022 * elf.c (bfd_elf_set_dt_needed_soname): New.
6023
6024 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6025 entry if the shared object loaded by DT_NEEDED is used to
6026 resolve the reference in a regular object.
6027
6028 2000-07-19 H.J. Lu <hjl@gnu.org>
6029
6030 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6031 DT_DEPAUDIT and DT_AUDIT as strings.
6032
6033 2000-07-19 Nick Clifton <nickc@cygnus.com>
6034
6035 * format.c: Fix formatting.
6036
6037 2000-07-19 H.J. Lu <hjl@gnu.org>
6038
6039 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6040
6041 2000-07-19 H.J. Lu <hjl@gnu.org>
6042
6043 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6044 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6045 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6046 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6047 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6048 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6049 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6050
6051 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6052
6053 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6054 renamed functions from here...
6055 (assign_section_numbers): Use renamed functions.
6056 (prep_headers): Use renamed functions.
6057
6058 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6059 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6060 * bfd-in2.h: Regenerate.
6061
6062 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6063
6064 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6065 parenthesis in if statement.
6066
6067 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6068
6069 Enable the support for Traditional MIPS.
6070 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6071 return ict_none appropriately for traditional mips targets.
6072 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6073 (STUB_MOVE): Conditionalize for traditonal mips.
6074 (STUB_LI16): Likewise.
6075 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6076 room for RTPROC header.
6077 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6078 the permission for the PT_DYNAMIC as read, write and execute.
6079 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6080 for traditonal mips.
6081 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6082 _DYNAMIC_LINKING for traditonal mips.
6083 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6084 in case of traditonal mips.
6085 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6086 entry is required. For a function if PLT is not required then set the
6087 corresponding hash table entry to 0.
6088 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6089 traditonal mips.
6090 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6091 shared object set the value to 0.
6092 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6093 _DYNAMIC_LINKING for traditonal mips.
6094 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6095 for traditonal mips.
6096
6097 2000-07-15 H.J. Lu <hjl@gnu.org>
6098
6099 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6100
6101 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6102
6103 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6104 out a structure that is BFD_IN_MEMORY.
6105
6106 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6107
6108 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6109 bfd pointer. Print section id instead of bfd pointer for local
6110 syms. Prefix addend with `+' for global syms as well as local.
6111 Correct calculation of name component lengths.
6112 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6113
6114 From David Huggins-Daines <dhd@linuxcare.com>
6115 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6116 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6117 (elf64_hppa_modify_segment_map): Likewise.
6118
6119 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6120
6121 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6122 addresses to be "naturally" sign extended. Return -1 if unknown.
6123 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6124 * bfd-in2.h: Regenerate.
6125
6126 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6127
6128 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6129 and ECOF_SIGNED_64 to list ways to extract an offset.
6130 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6131 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6132 Update.
6133 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6134 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6135
6136 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6137
6138 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6139 bfd_get_start_address.
6140 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6141 (elf_swap_ehdr_out): Ditto.
6142
6143 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6144
6145 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6146 compatibility with older binutils.
6147
6148 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6149
6150 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6151 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6152
6153 From Ryan Bradetich <rbradetich@uswest.net>
6154 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6155 (parse_line_table): Ditto.
6156 (_bfd_dwarf1_find_nearest_line): Ditto.
6157 * syms.c (cmpindexentry): Remove extra `*' from params.
6158
6159 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6160
6161 * elf32-mips.c (sort_dynamic_relocs): New Function.
6162 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6163 via qsort to sort the dynamic relocations in increasing r_symndx
6164 value.
6165
6166 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6167
6168 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6169 ATTRIBUTE_UNUSED to unused args.
6170 (get_opd): Likewise.
6171 (get_plt): Likewise.
6172 (get_dlt): Likewise.
6173 (get_stub): Likewise.
6174 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6175 (elf64_hppa_link_output_symbol_hook): Likewise.
6176 (elf64_hppa_check_relocs): Delete unused var.
6177 (elf64_hppa_size_dynamic_sections): Likewise.
6178 (elf64_hppa_finalize_opd): Likewise.
6179 (elf64_hppa_finalize_dynreloc): Likewise.
6180 (elf64_hppa_modify_segment_map): Likewise.
6181 (elf64_hppa_finish_dynamic_sections): Likewise.
6182
6183 * elf-hppa.h (elf_hppa_final_write_processing): Add
6184 ATTRIBUTE_UNUSED to unused args.
6185 (elf_hppa_final_link_relocate): Likewise.
6186 (elf_hppa_record_segment_addrs): Add paretheses.
6187 (elf_hppa_relocate_section): Constify dyn_name.
6188
6189 From David Huggins-Daines <dhd@linuxcare.com>
6190 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6191 rearrange case statement so that it gets preferred to 32-bit ones.
6192
6193 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6194 asection->id instead of address of asection structure.
6195 (elf32_hppa_size_stubs): Likewise.
6196
6197 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6198 for .init* and .fini*.
6199
6200 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6201 and addends used in stub names to 32 bits.
6202 (elf32_hppa_size_stubs): Likewise.
6203
6204 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6205 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6206 not bfd_put_64. Fix minor comment typo and formatting.
6207
6208 Changes to create multiple linker stubs, positioned immediately
6209 before the section where they are required.
6210 * elf32-hppa.c: Don't include hppa_stubs.h.
6211 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6212 (elf32_hppa_stub_hash_table): Delete.
6213 (elf32_hppa_link_hash_entry): Delete.
6214 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6215 stub_hash_table, and store the struct here rather than a pointer.
6216 Delete output_symbol_count. Add offset array. Change
6217 global_value to a bfd_vma.
6218 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6219 (elf32_hppa_stub_hash_traverse): Delete.
6220 (elf32_hppa_name_of_stub): Delete.
6221 (elf32_hppa_link_hash_lookup): Delete.
6222 (elf32_hppa_link_hash_traverse): Delete.
6223 (elf32_hppa_stub_hash_table_init): Delete.
6224 (elf32_hppa_size_of_stub): Pass input section and offset rather
6225 than location and calculate location here. Don't pass name as all
6226 stubs are now the same size.
6227 (elf32_hppa_stub_hash_newfunc): Init new fields.
6228 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6229 too.
6230 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6231 comparing against ints. Rewrite stub handling code.
6232 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6233 Case enums to int before comparing against ints. Remove
6234 bfd_reloc_dangerous case.
6235 (elf32_hppa_build_one_stub): Rewrite.
6236 (elf32_hppa_size_one_stub): New function.
6237 (elf32_hppa_build_stubs): Rewrite.
6238 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6239 Rewrite stub-handling specific code.
6240
6241 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6242
6243 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6244
6245 * hppa_stubs.h: Delete.
6246 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6247 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6248 * Makefile.in: Regenerate.
6249
6250 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6251 e_nlrsel.
6252
6253 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6254
6255 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6256 and section name for bfd_reloc_notsupported error message.
6257 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6258 bfd_reloc_notsupported.
6259 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6260
6261 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6262 undefined weak symbols for all relocs.
6263 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6264 offsets are relative to one past the delay slot.
6265 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6266 branch destination. Put addend into stub name too.
6267 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6268 adjust by 8 when deciding whether a linker stub is needed. Put
6269 addend into stub name as for above.
6270
6271 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6272 various args and vars.
6273 (elf32_hppa_bfd_final_link_relocate): Here too.
6274 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6275 inner block var to avoid shadowing.
6276
6277 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6278 unsigned.
6279 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6280 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6281 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6282
6283 * libhppa.h: Change practically all unsigned ints to plain ints.
6284 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6285 prototypes.
6286
6287 From Ryan Bradetich <rbradetich@uswest.net>
6288 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6289 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6290 suit above.
6291 From David Huggins-Daines <dhd@linuxcare.com>
6292 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6293 to the new OP_* ones.
6294
6295 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6296 error exit. Bail out earlier on plabel relocs that we aren't
6297 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6298 string, and then don't free our copy.
6299 (elf32_hppa_build_one_stub): Make insn unsigned int.
6300
6301 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6302 available with BL, not BE and BLE.
6303
6304 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6305 code for elf arg relocs.
6306 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6307 argument with elf_link_hash_entry h. Handle undefined weak
6308 symbols. Move $global$ lookup from here...
6309 (elf32_hppa_relocate_section): ...to here. Return correct error
6310 message for non-handled relocs.
6311 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6312 wrong test was -0x3ffff to +0x40000.
6313
6314 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6315 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6316 Handle them as such.
6317 (elf_hppa_relocate_insn): Fix a typo.
6318
6319 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6320 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6321 assemble_17, assemble_21): Delete.
6322 Supply defines for all 64 possible opcodes.
6323 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6324 formats. Handle COMICLR.
6325 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6326 -10, -16, 16, 22.
6327
6328 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6329 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6330 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6331 to suit.
6332 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6333 the local syms - did this code get deleted accidentally? Ignore
6334 undefined and undefweak syms.
6335
6336 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6337 block. Use it instead of elf64_hppa_hash_table (info).
6338 (elf_hppa_final_link_relocate): Use hppa_info instead of
6339 elf64_hppa_hash_table (info).
6340
6341 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6342 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6343 (hppa_rebuild_insn): Mask immediate bits here instead.
6344 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6345
6346 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6347
6348 * section.c (struct sec): Add id field. Tidy comment formatting.
6349 (bfd_make_section_anyway): Set id.
6350 (STD_SECTION): Init id too.
6351 Change CONST to const throughout.
6352 * archures.c (bfd_arch_info): Tidy comment.
6353 (bfd_arch_list): Change a CONST to const.
6354 * libbfd-in.h: Tidy comments and replace CONST with const.
6355 * elf-bfd.h: Likewise.
6356 * libbfd.h: Regenerate.
6357 * bfd-in2.h: Regenerate.
6358 * libcoff.h: Regenerate.
6359
6360 2000-07-07 DJ Delorie <dj@redhat.com>
6361
6362 * archive.c (_bfd_write_archive_contents): Add an informative
6363 comment.
6364
6365 2000-07-06 Kazu Hirata <kazu@hxi.com>
6366
6367 * srec.c: Fix formatting.
6368
6369 2000-06-05 DJ Delorie <dj@redhat.com>
6370
6371 * MAINTAINERS: new
6372
6373 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6374
6375 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6376 value of PC-relative offsets.
6377
6378 2000-07-03 Jim Wilson <wilson@cygnus.com>
6379
6380 * elf64-alpha.c (alpha_elf_size_info): New.
6381 (elf_backend_size_info): Define to alpha_elf_size_info.
6382 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6383
6384 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6385
6386 * elf32-mips.c: Include elf32-target.h again for the traditional
6387 MIPS targets.
6388
6389 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6390
6391 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6392 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6393 (avr_info_to_howto_rela): Likewise.
6394 (elf32_avr_gc_mark_hook): Likewise.
6395 (elf32_avr_gc_sweep_hook): Likewise.
6396 (elf32_avr_relocate_section): Likewise.
6397
6398 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6399
6400 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6401 an external symbol for a non-shared, non-relocatable link.
6402
6403 2000-07-03 Nick Clifton <nickc@redhat.com>
6404
6405 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6406 is an external symbol.
6407 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6408 external symbol.
6409
6410 2000-07-03 Kazu Hirata <kazu@hxi.com>
6411
6412 * reloc16.c: Fix formatting.
6413
6414 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6415
6416 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6417 to add a new target for traditional mips i.e
6418 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6419 * configure.in: Likewise.
6420 * configure: Rebuild.
6421 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6422 bfd_target_vector.
6423 (bfd_elf32_tradlittlemips_vec): Likewise.
6424 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6425 to see that elfNN_bed does not get redefined even if the target file
6426 is included twice for a chip. See elf32-mips.c.
6427
6428 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6429
6430 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6431 (CLEANFILES): Add DEPA.
6432 * Makefile.in: Regenerate.
6433
6434 2000-06-30 DJ Delorie <dj@cygnus.com>
6435
6436 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6437 can't assume the PE header is at 0x80.
6438
6439 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6440
6441 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6442
6443 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6444
6445 * go32stub.h: Update stub.
6446
6447 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6448
6449 * archures.c (bfd_mach_avr5): Define.
6450 * bfd-in2.h (bfd_mach_avr5): Define.
6451 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6452 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6453 (compatible): Update comment. Add missing test.
6454 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6455 for avr2 and avr4. Simplify 8K wrap code.
6456 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6457 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6458
6459 2000-06-26 Kazu Hirata <kazu@hxi.com>
6460
6461 * coff-h8300.c: Fix formatting.
6462 * cpu-h8300.c: Likewise.
6463
6464 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6465
6466 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6467 for local symbols whose names are unknown.
6468
6469 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6470
6471 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6472 find one.
6473 * Makefile.in: Regenerate.
6474 * doc/Makefile.in: Regenerate.
6475
6476 2000-06-20 H.J. Lu <hjl@gnu.org>
6477
6478 * Makefile.am: Rebuild dependency.
6479 * Makefile.in: Rebuild.
6480
6481 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6482
6483 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6484 (elf_backend_copy_indirect_symbol): Map to the new function.
6485
6486 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6487
6488 * archive.c (normalize): Correct pointer comparison when checking
6489 for backslashes.
6490 (bfd_bsd_truncate_arname): Likewise.
6491 (bfd_gnu_truncate_arname): Likewise.
6492
6493 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6494
6495 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6496 sections elf_{text,data}_{section,symbol}.
6497 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6498 (_bfd_mips_elf_hide_symbol): New function.
6499 (elf_backend_hide_symbol): Map to the new function.
6500 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6501 definitions of mips_elf_{text,data}_{section,symbol}.
6502 (mips_elf_local_relocation_p): Try to find the direct symbol
6503 based on new check_forced argument.
6504 (mips_elf_calculate_relocation): Use new version of
6505 mips_elf_local_relocation_p.
6506 (mips_elf_relocate_section): Likewise.
6507 (_bfd_mips_elf_relocate_section): Likewise.
6508 (mips_elf_sort_hash_table): Only assert that have enough GOT
6509 space.
6510 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6511 entry if the relocation based on the new external argument.
6512 (mips_elf_create_dynamic_relocation): Assert that we have a
6513 section contents allocated where we can swap out the dynamic
6514 relocations.
6515 (mips_elf_calculate_relocation): Find the real hash-table entry
6516 correctly by using h->root.root.type. Only create a dynamic
6517 relocation entry if the symbol is defined in a shared library.
6518 Create an external GOT entry for the GOT16 relocation if the
6519 symbol was forced local.
6520 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6521 dynamic index if the symbol was forced local.
6522
6523 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6524
6525 * elf32-mips.c: Fix typos in comments.
6526
6527 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6528
6529 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6530 CORE_VERSION_1.
6531
6532 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6533
6534 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6535 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6536 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6537 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6538 (bfd_elf32_m68hc11_vec): Likewise.
6539 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6540 Supports 68hc11 & 68hc12 at the same time.
6541 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6542 bfd_target_vector.
6543 (bfd_elf32_m68hc11_vec): Likewise.
6544 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6545 * archures.c (bfd_m68hc12_arch): Define and register in global list
6546 (bfd_m68hc11_arch): Likewise.
6547 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6548 BFD_RELOC_M68HC11_3B): Define.
6549 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6550 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6551
6552 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6553
6554 * elf_bfd.h (struct elf_backend_data): Add info argument to
6555 elf_backend_hide_symbol.
6556 (_bfd_elf_link_hash_hide_symbol): Likewise.
6557 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6558 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6559 * elflink.h (elf_link_add_object_symbols): Likewise.
6560 (elf_link_assign_sym_version): Likewise.
6561
6562 2000-06-18 H.J. Lu <hjl@gnu.org>
6563
6564 * coff-i386.c (coff_i386_reloc): Don't return in case of
6565 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6566 Compensate PE relocations when linking with non-PE object
6567 files to generate a non-PE executable.
6568
6569 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6570
6571 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6572 GOT entries if we're doing a static link or -Bsymbolic link.
6573
6574 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6575
6576 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6577 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6578 available.
6579 (elf_link_output_relocs): Likewise.
6580 (elf_reloc_link_order): Likewise.
6581
6582 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6583
6584 * archures.c (enum bfd_architecture): #define constants for
6585 PowerPc and RS6000 machine numbers.
6586 * bfd-in2.h: Regenerate.
6587 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6588 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6589 and RS6000 machine numbers using #defined constants from
6590 archures.c.
6591 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6592 machine numbers using #defined constants from archures.c. Add
6593 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6594 64-bit words in 620 entry.
6595 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6596 RSC, and RS2.
6597 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6598
6599 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6600
6601 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6602 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6603 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6604
6605 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6606
6607 * bfd-in.h (bfd_family_coff): Define.
6608 * bfd-in2.h: Regenerate.
6609 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6610 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6611 instead of bfd_target_coff_flavour.
6612 * cofflink.c (_bfd_coff_final_link): Likewise.
6613 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6614 exclude XCOFF files.
6615 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6616 Likewise.
6617 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6618 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6619 * xcofflink.c (XCOFF_XVECP): Delete.
6620 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6621 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6622 bfd_xcoff_record_link_assignment,
6623 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6624 check for bfd_target_xcoff_flavour.
6625
6626 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6627
6628 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6629 files on AIX 4.3.
6630 (read_hdr): New function.
6631 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6632 of trying to extract individual registers. Set abfd->arch_info
6633 to match the architecture that created the core file.
6634 (rs6000coff_get_section_contents): Delete.
6635 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6636
6637 2000-06-14 H.J. Lu <hjl@gnu.org>
6638
6639 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6640 is NULL.
6641
6642 2000-06-13 H.J. Lu <hjl@gnu.org>
6643
6644 * configure: Regenerate.
6645
6646 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6647
6648 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6649 armpei_little_vec.
6650
6651 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6652
6653 * configure.in (VERSION): Update to show this is the CVS mainline.
6654
6655 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6656
6657 * elf32-d10v.c: Include elf/d10v.h
6658 (enum reloc_type): Delete.
6659 * elf32-d30v.c: Include elf/d30v.h
6660 (enum reloc_type): Delete.
6661
6662 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6663 * Makefile.in: Regenerate.
6664
6665 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6666 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6667 move HOWTOs into elf_howto_table.
6668 (R_386_standard, R_386_ext_offset): Define.
6669 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6670 (elf_i386_reloc_type_lookup): Modify calculation of index into
6671 elf_howto_table since we've removed the padding.
6672 (elf_i386_info_to_howto_rel): Likewise.
6673 (elf_i386_relocate_section): Likewise.
6674
6675 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6676
6677 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6678
6679 2000-06-05 H.J. Lu <hjl@gnu.org>
6680
6681 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6682 an error when seeing an undefined symbol with hidden/internal
6683 attribute. It is handled in *_relocate_section ().
6684
6685 2000-06-05 H.J. Lu <hjl@gnu.org>
6686
6687 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6688 indirect symbol for the ELF_LINK_NON_ELF bit.
6689 (elf_link_output_extsym): Don't output the indirect symbol even
6690 if the ELF_LINK_NON_ELF bit is set.
6691
6692 2000-06-01 J.T. Conklin <jtc@redback.com>
6693
6694 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6695 (i[3456]86-*-netbsdaout*): New target.
6696 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6697 (i[3456]86-*-openbsd*): Likewise.
6698
6699 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6700
6701 * trad-core.c: From hpux-core.c, include <dirent.h> or
6702 <sys/ndir.h> when possible.
6703
6704 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6705
6706 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6707 definitions. We must not assume they are sorted in the file
6708 according to their index numbers.
6709
6710 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6711
6712 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6713 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6714 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6715
6716 2000-05-30 Nick Clifton <nickc@cygnus.com>
6717
6718 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6719 80960CA, 80960MC as valid machine names.
6720
6721 2000-05-30 H.J. Lu <hjl@gnu.org>
6722
6723 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6724 visibility bits if the symbol is undefined. Correctly handle
6725 weak undefined symbols with hidden and internal attributes.
6726
6727 * elflink.h (elf_link_add_object_symbols): Always turn the
6728 symbol into local if it has the hidden or internal attribute.
6729
6730 2000-05-29 Philip Blundell <philb@gnu.org>
6731
6732 * ppcboot.c: Add packed attribute if compiling with GCC.
6733
6734 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6735
6736 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6737
6738 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6739
6740 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6741 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6742 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6743 a few old comments.
6744
6745 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6746
6747 * Makefile.am: Update dependencies with "make dep-am"
6748 * Makefile.in: Regenerate.
6749
6750 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6751 bindtextdomain): Replace defines with those from intl/libgettext.h
6752 to quieten gcc warnings.
6753
6754 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6755
6756 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6757
6758 * archive.c (normalize, bfd_bsd_truncate_arname,
6759 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6760 file names with backslashes.
6761
6762 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6763 before opening it.
6764
6765 * sysdep.h: Include filenames.h.
6766
6767 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6768
6769 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6770
6771 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6772
6773 * elf64-sparc.c (sparc64_elf_relax_section): New.
6774 (sparc64_elf_relocate_section): Optimize tail call into branch always
6775 if possible.
6776 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6777 (elf32_sparc_relax_section): New.
6778
6779 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6780
6781 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6782 Remove unusued variables.
6783 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6784 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6785 previous fix, so that shared libs really don't influence targets
6786 extension mask and memory model.
6787
6788 2000-05-23 H.J. Lu <hjl@gnu.org>
6789
6790 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6791 h->root.other not h->other.
6792 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6793
6794 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6795
6796 2000-05-23 H.J. Lu <hjl@gnu.org>
6797
6798 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6799 undefined symbol with the non-default visibility attributes.
6800 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6801 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6802 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6803 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6804 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6805 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6806 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6807 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6808 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6809 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6810 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6811
6812 2000-05-22 Richard Henderson <rth@cygnus.com>
6813
6814 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6815 PCREL22, PCREL64I. Zero size of special relocs.
6816 (elf64_ia64_reloc_type_lookup): Likewise.
6817 (USE_BRL, oor_brl, oor_ip): New.
6818 (elf64_ia64_relax_section): New.
6819 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6820 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6821 (elf64_ia64_relocate_section): Likewise.
6822 (bfd_elf64_bfd_relax_section): New.
6823 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6824 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6825 * bfd-in2.h, libbfd.h: Regenerate.
6826
6827 2000-05-22 Nick Clifton <nickc@cygnus.com>
6828
6829 * configure.in : Add peigen.lo to MIPS PE targets.
6830 * configure: Regenerate.
6831
6832 2000-05-22 Momchil Velikov <velco@fadata.bg>
6833
6834 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6835 only if it is known for both input and output bfds. Separate
6836 error message strings as in some languages, it may be necessary
6837 to change more than one place in the string to change between
6838 'big' and 'little'.
6839
6840 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6841 endianess checks, call _bfd_generic_verify_endian_match() instead.
6842
6843 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6844
6845 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6846
6847 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6848 endianess before checking bfd flavours.
6849
6850 2000-05-22 H.J. Lu <hjl@gnu.org>
6851
6852 * elflink.h (elf_link_output_extsym): Clear the visibility
6853 field for symbols not defined locally.
6854
6855 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6856
6857 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6858 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6859 (hppa_rebuild_insn): Mask immediate bits here instead.
6860 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6861
6862 2000-05-18 Momchil Velikov <velco@fadata.bg>
6863
6864 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6865 relocs for an executable, ensure that they are virtual addresses.
6866
6867 2000-05-18 Jeffrey A Law (law@cygnus.com)
6868
6869 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6870
6871 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6872 Rick Gorton <gorton@scrugs.lkg.dec.com>
6873
6874 * elflink.h: Add emitrelocations support: when enabled, relocation
6875 information and relocation sections are put into final output
6876 executables. If the emitrelocations flag is set, do the following:
6877 (elf_bfd_final_link): Emit relocation sections.
6878 (elf_link_input_bfd): Compute relocation section contents.
6879 (elf_gc_sections): Don't clean relocation sections.
6880
6881 2000-05-16 Catherine Moore <clm@cygnus.com>
6882
6883 * som.c (som_decode_symclass): Recognize weak symbols.
6884
6885 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6886
6887 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6888 read idata section only from dataoff.
6889 (pe_print_edata): Correctly check for valid eat_member.
6890
6891 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6892
6893 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6894
6895 2000-05-14 Philip Blundell <philb@gnu.org>
6896
6897 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6898
6899 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6900
6901 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6902
6903 * peigen.c (pe_print_idata): Look for .idata section and print
6904 info even if data directory has zero entries. Read idata section
6905 starting from dataoff, and adjust all data offsets to suit. Cast
6906 all bfd_vma vars to unsigned long before passing to fprintf.
6907 * peigen.c (pe_print_edata): Similarly, look for .edata section
6908 and print info even if data directory has zero entries. Cast
6909 all bfd_vma vars to unsigned long before passing to fprintf.
6910
6911 From Szabolcs Szakacsits <szaka@F-Secure.com>
6912 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6913 directory size which may be bogus.
6914 * peigen.c (pe_print_edata): Similarly.
6915
6916 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6917
6918 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6919 section is empty.
6920 (copy_private_bfd_data): Allow for space possibly taken up by elf
6921 headers when calculating segment physical address from lma.
6922
6923 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6924
6925 * versados.c (versados_scan): Init stringlen and pass_2_done.
6926
6927 * trad-core.c (trad_unix_core_file_p): Return
6928 bfd_error_wrong_format rather than bfd_error_file_truncated.
6929
6930 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6931 add_data_entry. DataDirectory virtual address is relative.
6932 (pe_print_idata): Account for relative DataDirectory virtual
6933 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6934 (pe_print_edata): Similarly.
6935
6936 From Szabolcs Szakacsits <szaka@F-Secure.com>
6937 * peigen.c (dir_names): Add Delay Import Directory.
6938 (pe_print_idata): Always search for bfd section containing
6939 idata address rather than looking up section name. Print this
6940 section name rather than .idata.
6941 (pe_print_edata): Similarly. Also print some fields as %08lx.
6942 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6943 Win32Version.
6944
6945 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6946
6947 * xcoff.h: Rename to xcoff-target.h
6948 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6949 * coff-rs6000.c: Ditto.
6950 * coff64-rs6000.c: Ditto.
6951 * coff-pmac.c: Ditto.
6952 * Makefile.in: Regenerate.
6953
6954 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6955
6956 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6957 Change U802TOC64MAGIC to U803XTOCMAGIC.
6958
6959 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6960
6961 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6962 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6963 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6964
6965 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6966
6967 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6968
6969 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
6970
6971 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6972 hidden and internal symbols.
6973 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6974 visibility.
6975 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6976 assign a PLT or GOT entry to symbols with hidden and
6977 internal visibility.
6978
6979 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6980
6981 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6982 the .bss section.
6983 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6984
6985 2000-05-02 H.J. Lu <hjl@gnu.org>
6986
6987 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6988 ELFOSABI_SYSV.
6989
6990 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6991
6992 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6993 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6994 dependencies.
6995 * Makefile.in: Regenerate.
6996
6997 2000-05-01 Jim Wilson <wilson@cygnus.com>
6998
6999 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7000 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7001 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7002 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7003 * Makefile.in: Rebuild.
7004
7005 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7006
7007 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7008 doesn't work very well.
7009
7010 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7011 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7012 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7013 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7014 (elf_hppa_info_to_howto): Likewise.
7015 (elf_hppa_info_to_howto_rel): Likewise.
7016 (elf_hppa_reloc_type_lookup): Likewise.
7017 (elf_hppa_is_local_label_name): Likewise.
7018 (elf_hppa_fake_sections): Likewise.
7019 (elf_hppa_final_write_processing): Likewise.
7020 (elf_hppa_howto_table): Fully initialise all entries.
7021 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7022 (elf_hppa_info_to_howto): Likewise.
7023 (elf_hppa_info_to_howto_rel): Likewise.
7024 (elf_hppa_reloc_type_lookup): Likewise.
7025 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7026 elf_hppa_unmark_useless_dynamic_symbols,
7027 elf_hppa_remark_useless_dynamic_symbols,
7028 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7029 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7030 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7031 elf32-hppa.c mess is cleaned up.
7032 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7033 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7034 r_field then call hppa_field_adjust inline func with variable
7035 r_field arg, instead call hppa_field_adjust with fixed arg.
7036 In case R_PARISC_PCREL22F, don't set r_field.
7037 (elf_hppa_relocate_insn): Change args and return type to unsigned
7038 int. Call re_assemble_* funcs to do the work.
7039
7040 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7041 sign extending.
7042
7043 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7044 extending.
7045 (sign_extend): Mask first before sign extending.
7046 (low_sign_extend): Rewrite without condition expression.
7047 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7048 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7049 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7050 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7051 result as function return value rather than through pointer arg.
7052 Accept unsigned int args, and return unsigned int.
7053 (re_assemble_3): New. Combines function of dis_assemble_3 with
7054 re-assembly of opcode and immediate.
7055 (re_assemble_12): Likewise.
7056 (re_assemble_16): Likewise.
7057 (re_assemble_17): Likewise.
7058 (re_assemble_21): Likewise.
7059 (re_assemble_22): Likewise.
7060 (hppa_field_adjust): Rewrite and document, paying attention to
7061 size of types and signed/unsigned issues.
7062 (get_opcode): Shift before masking.
7063 (FDLW): Rename to FLDW.
7064 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7065 (hppa_rebuild_insn): Change args and return value to unsigned
7066 int. Make use of re_assemble_*. Correct case 11.
7067
7068 * dep-in.sed: Handle ../opcodes/.
7069 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7070 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7071 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7072 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7073 elfarm-nabi.lo dependencies outside of auto-dependency area.
7074 Regenerate dependencies.
7075 * Makefile.in: Regenerate.
7076
7077 * configure.in (TRAD_HEADER): Test non-null before
7078 AC_DEFINE_UNQUOTED.
7079 * configure: Regenerate.
7080
7081 * reloc.c: Fix mis-spelling in comment.
7082
7083 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7084
7085 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7086 * vms.c (vms_openr_next_archived_file): Return NULL.
7087
7088 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7089
7090 * coffcode.h Copy changes mistakenly done to libcoff.h in
7091 4/24/2000 patch.
7092
7093 2000-04-29 Andreas Jaeger <aj@suse.de>
7094
7095 * libbfd-in.h: Correctly check GCC version.
7096 * bfd-in.h: Likewise.
7097 * libhppa.h: Likewise.
7098 * libbfd.h: Regenerate.
7099 * bfd-in2.h: Regenerate.
7100
7101 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7102
7103 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7104 coffdu-rs6000.{lo,c}.
7105 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7106 on xcoff.h
7107 * Makefile.in: Regenerate.
7108 * xcoff.h: New file.
7109 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7110 * coff-rs6000.c: Move all declarations and defines that are
7111 common to the xcoff backends into xcoff.h
7112 * coff64-rs6000.c: Ditto,
7113
7114 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7115
7116 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7117 _bfd_coff_force_symnames in strings and
7118 _bfd_coff_debug_string_prefix_length to their default values.
7119 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7120
7121 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7122
7123 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7124 _bfd_coff_force_symnames in strings and
7125 _bfd_coff_debug_string_prefix_length to their default values.
7126
7127 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7128
7129 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7130 Check local_got_refcounts before dereferencing.
7131
7132 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7133 before deciding we don't need R_PPC_PLT32 relocation.
7134 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7135 dereferencing.
7136
7137 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7138
7139 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7140 .plt entries.
7141 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7142 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7143 (elf_i386_relocate_section): Allow for .plt to go missing.
7144 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7145 can use a relative reloc for got as elf_i386_relocate_section.
7146 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7147
7148 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7149
7150 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7151
7152 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7153
7154 * Makefile.am (coff64-rs6000.lo): New rule.
7155 * Makefile.in: Regenerate.
7156 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7157 xcoff_is_local_label_name, xcoff_rtype2howto,
7158 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7159 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7160 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7161 (NO_COFF_SYMBOLS): Define.
7162 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7163 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7164 internally.
7165 (MINUS_ONE): New macro.
7166 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7167 relocation.
7168 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7169 coff_SWAP_aux_out): Map to the new functions.
7170 * coff64-rs6000.c: New file.
7171 * libcoff.h (bfd_coff_backend_data): Add new fields
7172 _bfd_coff_force_symnames_in_strings and
7173 _bfd_coff_debug_string_prefix_length.
7174 (bfd_coff_force_symnames_in_strings,
7175 bfd_coff_debug_string_prefix_length): New macros for above fields.
7176 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7177 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7178 of using coff_swap_sym_in directly.
7179 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7180 (coff_set_flags) Set magic for XCOFF64.
7181 (coff_compute_section_file_positions): Add symbol name length to
7182 string section length if bfd_coff_debug_string_prefix_length is
7183 true.
7184 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7185 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7186 using coff_swap_lineno_in directly.
7187 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7188 and _bfd_coff_debug_string_prefix_length fields.
7189 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7190 symbol names into strings table when
7191 bfd_coff_force_symnames_in_strings is true.
7192 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7193 SET_RELOC_VADDR): New macros.
7194 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7195 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7196 code.
7197 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7198 changes within RS6000COFF_C specific code.
7199 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7200 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7201 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7202 Extend existing hack on target name.
7203 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7204 target name.
7205 * coff-tic54x.c (ticof): Keep up to date with new fields
7206 in bfd_coff_backend_data.
7207 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7208 targ_selvecs to include rs6000coff64_vec for rs6000.
7209 * configure.in: Add rs6000coff64_vec case.
7210 * cpu-powerpc.c: New bfd_arch_info_type.
7211
7212 2000-04-24 Jeffrey A Law (law@cygnus.com)
7213
7214 * config.bfd: Only disable elf32-hppa vectors, not all of the
7215 BSD and OSF configuration support. Provide (disabled) clauses
7216 for PA64 support.
7217 * configure.in: Add clause for PA64 support.
7218 * configure: Rebuilt.
7219
7220 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7221 (bfd_elf64_hppa_vec): Declare.
7222
7223 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7224 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7225 (elf64-hppa.lo): Add dependencies.
7226 * Makefile.in: Rebuilt.
7227
7228 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7229
7230 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7231
7232 * libhppa.h (dis_assemble_16): New function.
7233 (pa_arch): Added pa20w element.
7234
7235 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7236
7237 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7238 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7239 bfd_elf64_slurp_reloc_table.
7240
7241 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7242 definitions to get external names.
7243 (elf_write_relocs): Renamed from write_relocs and make global.
7244 (elf_slurp_reloc_table): Make global.
7245 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7246
7247 * archive.c (hpux_uid_gid_encode): New function.
7248 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7249 defined and the ID is greater than 99999.
7250 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7251 special uid/gid fields into 32 bit values.
7252
7253 2000-04-21 Matthew Green <mrg@cygnus.com>
7254
7255 * config.bfd: Add NetBSD/sparc64 support.
7256
7257 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7258 David Mosberger <davidm@hpl.hp.com>
7259 Timothy Wall <twall@cygnus.com>
7260 Jim Wilson <wilson@cygnus.com>
7261
7262 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7263 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7264 (BFD64_BACKENDS): Add elf64-ia64.lo.
7265 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7266 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7267 * Makefile.in: Rebuild.
7268 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7269 (bfd_ia64_arch): Declare.
7270 (bfd_archures_list): Add bfd_ia64_arch.
7271 * bfd-in2.h: Rebuild.
7272 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7273 * configure: Rebuild.
7274 * configure.host: (ia64-*-linux*): New host.
7275 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7276 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7277 * elf.c (prep_headers): Add bfd_arch_ia64.
7278 * libbfd.h: Rebuild.
7279 * reloc.c: Add IA-64 relocations.
7280 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7281 Declare.
7282 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7283 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7284
7285 2000-04-21 Richard Henderson <rth@cygnus.com>
7286
7287 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7288 contents when performing a partial link.
7289 (bfd_elf_d30v_reloc_21): Likewise.
7290
7291 2000-04-20 H.J. Lu <hjl@gnu.org>
7292
7293 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7294 patch to symbols defined by a shared object.
7295 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7296
7297 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7298
7299 K&R compiler fixes.
7300 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7301 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7302
7303 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7304
7305 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7306 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7307 (coff-ia64.lo): Add dependency.
7308 * Makefile.in: Regenerate.
7309 * coff-ia64.c: New file.
7310 * efi-app-ia32.c: Ditto.
7311 * efi-app-ia64.c: Ditto.
7312 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7313 (coff_set_flags): Ditto.
7314 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7315 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7316 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7317 * configure: Regenerate.
7318 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7319 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7320 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7321 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7322 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7323 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7324 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7325 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7326 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7327 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7328 (GET_PDATA_ENTRY): Ditto.
7329 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7330 data_start. Use above macros to read fields that are 64 bit wide for
7331 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7332 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7333 FileAlignment and SectionAlignment to minimum alignment if they
7334 are zero.
7335 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7336 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7337 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7338 Use above macros to write fields that are 64 bit wide for
7339 COFF_WITH_PEP64.
7340 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7341 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7342 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7343 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7344 begin address, end address, and unwind info address only. Use
7345 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7346 print addresses.
7347 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7348 HIGH3ADJ relocation names.
7349 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7350 * targets.c: Declare bfd_efi_app_ia32_vec and
7351 bfd_efi_app_ia64_vec.
7352 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7353 bfd_efi_app_ia64_vec.
7354
7355 2000-04-17 Timothy Wall <twall@cygnus.com>
7356
7357 * bfd-in2.h: Add prototypes for tic54x load page access.
7358 * bfd-in.h: Regenerate.
7359 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7360 in customized _set_arch_mach function.
7361 * coffcode.h (coff_set_alignment_hook): Set section load page if
7362 the appropriate macro is defined.
7363 (write_object_contents): Read section load page.
7364
7365 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7366
7367 * elf32-hppa.h: Update copyright date.
7368
7369 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7370 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7371
7372 * elf32-d30v.c (MAX32): Don't use LL suffix.
7373 (MIN32): Define in terms of MAX32.
7374 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7375
7376 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7377 expression.
7378
7379 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7380
7381 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7382
7383 * dep-in.sed: Match space before file name, not after.
7384 * Makefile.am: Regenerate dependencies.
7385 * Makefile.in: Regenerate.
7386
7387 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7388 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7389 extend without an if statement.
7390
7391 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7392
7393 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7394 signed quantites.
7395 * elf32-mips.c (gprel16_with_gp): Likewise.
7396 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7397 here using -0x40000, not (int)0xfffc0000.
7398 (elf32_hppa_size_of_stub): Likewise.
7399
7400 2000-04-11 Timothy Wall <twall@cygnus.com>
7401
7402 * coff-tic54x.c: Now builds with all targets.
7403 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7404 * Makefile.in: Regenerate.
7405 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7406 unitialized variable.
7407
7408 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7409
7410 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7411 --enable-build-warnings option.
7412 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7413 * Makefile.in, configure: Re-generate.
7414
7415 2000-04-07 Nick Clifton <nickc@cygnus.com>
7416
7417 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7418 BFD_RELOC_THUMB_PCREL_BLX.
7419
7420 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7421 R_ARM_XPC25 and R_ARM_THM_PC22.
7422
7423 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7424 R_ARM_XPC25 and R_ARM_THM_XPC22.
7425 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7426 R_ARM_[XPC25|THM_XPC22].
7427
7428 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7429 elf/arm-oabi.h to elf/arm.h
7430
7431 * Makefile.am: Fix dependency for elfarm-oabi.c
7432 * Makefile.in: Regenerate.
7433
7434 * bfd-in2.h: Regenerate.
7435 * libbfd.h: Regenerate.
7436
7437 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7438
7439 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7440 and restore it on failure. Release newly allocated tdata on
7441 failure.
7442
7443 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7444
7445 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7446 (decode_line_info): Set it. Report error if unit->line_offset is
7447 equal to or larger than it.
7448
7449 2000-04-07 Timothy Wall <twall@cygnus.com>
7450
7451 * targets.c: Added vecs for tic54x.
7452 * reloc.c: Added relocs for tic54x.
7453 * libbfd.h: Regenerated.
7454 * configure: Add TI COFF vecs for tic54x.
7455 * configure.in: Ditto.
7456 * config.bfd (targ_cpu): Recognize new tic54x target.
7457 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7458 * bfd-in2.h: Add tic54x target and relocations.
7459 * Makefile.am, Makefile.in: Add tic54x target.
7460 * archures.c (bfd_archures_list): Add tic54x target.
7461 * coff-tic54x.c: New.
7462 * cpu-tic54x.c: New.
7463
7464 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7465
7466 * elfcore.h (elf_core_file_p): call backend_object_p which
7467 thereby gets an opportunity to update the arch/machine type.
7468
7469 2000-04-06 Timothy Wall <twall@cygnus.com>
7470
7471 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7472 class. Handle SEC_CLINK and SEC_BLOCK flags.
7473 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7474 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7475
7476 2000-04-06 Nick Clifton <nickc@cygnus.com>
7477
7478 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7479 EF_INTERWORK if this is an unknown EABI.
7480 (elf32_arm_merge_private_bfd_data): Check EABI version
7481 numbers. Only check EF_xxx flags if the EABI version number
7482 is unknown.
7483 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7484 if the EABI version number is unknown.
7485 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7486 if the EABI version number is unknown.
7487
7488 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7489
7490 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7491 BFD_RELOC_SH_LOOP_END.
7492 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7493 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7494 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7495 (sh_elf_reloc_loop): New function.
7496 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7497 any more.
7498 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7499 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7500 * bfd-in2.h, libbfd.h: Regenerate.
7501
7502 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7503
7504 * po/bfd.pot: Regenerate.
7505
7506 * Makefile.am: Remove extraneous mkdep comment.
7507 (MKDEP): Use gcc -MM rather than mkdep.
7508 (DEP): Quote when passing vars to sub-make. Add warning
7509 message to end.
7510 (DEP1): Rewrite for "gcc -MM".
7511 (CLEANFILES): Add DEP2.
7512 Update dependencies.
7513 * Makefile.in: Regenerate.
7514
7515 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7516
7517 * configure.in: Added corefile support for AIX 4.3. In particular,
7518 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7519 compiling rs6000-core.c.
7520 * configure: Regenerated.
7521
7522 2000-04-03 H.J. Lu <hjl@gnu.org>
7523
7524 * cache.c (bfd_open_file): Unlink the output file only if
7525 it has non-zero size.
7526
7527 2000-04-01 Ken Block USG <block@zk3.dec.com>
7528
7529 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7530 relative relocations for non-loaded sections in shared objects.
7531 (elf64_alpha_check_relocs): Similarly.
7532
7533 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7534
7535 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7536 BFD_RELOC_16 to switch for extended relocs.
7537 (MY_swap_ext_reloc_in): New.
7538 (MY_swap_ext_reloc_out): New.
7539 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7540 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7541 (NAME(aout,squirt_out_relocs)): Similarly use
7542 MY_swap_ext_reloc_out.
7543 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7544
7545 2000-04-03 Kazu Hirata <kazu@hxi.com>
7546
7547 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7548 the R_PCRWORD_B case.
7549
7550 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7551
7552 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7553 on some targets.
7554 * ihex.c : Ditto.
7555
7556 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7557
7558 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7559 HOWTO references to bfd_elf_generic_reloc, that have
7560 partial_inplace == true, now use the new function. The function
7561 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7562 extends its fixes to the R_M32R_{16,24,32} relocs.
7563 The new logic in m32r_elf_lo16_reloc() has been removed, and
7564 it instead calls the new routine to obtain that functionality.
7565
7566 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7567
7568 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7569 elf32_avr_check_relocs, avr_final_link_relocate,
7570 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7571 elf32_avr_object_p): Add prototypes.
7572 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7573 (bfd_elf_avr_final_write_processing): Make static.
7574
7575 2000-03-27 Denis Chertykov <denisc@overta.ru>
7576
7577 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7578 * archures.c (bfd_architecture): Add AVR architecture.
7579 (bfd_archures_list): Add reference to AVR architecture info.
7580 * elf.c (prep_headers): Handle bfd_arch_avr.
7581 * reloc.c: Add various AVR relocation enums.
7582 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7583 list.
7584 * Makefile.am: Add support for AVR elf.
7585 * configure.in: Likewise.
7586 * config.bfd: Likewise.
7587 * Makefile.in: Regenerate.
7588 * configure: This too.
7589 * bfd-in2.h: And this.
7590 * libbfd.h: And this.
7591
7592 2000-03-24 H.J. Lu <hjl@gnu.org>
7593
7594 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7595 (elf64_alpha_find_reloc_at_ofs): Likewise.
7596
7597 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7598
7599 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7600 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7601 allowable range used to be -2**(n-1) to 2**n-1.
7602 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7603 "boolean overflow" with "bfd_reloc_status_type flag".
7604
7605 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7606
7607 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7608
7609 2000-03-14 Kazu Hirata <kazu@hxi.com>
7610
7611 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7612 of shrinks properly, including the last reloc.
7613
7614 2000-03-13 Kazu Hirata <kazu@hxi.com>
7615
7616 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7617 check for R_MOVL2.
7618
7619 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7620
7621 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7622 a format mismatch rather than an "error" from bfd_read such as
7623 bfd_error_file_truncated.
7624
7625 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7626
7627 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7628 sign-extension and big-endian compensation for
7629 R_MIPS_64 even in ld -r.
7630
7631 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7632
7633 * elf32-mips.c (mips_elf_next_relocation): Rename from
7634 mips_elf_next_lo16_relocation, and generalize to look
7635 for any relocation type.
7636 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7637 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7638 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7639 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7640 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7641 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7642 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7643 (mips_rtype_to_howto): Likewise.
7644 (mips_elf_calculate_relocation): Handle new relocs.
7645 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7646 are paired. The addend for R_MIPS_GNU_REL16_S2
7647 is shifted right two bits.
7648
7649 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7650
7651 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7652 comment, and ensure it doesn't happen again.
7653 (bfd_install_relocation): Same here.
7654 (_bfd_relocate_contents): Don't bother assigning unused signmask
7655 shift result. Fix typos in comments.
7656 Remove trailing whitespace throughout file.
7657
7658 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7659
7660 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7661 * bfd-in2.h: Rebuild.
7662
7663 2000-03-06 Nick Clifton <nickc@cygnus.com>
7664
7665 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7666 sym_ptr_ptr fields.
7667 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7668 (SIZEOF_ILF_STRINGS): Redefine.
7669 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7670 relative reloc, as opposed to a section relative reloc.
7671 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7672 not C_LABEL.
7673 Add length of symbol's prefix to string pointer.
7674 Store a pointer to the symbol in the symbol pointer table.
7675 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7676 Initialise the symbol pointer table.
7677 Store the hint in the Hint/Name table.
7678 Make the jump reloc be symbol realtive, not section relative.
7679 Create an import symbol for imported code.
7680
7681 2000-03-06 Catherine Moore <clm@cygnus.com>
7682
7683 * elf.c (swap_out_syms): Check for null type_ptr.
7684
7685 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7686
7687 * aout-target.h (MY(write_object_contents)): Remove unused
7688 and unusable "#if CHOOSE_RELOC_SIZE".
7689 * pc532-mach.c (MY(write_object_contents)): Ditto.
7690 * netbsd.h (MY(write_object_contents)): Ditto.
7691 * hp300hpux.c (MY(write_object_contents)): Ditto.
7692 * freebsd.h (MY(write_object_contents)): Ditto.
7693 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7694
7695 2000-02-29 H.J. Lu <hjl@gnu.org>
7696
7697 * peicode.h (jtab): Make it static.
7698
7699 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7700 defined and COFF_IMAGE_WITH_PE is not defined.
7701 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7702 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7703
7704 2000-03-01 Nick Clifton <nickc@cygnus.com>
7705
7706 * coff-arm.c (bfd_arm_process_before_allocation): Make
7707 'symndx' signed to prevent compile time warning.
7708
7709 * coff-mcore.c: Remove unused prototype for pe_object_p.
7710
7711 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7712 functions that are not used when COFF_IMAGE_WITH_PE is
7713 defined.
7714 (struct sh_opcode): Change type of 'flags' field to unsigned
7715 long so that it can hold the USESAS flag.
7716
7717 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7718
7719 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7720 'sym_sec'.
7721
7722 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7723 parameters.
7724 Remove unusued variables and code.
7725 (elf_backend_add_symbol_hook): Fix prototype.
7726
7727 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7728 'srelgot'.
7729
7730 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7731 'oldinst'.
7732
7733 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7734 parameters.
7735 Remove unusued variables and code.
7736 (elf_backend_add_symbol_hook): Fix prototype.
7737
7738 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7739
7740 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7741 to unused function parameter.
7742
7743 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7744 parameters.
7745 Use EMPTY_HOWTO to initialise empty howto slots.
7746 Remove unused variables.
7747
7748 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7749
7750 2000-03-01 H.J. Lu <hjl@gnu.org>
7751
7752 * aoutx.h (aout_link_input_section_std): Pass "true" to
7753 the undefined_symbol callback.
7754 (aout_link_input_section_ext): Likewise.
7755 * bout.c (get_value): Likewise.
7756 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7757 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7758 Likewise.
7759 (alpha_relocate_section): Likewise.
7760 * coff-arm.c (coff_arm_relocate_section): Likewise.
7761 * coff-i960.c (coff_i960_relocate_section): Likewise.
7762 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7763 * coff-mips.c (mips_relocate_section): Likewise.
7764 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7765 * coff-sh.c (sh_relocate_section): Likewise.
7766 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7767 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7768 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7769 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7770 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7771 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7772 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7773 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7774 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7775 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7776 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7777 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7778 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7779 * elflink.h (elf_link_output_extsym): Likewise.
7780 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7781 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7782 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7783
7784 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7785 undefined_symbol callback when building shared library with
7786 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7787 "true".
7788 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7789 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7790 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7791 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7792 (elf32_mips_get_relocated_section_content): Likewise.
7793 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7794 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7795 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7796 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7797
7798 2000-02-28 Nick Clifton <nickc@cygnus.com>
7799
7800 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7801 * Makefile.in: Regenerate.
7802
7803 * configure.in: Add support for mips and sh pe vectors.
7804 * configure: regenerate.
7805
7806 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7807 targets.
7808
7809 * targets.c: Add mips and sh pe vectors.
7810
7811 * libpei.h (coff_final_link_postscript): Only define if not
7812 already defined.
7813
7814 * coffcode.h: Add support for WinCE magic numbers.
7815
7816 * peigen.c (pe_print_reloc): Update comment and rearrange
7817 appending of newline character.
7818
7819 * peicode.h: Add support for Image Library Format.
7820 (pe_ILF_vars): Structure containing data used by ILF code.
7821 (pe_ILF_make_a_section): New function. Create a section based
7822 on ILF data.
7823 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7824 ILF data.
7825 (pe_ILF_make_a_symbol): New function. Create a symbol based
7826 on ILF data.
7827 (pe_ILF_save_relocs): New function. Store the relocs created
7828 by pe_ILF_make_a_reloc in a section.
7829 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7830 an ILF object.
7831 (pe_ILF_object_p): New function. Return a bfd_target pointer
7832 for an ILF object.
7833 (pe_bfd_object_p): If an ILF object is detected call
7834 pe_ILF_object_p on it.
7835
7836 * coff-arm.c: Add support for WinCE relocs which are different
7837 from normal ARM COFF relocs.
7838 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7839
7840 * coff-sh.c: Add support for sh-pe target.
7841 * pe-sh.c: New file. Support code for sh-pe target.
7842 * pei-sh.c: New file. Support code for sh-pe target.
7843
7844 * pe-mips.c: New file. Support code for mips-pe target.
7845 * pei-mips.c: New file. Support code for mips-pe target.
7846
7847 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7848
7849 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7850 architecture if the object causing the bump is dynamic.
7851 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7852 and also don't it for memory ordering.
7853 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7854
7855 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7856
7857 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7858 calling bfd_get_section_size_before_reloc.
7859 (decode_line_info): Likewise.
7860 (_bfd_dwarf2_find_nearest_line): Likewise.
7861
7862 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7863
7864 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7865 name of the libtool directory.
7866 * Makefile.in: Rebuild.
7867
7868 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7869
7870 * som.c (SOM_HOWTO): Define.
7871 (som_hppa_howto_table): Use it.
7872
7873 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7874
7875 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7876
7877 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7878
7879 2000-02-24 Catherine Moore <clm@cygnus.com>
7880
7881 * som.c (som_misc_symbol_info): Add field
7882 secondary_def.
7883 (som_bfd_derive_misc_symbol_info): Initialize
7884 secondary_def.
7885 (som_build_and_write_symbol_table): Keep track
7886 of secondary_def field.
7887 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7888 if secondary_def field is set.
7889 (som_bfd_ar_write_symbol_stuff): Initialize
7890 secondary_def.
7891
7892 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7893
7894 * dwarf2.c (read_address): Read 16-bits addresses.
7895 (parse_comp_unit): Accept addr_size == 2.
7896
7897 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7898
7899 * bfd-in.h: Update copyright date.
7900
7901 2000-02-23 Linas Vepstas <linas@linas.org>
7902
7903 * cpu-i370.c: New file.
7904 * elf32-i370.c: New file.
7905 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7906 (bfd_i370_arch): New.
7907 (bfd_archures_list): Add bfd_i370_arch.
7908 * elf.c (prep_headers): Add bfd_arch_i370.
7909 * Makefile.am: Add support for IBM 370 elf.
7910 * config.bfd: Likewise.
7911 * configure.in: Likewise.
7912 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7913 * reloc.c (bfd_reloc_code_type): Likewise.
7914 * targets.c: Likewise.
7915
7916 * Makefile.in: Regenerate.
7917 * configure: Regenerate.
7918 * bfd-in2.h: Regenerate.
7919
7920 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7921
7922 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7923 invalid relocation types, and change them to R_386_NONE.
7924
7925 2000-02-22 H.J. Lu <hjl@gnu.org>
7926
7927 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7928 not defined, don't add a second ELF_VER_CHR.
7929
7930 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7931 symbols converted to local symbols even when stripping all
7932 symbols.
7933 (elf_link_output_extsym): Process global symbols converted to
7934 local symbols even if they are being stripped.
7935
7936 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7937
7938 * archures.c (bfd_octets_per_byte): Return unsigned int.
7939 (bfd_arch_mach_octets_per_byte): Ditto.
7940 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7941 comparison warning.
7942 * section.c (bfd_get_section_size_before_reloc): Quell signed
7943 vs. unsigned comparison warning.
7944 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7945 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7946 change. What was I thinking?
7947 * bfd-in2.h: Regenerate.
7948
7949 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7950 (elf_gc_sections): Same here.
7951 (elf_gc_common_finalize_got_offsets): And here.
7952
7953 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7954
7955 ELF HPPA doesn't work at present; remove it until it does.
7956 * config.bfd: Comment out setting targ_defvec to
7957 bfd_elf32_hppa_vec.
7958 * Makefile.am: Rebuild dependencies.
7959 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7960 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7961 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7962 * Makefile.in: Rebuild.
7963 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7964
7965 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7966
7967 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7968 is no bfd_free(). Revert bfd_free part of previous change.
7969
7970 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7971
7972 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7973 arrays.
7974 (coff_compute_section_file_positions): Use bfd_free to pair
7975 bfd_malloc.
7976 (coff_write_object_contents): Likewise.
7977
7978 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7979 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7980
7981 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7982
7983 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7984 (xcoff_ar_file_hdr_big): New structure.
7985 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7986 (xcoff_ar_hdr_big): New structure.
7987 (SIZEOF_AR_HDR_BIG): New macro.
7988 (xcoff_big_format_p): New macro.
7989 (xcoff_ardata_big): New macro.
7990 (arch_xhdr_big): New macro.
7991 (xcoff_slurp_armap): Handle large archives.
7992 (xcoff_archive_p): Detect large archives.
7993 (xcoff_read_ar_hdr): Handle large archives.
7994 (xcoff_openr_next_archived_file): Handle large archives.
7995 (xcoff_generic_stat_arch_elt): Handle large archives.
7996 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7997 (xcoff_write_armap_big): New function.
7998 (xcoff_write_armap): New function, dispatch to _old or _big.
7999 (xcoff_write_archive_contents_old): Rename from
8000 xcoff_write_archive_contents.
8001 (xcoff_write_archive_contents_big): New function.
8002 (xcoff_write_archive_contents): New function, dispatch to _old or
8003 _big.
8004
8005 2000-02-18 Richard Henderson <rth@cygnus.com>
8006
8007 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8008 and hide_symbol members.
8009 (elf_link_hash_copy_indirect): Remove.
8010 (elf_link_hash_hide_symbol): Remove.
8011 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8012 and elf_backend_hide_symbol.
8013 (_bfd_elf_link_hash_copy_indirect): Declare.
8014 (_bfd_elf_link_hash_hide_symbol): Declare.
8015 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8016 (_bfd_elf_link_hash_hide_symbol): Likewise.
8017 (_bfd_elf_link_hash_table_init): Don't init killed members.
8018 * elflink.h (elf_link_add_object_symbols): Use the bed function
8019 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8020 (elf_link_assign_sym_version): Likewise.
8021 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8022 (elf_backend_hide_symbol): Likewise.
8023 (elfNN_bed): Update for new members.
8024
8025 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8026
8027 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8028 STACK_END_ADDR): Define for new core file format.
8029 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8030 for handling the vagaries of the various core file structures used
8031 by AIX over the years.
8032 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8033 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8034 core_dumpx structure.
8035
8036 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8037
8038 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8039 (bfd_mach_sh3_dsp): Likewise.
8040 (bfd_mach_sh4): Reinstate.
8041 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8042 * bfd-in2.h: Regenerate.
8043 * coff-sh.c (struct sh_opcode): flags is no longer short.
8044 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8045 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8046 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8047 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8048 (sh_opcodes): No longer const.
8049 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8050 (sh_insn_uses_reg): Check for USESAS and USESR8.
8051 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8052 (_bfd_sh_align_load_span): Return early for SH4.
8053 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8054 Take into account that field b of a parallel processing insn
8055 could be mistaken for a separate insn.
8056 * cpu-sh.c (arch_info_struct): New array elements for
8057 sh2, sh-dsp and sh3-dsp.
8058 Reinstate element for sh4.
8059 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8060 (SH4_NEXT): Reinstate.
8061 (SH3_NEXT, SH3E_NEXT): Adjust.
8062 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8063 * elf32-sh.c (sh_elf_set_private_flags): New function.
8064 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8065 (sh_elf_merge_private_data): New function.
8066 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8067 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8068 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8069 sh_elf_merge_private_data.
8070
8071 2000-02-13 Richard Henderson <rth@cygnus.com>
8072
8073 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8074 hide_symbol members.
8075 (elf_link_hash_copy_indirect): New.
8076 (elf_link_hash_hide_symbol): New.
8077 * elflink.h (elf_link_add_object_symbols): Break out copy from
8078 indirect new new symbol to elf.c.
8079 (elf_link_assign_sym_version): Break out privatization of
8080 non-exported symbol to elf.c.
8081 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8082 (_bfd_elf_link_hash_hide_symbol): New.
8083 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8084
8085 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8086
8087 * section.c (_bfd_strip_section_from_output): Add info parameter.
8088 If it passed as non-NULL, use it to check whether any input BFD
8089 has an input section which uses this output section. Change all
8090 callers.
8091 * bfd-in2.h: Rebuild.
8092
8093 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8094 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8095 1999-11-29.
8096 * bfd-in2.h: Rebuild.
8097
8098 2000-02-10 Timothy Wall <twall@cygnus.com>
8099
8100 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8101 allow final modifications of swapped-in symbol.
8102 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8103 * coffcode.h (coff_write_relocs): Use macro
8104 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8105 symbol index should be set to -1.
8106
8107 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8108
8109 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8110 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8111 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8112 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8113 sh_insns_uses_or_sets_freg): New functions.
8114 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8115 * (sh_insns_conflict): Use new functions and new macros to
8116 detect conflicts when two instructions both set same integer registers,
8117 both set same fp register, and both set special register.
8118
8119 2000-02-09 Timothy Wall <twall@cygnus.com>
8120
8121 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8122 swapping in sections, so that the swapping routines have access to
8123 the arch/mach info.
8124
8125 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8126
8127 * coff-go32.c: Update comment. Update copyright.
8128
8129 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8130
8131 * syms.c (bfd_decode_symclass)
8132 Two new class characters were added - 'V' and 'v'. The
8133 meaning of 'W' is now restricted to just weak non-object
8134 symbols. This allows differentiation between, for example,
8135 weak functions vs weak objects. nm for example now dumps:
8136 'W' = weak global
8137 'w' = weak unresolved
8138 'V' = weak global object
8139 'v' = weak unresolved object
8140
8141 (bfd_is_undefined_symclass): New function. Return true if the
8142 given symbol class represents and undefined/unresolved symbol.
8143
8144 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8145 unresolved symbols.
8146
8147 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8148
8149 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8150 STT_ARM_16BIT flag set, but it is not attached to a data object
8151 return STT_ARM_16BIT so that it will be treated as code by the
8152 disassembler.
8153
8154 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8155
8156 * coff-i386.c (i3coff_object_p): Remove prototype.
8157 Update copyright.
8158
8159 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8160 to name. Update copyright.
8161
8162 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8163 assignment to avoid warning. Update copyright.
8164
8165 2000-01-24 Robert Lipe (robertl@sco.com)
8166
8167 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8168 instead of using GNU C extension.
8169
8170 2000-01-21 Nick Clifton <nickc@cygnus.com>
8171
8172 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8173 amount from a bfd_in_memory structure.
8174 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8175 structure.
8176
8177 2000-01-14 Nick Clifton <nickc@cygnus.com>
8178
8179 * linker.c (default_indirect_link_order): oops - fix incorrectly
8180 applied patch from Tim Wall.
8181
8182 2000-01-13 Timothy Wall (twall@tiac.net>
8183
8184 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8185 = scnhsz, filhsz, relsz, aoutsz, etc)
8186
8187 * coffswap.h: Ditto.
8188
8189 2000-01-13 Nick Clifton <nickc@cygnus.com>
8190
8191 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8192 interwork thumb to arm stub.
8193
8194 2000-01-13 Timothy Wall (twall@tiac.net>
8195
8196 * archures.c (bfd_octets_per_byte): New function: Return
8197 target byte size.
8198 (bfd_arch_mach_octets_per_byte): New function: Return target
8199 byte size.
8200
8201 * section.c: Distinguish between octets and bytes for usage of
8202 _cooked_size, _raw_size, and output_offset. Clarify
8203 description of bfd_set_section_contents.
8204
8205 * bfd-in2.h: Regenerate.
8206
8207 * coffgen.c: Indicate that the offset parameter is in bytes, not
8208 octets.
8209
8210 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8211 where appropriate to get the octet offset when calling
8212 bfd_set_section_contents.
8213 (bfd_coff_reloc_link_order): Ditto.
8214
8215 * linker.c (bfd_generic_reloc_link_order): Ditto.
8216 (_bfd_default_link_order): Ditto.
8217
8218 * reloc.c (bfd_perform_relocation): Distinguish between octets
8219 and bytes. Use octets when indexing into octet data; use bytes
8220 when calculating target addresses.
8221 (bfd_install_relocation): Ditto.
8222
8223 * srec.c (srec_write_section): Ditto.
8224
8225 2000-01-13 Nick Clifton <nickc@cygnus.com>
8226
8227 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8228 3 to 2. This allows 4 byte sized sections, which is necessary for
8229 dlltool to build functioning DLLs.
8230
8231 2000-01-10 Philip Blundell <pb@futuretv.com>
8232
8233 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8234 (arm*-*-conix*): New target.
8235
8236 2000-01-10 Egor Duda <deo@logos-m.ru>
8237
8238 * config.bfd: Include elf32_i386 vector to target list for cygwin
8239 and mingw.
8240
8241 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8242 * configure.in: Test for structure win32_pstatus_t in
8243 <sys/procfs.h>
8244 * configure: Regenerate.
8245
8246 * elf.c (elfcore_grok_win32pstatus): New function: process
8247 win32_pstatus_t notes in elf core file.
8248 (elfcore_grok_note): Detect win32_pstatus notes.
8249
8250 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8251
8252 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8253 visibility.
8254 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8255 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8256
8257 For older changes see ChangeLog-9899
8258 \f
8259 Local Variables:
8260 mode: change-log
8261 left-margin: 8
8262 fill-column: 74
8263 version-control: never
8264 End: