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