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