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