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