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