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