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