[gas/testsuite/ChangeLog]
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
973ffd63
AM
12001-10-17 Alan Modra <amodra@bigpond.net.au>
2
3 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
4 Elf_Internal_Shdr.contents now that it's no longer a PTR.
5 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
6 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
7 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
8 * elf32-sh.c (sh_elf_relax_section): Likewise.
9 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
10 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
11 * elf.c (setup_group): Warning fixes.
12 * elflink.h (elf_link_sort_relocs): Likewise.
13 * pdp11.c (slurp_reloc_table): Likewise.
14
df22989b
JH
152001-10-16 Jeff Holcomb <jeffh@redhat.com>
16
17 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
18 casts.
19
1e09179f
L
202001-10-15 H.J. Lu <hjl@gnu.org>
21
22 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
23 for relocations against discarded link-once section.
24
1e370bd2
AM
252001-10-15 Alan Modra <amodra@bigpond.net.au>
26
cf5c0c5b
AM
27 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
28 bfd_reloc_outofrange and similar errors.
29
1e370bd2
AM
30 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
31 rather than ind->weakdef.
32 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
33 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
34 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
35 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
36 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
37
bbd7ec4a
AM
382001-10-15 Alan Modra <amodra@bigpond.net.au>
39 H.J. Lu <hjl@gnu.org>
40
41 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
42 counts for aliases instead of aborting.
43 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
44 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
45
46 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
47 to -1 for non-function symbols.
48 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
49 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
50 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
51 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
52 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
53 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
54 plt.offset instead of plt.refcount when setting to -1.
55
6a360bf4
NC
562001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
57
58 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
59 like R_ARM_PC24. Include reloc number in error message about
60 unresolvable relocs.
61
290394d6
JJ
622001-10-10 Jakub Jelinek <jakub@redhat.com>
63
64 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
65 relocations against the same symbol in .rel{,a}.dyn section.
66
08da05b0
KH
672001-10-10 Kazu Hirata <kazu@hxi.com>
68
69 * aout-encap.c: Fix comment typos.
70 * aoutx.h: Likewise.
71 * archive.c: Likewise.
72 * bout.c: Likewise.
73 * coff64-rs6000.c: Likewise.
74 * coffcode.h: Likewise.
75 * coffgen.c: Likewise.
76 * cofflink.c: Likewise.
77 * coff-mips.c: Likewise.
78 * ecoff.c: Likewise.
79 * elf32-m32r.c: Likewise.
80 * libcoff-in.h: Likewise.
81 * libecoff.h: Likewise.
82 * libxcoff.h: Likewise.
83 * nlm32-i386.c: Likewise.
84 * pdp11.c: Likewise.
85 * section.c: Likewise.
86 * som.c: Likewise.
87 * som.h: Likewise.
88 * bfd-in2.h: Regenerate.
89 * libcoff.h: Likewise.
90
079e9a2f
AM
912001-10-10 Alan Modra <amodra@bigpond.net.au>
92
93 * elf.c (elf_map_symbols): Don't create new section symbols; Use
94 existing section syms. Update comments.
95 (copy_private_bfd_data): Formatting fixes.
96 (elfcore_grok_win32pstatus): Likewise.
97 (swap_out_syms): Likewise. Remove unnecessary level of braces.
98
945906ff
AM
992001-10-09 Alan Modra <amodra@bigpond.net.au>
100
101 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
102 "group_name".
103 (elf_group_name): Define.
104 (elf_next_in_group): Define.
105 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
106 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
107 first member section; Instead use elf_next_in_group.
108 (bfd_section_from_shdr): Likewise.
109 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
110
dbb410c3
AM
1112001-10-09 Alan Modra <amodra@bigpond.net.au>
112
113 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
114 "next_in_group". Fix gp and gp_size comments.
115 * elf.c (union elf_internal_group): New.
116 (setup_group): New function.
117 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
118 Call setup_group for SHF_GROUP sections.
119 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
120 (elf_fake_sections): Set header type for SEC_GROUP, and header
121 flags for sections in a group.
122 (set_group_contents): New function.
123 (_bfd_elf_compute_section_file_positions): Call it.
124 (assign_section_numbers): Set sh_link for SHT_GROUP.
945906ff 125
dbb410c3
AM
126 * elflink.h (gc_mark_hook): Handle section groups.
127 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
128 * section.c (SEC_GROUP): Define.
129 (struct sec): Comment fixes.
130 * bfd-in2.h: Regenerate.
131
132 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
133 out of function args.
134 (_bfd_elf_canonicalize_reloc): Similarly.
135 (_bfd_elf_get_symtab): Here too.
136 (_bfd_elf_canonicalize_dynamic_symtab): And here.
137 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
138 bfd_bread, and remove unnecessary cast.
139
24c603fa
AH
1402001-10-08 Aldy Hernandez <aldyh@redhat.com>
141
bbd7ec4a 142 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
24c603fa 143
3f5864e1
SC
1442001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
145
146 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
147 compilation unit.
148
fb9ceeac
AM
1492001-10-06 Alan Modra <amodra@bigpond.net.au>
150
aec2f561
AM
151 * bfd.c (bfd_assert): Report bfd version.
152 (_bfd_abort): Likewise.
153
50b4d486
AM
154 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
155 section sym values. Instead replace any relocs against them with
156 relocs against STN_UNDEF, which has a zero value.
157
fb9ceeac
AM
158 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
159 relocs.
160
17617495
JL
1612001-10-05 Jeff Law <law@redhat.com>
162
163 * som.h (som_exec_data): New field "version_id".
164 * som.c (som_object_setup): Record the version_id if it
165 exists.
166 (som_prep_headers): Do not initialize version_id here.
167 (som_finish_writing): Initialize version_id here.
168
1692000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7e766c3b
TS
170
171 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
172 according to the MIPS/SGI ELF64 ABI Draft.
173 (mips_elf_sort_hash_table): Typo.
174
58e3d09d
AM
1752001-10-04 Alan Modra <amodra@bigpond.net.au>
176
8ea52284
AM
177 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
178
58e3d09d
AM
179 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
180 copying flags if this is a weakdef.
181
b13c7b49
AM
1822001-10-04 Alan Modra <amodra@bigpond.net.au>
183
a90b9fca
AM
184 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
185 packing.
186
bbd7ec4a 187 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
3a6b8597
AM
188 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
189 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
190
b13c7b49
AM
191 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
192 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
193 backends we configure. Run "make dep-am".
194 (install-data-local): Install symcat.h.
195 * dep-in.sed: Remove symcat.h from dependencies.
196 * Makefile.in: Regenerate.
197
8bd621d8
AM
1982001-10-03 Vassili Karpov <malc@pulsesoft.com>
199
200 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
201
1e2be829
TS
2022001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
203
204 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
205 (elf_backend_default_use_rela_p): New define.
206
0a991dfe
AM
2072001-10-03 Alan Modra <amodra@bigpond.net.au>
208
57c7194e
AM
209 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
210 change.
211
87b632fc
AM
212 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
213 * configure: Regenerate.
214 * Makefile.am (BFD_H_FILES): Add version.h.
215 * Makefile.in: Regenerate.
216 * po/SRC-POTFILES.in: Regenerate.
217
0a991dfe
AM
218 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
219 elf_backend_copy_indirect_symbol so that backend has a chance to
220 copy other necessary fields.
221 * elf-bfd.h (struct elf_backend_data): Update description of
222 elf_backend_copy_indirect_symbol.
223 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
224 copying flags if this is a weakdef.
225 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
226 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
227 than bfd_link_hash_lookup.
bbd7ec4a 228 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
0a991dfe
AM
229 reloc processing for weakdefs.
230 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
231 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
232
a33d1f77
AM
2332001-10-02 Alan Modra <amodra@bigpond.net.au>
234
235 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
236 result of ELF64_R_TYPE to enum before using in a switch.
237 (ppc64_elf_gc_mark_hook): Likewise.
238 (ppc64_elf_gc_sweep_hook): Likewise.
239 (ppc64_elf_reloc_type_class): Likewise.
240
e43d48cc
AM
2412001-10-02 Alan Modra <amodra@bigpond.net.au>
242
243 * version.h: New file.
244 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
245 (BFD_VERSION_DATE): Define.
246 (BFD_VERSION_STRING): Define.
247 * configure.in: AC_SUBST bfd_version, bfd_version_date and
248 bfd_version_string.
249 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
250 * bfd-in2.h: Regenerate.
251 * configure: Regenerate.
252 * Makefile.am: Run "make dep-am".
253 * Makefile.in: Regenerate.
254
255 * bfd-in.h: Include "symcat.h".
256 (CONCAT4): Redefine as for old CAT4.
257 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
258 Add warning regarding whitespace.
259 * aout-cris.c: Likewise.
260 * aout-ns32k.c: Likewise.
261 * aout-sparcle.c: Likewise.
262 * aout-tic30.c: Likewise.
263 * aout0.c: Likewise.
264 * armnetbsd.c: Likewise.
265 * demo64.c: Likewise.
266 * elf-bfd.h: Likewise.
267 * gen-aout.c: Likewise.
268 * host-aout.c: Likewise.
269 * hp300bsd.c: Likewise.
270 * hp300hpux.c: Likewise.
271 * i386aout.c: Likewise.
272 * i386bsd.c: Likewise.
273 * i386dynix.c: Likewise.
274 * i386freebsd.c: Likewise.
275 * i386linux.c: Likewise.
276 * i386lynx.c: Likewise.
277 * i386mach3.c: Likewise.
278 * i386netbsd.c: Likewise.
279 * libaout.h: Likewise.
280 * m68k4knetbsd.c: Likewise.
281 * m68klinux.c: Likewise.
282 * m68klynx.c: Likewise.
283 * m68knetbsd.c: Likewise.
284 * m88kmach3.c: Likewise.
285 * mipsbsd.c: Likewise.
286 * newsos3.c: Likewise.
287 * ns32knetbsd.c: Likewise.
288 * pc532-mach.c: Likewise.
289 * pdp11.c: Likewise.
290 * riscix.c: Likewise.
291 * sparclinux.c: Likewise.
292 * sparclynx.c: Likewise.
293 * sparcnetbsd.c: Likewise.
294 * sunos.c: Likewise.
295 * targets.c: Likewise.
296 * vaxnetbsd.c: Likewise.
297 * vms-hdr.c: Likewise.
298
4eef72c7
AM
2992001-10-01 Alan Modra <amodra@bigpond.net.au>
300
301 * bfd-in.h: Remove comments regarding generated files.
302 * libbfd-in.h: Likewise.
303 * libcoff-in.h: Likewise.
304 * bfd-in2.h: Regenerate.
305 * libbfd.h: Likewise.
306 * libcoff.h: Likewise.
307
146be91a 3082001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
bbd7ec4a 309 Hans-Peter Nilsson <hp@bitrange.com>
146be91a
HPN
310
311 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
312 partial_inplace, matching assembler output. Set src_mask to
313 all ones.
314 (sh_elf_relocate_section): Delete misplaced comment.
315 For relocatable linking against section symbol, call
316 _bfd_relocate_contents for partial_inplace relocs and adjust
317 rel->r_addend for others.
318 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
319 bfd_get_32, not at rel->r_addend.
320
3c3e9281
AM
3212001-09-30 Alan Modra <amodra@bigpond.net.au>
322
323 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
324 the old dir refcount, so we indirectly set them to init_refcount.
325 Short-circuit asserts when we've just verified they are true.
326
862517b6
AM
3272001-09-29 Alan Modra <amodra@bigpond.net.au>
328
329 * section.c (struct sec): Remove kept_section.
330 (STD_SECTION): Remove kept_section initialisation.
331 (bfd_make_section_anyway): Here too.
332 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
333 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
334 * elflink.h (elf_link_input_bfd): Set discarded link-once section
335 symbols to zero, and remove all code involved with kept_section
336 and tracking section symbol values.
337 * bfd-in2.h: Regenerate.
338 * configure.in: Bump version number.
339 * configure: Regenerate.
340
65f38f15
AM
3412001-09-29 Alan Modra <amodra@bigpond.net.au>
342
343 * elf64-ppc.c (struct ppc_dyn_relocs): New.
344 (IS_ABSOLUTE_RELOC): Define.
345 (struct ppc_link_hash_entry): New.
346 (struct ppc_link_hash_table): New.
347 (ppc_hash_table): Define.
348 (link_hash_newfunc): New function.
349 (ppc64_elf_link_hash_table_create): New function.
350 (create_got_section): New function.
351 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
352 pointers to our dynamic sections in hash table.
353 (ppc64_elf_copy_indirect_symbol): New function.
354 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
355 dynamic sections. Localise vars. Modify code for refcounts
356 starting from zero. Don't allocate here, or force symbols dynamic.
357 Don't copy all relocs if shared, select ones we need. Add code
358 to track possible copy relocs for non-shared link.
359 (ppc64_elf_gc_mark_hook): Update comment.
360 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
361 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
362 code for reference counting garbage collection. Don't create .plt
363 entries for functions that don't comply with ABI naming convention,
364 and don't allocate .plt space here. Use short-cuts to dynamic
365 sections. If possible, keep dynamic relocations instead of using
366 copy relocs. Remove confused comments.
367 (ppc_adjust_dynindx): Delete.
368 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
369 (allocate_dynrelocs): New function.
370 (readonly_dynrelocs): New function.
371 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
372 space here, and call allocate_dynrelocs to allocate space for
373 global .plt, .got and reloc sections. Use short-cuts to dynamic
374 sections. Call readonly_dynrelocs to determine whether we need
375 DT_TEXTREL. Don't generate section symbols here, the generic
376 ELF linker code does it for us.
377 (ppc64_elf_final_link): Call regular ELF backend linker rather than
378 gc variety, since we do our own .got handling.
379 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
380 dynamic section short-cuts. Localise vars, and delay setting.
381 Handle unknown relocs in main switch statement. Replace ugly
382 complicated tests for unresolvable relocs with a simple direct
383 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
384 before allowing an undefined sym in a shared lib. Do R_*_DS tests
385 after main switch, when we've set addend. Do non-addend insn
386 tweaks before main swithc. Ignore input_section->vma when
387 calculating reloc offsets as it's always zero. Rewrite dynamic
388 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
389 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
390 of dynamic section short-cuts. Reorganise .plt handling code.
391 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
392 Move expressions out of swap_reloca_out function calls.
393 (ppc64_elf_reloc_type_class): New function.
394 (ppc64_elf_info_to_howto): Move common expression to local var.
395 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
396 of dynamic section short-cuts. Don't fiddle with section syms
397 here as the ELF linker does it for us.
398 (elf_backend_can_refcount): Define.
399 (bfd_elf64_bfd_link_hash_table_create): Define.
400 (elf_backend_copy_indirect_symbol): Define.
401 (elf_backend_reloc_type_class): Define.
402 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
403
21d17a58
AM
4042001-09-29 Alan Modra <amodra@bigpond.net.au>
405
51b64d56
AM
406 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
407 (struct elf_backend_data): Add can_refcount.
408 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
409 got.refcount and plt.refcount from init_refcount.
410 (_bfd_elf_link_hash_table_init): Set up init_refcount.
411 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
412 rather than got/plt.offset, and test for <= 0 rather than -1.
413 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
414 * elfxx-target.h (elf_backend_can_refcount): Define.
415 (elfNN_bed): Init can_refcount.
416 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
417 (_bfd_generic_link_hash_newfunc): Likewise.
418 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
419 starting from zero.
420 (elf_backend_can_refcount): Define.
421 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
422 starting from zero.
423 (elf32_hppa_copy_indirect_symbol): Make static to agree with
424 prototype.
425 (elf_backend_can_refcount): Define.
426 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
427 starting from zero.
428 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
429 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
430 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
431 (elf_backend_can_refcount): Define.
432 (elf_i386_copy_indirect_symbol): Make static to agree with
433 prototype. Formatting fix.
434 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
435 starting from zero.
436 (elf_backend_can_refcount): Define.
437 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
438 starting from zero.
439 (elf_backend_can_refcount): Define.
440 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
441 starting from zero.
442 (elf_backend_can_refcount): Define.
443 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
444 starting from zero.
445 (elf_backend_can_refcount): Define.
446 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
447 starting from zero.
448 (elf_backend_can_refcount): Define.
449
21d17a58
AM
450 * som.c (som_write_symbol_strings): Cast current_offset in
451 bfd_seek call to match param type.
452
78ae4cb9
JB
4532001-09-28 J. Brobecker <brobecker@gnat.com>
454
455 * som.c (som_write_symbol_strings): Fix incorrect type of
456 current_offset to match the function definition. Fixes a build
457 failure on HPUX-11.00.
458
65db3b0d
RH
4592001-09-28 Richard Henderson <rth@redhat.com>
460
e0aae569
RH
461 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
462 SEC_MERGE, SEC_STRINGS.
463
65db3b0d
RH
464 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
465 * bfd-in2.h: Rebuild.
466
ced53ee5
AM
4672001-09-28 Alan Modra <amodra@bigpond.net.au>
468
ffaef159
AM
469 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
470 reloc code using x86_64_reloc_map.
471
3ac8354b
AM
472 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
473 no longer allocate here. Localise some vars to blocks where they
474 are used.
475 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
476 setting of vars until needed.
477 (allocate_dynrelocs): Don't create a .plt entry without a reloc
478 when symbol visibilty makes a function local.
479 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
480 swap_reloca_out function calls.
481 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
482 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
483 switch statement.
484
0ac8d2ca
AM
485 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
486 no longer allocate here. Localise some vars to blocks where they
487 are used. Remove separate switch stmt for creating .got sec.
488 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
489 redundant casts and aborts. Delay setting of vars until needed.
490 (allocate_dynrelocs): Remove redundant casts and aborts.
491 (elf_i386_size_dynamic_sections): Move comment.
492 (elf_i386_finish_dynamic_symbol): Move expressions out of function
493 calls.
494 (elf_i386_relocate_section): Likewise. Comment typo fix.
495 (elf_i386_finish_dynamic_sections): Migrate common code out of
496 switch statement.
497 (elf_backend_* defines): Sort.
498
ced53ee5
AM
499 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
500 without a reloc when symbol visibilty makes a function local.
501
63b0f745
NC
5022001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
503
06317a27
NC
504 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
505 conflicting float flags.
63b0f745 506
ebe50bae
AM
5072001-09-26 Alan Modra <amodra@bigpond.net.au>
508
509 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
510 (elf_backend_copy_indirect_symbol): Define.
511 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
512 (struct elf_i386_link_hash_table): Likewise.
513 (link_hash_newfunc): Get rid of unnecessary casts.
514 (elf_i386_link_hash_table_create): Likewise.
515 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
516 Don't test input section SEC_READONLY here to try to avoid copy
517 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
518 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
519 here to properly test whether we need copy relocs. Do so for weak
520 syms too.
521
522 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
523 (elf_backend_copy_indirect_symbol): Define.
524 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
525 (stub_hash_newfunc): Get rid of unnecessary casts.
526 (hppa_link_hash_newfunc): Likewise.
527 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
528 Don't test input section SEC_READONLY here to try to avoid copy
529 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
530 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
531 here to properly test whether we need copy relocs. Do so for weak
532 syms too.
533
af6166c0
AM
5342001-09-26 Alan Modra <amodra@bigpond.net.au>
535
536 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
537 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
538 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
539
e62de969
JJ
5402001-09-25 Jakub Jelinek <jakub@redhat.com>
541
542 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
543 computation.
544
09c1cc88
L
5452001-09-25 H.J. Lu <hjl@gnu.org>
546
547 * bfd-in2.h: Regenerated.
548
38701953
AM
5492001-09-25 Alan Modra <amodra@bigpond.net.au>
550
551 * elf32-i386.c: Add comment re linker function names and ordering.
552 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
553 (elf_i386_grok_prstatus): Move before linker functions.
554 (elf_i386_grok_psinfo): Likewise.
555 (elf_i386_fake_sections): Move so that functions are ordered.
556 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
557
98ceb8ce
AM
5582001-09-25 Alan Modra <amodra@bigpond.net.au>
559
0ac8d2ca 560 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
83c81bfe
AM
561 throughout file.
562
98ceb8ce
AM
563 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
564 code handling this option.
565 (LONG_BRANCH_VIA_PLT): Likewise.
566 (RELATIVE_DYNRELOCS): Define as zero.
567 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
568 "pc_count" fields. Remove "section" field.
569 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
570 (elf32_hppa_check_relocs): Don't allocate space for dynamic
571 relocs here. Instead, record all needed dynamic relocs via
572 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
573 in elf_section_data.
574 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
575 (allocate_plt_and_got_and_discard_relocs): Rename to
576 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
577 (readonly_dynrelocs): New function.
578 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
579 Call readonly_dynrelocs to determine need for DT_TEXTREL.
580 Rename "i" to "ibfd". Allocate space for local dyn relocs.
581 (elf32_hppa_relocate_section): Make use of cached sreloc.
582 (elf32_hppa_reloc_type_class): New function.
583 (elf_backend_reloc_type_class): Define.
584
0c715baa
AM
5852001-09-25 Alan Modra <amodra@bigpond.net.au>
586
587 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
588 and "sreloc" fields.
589 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
590 "pc_count" fields. Remove "section" field.
591 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
592 allocate space for dynamic relocs here. Instead, record all
593 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
594 pointer to "sreloc" section in elf_section_data.
595 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
596 (allocate_plt_and_got_and_discard_relocs): Rename to
597 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
598 (readonly_dynrelocs): New function.
599 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
600 Rename "i" to "ibfd". Allocate space for local dyn relocs.
601 (elf_i386_relocate_section): Make use of cached sreloc.
602
f51e552e
AM
6032001-09-24 Alan Modra <amodra@bigpond.net.au>
604
605 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
606 reloc rather than just the type.
607 (_bfd_elf_reloc_type_class): Likewise.
608 * elf.c (_bfd_elf_reloc_type_class): Likewise.
609 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
610 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
611 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
612 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
613 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
614 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
615 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
616 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
617 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
618 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
619 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
620 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
621 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
622 * elflink.h: Formatting fixes.
623 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
624 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
625 o->contents to PTR. Update call to elf_backend_reloc_type_class.
626
0c35f01a
AM
6272001-09-22 John Reiser <jreiser@BitWagon.com>
628
629 * elfcode.h (elf_object_p): Allow for no section header at all in
630 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
631
1e738b87
NC
6322001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
633
634 * elfxx-ia64.c: Fix compile time warning messages.
09c1cc88
L
635 * coff-mcore.c: Fix compile time warning messages.
636 * coff-ppc.c: Fix compile time warning messages.
637 * coffcode.h: Fix compile time warning messages.
638 * elf32-mips.c: Fix compile time warning messages.
639 * elf64-alpha.c: Fix compile time warning messages.
640 * libbfd.c: Fix compile time warning messages.
641 * bfd-in2.h: Regenerate.
1e738b87 642
923f08ff
AM
6432001-09-21 Alan Modra <amodra@bigpond.net.au>
644
645 * Makefile.am: Run "make dep-am".
646 * Makefile.in: Regenerate.
647
648 * aoutx.h: Formatting fixes.
649 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
650
651 * linker.c: Replace bfd_get_filename with bfd_archive_filename
652 in error message.
653
8f615d07
AM
6542001-09-21 Alan Modra <amodra@bigpond.net.au>
655
656 * bfd.c (bfd_archive_filename): New function.
657 * bfd-in2.h: Regenerate.
658 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
659 in error messages where the bfd is an input bfd.
660 * aout-cris.c: Likewise.
661 * coff-arm.c: Likewise.
662 * coff-mcore.c: Likewise.
663 * coff-ppc.c: Likewise.
664 * coff-rs6000.c: Likewise.
665 * coff-sh.c: Likewise.
666 * coff-tic54x.c: Likewise.
667 * coff-tic80.c: Likewise.
668 * coff64-rs6000.c: Likewise.
669 * coffcode.h: Likewise.
670 * coffgen.c: Likewise.
671 * cofflink.c: Likewise.
672 * ecofflink.c: Likewise.
673 * elf-hppa.h: Likewise.
674 * elf.c: Likewise.
675 * elf32-arm.h: Likewise.
676 * elf32-cris.c: Likewise.
677 * elf32-gen.c: Likewise.
678 * elf32-hppa.c: Likewise.
679 * elf32-i370.c: Likewise.
680 * elf32-i386.c: Likewise.
681 * elf32-m32r.c: Likewise.
682 * elf32-mcore.c: Likewise.
683 * elf32-mips.c: Likewise.
684 * elf32-ppc.c: Likewise.
685 * elf32-s390.c: Likewise.
686 * elf32-sh.c: Likewise.
687 * elf32-sparc.c: Likewise.
688 * elf32-v850.c: Likewise.
689 * elf64-alpha.c: Likewise.
690 * elf64-gen.c: Likewise.
691 * elf64-ppc.c: Likewise.
692 * elf64-s390.c: Likewise.
693 * elf64-sparc.c: Likewise.
694 * elf64-x86-64.c: Likewise.
695 * elflink.h: Likewise.
696 * elfxx-ia64.c: Likewise.
697 * ieee.c: Likewise.
698 * ihex.c: Likewise.
699 * libbfd.c: Likewise.
700 * pdp11.c: Likewise.
701 * pe-mips.c: Likewise.
702 * peicode.h: Likewise.
703 * srec.c: Likewise.
704 * xcofflink.c: Likewise.
705
706 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
707
708 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
709 error message.
710
711 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
712 error message.
713
714 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
715 Consolidate error messages, and split long messages to two lines.
716
671bae9c 7172001-09-20 John Reiser <jreiser@BitWagon.com>
83c81bfe 718
f51e552e
AM
719 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
720 and info->allow_shlib_undefined.
721 * elf32-cris.c: Likewise.
722 * elf32-hppa.c: Likewise.
723 * elf32-m68k.c: Likewise.
724 * elf32-mips.c: Likewise.
725 * elf32-ppc.c: Likewise.
726 * elf32-s390.c: Likewise.
727 * elf32-sh.c: Likewise.
728 * elf32-sparc.c: Likewise.
729 * elf64-alpha.c: Likewise.
730 * elf64-hppa.c: Likewise.
731 * elf64-ppc.c: Likewise.
732 * elf64-s390.c: Likewise.
733 * elf64-sparc.c: Likewise.
734 * elf64-x86-64.c: Likewise.
735 * elfxx-ia64.c: Likewise.
671bae9c 736
3882b010
L
7372001-09-18 Bruno Haible <haible@clisp.cons.org>
738
739 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
740 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
741 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
742 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
743 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
744 (bfd_default_scan): Use ISDIGIT instead of isdigit.
745 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
746 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
747 isxdigit/isdigit/islower.
748 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
749 (mangle_name): Use ISALNUM instead of isalnum.
750 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
751 (scan): Use ISDIGIT instead of isdigit.
752 * hosts/alphavms.h: Don't include <ctype.h>.
753 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
754 (ieee_object_p): Use TOUPPER instead of toupper.
755 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
756 (ihex_bad_byte): Use ISPRINT instead of isprint.
757 * merge.c: Don't include <ctype.h>.
758 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
759 (oasys_write_sections): Use ISDIGIT instead of isdigit.
760 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
761 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
762 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
763 (mangle_name): Use ISALNUM instead of isalnum.
764 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
765 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
766 isupper/islower/isdigit.
767 (som_decode_symclass): Use TOUPPER instead of toupper.
768 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
769 (srec_bad_byte): Use ISPRINT instead of isprint.
770 (srec_scan): Use ISSPACE instead of isspace.
771 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
772 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
773 * syms.c: Include "safe-ctype.h"
774 (islower, toupper): Remove macro definitions.
775 (bfd_decode_symclass): Use TOUPPER instead of toupper.
776 * vms-gsd.c: Don't include <ctype.h>.
777 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
778 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
779 islower/toupper.
780 * vms-tir.c: Don't include <ctype.h>.
781
dc810e39
AM
7822001-09-18 Alan Modra <amodra@bigpond.net.au>
783
784 * libbfd.c (bfd_bread): New function replacing bfd_read without
785 redundant params. Allow reads up to (size_t) -2 in length.
786 (bfd_bwrite): Similarly for bfd_write.
787 (real_read): Return a size_t.
788 (bfd_read): Call bfd_bread.
789 (bfd_write): Call bfd_bwrite.
790 (warn_deprecated): New function to annoy everybody.
791 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
792 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
793 (bfd_read, bfd_write): Define as macro.
794 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
795 likewise for bfd_write. Ensure function args are correct size by
796 using casts or local vars. In some cases, remove unnecessary
797 casts. Formatting fixes, in some cases removing a large expression
798 from function args by using a local var. Replace CONST with const.
799 Modify variable types to avoid warings. Use casts to avoid
800 warnings when using negative numbers in unsigned expressions.
801 * aout-adobe.c: Likewise.
802 * aout-arm.c: Likewise.
803 * aout-cris.c: Likewise.
804 * aout-encap.c: Likewise.
805 * aout-ns32k.c: Likewise.
806 * aout-target.h: Likewise.
807 * aout-tic30.c: Likewise.
808 * aoutf1.h: Likewise.
809 * aoutx.h: Likewise.
810 * archive.c: Likewise.
811 * archures.c: Likewise.
812 * bfd-in.h: Likewise.
813 * bfd.c: Likewise.
814 * binary.c: Likewise.
815 * bout.c: Likewise.
816 * cache.c: Likewise.
817 * cisco-core.c: Likewise.
818 * coff-a29k.c: Likewise.
819 * coff-alpha.c: Likewise.
820 * coff-arm.c: Likewise.
821 * coff-h8300.c: Likewise.
822 * coff-h8500.c: Likewise.
823 * coff-i386.c: Likewise.
824 * coff-i860.c: Likewise.
825 * coff-i960.c: Likewise.
826 * coff-ia64.c: Likewise.
827 * coff-m68k.c: Likewise.
828 * coff-m88k.c: Likewise.
829 * coff-mcore.c: Likewise.
830 * coff-mips.c: Likewise.
831 * coff-ppc.c: Likewise.
832 * coff-rs6000.c: Likewise.
833 * coff-sh.c: Likewise.
834 * coff-sparc.c: Likewise.
835 * coff-stgo32.c: Likewise.
836 * coff-tic30.c: Likewise.
837 * coff-tic54x.c: Likewise.
838 * coff-tic80.c: Likewise.
839 * coff-w65.c: Likewise.
840 * coff-z8k.c: Likewise.
841 * coff64-rs6000.c: Likewise.
842 * coffcode.h: Likewise.
843 * coffgen.c: Likewise.
844 * cofflink.c: Likewise.
845 * coffswap.h: Likewise.
846 * corefile.c: Likewise.
847 * cpu-arc.c: Likewise.
848 * cpu-h8300.c: Likewise.
849 * cpu-h8500.c: Likewise.
850 * cpu-i960.c: Likewise.
851 * cpu-ia64-opc.c: Likewise.
852 * cpu-ns32k.c: Likewise.
853 * cpu-pdp11.c: Likewise.
854 * cpu-pj.c: Likewise.
855 * cpu-sh.c: Likewise.
856 * cpu-w65.c: Likewise.
857 * cpu-z8k.c: Likewise.
858 * dwarf1.c: Likewise.
859 * dwarf2.c: Likewise.
860 * ecoff.c: Likewise.
861 * ecofflink.c: Likewise.
862 * ecoffswap.h: Likewise.
863 * elf-bfd.h: Likewise.
864 * elf-hppa.h: Likewise.
865 * elf-m10200.c: Likewise.
866 * elf-m10300.c: Likewise.
867 * elf.c: Likewise.
868 * elf32-arc.c: Likewise.
869 * elf32-arm.h: Likewise.
870 * elf32-avr.c: Likewise.
871 * elf32-cris.c: Likewise.
872 * elf32-fr30.c: Likewise.
873 * elf32-gen.c: Likewise.
874 * elf32-h8300.c: Likewise.
875 * elf32-hppa.c: Likewise.
876 * elf32-i370.c: Likewise.
877 * elf32-i386.c: Likewise.
878 * elf32-i860.c: Likewise.
879 * elf32-m32r.c: Likewise.
880 * elf32-m68k.c: Likewise.
881 * elf32-mcore.c: Likewise.
882 * elf32-mips.c: Likewise.
883 * elf32-openrisc.c: Likewise.
884 * elf32-pj.c: Likewise.
885 * elf32-ppc.c: Likewise.
886 * elf32-s390.c: Likewise.
887 * elf32-sh-lin.c: Likewise.
888 * elf32-sh.c: Likewise.
889 * elf32-sparc.c: Likewise.
890 * elf32-v850.c: Likewise.
891 * elf64-alpha.c: Likewise.
892 * elf64-hppa.c: Likewise.
893 * elf64-mips.c: Likewise.
894 * elf64-ppc.c: Likewise.
895 * elf64-s390.c: Likewise.
896 * elf64-sparc.c: Likewise.
897 * elf64-x86-64.c: Likewise.
898 * elfarm-nabi.c: Likewise.
899 * elfcode.h: Likewise.
900 * elfcore.h: Likewise.
901 * elflink.c: Likewise.
902 * elflink.h: Likewise.
903 * elfxx-ia64.c: Likewise.
904 * elfxx-target.h: Likewise.
905 * format.c: Likewise.
906 * hash.c: Likewise.
907 * hp300hpux.c: Likewise.
908 * hppabsd-core.c: Likewise.
909 * hpux-core.c: Likewise.
910 * i386aout.c: Likewise.
911 * i386dynix.c: Likewise.
912 * i386linux.c: Likewise.
913 * i386lynx.c: Likewise.
914 * i386mach3.c: Likewise.
915 * i386msdos.c: Likewise.
916 * i386os9k.c: Likewise.
917 * ieee.c: Likewise.
918 * ihex.c: Likewise.
919 * irix-core.c: Likewise.
920 * libaout.h: Likewise.
921 * libbfd-in.h: Likewise.
922 * libbfd.c: Likewise.
923 * libcoff-in.h: Likewise.
924 * libecoff.h: Likewise.
925 * libieee.h: Likewise.
926 * libnlm.h: Likewise.
927 * libpei.h: Likewise.
928 * libxcoff.h: Likewise.
929 * linker.c: Likewise.
930 * lynx-core.c: Likewise.
931 * m68klinux.c: Likewise.
932 * merge.c: Likewise.
933 * mipsbsd.c: Likewise.
934 * netbsd-core.c: Likewise.
935 * nlm.c: Likewise.
936 * nlm32-alpha.c: Likewise.
937 * nlm32-i386.c: Likewise.
938 * nlm32-ppc.c: Likewise.
939 * nlm32-sparc.c: Likewise.
940 * nlmcode.h: Likewise.
941 * nlmswap.h: Likewise.
942 * ns32k.h: Likewise.
943 * oasys.c: Likewise.
944 * opncls.c: Likewise.
945 * osf-core.c: Likewise.
946 * pc532-mach.c: Likewise.
947 * pdp11.c: Likewise.
948 * pe-mips.c: Likewise.
949 * peXXigen.c: Likewise.
950 * peicode.h: Likewise.
951 * ppcboot.c: Likewise.
952 * ptrace-core.c: Likewise.
953 * reloc.c: Likewise.
954 * reloc16.c: Likewise.
955 * riscix.c: Likewise.
956 * rs6000-core.c: Likewise.
957 * sco5-core.c: Likewise.
958 * section.c: Likewise.
959 * som.c: Likewise.
960 * sparclinux.c: Likewise.
961 * sparclynx.c: Likewise.
962 * srec.c: Likewise.
963 * stabs.c: Likewise.
964 * sunos.c: Likewise.
965 * syms.c: Likewise.
966 * targets.c: Likewise.
967 * tekhex.c: Likewise.
968 * trad-core.c: Likewise.
969 * versados.c: Likewise.
970 * vms-gsd.c: Likewise.
971 * vms-hdr.c: Likewise.
972 * vms-misc.c: Likewise.
973 * vms-tir.c: Likewise.
974 * vms.c: Likewise.
975 * vms.h: Likewise.
976 * xcofflink.c: Likewise.
977 * bfd-in2.h: Regenerate.
978 * libbfd.h: Regenerate.
979 * libcoff.h: Regenerate.
980
981 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
982 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
983 (ufile_ptr): Define.
984 (bfd_tell): Return a ufile_ptr.
985 * libbfd.c (bfd_tell): Likewise.
986 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
987 unnecessarily.
988 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
989 * aoutf1.h: Likewise.
990 * som.c: Likewise.
991 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
992 larger than unsigned long can represent.
993
994 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
995 size overflows size_t.
996 (bfd_realloc): Likewise.
997 (bfd_zmalloc): Likewise.
998 * opncls.c (bfd_alloc): Likewise.
999 (bfd_zalloc): Likewise.
1000 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1001 (bfd_alloc, bfd_zalloc): Update.
1002
1003 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1004 8 bits.
1005 (bfd_get_signed_8): Likewise.
1006 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1007 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1008 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1009 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1010 * libaout.h: Likewise define and use here.
1011 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1012 * aout-arm.c: Likewise.
1013 * aout-encap.c: Likewise.
1014 * aout-ns32k.c: Likewise.
1015 * aout-tic30.c: Likewise.
1016 * aoutf1.h: Likewise.
1017 * aoutx.h: Likewise.
1018 * bout.c: Likewise.
1019 * coff-alpha.c: Likewise.
1020 * coff-h8300.c: Likewise.
1021 * coff-h8500.c: Likewise.
1022 * coff-i960.c: Likewise.
1023 * coff-ia64.c: Likewise.
1024 * coff-m88k.c: Likewise.
1025 * coff-mips.c: Likewise.
1026 * coff-ppc.c: Likewise.
1027 * coff-rs6000.c: Likewise.
1028 * coff-sh.c: Likewise.
1029 * coff-sparc.c: Likewise.
1030 * coff-stgo32.c: Likewise.
1031 * coff-tic30.c: Likewise.
1032 * coff-tic80.c: Likewise.
1033 * coff-w65.c: Likewise.
1034 * coff-z8k.c: Likewise.
1035 * coff64-rs6000.c: Likewise.
1036 * coffgen.c: Likewise.
1037 * cofflink.c: Likewise.
1038 * coffswap.h: Likewise.
1039 * ecoff.c: Likewise.
1040 * ecoffswap.h: Likewise.
1041 * elf.c: Likewise.
1042 * elf32-mips.c: Likewise.
1043 * elf64-mips.c: Likewise.
1044 * hp300hpux.c: Likewise.
1045 * i386dynix.c: Likewise.
1046 * i386lynx.c: Likewise.
1047 * i386msdos.c: Likewise.
1048 * i386os9k.c: Likewise.
1049 * libpei.h: Likewise.
1050 * nlm32-alpha.c: Likewise.
1051 * nlm32-i386.c: Likewise.
1052 * nlm32-ppc.c: Likewise.
1053 * nlmcode.h: Likewise.
1054 * nlmswap.h: Likewise.
1055 * oasys.c: Likewise.
1056 * pdp11.c: Likewise.
1057 * pe-mips.c: Likewise.
1058 * peXXigen.c: Likewise.
1059 * peicode.h: Likewise.
1060 * riscix.c: Likewise.
1061 * sunos.c: Likewise.
1062 * xcofflink.c: Likewise.
1063 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1064 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1065 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1066 equivalent H_PUT_* macro instead.
1067 (GETWORD, GETHALF, GETBYTE): Similarly.
1068 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1069 (GETWORD, GETHALF, GETBYTE): Likewise.
1070 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1071
1072 * bfd-in.h (struct orl): Change "pos" to a union.
1073 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1074 (bsd_write_armap): Here too.
1075 (coff_write_armap): And here.
1076 * coff-rs6000.c (xcoff_write_armap_old): And here.
1077 (xcoff_write_one_armap_big): And here.
1078 (xcoff_write_armap_big): And here.
1079 * ecoff.c (_bfd_ecoff_write_armap): And here.
1080 * elf64-mips.c (mips_elf64_write_armap): And here.
1081
1082 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1083 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1084 * elf32-h8300.c (elf32_h8_mach): Likewise.
1085 * elf32-mips.c (elf_mips_mach): Likewise.
1086 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1087
1088 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1089 calls.
1090 (aix386_core_vec): Typo fix.
1091
1092 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1093 etc. to avoid redefined macro warning.
1094 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1095 (MY(fix_pcrel_26)): Likewise.
1096 * aout-ns32k.c (MY(put_reloc)): Likewise.
1097 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1098 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1099 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1100
1101 * aout-encap.c: Include "file", not <file> for binutils headers.
1102 (encap_object_p): Half baked attempt to fix compile errors in
1103 code dealing with "magic".
1104
1105 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1106 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1107 bfd_vma's rather than longs.
1108 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1109 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1110 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1111 remove case 3.
1112 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1113 Use unsigned comparisons.
1114 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1115 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1116 (_bfd_do_ns32k_reloc_contents): Likewise.
1117 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1118 (_bfd_ns32k_get_immediate): Likewise.
1119 (_bfd_ns32k_put_displacement): Likewise.
1120 (_bfd_ns32k_put_immediate): Likewise.
1121 (bfd_reloc_status_type): Likewise.
1122
1123 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1124 to avoid shadowing.
1125 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1126 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1127 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1128 avoid shadowing.
1129 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1130 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1131 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1132 shadow warning.
1133 (_bfd_elfcore_strndup): Likewise for "dup".
1134 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1135 "name" to avoid shadowing.
1136 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1137 definition of "off".
1138 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1139 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1140 definition of "s".
1141 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1142 "secpp".
1143 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1144 to avoid shadowing.
1145 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1146 to avoid shadowing.
1147 (elf_link_input_bfd): Likewise.
1148 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1149 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1150 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1151 "input_section".
1152 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1153 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1154 (sunos_write_dynamic_symbol): Remove unused vars.
1155 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1156 innermost "directory_name" and "file_name" vars.
1157 * tekhex.c (first_phase): Rename local var "type" to "stype".
1158 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1159 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1160 doing comparison at caller.
1161 (vms_esecflag_by_name): Likewise.
1162 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1163 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1164 (xcoff_write_global_symbol): Rename "p" param to "inf".
1165
1166 * cisco-core.c: Add missing prototypes.
1167 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1168 (cisco_core_file_failing_signal): Likewise.
1169 (cisco_core_file_matches_executable_p): Likewise.
1170 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1171 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1172 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1173 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1174
1175 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1176 thumb_glue_size and arm_glue_size.
1177 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1178
1179 * coff64-rs6000.c: Group prototypes together.
1180
1181 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1182 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1183
1184 * cpu-arc.c: Add missing prototypes.
1185 * cpu-h8500.c: Likewise.
1186 * cpu-i960.c: Likewise.
1187 * cpu-pj.c: Likewise.
1188 * cpu-sh.c: Likewise.
1189 * cpu-w65.c: Likewise.
1190 * cpu-z8k.c: Likewise.
1191 * elf32-fr30.c: Likewise.
1192 * elf32-h8300.c: Likewise.
1193 * elf32-i370.c: Likewise.
1194 * hpux-core.c: Likewise.
1195 * versados.c: Likewise.
1196
1197 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1198 * cpu-h8500.c: Likewise.
1199 * cpu-i960.c: Likewise.
1200 * cpu-z8k.c: Likewise.
1201
1202 * cpu-ia64-opc.c: Correct comment.
1203
1204 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1205
1206 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1207 to unsigned.
1208 (bfd_elf32_write_out_phdrs): Likewise.
1209 (bfd_elf64_write_out_phdrs): Likewise.
1210 (elf_linker_section_pointers): Change addend to bfd_vma.
1211 (_bfd_elf_find_pointer_linker_section): Likewise.
1212 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1213 filepos to unsigned file_ptr.
1214 (_bfd_elfcore_strndup): Change max param to size_t.
1215 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1216 (_bfd_elfcore_strndup): Likewise.
1217 (_bfd_elf_find_pointer_linker_section): Likewise.
1218
1219 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1220 insn and sym_value to ints.
1221
1222 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1223 bfd_size_type.
1224 (elfcore_read_notes): Likewise.
1225
1226 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1227 param from unsigned char to int.
1228 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1229 for info_to_howto call.
1230 (add_dynamic_entry): Define macro.
1231 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1232
1233 * elf32-cris.c (add_dynamic_entry): Define macro.
1234 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1235
1236 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1237 (elf32_h8_object_p): Likewise.
1238 (elf32_h8_merge_private_bfd_data): Likewise.
1239 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1240
1241 * elf32-hppa.c (add_dynamic_entry): Define macro.
1242 (elf32_hppa_size_dynamic_sections): Use it.
1243 * elf32-i370.c (add_dynamic_entry): Define macro.
1244 (i370_elf_size_dynamic_sections): Use it.
1245 (i370_noop): Make static.
1246 * elf32-i386.c (add_dynamic_entry): Define macro.
1247 (elf_i386_size_dynamic_sections): Use it.
1248 * elf32-m68k.c (add_dynamic_entry): Define macro.
1249 (elf_m68k_size_dynamic_sections): Use it.
1250 * elf32-ppc.c (add_dynamic_entry): Define macro.
1251 (ppc_elf_size_dynamic_sections): Use it.
1252 * elf32-s390.c (add_dynamic_entry): Define macro.
1253 (elf_s390_size_dynamic_sections): Use it.
1254 * elf64-alpha.c (add_dynamic_entry): Define macro.
1255 (elf64_alpha_size_dynamic_sections): Use it.
1256 * elf64-hppa.c (add_dynamic_entry): Define macro.
1257 (elf64_hppa_size_dynamic_sections): Use it.
1258 * elf64-ppc.c (add_dynamic_entry): Define macro.
1259 (ppc64_elf_size_dynamic_sections): Use it.
1260 * elf64-s390.c (add_dynamic_entry): Define macro.
1261 (elf_s390_size_dynamic_sections): Use it.
1262 * elf64-sparc.c (add_dynamic_entry): Define macro.
1263 (sparc64_elf_size_dynamic_sections): Use it.
1264 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1265 (elf64_x86_64_size_dynamic_sections): Use it.
1266 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1267 (elfNN_ia64_size_dynamic_sections): Use it.
1268
1269 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1270 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1271
1272 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1273 false if the first malloc fails rather than going via error_return.
1274
1275 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1276 "index" param.
1277 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1278
1279 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1280
1281 * elfxx-ia64.c (global_sym_index): Return a long.
1282
1283 * ieee.c (get_symbol): Use int rather than char param.
1284 (ieee_slurp_sections): Move "section" var to inner blocks.
1285 (copy_expression): Don't init "value" to zero or worry about
1286 clearing to zero after using.
1287 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1288 shadowing.
1289
1290 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1291 unsigned int.
1292
1293 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1294 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1295
1296 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1297
1298 * pc532-mach.c (MYNSX): Delete.
1299 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1300 (write_object_contents): Correct prototype.
1301
1302 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1303 than unsigned short.
1304
1305 * section.c (bfd_set_section_contents): Remove redundant
1306 "offset < 0" test. Check that "count" doesn't overflow size_t.
1307 (bfd_get_section_contents): Likewise.
1308
1309 * som.c (som_fixup_formats): Add missing braces.
1310 (som_reloc_addend): Pass a bfd_vma for "addend".
1311
1312 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1313 (srec_write_symbols): Remove an unnecessary var.
1314
1315 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1316 to match.
1317 * configure.in: Sort to match. Bump version number.
1318 * configure: Regenerate.
1319
1320 * tekhex.c (move_section_contents): Assert offset == 0.
1321
1322 * versados.c (new_symbol_string): Constify arg.
1323 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1324 (versados_get_symbol_info): Make static.
1325 (versados_print_symbol): Likewise.
1326 (versados_get_reloc_upper_bound): Likewise.
1327 (versados_canonicalize_reloc): Likewise.
1328
417412a2
NC
13292001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1330
1331 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1332
bb731fb6
L
13332001-09-17 H.J. Lu <hjl@gnu.org>
1334
1335 * dwarf1.c (parse_die): Take a new arg for the end of the
1336 section. Return false if die is beyond the section.
1337 (parse_functions_in_unit): Pass the end of the section to
1338 parse_die ().
1339 (_bfd_dwarf1_find_nearest_line): Likewise.
1340
841989d6
NC
13412001-09-14 Michael Rauch <mrauch@netbsd.org>
1342
1343 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1344 just like R_SPARC_32.
1345
056a1d49
NC
13462001-09-14 Kevin Lo <kevlo@openbsd.org>
1347
1348 * configure.bfd: Add arm-openbsd target.
1349
4008bd9b
TS
13502001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1351
1352 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1353 Add support for mips64.
1354
c11cc227
AO
13552001-09-13 Alexandre Oliva <aoliva@redhat.com>
1356
1357 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1358
aa4f99bb
AO
13592001-09-12 Alexandre Oliva <aoliva@redhat.com>
1360
1361 * elf.c (prep_headers): Get the machine code from the elf
1362 backend data.
1363 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1364 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1365 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1366 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1367 * elf-arc.c (arc_elf_final_write_processing): Don't override
1368 e_machine, it's now properly set in prep_headers.
1369 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1370 EM_AVR_OLD.
1371 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1372 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1373 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1374 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1375 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1376 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1377 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1378 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1379 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1380 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1381 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1382 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1383
204692d7
RH
13842001-09-11 Richard Henderson <rth@redhat.com>
1385
1386 * elf64-alpha.c (elf64_alpha_section_flags): New.
1387 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1388
f94952df
RH
13892001-09-11 Richard Henderson <rth@redhat.com>
1390
1391 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1392 apply HINT relocations against dynamic symbols.
1393
146f1a87
L
13942001-09-11 H.J. Lu <hjl@gnu.org>
1395
f94952df 1396 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
146f1a87 1397
1cd6895c
RH
13982001-09-09 Richard Henderson <rth@redhat.com>
1399
96e2734b
RH
1400 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1401
1cd6895c
RH
1402 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1403 following a call to a near function.
1404
f16fbd61
RH
14052001-09-08 Richard Henderson <rth@redhat.com>
1406
1407 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1408 relocation errors. Fail gp-relative relocations against
1409 dynamic symbols.
1410
56882138
AM
14112001-09-08 Alan Modra <amodra@bigpond.net.au>
1412
1413 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1414 as well as DEF_DYNAMIC in test for avoided copy relocs.
1415 (allocate_plt_and_got_and_discard_relocs): Likewise.
1416 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1417 (allocate_plt_and_got_and_discard_relocs): Likewise.
1418
cb56d3d3
TS
14192001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1420
1421 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1422 of R_MIPS_PC16.
56882138
AM
1423
14242001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1425
1426 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1427 definitions.
1428 (mips_elf64_howto_table_rel): Likewise.
1429
14302001-09-05 Tom Rix <trix@redhat.com>
1431
1432 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1433 and syscall symbols.
1434 (write_global_symbol) : Same.
1435 (bfd_xcoff_export_symbol): Remove unused syscall param.
1436 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1437 bfd_xcoff_import_symbol.
1438 * bfd-in.h: Same.
1439 * bfd-in2.h : Regenerate.
1440
14412001-09-04 Richard Henderson <rth@redhat.com>
1442
1443 * elf64-alpha.c (SKIP_HOWTO): New.
1444 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1445 Fix sizes of 16-bit mem format relocs.
1446 (elf64_alpha_reloc_map): Update to match.
1447 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1448 (elf64_alpha_relax_without_lituse): Likewise.
1449 (elf64_alpha_check_relocs): Handle GPREL16.
1450 (elf64_alpha_relocate_section): Likewise.
1451 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1452 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1453 * bfd-in2.h, libbfd.h: Rebuild.
1454
14552001-09-04 Jeff Law <law@redhat.com>
1456
1457 * elf32-h8300.c (elf32_h8_relax_section): New function.
1458 (elf32_h8_relax_delete_bytes): Likewise.
1459 (elf32_h8_symbol_address_p): Likewise.
1460 (elf32_h8_get_relocated_section_contents): Likewise.
1461 (bfd_elf32_bfd_relax_section): Define.
1462 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1463
1464 * elf32-h8300.c (special): New function.
1465 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1466 all relocations.
1467 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1468 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1469 Fix minor problems with 8bit and 16bit PC relative relocations.
1470
14712001-09-01 Andreas Jaeger <aj@suse.de>
1472
1473 * vms-tir.c: Add missing prototypes.
1474 * vms-hdr.c: Likewise.
1475 * vms-gsd.c: Likewise.
1476 * vms-misc.c: Likewise.
1477
14782001-08-31 H.J. Lu <hjl@gnu.org>
1479
1480 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1481 with bad relocation.
1482
14832001-08-31 Eric Christopher <echristo@redhat.com>
1484 Jason Eckhardt <jle@redhat.com>
1485
1486 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1487 mips32_4k and mips64.
1488 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1489 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1490 * bfd/cpu-mips.c: Ditto.
1491 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1492 * bfd/bfd-in2.h: Regenerate.
1493
14942001-08-31 Jakub Jelinek <jakub@redhat.com>
1495
1496 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1497 value into R_ALPHA_RELATIVE's addend.
1498 (elf64_alpha_finish_dynamic_symbol): Likewise.
1499
15002001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1501
1502 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1503 recomputed addend during relocatable link if not USE_REL.
1504
1505 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1506 error.
1507
15082001-08-30 H.J. Lu <hjl@gnu.org>
1509
1510 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1511 2 changes.
1512 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1513 relocations for weak definitions.
1514
15152001-08-30 H.J. Lu <hjl@gnu.org>
1516
1517 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1518 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1519 * Makefile.in: Rebuild.
1520
15212001-08-30 H.J. Lu <hjl@gnu.org>
1522
1523 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1524 dynamic relocation for undefined weak symbols when creating
1525 executables. Check h->root.root.type, instead of h->root.type.
1526
15272001-08-29 Joel Sherrill <joel@OARcorp.com>
1528
1529 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1530 default from coff to elf.
1531
15322001-08-29 Jeff Law <law@redhat.com>
1533
1534 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1535 relocations.
1536 (h8_reloc_map): Similarly.
1537 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1538 Add support for PC relative relocations.
1539
1540 * elf32-h8300.c: Put all prototypes together.
1541 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1542 (elf32_h8_final_link_relocate): New function for linker.
1543 (elf32_h8_relocate_section): Similarly.
1544 (elf_backend_relocate_section): Define.
1545
1546 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1547 (h8300_scan): Handle architecture:machine encodings typically
1548 found in linker scripts.
1549 * elf.c (prep_headers): Do not try to do H8 machine recognition
1550 here.
1551 * elf32-h8300.c: Add some missing prototypes.
1552 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1553 (elf32_h8_object_p): Similarly.
1554
15552001-08-29 Tom Rix <trix@redhat.com>
1556
1557 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1558 does not follow a XTY_SD.
1559
15602001-08-29 Alan Modra <amodra@bigpond.net.au>
1561
1562 * targmatch.sed: Delete case statements.
1563 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1564 aix4.3 and above.
1565
1566Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1567
1568 * Makefile.am (elf32-h8300.lo): New target.
1569 * config.bfd (h8300*-*-elf): New case.
1570 * configure.in (bfd_elf32_h8300_vec): New case.
1571 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1572 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1573 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1574 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1575 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1576 * elf32-h8300.c: New file.
1577 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1578
15792001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1580
1581 * sparclynx.c: Add missing prototypes.
1582 * coff-mcore.c: Add missing prototypes.
1583 * elf32-pj.c: Add missing prototypes.
1584 * nlm32-sparc.c: Add missing prototypes.
1585 * oasys.c: Add missing prototypes.
1586 * pdp11.c: Add missing prototypes.
1587 * pe-mips.c: Add missing prototypes.
1588 * riscix.c: Add missing prototypes.
1589
15902001-08-27 Daniel Jacobowitz <drow@mvista.com>
1591
1592 * elf32-i386.c: Add missing prototypes.
1593 * elf32-ppc.c: Likewise.
1594 * elf32-sh-lin.c: Likewise.
1595 * elfarm-nabi.c: Likewise.
1596
15972001-08-27 Daniel Jacobowitz <drow@mvista.com>
1598
1599 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1600 (elf_i386_grok_psinfo): New function.
1601 (elf_backend_grok_prstatus): Define.
1602 (elf_backend_grok_psinfo): Likewise.
1603 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1604 (ppc_elf_grok_psinfo): New function.
1605 (elf_backend_grok_prstatus): Define.
1606 (elf_backend_grok_psinfo): Likewise.
1607 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1608 (elf32_shlin_grok_psinfo): New function.
1609 (elf_backend_grok_prstatus): Define.
1610 (elf_backend_grok_psinfo): Likewise.
1611 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1612 (elf32_arm_nabi_grok_psinfo): New function.
1613 (elf_backend_grok_prstatus): Define.
1614 (elf_backend_grok_psinfo): Likewise.
1615
16162001-08-27 H.J. Lu <hjl@gnu.org>
1617
1618 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1619 sanity check.
1620 (mips_elf_calculate_relocation): Create dynamic relocation for
1621 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1622 bit is not set.
1623
16242001-08-27 H.J. Lu <hjl@gnu.org>
1625
1626 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1627 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1628 (_bfd_elf32_mips_grok_prstatus): Likewise.
1629 (_bfd_elf32_mips_grok_psinfo): Likewise.
1630 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1631 `struct mips_elf_link_hash_entry *'.
1632 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1633
16342001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1635
1636 * mipsbsd.c: Add missing prototypes.
1637 * hp300hpux.c: Add missing prototypes.
1638 * i386aout.c: Add missing prototypes.
1639 * i386lynx.c: Add missing prototypes.
1640 * i386mach3.c: Add missing prototypes.
1641 * i386msdos.c: Add missing prototypes.
1642 * i386os9k.c: Add missing prototypes.
1643
16442001-08-27 Linus Nordberg <linus@swox.se>
1645 Torbjorn Granlund <tege@swox.com>
1646 Staffan Ulfberg <staffanu@swox.se>
1647 Alan Modra <amodra@bigpond.net.au>
1648
1649 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1650 targ64_selvecs for 32 bit powerpc targets.
1651 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1652 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1653 Run "make dep-am".
1654 * Makefile.in: Regenerate.
1655 * configure.in: Add elf64_powerpc vecs.
1656 * configure: Regenerate.
1657 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1658 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1659 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1660 * elf64-ppc.c: New file.
1661 * reloc.c: Add powerpc64 relocs.
1662 * libbfd.h: Regenerate.
1663 * bfd-in2.h: Regenerate.
1664
16652001-08-27 Andreas Schwab <schwab@suse.de>
1666
1667 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1668 reloc is against read-only section.
1669 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1670 looking up section names for DT_TEXTREL.
1671 (elf32_m68k_reloc_type_class): New function.
1672 (elf_backend_reloc_type_class): Define.
1673
16742001-08-27 Andreas Jaeger <aj@suse.de>
1675
1676 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1677 reloc is against read-only section.
1678 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1679 looking up section names for DT_TEXTREL.
1680 (elf_s390_reloc_type_class): New.
1681 (elf_backend_reloc_type_class): Define.
1682
1683 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1684 reloc is against read-only section.
1685 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1686 looking up section names for DT_TEXTREL.
1687 (elf_s390_reloc_type_class): New.
1688 (elf_backend_reloc_type_class): Define.
1689
1690 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1691 is against read-only section.
1692 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1693 looking up section names for DT_TEXTREL.
1694 (ppc_elf_reloc_type_class): New.
1695 (elf_backend_reloc_type_class): Define.
1696
16972001-08-26 Andreas Jaeger <aj@suse.de>
1698
1699 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1700 reloc is against read-only section.
1701 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1702 looking up section names for DT_TEXTREL.
1703 (elf_cris_reloc_type_class): New.
1704 (elf_backend_reloc_type_class): Define.
1705
1706 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1707 against read-only section.
1708 (elf_backend_reloc_type_class): Define.
1709 (sh_elf_reloc_type_class): New.
1710 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1711 looking up section names for DT_TEXTREL.
1712
1713 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1714 reloc is against read-only section.
1715 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1716 looking up section names for DT_TEXTREL.
1717 (elf32_arm_reloc_type_class): New.
1718 (elf_backend_reloc_type_class): Define.
1719
17202001-08-25 Andreas Jaeger <aj@suse.de>
1721
1722 * oasys.c: Add missing prototypes.
1723
1724 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1725 attribute for parameter.
1726 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1727
1728 * versados.c (get_4): Make static.
1729 (get_10): Make static.
1730 Add missing prototypes.
1731 (process_esd): Fix call to versados_new_symbol.
1732
17332001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1734
1735 * coff-a29k.c: Add missing prototypes.
1736 * coff-apollo.c: Add missing prototypes.
1737 * coff-arm.c: Add missing prototypes.
1738 * coff-i860.c: Add missing prototypes.
1739 * coff-rs6000.c: Add missing prototypes.
1740 * coff-tic80.c: Add missing prototypes.
1741 * elf-m10200.c: Add missing prototypes.
1742 * elf-m10300.c: Add missing prototypes.
1743 * elf32-arm.h: Add missing prototypes.
1744 * elf32-d10v.c: Add missing prototypes.
1745 * elf32-m32r.c: Add missing prototypes.
1746 * elf32-mcore.c: Add missing prototypes.
1747 * elf32-openrisc.c: Add missing prototypes.
1748 * elf32-sh.c: Add missing prototypes.
1749 * elf32-sparc.c: Add missing prototypes.
1750 * elf32-v850.c: Add missing prototypes.
1751 * elfarm-nabi.c: Add missing prototypes.
1752 * elfarm-oabi.c: Add missing prototypes.
1753
17542001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1755
1756 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1757 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1758
17592001-08-24 H.J. Lu <hjl@gnu.org>
1760
1761 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1762 hash structure.
1763
17642001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1765
1766 * elf-bfd.h (elf_hash_table): Revert definition.
1767 (is_elf_hash_table): New macro.
1768 * elflink.h (elf_link_add_object_symbols): Test
1769 is_elf_hash_table before accessing ELF only fields in hash
1770 structure.
1771 (elf_link_create_dynamic_sections): Fail if not using an ELF
1772 hash structure.
1773 (elf_add_dynamic_entry): Fail if not using an ELF hash
1774 structure.
1775 (elf_link_record_local_dynamic_symbol): Fail if not using an
1776 ELF hash structure.
1777 (size_dynamic_sections): Fail if not using an ELF hash
1778 structure.
1779 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1780 hash structure.
1781 (elf_bfd_final_link): Fail if not using an ELF hash
1782 structure.
1783
17842001-08-24 H.J. Lu <hjl@gnu.org>
1785
1786 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1787 table is not an ELF linker hash table.
1788
1789 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1790 table type to bfd_link_elf_hash_table.
1791
1792 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1793 the last change.
1794
1795 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1796 table type to bfd_link_generic_hash_table.
1797
17982001-08-24 Alexandre Oliva <aoliva@redhat.com>
1799
1800 * bfd.c (bfd_alt_mach_code): New function.
1801 * bfd-in2.h: Rebuilt.
1802
18032001-08-24 Alexandre Oliva <aoliva@redhat.com>
1804
1805 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1806 `type' field in the hash entry when deciding whether to follow a
1807 link.
1808
18092001-08-24 Jakub Jelinek <jakub@redhat.com>
1810
1811 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1812 last.
1813 (elf_link_sort_relocs): Adjust accordingly.
1814
1815 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1816 (elf64_alpha_check_relocs): Set it if section this reloc is against
1817 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1818 read-only section.
1819 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1820 is is against read-only section.
1821 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1822 check section names.
1823 (elf64_alpha_reloc_type_class): New.
1824 (elf_backend_reloc_type_class): Define.
1825
18262001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1827
1828 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1829 by bfd_malloc().
1830
18312001-08-23 Andreas Jaeger <aj@suse.de>
1832
1833 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1834 the reloc is against read-only section.
1835 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1836 of looking up section names for DT_TEXTREL.
1837 (elf64_x86_64_reloc_type_class): New.
1838 (elf_backend_reloc_type_class): Define.
1839
18402001-08-23 H.J. Lu <hjl@gnu.org>
1841
1842 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1843 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1844
1845 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1846 bfd_print_symbol_vandf.
1847 * coffgen.c (coff_print_symbol): Likewise.
1848 * elf.c (bfd_elf_print_symbol): Likewise.
1849 * ieee.c (ieee_print_symbol): Likewise.
1850 * nlmcode.h (nlm_print_symbol): Likewise.
1851 * oasys.c (oasys_print_symbol): Likewise.
1852 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1853 * som.c (som_print_symbol): Likewise.
1854 * srec.c (srec_print_symbol): Likewise.
1855 * tekhex.c (tekhex_print_symbol): Likewise.
1856 * versados.c (versados_print_symbol): Likewise.
1857 * vms.c (vms_print_symbol): Likewise.
1858
1859 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1860 with bfd_fprintf_vma.
1861 (bfd_elf_print_symbol): Likewise.
1862 * syms.c (bfd_print_symbol_vandf): Likewise.
1863
18642001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1865
1866 * aoutf1.h (sunos_write_object_contents): Silence compile time
1867 warning.
1868 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1869
1870 * bout.c: Add missing function prototypes. Fix formatting.
1871 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1872 * coff-w65.c: Add missing function prototypes. Fix formatting.
1873 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1874 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1875 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1876 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1877 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1878 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1879 * coff-sh.c: Add missing function prototypes. Fix formatting.
1880
18812001-08-23 Jakub Jelinek <jakub@redhat.com>
1882
1883 * elf-bfd.h (enum elf_reloc_type_class): New.
1884 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1885 (_bfd_elf_reloc_type_class): New.
1886 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1887 (elfNN_bed): Add elf_backend_reloc_type_class.
1888 * elf.c (_bfd_elf_reloc_type_class): New.
1889 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1890 is against read-only section.
1891 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1892 looking up section names for DT_TEXTREL.
1893 (elf_i386_reloc_type_class): New.
1894 (elf_backend_reloc_type_class): Define.
1895 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1896 reloc is against read-only section.
1897 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1898 looking up section names for DT_TEXTREL.
1899 (elf32_sparc_reloc_type_class): New.
1900 (elf_backend_reloc_type_class): Define.
1901 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1902 reloc is against read-only section.
1903 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1904 looking up section names for DT_TEXTREL.
1905 (sparc64_elf_reloc_type_class): New.
1906 (elf_backend_reloc_type_class): Define.
1907 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1908 (elfNN_ia64_hash_table_create): Clear ia64_info.
1909 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1910 section.
1911 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1912 instead of looking up section names for DT_TEXTREL.
1913 (elfNN_ia64_reloc_type_class): New.
1914 (elf_backend_reloc_type_class): Define.
1915 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1916 (struct elf_link_sort_rela): New.
1917 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1918 (elf_bfd_final_link): Call elf_link_sort_relocs.
1919 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1920 necessary.
1921
19222001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1923
1924 * configure.in (x86-bsdi): No corefile support.
1925 * configure: Regenerate.
1926
19272001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1928
1929 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1930 comma.
1931
19322001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1933
1934 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1935 the alignment of dwarf2 linkonce sections to 0.
1936 * coff-sto32.c: Likewise.
1937
19382001-08-20 Andreas Jaeger <aj@suse.de>
1939
1940 * coff-sparc.c: Add missing prototypes.
1941 * elf32-s390.c: Likewise.
1942 * elf32-i960.c: Likewise.
1943 * aout-target.h: Likewise.
1944
19452001-08-20 H.J. Lu <hjl@gnu.org>
1946
1947 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1948 (elf_num_section_syms): New for num_section_syms.
1949
1950 * elf.c (elf_map_symbols): Set num_section_syms.
1951 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1952 the section symbol index.
1953
19542001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1955
1956 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1957 select the generic has table creator. All elf backends need elf
1958 specific fields in the hash table.
1959
19602001-08-20 Alan Modra <amodra@bigpond.net.au>
1961
1962 * archive.c (offsetof): Remove define.
1963 * elf.c: Likewise.
1964 * oasys.c: Likewise
1965 * sysdep.h (offsetof): Define.
1966
19672001-08-17 Alan Modra <amodra@bigpond.net.au>
1968
1969 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1970 (bfd_set_gp_size): Make param unsigned.
1971 * bfd-in2.h: Regenerate.
1972 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1973 than calling bfd_get_gp_size.
1974 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1975 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1976
19772001-08-17 Alan Modra <amodra@bigpond.net.au>
1978
1979 * linker.c (default_fill_link_order): Handle four byte fill value.
1980
19812001-08-17 Alan Modra <amodra@bigpond.net.au>
1982
1983 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1984 prototype.
1985 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1986
1987 * elf64-mips.c (UNUSED_RELOC): Define.
1988 (mips_elf64_howto_table_rel): Use it.
1989 (mips_elf64_howto_table_rela): Here too.
1990 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1991
1992 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1993 silence warning.
1994 * coffgen.c (coff_print_symbol): Fix warnings.
1995 (coff_find_nearest_line): Likewise.
1996 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1997 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1998 * format.c (bfd_check_format_matches): Likewise.
1999 (bfd_set_format): Likewise.
2000 * coff-ia64.c: Add missing prototypes.
2001 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2002 signed to silence warnings.
2003 (elf64_alpha_relocate_section): Likewise.
2004 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2005 (elf64_alpha_add_symbol_hook): Likewise.
2006 (elf64_alpha_final_link): Likewise.
2007 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2008 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2009 (elf64_alpha_size_got_sections): Likewise.
2010 * elfxx-ia64.c: Add missing prototypes.
2011 (elfNN_ia64_relocate_section): Fix warning.
2012 (elfNN_ia64_unwind_entry_compare): Make params const.
2013
20142001-08-17 Alan Modra <amodra@bigpond.net.au>
2015
2016 * config.bfd (targ64_selvecs): New.
2017 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2018
2019 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2020 (BFD_DEFAULT_TARGET_SIZE): New.
2021 (BFD_ARCH_SIZE): Comment.
2022 * configure.in (target_size): New. Set instead of target64 in
2023 selvecs case statement. Set target64 from it.
2024 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2025 * bfd-in2.h: Regenerate.
2026 * configure: Regenerate.
2027
20282001-08-17 Alan Modra <amodra@bigpond.net.au>
2029
2030 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2031 (bfd_errmsgs): Add corresponding message.
2032 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2033 finding an archive that contains different format object files.
2034 Return bfd_error_wrong_object_format for this case.
2035 * format.c: Formatting fixes. s/CONST/const/.
2036 (bfd_check_format_matches): Accept archives that give
2037 bfd_error_wrong_object_format if no full match is found. Tidy
2038 code handling matching_vector. Don't return a pointer to freed
2039 memory in `matching'. Handle ambiguous matches as for partial
2040 archive matches.
2041 * bfd-in2.h: Regenerate.
2042
20432001-08-15 Alan Modra <amodra@bigpond.net.au>
2044
2045 * libieee.h (common_header_type): Add last_byte field.
2046
2047 * ieee.c: Add missing prototypes. Some format fixes.
2048 (struct output_buffer_struct): Move for availability to prototypes.
2049 (ieee_part_after): New function.
2050 (ieee_slurp_debug): Use it here.
2051 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2052 ieee_part_after to set last_byte to one past end of current part.
2053 Update callers.
2054 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2055 Update callers.
2056 (parse_expression): Don't go beyond the end of the current part.
2057 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2058 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2059 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2060 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2061 ieee_set_section_contents, ieee_write_object_contents,
2062 ieee_make_empty_symbol): Make static.
2063 (ieee_archive_p): Correct comments regarding bfd_read.
2064 (ieee_object_p): Similarly.
2065 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2066 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2067 input_bfd, output_bfd, output_buffer.
2068 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2069 do_with_relocs, ie. as a symbol for relocatable files.
2070 (ieee_vec): Add comments showing functions referenced by macros.
2071
20722001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2073
2074 * aout-tic30.c: Add missing prototypes. Fix formatting.
2075 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2076 * peXXigen.c: Add missining prototypes. Fix formatting.
2077 * aout-adobe.c: Add missining prototypes. Fix formatting.
2078
20792001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2080
2081 * elf32-v850.c: Add missing function prototypes.
2082 Fix some formatting.
2083
2084 * cpu-v850.c: Add missing function prototype.
2085 Fix some formatting.
2086
20872001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2088
2089 * elf-bfd.h (struct elf_backend_data): Add new fields
2090 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2091 (bfd_elf_sprintf_vma): Rename function prototype to
2092 '_bfd_elf_sprintf_vma'.
2093 (bfd_elf_fprintf_vma): Rename function prototype to
2094 '_bfd_elf_fprintf_vma'.
2095 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2096 directly, instead indirect via the elf_backend_data structure.
2097 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2098 instead indirect via the elf_backend_data structure.
2099 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2100 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2101 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2102 already defined.
2103 (elf_backend_fprintf_vma): Initialise if not already defined.
2104 (struct elf_backend_data): Initialise the
2105 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2106
21072001-08-10 Andreas Jaeger <aj@suse.de>
2108
2109 * elf64-sparc.c: Add missing prototypes.
2110 * elf32-cris.c: Likewise.
2111 * elf32-i370.c: Likewise.
2112 * elf64-hppa.c: Likewise.
2113 * elf64-s390.c: Likewise.
2114
21152001-08-10 Andreas Jaeger <aj@suse.de>
2116
2117 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2118 Add prototypes where needed.
2119
21202001-08-10 H.J. Lu <hjl@gnu.org>
2121
2122 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2123 (bfd_fprintf_vma): Likewise.
2124
21252001-08-10 H.J. Lu <hjl@gnu.org>
2126
2127 * bfd.c (bfd_sprintf_vma): Don't return void.
2128 (bfd_fprintf_vma): Likewise.
2129
21302001-08-10 Andreas Jaeger <aj@suse.de>
2131
2132 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2133 to build warnings.
2134 * configure: Regenerate.
2135
21362001-08-10 Alan Modra <amodra@bigpond.net.au>
2137
2138 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2139 warning if not BFD64. Add braces so emacs auto format works.
2140 (bfd_elf_fprintf_vma): Likewise.
2141
2142 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2143 of _xcoff_swap_ld*.
2144 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2145 param to agree with libxcoff.h.
2146 (xcoff_swap_ldhdr_out): Likewise.
2147 (xcoff_swap_ldsym_in): Likewise.
2148 (xcoff_swap_ldsym_out): Likewise.
2149 (xcoff_swap_ldrel_in): Likewise.
2150 (xcoff_swap_ldrel_out): Likewise.
2151 (xcoff_create_csect_from_smclas): Likewise.
2152 * coff64-rs6000.c: Add missing prototypes.
2153 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2154 with libxcoff.h.
2155 (xcoff64_swap_ldhdr_out): Likewise.
2156 (xcoff64_swap_ldsym_in): Likewise.
2157 (xcoff64_swap_ldsym_out): Likewise.
2158 (xcoff64_swap_ldrel_in): Likewise.
2159 (xcoff64_swap_ldrel_out): Likewise.
2160 (xcoff64_ppc_relocate_section): Make static.
2161 (xcoff64_slurp_armap): Likewise.
2162 (xcoff64_archive_p): Likewise.
2163 (xcoff64_openr_next_archived_file): Likewise.
2164 (xcoff64_sizeof_headers): Likewise.
2165 (xcoff64_is_lineno_count_overflow): Likewise.
2166 (xcoff64_is_reloc_count_overflow): Likewise.
2167 (xcoff64_loader_symbol_offset): Likewise.
2168 (xcoff64_loader_reloc_offset): Likewise.
2169 * elf64-gen.c: Add missing prototypes.
2170
21712001-08-09 H.J. Lu <hjl@gnu.org>
2172
2173 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2174 (bfd_elf_fprintf_vma): Likewise.
2175
21762001-08-09 H.J. Lu <hjl@gnu.org>
2177
2178 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2179 to ...
2180 * elf-bfd.h: Here.
2181 * bfd-in2.h: Regenerated.
2182
21832001-08-09 H.J. Lu <hjl@gnu.org>
2184
2185 * bfd-in.h (bfd_sprintf_vma): New prototype.
2186 (bfd_fprintf_vma): Likewise.
2187 (bfd_elf_sprintf_vma): Likewise.
2188 (bfd_elf_fprintf_vma): Likewise.
2189 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2190 * bfd-in2.h: Regenerated.
2191
2192 * bfd.c (bfd_sprintf_vma): New. Defined.
2193 (bfd_fprintf_vma): Likewise.
2194
2195 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2196 (bfd_elf_fprintf_vma): Likewise.
2197
21982001-08-09 Alan Modra <amodra@bigpond.net.au>
2199
2200 * coff-rs6000.c: Add missing prototypes.
2201 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2202 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2203 xcoff_loader_reloc_offset): Make static.
2204 * dwarf1.c: Add missing prototypes.
2205 * dwarf2.c: Add missing prototypes.
2206 (struct abbrev_info): Move definition.
2207 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2208 * elf.c: Add missing prototypes.
2209 * elf32-gen.c: Likewise.
2210 * elf32-i386.c: Likewise.
2211 * elf32-ppc.c: Likewise.
2212 (ppc_elf_sort_rela): Use PTR instead of "void *".
2213 * elflink.h: Add missing prototypes. Formatting fixes.
2214 * merge.c: Add missing prototypes.
2215 (last4_eq): Use PTR instead of "void *".
2216 (last_eq): Likewise.
2217 * syms.c: Add missing prototypes.
2218
22192001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2220
2221 * bfd.c: Fix formatting.
2222 * bfd-in2.h: Regenerate.
2223
22242001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2225
2226 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2227 true (this target uses REL relocations) and 'pcrel_offset' to
2228 false (the PC is implied, not stored in the offset).
2229
22302001-08-08 Alan Modra <amodra@bigpond.net.au>
2231
2232 1999-10-19 Linus Nordberg <linus@swox.se>
2233 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2234 * elfxx-target.h (elf_backend_want_got_sym): Define.
2235 (elfNN_bed): Add elf_backend_want_got_sym.
2236 * elflink.c (_bfd_elf_create_got_section): Define
2237 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2238
22392001-08-08 Alexandre Oliva <aoliva@redhat.com>
2240
2241 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2242 (find_rela_addend): New function.
2243 (parse_comp_unit): Call it to find the abbrev offset addend.
2244 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2245 members of dwarf2_debug as debugging information is read.
2246
22472001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2248
2249 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2250 targets as well as sh-pe.
2251
22522001-08-03 Ben Harris <bjh21@netbsd.org>
2253
2254 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2255 reloc from start of section when computing value for R_ARM_REL32
2256 reloc.
2257
22582001-08-03 Alan Modra <amodra@bigpond.net.au>
2259
2260 From H.J. Lu <hjl@gnu.org>
2261 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2262 keep relocs for undefined syms if there are no dynamic sections in
2263 executable.
2264 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2265
22662001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2267
2268 * cofflink.c (coff_link_check_ar_symbols): also search for
2269 __imp__symbol as well as _symbol.
2270 * linker.c (_bfd_generic_link_add_archive_symbols): also
2271 search for __imp__symbol as well as _symbol.
2272
22732001-08-01 Adam Nemet <anemet@lnxw.com>
2274
2275 * elf.c (elf_sort_sections): Return zero only as the last step.
2276
22772001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2278
2279 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2280 ARM_COFF_BUGFIX.
2281 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2282 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2283 ARM_COFF_BUGFIX.
2284
22852001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2286
2287 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2288 to match corresponding bfd_coff_backend data member.
2289
22902001-07-24 Alan Modra <amodra@bigpond.net.au>
2291
2292 * Makefile.am: Update dependencies with "make dep-am".
2293 * Makefile.in: Regenerate
2294
22952001-07-15 H.J. Lu <hjl@gnu.org>
2296
2297 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2298 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2299 * Makefile.in: Regenerate.
2300
23012001-07-11 H.J. Lu <hjl@gnu.org>
2302
2303 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2304 flags when creating the reloc section if the ALLOC flag in the
2305 source section is set.
2306
23072001-07-11 Steve Ellcey <sje@cup.hp.com>
2308
2309 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2310 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2311 * bfd-in2.h: Regenerate.
2312 * libbfd.h: Regenerate.
2313 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2314 new relocations.
2315 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2316 (elfNN_ia64_check_relocs): Likewise.
2317 (elfNN_ia64_install_value): Likewise.
2318 (elfNN_ia64_relocate_section): Likewise.
2319
23202001-07-11 Jakub Jelinek <jakub@redhat.com>
2321
2322 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2323 R_SPARC_UA64.
2324 (elf32_sparc_check_relocs): Likewise.
2325 Only create .rela section for alloced sections in shared libraries.
2326 (elf32_sparc_relocate_section): Likewise.
2327 Remove redundant check.
2328 Optimize unaligned reloc usage.
2329 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2330 check.
2331
23322001-07-11 H.J. Lu <hjl@gnu.org>
2333
2334 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2335 ALLOC|LOAD flags as the source section for debugging sections
2336 when creating the reloc section.
2337
23382001-07-05 Jim Wilson <wilson@redhat.com>
2339
2340 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2341 the section of the bigger symbol.
2342
2343 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2344
23452001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2346
2347 * peicode.h (coff_swap_scnhdr_in): For sections containing
2348 uninitialised data, only set their size to s_paddr if this does
2349 not reset their size to zero. MS's latest compilers will set
2350 s_paddr to zero.
2351
23522001-07-04 H.J. Lu <hjl@gnu.org>
2353
2354 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2355 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2356 bfd_mach_mips5000.
2357
23582001-07-03 Mark Elbrecht <snowball3@softhome.net>
2359
2360 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2361
2362 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2363 sections being discarded.
2364
23652001-06-30 Alan Modra <amodra@bigpond.net.au>
2366
2367 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2368 instead of _bfd_elfcore_section_from_phdr.
2369 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2370 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2371 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2372 (elfcore_grok_prstatus): Likewise.
2373 (elfcore_grok_lwpstatus): Likewise.
2374 (bfd_get_elf_phdr_upper_bound): Likewise.
2375 (elfcore_make_note_pseudosection): Formatting.
2376 (_bfd_elfcore_strndup): Formatting.
2377 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2378 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2379
23802001-06-29 Daniel Jacobowitz <drow@mvista.com>
2381
2382 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2383 and _bfd_elfcore_strndup.
2384 (struct elf_backend_data): Add elf_backend_grok_prstatus
2385 and elf_backend_grok_psinfo.
2386 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2387 (elfcore_grok_prstatus): Use it.
2388 (elfcore_make_note_pseudosection): Likewise.
2389 (elfcore_strndup): Rename to...
2390 (_bfd_elfcore_strndup): Here, and make global.
2391 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2392 (elfcore_grok_note): Call elf_backend_grok_prstatus
2393 and elf_backend_grok_psinfo if available.
2394 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2395 (_bfd_elf32_mips_grok_psinfo): New function.
2396 (elf_backend_grok_prstatus): Define.
2397 (elf_backend_grok_psinfo): Define.
2398 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2399 (elf_backend_grok_psinfo): Likewise.
2400 (elfNN_bed): Include elf_backend_grok_prstatus and
2401 elf_backend_grok_psinfo.
2402
24032001-06-29 H.J. Lu <hjl@gnu.org>
2404
2405 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2406 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2407 is NULL before filling PLT.
2408
24092001-06-29 Alan Modra <amodra@bigpond.net.au>
2410
2411 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2412
24132001-06-27 Alan Modra <amodra@bigpond.net.au>
2414
2415 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2416 here..
2417 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2418 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2419 after gc has run.
2420
2421 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2422 (IS_ABSOLUTE_RELOC): Define.
2423 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2424 (hppa_link_hash_newfunc): Always init it.
2425 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2426 create COPY relocs only when the reloc is in a read-only section.
2427 Instead, allocate space for a dynamic reloc to reference the
2428 library symbol directly. Keep track of space we allocate using
2429 relocs_entries.
2430 (hppa_discard_copies): Delete, and move code to..
2431 (allocate_plt_and_got): ..here. Rename to
2432 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2433 relocs for non-shared link.
2434 (elf32_hppa_size_dynamic_sections): Update calls to above.
2435 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2436 in lieu of COPY relocs.
2437
2438 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2439 here..
2440 (elf_i386_adjust_dynamic_symbol): ..nor here..
2441 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2442 after gc has run.
2443 (elf_i386_size_dynamic_sections): Fix a comment.
2444 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2445 involved in writing reloc out.
2446
24472001-06-25 Alan Modra <amodra@bigpond.net.au>
2448
2449 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2450 Ensure syms are dynamic if we might be emitting a reloc.
2451 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2452 for undefweak or undefined syms..
2453 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2454
2455 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2456 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2457 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2458 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2459
24602001-06-24 H.J. Lu <hjl@gnu.org>
2461
2462 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2463 strncasecmp/strcasecmp instead of strncmp/strcmp.
2464
24652001-06-23 H.J. Lu <hjl@gnu.org>
2466
2467 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2468 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2469 in the regular object file and treat the weak definition as
2470 the normal one.
2471
24722001-06-23 Alan Modra <amodra@bigpond.net.au>
2473
2474 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2475 unresolved_reloc test to exclude cases where we use "relocation"
2476 before setting it to point into the .got. Reinstate fudge for
2477 unresolved relocs in debugging sections.
2478
2479 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2480 complicated tests for unresolvable relocs with a simple direct
2481 scheme using "unresolved_reloc" var.
2482
2483 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2484 elf_i386_dyn_relocs. Update comment.
2485 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2486 dyn_relocs.
2487 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2488 others to aborts.
2489 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2490 abort.
2491 (elf_i386_size_dynamic_sections): Likewise.
2492 (elf_i386_finish_dynamic_symbol): Likewise.
2493 (elf_i386_finish_dynamic_sections): Likewise.
2494 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2495 handling code.
2496
2497 Avoid creating COPY relocs if possible.
2498 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2499 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2500 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2501 reloc is in a read-only section. Instead, allocate space for a
2502 dynamic reloc to reference the library symbol directly. Keep
2503 track of space we allocate using pcrel_relocs_copied.
2504 (discard_copies): Delete, and move code to ..
2505 (allocate_plt_and_got): ..here. Rename to
2506 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2507 relocs for non-shared link.
2508 (elf_i386_size_dynamic_sections): Update calls to above functions.
2509 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2510 more ugly logic to avoid "unresolvable relocation" error. Use
2511 htab shortcut in place of elf_hash_table macro.
2512 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2513 not always be created now.
2514
25152001-06-20 Bo Thorsen <bo@suse.co.uk>
2516
2517 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2518 shared libraries.
2519
25202001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2521
2522 * configure.host (mips64-*-linux): Reformat.
2523
25242001-06-21 Alan Modra <amodra@bigpond.net.au>
2525
2526 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2527 allocate local .got space. Use shortcuts from hash table for .got
2528 and .plt rather than comparing section names.
2529 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2530 adjusting index into local_got_refcounts to document what we are
2531 really doing.
2532 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2533 Tidy .got and .plt error checking.
2534
25352001-06-20 Catherine Moore <clm@redhat.com>
2536
2537 * elf-bfd.h (struct elf_backend_data):
2538 elf_backend_emit_relocs: New field: Function for emitting
2539 relocs.
2540 elf_backend_count_relocs: New field: Function for determining
2541 the number of relocs to be emitted.
2542 * elfxx-target.h: Provide default (NULL) values for
2543 elf_backend_emit_relocs and elf_backend_count_relocs.
2544 * elflink.h (elf_link_size_reloc_section): Make the hash table
2545 big enough to hold the relocs counted by either reloc_count or
2546 o->reloc_count.
2547 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2548 should be emitted, either because of a command line option
2549 stored in the info structure or because the target provides a
2550 special reloc emitting function.
2551 If the target provides a reloc counting function use it,
2552 unless performing a relocatable link or emitting all relocs.
2553 Also set the SEC_RELOC flag on any output section which will
2554 contain relocs.
2555 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2556 should be emitted, either because of a command line option
2557 stored in the info structure or because the target provides a
2558 special reloc emitting function.
2559 If the target provides a reloc emitting function, use it,
2560 unless performing a relocatable link or emitting all relocs.
2561
25622001-06-20 H.J. Lu <hjl@gnu.org>
2563
2564 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2565 allocate local .got space.
2566
25672001-06-19 Andreas Jaeger <aj@suse.de>
2568
2569 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2570 dynamic symbols.
2571
25722001-06-18 Hans-Peter Nilsson <hp@axis.com>
2573
2574 * elflink.h (struct elf_assign_sym_version_info): Remove member
2575 export_dynamic. All users changed to use info member.
2576 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2577 export_dynamic, instead use member in parameter info.
2578 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2579 bfd_elf64_size_dynamic_sections): Update prototype.
2580 * bfd-in2.h: Regenerate.
2581
25822001-06-18 H.J. Lu <hjl@gnu.org>
2583
2584 * elflink.h (elf_info_failed): Add a new field, verdefs.
2585 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2586 elf_export_symbol.
2587 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2588 should be exported.
2589
25902001-06-17 H.J. Lu <hjl@gnu.org>
2591
2592 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2593 readonly_reloc, to record if a relocation in the .rel.dyn
2594 section is against a read-only section.
2595 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2596 field to false.
2597 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2598 in the .rel.dyn section against a read-only section by setting
2599 DF_TEXTREL or readonly_reloc.
2600 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2601 it is true.
2602 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2603 there is a relocation in the .rel.dyn section against a
2604 read-only section.
2605 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2606 DF_TEXTREL is set.
2607
26082001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2609
2610 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2611 function. Move flagword result into parameter list. Remove
2612 comment about setting bfd_error_handler to intercept failure
2613 results.
2614 * coffgen.c (make_a_section_from_file): Examine result of
2615 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2616 caller.
2617 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2618 function. Move flagword result into parameter list.
2619 * libcoff.h: Regenerate.
2620 * libecoff.h: Regenerate.
2621
26222001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2623
2624 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2625 section is going to follow it.
2626
26272001-06-12 Catherine Moore <clm@redhat.com>
2628
2629 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2630 with the file_align entry from elf_backend_data.
2631 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2632 (elf_gc_record_vtentry): Likewise.
2633
26342001-06-10 Alan Modra <amodra@bigpond.net.au>
2635
2636 * elflink.h: Whitespace changes.
2637 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2638 rather than "unsigned char".
2639 (elf_link_output_relocs): Likewise.
2640 (elf_link_input_bfd): Likewise.
2641 (elf_reloc_link_order): LIkewise.
2642 * elf.c: s/CONST/const/. Whitespace changes.
2643 * elf32-mips.c: Formatting fix.
2644
2645 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2646 * Makefile.in: Regenerate.
2647 * po/Make-in: Remove trailing tab.
2648
26492001-06-09 Philip Blundell <philb@gnu.org>
2650
2651 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2652 change.
2653 (elf32_arm_plt_entry): Likewise.
2654
26552001-06-08 H.J. Lu <hjl@gnu.org>
2656
2657 * elf.c (swap_out_syms): Keep names for global section symbols.
2658
26592001-06-07 H.J. Lu <hjl@gnu.org>
2660
2661 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2662 MIPS-based machines need it.
2663
26642001-06-07 H.J. Lu <hjl@gnu.org>
2665
2666 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2667 for SGI only.
2668
2669 * config.bfd: Remove ecoff from Linux/mips.
2670
26712001-06-07 Andreas Jaeger <aj@suse.de>
2672
2673 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2674 assertion.
2675 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2676 alignment of 8 for .rela sections; handle further relocations.
2677
26782001-06-06 Christian Groessler <cpg@aladdin.de>
2679
2680 * coff-z8k.c: Fix formatting.
2681 Fix howtos: howto->size was always 1.
2682
26832001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2684
2685 * configure.host (mips64*-*-linux*): Define.
2686
26872001-06-05 Alan Modra <amodra@bigpond.net.au>
2688
2689 * elf32-i386.c (elf_i386_discard_copies): Rename to
2690 discard_copies, and use elf_link_hash_entry arg rather than
2691 elf_i386_link_hash_entry.
2692 (elf_i386_link_hash_traverse): Delete.
2693 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2694 Tidy sizing of dynamic sections.
2695 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2696 possible .plt entries.
2697 (elf_i386_gc_sweep_hook): Likewise.
2698 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2699 everything with plt.refcount <= 0.
2700
2701 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2702 .relgot space here.
2703 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2704 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2705 .rel.plt here..
2706 (allocate_plt_and_got): ..instead do it all here. New function.
2707 (elf_i386_size_dynamic_sections): Allocate local .got space and
2708 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2709 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2710 rather than gc variety).
2711 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2712 (elf_i386_relocate_section): Use it here and correct handling of
2713 R_386_GOT32. Provide section and offset for "unresolvable
2714 relocation" error message.
2715 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2716
2717 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2718 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2719 (elf_i386_link_hash_table_create): Init them.
2720 (create_got_section): New function.
2721 (elf_i386_create_dynamic_sections): New function.
2722 (elf_backend_create_dynamic_sections): Set to above.
2723 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2724 calling bfd_get_section_by_name.
2725 (elf_i386_gc_sweep_hook): Likewise.
2726 (elf_i386_adjust_dynamic_symbol): Likewise.
2727 (elf_i386_size_dynamic_sections): Likewise.
2728 (elf_i386_relocate_section): Likewise.
2729 (elf_i386_finish_dynamic_sections): Likewise.
2730
2731 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2732
27332001-06-02 H.J. Lu <hjl@gnu.org>
2734
2735 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2736 and ELFOSABI_HPUX.
2737 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2738
27392001-06-02 H.J. Lu <hjl@gnu.org>
2740
2741 * aout-cris.c (MACHTYPE_OK): New. Defined.
2742
27432001-06-02 Hans-Peter Nilsson <hp@axis.com>
2744
2745 * section.c (_bfd_strip_section_from_output): Handle NULL
2746 output_section.
2747
27482001-06-02 H.J. Lu <hjl@gnu.org>
2749
2750 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2751 rs6000coff64_vec only if BFD64 is defined.
2752 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2753
27542001-06-02 H.J. Lu <hjl@gnu.org>
2755
2756 * coff-ia64.c (ia64coff_object_p): Rewrite with
2757 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2758
27592001-06-01 Andreas Jaeger <aj@suse.de>
2760
2761 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2762 relocation, small reformatting.
2763
27642001-05-29 Andreas Jaeger <aj@suse.de>
2765
2766 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2767 (elf64_x86_64_relocate_section): Likewise.
2768
27692001-05-30 Alan Modra <amodra@one.net.au>
2770
2771 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2772 millicode. Don't allocate .got and .rela.got space here..
2773 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2774 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2775 .rela.plt here..
2776 (hppa_handle_PIC_calls): ..nor here..
2777 (allocate_plt_and_got): ..instead do it all here. New function.
2778 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2779 call allocate_plt_and_got. No need to zap .got if not dynamic.
2780 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2781 gc_common_final_link.
2782 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2783 (elf32_hppa_relocate_section): Use it here.
2784 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2785 dynamic_sections_created.
2786 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2787
27882001-05-28 Andreas Jaeger <aj@suse.de>
2789
2790 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2791 generic version since we want a hashsize of 4.
2792 (elf_backend_size_info): Likewise.
2793
27942001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2795
2796 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2797 a zeroing loop.
2798 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2799 (elf_link_input_bfd): Likewise.
2800 (elf_reloc_link_order): Likewise.
2801 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2802 relocations correctly.
2803
28042001-05-28 Nicolas Pitre <nico@cam.org>
2805
2806 * elf32-arm.h: fix PLT generation for big endian ARM
2807
28082001-05-28 Alan Modra <amodra@one.net.au>
2809
2810 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2811 for symbols forced local that need plabels.
2812 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2813 .plt.rela for local syms if non-shared.
2814 (hppa_build_one_stub): Mask lsb of plt.offset.
2815 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2816 (clobber_millicode_symbols): Correct comment.
2817 (elf32_hppa_relocate_section): Likewise.
2818 (elf32_hppa_finish_dynamic_symbol): Likewise.
2819
28202001-05-28 Jeff Sturm <jsturm@one-point.com>
2821
2822 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2823 * bfd-in2.h: Regenerate.
2824 * libbfd.h: Regenerate.
2825 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2826 and BFD_RELOC_SPARC_UA64 mapping
2827 * elf64-sparc.c: Likewise.
2828
28292001-05-25 H.J. Lu <hjl@gnu.org>
2830
2831 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2832 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2833 (coff-rs6000.lo): Remove the old dependency.
2834 * Makefile.in: Rebuild.
2835
2836 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2837 coff-rs6000.lo.
2838
28392001-05-25 H.J. Lu <hjl@gnu.org>
2840
2841 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2842 rs6000coff_core_file_matches_executable_p,
2843 rs6000coff_core_file_failing_command and
2844 rs6000coff_core_file_failing_signal only if AIX_CORE is
2845 defined.
2846 (pmac_xcoff_vec): Likewise.
2847 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2848
28492001-05-25 Timothy Wall <twall@redhat.com>
2850
2851 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2852 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2853
28542001-05-25 H.J. Lu <hjl@gnu.org>
2855
2856 * bfd-in2.h: Regenerated.
2857 * libcoff.h: Likewise.
2858
28592001-05-25 Alan Modra <amodra@one.net.au>
2860
2861 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2862 undefined millicode syms in shared libs.
2863 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2864 (elf32_hppa_check_relocs): Likewise.
2865 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2866 (elf32_hppa_size_dynamic_sections): Likewise.
2867 (elf32_hppa_relocate_section): Likewise.
2868 (elf32_hppa_finish_dynamic_symbol): Likewise.
2869 (elf32_hppa_finish_dynamic_sections): Likewise.
2870
28712001-05-24 Tom Rix <trix@redhat.com>
2872
2873 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2874 xcoff-target.h not used to define rs6000 or ppc bfd.
2875 * Makefile.in same
2876
2877 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2878 to 64 bit.
2879
2880 * coff-rs6000.c : Many changes for 64 bit support. Move common
2881 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2882 and pmac_xcoff_vec
2883
2884 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2885 linker now supported. Explictly define the rs6000coff64_vec.
2886
2887 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2888 (coff_print_aux) same
2889 (coff_write_object_contents) same
2890 (coff_slurp_line_table) same
2891
2892 * coffgen.c : (coff_fix_symbol_name) formatting
2893 (coff_mangle_symbols) xcoff 64 bit support
2894 (coff_write_symbol) same
2895 (coff_write_alien_symbol) same
2896 (coff_write_native_symbol) same
2897 (coff_write_symbols) same
2898 (coff_get_symbol_info) same
2899 (bfd_coff_get_syment) same
2900 (coff_print_symbol) same
2901
2902 * config.bfd : add powerpc64-*-aix* target
2903
2904 * libcoff-in.h : formatting
2905
2906 * libcoff.h : move xcoff extern declarations to libxcoff.h
2907
2908 * libxcoff.h : New file
2909
2910 * xcofflink.c : Many changes for xcoff64 support. Move common
2911 structures to include/coff/xcoff.h. Move specific structure to
2912 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2913 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2914
2915 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2916 aix4.2+ -binitfini.
2917
2918 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2919
29202001-05-23 Alexandre Oliva <aoliva@redhat.com>
2921
2922 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2923 s/ENTIRES/ENTRIES/.
2924
29252001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2926
2927 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2928 * libbfd.h: Regenerate.
2929 * bfd-in2.h: Regenerate.
2930
2931 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2932 * archures.c (bfd_mach_mips12000): Define.
2933 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2934 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2935 support.
2936 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2937 * bfd-in2.h: Regenerate.
2938 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2939
29402001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2941
2942 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2943 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2944 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2945 that is used by GCC.
2946
29472001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2948
2949 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2950 of entries in a structured section.
2951 * elf.c: Use new macro.
2952 * elf32-i386.c: Use new macro.
2953 * elf32-mips.c: Use new macro.
2954 * elf64-alpha.c: Use new macro.
2955 * elf64-sparc.c: Use new macro.
2956 * elfcode.h: Use new macro.
2957 * elflink.h: Use new macro.
2958
29592001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2960
2961 * bfdint.texi: Replace -oformat with --oformat.
2962
29632001-05-21 Andreas Jaeger <aj@suse.de>
2964
2965 * dwarf2.c (decode_line_info): Fix error message.
2966 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2967 adjust error message.
2968
29692001-05-18 H.J. Lu <hjl@gnu.org>
2970
2971 * elflink.h (elf_link_add_object_symbols): Revert the last
2972 change.
2973
29742001-05-17 Alan Modra <amodra@one.net.au>
2975
2976 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2977 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2978 (hppa_build_one_stub): Add an assert to check plt.offset.
2979
29802001-05-17 H.J. Lu <hjl@gnu.org>
2981
2982 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2983 version definition to basename of the output filename.
2984
29852001-05-17 H.J. Lu <hjl@gnu.org>
2986
2987 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2988 basename of the bfd filename.
2989
29902001-05-16 Alan Modra <amodra@one.net.au>
2991
2992 * section.c (asection): Add linker_has_input field.
2993 (STD_SECTION): Adjust initialization to suit.
2994 * ecoff.c (bfd_debug_section): Likewise.
2995 * bfd-in2.h: Regenerate.
2996
29972001-05-15 Alexandre Oliva <aoliva@redhat.com>
2998
2999 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3000 negative 32-bit operands to 16 operands when the operand is
3001 going to be zero-extended by the modified opcode.
3002
30032001-05-12 Peter Targett <peter.targett@arccores.com>
3004
3005 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3006 name for 'arc5' core versions.
3007 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3008
3009 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3010 architecture.
3011 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3012
30132001-05-11 Jakub Jelinek <jakub@redhat.com>
3014
3015 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3016 sections as well.
3017 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3018 to .gnu.linkonce.t.FOO text section.
3019
30202001-05-11 Jakub Jelinek <jakub@redhat.com>
3021
3022 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3023 fields, change sec into secinfo.
3024 (struct sec_merge_info): Add chain, remove last fields.
3025 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3026 (sec_merge_hash_lookup): If lookup could not use a string only
3027 because it has bad alignment, mark the old string for deletion.
3028 (sec_merge_add): Add secinfo argument. Don't compute entry's
3029 position, instead record the section.
3030 (sec_merge_emit): Update for the sec into secinfo change in
3031 struct sec_merge_hash_entry.
3032 (_bfd_merge_section): Only record the section for merging, defer
3033 putting strings into the hash table.
3034 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3035 _bfd_merge_sections): New functions.
3036 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3037 changes.
3038 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3039 (_bfd_nolink_bfd_merge_sections): Define.
3040 * libbfd.h: Likewise.
3041 (bfd_generic_merge_sections): Add prototype.
3042 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3043 (struct bfd_target): Likewise.
3044 * bfd.c (bfd_merge_sections): Define.
3045 * bfd-in2.h: Rebuilt.
3046 * elf.c (_bfd_elf_merge_sections): New function.
3047 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3048 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3049 * reloc.c (bfd_generic_merge_sections): New function.
3050 * vms.c (vms_bfd_merge_sections): New function.
3051 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3052 * aout-target.h (MY_bfd_merge_sections): Define.
3053 * aout-tic30.c (MY_bfd_merge_sections): Define.
3054 * binary.c (binary_bfd_merge_sections): Define.
3055 * bout.c (b_out_bfd_merge_sections): Define.
3056 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3057 * coffcode.c (coff_bfd_merge_sections): Define.
3058 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3059 * i386msdos.c (msdos_bfd_merge_sections): Define.
3060 * i386os9k.c (os9k_bfd_merge_sections): Define.
3061 * ieee.c (ieee_bfd_merge_sections): Define.
3062 * ihex.c (ihex_bfd_merge_sections): Define.
3063 * nlm-target.h (nlm_bfd_merge_sections): Define.
3064 * oasys.c (oasys_bfd_merge_sections): Define.
3065 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3066 * som.c (som_bfd_merge_sections): Define.
3067 * srec.c (srec_bfd_merge_sections): Define.
3068 * tekhex.c (tekhex_bfd_merge_sections): Define.
3069 * versados.c (versados_bfd_merge_sections): Define.
3070 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3071
30722001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3073
3074 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3075 to be unsigned long, in order to match its use.
3076
30772001-05-10 H.J. Lu <hjl@gnu.org>
3078
3079 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3080 indirect symbols.
3081
30822001-05-09 H.J. Lu <hjl@gnu.org>
3083
3084 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3085 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3086 Remove the unused veriable `dynver'.
3087
30882001-05-08 Ian Lance Taylor <ian@zembu.com>
3089
3090 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3091 NULL or is not COFF.
3092 (coff_i386_rtype_to_howto): Don't dump core if output section
3093 owner is not COFF.
3094
30952001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3096
3097 * ecoff.c (bfd_debug_section): Fix initialization.
3098 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3099 is always a positive integer. Cast away sign mismatch.
3100 * elf32-mips.c: Fix misleading comment and typo.
3101 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3102 correct data type.
3103 * elflink.c: Fix typo.
3104 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3105 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3106
31072001-05-04 Richard Henderson <rth@redhat.com>
3108
3109 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3110
31112001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3112
3113 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3114 EF_ARM_HASENTRY if the start address is set.
3115
31162001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3117
3118 * targets.c (_bfd_target_vector_entries): Compute value based on
3119 the size of the _bfd_target_vector and not bfd_target_vector.
3120
31212001-05-03 H.J. Lu <hjl@gnu.org>
3122
3123 * elfcode.h: Include "libiberty.h".
3124
3125 * elflink.h (elf_link_add_object_symbols): Set
3126 elf_dt_name (abfd) to basename of the bfd filename.
3127 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3128 of the bfd filename.
3129
31302001-05-03 Andreas Jaeger <aj@suse.de>
3131
3132 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3133 (elf_generic_info_to_howto_rel): Likewise.
3134 * coff-alpha.c (reloc_nil): Likewise.
3135 (alpha_ecoff_bad_format_hook): Likewise.
3136 (alpha_adjust_reloc_out): Likewise.
3137 (alpha_bfd_reloc_type_lookup): Likewise.
3138 (alpha_convert_external_reloc): Likewise.
3139 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3140 (elf64_alpha_reloc_bad): Likewise.
3141 (elf64_alpha_reloc_gpdisp): Likewise.
3142 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3143 (elf64_alpha_info_to_howto): Likewise.
3144 (elf64_alpha_add_symbol_hook): Likewise.
3145 (elf64_alpha_create_got_section): Likewise.
3146 (elf64_alpha_is_local_label_name): Likewise.
3147 (elf64_alpha_merge_ind_symbols): Likewise.
3148 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3149 (mips_elf64_get_reloc_upper_bound): Likewise.
3150 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3151 (nlm_alpha_get_public_offset): Likewise.
3152
31532001-05-02 Johan Rydberg <jrydberg@opencores.org>
3154
3155 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3156 about overflow in R_OPENRISC_LO_16_IN_INSN and
3157 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3158
31592001-04-30 H.J. Lu <hjl@gnu.org>
3160
3161 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3162 only for ELF_LINK_FORCED_LOCAL.
3163 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3164 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3165 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3166
3167 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3168 if the symbol has hidden or internal visibility.
3169
31702001-04-30 Alan Modra <amodra@one.net.au>
3171
3172 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3173 calls to undefined weak symbols.
3174
31752001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3176
3177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3178 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3179
31802001-04-27 Andreas Jaeger <aj@suse.de>
3181
3182 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3183 out handled entries.
3184 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3185 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3186 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3187 GOT32.
3188
31892001-04-27 Sean McNeil <sean@mcneil.com>
3190
3191 * config.bfd: Add arm-vxworks target.
3192 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3193 addend (fro VXworks targets).
3194
31952001-04-26 H.J. Lu <hjl@gnu.org>
3196
3197 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3198 valid.
3199
32002001-04-25 Frank Ch. Eigler <fche@redhat.com>
3201
3202 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3203 * bfd-in2.h: Regenerated.
3204
32052001-04-24 Jakub Jelinek <jakub@redhat.com>
3206
3207 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3208 (struct sec_merge_hash): Remove alignment_power.
3209 (sec_merge_hash_newfunc): Clear alignment.
3210 (sec_merge_hash_lookup): Pass alignment as argument.
3211 Use hashp->root.next, not hashp->next to walk the hash chain.
3212 If a string already in the hashtable does not have required
3213 alignment, create a new hashtable entry.
3214 (sec_merge_init): Remove alignment_power argument.
3215 (sec_merge_add): Add alignment argument.
3216 (sec_merge_emit): Alignment is now a per-entity thing, not per
3217 section.
3218 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3219 for proper alignment.
3220 Pass alignment information to sec_merge_add.
3221
32222001-04-24 Christian Groessler <cpg@aladdin.de>
3223
3224 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3225 and R_REL16 reloc types; accept odd values for R_REL16 type
3226
32272001-04-24 Johan Rydberg <jrydberg@opencores.org>
3228
3229 * cpu-openrisc.c: New file.
3230 * elf32-openrisc.c: Likewise.
3231
3232 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3233 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3234 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3235 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3236 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3237 * Makefile.in: Regenerated.
3238 * config.bfd: (openrisc-*-elf): New target.
3239 * configure.in (bfd_elf32_openrisc_vec): New vector.
3240 * configure: Regenerated.
3241 * libbfd.h: Regenerated.
3242 * bfd-in2.h: Regenerated.
3243 * reloc.c: Add OpenRISC relocations.
3244 * targets.c (bfd_elf32_openrisc_vec): Declare.
3245 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3246 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3247 (bfd_openrisc_arch): Declare.
3248 (bfd_archures_list): Add bfd_openrisc_arch.
3249 * elf.c (prep_headers): Add bfd_arch_openrisc.
3250
32512001-04-23 Bo Thorsen <bo@suse.de>
3252
3253 * elf64-x86-64.c: Add c++ vtable hack.
3254 Small whitespace and comment changes.
3255
32562001-04-19 Andreas Jaeger <aj@suse.de>
3257
3258 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3259 (elf64_x86_64_plt_entry): Likewise.
3260 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3261 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3262
32632001-04-17 Hans-Peter Nilsson <hp@axis.com>
3264
3265 * elf32-cris.c: Tweak comments related to dynamic linking.
3266 (cris_elf_relocate_section): When not creating shared object, fill
3267 in the .got table for any symbol not in the dynamic symbol table.
3268 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3269 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3270 table.
3271 (cris_elf_check_relocs): Use variable r_type in all places rather
3272 than the original expression. Add default case in switch for
3273 reloc types.
3274 (elf_cris_size_dynamic_sections): Iterate over
3275 elf_cris_discard_excess_program_dynamics when not creating shared
3276 library.
3277 (elf_cris_discard_excess_dso_dynamics): Renamed from
3278 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3279 (elf_cris_discard_excess_program_dynamics): New.
3280
32812001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3282
3283 * coffcode.h (coff_write_object_contents): Use
3284 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3285
32862001-04-14 H.J. Lu <hjl@gnu.org>
3287
3288 * bfd-in2.h: Regenerate.
3289
32902001-04-14 Jakub Jelinek <jakub@redhat.com>
3291
3292 * section.c (STD_SECTION): Add entsize.
3293
32942001-04-13 H.J. Lu <hjl@gnu.org>
3295
3296 * section.c (SEC_MERGE): Define new flag for merging.
3297 (SEC_STRINGS): Likewise.
3298 (entsize): New field.
3299
33002001-04-13 Roger Sayle <roger@metaphorics.com>
3301
3302 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3303 flag on pe-i386 targets.
3304
33052001-04-13 Jakub Jelinek <jakub@redhat.com>
3306
3307 * libbfd-in.h (_bfd_merge_section): New.
3308 (_bfd_write_merged_section): New.
3309 (_bfd_merged_section_offset): New.
3310 * libbfd.h: Rebuilt.
3311 * linker.c (_bfd_generic_link_output_symbols): Handle
3312 discard_sec_merge.
3313 * aoutx.h (aout_link_write_symbols): Likewise.
3314 * pdp11.c (aout_link_write_symbols): Likewise.
3315 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3316 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3317 sections.
3318 (elf_link_sec_merge_syms): New.
3319 (elf_link_input_bfd): Call _bfd_merged_section_offset
3320 and _bfd_write_merged_section.
3321 Handle discard_sec_merge.
3322 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3323 field.
3324 (struct bfd_elf_section_data): Likewise.
3325 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3326 SEC_STRINGS section flags and entsize from their ELF counterparts.
3327 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3328 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3329 from their BFD counterparts.
3330 * merge.c: New file.
3331 * Makefile.am: Add strtab.lo.
3332 * Makefile.in: Rebuilt.
3333
33342001-04-09 Hans-Peter Nilsson <hp@axis.com>
3335
3336 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3337 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3338
33392001-04-05 Steven J. Hill <sjhill@cotw.com>
3340
3341 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3342 endian MIPS ELF target.
3343 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3344 MIPS ELF target.
3345
3346 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3347 64bit big endian MIPS ELF target.
3348 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3349 endian MIPS ELF target.
3350 * configure: Regenerated.
3351
3352 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3353 little endian targets.
3354 (mips_elf_sym_is_global): Handle traditional targets.
3355
3356 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3357 64bit big endian MIPS ELF target.
3358 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3359 endian MIPS ELF target.
3360
3361 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3362 and bfd_elf64_tradlittlemips_vec.
3363
33642001-04-05 David Mosberger <davidm@hpl.hp.com>
3365
3366 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3367 ordinary "progbits" section.
3368
33692001-04-04 Alan Modra <alan@linuxcare.com.au>
3370
3371 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3372 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3373
33742001-04-03 David Mosberger <davidm@hpl.hp.com>
3375
3376 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3377
33782001-03-30 H.J. Lu <hjl@gnu.org>
3379
3380 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3381 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3382
33832001-03-26 H.J. Lu <hjl@gnu.org>
3384
3385 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3386 if there are any relocations for generic ELF.
3387 (bfd_elf32_bfd_link_add_symbols): Defined to
3388 elf32_generic_link_add_symbols.
3389 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3390 if there are any relocations for generic ELF.
3391 (bfd_elf64_bfd_link_add_symbols): Defined to
3392 elf64_generic_link_add_symbols.
3393
33942001-03-23 Nick Clifton <nickc@redhat.com>
3395
3396 * Makefile.am (BUILD_CFILES): New variable: List of C source
3397 files created in build directory.
3398 (BUILD_HFILES): New variable: List of header files created in
3399 build directory.
3400 (POTFILES): Delete.
3401 (po/POTFILES.in): Replace rule with empty entry.
3402 (po/SRC-POTFILES.in): New rule: Create a list of source files
3403 in the source directory.
3404 (po/BLD-POTFILES.in): New rule: Create a list of source files
3405 in the build directory.
3406 (MOSTLYCLEAN): Do not delete source files created in build
3407 directory.
3408 * Makefile.in: Regenerate.
3409 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3410 into po/Makefile.
3411 * configure: Regenerate.
3412
3413 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3414 and BLD_POTFILES.
3415 Add .. to the search path when building bfd.pot.
3416 Delete POTFILES when performing distclean.
3417 Add comment describing why distclean is broken in maintainer mode.
3418 * po/POTFILES.in: Delete.
3419 * po/SRC-POTFILES.in: New file.
3420 * po/BLD-POTFILES.in: New file.
3421 * po/bfd.pot: Regenerate.
3422
34232001-03-22 Hans-Peter Nilsson <hp@axis.com>
3424
3425 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3426 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3427 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3428 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3429 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3430 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3431 functions.
3432 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3433 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3434 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3435 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3436 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3437 New HOWTO members for new relocs.
3438 (cris_reloc_map): Map new relocs.
3439 (ELF_DYNAMIC_INTERPRETER): Define.
3440 (PLT_ENTRY_SIZE): Define.
3441 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3442 elf_cris_pic_plt_entry): New, PLT templates.
3443 (struct elf_cris_pcrel_relocs_copied, struct
3444 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3445 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3446 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3447 positive values. Adjust PCREL relocs to be relative to location
3448 after relocation.
3449 (cris_elf_relocate_section): Handle relocations to dynamic
3450 objects. Handle new relocations. Call error handler when seeing
3451 non-PIC relocation for read-only sections while generating shared
3452 object.
3453 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3454 entries.
3455 (bfd_elf32_bfd_link_hash_table_create,
3456 elf_backend_adjust_dynamic_symbol,
3457 elf_backend_size_dynamic_sections,
3458 elf_backend_finish_dynamic_symbol,
3459 elf_backend_finish_dynamic_sections,
3460 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3461 elf_backend_hide_symbol, elf_backend_want_got_plt,
3462 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3463 elf_backend_got_header_size, elf_backend_plt_header_size):
3464 Define.
3465
3466 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3467 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3468 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3469 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3470 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3471 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3472 * bfd-in2.h, libbfd.h: Regenerate.
3473
34742001-03-21 Diego Novillo <dnovillo@redhat.com>
3475
3476 (_bfd_mips_elf_relocate_section): Give a better error message when
3477 a relocation is not recognized.
3478
34792001-03-21 Alan Modra <alan@linuxcare.com.au>
3480
3481 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3482 non-NULL before attempting to dereference.
3483
34842001-03-20 H.J. Lu <hjl@gnu.org>
3485
3486 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3487 * configure: Rebuild.
3488
34892001-03-20 Andreas Schwab <schwab@suse.de>
3490
3491 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3492 relocation value when resolving a reference from a debugging
3493 section.
3494
34952001-03-16 Scott Thomason <SThomaso@hii.com>
3496
3497 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3498 (xcoff64_swap_sym_out): Fix syntax errors.
3499
35002001-03-16 Richard Sandiford <rsandifo@redhat.com>
3501
3502 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3503
35042001-03-15 Alan Modra <alan@linuxcare.com.au>
3505
3506 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3507 (hppa_link_hash_newfunc): Init it.
3508 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3509 section appears to be non-PIC.
3510 (final_link_relocate): Likewise.
3511 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3512 possible candidate function, and set pic_call for those that will
3513 only have a .plt entry for the PIC call stub.
3514 (hppa_handle_PIC_calls): Set maybe_pic_call.
3515
35162001-03-12 DJ Delorie <dj@redhat.com>
3517
3518 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3519 R_SH_DIR8WP* relocs if they're against external symbols, else
3520 they're just for relaxing. Validate the reloc values.
3521
35222001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3523
3524 * binary.c (bfd_external_binary_architecture): Declare.
3525 (binary_object_p): If bfd_external_binary_architecture is defined,
3526 set the architecture to this string.
3527
35282001-03-11 Philip Blundell <philb@gnu.org>
3529
3530 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3531 entries that could serve as a definition for a weak symbol.
3532
35332001-03-08 Nick Clifton <nickc@redhat.com>
3534
3535 * Most files: Update copyright notices using Perl script created
3536 by Kevin Buettner <kevinb@redhat.com>.
3537
35382001-03-07 Nick Clifton <nickc@redhat.com>
3539
3540 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3541 prior patch on ! defined OLD_ARM_ABI.
3542
35432001-03-07 Andreas Jaeger <aj@suse.de>
3544
3545 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3546 some relocation values.
3547
35482001-03-06 Nick Clifton <nickc@redhat.com>
3549
3550 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3551 of offset in BLX(1) instruction.
3552 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3553 offset in BLX(1) instruction.
3554 Fix formatting.
3555
35562001-03-06 Nick Clifton <nickc@redhat.com>
3557
3558 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3559 BFD_RELOC_THUMB_PCREL_BLX.
3560
35612001-03-06 Igor Shevlyakov <igor@windriver.com>
3562
3563 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3564 * bfd-in2.h: Regenerate.
3565 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3566 * ieee.c (ieee_write_processor): Set proper id for
3567 Coldfire CPUs.
3568
35692001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3570
3571 * configure.in: Add s390 target.
3572 * configure: Regenerate.
3573
35742001-02-28 Andreas Jaeger <aj@suse.de>
3575
3576 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3577 to addend.
3578
35792001-02-28 Philip Blundell <pb@futuretv.com>
3580
3581 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3582 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3583
35842001-02-27 H.J. Lu <hjl@gnu.org>
3585
3586 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3587 abfd->tdata.aout_data == NULL.
3588
35892001-02-27 Alan Modra <alan@linuxcare.com.au>
3590
3591 * elf32-hppa.c: Correct field selector in stub comments.
3592 (clobber_millicode_symbols): Formatting fix.
3593
3594 * configure.in: Bump version to 2.11.90.
3595 * configure: Regenerate.
3596 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3597 (CFILES): $SOURCE_CFILES + generated C files.
3598 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3599 Run "make dep-am"
3600 * Makefile.in: Regenerate.
3601 * doc/Makefile.in: This too.
3602
36032001-02-26 Timothy Wall <twall@cygnus.com>
3604
3605 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3606 comments.
3607
36082001-02-26 Nick Clifton <nickc@redhat.com>
3609
3610 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3611 up, replacing multiple if statements with a switch.
3612 (handle_COMDAT): New function.
3613
36142001-02-26 H.J. Lu <hjl@gnu.org>
3615
3616 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3617 a warning for section flags we do not handle instead of
3618 aborting.
3619
36202001-02-26 Andreas Jaeger <aj@suse.de>
3621
3622 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3623
36242001-02-22 Timothy Wall <twall@cygnus.com>
3625
3626 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3627 * configure.in: Add objects for elf64_ia64_aix vectors.
3628 * configure: Regenerated.
3629 * configure.host: Recognize ia64-*-aix*.
3630 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3631 for AIX. AIX5 requires most relocations to be dynamic (*all*
3632 binaries are somewhat similar to shared libraries).
3633 * targets.c: Add elf64_ia64_aix vectors.
3634
36352001-02-21 David Mosberger <davidm@hpl.hp.com>
3636
3637 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3638 C8 said "1" instead of "8". Clarify error string for IMM22:
3639 "signed integer" instead of just "integer".
3640
36412001-02-20 Andreas Jaeger <aj@suse.de>
3642
3643 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3644 PLT entries that could serve as a definition for a weak symbol.
3645
36462001-02-19 Jakub Jelinek <jakub@redhat.com>
3647
3648 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3649 entries that could serve as a definition for a weak symbol.
3650 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3651
36522001-02-18 David O'Brien <obrien@FreeBSD>
3653
3654 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3655 FreeBSD/i386-CURRENT differently until I can figure out the needed
3656 corefile changes.
3657 * configure: Regenerate.
3658 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3659 FreeBSD/PowerPC, and FreeBSD/sparc64.
3660
36612001-02-18 lars brinkhoff <lars@nocrew.org>
3662
3663 * Makefile.am: Add PDP-11 a.out target.
3664 * config.bfd: Likewise.
3665 * configure.in: Likewise.
3666 * targets.c: Likewise.
3667 * archures.c: Likewise.
3668 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3669 * libbfd.h: Add PDP-11 relocations.
3670 * reloc.c: Likewise.
3671 * cpu-pdp11.c: New file.
3672 * pdp11.c: New file.
3673
3674 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3675 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3676 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3677 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3678 (GET_MAGIC): New macro.
3679 (PUT_MAGIC): Likewise.
3680 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3681
36822001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3683
3684 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3685 multiarch needs it).
3686
36872001-02-18 H.J. Lu <hjl@gnu.org>
3688
3689 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3690 index.
3691
36922001-02-18 Kazu Hirata <kazu@hxi.com>
3693
3694 * vms-misc.c: Fix formatting.
3695
36962001-02-16 Kazu Hirata <kazu@hxi.com>
3697
3698 * vms.c: Fix formatting.
3699
37002001-02-14 H.J. Lu <hjl@gnu.org>
3701
3702 * elf.c (elf_find_function): New function.
3703 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3704 the file name and function name.
3705
37062001-02-14 Nick Clifton <nickc@redhat.com>
3707
3708 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3709 asection structure.
3710
3711 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3712 (BFD64_BACKENDS): Add pepigen.c
3713 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3714
3715 * Makefile.in: Regenerate.
3716 * configure: Regenerate.
3717 * po/POTFILES.in: Regenerate.
3718 * po/bfd.pot: Regenerate.
3719
37202001-02-14 H.J. Lu <hjl@gnu.org>
3721
3722 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3723 force_minimum_alignment.
3724
37252001-02-14 Bo Thorsen <bo@suse.de>
3726
3727 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3728 (elf64_86_64_size_info): Struct added to fix a problem
3729 with the hashtable string entries.
3730 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3731 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3732 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3733 remove the FIXME for this.
3734 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3735 section. Also removed the FIXME for it.
3736 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3737 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3738 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3739
37402001-02-13 Richard Henderson <rth@redhat.com>
3741
3742 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3743 and not user provided.
3744
37452001-02-13 Kazu Hirata <kazu@hxi.com>
3746
3747 * vms.c (vms_print_symbol): Remove unreachable code.
3748
3749 * rs6000-core.c: Fix formatting.
3750
37512001-02-13 David Mosberger <davidm@hpl.hp.com>
3752
3753 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3754 as _bfd_XXi_only_swap_filehdr_out.
3755 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3756 pe->force_minimum_alignment to TRUE.
3757 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3758 PEI_TARGET_SUBSYSTEM.
3759 (pe_print_private_bfd_data): Call
3760 _bfd_XX_print_private_bfd_data_common() instead of
3761 _bfd_pe_print_private_bfd_data_common().
3762 (pe_bfd_copy_private_bfd_data): Call
3763 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3764 _bfd_pe_bfd_copy_private_bfd_data_common().
3765 (coff_bfd_copy_private_section_data): Define as
3766 _bfd_XX_bfd_copy_private_section_data instead of
3767 _bfd_pe_bfd_copy_private_section_data.
3768 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3769 of a _bfd_pe_get_symbol_info.
3770
3771 * peigen.c: Delete.
3772
3773 * peXXigen.c: Renamed from peigen.c.
3774 (COFF_WITH_XX): Define this macro (will get expanded into
3775 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3776 compiled as peigen.c or pepigen.c.
3777 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3778 define the canonical PEP structures and definitions.
3779 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3780 effect, enforce minimum file and section alignments. If
3781 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3782 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3783 so, by default, this is a no-op).
3784
3785 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3786 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3787 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3788 _bfd_pefoo if it's not defined. Use these macros to define
3789 coff swap macros.
3790
3791 * libcoff.h (pe_tdata): Add members target_subsystem and
3792 force_minimum_alignment.
3793
3794 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3795 COFF_WITH_pep.
3796 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3797
3798 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3799 peigen.lo.
3800
3801 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3802 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3803 PEPAOUTHDR.
3804
3805 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3806 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3807 (peigen.c): Add rule to generate from peXXigen.c.
3808 (pepigen.c): Ditto.
3809 (pepigen.lo): List dependencies for pepigen.lo.
3810
38112001-02-13 Alan Modra <alan@linuxcare.com.au>
3812
3813 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3814 $global$ referenced but not defined, set its value here.
3815
38162001-02-09 Bo Thorsen <bo@suse.de>
3817
3818 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3819 alignment to 3.
3820 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3821 and relocation.
3822 (elf64_x86_64_relocate_section): Fix formatting.
3823 (elf64_x86_64_relocate_section): Fix addend for relocation of
3824 R_X86_64_(8|16|32|PC8|PC16|PC32).
3825
38262001-02-12 Jan Hubicka <jh@suse.cz>
3827
3828 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3829
38302001-02-11 H.J. Lu <hjl@gnu.org>
3831
3832 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3833 alignment.
3834
38352001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3836
3837 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3838 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3839 relocations against dynsym symbols.
3840
3841 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3842 the R_MIPS_26 relocation.
3843 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3844 the R_MIPS_26 relocation.
3845 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3846 relocation.
3847 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3848 the R_MIPS_26 relocation.
3849 (mips_elf64_howto_table_rela): Likewise.
3850
3851 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3852 member to mark symbols that have non-CALL relocations against
3853 them.
3854 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3855 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3856 R_MIPS_GOT16.
3857 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3858 non-CALL relocation against it is encountered.
3859 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3860 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3861 no_fn_stub is not set.
3862
3863 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3864 information from the real symbol for indirect ones.
3865 Check no_fn_stub to find out if a symbol has a function stub
3866 indeed.
3867
38682001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3869
3870 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3871 * Makefile.in: Regenerate.
3872
38732001-02-09 David Mosberger <davidm@hpl.hp.com>
3874
3875 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3876 true if section name is an unwind table section name.
3877 (elfNN_ia64_additional_program_headers): Count each unwind section
3878 separately.
3879 (elfNN_ia64_modify_segment_map): Install one unwind program header
3880 for each unwind separate section. Note: normally the linker
3881 script merges the unwind sections that go into a single segment,
3882 so this still generates at most one unwind program header per
3883 segment.
3884
3885 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3886 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3887 (elfNN_ia64_fake_sections): Mark sections with names that start
3888 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3889 unwind section.
3890
3891 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3892 Use it to make sh_info in unwind section point to the text section
3893 it applies to.
3894
38952001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3896
3897 * Makefile.am: Add linux target for S/390.
3898 * archures.c: Likewise.
3899 * bfd-in2.h: Likewise.
3900 * config.bfd: Likewise.
3901 * configure.in: Likewise.
3902 * elf.c: Likewise.
3903 * libbfd.h: Likewise.
3904 * targets.c: Likewise.
3905 * cpu-s390.c: New file.
3906 * elf32-s390.c: New file.
3907 * elf64-s390.c: New file.
3908
39092001-02-09 Nick Clifton <nickc@redhat.com>
3910
3911 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3912 ImageBase. This has already been done by coff_swap_hdr_in.
3913
39142001-02-09 Jakub Jelinek <jakub@redhat.com>
3915
3916 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3917
39182001-02-09 Jakub Jelinek <jakub@redhat.com>
3919
3920 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3921 (sparc64_elf_relocate_section): Likewise.
3922
39232001-02-09 Mark Kettenis <kettenis@gnu.org>
3924
3925 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3926 similar to R_SPARC_32.
3927 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3928
39292001-02-08 H.J. Lu <hjl@gnu.org>
3930
3931 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3932 relocation entries for weak definitions when building DSO with
3933 -Bsymbolic.
3934
39352001-02-08 Richard Henderson <rth@redhat.com>
3936
3937 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3938 before visibility. Locally defined protected symbols are not
3939 dynamic.
3940
39412001-02-08 Geoffrey Keating <geoffk@redhat.com>
3942
3943 * config.bfd: Enable coff64 for rs6000-*. Patch from
3944 <hzoli@austin.ibm.com>.
3945
39462001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3947
3948 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3949 found, do not attempt to find dwarf2 info before returning.
3950
39512001-02-07 Jakub Jelinek <jakub@redhat.com>
3952
3953 * elflink.h (is_global_symbol_definition): Rename to
3954 is_global_data_symbol_definition and have it reject function
3955 symbols.
3956 (elf_link_is_defined_archive_symbol): Use renamed function.
3957
39582001-02-07 Todd Vierling <tv@wasabisystems.com>
3959
3960 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3961 * libbfd.h (bfd_target_vector): Likewise.
3962 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3963 make static; create pointer reference named bfd_target_vector.
3964 (_bfd_target_vector_entries): Calculate this based on the array
3965 typed _bfd_target_vector.
3966
39672001-02-06 H.J. Lu <hjl@gnu.org>
3968
3969 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3970 internal symbols are not dynamic.
3971 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3972
39732001-02-06 Nick Clifton <nickc@redhat.com>
3974
3975 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3976 that it will not be pulled into the list of files that make up
3977 po/POTFILES.in.
3978 * Makefile.in: Regenerate.
3979 * po/bfd.pot: Regenerate.
3980
39812001-02-06 H.J. Lu <hjl@gnu.org>
3982
3983 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3984 checking.
3985 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3986 external_PEI_IMAGE_hdr.
3987
39882001-02-06 Kazu Hirata <kazu@hxi.com>
3989
3990 * elf-m10200.c: Fix formatting.
3991
39922001-02-04 Nick Clifton <nickc@redhat.com>
3993
3994 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3995 rel, it will be handled later on.
3996
39972001-02-02 Fred Fish <fnf@ninemoons.com>
3998
3999 * Makefile.in: Fix typo.
4000
40012001-02-01 Kazu Hirata <kazu@hxi.com>
4002
4003 * elf-m10300.c: Fix formatting.
4004
40052001-01-30 Alan Modra <alan@linuxcare.com.au>
4006
4007 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4008 (elf_backend_get_symbol_type): Define.
4009 (elf64_hppa_object_p): Set architecture and machine from elf
4010 header flags.
4011
40122001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4013
4014 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4015 before mdebug.
4016
40172001-01-26 Richard Henderson <rth@redhat.com>
4018
4019 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4020 for non-default visibility.
4021 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4022 delete ugly macro and replace with pretty function.
4023
40242001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4025
4026 * coff-go32.c: Update copyright.
4027 * coff-stgo32.c: Likewise.
4028 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4029 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4030 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4031 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4032
40332001-01-25 Kazu Hirata <kazu@hxi.com>
4034
4035 * bfd-in2.h: Rebuild.
4036 * libbfd.h: Likewise.
4037
40382001-01-23 H.J. Lu <hjl@gnu.org>
4039
4040 * bfd-in2.h: Rebuild.
4041
40422001-01-23 H.J. Lu <hjl@gnu.org>
4043
4044 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4045 is NULL or PRIV(vms_rec) is outside of the buffer.
4046
40472001-01-23 Kazu Hirata <kazu@hxi.com>
4048
4049 * coff64-rs6000.c: Fix formatting.
4050 * coff-arm.c: Likewise.
4051 * coffgen.c: Likewise.
4052 * cofflink.c: Likewise.
4053 * coff-mcore.c: Likewise.
4054 * coff-mips.c: Likewise.
4055 * coff-pmac.c: Likewise.
4056 * coff-ppc.c: Likewise.
4057 * coff-rs6000.c: Likewise.
4058 * elf32.c: Likewise.
4059 * elf32-fr30.c: Likewise.
4060 * elf32-i370.c: Likewise.
4061 * elf32-i860.c: Likewise.
4062 * elf32-m32r.c: Likewise.
4063 * elf32-m68k.c: Likewise.
4064 * elf32-mcore.c: Likewise.
4065 * elf32-ppc.c: Likewise.
4066 * elf32-sh.c: Likewise.
4067 * elf32-v850.c: Likewise.
4068 * elf64-alpha.c: Likewise.
4069 * elf64-sparc.c: Likewise.
4070 * elflink.c: Likewise.
4071 * elflink.h: Likewise.
4072 * elf-m10200.c: Likewise.
4073 * elf-m10300.c: Likewise.
4074 * elfxx-ia64.c: Likewise.
4075
4076 * aoutx.h: Fix formatting.
4077 * bfd.c: Likewise.
4078 * bfd-in2.h: Likewise.
4079 * bfd-in.h: Likewise.
4080 * cpu-i386.c: Likewise.
4081 * cpu-m68hc11.c: Likewise.
4082 * dwarf2.c: Likewise.
4083 * elf64-x86-64.c: Likewise.
4084 * format.c: Likewise.
4085 * freebsd.h: Likewise.
4086 * hash.c: Likewise.
4087 * hp300hpux.c: Likewise.
4088 * hppabsd-core.c: Likewise.
4089 * hpux-core.c: Likewise.
4090
40912001-01-22 Bo Thorsen <bo@suse.de>
4092
4093 * elf64-x86-64.c: Added PIC support for X86-64.
4094 (elf64_x86_64_link_hash_newfunc): Function added.
4095 (elf64_x86_64_link_hash_table_create): Likewise.
4096 (elf64_x86_64_check_relocs): Likewise.
4097 (elf64_x86_64_gc_mark_hook): Likewise.
4098 (elf64_x86_64_gc_sweep_hook): Likewise.
4099 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4100 (elf64_x86_64_size_dynamic_sections): Likewise.
4101 (elf64_x86_64_discard_copies): Likewise.
4102 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4103 (elf64_x86_64_finish_dynamic_sections): Likewise.
4104 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4105
41062001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4107
4108 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4109 * Makefile.in: Regenerate.
4110
41112001-01-21 Kazu Hirata <kazu@hxi.com>
4112
4113 * coff-a29k.c: Fix formatting.
4114
41152001-01-19 H.J. Lu <hjl@gnu.org>
4116
4117 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4118 relocation section names.
4119 (elf_i386_relocate_section): Report files with bad relocation
4120 section names and return false.
4121
41222001-01-17 Bo Thorsen <bo@suse.de>
4123
4124 * targets.c: Alphabetize list of xvecs.
4125
41262001-01-14 Alan Modra <alan@linuxcare.com.au>
4127
4128 * config.bfd: Add linux target variant for elfxx-hppa.
4129 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4130 bfd_elf64_hppa_linux_vec.
4131 * configure: Regenerate.
4132 * elf64-hppa.c: Include elf64-target.h again to support linux
4133 target variant.
4134 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4135 * elf32-hppa.c: Include elf32-target.h again to support linux
4136 target variant.
4137 (elf32_hppa_post_process_headers): New function.
4138 (elf_backend_post_process_headers): Define.
4139 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4140 bfd_elf32_hppa_linux_vec.
4141
4142 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4143 and data_segment_base fields.
4144 (elf32_hppa_link_hash_table_create ): Init them.
4145 (elf32_hppa_check_relocs): Update comments.
4146 (hppa_record_segment_addr): New function.
4147 (elf32_hppa_relocate_section): Call it.
4148 (final_link_relocate): Handle R_PARISC_SEGREL32.
4149 (elf32_hppa_final_link): New function.
4150 (bfd_elf32_bfd_final_link): Define to call it.
4151 (hppa_unwind_entry_compare): New function.
4152 * cache.c (bfd_open_file): Create files in write+read mode.
4153
4154 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4155 SEGREL32 and numerous other relocs. Change duplicate
4156 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4157
4158 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4159 O_ACCMODE.
4160
4161 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4162 .plt entries for DT_INIT and DT_FINI.
4163 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4164 DT_INIT and DT_FINI.
4165
4166 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4167 offsets for stub .plt access if wide mode. Check offset in range.
4168
41692001-01-13 Nick Clifton <nickc@redhat.com>
4170
4171 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4172 line.
4173
4174 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4175 line.
4176
41772001-01-12 Alan Modra <alan@linuxcare.com.au>
4178
4179 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4180 * configure: Regenerate.
4181
41822001-01-11 Peter Targett <peter.targett@arccores.com>
4183
4184 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4185 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4186 * cpu-arc.c (arch_info_struct): Add entries for variants.
4187 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4188 (arc_get_mach) Don't assume machine names prefixed arc- before
4189 testing.
4190 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4191 selections.
4192 (arc_elf_final_write_processing) Likewise.
4193 (ELF_MACHINE_CODE) Use EM_ARC.
4194
41952001-01-10 Nick Clifton <nickc@redhat.com>
4196
4197 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4198
41992001-01-07 Philip Blundell <philb@gnu.org>
4200
4201 * README: Replace `bug-gnu-utils@gnu.org' with
4202 `bug-binutils@gnu.org'.
4203
42042001-01-04 Kazu Hirata <kazu@hxi.com>
4205
4206 * som.c: Fix formatting.
4207
42082001-01-03 Kazu Hirata <kazu@hxi.com>
4209
4210 * ecoffswap.h: Fix formatting.
4211 * elf-bfd.h: Likewise.
4212 * elfarm-nabi.c: Likewise.
4213 * elfarm-oabi.c: Likewise.
4214 * elfcode.h: Likewise.
4215 * elfcore.h: Likewise.
4216 * elflink.c: Likewise.
4217 * elflink.h: Likewise.
4218 * elfxx-ia64.c: Likewise.
4219 * elfxx-target.h: Likewise.
4220 * libbfd.c: Likewise
4221 * linker.c: Likewise.
4222 * lynx-core.c: Likewise.
4223
42242001-01-02 Kazu Hirata <kazu@hxi.com>
4225
4226 * pc532-mach.c: Fix formatting.
4227 * pe-arm.c: Likewise.
4228 * pe-i386.c: Likewise.
4229 * pe-mips.c: Likewise.
4230 * pe-ppc.c: Likewise.
4231 * pe-sh.c: Likewise.
4232 * pei-mips.c: Likewise.
4233 * pei-sh.c: Likewise.
4234 * peicode.h: Likewise.
4235 * ppcboot.c: Likewise.
4236 * ptrace-core.c: Likewise.
4237
42382001-01-01 Kazu Hirata <kazu@hxi.com>
4239
4240 * reloc.c: Fix formatting.
4241 * riscix.c: Likewise.
4242 * rs6000-core.c: Likewise.
4243 * xcoff-target.h: Likewise.
4244
42452000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4246
4247 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4248 error, by calling bfd_default_set_arch_mach with incoming
4249 values.
4250
42512000-12-26 Kazu Hirata <kazu@hxi.com>
4252
4253 * vaxnetbsd.c: Fix formatting.
4254 * versados.c: Likewise.
4255 * vms-gsd.c: Likewise.
4256 * vms-hdr.c: Likewise.
4257 * vms-misc.c: Likewise.
4258
42592000-12-25 Alexandre Oliva <aoliva@redhat.com>
4260
4261 * archive.c (coff_write_armap): Don't write more than symbol_count
4262 `archive_member_file_ptr's.
4263
42642000-12-25 Kazu Hirata <kazu@hxi.com>
4265
4266 * vms-tir.c: Fix formatting.
4267
42682000-12-23 Kazu Hirata <kazu@hxi.com>
4269
4270 * vms.c: Fix formatting.
4271 * vms.h: Likewise.
4272
42732000-12-21 Santeri Paavolainen <santtu@ssh.com>
4274
4275 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4276
4277 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4278
4279 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4280 arithmetic.
4281
4282 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4283
4284 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4285
42862000-12-21 Richard Sandiford <rsandifo@redhat.com>
4287
4288 * libbfd.c (bfd_get_bits): Added
4289 (bfd_put_bits): Likewise
4290 * bfd-in.h: Declared the above.
4291 * bfd-in2.h: Regenerated.
4292
42932000-12-20 Kazu Hirata <kazu@hxi.com>
4294
4295 * targets.c: Fix formatting.
4296 * tekhex.c: Likewise.
4297 * trad-core.c: Likewise.
4298
42992000-12-19 Kazu Hirata <kazu@hxi.com>
4300
4301 * sco5-core.c: Fix formatting.
4302 * section.c: Likewise.
4303 * sparclinux.c: Likewise.
4304 * sparclynx.c: Likewise.
4305 * sparcnetbsd.c: Likewise.
4306 * srec.c: Likewise.
4307 * stabs.c: Likewise.
4308 * stab-syms.c: Likewise.
4309 * sunos.c: Likewise.
4310 * syms.c: Likewise.
4311 * sysdep.h: Likewise.
4312
43132000-12-18 Nick Clifton <nickc@redhat.com>
4314
4315 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4316 defined.
4317 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4318 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4319
43202000-12-18 Nick Clifton <nickc@redhat.com>
4321
4322 * vms-misc.c (_bfd_vms_get_record): Add default case to
4323 file_format switch.
4324
43252000-12-15 Miloslav Trmac <mitr@volny.cz>
4326
4327 * elfcore.h (elf_core_file_p): Move to the start of the program
4328 headers before attempting to read them.
4329
43302000-12-14 Kazu Hirata <kazu@hxi.com>
4331
4332 * peigen.c: Fix formatting.
4333 * som.c: Likewise.
4334 * som.h: Likewise.
4335
43362000-12-13 Kazu Hirata <kazu@hxi.com>
4337
4338 * peigen.c: Fix formatting.
4339
43402000-12-12 Jim Wilson <wilson@redhat.com>
4341
4342 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4343
43442000-12-08 Mark Salter <msalter@redhat.com>
4345
4346 * binary.c (binary_set_section_contents): Ignore sections
4347 with zero size.
4348
43492000-12-12 Kazu Hirata <kazu@hxi.com>
4350
4351 * m68klinux.c: Fix formatting.
4352 * m68knetbsd.c: Likewise.
4353 * mipsbsd.c: Likewise.
4354 * netbsd-core.c: Likewise.
4355 * netbsd.h: Likewise.
4356 * newsos3.c: Likewise.
4357 * nlm32-alpha.c: Likewise.
4358 * nlm32-i386.c: Likewise.
4359 * nlm32-ppc.c: Likewise.
4360 * nlm32-sparc.c: Likewise.
4361 * nlmcode.h: Likewise.
4362 * nlmswap.h: Likewise.
4363 * nlm-target.h: Likewise.
4364 * ns32knetbsd.c: Likewise.
4365
43662000-12-10 Fred Fish <fnf@be.com>
4367
4368 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4369 symbols in shared objects if allow_shlib_undefined is true.
4370
43712000-12-12 Nick Clifton <nickc@redhat.com>
4372
4373 * cpu-sh.c: Fix formattng.
4374 * elf.c: Fix formattng.
4375 * elf32-mips.c: Fix formattng.
4376 * elf32-sh.c: Fix formattng.
4377 * elf64-alpha.c: Fix formattng.
4378
43792000-12-09 Nick Clifton <nickc@redhat.com>
4380
4381 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4382 dwarf2_find_line_info as last parameter to invocation of
4383 _bfd_dwarf2_find_nearest_line.
4384 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4385 dwarf2_find_line_info as last parameter to invocation of
4386 _bfd_dwarf2_find_nearest_line.
4387
43882000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4389
4390 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4391 (BFD_LIBS): ...to here.
4392 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4393 (BFD_LIBS_CFILES): ...to here.
4394 * Makefile.in: Regenerate.
4395 * configure.in: Remove dwarf.lo from the elf shell variable.
4396 * configure: Regenerate.
4397 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4398 * libcoff.h: Regenerate.
4399 * coffgen.c (coff_find_nearest_line): Call
4400 _bfd_dwarf2_find_nearest_line.
4401 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4402 accordingly.
4403 (read_abbrevs): Likewise
4404 (decode_line_info): Likewise.
4405 (parse_comp_unit): Likewise.
4406 (comp_unit_find_nearest_line): Likewise.
4407 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4408 * libbfd.h: Regenerate.
4409 * elf.c (_bfd_elf_find_nearest_line): Update call.
4410 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4411 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4412 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4413 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4414 (styp_to_sec_flags): Handle DWARF2 sections.
4415 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4416 to _bfd_find_nearest_line.
4417 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4418 call to _bfd_find_nearest_line.
4419
44202000-12-08 Kazu Hirata <kazu@hxi.com>
4421
4422 * coffgen.c: Fix formatting.
4423 * elf-m10300.c: Likewise.
4424 * elf32-i386.c: Likewise.
4425 * elf32-i960.c: Likewise.
4426 * elf32-m68k.c: Likewise.
4427 * elf32-mcore.c: Likewise.
4428 * elf32-ppc.c: Likewise.
4429 * elf32-sh.c: Likewise.
4430 * elf32-sparc.c: Likewise.
4431 * elf32-v850.c: Likewise.
4432 * elf64-alpha.c: Likewise.
4433 * elf64-hppa.c: Likewise.
4434 * elf64-mips.c: Likewise.
4435 * elf64-sparc.c: Likewise.
4436
44372000-12-07 Kazu Hirata <kazu@hxi.com>
4438
4439 * elf32-ppc.c: Fix formatting.
4440 * elf64-x86-64.c: Likewise.
4441
44422000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4443
4444 From Ralf Baechle <ralf@gnu.org>
4445
4446 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4447 BFDs containing no sections or empty .text, .data or .bss sections
4448 to be merged, regardless of their flags.
4449
44502000-12-06 Kazu Hirata <kazu@hxi.com>
4451
4452 * elf32-m32r.c: Fix formatting.
4453 * elf32-m68hc11.c: Likewise.
4454 * elf32-m68hc12.c: Likewise.
4455 * elf32-m68k.c: Likewise.
4456 * elf32-mcore.c: Likewise.
4457 * elf32-pj.c: Likewise.
4458 * elf32-ppc.c: Likewise.
4459
44602000-12-05 Kazu Hirata <kazu@hxi.com>
4461
4462 * elf32-fr30.c: Fix formatting.
4463 * elf32-hppa.c: Likewise.
4464 * elf32-i370.c: Likewise.
4465 * elf32-i386.c: Likewise.
4466 * elf32-i860.c: Likewise.
4467 * elf32-i960.c: Likewise.
4468
44692000-12-03 Kazu Hirata <kazu@hxi.com>
4470
4471 * elf32-arm.h: Fix formatting.
4472 * elf32-avr.c: Likewise.
4473 * elf32-cris.c: Likewise.
4474 * elf32-d10v.c: Likewise.
4475 * elf32-d30v.c: Likewise.
4476 * elf-hppa.h: Likewise.
4477 * elf-m10200.c: Likewise.
4478 * elf-m10300.c: Likewise.
4479
44802000-12-01 Chris Demetriou <cgd@sibyte.com>
4481
4482 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4483 bfd_mach_mips32_4k. Update FIXME comment.
4484 * archures.c (bfd_mach_mips32): New constant.
4485 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4486 the latter, renumber it.
4487 * bfd-in2.h (bfd_mach_mips32): New constant.
4488 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4489 the latter, renumber it.
4490 * cpu-mips.c (I_mips32): New constant.
4491 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4492 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4493 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4494 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4495 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4496 with E_MIPS_MACH_MIPS32_4K.
4497 (_bfd_mips_elf_final_write_processing): Replace
4498 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4499 bfd_mach_mips32 case.
4500 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4501 comparison with support for MIPS32.
4502 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4503 MIPS32.
4504
4505 * aoutx.h (NAME(aout,machine_type)): Add cases for
4506 bfd_mach_mips5 and bfd_mach_mips64.
4507 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4508 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4509 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4510 (arch_info_struct): Add entries for bfd_mach_mips5 and
4511 bfd_mach_mips64.
4512 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4513 _bfd_mips_elf_print_private_bfd_data): Add cases for
4514 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4515 (_bfd_mips_elf_final_write_processing): Add cases for
4516 bfd_mach_mips5 and bfd_mach_mips64.
4517
4518 * aoutx.h (NAME(aout,machine_type)): Add a
4519 bfd_mach_mips_sb1 case.
4520 * archures.c (bfd_mach_mips_sb1): New constant.
4521 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4522 * cpu-mips.c (I_sb1): New constant.
4523 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4524 * elf32-mips.c (elf_mips_mach): Add case for
4525 E_MIPS_MACH_SB1.
4526 (_bfd_mips_elf_final_write_processing): Add case for
4527 bfd_mach_mips_sb1.
4528
45292000-12-01 Joel Sherrill <joel@OARcorp.com>
4530
4531 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4532 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4533 (sparc*-*-rtems*): Switched from a.out to ELF.
4534
45352000-11-30 Jan Hubicka <jh@suse.cz>
4536
4537 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4538 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4539 (elf64-x86-64.lo): Add dependencies.
4540 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4541 bfd_mach_x86_64_intel_syntax.
4542 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4543 * config.bfd (x86_64): Add.
4544 * configure.in: Add support for bfd_elf64_x86_64_vec.
4545 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4546 (bfd_i386_arch, i8086_ar): Link in.
4547 * elf64-x86-64.c: New file.
4548 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4549 * targets.c (bfd_elf64_x86_64_vec): Add.
4550 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4551
45522000-11-30 Kazu Hirata <kazu@hxi.com>
4553
4554 * xcofflink.c: Fix formatting.
4555
45562000-11-28 Kazu Hirata <kazu@hxi.com>
4557
4558 * aoutx.h: Fix formatting.
4559 * bfd-in.h: Likewise.
4560 * bfd-in2.h: Likewise.
4561 * cache.c: Likewise.
4562 * cisco-core.c: Likewise.
4563 * coff64-rs6000.c: Likewise.
4564 * coffcode.h: Likewise.
4565 * coffswap.h: Likewise.
4566 * corefile.c: Likewise.
4567 * elf32-mips.c: Likewise.
4568
45692000-11-27 Kazu Hirata <kazu@hxi.com>
4570
4571 * aout-adobe.c: Fix formatting.
4572 * coff64-rs6000.c: Likewise.
4573 * coffgen.c: Likewise.
4574 * cofflink.c: Likewise.
4575
45762000-11-27 Philip Blundell <pb@futuretv.com>
4577
4578 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4579 (obj_coff_strings_written): New accessor macro for above.
4580 * libcoff.h: Regenerate.
4581 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4582 strings.
4583 * coffcode.h (coff_write_object_contents): No need to write out
4584 the string table if it's already been done.
4585
45862000-11-22 Philip Blundell <pb@futuretv.com>
4587
4588 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4589 weak undefined symbols.
4590
45912000-11-24 Nick Clifton <nickc@redhat.com>
4592
4593 * archures.c (bfd_mach_arm_5TE): Define.
4594 (bfd_mach_arm+XScale): Define.
4595 * bfd-in2.h: Regenerate.
4596
4597 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4598 BFD_RELOC_ARM_PCREL_BLX.
4599
4600 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4601 XScale machine numbers.
4602
4603 * config.bfd (xscale-elf): Add target.
4604 (xscale-coff): Add target.
4605
4606 * cpu-arm.c: Add xscale machine name.
4607 Add v5t, v5te and XScale machine numbers.
4608
46092000-11-23 Kazu Hirata <kazu@hxi.com>
4610
4611 * aix386-core.c: Fix formatting.
4612
46132000-11-22 Jim Wilson <wilson@redhat.com>
4614
4615 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4616 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4617 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4618 (ins_imms_scaled): Initialize sign_bit at function entry.
4619 (elf64_ia64_operands): Add missing initializers.
4620 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4621 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4622 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4623 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4624 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4625 parameters.
4626 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4627 and free_extsyms at function entry.
4628 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4629 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4630 (get_got): Delete unused local srel.
4631 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4632 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4633
46342000-11-21 Kazu Hirata <kazu@hxi.com>
4635
4636 * coff-a29k.c: Fix formatting.
4637 * coff-h8500.c: Likewise.
4638 * coff-i960.c: Likewise.
4639 * coff-ppc.c: Likewise.
4640 * coff-rs6000.c: Likewise.
4641 * coff-stgo32.c: Likewise.
4642 * coff-tic54x.c: Likewise.
4643 * coff-w65.c: Likewise.
4644 * cpu-h8500.c: Likewise.
4645 * cpu-hppa.c: Likewise.
4646 * cpu-ns32k.c: Likewise.
4647 * ecoff.c: Likewise.
4648 * ecofflink.c: Likewise.
4649
46502000-11-21 Nick Clifton <nickc@redhat.com>
4651
4652 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4653 remove possibility of infinite loop.
4654
46552000-11-20 Kazu Hirata <kazu@hxi.com>
4656
4657 * aix386-core.c: Fix formatting.
4658 * aout-adobe.c: Likewise.
4659 * aout-arm.c: Likewise.
4660 * aout-encap.c: Likewise.
4661 * aout-ns32k.c: Likewise.
4662 * aout-target.h: Likewise.
4663 * aout-tic30.c: Likewise.
4664 * aoutf1.h: Likewise.
4665 * aoutx.h: Likewise.
4666 * archive.c: Likewise.
4667 * bfd-in.h: Likewise.
4668 * bfd-in2.h: Likewise.
4669 * bfd.c: Likewise.
4670 * bout.c: Likewise.
4671
46722000-11-17 H.J. Lu <hjl@gnu.org>
4673
4674 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4675 pltoff entries for DT_INIT and DT_FINI.
4676 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4677 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4678 entries.
4679
46802000-11-16 Richard Henderson <rth@redhat.com>
4681
4682 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4683 (allocate_dynrel_entries): Likewise.
4684 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4685 (set_pltoff_entry): Likewise.
4686 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4687 (elfNN_ia64_reloc_type_lookup): Likewise.
4688 (elfNN_ia64_install_value): Likewise.
4689 (elfNN_ia64_relocate_section): Likewise.
4690 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4691 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4692
46932000-11-16 Kazu Hirata <kazu@hxi.com>
4694
4695 * cpu-a29k.c: Fix formatting.
4696 * cpu-alpha.c: Likewise.
4697 * cpu-arm.c: Likewise.
4698 * cpu-avr.c: Likewise.
4699 * cpu-d10v.c: Likewise.
4700 * cpu-h8500.c: Likewise.
4701 * cpu-hppa.c: Likewise.
4702 * cpu-i370.c: Likewise.
4703 * cpu-i386.c: Likewise.
4704 * cpu-i960.c: Likewise.
4705 * cpu-ia64-opc.c: Likewise.
4706 * cpu-ia64.c: Likewise.
4707 * cpu-m32r.c: Likewise.
4708 * cpu-m68hc11.c: Likewise.
4709 * cpu-m68hc12.c: Likewise.
4710 * cpu-m68k.c: Likewise.
4711 * cpu-m88k.c: Likewise.
4712 * cpu-mips.c: Likewise.
4713 * cpu-ns32k.c: Likewise.
4714 * cpu-pj.c: Likewise.
4715 * cpu-powerpc.c: Likewise.
4716 * cpu-sh.c: Likewise.
4717 * cpu-sparc.c: Likewise.
4718 * cpu-tic54x.c: Likewise.
4719 * cpu-v850.c: Likewise.
4720 * cpu-vax.c: Likewise.
4721 * cpu-w65.c: Likewise.
4722 * cpu-we32k.c: Likewise.
4723 * cpu-z8k.c: Likewise.
4724 * dwarf1.c: Likewise.
4725 * dwarf2.c: Likewise.
4726
47272000-11-15 Kazu Hirata <kazu@hxi.com>
4728
4729 * coff-arm.c: Fix formatting.
4730 * coff-ppc.c: Likewise.
4731 * coff-rs6000.c: Likewise.
4732 * coff-sh.c: Likewise.
4733 * coff-sparc.c: Likewise.
4734 * coff-tic30.c: Likewise.
4735 * coff-tic54x.c: Likewise.
4736 * coff-tic80.c: Likewise.
4737 * coff-w65.c: Likewise.
4738 * coff-we32k.c: Likewise.
4739 * coff-z8k.c: Likewise.
4740
47412000-11-15 Richard Henderson <rth@redhat.com>
4742
4743 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4744 section with the same ALLOC|LOAD flags as the source section.
4745
47462000-11-14 Jakub Jelinek <jakub@redhat.com>
4747
4748 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4749 by STO_ALPHA constants.
4750
47512000-11-14 Kazu Hirata <kazu@hxi.com>
4752
4753 * coff-pmac.c: Fix formatting.
4754 * coff-ppc.c: Likewise.
4755
47562000-11-13 H.J. Lu <hjl@gnu.org>
4757
4758 * elflink.h (elf_link_add_object_symbols): Also add indirect
4759 symbols for common symbols with the default version.
4760
47612000-11-09 Philip Blundell <pb@futuretv.com>
4762
4763 * section.c (STD_SECTION): Set gc_mark flag.
4764
47652000-11-11 Kazu Hirata <kazu@hxi.com>
4766
4767 * coff-i960.c: Likewise.
4768 * coff-m68k.c: Likewise.
4769 * coff-m88k.c: Likewise.
4770 * coff-mcore.c: Likewise.
4771 * coff-mips.c: Likewise.
4772
47732000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4774
4775 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4776
47772000-11-10 Kazu Hirata <kazu@hxi.com>
4778
4779 * coff-h8300.c: Fix formatting.
4780 * coff-h8500.c: Likewise.
4781 * coff-i386.c: Likewise.
4782 * coff-i860.c: Likewise.
4783 * coff-i960.c: Likewise.
4784 * coff-ia64.c: Likewise.
4785
47862000-11-09 Kazu Hirata <kazu@hxi.com>
4787
4788 * archive.c: Fix formatting.
4789 * archures.c: Likewise.
4790
47912000-11-07 Richard Henderson <rth@redhat.com>
4792
4793 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4794 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4795 * section.c (bfd_set_section_contents): Call memcpy if
4796 section->contents set and location not equal to contents plus offset.
4797
47982000-11-08 Kazu Hirata <kazu@hxi.com>
4799
4800 * bfd-in.h: Fix formatting.
4801 * bfd-in2.h: Likewise.
4802 * bfd.c: Likewise.
4803 * binary.c: Likewise.
4804 * bout.c: Likewise.
4805 * coff-a29k.c: Likewise.
4806 * coff-alpha.c: Likewise.
4807 * coff-apollo.c: Likewise.
4808 * coff-aux.c: Likewise.
4809
48102000-11-07 Kazu Hirata <kazu@hxi.com>
4811
4812 * aix386-core.c: Fix formatting.
4813 * aoutf1.h: Likewise.
4814 * aoutx.h: Likewise.
4815 * archures.c: Likewise.
4816 * armnetbsd.c: Likewise.
4817
48182000-11-07 Alan Modra <alan@linuxcare.com.au>
4819
4820 * coff-h8300.c (special): Adjust reloc address.
4821
48222000-11-06 Steve Ellcey <sje@cup.hp.com>
4823
4824 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4825 to differentiate elf32 and elf64 on ia64.
4826 * bfd-in2.h: Regenerate.
4827 * config.bfd: Add target for "ia64*-*-hpux*".
4828 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4829 * configure: Regenerate.
4830 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4831 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4832
4833 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4834 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4835 * Makefile.in: Regnerate.
4836 * elf64-ia64.c: Deleted.
4837 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4838
48392000-11-06 Kazu Hirata <kazu@hxi.com>
4840
4841 * aout-adobe.c: Fix formatting.
4842 * aout-arm.c: Likewise.
4843 * aout-cris.c: Likewise.
4844 * aout-encap.c: Likewise.
4845 * aout-ns32k.c: Likewise.
4846 * aout-target.h: Likewise.
4847 * aout-tic30.c: Likewise.
4848
48492000-11-05 Philip Blundell <philb@gnu.org>
4850
4851 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4852 BFDs containing no sections to be merged, regardless of their flags.
4853
48542000-11-04 Philip Blundell <philb@gnu.org>
4855
4856 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4857 if a relocation for an undefined symbol also results in an
4858 overflow.
4859
48602000-11-06 Christopher Faylor <cgf@cygnus.com>
4861
4862 * config.bfd: Add support for Sun Chorus.
4863
48642000-11-05 David O'Brien <obrien@FreeBSD.org>
4865
4866 * configure.in: Recognize alpha-*-freebsd*.
4867 * configure: Regenerate.
4868
48692000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4870
4871 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4872 (Chunk): New global variable set by a parameter in objcopy.c.
4873 (S3Forced): New global variable set by a parameter in
4874 objcopy.c.
4875 (srec_set_section_contents): If S3Forced is true, always generate
4876 S3 records.
4877 (srec_write_section): Use 'Chunk' to limit maximum length of S
4878 records.
4879
48802000-11-02 Per Lundberg <plundis@chaosdev.org>
4881
4882 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4883 * Makefile.in: Regenerate.
4884 * bfd-in2.h: Regenerate.
4885 * po/bfd.pot: Regenerate.
4886
48872000-10-31 Philip Blundell <philb@gnu.org>
4888
4889 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4890 EF_SOFT_FLOAT if it is defined.
4891
48922000-10-27 Philip Blundell <philb@gnu.org>
4893
4894 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4895 attempts to mix PIC code with non-PIC, just mark the output as
4896 being position dependent.
4897 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4898 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4899 all mismatches, not just the first one.
4900
49012000-10-25 Chris Demetriou <cgd@sibyte.com>
4902
4903 * ieee.c (ieee_archive_p): Plug one of many possible
4904 memory leaks in error handling.
4905
49062000-10-20 Jakub Jelinek <jakub@redhat.com>
4907
4908 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4909 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4910 Support v8plusb.
4911 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4912 sparc64_elf_object_p): Support v9b.
4913 * archures.c: Declare v8plusb and v9b machines.
4914 * bfd-in2.h: Ditto.
4915 * cpu-sparc.c: Ditto.
4916
49172000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4918
4919 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4920 of a GOT reloc.
4921
4922 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4923 (SYMBOL_CALLS_LOCAL): New macro.
4924 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4925 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4926 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4927 (ppc_elf_relocate_section): Use flag variable to determine
4928 whether the relocation refers to a local symbol.
4929 Test whether a PLTREL24 reloc will produce a reloc by looking
4930 to see whether a PLT entry was made.
4931
49322000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4933
4934 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4935 entries that could serve as a definition for a weak symbol.
4936
49372000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4938
4939 From Ralf Baechle <ralf@gnu.org>
4940
4941 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4942 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4943 against local symbols.
4944 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4945
49462000-10-12 Alan Modra <alan@linuxcare.com.au>
4947
4948 * section.c (struct sec): Add kept_section.
4949 (struct bfd_comdat_info): Remove sec, we can use above.
4950 (STD_SECTION): Add initializer.
4951 (bfd_make_section_anyway): Init here too.
4952
4953 * bfd-in2.h: Regenerate.
4954
4955 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4956 zeroing of `flags'.
4957 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4958 fudge values for discarded link-once section symbols.
4959
4960 * elf64-hppa.c: Include alloca-conf.h
4961
49622000-10-11 Alan Modra <alan@linuxcare.com.au>
4963
4964 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4965
4966 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4967
49682000-10-10 Alan Modra <alan@linuxcare.com.au>
4969
4970 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4971
49722000-10-10 Tom Rix <trix@redhat.com>
4973
4974 * section.c (bfd_make_section_anyway): Release newsect ptr when
4975 newsect->symbol fails to alloc. Use bfd_release instead of free.
4976
49772000-10-09 Richard Henderson <rth@cygnus.com
4978
4979 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4980 (elf64_ia64_unwind_entry_compare): New.
4981 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4982
49832000-10-07 Alan Modra <alan@linuxcare.com.au>
4984
4985 * elflink.h (size_dynamic_sections): Don't create various tags if
4986 .dynstr is excluded from the link. Don't set first dynsym entry
4987 if dynsymcount is zero.
4988 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4989 .dynsym excluded from the link. Don't try to write any dynamic
4990 sections excluded from the link.
4991
4992 * elf.c (swap_out_syms): Handle global section symbols.
4993
49942000-10-05 DJ Delorie <dj@redhat.com>
4995
4996 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4997 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4998 (coff_write_relocs): write extended reloc count
4999 (coff_write_object_contents): account for extended relocs
5000
50012000-10-05 Jim Wilson <wilson@cygnus.com>
5002
5003 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5004 field.
5005 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5006 elf_backend_section_flags function.
5007 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5008 code.
5009 (elf64_ia64_section_flags): New function containing flag conversion
5010 code.
5011 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5012 * elfxx-target.h (elf_backend_section_flags): Define.
5013 (elfNN_bed): Initialize elf_backend_section_flags field.
5014
50152000-10-02 Alan Modra <alan@linuxcare.com.au>
5016
5017 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5018 _bfd_elf32_gc_record_vtable. Correct a comment.
5019
50202000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5021
5022 From Ralf Baechle <ralf@gnu.org>
5023
5024 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5025 produces binaries with got[1] = 0x80000001 to differenciate them
5026 for the dynamic linker from the broken binaries produced by old
5027 versions.
5028
50292000-09-30 Petr Sorfa <petrs@sco.com>
5030
5031 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5032 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5033 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5034 * configure: Regenerate.
5035
50362000-09-27 Hans-Peter Nilsson <hp@axis.com>
5037
5038 Define two bfd_targets for absence and presence of leading
5039 underscore on symbols. Make sure to only link same kind.
5040 * elf32-cris.c (cris_elf_object_p,
5041 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5042 cris_elf_merge_private_bfd_data): New.
5043 (elf_backend_object_p, elf_backend_final_write_processing,
5044 bfd_elf32_bfd_print_private_bfd_data,
5045 bfd_elf32_bfd_merge_private_bfd_data): Define.
5046 <Target vector definition>: Include elf32-target.h twice with
5047 different macro settings:
5048 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5049 bfd_elf32_us_cris_vec.
5050 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5051 (elf_symbol_leading_char): First as 0, then '_'.
5052 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5053 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5054 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5055 * configure: Regenerate.
5056 * targets.c: Declare bfd_elf32_us_cris_vec.
5057 * po/bfd.pot: Regenerate.
5058
50592000-09-29 Momchil Velikov <velco@fadata.bg>
5060
5061 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5062 R_ARM_THM_PC22 relocations.
5063
50642000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5065
5066 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5067
50682000-09-29 Momchil Velikov <velco@fadata.bg>
5069
5070 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5071 is has the SEC_HAS_CONTENTS flag set.
5072