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