1 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3 * elf64-ppc.c (struct ppc_dyn_relocs): New.
4 (IS_ABSOLUTE_RELOC): Define.
5 (struct ppc_link_hash_entry): New.
6 (struct ppc_link_hash_table): New.
7 (ppc_hash_table): Define.
8 (link_hash_newfunc): New function.
9 (ppc64_elf_link_hash_table_create): New function.
10 (create_got_section): New function.
11 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
12 pointers to our dynamic sections in hash table.
13 (ppc64_elf_copy_indirect_symbol): New function.
14 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
15 dynamic sections. Localise vars. Modify code for refcounts
16 starting from zero. Don't allocate here, or force symbols dynamic.
17 Don't copy all relocs if shared, select ones we need. Add code
18 to track possible copy relocs for non-shared link.
19 (ppc64_elf_gc_mark_hook): Update comment.
20 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
21 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
22 code for reference counting garbage collection. Don't create .plt
23 entries for functions that don't comply with ABI naming convention,
24 and don't allocate .plt space here. Use short-cuts to dynamic
25 sections. If possible, keep dynamic relocations instead of using
26 copy relocs. Remove confused comments.
27 (ppc_adjust_dynindx): Delete.
28 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
29 (allocate_dynrelocs): New function.
30 (readonly_dynrelocs): New function.
31 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
32 space here, and call allocate_dynrelocs to allocate space for
33 global .plt, .got and reloc sections. Use short-cuts to dynamic
34 sections. Call readonly_dynrelocs to determine whether we need
35 DT_TEXTREL. Don't generate section symbols here, the generic
36 ELF linker code does it for us.
37 (ppc64_elf_final_link): Call regular ELF backend linker rather than
38 gc variety, since we do our own .got handling.
39 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
40 dynamic section short-cuts. Localise vars, and delay setting.
41 Handle unknown relocs in main switch statement. Replace ugly
42 complicated tests for unresolvable relocs with a simple direct
43 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
44 before allowing an undefined sym in a shared lib. Do R_*_DS tests
45 after main switch, when we've set addend. Do non-addend insn
46 tweaks before main swithc. Ignore input_section->vma when
47 calculating reloc offsets as it's always zero. Rewrite dynamic
48 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
49 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
50 of dynamic section short-cuts. Reorganise .plt handling code.
51 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
52 Move expressions out of swap_reloca_out function calls.
53 (ppc64_elf_reloc_type_class): New function.
54 (ppc64_elf_info_to_howto): Move common expression to local var.
55 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
56 of dynamic section short-cuts. Don't fiddle with section syms
57 here as the ELF linker does it for us.
58 (elf_backend_can_refcount): Define.
59 (bfd_elf64_bfd_link_hash_table_create): Define.
60 (elf_backend_copy_indirect_symbol): Define.
61 (elf_backend_reloc_type_class): Define.
62 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
64 2001-09-29 Alan Modra <amodra@bigpond.net.au>
66 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
67 (struct elf_backend_data): Add can_refcount.
68 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
69 got.refcount and plt.refcount from init_refcount.
70 (_bfd_elf_link_hash_table_init): Set up init_refcount.
71 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
72 rather than got/plt.offset, and test for <= 0 rather than -1.
73 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
74 * elfxx-target.h (elf_backend_can_refcount): Define.
75 (elfNN_bed): Init can_refcount.
76 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
77 (_bfd_generic_link_hash_newfunc): Likewise.
78 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
80 (elf_backend_can_refcount): Define.
81 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
83 (elf32_hppa_copy_indirect_symbol): Make static to agree with
85 (elf_backend_can_refcount): Define.
86 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
88 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
89 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
90 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
91 (elf_backend_can_refcount): Define.
92 (elf_i386_copy_indirect_symbol): Make static to agree with
93 prototype. Formatting fix.
94 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
96 (elf_backend_can_refcount): Define.
97 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
99 (elf_backend_can_refcount): Define.
100 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
102 (elf_backend_can_refcount): Define.
103 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
105 (elf_backend_can_refcount): Define.
106 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
108 (elf_backend_can_refcount): Define.
110 * som.c (som_write_symbol_strings): Cast current_offset in
111 bfd_seek call to match param type.
113 2001-09-28 J. Brobecker <brobecker@gnat.com>
115 * som.c (som_write_symbol_strings): Fix incorrect type of
116 current_offset to match the function definition. Fixes a build
117 failure on HPUX-11.00.
119 2001-09-28 Richard Henderson <rth@redhat.com>
121 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
122 SEC_MERGE, SEC_STRINGS.
124 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
125 * bfd-in2.h: Rebuild.
127 2001-09-28 Alan Modra <amodra@bigpond.net.au>
129 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
130 reloc code using x86_64_reloc_map.
132 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
133 no longer allocate here. Localise some vars to blocks where they
135 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
136 setting of vars until needed.
137 (allocate_dynrelocs): Don't create a .plt entry without a reloc
138 when symbol visibilty makes a function local.
139 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
140 swap_reloca_out function calls.
141 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
142 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
145 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
146 no longer allocate here. Localise some vars to blocks where they
147 are used. Remove separate switch stmt for creating .got sec.
148 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
149 redundant casts and aborts. Delay setting of vars until needed.
150 (allocate_dynrelocs): Remove redundant casts and aborts.
151 (elf_i386_size_dynamic_sections): Move comment.
152 (elf_i386_finish_dynamic_symbol): Move expressions out of function
154 (elf_i386_relocate_section): Likewise. Comment typo fix.
155 (elf_i386_finish_dynamic_sections): Migrate common code out of
157 (elf_backend_* defines): Sort.
159 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
160 without a reloc when symbol visibilty makes a function local.
162 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
164 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
165 conflicting float flags.
167 2001-09-26 Alan Modra <amodra@bigpond.net.au>
169 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
170 (elf_backend_copy_indirect_symbol): Define.
171 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
172 (struct elf_i386_link_hash_table): Likewise.
173 (link_hash_newfunc): Get rid of unnecessary casts.
174 (elf_i386_link_hash_table_create): Likewise.
175 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
176 Don't test input section SEC_READONLY here to try to avoid copy
177 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
178 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
179 here to properly test whether we need copy relocs. Do so for weak
182 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
183 (elf_backend_copy_indirect_symbol): Define.
184 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
185 (stub_hash_newfunc): Get rid of unnecessary casts.
186 (hppa_link_hash_newfunc): Likewise.
187 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
188 Don't test input section SEC_READONLY here to try to avoid copy
189 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
190 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
191 here to properly test whether we need copy relocs. Do so for weak
194 2001-09-26 Alan Modra <amodra@bigpond.net.au>
196 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
197 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
198 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
200 2001-09-25 Jakub Jelinek <jakub@redhat.com>
202 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
205 2001-09-25 H.J. Lu <hjl@gnu.org>
207 * bfd-in2.h: Regenerated.
209 2001-09-25 Alan Modra <amodra@bigpond.net.au>
211 * elf32-i386.c: Add comment re linker function names and ordering.
212 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
213 (elf_i386_grok_prstatus): Move before linker functions.
214 (elf_i386_grok_psinfo): Likewise.
215 (elf_i386_fake_sections): Move so that functions are ordered.
216 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
218 2001-09-25 Alan Modra <amodra@bigpond.net.au>
220 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
223 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
224 code handling this option.
225 (LONG_BRANCH_VIA_PLT): Likewise.
226 (RELATIVE_DYNRELOCS): Define as zero.
227 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
228 "pc_count" fields. Remove "section" field.
229 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
230 (elf32_hppa_check_relocs): Don't allocate space for dynamic
231 relocs here. Instead, record all needed dynamic relocs via
232 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
234 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
235 (allocate_plt_and_got_and_discard_relocs): Rename to
236 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
237 (readonly_dynrelocs): New function.
238 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
239 Call readonly_dynrelocs to determine need for DT_TEXTREL.
240 Rename "i" to "ibfd". Allocate space for local dyn relocs.
241 (elf32_hppa_relocate_section): Make use of cached sreloc.
242 (elf32_hppa_reloc_type_class): New function.
243 (elf_backend_reloc_type_class): Define.
245 2001-09-25 Alan Modra <amodra@bigpond.net.au>
247 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
249 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
250 "pc_count" fields. Remove "section" field.
251 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
252 allocate space for dynamic relocs here. Instead, record all
253 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
254 pointer to "sreloc" section in elf_section_data.
255 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
256 (allocate_plt_and_got_and_discard_relocs): Rename to
257 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
258 (readonly_dynrelocs): New function.
259 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
260 Rename "i" to "ibfd". Allocate space for local dyn relocs.
261 (elf_i386_relocate_section): Make use of cached sreloc.
263 2001-09-24 Alan Modra <amodra@bigpond.net.au>
265 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
266 reloc rather than just the type.
267 (_bfd_elf_reloc_type_class): Likewise.
268 * elf.c (_bfd_elf_reloc_type_class): Likewise.
269 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
270 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
271 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
272 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
273 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
274 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
275 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
276 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
277 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
278 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
279 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
280 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
281 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
282 * elflink.h: Formatting fixes.
283 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
284 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
285 o->contents to PTR. Update call to elf_backend_reloc_type_class.
287 2001-09-22 John Reiser <jreiser@BitWagon.com>
289 * elfcode.h (elf_object_p): Allow for no section header at all in
290 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
292 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
294 * elfxx-ia64.c: Fix compile time warning messages.
295 * coff-mcore.c: Fix compile time warning messages.
296 * coff-ppc.c: Fix compile time warning messages.
297 * coffcode.h: Fix compile time warning messages.
298 * elf32-mips.c: Fix compile time warning messages.
299 * elf64-alpha.c: Fix compile time warning messages.
300 * libbfd.c: Fix compile time warning messages.
301 * bfd-in2.h: Regenerate.
303 2001-09-21 Alan Modra <amodra@bigpond.net.au>
305 * Makefile.am: Run "make dep-am".
306 * Makefile.in: Regenerate.
308 * aoutx.h: Formatting fixes.
309 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
311 * linker.c: Replace bfd_get_filename with bfd_archive_filename
314 2001-09-21 Alan Modra <amodra@bigpond.net.au>
316 * bfd.c (bfd_archive_filename): New function.
317 * bfd-in2.h: Regenerate.
318 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
319 in error messages where the bfd is an input bfd.
320 * aout-cris.c: Likewise.
321 * coff-arm.c: Likewise.
322 * coff-mcore.c: Likewise.
323 * coff-ppc.c: Likewise.
324 * coff-rs6000.c: Likewise.
325 * coff-sh.c: Likewise.
326 * coff-tic54x.c: Likewise.
327 * coff-tic80.c: Likewise.
328 * coff64-rs6000.c: Likewise.
329 * coffcode.h: Likewise.
330 * coffgen.c: Likewise.
331 * cofflink.c: Likewise.
332 * ecofflink.c: Likewise.
333 * elf-hppa.h: Likewise.
335 * elf32-arm.h: Likewise.
336 * elf32-cris.c: Likewise.
337 * elf32-gen.c: Likewise.
338 * elf32-hppa.c: Likewise.
339 * elf32-i370.c: Likewise.
340 * elf32-i386.c: Likewise.
341 * elf32-m32r.c: Likewise.
342 * elf32-mcore.c: Likewise.
343 * elf32-mips.c: Likewise.
344 * elf32-ppc.c: Likewise.
345 * elf32-s390.c: Likewise.
346 * elf32-sh.c: Likewise.
347 * elf32-sparc.c: Likewise.
348 * elf32-v850.c: Likewise.
349 * elf64-alpha.c: Likewise.
350 * elf64-gen.c: Likewise.
351 * elf64-ppc.c: Likewise.
352 * elf64-s390.c: Likewise.
353 * elf64-sparc.c: Likewise.
354 * elf64-x86-64.c: Likewise.
355 * elflink.h: Likewise.
356 * elfxx-ia64.c: Likewise.
359 * libbfd.c: Likewise.
361 * pe-mips.c: Likewise.
362 * peicode.h: Likewise.
364 * xcofflink.c: Likewise.
366 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
368 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
371 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
374 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
375 Consolidate error messages, and split long messages to two lines.
377 2001-09-20 John Reiser <jreiser@BitWagon.com>
379 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
380 and info->allow_shlib_undefined.
381 * elf32-cris.c: Likewise.
382 * elf32-hppa.c: Likewise.
383 * elf32-m68k.c: Likewise.
384 * elf32-mips.c: Likewise.
385 * elf32-ppc.c: Likewise.
386 * elf32-s390.c: Likewise.
387 * elf32-sh.c: Likewise.
388 * elf32-sparc.c: Likewise.
389 * elf64-alpha.c: Likewise.
390 * elf64-hppa.c: Likewise.
391 * elf64-ppc.c: Likewise.
392 * elf64-s390.c: Likewise.
393 * elf64-sparc.c: Likewise.
394 * elf64-x86-64.c: Likewise.
395 * elfxx-ia64.c: Likewise.
397 2001-09-18 Bruno Haible <haible@clisp.cons.org>
399 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
400 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
401 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
402 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
403 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
404 (bfd_default_scan): Use ISDIGIT instead of isdigit.
405 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
406 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
407 isxdigit/isdigit/islower.
408 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
409 (mangle_name): Use ISALNUM instead of isalnum.
410 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
411 (scan): Use ISDIGIT instead of isdigit.
412 * hosts/alphavms.h: Don't include <ctype.h>.
413 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
414 (ieee_object_p): Use TOUPPER instead of toupper.
415 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
416 (ihex_bad_byte): Use ISPRINT instead of isprint.
417 * merge.c: Don't include <ctype.h>.
418 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
419 (oasys_write_sections): Use ISDIGIT instead of isdigit.
420 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
421 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
422 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
423 (mangle_name): Use ISALNUM instead of isalnum.
424 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
425 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
426 isupper/islower/isdigit.
427 (som_decode_symclass): Use TOUPPER instead of toupper.
428 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
429 (srec_bad_byte): Use ISPRINT instead of isprint.
430 (srec_scan): Use ISSPACE instead of isspace.
431 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
432 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
433 * syms.c: Include "safe-ctype.h"
434 (islower, toupper): Remove macro definitions.
435 (bfd_decode_symclass): Use TOUPPER instead of toupper.
436 * vms-gsd.c: Don't include <ctype.h>.
437 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
438 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
440 * vms-tir.c: Don't include <ctype.h>.
442 2001-09-18 Alan Modra <amodra@bigpond.net.au>
444 * libbfd.c (bfd_bread): New function replacing bfd_read without
445 redundant params. Allow reads up to (size_t) -2 in length.
446 (bfd_bwrite): Similarly for bfd_write.
447 (real_read): Return a size_t.
448 (bfd_read): Call bfd_bread.
449 (bfd_write): Call bfd_bwrite.
450 (warn_deprecated): New function to annoy everybody.
451 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
452 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
453 (bfd_read, bfd_write): Define as macro.
454 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
455 likewise for bfd_write. Ensure function args are correct size by
456 using casts or local vars. In some cases, remove unnecessary
457 casts. Formatting fixes, in some cases removing a large expression
458 from function args by using a local var. Replace CONST with const.
459 Modify variable types to avoid warings. Use casts to avoid
460 warnings when using negative numbers in unsigned expressions.
461 * aout-adobe.c: Likewise.
462 * aout-arm.c: Likewise.
463 * aout-cris.c: Likewise.
464 * aout-encap.c: Likewise.
465 * aout-ns32k.c: Likewise.
466 * aout-target.h: Likewise.
467 * aout-tic30.c: Likewise.
468 * aoutf1.h: Likewise.
470 * archive.c: Likewise.
471 * archures.c: Likewise.
472 * bfd-in.h: Likewise.
474 * binary.c: Likewise.
477 * cisco-core.c: Likewise.
478 * coff-a29k.c: Likewise.
479 * coff-alpha.c: Likewise.
480 * coff-arm.c: Likewise.
481 * coff-h8300.c: Likewise.
482 * coff-h8500.c: Likewise.
483 * coff-i386.c: Likewise.
484 * coff-i860.c: Likewise.
485 * coff-i960.c: Likewise.
486 * coff-ia64.c: Likewise.
487 * coff-m68k.c: Likewise.
488 * coff-m88k.c: Likewise.
489 * coff-mcore.c: Likewise.
490 * coff-mips.c: Likewise.
491 * coff-ppc.c: Likewise.
492 * coff-rs6000.c: Likewise.
493 * coff-sh.c: Likewise.
494 * coff-sparc.c: Likewise.
495 * coff-stgo32.c: Likewise.
496 * coff-tic30.c: Likewise.
497 * coff-tic54x.c: Likewise.
498 * coff-tic80.c: Likewise.
499 * coff-w65.c: Likewise.
500 * coff-z8k.c: Likewise.
501 * coff64-rs6000.c: Likewise.
502 * coffcode.h: Likewise.
503 * coffgen.c: Likewise.
504 * cofflink.c: Likewise.
505 * coffswap.h: Likewise.
506 * corefile.c: Likewise.
507 * cpu-arc.c: Likewise.
508 * cpu-h8300.c: Likewise.
509 * cpu-h8500.c: Likewise.
510 * cpu-i960.c: Likewise.
511 * cpu-ia64-opc.c: Likewise.
512 * cpu-ns32k.c: Likewise.
513 * cpu-pdp11.c: Likewise.
514 * cpu-pj.c: Likewise.
515 * cpu-sh.c: Likewise.
516 * cpu-w65.c: Likewise.
517 * cpu-z8k.c: Likewise.
518 * dwarf1.c: Likewise.
519 * dwarf2.c: Likewise.
521 * ecofflink.c: Likewise.
522 * ecoffswap.h: Likewise.
523 * elf-bfd.h: Likewise.
524 * elf-hppa.h: Likewise.
525 * elf-m10200.c: Likewise.
526 * elf-m10300.c: Likewise.
528 * elf32-arc.c: Likewise.
529 * elf32-arm.h: Likewise.
530 * elf32-avr.c: Likewise.
531 * elf32-cris.c: Likewise.
532 * elf32-fr30.c: Likewise.
533 * elf32-gen.c: Likewise.
534 * elf32-h8300.c: Likewise.
535 * elf32-hppa.c: Likewise.
536 * elf32-i370.c: Likewise.
537 * elf32-i386.c: Likewise.
538 * elf32-i860.c: Likewise.
539 * elf32-m32r.c: Likewise.
540 * elf32-m68k.c: Likewise.
541 * elf32-mcore.c: Likewise.
542 * elf32-mips.c: Likewise.
543 * elf32-openrisc.c: Likewise.
544 * elf32-pj.c: Likewise.
545 * elf32-ppc.c: Likewise.
546 * elf32-s390.c: Likewise.
547 * elf32-sh-lin.c: Likewise.
548 * elf32-sh.c: Likewise.
549 * elf32-sparc.c: Likewise.
550 * elf32-v850.c: Likewise.
551 * elf64-alpha.c: Likewise.
552 * elf64-hppa.c: Likewise.
553 * elf64-mips.c: Likewise.
554 * elf64-ppc.c: Likewise.
555 * elf64-s390.c: Likewise.
556 * elf64-sparc.c: Likewise.
557 * elf64-x86-64.c: Likewise.
558 * elfarm-nabi.c: Likewise.
559 * elfcode.h: Likewise.
560 * elfcore.h: Likewise.
561 * elflink.c: Likewise.
562 * elflink.h: Likewise.
563 * elfxx-ia64.c: Likewise.
564 * elfxx-target.h: Likewise.
565 * format.c: Likewise.
567 * hp300hpux.c: Likewise.
568 * hppabsd-core.c: Likewise.
569 * hpux-core.c: Likewise.
570 * i386aout.c: Likewise.
571 * i386dynix.c: Likewise.
572 * i386linux.c: Likewise.
573 * i386lynx.c: Likewise.
574 * i386mach3.c: Likewise.
575 * i386msdos.c: Likewise.
576 * i386os9k.c: Likewise.
579 * irix-core.c: Likewise.
580 * libaout.h: Likewise.
581 * libbfd-in.h: Likewise.
582 * libbfd.c: Likewise.
583 * libcoff-in.h: Likewise.
584 * libecoff.h: Likewise.
585 * libieee.h: Likewise.
586 * libnlm.h: Likewise.
587 * libpei.h: Likewise.
588 * libxcoff.h: Likewise.
589 * linker.c: Likewise.
590 * lynx-core.c: Likewise.
591 * m68klinux.c: Likewise.
593 * mipsbsd.c: Likewise.
594 * netbsd-core.c: Likewise.
596 * nlm32-alpha.c: Likewise.
597 * nlm32-i386.c: Likewise.
598 * nlm32-ppc.c: Likewise.
599 * nlm32-sparc.c: Likewise.
600 * nlmcode.h: Likewise.
601 * nlmswap.h: Likewise.
604 * opncls.c: Likewise.
605 * osf-core.c: Likewise.
606 * pc532-mach.c: Likewise.
608 * pe-mips.c: Likewise.
609 * peXXigen.c: Likewise.
610 * peicode.h: Likewise.
611 * ppcboot.c: Likewise.
612 * ptrace-core.c: Likewise.
614 * reloc16.c: Likewise.
615 * riscix.c: Likewise.
616 * rs6000-core.c: Likewise.
617 * sco5-core.c: Likewise.
618 * section.c: Likewise.
620 * sparclinux.c: Likewise.
621 * sparclynx.c: Likewise.
626 * targets.c: Likewise.
627 * tekhex.c: Likewise.
628 * trad-core.c: Likewise.
629 * versados.c: Likewise.
630 * vms-gsd.c: Likewise.
631 * vms-hdr.c: Likewise.
632 * vms-misc.c: Likewise.
633 * vms-tir.c: Likewise.
636 * xcofflink.c: Likewise.
637 * bfd-in2.h: Regenerate.
638 * libbfd.h: Regenerate.
639 * libcoff.h: Regenerate.
641 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
642 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
644 (bfd_tell): Return a ufile_ptr.
645 * libbfd.c (bfd_tell): Likewise.
646 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
648 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
649 * aoutf1.h: Likewise.
651 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
652 larger than unsigned long can represent.
654 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
655 size overflows size_t.
656 (bfd_realloc): Likewise.
657 (bfd_zmalloc): Likewise.
658 * opncls.c (bfd_alloc): Likewise.
659 (bfd_zalloc): Likewise.
660 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
661 (bfd_alloc, bfd_zalloc): Update.
663 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
665 (bfd_get_signed_8): Likewise.
666 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
667 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
668 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
669 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
670 * libaout.h: Likewise define and use here.
671 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
672 * aout-arm.c: Likewise.
673 * aout-encap.c: Likewise.
674 * aout-ns32k.c: Likewise.
675 * aout-tic30.c: Likewise.
676 * aoutf1.h: Likewise.
679 * coff-alpha.c: Likewise.
680 * coff-h8300.c: Likewise.
681 * coff-h8500.c: Likewise.
682 * coff-i960.c: Likewise.
683 * coff-ia64.c: Likewise.
684 * coff-m88k.c: Likewise.
685 * coff-mips.c: Likewise.
686 * coff-ppc.c: Likewise.
687 * coff-rs6000.c: Likewise.
688 * coff-sh.c: Likewise.
689 * coff-sparc.c: Likewise.
690 * coff-stgo32.c: Likewise.
691 * coff-tic30.c: Likewise.
692 * coff-tic80.c: Likewise.
693 * coff-w65.c: Likewise.
694 * coff-z8k.c: Likewise.
695 * coff64-rs6000.c: Likewise.
696 * coffgen.c: Likewise.
697 * cofflink.c: Likewise.
698 * coffswap.h: Likewise.
700 * ecoffswap.h: Likewise.
702 * elf32-mips.c: Likewise.
703 * elf64-mips.c: Likewise.
704 * hp300hpux.c: Likewise.
705 * i386dynix.c: Likewise.
706 * i386lynx.c: Likewise.
707 * i386msdos.c: Likewise.
708 * i386os9k.c: Likewise.
709 * libpei.h: Likewise.
710 * nlm32-alpha.c: Likewise.
711 * nlm32-i386.c: Likewise.
712 * nlm32-ppc.c: Likewise.
713 * nlmcode.h: Likewise.
714 * nlmswap.h: Likewise.
717 * pe-mips.c: Likewise.
718 * peXXigen.c: Likewise.
719 * peicode.h: Likewise.
720 * riscix.c: Likewise.
722 * xcofflink.c: Likewise.
723 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
724 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
725 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
726 equivalent H_PUT_* macro instead.
727 (GETWORD, GETHALF, GETBYTE): Similarly.
728 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
729 (GETWORD, GETHALF, GETBYTE): Likewise.
730 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
732 * bfd-in.h (struct orl): Change "pos" to a union.
733 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
734 (bsd_write_armap): Here too.
735 (coff_write_armap): And here.
736 * coff-rs6000.c (xcoff_write_armap_old): And here.
737 (xcoff_write_one_armap_big): And here.
738 (xcoff_write_armap_big): And here.
739 * ecoff.c (_bfd_ecoff_write_armap): And here.
740 * elf64-mips.c (mips_elf64_write_armap): And here.
742 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
743 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
744 * elf32-h8300.c (elf32_h8_mach): Likewise.
745 * elf32-mips.c (elf_mips_mach): Likewise.
746 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
748 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
750 (aix386_core_vec): Typo fix.
752 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
753 etc. to avoid redefined macro warning.
754 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
755 (MY(fix_pcrel_26)): Likewise.
756 * aout-ns32k.c (MY(put_reloc)): Likewise.
757 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
758 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
759 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
761 * aout-encap.c: Include "file", not <file> for binutils headers.
762 (encap_object_p): Half baked attempt to fix compile errors in
763 code dealing with "magic".
765 * aout-ns32k.c: Include "file", not <file> for binutils headers.
766 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
767 bfd_vma's rather than longs.
768 * cpu-ns32k.c (ns32k_sign_extend): Delete.
769 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
770 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
772 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
773 Use unsigned comparisons.
774 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
775 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
776 (_bfd_do_ns32k_reloc_contents): Likewise.
777 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
778 (_bfd_ns32k_get_immediate): Likewise.
779 (_bfd_ns32k_put_displacement): Likewise.
780 (_bfd_ns32k_put_immediate): Likewise.
781 (bfd_reloc_status_type): Likewise.
783 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
785 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
786 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
787 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
789 (record_toc): Use a bfd_signed_vma for our_toc_offset.
790 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
791 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
793 (_bfd_elfcore_strndup): Likewise for "dup".
794 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
795 "name" to avoid shadowing.
796 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
798 * elf32-i386.c (elf_i386_relocate_section): Likewise.
799 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
801 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
803 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
805 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
807 (elf_link_input_bfd): Likewise.
808 (elf_bfd_final_link): Remove duplicate innermost "off" var.
809 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
810 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
812 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
813 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
814 (sunos_write_dynamic_symbol): Remove unused vars.
815 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
816 innermost "directory_name" and "file_name" vars.
817 * tekhex.c (first_phase): Rename local var "type" to "stype".
818 (tekhex_write_object_contents): Rename innermost "s" to "sym".
819 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
820 doing comparison at caller.
821 (vms_esecflag_by_name): Likewise.
822 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
823 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
824 (xcoff_write_global_symbol): Rename "p" param to "inf".
826 * cisco-core.c: Add missing prototypes.
827 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
828 (cisco_core_file_failing_signal): Likewise.
829 (cisco_core_file_matches_executable_p): Likewise.
830 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
831 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
832 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
833 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
835 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
836 thumb_glue_size and arm_glue_size.
837 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
839 * coff64-rs6000.c: Group prototypes together.
841 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
842 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
844 * cpu-arc.c: Add missing prototypes.
845 * cpu-h8500.c: Likewise.
846 * cpu-i960.c: Likewise.
847 * cpu-pj.c: Likewise.
848 * cpu-sh.c: Likewise.
849 * cpu-w65.c: Likewise.
850 * cpu-z8k.c: Likewise.
851 * elf32-fr30.c: Likewise.
852 * elf32-h8300.c: Likewise.
853 * elf32-i370.c: Likewise.
854 * hpux-core.c: Likewise.
855 * versados.c: Likewise.
857 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
858 * cpu-h8500.c: Likewise.
859 * cpu-i960.c: Likewise.
860 * cpu-z8k.c: Likewise.
862 * cpu-ia64-opc.c: Correct comment.
864 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
866 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
868 (bfd_elf32_write_out_phdrs): Likewise.
869 (bfd_elf64_write_out_phdrs): Likewise.
870 (elf_linker_section_pointers): Change addend to bfd_vma.
871 (_bfd_elf_find_pointer_linker_section): Likewise.
872 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
873 filepos to unsigned file_ptr.
874 (_bfd_elfcore_strndup): Change max param to size_t.
875 * elf.c (_bfd_elfcore_make_pseudosection): As above.
876 (_bfd_elfcore_strndup): Likewise.
877 (_bfd_elf_find_pointer_linker_section): Likewise.
879 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
880 insn and sym_value to ints.
882 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
884 (elfcore_read_notes): Likewise.
886 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
887 param from unsigned char to int.
888 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
889 for info_to_howto call.
890 (add_dynamic_entry): Define macro.
891 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
893 * elf32-cris.c (add_dynamic_entry): Define macro.
894 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
896 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
897 (elf32_h8_object_p): Likewise.
898 (elf32_h8_merge_private_bfd_data): Likewise.
899 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
901 * elf32-hppa.c (add_dynamic_entry): Define macro.
902 (elf32_hppa_size_dynamic_sections): Use it.
903 * elf32-i370.c (add_dynamic_entry): Define macro.
904 (i370_elf_size_dynamic_sections): Use it.
905 (i370_noop): Make static.
906 * elf32-i386.c (add_dynamic_entry): Define macro.
907 (elf_i386_size_dynamic_sections): Use it.
908 * elf32-m68k.c (add_dynamic_entry): Define macro.
909 (elf_m68k_size_dynamic_sections): Use it.
910 * elf32-ppc.c (add_dynamic_entry): Define macro.
911 (ppc_elf_size_dynamic_sections): Use it.
912 * elf32-s390.c (add_dynamic_entry): Define macro.
913 (elf_s390_size_dynamic_sections): Use it.
914 * elf64-alpha.c (add_dynamic_entry): Define macro.
915 (elf64_alpha_size_dynamic_sections): Use it.
916 * elf64-hppa.c (add_dynamic_entry): Define macro.
917 (elf64_hppa_size_dynamic_sections): Use it.
918 * elf64-ppc.c (add_dynamic_entry): Define macro.
919 (ppc64_elf_size_dynamic_sections): Use it.
920 * elf64-s390.c (add_dynamic_entry): Define macro.
921 (elf_s390_size_dynamic_sections): Use it.
922 * elf64-sparc.c (add_dynamic_entry): Define macro.
923 (sparc64_elf_size_dynamic_sections): Use it.
924 * elf64-x86-64.c (add_dynamic_entry): Define macro.
925 (elf64_x86_64_size_dynamic_sections): Use it.
926 * elfxx-ia64.c (add_dynamic_entry): Define macro.
927 (elfNN_ia64_size_dynamic_sections): Use it.
929 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
930 (v850_elf_perform_relocation): Make "r_type" param unsigned.
932 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
933 false if the first malloc fails rather than going via error_return.
935 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
937 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
939 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
941 * elfxx-ia64.c (global_sym_index): Return a long.
943 * ieee.c (get_symbol): Use int rather than char param.
944 (ieee_slurp_sections): Move "section" var to inner blocks.
945 (copy_expression): Don't init "value" to zero or worry about
946 clearing to zero after using.
947 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
950 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
953 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
954 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
956 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
958 * pc532-mach.c (MYNSX): Delete.
959 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
960 (write_object_contents): Correct prototype.
962 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
965 * section.c (bfd_set_section_contents): Remove redundant
966 "offset < 0" test. Check that "count" doesn't overflow size_t.
967 (bfd_get_section_contents): Likewise.
969 * som.c (som_fixup_formats): Add missing braces.
970 (som_reloc_addend): Pass a bfd_vma for "addend".
972 * srec.c (srec_write_record): Pass "type" as an unsigned int.
973 (srec_write_symbols): Remove an unnecessary var.
975 * targets.c (_bfd_target_vector): Sort entries. Sort externs
977 * configure.in: Sort to match. Bump version number.
978 * configure: Regenerate.
980 * tekhex.c (move_section_contents): Assert offset == 0.
982 * versados.c (new_symbol_string): Constify arg.
983 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
984 (versados_get_symbol_info): Make static.
985 (versados_print_symbol): Likewise.
986 (versados_get_reloc_upper_bound): Likewise.
987 (versados_canonicalize_reloc): Likewise.
989 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
991 * elflink.h (elf_link_input_bfd): Fix typo in error message.
993 2001-09-17 H.J. Lu <hjl@gnu.org>
995 * dwarf1.c (parse_die): Take a new arg for the end of the
996 section. Return false if die is beyond the section.
997 (parse_functions_in_unit): Pass the end of the section to
999 (_bfd_dwarf1_find_nearest_line): Likewise.
1001 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1003 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1004 just like R_SPARC_32.
1006 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1008 * configure.bfd: Add arm-openbsd target.
1010 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1012 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1013 Add support for mips64.
1015 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1017 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1019 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1021 * elf.c (prep_headers): Get the machine code from the elf
1023 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1024 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1025 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1026 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1027 * elf-arc.c (arc_elf_final_write_processing): Don't override
1028 e_machine, it's now properly set in prep_headers.
1029 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1031 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1032 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1033 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1034 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1035 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1036 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1037 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1038 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1039 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1040 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1041 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1042 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1044 2001-09-11 Richard Henderson <rth@redhat.com>
1046 * elf64-alpha.c (elf64_alpha_section_flags): New.
1047 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1049 2001-09-11 Richard Henderson <rth@redhat.com>
1051 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1052 apply HINT relocations against dynamic symbols.
1054 2001-09-11 H.J. Lu <hjl@gnu.org>
1056 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1058 2001-09-09 Richard Henderson <rth@redhat.com>
1060 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1062 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1063 following a call to a near function.
1065 2001-09-08 Richard Henderson <rth@redhat.com>
1067 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1068 relocation errors. Fail gp-relative relocations against
1071 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1073 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1074 as well as DEF_DYNAMIC in test for avoided copy relocs.
1075 (allocate_plt_and_got_and_discard_relocs): Likewise.
1076 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1077 (allocate_plt_and_got_and_discard_relocs): Likewise.
1079 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1081 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1084 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1086 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1088 (mips_elf64_howto_table_rel): Likewise.
1090 2001-09-05 Tom Rix <trix@redhat.com>
1092 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1093 and syscall symbols.
1094 (write_global_symbol) : Same.
1095 (bfd_xcoff_export_symbol): Remove unused syscall param.
1096 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1097 bfd_xcoff_import_symbol.
1099 * bfd-in2.h : Regenerate.
1101 2001-09-04 Richard Henderson <rth@redhat.com>
1103 * elf64-alpha.c (SKIP_HOWTO): New.
1104 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1105 Fix sizes of 16-bit mem format relocs.
1106 (elf64_alpha_reloc_map): Update to match.
1107 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1108 (elf64_alpha_relax_without_lituse): Likewise.
1109 (elf64_alpha_check_relocs): Handle GPREL16.
1110 (elf64_alpha_relocate_section): Likewise.
1111 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1112 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1113 * bfd-in2.h, libbfd.h: Rebuild.
1115 2001-09-04 Jeff Law <law@redhat.com>
1117 * elf32-h8300.c (elf32_h8_relax_section): New function.
1118 (elf32_h8_relax_delete_bytes): Likewise.
1119 (elf32_h8_symbol_address_p): Likewise.
1120 (elf32_h8_get_relocated_section_contents): Likewise.
1121 (bfd_elf32_bfd_relax_section): Define.
1122 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1124 * elf32-h8300.c (special): New function.
1125 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1127 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1128 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1129 Fix minor problems with 8bit and 16bit PC relative relocations.
1131 2001-09-01 Andreas Jaeger <aj@suse.de>
1133 * vms-tir.c: Add missing prototypes.
1134 * vms-hdr.c: Likewise.
1135 * vms-gsd.c: Likewise.
1136 * vms-misc.c: Likewise.
1138 2001-08-31 H.J. Lu <hjl@gnu.org>
1140 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1141 with bad relocation.
1143 2001-08-31 Eric Christopher <echristo@redhat.com>
1144 Jason Eckhardt <jle@redhat.com>
1146 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1147 mips32_4k and mips64.
1148 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1149 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1150 * bfd/cpu-mips.c: Ditto.
1151 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1152 * bfd/bfd-in2.h: Regenerate.
1154 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1156 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1157 value into R_ALPHA_RELATIVE's addend.
1158 (elf64_alpha_finish_dynamic_symbol): Likewise.
1160 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1162 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1163 recomputed addend during relocatable link if not USE_REL.
1165 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1168 2001-08-30 H.J. Lu <hjl@gnu.org>
1170 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1172 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1173 relocations for weak definitions.
1175 2001-08-30 H.J. Lu <hjl@gnu.org>
1177 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1178 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1179 * Makefile.in: Rebuild.
1181 2001-08-30 H.J. Lu <hjl@gnu.org>
1183 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1184 dynamic relocation for undefined weak symbols when creating
1185 executables. Check h->root.root.type, instead of h->root.type.
1187 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1189 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1190 default from coff to elf.
1192 2001-08-29 Jeff Law <law@redhat.com>
1194 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1196 (h8_reloc_map): Similarly.
1197 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1198 Add support for PC relative relocations.
1200 * elf32-h8300.c: Put all prototypes together.
1201 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1202 (elf32_h8_final_link_relocate): New function for linker.
1203 (elf32_h8_relocate_section): Similarly.
1204 (elf_backend_relocate_section): Define.
1206 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1207 (h8300_scan): Handle architecture:machine encodings typically
1208 found in linker scripts.
1209 * elf.c (prep_headers): Do not try to do H8 machine recognition
1211 * elf32-h8300.c: Add some missing prototypes.
1212 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1213 (elf32_h8_object_p): Similarly.
1215 2001-08-29 Tom Rix <trix@redhat.com>
1217 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1218 does not follow a XTY_SD.
1220 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1222 * targmatch.sed: Delete case statements.
1223 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1226 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1228 * Makefile.am (elf32-h8300.lo): New target.
1229 * config.bfd (h8300*-*-elf): New case.
1230 * configure.in (bfd_elf32_h8300_vec): New case.
1231 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1232 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1233 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1234 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1235 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1236 * elf32-h8300.c: New file.
1237 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1239 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1241 * sparclynx.c: Add missing prototypes.
1242 * coff-mcore.c: Add missing prototypes.
1243 * elf32-pj.c: Add missing prototypes.
1244 * nlm32-sparc.c: Add missing prototypes.
1245 * oasys.c: Add missing prototypes.
1246 * pdp11.c: Add missing prototypes.
1247 * pe-mips.c: Add missing prototypes.
1248 * riscix.c: Add missing prototypes.
1250 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1252 * elf32-i386.c: Add missing prototypes.
1253 * elf32-ppc.c: Likewise.
1254 * elf32-sh-lin.c: Likewise.
1255 * elfarm-nabi.c: Likewise.
1257 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1259 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1260 (elf_i386_grok_psinfo): New function.
1261 (elf_backend_grok_prstatus): Define.
1262 (elf_backend_grok_psinfo): Likewise.
1263 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1264 (ppc_elf_grok_psinfo): New function.
1265 (elf_backend_grok_prstatus): Define.
1266 (elf_backend_grok_psinfo): Likewise.
1267 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1268 (elf32_shlin_grok_psinfo): New function.
1269 (elf_backend_grok_prstatus): Define.
1270 (elf_backend_grok_psinfo): Likewise.
1271 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1272 (elf32_arm_nabi_grok_psinfo): New function.
1273 (elf_backend_grok_prstatus): Define.
1274 (elf_backend_grok_psinfo): Likewise.
1276 2001-08-27 H.J. Lu <hjl@gnu.org>
1278 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1280 (mips_elf_calculate_relocation): Create dynamic relocation for
1281 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1284 2001-08-27 H.J. Lu <hjl@gnu.org>
1286 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1287 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1288 (_bfd_elf32_mips_grok_prstatus): Likewise.
1289 (_bfd_elf32_mips_grok_psinfo): Likewise.
1290 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1291 `struct mips_elf_link_hash_entry *'.
1292 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1294 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1296 * mipsbsd.c: Add missing prototypes.
1297 * hp300hpux.c: Add missing prototypes.
1298 * i386aout.c: Add missing prototypes.
1299 * i386lynx.c: Add missing prototypes.
1300 * i386mach3.c: Add missing prototypes.
1301 * i386msdos.c: Add missing prototypes.
1302 * i386os9k.c: Add missing prototypes.
1304 2001-08-27 Linus Nordberg <linus@swox.se>
1305 Torbjorn Granlund <tege@swox.com>
1306 Staffan Ulfberg <staffanu@swox.se>
1307 Alan Modra <amodra@bigpond.net.au>
1309 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1310 targ64_selvecs for 32 bit powerpc targets.
1311 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1312 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1314 * Makefile.in: Regenerate.
1315 * configure.in: Add elf64_powerpc vecs.
1316 * configure: Regenerate.
1317 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1318 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1319 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1320 * elf64-ppc.c: New file.
1321 * reloc.c: Add powerpc64 relocs.
1322 * libbfd.h: Regenerate.
1323 * bfd-in2.h: Regenerate.
1325 2001-08-27 Andreas Schwab <schwab@suse.de>
1327 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1328 reloc is against read-only section.
1329 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1330 looking up section names for DT_TEXTREL.
1331 (elf32_m68k_reloc_type_class): New function.
1332 (elf_backend_reloc_type_class): Define.
1334 2001-08-27 Andreas Jaeger <aj@suse.de>
1336 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1337 reloc is against read-only section.
1338 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1339 looking up section names for DT_TEXTREL.
1340 (elf_s390_reloc_type_class): New.
1341 (elf_backend_reloc_type_class): Define.
1343 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1344 reloc is against read-only section.
1345 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1346 looking up section names for DT_TEXTREL.
1347 (elf_s390_reloc_type_class): New.
1348 (elf_backend_reloc_type_class): Define.
1350 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1351 is against read-only section.
1352 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1353 looking up section names for DT_TEXTREL.
1354 (ppc_elf_reloc_type_class): New.
1355 (elf_backend_reloc_type_class): Define.
1357 2001-08-26 Andreas Jaeger <aj@suse.de>
1359 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1360 reloc is against read-only section.
1361 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1362 looking up section names for DT_TEXTREL.
1363 (elf_cris_reloc_type_class): New.
1364 (elf_backend_reloc_type_class): Define.
1366 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1367 against read-only section.
1368 (elf_backend_reloc_type_class): Define.
1369 (sh_elf_reloc_type_class): New.
1370 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1371 looking up section names for DT_TEXTREL.
1373 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1374 reloc is against read-only section.
1375 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1376 looking up section names for DT_TEXTREL.
1377 (elf32_arm_reloc_type_class): New.
1378 (elf_backend_reloc_type_class): Define.
1380 2001-08-25 Andreas Jaeger <aj@suse.de>
1382 * oasys.c: Add missing prototypes.
1384 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1385 attribute for parameter.
1386 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1388 * versados.c (get_4): Make static.
1389 (get_10): Make static.
1390 Add missing prototypes.
1391 (process_esd): Fix call to versados_new_symbol.
1393 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1395 * coff-a29k.c: Add missing prototypes.
1396 * coff-apollo.c: Add missing prototypes.
1397 * coff-arm.c: Add missing prototypes.
1398 * coff-i860.c: Add missing prototypes.
1399 * coff-rs6000.c: Add missing prototypes.
1400 * coff-tic80.c: Add missing prototypes.
1401 * elf-m10200.c: Add missing prototypes.
1402 * elf-m10300.c: Add missing prototypes.
1403 * elf32-arm.h: Add missing prototypes.
1404 * elf32-d10v.c: Add missing prototypes.
1405 * elf32-m32r.c: Add missing prototypes.
1406 * elf32-mcore.c: Add missing prototypes.
1407 * elf32-openrisc.c: Add missing prototypes.
1408 * elf32-sh.c: Add missing prototypes.
1409 * elf32-sparc.c: Add missing prototypes.
1410 * elf32-v850.c: Add missing prototypes.
1411 * elfarm-nabi.c: Add missing prototypes.
1412 * elfarm-oabi.c: Add missing prototypes.
1414 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1416 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1417 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1419 2001-08-24 H.J. Lu <hjl@gnu.org>
1421 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1424 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1426 * elf-bfd.h (elf_hash_table): Revert definition.
1427 (is_elf_hash_table): New macro.
1428 * elflink.h (elf_link_add_object_symbols): Test
1429 is_elf_hash_table before accessing ELF only fields in hash
1431 (elf_link_create_dynamic_sections): Fail if not using an ELF
1433 (elf_add_dynamic_entry): Fail if not using an ELF hash
1435 (elf_link_record_local_dynamic_symbol): Fail if not using an
1437 (size_dynamic_sections): Fail if not using an ELF hash
1439 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1441 (elf_bfd_final_link): Fail if not using an ELF hash
1444 2001-08-24 H.J. Lu <hjl@gnu.org>
1446 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1447 table is not an ELF linker hash table.
1449 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1450 table type to bfd_link_elf_hash_table.
1452 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1455 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1456 table type to bfd_link_generic_hash_table.
1458 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1460 * bfd.c (bfd_alt_mach_code): New function.
1461 * bfd-in2.h: Rebuilt.
1463 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1465 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1466 `type' field in the hash entry when deciding whether to follow a
1469 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1471 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1473 (elf_link_sort_relocs): Adjust accordingly.
1475 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1476 (elf64_alpha_check_relocs): Set it if section this reloc is against
1477 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1479 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1480 is is against read-only section.
1481 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1482 check section names.
1483 (elf64_alpha_reloc_type_class): New.
1484 (elf_backend_reloc_type_class): Define.
1486 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1488 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1491 2001-08-23 Andreas Jaeger <aj@suse.de>
1493 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1494 the reloc is against read-only section.
1495 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1496 of looking up section names for DT_TEXTREL.
1497 (elf64_x86_64_reloc_type_class): New.
1498 (elf_backend_reloc_type_class): Define.
1500 2001-08-23 H.J. Lu <hjl@gnu.org>
1502 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1503 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1505 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1506 bfd_print_symbol_vandf.
1507 * coffgen.c (coff_print_symbol): Likewise.
1508 * elf.c (bfd_elf_print_symbol): Likewise.
1509 * ieee.c (ieee_print_symbol): Likewise.
1510 * nlmcode.h (nlm_print_symbol): Likewise.
1511 * oasys.c (oasys_print_symbol): Likewise.
1512 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1513 * som.c (som_print_symbol): Likewise.
1514 * srec.c (srec_print_symbol): Likewise.
1515 * tekhex.c (tekhex_print_symbol): Likewise.
1516 * versados.c (versados_print_symbol): Likewise.
1517 * vms.c (vms_print_symbol): Likewise.
1519 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1520 with bfd_fprintf_vma.
1521 (bfd_elf_print_symbol): Likewise.
1522 * syms.c (bfd_print_symbol_vandf): Likewise.
1524 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1526 * aoutf1.h (sunos_write_object_contents): Silence compile time
1528 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1530 * bout.c: Add missing function prototypes. Fix formatting.
1531 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1532 * coff-w65.c: Add missing function prototypes. Fix formatting.
1533 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1534 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1535 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1536 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1537 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1538 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1539 * coff-sh.c: Add missing function prototypes. Fix formatting.
1541 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1543 * elf-bfd.h (enum elf_reloc_type_class): New.
1544 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1545 (_bfd_elf_reloc_type_class): New.
1546 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1547 (elfNN_bed): Add elf_backend_reloc_type_class.
1548 * elf.c (_bfd_elf_reloc_type_class): New.
1549 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1550 is against read-only section.
1551 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1552 looking up section names for DT_TEXTREL.
1553 (elf_i386_reloc_type_class): New.
1554 (elf_backend_reloc_type_class): Define.
1555 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1556 reloc is against read-only section.
1557 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1558 looking up section names for DT_TEXTREL.
1559 (elf32_sparc_reloc_type_class): New.
1560 (elf_backend_reloc_type_class): Define.
1561 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1562 reloc is against read-only section.
1563 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1564 looking up section names for DT_TEXTREL.
1565 (sparc64_elf_reloc_type_class): New.
1566 (elf_backend_reloc_type_class): Define.
1567 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1568 (elfNN_ia64_hash_table_create): Clear ia64_info.
1569 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1571 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1572 instead of looking up section names for DT_TEXTREL.
1573 (elfNN_ia64_reloc_type_class): New.
1574 (elf_backend_reloc_type_class): Define.
1575 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1576 (struct elf_link_sort_rela): New.
1577 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1578 (elf_bfd_final_link): Call elf_link_sort_relocs.
1579 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1582 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1584 * configure.in (x86-bsdi): No corefile support.
1585 * configure: Regenerate.
1587 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1589 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1592 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1594 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1595 the alignment of dwarf2 linkonce sections to 0.
1596 * coff-sto32.c: Likewise.
1598 2001-08-20 Andreas Jaeger <aj@suse.de>
1600 * coff-sparc.c: Add missing prototypes.
1601 * elf32-s390.c: Likewise.
1602 * elf32-i960.c: Likewise.
1603 * aout-target.h: Likewise.
1605 2001-08-20 H.J. Lu <hjl@gnu.org>
1607 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1608 (elf_num_section_syms): New for num_section_syms.
1610 * elf.c (elf_map_symbols): Set num_section_syms.
1611 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1612 the section symbol index.
1614 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1616 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1617 select the generic has table creator. All elf backends need elf
1618 specific fields in the hash table.
1620 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1622 * archive.c (offsetof): Remove define.
1625 * sysdep.h (offsetof): Define.
1627 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1629 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1630 (bfd_set_gp_size): Make param unsigned.
1631 * bfd-in2.h: Regenerate.
1632 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1633 than calling bfd_get_gp_size.
1634 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1635 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1637 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1639 * linker.c (default_fill_link_order): Handle four byte fill value.
1641 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1643 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1645 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1647 * elf64-mips.c (UNUSED_RELOC): Define.
1648 (mips_elf64_howto_table_rel): Use it.
1649 (mips_elf64_howto_table_rela): Here too.
1650 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1652 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1654 * coffgen.c (coff_print_symbol): Fix warnings.
1655 (coff_find_nearest_line): Likewise.
1656 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1657 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1658 * format.c (bfd_check_format_matches): Likewise.
1659 (bfd_set_format): Likewise.
1660 * coff-ia64.c: Add missing prototypes.
1661 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1662 signed to silence warnings.
1663 (elf64_alpha_relocate_section): Likewise.
1664 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1665 (elf64_alpha_add_symbol_hook): Likewise.
1666 (elf64_alpha_final_link): Likewise.
1667 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1668 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1669 (elf64_alpha_size_got_sections): Likewise.
1670 * elfxx-ia64.c: Add missing prototypes.
1671 (elfNN_ia64_relocate_section): Fix warning.
1672 (elfNN_ia64_unwind_entry_compare): Make params const.
1674 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1676 * config.bfd (targ64_selvecs): New.
1677 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1679 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1680 (BFD_DEFAULT_TARGET_SIZE): New.
1681 (BFD_ARCH_SIZE): Comment.
1682 * configure.in (target_size): New. Set instead of target64 in
1683 selvecs case statement. Set target64 from it.
1684 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1685 * bfd-in2.h: Regenerate.
1686 * configure: Regenerate.
1688 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1690 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1691 (bfd_errmsgs): Add corresponding message.
1692 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1693 finding an archive that contains different format object files.
1694 Return bfd_error_wrong_object_format for this case.
1695 * format.c: Formatting fixes. s/CONST/const/.
1696 (bfd_check_format_matches): Accept archives that give
1697 bfd_error_wrong_object_format if no full match is found. Tidy
1698 code handling matching_vector. Don't return a pointer to freed
1699 memory in `matching'. Handle ambiguous matches as for partial
1701 * bfd-in2.h: Regenerate.
1703 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1705 * libieee.h (common_header_type): Add last_byte field.
1707 * ieee.c: Add missing prototypes. Some format fixes.
1708 (struct output_buffer_struct): Move for availability to prototypes.
1709 (ieee_part_after): New function.
1710 (ieee_slurp_debug): Use it here.
1711 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1712 ieee_part_after to set last_byte to one past end of current part.
1714 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1716 (parse_expression): Don't go beyond the end of the current part.
1717 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1718 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1719 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1720 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1721 ieee_set_section_contents, ieee_write_object_contents,
1722 ieee_make_empty_symbol): Make static.
1723 (ieee_archive_p): Correct comments regarding bfd_read.
1724 (ieee_object_p): Similarly.
1725 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1726 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1727 input_bfd, output_bfd, output_buffer.
1728 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1729 do_with_relocs, ie. as a symbol for relocatable files.
1730 (ieee_vec): Add comments showing functions referenced by macros.
1732 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1734 * aout-tic30.c: Add missing prototypes. Fix formatting.
1735 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1736 * peXXigen.c: Add missining prototypes. Fix formatting.
1737 * aout-adobe.c: Add missining prototypes. Fix formatting.
1739 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1741 * elf32-v850.c: Add missing function prototypes.
1742 Fix some formatting.
1744 * cpu-v850.c: Add missing function prototype.
1745 Fix some formatting.
1747 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1749 * elf-bfd.h (struct elf_backend_data): Add new fields
1750 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1751 (bfd_elf_sprintf_vma): Rename function prototype to
1752 '_bfd_elf_sprintf_vma'.
1753 (bfd_elf_fprintf_vma): Rename function prototype to
1754 '_bfd_elf_fprintf_vma'.
1755 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1756 directly, instead indirect via the elf_backend_data structure.
1757 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1758 instead indirect via the elf_backend_data structure.
1759 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1760 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1761 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1763 (elf_backend_fprintf_vma): Initialise if not already defined.
1764 (struct elf_backend_data): Initialise the
1765 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1767 2001-08-10 Andreas Jaeger <aj@suse.de>
1769 * elf64-sparc.c: Add missing prototypes.
1770 * elf32-cris.c: Likewise.
1771 * elf32-i370.c: Likewise.
1772 * elf64-hppa.c: Likewise.
1773 * elf64-s390.c: Likewise.
1775 2001-08-10 Andreas Jaeger <aj@suse.de>
1777 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1778 Add prototypes where needed.
1780 2001-08-10 H.J. Lu <hjl@gnu.org>
1782 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1783 (bfd_fprintf_vma): Likewise.
1785 2001-08-10 H.J. Lu <hjl@gnu.org>
1787 * bfd.c (bfd_sprintf_vma): Don't return void.
1788 (bfd_fprintf_vma): Likewise.
1790 2001-08-10 Andreas Jaeger <aj@suse.de>
1792 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1794 * configure: Regenerate.
1796 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1798 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1799 warning if not BFD64. Add braces so emacs auto format works.
1800 (bfd_elf_fprintf_vma): Likewise.
1802 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1804 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1805 param to agree with libxcoff.h.
1806 (xcoff_swap_ldhdr_out): Likewise.
1807 (xcoff_swap_ldsym_in): Likewise.
1808 (xcoff_swap_ldsym_out): Likewise.
1809 (xcoff_swap_ldrel_in): Likewise.
1810 (xcoff_swap_ldrel_out): Likewise.
1811 (xcoff_create_csect_from_smclas): Likewise.
1812 * coff64-rs6000.c: Add missing prototypes.
1813 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1815 (xcoff64_swap_ldhdr_out): Likewise.
1816 (xcoff64_swap_ldsym_in): Likewise.
1817 (xcoff64_swap_ldsym_out): Likewise.
1818 (xcoff64_swap_ldrel_in): Likewise.
1819 (xcoff64_swap_ldrel_out): Likewise.
1820 (xcoff64_ppc_relocate_section): Make static.
1821 (xcoff64_slurp_armap): Likewise.
1822 (xcoff64_archive_p): Likewise.
1823 (xcoff64_openr_next_archived_file): Likewise.
1824 (xcoff64_sizeof_headers): Likewise.
1825 (xcoff64_is_lineno_count_overflow): Likewise.
1826 (xcoff64_is_reloc_count_overflow): Likewise.
1827 (xcoff64_loader_symbol_offset): Likewise.
1828 (xcoff64_loader_reloc_offset): Likewise.
1829 * elf64-gen.c: Add missing prototypes.
1831 2001-08-09 H.J. Lu <hjl@gnu.org>
1833 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1834 (bfd_elf_fprintf_vma): Likewise.
1836 2001-08-09 H.J. Lu <hjl@gnu.org>
1838 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1841 * bfd-in2.h: Regenerated.
1843 2001-08-09 H.J. Lu <hjl@gnu.org>
1845 * bfd-in.h (bfd_sprintf_vma): New prototype.
1846 (bfd_fprintf_vma): Likewise.
1847 (bfd_elf_sprintf_vma): Likewise.
1848 (bfd_elf_fprintf_vma): Likewise.
1849 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1850 * bfd-in2.h: Regenerated.
1852 * bfd.c (bfd_sprintf_vma): New. Defined.
1853 (bfd_fprintf_vma): Likewise.
1855 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1856 (bfd_elf_fprintf_vma): Likewise.
1858 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1860 * coff-rs6000.c: Add missing prototypes.
1861 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1862 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1863 xcoff_loader_reloc_offset): Make static.
1864 * dwarf1.c: Add missing prototypes.
1865 * dwarf2.c: Add missing prototypes.
1866 (struct abbrev_info): Move definition.
1867 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1868 * elf.c: Add missing prototypes.
1869 * elf32-gen.c: Likewise.
1870 * elf32-i386.c: Likewise.
1871 * elf32-ppc.c: Likewise.
1872 (ppc_elf_sort_rela): Use PTR instead of "void *".
1873 * elflink.h: Add missing prototypes. Formatting fixes.
1874 * merge.c: Add missing prototypes.
1875 (last4_eq): Use PTR instead of "void *".
1876 (last_eq): Likewise.
1877 * syms.c: Add missing prototypes.
1879 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1881 * bfd.c: Fix formatting.
1882 * bfd-in2.h: Regenerate.
1884 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1886 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1887 true (this target uses REL relocations) and 'pcrel_offset' to
1888 false (the PC is implied, not stored in the offset).
1890 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1892 1999-10-19 Linus Nordberg <linus@swox.se>
1893 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1894 * elfxx-target.h (elf_backend_want_got_sym): Define.
1895 (elfNN_bed): Add elf_backend_want_got_sym.
1896 * elflink.c (_bfd_elf_create_got_section): Define
1897 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1899 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1901 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1902 (find_rela_addend): New function.
1903 (parse_comp_unit): Call it to find the abbrev offset addend.
1904 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1905 members of dwarf2_debug as debugging information is read.
1907 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1909 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1910 targets as well as sh-pe.
1912 2001-08-03 Ben Harris <bjh21@netbsd.org>
1914 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1915 reloc from start of section when computing value for R_ARM_REL32
1918 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1920 From H.J. Lu <hjl@gnu.org>
1921 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1922 keep relocs for undefined syms if there are no dynamic sections in
1924 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1926 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1928 * cofflink.c (coff_link_check_ar_symbols): also search for
1929 __imp__symbol as well as _symbol.
1930 * linker.c (_bfd_generic_link_add_archive_symbols): also
1931 search for __imp__symbol as well as _symbol.
1933 2001-08-01 Adam Nemet <anemet@lnxw.com>
1935 * elf.c (elf_sort_sections): Return zero only as the last step.
1937 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1939 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1941 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1942 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1945 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1947 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1948 to match corresponding bfd_coff_backend data member.
1950 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1952 * Makefile.am: Update dependencies with "make dep-am".
1953 * Makefile.in: Regenerate
1955 2001-07-15 H.J. Lu <hjl@gnu.org>
1957 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1958 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1959 * Makefile.in: Regenerate.
1961 2001-07-11 H.J. Lu <hjl@gnu.org>
1963 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1964 flags when creating the reloc section if the ALLOC flag in the
1965 source section is set.
1967 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1969 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1970 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1971 * bfd-in2.h: Regenerate.
1972 * libbfd.h: Regenerate.
1973 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1975 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1976 (elfNN_ia64_check_relocs): Likewise.
1977 (elfNN_ia64_install_value): Likewise.
1978 (elfNN_ia64_relocate_section): Likewise.
1980 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1982 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1984 (elf32_sparc_check_relocs): Likewise.
1985 Only create .rela section for alloced sections in shared libraries.
1986 (elf32_sparc_relocate_section): Likewise.
1987 Remove redundant check.
1988 Optimize unaligned reloc usage.
1989 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1992 2001-07-11 H.J. Lu <hjl@gnu.org>
1994 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1995 ALLOC|LOAD flags as the source section for debugging sections
1996 when creating the reloc section.
1998 2001-07-05 Jim Wilson <wilson@redhat.com>
2000 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2001 the section of the bigger symbol.
2003 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2005 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2007 * peicode.h (coff_swap_scnhdr_in): For sections containing
2008 uninitialised data, only set their size to s_paddr if this does
2009 not reset their size to zero. MS's latest compilers will set
2012 2001-07-04 H.J. Lu <hjl@gnu.org>
2014 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2015 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2018 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2020 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2022 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2023 sections being discarded.
2025 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2027 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2028 instead of _bfd_elfcore_section_from_phdr.
2029 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2030 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2031 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2032 (elfcore_grok_prstatus): Likewise.
2033 (elfcore_grok_lwpstatus): Likewise.
2034 (bfd_get_elf_phdr_upper_bound): Likewise.
2035 (elfcore_make_note_pseudosection): Formatting.
2036 (_bfd_elfcore_strndup): Formatting.
2037 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2038 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2040 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2042 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2043 and _bfd_elfcore_strndup.
2044 (struct elf_backend_data): Add elf_backend_grok_prstatus
2045 and elf_backend_grok_psinfo.
2046 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2047 (elfcore_grok_prstatus): Use it.
2048 (elfcore_make_note_pseudosection): Likewise.
2049 (elfcore_strndup): Rename to...
2050 (_bfd_elfcore_strndup): Here, and make global.
2051 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2052 (elfcore_grok_note): Call elf_backend_grok_prstatus
2053 and elf_backend_grok_psinfo if available.
2054 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2055 (_bfd_elf32_mips_grok_psinfo): New function.
2056 (elf_backend_grok_prstatus): Define.
2057 (elf_backend_grok_psinfo): Define.
2058 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2059 (elf_backend_grok_psinfo): Likewise.
2060 (elfNN_bed): Include elf_backend_grok_prstatus and
2061 elf_backend_grok_psinfo.
2063 2001-06-29 H.J. Lu <hjl@gnu.org>
2065 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2066 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2067 is NULL before filling PLT.
2069 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2071 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2073 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2075 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2077 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2078 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2081 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2082 (IS_ABSOLUTE_RELOC): Define.
2083 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2084 (hppa_link_hash_newfunc): Always init it.
2085 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2086 create COPY relocs only when the reloc is in a read-only section.
2087 Instead, allocate space for a dynamic reloc to reference the
2088 library symbol directly. Keep track of space we allocate using
2090 (hppa_discard_copies): Delete, and move code to..
2091 (allocate_plt_and_got): ..here. Rename to
2092 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2093 relocs for non-shared link.
2094 (elf32_hppa_size_dynamic_sections): Update calls to above.
2095 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2096 in lieu of COPY relocs.
2098 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2100 (elf_i386_adjust_dynamic_symbol): ..nor here..
2101 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2103 (elf_i386_size_dynamic_sections): Fix a comment.
2104 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2105 involved in writing reloc out.
2107 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2109 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2110 Ensure syms are dynamic if we might be emitting a reloc.
2111 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2112 for undefweak or undefined syms..
2113 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2115 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2116 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2117 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2118 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2120 2001-06-24 H.J. Lu <hjl@gnu.org>
2122 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2123 strncasecmp/strcasecmp instead of strncmp/strcmp.
2125 2001-06-23 H.J. Lu <hjl@gnu.org>
2127 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2128 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2129 in the regular object file and treat the weak definition as
2132 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2134 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2135 unresolved_reloc test to exclude cases where we use "relocation"
2136 before setting it to point into the .got. Reinstate fudge for
2137 unresolved relocs in debugging sections.
2139 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2140 complicated tests for unresolvable relocs with a simple direct
2141 scheme using "unresolved_reloc" var.
2143 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2144 elf_i386_dyn_relocs. Update comment.
2145 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2147 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2149 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2151 (elf_i386_size_dynamic_sections): Likewise.
2152 (elf_i386_finish_dynamic_symbol): Likewise.
2153 (elf_i386_finish_dynamic_sections): Likewise.
2154 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2157 Avoid creating COPY relocs if possible.
2158 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2159 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2160 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2161 reloc is in a read-only section. Instead, allocate space for a
2162 dynamic reloc to reference the library symbol directly. Keep
2163 track of space we allocate using pcrel_relocs_copied.
2164 (discard_copies): Delete, and move code to ..
2165 (allocate_plt_and_got): ..here. Rename to
2166 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2167 relocs for non-shared link.
2168 (elf_i386_size_dynamic_sections): Update calls to above functions.
2169 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2170 more ugly logic to avoid "unresolvable relocation" error. Use
2171 htab shortcut in place of elf_hash_table macro.
2172 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2173 not always be created now.
2175 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2180 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2182 * configure.host (mips64-*-linux): Reformat.
2184 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2186 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2187 allocate local .got space. Use shortcuts from hash table for .got
2188 and .plt rather than comparing section names.
2189 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2190 adjusting index into local_got_refcounts to document what we are
2192 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2193 Tidy .got and .plt error checking.
2195 2001-06-20 Catherine Moore <clm@redhat.com>
2197 * elf-bfd.h (struct elf_backend_data):
2198 elf_backend_emit_relocs: New field: Function for emitting
2200 elf_backend_count_relocs: New field: Function for determining
2201 the number of relocs to be emitted.
2202 * elfxx-target.h: Provide default (NULL) values for
2203 elf_backend_emit_relocs and elf_backend_count_relocs.
2204 * elflink.h (elf_link_size_reloc_section): Make the hash table
2205 big enough to hold the relocs counted by either reloc_count or
2207 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2208 should be emitted, either because of a command line option
2209 stored in the info structure or because the target provides a
2210 special reloc emitting function.
2211 If the target provides a reloc counting function use it,
2212 unless performing a relocatable link or emitting all relocs.
2213 Also set the SEC_RELOC flag on any output section which will
2215 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2216 should be emitted, either because of a command line option
2217 stored in the info structure or because the target provides a
2218 special reloc emitting function.
2219 If the target provides a reloc emitting function, use it,
2220 unless performing a relocatable link or emitting all relocs.
2222 2001-06-20 H.J. Lu <hjl@gnu.org>
2224 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2225 allocate local .got space.
2227 2001-06-19 Andreas Jaeger <aj@suse.de>
2229 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2232 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2234 * elflink.h (struct elf_assign_sym_version_info): Remove member
2235 export_dynamic. All users changed to use info member.
2236 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2237 export_dynamic, instead use member in parameter info.
2238 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2239 bfd_elf64_size_dynamic_sections): Update prototype.
2240 * bfd-in2.h: Regenerate.
2242 2001-06-18 H.J. Lu <hjl@gnu.org>
2244 * elflink.h (elf_info_failed): Add a new field, verdefs.
2245 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2247 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2250 2001-06-17 H.J. Lu <hjl@gnu.org>
2252 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2253 readonly_reloc, to record if a relocation in the .rel.dyn
2254 section is against a read-only section.
2255 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2257 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2258 in the .rel.dyn section against a read-only section by setting
2259 DF_TEXTREL or readonly_reloc.
2260 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2262 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2263 there is a relocation in the .rel.dyn section against a
2265 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2268 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2270 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2271 function. Move flagword result into parameter list. Remove
2272 comment about setting bfd_error_handler to intercept failure
2274 * coffgen.c (make_a_section_from_file): Examine result of
2275 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2277 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2278 function. Move flagword result into parameter list.
2279 * libcoff.h: Regenerate.
2280 * libecoff.h: Regenerate.
2282 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2284 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2285 section is going to follow it.
2287 2001-06-12 Catherine Moore <clm@redhat.com>
2289 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2290 with the file_align entry from elf_backend_data.
2291 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2292 (elf_gc_record_vtentry): Likewise.
2294 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2296 * elflink.h: Whitespace changes.
2297 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2298 rather than "unsigned char".
2299 (elf_link_output_relocs): Likewise.
2300 (elf_link_input_bfd): Likewise.
2301 (elf_reloc_link_order): LIkewise.
2302 * elf.c: s/CONST/const/. Whitespace changes.
2303 * elf32-mips.c: Formatting fix.
2305 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2306 * Makefile.in: Regenerate.
2307 * po/Make-in: Remove trailing tab.
2309 2001-06-09 Philip Blundell <philb@gnu.org>
2311 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2313 (elf32_arm_plt_entry): Likewise.
2315 2001-06-08 H.J. Lu <hjl@gnu.org>
2317 * elf.c (swap_out_syms): Keep names for global section symbols.
2319 2001-06-07 H.J. Lu <hjl@gnu.org>
2321 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2322 MIPS-based machines need it.
2324 2001-06-07 H.J. Lu <hjl@gnu.org>
2326 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2329 * config.bfd: Remove ecoff from Linux/mips.
2331 2001-06-07 Andreas Jaeger <aj@suse.de>
2333 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2335 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2336 alignment of 8 for .rela sections; handle further relocations.
2338 2001-06-06 Christian Groessler <cpg@aladdin.de>
2340 * coff-z8k.c: Fix formatting.
2341 Fix howtos: howto->size was always 1.
2343 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2345 * configure.host (mips64*-*-linux*): Define.
2347 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2349 * elf32-i386.c (elf_i386_discard_copies): Rename to
2350 discard_copies, and use elf_link_hash_entry arg rather than
2351 elf_i386_link_hash_entry.
2352 (elf_i386_link_hash_traverse): Delete.
2353 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2354 Tidy sizing of dynamic sections.
2355 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2356 possible .plt entries.
2357 (elf_i386_gc_sweep_hook): Likewise.
2358 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2359 everything with plt.refcount <= 0.
2361 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2363 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2364 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2366 (allocate_plt_and_got): ..instead do it all here. New function.
2367 (elf_i386_size_dynamic_sections): Allocate local .got space and
2368 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2369 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2370 rather than gc variety).
2371 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2372 (elf_i386_relocate_section): Use it here and correct handling of
2373 R_386_GOT32. Provide section and offset for "unresolvable
2374 relocation" error message.
2375 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2377 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2378 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2379 (elf_i386_link_hash_table_create): Init them.
2380 (create_got_section): New function.
2381 (elf_i386_create_dynamic_sections): New function.
2382 (elf_backend_create_dynamic_sections): Set to above.
2383 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2384 calling bfd_get_section_by_name.
2385 (elf_i386_gc_sweep_hook): Likewise.
2386 (elf_i386_adjust_dynamic_symbol): Likewise.
2387 (elf_i386_size_dynamic_sections): Likewise.
2388 (elf_i386_relocate_section): Likewise.
2389 (elf_i386_finish_dynamic_sections): Likewise.
2391 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2393 2001-06-02 H.J. Lu <hjl@gnu.org>
2395 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2397 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2399 2001-06-02 H.J. Lu <hjl@gnu.org>
2401 * aout-cris.c (MACHTYPE_OK): New. Defined.
2403 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2405 * section.c (_bfd_strip_section_from_output): Handle NULL
2408 2001-06-02 H.J. Lu <hjl@gnu.org>
2410 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2411 rs6000coff64_vec only if BFD64 is defined.
2412 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2414 2001-06-02 H.J. Lu <hjl@gnu.org>
2416 * coff-ia64.c (ia64coff_object_p): Rewrite with
2417 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2419 2001-06-01 Andreas Jaeger <aj@suse.de>
2421 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2422 relocation, small reformatting.
2424 2001-05-29 Andreas Jaeger <aj@suse.de>
2426 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2427 (elf64_x86_64_relocate_section): Likewise.
2429 2001-05-30 Alan Modra <amodra@one.net.au>
2431 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2432 millicode. Don't allocate .got and .rela.got space here..
2433 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2434 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2436 (hppa_handle_PIC_calls): ..nor here..
2437 (allocate_plt_and_got): ..instead do it all here. New function.
2438 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2439 call allocate_plt_and_got. No need to zap .got if not dynamic.
2440 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2441 gc_common_final_link.
2442 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2443 (elf32_hppa_relocate_section): Use it here.
2444 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2445 dynamic_sections_created.
2446 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2448 2001-05-28 Andreas Jaeger <aj@suse.de>
2450 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2451 generic version since we want a hashsize of 4.
2452 (elf_backend_size_info): Likewise.
2454 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2456 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2458 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2459 (elf_link_input_bfd): Likewise.
2460 (elf_reloc_link_order): Likewise.
2461 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2462 relocations correctly.
2464 2001-05-28 Nicolas Pitre <nico@cam.org>
2466 * elf32-arm.h: fix PLT generation for big endian ARM
2468 2001-05-28 Alan Modra <amodra@one.net.au>
2470 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2471 for symbols forced local that need plabels.
2472 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2473 .plt.rela for local syms if non-shared.
2474 (hppa_build_one_stub): Mask lsb of plt.offset.
2475 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2476 (clobber_millicode_symbols): Correct comment.
2477 (elf32_hppa_relocate_section): Likewise.
2478 (elf32_hppa_finish_dynamic_symbol): Likewise.
2480 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2482 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2483 * bfd-in2.h: Regenerate.
2484 * libbfd.h: Regenerate.
2485 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2486 and BFD_RELOC_SPARC_UA64 mapping
2487 * elf64-sparc.c: Likewise.
2489 2001-05-25 H.J. Lu <hjl@gnu.org>
2491 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2492 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2493 (coff-rs6000.lo): Remove the old dependency.
2494 * Makefile.in: Rebuild.
2496 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2499 2001-05-25 H.J. Lu <hjl@gnu.org>
2501 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2502 rs6000coff_core_file_matches_executable_p,
2503 rs6000coff_core_file_failing_command and
2504 rs6000coff_core_file_failing_signal only if AIX_CORE is
2506 (pmac_xcoff_vec): Likewise.
2507 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2509 2001-05-25 Timothy Wall <twall@redhat.com>
2511 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2512 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2514 2001-05-25 H.J. Lu <hjl@gnu.org>
2516 * bfd-in2.h: Regenerated.
2517 * libcoff.h: Likewise.
2519 2001-05-25 Alan Modra <amodra@one.net.au>
2521 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2522 undefined millicode syms in shared libs.
2523 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2524 (elf32_hppa_check_relocs): Likewise.
2525 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2526 (elf32_hppa_size_dynamic_sections): Likewise.
2527 (elf32_hppa_relocate_section): Likewise.
2528 (elf32_hppa_finish_dynamic_symbol): Likewise.
2529 (elf32_hppa_finish_dynamic_sections): Likewise.
2531 2001-05-24 Tom Rix <trix@redhat.com>
2533 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2534 xcoff-target.h not used to define rs6000 or ppc bfd.
2537 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2540 * coff-rs6000.c : Many changes for 64 bit support. Move common
2541 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2544 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2545 linker now supported. Explictly define the rs6000coff64_vec.
2547 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2548 (coff_print_aux) same
2549 (coff_write_object_contents) same
2550 (coff_slurp_line_table) same
2552 * coffgen.c : (coff_fix_symbol_name) formatting
2553 (coff_mangle_symbols) xcoff 64 bit support
2554 (coff_write_symbol) same
2555 (coff_write_alien_symbol) same
2556 (coff_write_native_symbol) same
2557 (coff_write_symbols) same
2558 (coff_get_symbol_info) same
2559 (bfd_coff_get_syment) same
2560 (coff_print_symbol) same
2562 * config.bfd : add powerpc64-*-aix* target
2564 * libcoff-in.h : formatting
2566 * libcoff.h : move xcoff extern declarations to libxcoff.h
2568 * libxcoff.h : New file
2570 * xcofflink.c : Many changes for xcoff64 support. Move common
2571 structures to include/coff/xcoff.h. Move specific structure to
2572 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2573 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2575 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2578 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2580 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2582 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2585 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2587 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2588 * libbfd.h: Regenerate.
2589 * bfd-in2.h: Regenerate.
2591 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2592 * archures.c (bfd_mach_mips12000): Define.
2593 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2594 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2596 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2597 * bfd-in2.h: Regenerate.
2598 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2600 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2602 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2603 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2604 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2605 that is used by GCC.
2607 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2609 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2610 of entries in a structured section.
2611 * elf.c: Use new macro.
2612 * elf32-i386.c: Use new macro.
2613 * elf32-mips.c: Use new macro.
2614 * elf64-alpha.c: Use new macro.
2615 * elf64-sparc.c: Use new macro.
2616 * elfcode.h: Use new macro.
2617 * elflink.h: Use new macro.
2619 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2621 * bfdint.texi: Replace -oformat with --oformat.
2623 2001-05-21 Andreas Jaeger <aj@suse.de>
2625 * dwarf2.c (decode_line_info): Fix error message.
2626 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2627 adjust error message.
2629 2001-05-18 H.J. Lu <hjl@gnu.org>
2631 * elflink.h (elf_link_add_object_symbols): Revert the last
2634 2001-05-17 Alan Modra <amodra@one.net.au>
2636 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2637 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2638 (hppa_build_one_stub): Add an assert to check plt.offset.
2640 2001-05-17 H.J. Lu <hjl@gnu.org>
2642 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2643 version definition to basename of the output filename.
2645 2001-05-17 H.J. Lu <hjl@gnu.org>
2647 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2648 basename of the bfd filename.
2650 2001-05-16 Alan Modra <amodra@one.net.au>
2652 * section.c (asection): Add linker_has_input field.
2653 (STD_SECTION): Adjust initialization to suit.
2654 * ecoff.c (bfd_debug_section): Likewise.
2655 * bfd-in2.h: Regenerate.
2657 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2659 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2660 negative 32-bit operands to 16 operands when the operand is
2661 going to be zero-extended by the modified opcode.
2663 2001-05-12 Peter Targett <peter.targett@arccores.com>
2665 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2666 name for 'arc5' core versions.
2667 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2669 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2671 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2673 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2675 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2677 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2678 to .gnu.linkonce.t.FOO text section.
2680 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2682 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2683 fields, change sec into secinfo.
2684 (struct sec_merge_info): Add chain, remove last fields.
2685 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2686 (sec_merge_hash_lookup): If lookup could not use a string only
2687 because it has bad alignment, mark the old string for deletion.
2688 (sec_merge_add): Add secinfo argument. Don't compute entry's
2689 position, instead record the section.
2690 (sec_merge_emit): Update for the sec into secinfo change in
2691 struct sec_merge_hash_entry.
2692 (_bfd_merge_section): Only record the section for merging, defer
2693 putting strings into the hash table.
2694 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2695 _bfd_merge_sections): New functions.
2696 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2698 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2699 (_bfd_nolink_bfd_merge_sections): Define.
2700 * libbfd.h: Likewise.
2701 (bfd_generic_merge_sections): Add prototype.
2702 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2703 (struct bfd_target): Likewise.
2704 * bfd.c (bfd_merge_sections): Define.
2705 * bfd-in2.h: Rebuilt.
2706 * elf.c (_bfd_elf_merge_sections): New function.
2707 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2708 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2709 * reloc.c (bfd_generic_merge_sections): New function.
2710 * vms.c (vms_bfd_merge_sections): New function.
2711 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2712 * aout-target.h (MY_bfd_merge_sections): Define.
2713 * aout-tic30.c (MY_bfd_merge_sections): Define.
2714 * binary.c (binary_bfd_merge_sections): Define.
2715 * bout.c (b_out_bfd_merge_sections): Define.
2716 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2717 * coffcode.c (coff_bfd_merge_sections): Define.
2718 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2719 * i386msdos.c (msdos_bfd_merge_sections): Define.
2720 * i386os9k.c (os9k_bfd_merge_sections): Define.
2721 * ieee.c (ieee_bfd_merge_sections): Define.
2722 * ihex.c (ihex_bfd_merge_sections): Define.
2723 * nlm-target.h (nlm_bfd_merge_sections): Define.
2724 * oasys.c (oasys_bfd_merge_sections): Define.
2725 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2726 * som.c (som_bfd_merge_sections): Define.
2727 * srec.c (srec_bfd_merge_sections): Define.
2728 * tekhex.c (tekhex_bfd_merge_sections): Define.
2729 * versados.c (versados_bfd_merge_sections): Define.
2730 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2732 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2734 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2735 to be unsigned long, in order to match its use.
2737 2001-05-10 H.J. Lu <hjl@gnu.org>
2739 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2742 2001-05-09 H.J. Lu <hjl@gnu.org>
2744 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2745 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2746 Remove the unused veriable `dynver'.
2748 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2750 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2751 NULL or is not COFF.
2752 (coff_i386_rtype_to_howto): Don't dump core if output section
2755 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2757 * ecoff.c (bfd_debug_section): Fix initialization.
2758 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2759 is always a positive integer. Cast away sign mismatch.
2760 * elf32-mips.c: Fix misleading comment and typo.
2761 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2763 * elflink.c: Fix typo.
2764 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2765 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2767 2001-05-04 Richard Henderson <rth@redhat.com>
2769 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2771 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2773 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2774 EF_ARM_HASENTRY if the start address is set.
2776 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2778 * targets.c (_bfd_target_vector_entries): Compute value based on
2779 the size of the _bfd_target_vector and not bfd_target_vector.
2781 2001-05-03 H.J. Lu <hjl@gnu.org>
2783 * elfcode.h: Include "libiberty.h".
2785 * elflink.h (elf_link_add_object_symbols): Set
2786 elf_dt_name (abfd) to basename of the bfd filename.
2787 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2788 of the bfd filename.
2790 2001-05-03 Andreas Jaeger <aj@suse.de>
2792 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2793 (elf_generic_info_to_howto_rel): Likewise.
2794 * coff-alpha.c (reloc_nil): Likewise.
2795 (alpha_ecoff_bad_format_hook): Likewise.
2796 (alpha_adjust_reloc_out): Likewise.
2797 (alpha_bfd_reloc_type_lookup): Likewise.
2798 (alpha_convert_external_reloc): Likewise.
2799 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2800 (elf64_alpha_reloc_bad): Likewise.
2801 (elf64_alpha_reloc_gpdisp): Likewise.
2802 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2803 (elf64_alpha_info_to_howto): Likewise.
2804 (elf64_alpha_add_symbol_hook): Likewise.
2805 (elf64_alpha_create_got_section): Likewise.
2806 (elf64_alpha_is_local_label_name): Likewise.
2807 (elf64_alpha_merge_ind_symbols): Likewise.
2808 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2809 (mips_elf64_get_reloc_upper_bound): Likewise.
2810 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2811 (nlm_alpha_get_public_offset): Likewise.
2813 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2815 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2816 about overflow in R_OPENRISC_LO_16_IN_INSN and
2817 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2819 2001-04-30 H.J. Lu <hjl@gnu.org>
2821 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2822 only for ELF_LINK_FORCED_LOCAL.
2823 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2824 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2825 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2827 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2828 if the symbol has hidden or internal visibility.
2830 2001-04-30 Alan Modra <amodra@one.net.au>
2832 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2833 calls to undefined weak symbols.
2835 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2837 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2838 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2840 2001-04-27 Andreas Jaeger <aj@suse.de>
2842 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2843 out handled entries.
2844 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2845 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2846 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2849 2001-04-27 Sean McNeil <sean@mcneil.com>
2851 * config.bfd: Add arm-vxworks target.
2852 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2853 addend (fro VXworks targets).
2855 2001-04-26 H.J. Lu <hjl@gnu.org>
2857 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2860 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2862 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2863 * bfd-in2.h: Regenerated.
2865 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2867 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2868 (struct sec_merge_hash): Remove alignment_power.
2869 (sec_merge_hash_newfunc): Clear alignment.
2870 (sec_merge_hash_lookup): Pass alignment as argument.
2871 Use hashp->root.next, not hashp->next to walk the hash chain.
2872 If a string already in the hashtable does not have required
2873 alignment, create a new hashtable entry.
2874 (sec_merge_init): Remove alignment_power argument.
2875 (sec_merge_add): Add alignment argument.
2876 (sec_merge_emit): Alignment is now a per-entity thing, not per
2878 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2879 for proper alignment.
2880 Pass alignment information to sec_merge_add.
2882 2001-04-24 Christian Groessler <cpg@aladdin.de>
2884 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2885 and R_REL16 reloc types; accept odd values for R_REL16 type
2887 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2889 * cpu-openrisc.c: New file.
2890 * elf32-openrisc.c: Likewise.
2892 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2893 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2894 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2895 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2896 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2897 * Makefile.in: Regenerated.
2898 * config.bfd: (openrisc-*-elf): New target.
2899 * configure.in (bfd_elf32_openrisc_vec): New vector.
2900 * configure: Regenerated.
2901 * libbfd.h: Regenerated.
2902 * bfd-in2.h: Regenerated.
2903 * reloc.c: Add OpenRISC relocations.
2904 * targets.c (bfd_elf32_openrisc_vec): Declare.
2905 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2906 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2907 (bfd_openrisc_arch): Declare.
2908 (bfd_archures_list): Add bfd_openrisc_arch.
2909 * elf.c (prep_headers): Add bfd_arch_openrisc.
2911 2001-04-23 Bo Thorsen <bo@suse.de>
2913 * elf64-x86-64.c: Add c++ vtable hack.
2914 Small whitespace and comment changes.
2916 2001-04-19 Andreas Jaeger <aj@suse.de>
2918 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2919 (elf64_x86_64_plt_entry): Likewise.
2920 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2921 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2923 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2925 * elf32-cris.c: Tweak comments related to dynamic linking.
2926 (cris_elf_relocate_section): When not creating shared object, fill
2927 in the .got table for any symbol not in the dynamic symbol table.
2928 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2929 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2931 (cris_elf_check_relocs): Use variable r_type in all places rather
2932 than the original expression. Add default case in switch for
2934 (elf_cris_size_dynamic_sections): Iterate over
2935 elf_cris_discard_excess_program_dynamics when not creating shared
2937 (elf_cris_discard_excess_dso_dynamics): Renamed from
2938 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2939 (elf_cris_discard_excess_program_dynamics): New.
2941 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2943 * coffcode.h (coff_write_object_contents): Use
2944 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2946 2001-04-14 H.J. Lu <hjl@gnu.org>
2948 * bfd-in2.h: Regenerate.
2950 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2952 * section.c (STD_SECTION): Add entsize.
2954 2001-04-13 H.J. Lu <hjl@gnu.org>
2956 * section.c (SEC_MERGE): Define new flag for merging.
2957 (SEC_STRINGS): Likewise.
2958 (entsize): New field.
2960 2001-04-13 Roger Sayle <roger@metaphorics.com>
2962 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2963 flag on pe-i386 targets.
2965 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2967 * libbfd-in.h (_bfd_merge_section): New.
2968 (_bfd_write_merged_section): New.
2969 (_bfd_merged_section_offset): New.
2970 * libbfd.h: Rebuilt.
2971 * linker.c (_bfd_generic_link_output_symbols): Handle
2973 * aoutx.h (aout_link_write_symbols): Likewise.
2974 * pdp11.c (aout_link_write_symbols): Likewise.
2975 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2976 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2978 (elf_link_sec_merge_syms): New.
2979 (elf_link_input_bfd): Call _bfd_merged_section_offset
2980 and _bfd_write_merged_section.
2981 Handle discard_sec_merge.
2982 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2984 (struct bfd_elf_section_data): Likewise.
2985 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2986 SEC_STRINGS section flags and entsize from their ELF counterparts.
2987 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2988 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2989 from their BFD counterparts.
2990 * merge.c: New file.
2991 * Makefile.am: Add strtab.lo.
2992 * Makefile.in: Rebuilt.
2994 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2996 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2997 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2999 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3001 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3002 endian MIPS ELF target.
3003 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3006 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3007 64bit big endian MIPS ELF target.
3008 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3009 endian MIPS ELF target.
3010 * configure: Regenerated.
3012 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3013 little endian targets.
3014 (mips_elf_sym_is_global): Handle traditional targets.
3016 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3017 64bit big endian MIPS ELF target.
3018 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3019 endian MIPS ELF target.
3021 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3022 and bfd_elf64_tradlittlemips_vec.
3024 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3026 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3027 ordinary "progbits" section.
3029 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3031 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3032 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3034 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3036 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3038 2001-03-30 H.J. Lu <hjl@gnu.org>
3040 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3041 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3043 2001-03-26 H.J. Lu <hjl@gnu.org>
3045 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3046 if there are any relocations for generic ELF.
3047 (bfd_elf32_bfd_link_add_symbols): Defined to
3048 elf32_generic_link_add_symbols.
3049 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3050 if there are any relocations for generic ELF.
3051 (bfd_elf64_bfd_link_add_symbols): Defined to
3052 elf64_generic_link_add_symbols.
3054 2001-03-23 Nick Clifton <nickc@redhat.com>
3056 * Makefile.am (BUILD_CFILES): New variable: List of C source
3057 files created in build directory.
3058 (BUILD_HFILES): New variable: List of header files created in
3061 (po/POTFILES.in): Replace rule with empty entry.
3062 (po/SRC-POTFILES.in): New rule: Create a list of source files
3063 in the source directory.
3064 (po/BLD-POTFILES.in): New rule: Create a list of source files
3065 in the build directory.
3066 (MOSTLYCLEAN): Do not delete source files created in build
3068 * Makefile.in: Regenerate.
3069 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3071 * configure: Regenerate.
3073 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3075 Add .. to the search path when building bfd.pot.
3076 Delete POTFILES when performing distclean.
3077 Add comment describing why distclean is broken in maintainer mode.
3078 * po/POTFILES.in: Delete.
3079 * po/SRC-POTFILES.in: New file.
3080 * po/BLD-POTFILES.in: New file.
3081 * po/bfd.pot: Regenerate.
3083 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3085 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3086 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3087 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3088 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3089 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3090 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3092 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3093 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3094 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3095 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3096 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3097 New HOWTO members for new relocs.
3098 (cris_reloc_map): Map new relocs.
3099 (ELF_DYNAMIC_INTERPRETER): Define.
3100 (PLT_ENTRY_SIZE): Define.
3101 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3102 elf_cris_pic_plt_entry): New, PLT templates.
3103 (struct elf_cris_pcrel_relocs_copied, struct
3104 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3105 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3106 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3107 positive values. Adjust PCREL relocs to be relative to location
3109 (cris_elf_relocate_section): Handle relocations to dynamic
3110 objects. Handle new relocations. Call error handler when seeing
3111 non-PIC relocation for read-only sections while generating shared
3113 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3115 (bfd_elf32_bfd_link_hash_table_create,
3116 elf_backend_adjust_dynamic_symbol,
3117 elf_backend_size_dynamic_sections,
3118 elf_backend_finish_dynamic_symbol,
3119 elf_backend_finish_dynamic_sections,
3120 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3121 elf_backend_hide_symbol, elf_backend_want_got_plt,
3122 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3123 elf_backend_got_header_size, elf_backend_plt_header_size):
3126 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3127 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3128 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3129 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3130 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3131 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3132 * bfd-in2.h, libbfd.h: Regenerate.
3134 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3136 (_bfd_mips_elf_relocate_section): Give a better error message when
3137 a relocation is not recognized.
3139 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3141 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3142 non-NULL before attempting to dereference.
3144 2001-03-20 H.J. Lu <hjl@gnu.org>
3146 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3147 * configure: Rebuild.
3149 2001-03-20 Andreas Schwab <schwab@suse.de>
3151 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3152 relocation value when resolving a reference from a debugging
3155 2001-03-16 Scott Thomason <SThomaso@hii.com>
3157 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3158 (xcoff64_swap_sym_out): Fix syntax errors.
3160 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3162 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3164 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3166 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3167 (hppa_link_hash_newfunc): Init it.
3168 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3169 section appears to be non-PIC.
3170 (final_link_relocate): Likewise.
3171 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3172 possible candidate function, and set pic_call for those that will
3173 only have a .plt entry for the PIC call stub.
3174 (hppa_handle_PIC_calls): Set maybe_pic_call.
3176 2001-03-12 DJ Delorie <dj@redhat.com>
3178 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3179 R_SH_DIR8WP* relocs if they're against external symbols, else
3180 they're just for relaxing. Validate the reloc values.
3182 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3184 * binary.c (bfd_external_binary_architecture): Declare.
3185 (binary_object_p): If bfd_external_binary_architecture is defined,
3186 set the architecture to this string.
3188 2001-03-11 Philip Blundell <philb@gnu.org>
3190 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3191 entries that could serve as a definition for a weak symbol.
3193 2001-03-08 Nick Clifton <nickc@redhat.com>
3195 * Most files: Update copyright notices using Perl script created
3196 by Kevin Buettner <kevinb@redhat.com>.
3198 2001-03-07 Nick Clifton <nickc@redhat.com>
3200 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3201 prior patch on ! defined OLD_ARM_ABI.
3203 2001-03-07 Andreas Jaeger <aj@suse.de>
3205 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3206 some relocation values.
3208 2001-03-06 Nick Clifton <nickc@redhat.com>
3210 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3211 of offset in BLX(1) instruction.
3212 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3213 offset in BLX(1) instruction.
3216 2001-03-06 Nick Clifton <nickc@redhat.com>
3218 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3219 BFD_RELOC_THUMB_PCREL_BLX.
3221 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3223 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3224 * bfd-in2.h: Regenerate.
3225 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3226 * ieee.c (ieee_write_processor): Set proper id for
3229 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3231 * configure.in: Add s390 target.
3232 * configure: Regenerate.
3234 2001-02-28 Andreas Jaeger <aj@suse.de>
3236 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3239 2001-02-28 Philip Blundell <pb@futuretv.com>
3241 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3242 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3244 2001-02-27 H.J. Lu <hjl@gnu.org>
3246 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3247 abfd->tdata.aout_data == NULL.
3249 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3251 * elf32-hppa.c: Correct field selector in stub comments.
3252 (clobber_millicode_symbols): Formatting fix.
3254 * configure.in: Bump version to 2.11.90.
3255 * configure: Regenerate.
3256 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3257 (CFILES): $SOURCE_CFILES + generated C files.
3258 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3260 * Makefile.in: Regenerate.
3261 * doc/Makefile.in: This too.
3263 2001-02-26 Timothy Wall <twall@cygnus.com>
3265 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3268 2001-02-26 Nick Clifton <nickc@redhat.com>
3270 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3271 up, replacing multiple if statements with a switch.
3272 (handle_COMDAT): New function.
3274 2001-02-26 H.J. Lu <hjl@gnu.org>
3276 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3277 a warning for section flags we do not handle instead of
3280 2001-02-26 Andreas Jaeger <aj@suse.de>
3282 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3284 2001-02-22 Timothy Wall <twall@cygnus.com>
3286 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3287 * configure.in: Add objects for elf64_ia64_aix vectors.
3288 * configure: Regenerated.
3289 * configure.host: Recognize ia64-*-aix*.
3290 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3291 for AIX. AIX5 requires most relocations to be dynamic (*all*
3292 binaries are somewhat similar to shared libraries).
3293 * targets.c: Add elf64_ia64_aix vectors.
3295 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3297 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3298 C8 said "1" instead of "8". Clarify error string for IMM22:
3299 "signed integer" instead of just "integer".
3301 2001-02-20 Andreas Jaeger <aj@suse.de>
3303 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3304 PLT entries that could serve as a definition for a weak symbol.
3306 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3308 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3309 entries that could serve as a definition for a weak symbol.
3310 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3312 2001-02-18 David O'Brien <obrien@FreeBSD>
3314 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3315 FreeBSD/i386-CURRENT differently until I can figure out the needed
3317 * configure: Regenerate.
3318 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3319 FreeBSD/PowerPC, and FreeBSD/sparc64.
3321 2001-02-18 lars brinkhoff <lars@nocrew.org>
3323 * Makefile.am: Add PDP-11 a.out target.
3324 * config.bfd: Likewise.
3325 * configure.in: Likewise.
3326 * targets.c: Likewise.
3327 * archures.c: Likewise.
3328 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3329 * libbfd.h: Add PDP-11 relocations.
3330 * reloc.c: Likewise.
3331 * cpu-pdp11.c: New file.
3332 * pdp11.c: New file.
3334 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3335 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3336 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3337 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3338 (GET_MAGIC): New macro.
3339 (PUT_MAGIC): Likewise.
3340 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3342 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3344 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3345 multiarch needs it).
3347 2001-02-18 H.J. Lu <hjl@gnu.org>
3349 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3352 2001-02-18 Kazu Hirata <kazu@hxi.com>
3354 * vms-misc.c: Fix formatting.
3356 2001-02-16 Kazu Hirata <kazu@hxi.com>
3358 * vms.c: Fix formatting.
3360 2001-02-14 H.J. Lu <hjl@gnu.org>
3362 * elf.c (elf_find_function): New function.
3363 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3364 the file name and function name.
3366 2001-02-14 Nick Clifton <nickc@redhat.com>
3368 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3371 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3372 (BFD64_BACKENDS): Add pepigen.c
3373 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3375 * Makefile.in: Regenerate.
3376 * configure: Regenerate.
3377 * po/POTFILES.in: Regenerate.
3378 * po/bfd.pot: Regenerate.
3380 2001-02-14 H.J. Lu <hjl@gnu.org>
3382 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3383 force_minimum_alignment.
3385 2001-02-14 Bo Thorsen <bo@suse.de>
3387 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3388 (elf64_86_64_size_info): Struct added to fix a problem
3389 with the hashtable string entries.
3390 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3391 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3392 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3393 remove the FIXME for this.
3394 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3395 section. Also removed the FIXME for it.
3396 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3397 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3398 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3400 2001-02-13 Richard Henderson <rth@redhat.com>
3402 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3403 and not user provided.
3405 2001-02-13 Kazu Hirata <kazu@hxi.com>
3407 * vms.c (vms_print_symbol): Remove unreachable code.
3409 * rs6000-core.c: Fix formatting.
3411 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3413 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3414 as _bfd_XXi_only_swap_filehdr_out.
3415 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3416 pe->force_minimum_alignment to TRUE.
3417 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3418 PEI_TARGET_SUBSYSTEM.
3419 (pe_print_private_bfd_data): Call
3420 _bfd_XX_print_private_bfd_data_common() instead of
3421 _bfd_pe_print_private_bfd_data_common().
3422 (pe_bfd_copy_private_bfd_data): Call
3423 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3424 _bfd_pe_bfd_copy_private_bfd_data_common().
3425 (coff_bfd_copy_private_section_data): Define as
3426 _bfd_XX_bfd_copy_private_section_data instead of
3427 _bfd_pe_bfd_copy_private_section_data.
3428 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3429 of a _bfd_pe_get_symbol_info.
3433 * peXXigen.c: Renamed from peigen.c.
3434 (COFF_WITH_XX): Define this macro (will get expanded into
3435 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3436 compiled as peigen.c or pepigen.c.
3437 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3438 define the canonical PEP structures and definitions.
3439 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3440 effect, enforce minimum file and section alignments. If
3441 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3442 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3443 so, by default, this is a no-op).
3445 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3446 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3447 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3448 _bfd_pefoo if it's not defined. Use these macros to define
3451 * libcoff.h (pe_tdata): Add members target_subsystem and
3452 force_minimum_alignment.
3454 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3456 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3458 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3461 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3462 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3465 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3466 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3467 (peigen.c): Add rule to generate from peXXigen.c.
3469 (pepigen.lo): List dependencies for pepigen.lo.
3471 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3473 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3474 $global$ referenced but not defined, set its value here.
3476 2001-02-09 Bo Thorsen <bo@suse.de>
3478 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3480 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3482 (elf64_x86_64_relocate_section): Fix formatting.
3483 (elf64_x86_64_relocate_section): Fix addend for relocation of
3484 R_X86_64_(8|16|32|PC8|PC16|PC32).
3486 2001-02-12 Jan Hubicka <jh@suse.cz>
3488 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3490 2001-02-11 H.J. Lu <hjl@gnu.org>
3492 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3495 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3497 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3498 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3499 relocations against dynsym symbols.
3501 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3502 the R_MIPS_26 relocation.
3503 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3504 the R_MIPS_26 relocation.
3505 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3507 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3508 the R_MIPS_26 relocation.
3509 (mips_elf64_howto_table_rela): Likewise.
3511 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3512 member to mark symbols that have non-CALL relocations against
3514 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3515 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3517 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3518 non-CALL relocation against it is encountered.
3519 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3520 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3521 no_fn_stub is not set.
3523 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3524 information from the real symbol for indirect ones.
3525 Check no_fn_stub to find out if a symbol has a function stub
3528 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3530 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3531 * Makefile.in: Regenerate.
3533 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3535 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3536 true if section name is an unwind table section name.
3537 (elfNN_ia64_additional_program_headers): Count each unwind section
3539 (elfNN_ia64_modify_segment_map): Install one unwind program header
3540 for each unwind separate section. Note: normally the linker
3541 script merges the unwind sections that go into a single segment,
3542 so this still generates at most one unwind program header per
3545 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3546 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3547 (elfNN_ia64_fake_sections): Mark sections with names that start
3548 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3551 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3552 Use it to make sh_info in unwind section point to the text section
3555 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3557 * Makefile.am: Add linux target for S/390.
3558 * archures.c: Likewise.
3559 * bfd-in2.h: Likewise.
3560 * config.bfd: Likewise.
3561 * configure.in: Likewise.
3563 * libbfd.h: Likewise.
3564 * targets.c: Likewise.
3565 * cpu-s390.c: New file.
3566 * elf32-s390.c: New file.
3567 * elf64-s390.c: New file.
3569 2001-02-09 Nick Clifton <nickc@redhat.com>
3571 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3572 ImageBase. This has already been done by coff_swap_hdr_in.
3574 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3576 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3578 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3580 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3581 (sparc64_elf_relocate_section): Likewise.
3583 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3585 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3586 similar to R_SPARC_32.
3587 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3589 2001-02-08 H.J. Lu <hjl@gnu.org>
3591 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3592 relocation entries for weak definitions when building DSO with
3595 2001-02-08 Richard Henderson <rth@redhat.com>
3597 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3598 before visibility. Locally defined protected symbols are not
3601 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3603 * config.bfd: Enable coff64 for rs6000-*. Patch from
3604 <hzoli@austin.ibm.com>.
3606 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3608 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3609 found, do not attempt to find dwarf2 info before returning.
3611 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3613 * elflink.h (is_global_symbol_definition): Rename to
3614 is_global_data_symbol_definition and have it reject function
3616 (elf_link_is_defined_archive_symbol): Use renamed function.
3618 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3620 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3621 * libbfd.h (bfd_target_vector): Likewise.
3622 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3623 make static; create pointer reference named bfd_target_vector.
3624 (_bfd_target_vector_entries): Calculate this based on the array
3625 typed _bfd_target_vector.
3627 2001-02-06 H.J. Lu <hjl@gnu.org>
3629 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3630 internal symbols are not dynamic.
3631 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3633 2001-02-06 Nick Clifton <nickc@redhat.com>
3635 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3636 that it will not be pulled into the list of files that make up
3638 * Makefile.in: Regenerate.
3639 * po/bfd.pot: Regenerate.
3641 2001-02-06 H.J. Lu <hjl@gnu.org>
3643 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3645 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3646 external_PEI_IMAGE_hdr.
3648 2001-02-06 Kazu Hirata <kazu@hxi.com>
3650 * elf-m10200.c: Fix formatting.
3652 2001-02-04 Nick Clifton <nickc@redhat.com>
3654 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3655 rel, it will be handled later on.
3657 2001-02-02 Fred Fish <fnf@ninemoons.com>
3659 * Makefile.in: Fix typo.
3661 2001-02-01 Kazu Hirata <kazu@hxi.com>
3663 * elf-m10300.c: Fix formatting.
3665 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3667 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3668 (elf_backend_get_symbol_type): Define.
3669 (elf64_hppa_object_p): Set architecture and machine from elf
3672 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3674 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3677 2001-01-26 Richard Henderson <rth@redhat.com>
3679 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3680 for non-default visibility.
3681 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3682 delete ugly macro and replace with pretty function.
3684 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3686 * coff-go32.c: Update copyright.
3687 * coff-stgo32.c: Likewise.
3688 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3689 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3690 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3691 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3693 2001-01-25 Kazu Hirata <kazu@hxi.com>
3695 * bfd-in2.h: Rebuild.
3696 * libbfd.h: Likewise.
3698 2001-01-23 H.J. Lu <hjl@gnu.org>
3700 * bfd-in2.h: Rebuild.
3702 2001-01-23 H.J. Lu <hjl@gnu.org>
3704 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3705 is NULL or PRIV(vms_rec) is outside of the buffer.
3707 2001-01-23 Kazu Hirata <kazu@hxi.com>
3709 * coff64-rs6000.c: Fix formatting.
3710 * coff-arm.c: Likewise.
3711 * coffgen.c: Likewise.
3712 * cofflink.c: Likewise.
3713 * coff-mcore.c: Likewise.
3714 * coff-mips.c: Likewise.
3715 * coff-pmac.c: Likewise.
3716 * coff-ppc.c: Likewise.
3717 * coff-rs6000.c: Likewise.
3718 * elf32.c: Likewise.
3719 * elf32-fr30.c: Likewise.
3720 * elf32-i370.c: Likewise.
3721 * elf32-i860.c: Likewise.
3722 * elf32-m32r.c: Likewise.
3723 * elf32-m68k.c: Likewise.
3724 * elf32-mcore.c: Likewise.
3725 * elf32-ppc.c: Likewise.
3726 * elf32-sh.c: Likewise.
3727 * elf32-v850.c: Likewise.
3728 * elf64-alpha.c: Likewise.
3729 * elf64-sparc.c: Likewise.
3730 * elflink.c: Likewise.
3731 * elflink.h: Likewise.
3732 * elf-m10200.c: Likewise.
3733 * elf-m10300.c: Likewise.
3734 * elfxx-ia64.c: Likewise.
3736 * aoutx.h: Fix formatting.
3738 * bfd-in2.h: Likewise.
3739 * bfd-in.h: Likewise.
3740 * cpu-i386.c: Likewise.
3741 * cpu-m68hc11.c: Likewise.
3742 * dwarf2.c: Likewise.
3743 * elf64-x86-64.c: Likewise.
3744 * format.c: Likewise.
3745 * freebsd.h: Likewise.
3747 * hp300hpux.c: Likewise.
3748 * hppabsd-core.c: Likewise.
3749 * hpux-core.c: Likewise.
3751 2001-01-22 Bo Thorsen <bo@suse.de>
3753 * elf64-x86-64.c: Added PIC support for X86-64.
3754 (elf64_x86_64_link_hash_newfunc): Function added.
3755 (elf64_x86_64_link_hash_table_create): Likewise.
3756 (elf64_x86_64_check_relocs): Likewise.
3757 (elf64_x86_64_gc_mark_hook): Likewise.
3758 (elf64_x86_64_gc_sweep_hook): Likewise.
3759 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3760 (elf64_x86_64_size_dynamic_sections): Likewise.
3761 (elf64_x86_64_discard_copies): Likewise.
3762 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3763 (elf64_x86_64_finish_dynamic_sections): Likewise.
3764 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3766 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3768 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3769 * Makefile.in: Regenerate.
3771 2001-01-21 Kazu Hirata <kazu@hxi.com>
3773 * coff-a29k.c: Fix formatting.
3775 2001-01-19 H.J. Lu <hjl@gnu.org>
3777 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3778 relocation section names.
3779 (elf_i386_relocate_section): Report files with bad relocation
3780 section names and return false.
3782 2001-01-17 Bo Thorsen <bo@suse.de>
3784 * targets.c: Alphabetize list of xvecs.
3786 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3788 * config.bfd: Add linux target variant for elfxx-hppa.
3789 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3790 bfd_elf64_hppa_linux_vec.
3791 * configure: Regenerate.
3792 * elf64-hppa.c: Include elf64-target.h again to support linux
3794 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3795 * elf32-hppa.c: Include elf32-target.h again to support linux
3797 (elf32_hppa_post_process_headers): New function.
3798 (elf_backend_post_process_headers): Define.
3799 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3800 bfd_elf32_hppa_linux_vec.
3802 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3803 and data_segment_base fields.
3804 (elf32_hppa_link_hash_table_create ): Init them.
3805 (elf32_hppa_check_relocs): Update comments.
3806 (hppa_record_segment_addr): New function.
3807 (elf32_hppa_relocate_section): Call it.
3808 (final_link_relocate): Handle R_PARISC_SEGREL32.
3809 (elf32_hppa_final_link): New function.
3810 (bfd_elf32_bfd_final_link): Define to call it.
3811 (hppa_unwind_entry_compare): New function.
3812 * cache.c (bfd_open_file): Create files in write+read mode.
3814 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3815 SEGREL32 and numerous other relocs. Change duplicate
3816 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3818 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3821 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3822 .plt entries for DT_INIT and DT_FINI.
3823 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3824 DT_INIT and DT_FINI.
3826 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3827 offsets for stub .plt access if wide mode. Check offset in range.
3829 2001-01-13 Nick Clifton <nickc@redhat.com>
3831 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3834 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3837 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3839 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3840 * configure: Regenerate.
3842 2001-01-11 Peter Targett <peter.targett@arccores.com>
3844 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3845 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3846 * cpu-arc.c (arch_info_struct): Add entries for variants.
3847 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3848 (arc_get_mach) Don't assume machine names prefixed arc- before
3850 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3852 (arc_elf_final_write_processing) Likewise.
3853 (ELF_MACHINE_CODE) Use EM_ARC.
3855 2001-01-10 Nick Clifton <nickc@redhat.com>
3857 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3859 2001-01-07 Philip Blundell <philb@gnu.org>
3861 * README: Replace `bug-gnu-utils@gnu.org' with
3862 `bug-binutils@gnu.org'.
3864 2001-01-04 Kazu Hirata <kazu@hxi.com>
3866 * som.c: Fix formatting.
3868 2001-01-03 Kazu Hirata <kazu@hxi.com>
3870 * ecoffswap.h: Fix formatting.
3871 * elf-bfd.h: Likewise.
3872 * elfarm-nabi.c: Likewise.
3873 * elfarm-oabi.c: Likewise.
3874 * elfcode.h: Likewise.
3875 * elfcore.h: Likewise.
3876 * elflink.c: Likewise.
3877 * elflink.h: Likewise.
3878 * elfxx-ia64.c: Likewise.
3879 * elfxx-target.h: Likewise.
3880 * libbfd.c: Likewise
3881 * linker.c: Likewise.
3882 * lynx-core.c: Likewise.
3884 2001-01-02 Kazu Hirata <kazu@hxi.com>
3886 * pc532-mach.c: Fix formatting.
3887 * pe-arm.c: Likewise.
3888 * pe-i386.c: Likewise.
3889 * pe-mips.c: Likewise.
3890 * pe-ppc.c: Likewise.
3891 * pe-sh.c: Likewise.
3892 * pei-mips.c: Likewise.
3893 * pei-sh.c: Likewise.
3894 * peicode.h: Likewise.
3895 * ppcboot.c: Likewise.
3896 * ptrace-core.c: Likewise.
3898 2001-01-01 Kazu Hirata <kazu@hxi.com>
3900 * reloc.c: Fix formatting.
3901 * riscix.c: Likewise.
3902 * rs6000-core.c: Likewise.
3903 * xcoff-target.h: Likewise.
3905 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3907 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3908 error, by calling bfd_default_set_arch_mach with incoming
3911 2000-12-26 Kazu Hirata <kazu@hxi.com>
3913 * vaxnetbsd.c: Fix formatting.
3914 * versados.c: Likewise.
3915 * vms-gsd.c: Likewise.
3916 * vms-hdr.c: Likewise.
3917 * vms-misc.c: Likewise.
3919 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3921 * archive.c (coff_write_armap): Don't write more than symbol_count
3922 `archive_member_file_ptr's.
3924 2000-12-25 Kazu Hirata <kazu@hxi.com>
3926 * vms-tir.c: Fix formatting.
3928 2000-12-23 Kazu Hirata <kazu@hxi.com>
3930 * vms.c: Fix formatting.
3933 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3935 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3937 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3939 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3942 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3944 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3946 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3948 * libbfd.c (bfd_get_bits): Added
3949 (bfd_put_bits): Likewise
3950 * bfd-in.h: Declared the above.
3951 * bfd-in2.h: Regenerated.
3953 2000-12-20 Kazu Hirata <kazu@hxi.com>
3955 * targets.c: Fix formatting.
3956 * tekhex.c: Likewise.
3957 * trad-core.c: Likewise.
3959 2000-12-19 Kazu Hirata <kazu@hxi.com>
3961 * sco5-core.c: Fix formatting.
3962 * section.c: Likewise.
3963 * sparclinux.c: Likewise.
3964 * sparclynx.c: Likewise.
3965 * sparcnetbsd.c: Likewise.
3967 * stabs.c: Likewise.
3968 * stab-syms.c: Likewise.
3969 * sunos.c: Likewise.
3971 * sysdep.h: Likewise.
3973 2000-12-18 Nick Clifton <nickc@redhat.com>
3975 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3977 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3978 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3980 2000-12-18 Nick Clifton <nickc@redhat.com>
3982 * vms-misc.c (_bfd_vms_get_record): Add default case to
3985 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3987 * elfcore.h (elf_core_file_p): Move to the start of the program
3988 headers before attempting to read them.
3990 2000-12-14 Kazu Hirata <kazu@hxi.com>
3992 * peigen.c: Fix formatting.
3996 2000-12-13 Kazu Hirata <kazu@hxi.com>
3998 * peigen.c: Fix formatting.
4000 2000-12-12 Jim Wilson <wilson@redhat.com>
4002 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4004 2000-12-08 Mark Salter <msalter@redhat.com>
4006 * binary.c (binary_set_section_contents): Ignore sections
4009 2000-12-12 Kazu Hirata <kazu@hxi.com>
4011 * m68klinux.c: Fix formatting.
4012 * m68knetbsd.c: Likewise.
4013 * mipsbsd.c: Likewise.
4014 * netbsd-core.c: Likewise.
4015 * netbsd.h: Likewise.
4016 * newsos3.c: Likewise.
4017 * nlm32-alpha.c: Likewise.
4018 * nlm32-i386.c: Likewise.
4019 * nlm32-ppc.c: Likewise.
4020 * nlm32-sparc.c: Likewise.
4021 * nlmcode.h: Likewise.
4022 * nlmswap.h: Likewise.
4023 * nlm-target.h: Likewise.
4024 * ns32knetbsd.c: Likewise.
4026 2000-12-10 Fred Fish <fnf@be.com>
4028 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4029 symbols in shared objects if allow_shlib_undefined is true.
4031 2000-12-12 Nick Clifton <nickc@redhat.com>
4033 * cpu-sh.c: Fix formattng.
4034 * elf.c: Fix formattng.
4035 * elf32-mips.c: Fix formattng.
4036 * elf32-sh.c: Fix formattng.
4037 * elf64-alpha.c: Fix formattng.
4039 2000-12-09 Nick Clifton <nickc@redhat.com>
4041 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4042 dwarf2_find_line_info as last parameter to invocation of
4043 _bfd_dwarf2_find_nearest_line.
4044 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4045 dwarf2_find_line_info as last parameter to invocation of
4046 _bfd_dwarf2_find_nearest_line.
4048 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4050 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4051 (BFD_LIBS): ...to here.
4052 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4053 (BFD_LIBS_CFILES): ...to here.
4054 * Makefile.in: Regenerate.
4055 * configure.in: Remove dwarf.lo from the elf shell variable.
4056 * configure: Regenerate.
4057 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4058 * libcoff.h: Regenerate.
4059 * coffgen.c (coff_find_nearest_line): Call
4060 _bfd_dwarf2_find_nearest_line.
4061 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4063 (read_abbrevs): Likewise
4064 (decode_line_info): Likewise.
4065 (parse_comp_unit): Likewise.
4066 (comp_unit_find_nearest_line): Likewise.
4067 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4068 * libbfd.h: Regenerate.
4069 * elf.c (_bfd_elf_find_nearest_line): Update call.
4070 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4071 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4072 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4073 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4074 (styp_to_sec_flags): Handle DWARF2 sections.
4075 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4076 to _bfd_find_nearest_line.
4077 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4078 call to _bfd_find_nearest_line.
4080 2000-12-08 Kazu Hirata <kazu@hxi.com>
4082 * coffgen.c: Fix formatting.
4083 * elf-m10300.c: Likewise.
4084 * elf32-i386.c: Likewise.
4085 * elf32-i960.c: Likewise.
4086 * elf32-m68k.c: Likewise.
4087 * elf32-mcore.c: Likewise.
4088 * elf32-ppc.c: Likewise.
4089 * elf32-sh.c: Likewise.
4090 * elf32-sparc.c: Likewise.
4091 * elf32-v850.c: Likewise.
4092 * elf64-alpha.c: Likewise.
4093 * elf64-hppa.c: Likewise.
4094 * elf64-mips.c: Likewise.
4095 * elf64-sparc.c: Likewise.
4097 2000-12-07 Kazu Hirata <kazu@hxi.com>
4099 * elf32-ppc.c: Fix formatting.
4100 * elf64-x86-64.c: Likewise.
4102 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4104 From Ralf Baechle <ralf@gnu.org>
4106 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4107 BFDs containing no sections or empty .text, .data or .bss sections
4108 to be merged, regardless of their flags.
4110 2000-12-06 Kazu Hirata <kazu@hxi.com>
4112 * elf32-m32r.c: Fix formatting.
4113 * elf32-m68hc11.c: Likewise.
4114 * elf32-m68hc12.c: Likewise.
4115 * elf32-m68k.c: Likewise.
4116 * elf32-mcore.c: Likewise.
4117 * elf32-pj.c: Likewise.
4118 * elf32-ppc.c: Likewise.
4120 2000-12-05 Kazu Hirata <kazu@hxi.com>
4122 * elf32-fr30.c: Fix formatting.
4123 * elf32-hppa.c: Likewise.
4124 * elf32-i370.c: Likewise.
4125 * elf32-i386.c: Likewise.
4126 * elf32-i860.c: Likewise.
4127 * elf32-i960.c: Likewise.
4129 2000-12-03 Kazu Hirata <kazu@hxi.com>
4131 * elf32-arm.h: Fix formatting.
4132 * elf32-avr.c: Likewise.
4133 * elf32-cris.c: Likewise.
4134 * elf32-d10v.c: Likewise.
4135 * elf32-d30v.c: Likewise.
4136 * elf-hppa.h: Likewise.
4137 * elf-m10200.c: Likewise.
4138 * elf-m10300.c: Likewise.
4140 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4142 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4143 bfd_mach_mips32_4k. Update FIXME comment.
4144 * archures.c (bfd_mach_mips32): New constant.
4145 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4146 the latter, renumber it.
4147 * bfd-in2.h (bfd_mach_mips32): New constant.
4148 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4149 the latter, renumber it.
4150 * cpu-mips.c (I_mips32): New constant.
4151 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4152 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4153 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4154 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4155 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4156 with E_MIPS_MACH_MIPS32_4K.
4157 (_bfd_mips_elf_final_write_processing): Replace
4158 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4159 bfd_mach_mips32 case.
4160 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4161 comparison with support for MIPS32.
4162 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4165 * aoutx.h (NAME(aout,machine_type)): Add cases for
4166 bfd_mach_mips5 and bfd_mach_mips64.
4167 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4168 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4169 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4170 (arch_info_struct): Add entries for bfd_mach_mips5 and
4172 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4173 _bfd_mips_elf_print_private_bfd_data): Add cases for
4174 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4175 (_bfd_mips_elf_final_write_processing): Add cases for
4176 bfd_mach_mips5 and bfd_mach_mips64.
4178 * aoutx.h (NAME(aout,machine_type)): Add a
4179 bfd_mach_mips_sb1 case.
4180 * archures.c (bfd_mach_mips_sb1): New constant.
4181 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4182 * cpu-mips.c (I_sb1): New constant.
4183 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4184 * elf32-mips.c (elf_mips_mach): Add case for
4186 (_bfd_mips_elf_final_write_processing): Add case for
4189 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4191 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4192 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4193 (sparc*-*-rtems*): Switched from a.out to ELF.
4195 2000-11-30 Jan Hubicka <jh@suse.cz>
4197 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4198 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4199 (elf64-x86-64.lo): Add dependencies.
4200 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4201 bfd_mach_x86_64_intel_syntax.
4202 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4203 * config.bfd (x86_64): Add.
4204 * configure.in: Add support for bfd_elf64_x86_64_vec.
4205 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4206 (bfd_i386_arch, i8086_ar): Link in.
4207 * elf64-x86-64.c: New file.
4208 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4209 * targets.c (bfd_elf64_x86_64_vec): Add.
4210 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4212 2000-11-30 Kazu Hirata <kazu@hxi.com>
4214 * xcofflink.c: Fix formatting.
4216 2000-11-28 Kazu Hirata <kazu@hxi.com>
4218 * aoutx.h: Fix formatting.
4219 * bfd-in.h: Likewise.
4220 * bfd-in2.h: Likewise.
4221 * cache.c: Likewise.
4222 * cisco-core.c: Likewise.
4223 * coff64-rs6000.c: Likewise.
4224 * coffcode.h: Likewise.
4225 * coffswap.h: Likewise.
4226 * corefile.c: Likewise.
4227 * elf32-mips.c: Likewise.
4229 2000-11-27 Kazu Hirata <kazu@hxi.com>
4231 * aout-adobe.c: Fix formatting.
4232 * coff64-rs6000.c: Likewise.
4233 * coffgen.c: Likewise.
4234 * cofflink.c: Likewise.
4236 2000-11-27 Philip Blundell <pb@futuretv.com>
4238 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4239 (obj_coff_strings_written): New accessor macro for above.
4240 * libcoff.h: Regenerate.
4241 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4243 * coffcode.h (coff_write_object_contents): No need to write out
4244 the string table if it's already been done.
4246 2000-11-22 Philip Blundell <pb@futuretv.com>
4248 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4249 weak undefined symbols.
4251 2000-11-24 Nick Clifton <nickc@redhat.com>
4253 * archures.c (bfd_mach_arm_5TE): Define.
4254 (bfd_mach_arm+XScale): Define.
4255 * bfd-in2.h: Regenerate.
4257 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4258 BFD_RELOC_ARM_PCREL_BLX.
4260 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4261 XScale machine numbers.
4263 * config.bfd (xscale-elf): Add target.
4264 (xscale-coff): Add target.
4266 * cpu-arm.c: Add xscale machine name.
4267 Add v5t, v5te and XScale machine numbers.
4269 2000-11-23 Kazu Hirata <kazu@hxi.com>
4271 * aix386-core.c: Fix formatting.
4273 2000-11-22 Jim Wilson <wilson@redhat.com>
4275 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4276 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4277 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4278 (ins_imms_scaled): Initialize sign_bit at function entry.
4279 (elf64_ia64_operands): Add missing initializers.
4280 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4281 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4282 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4283 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4284 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4286 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4287 and free_extsyms at function entry.
4288 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4289 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4290 (get_got): Delete unused local srel.
4291 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4292 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4294 2000-11-21 Kazu Hirata <kazu@hxi.com>
4296 * coff-a29k.c: Fix formatting.
4297 * coff-h8500.c: Likewise.
4298 * coff-i960.c: Likewise.
4299 * coff-ppc.c: Likewise.
4300 * coff-rs6000.c: Likewise.
4301 * coff-stgo32.c: Likewise.
4302 * coff-tic54x.c: Likewise.
4303 * coff-w65.c: Likewise.
4304 * cpu-h8500.c: Likewise.
4305 * cpu-hppa.c: Likewise.
4306 * cpu-ns32k.c: Likewise.
4307 * ecoff.c: Likewise.
4308 * ecofflink.c: Likewise.
4310 2000-11-21 Nick Clifton <nickc@redhat.com>
4312 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4313 remove possibility of infinite loop.
4315 2000-11-20 Kazu Hirata <kazu@hxi.com>
4317 * aix386-core.c: Fix formatting.
4318 * aout-adobe.c: Likewise.
4319 * aout-arm.c: Likewise.
4320 * aout-encap.c: Likewise.
4321 * aout-ns32k.c: Likewise.
4322 * aout-target.h: Likewise.
4323 * aout-tic30.c: Likewise.
4324 * aoutf1.h: Likewise.
4325 * aoutx.h: Likewise.
4326 * archive.c: Likewise.
4327 * bfd-in.h: Likewise.
4328 * bfd-in2.h: Likewise.
4332 2000-11-17 H.J. Lu <hjl@gnu.org>
4334 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4335 pltoff entries for DT_INIT and DT_FINI.
4336 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4337 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4340 2000-11-16 Richard Henderson <rth@redhat.com>
4342 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4343 (allocate_dynrel_entries): Likewise.
4344 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4345 (set_pltoff_entry): Likewise.
4346 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4347 (elfNN_ia64_reloc_type_lookup): Likewise.
4348 (elfNN_ia64_install_value): Likewise.
4349 (elfNN_ia64_relocate_section): Likewise.
4350 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4351 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4353 2000-11-16 Kazu Hirata <kazu@hxi.com>
4355 * cpu-a29k.c: Fix formatting.
4356 * cpu-alpha.c: Likewise.
4357 * cpu-arm.c: Likewise.
4358 * cpu-avr.c: Likewise.
4359 * cpu-d10v.c: Likewise.
4360 * cpu-h8500.c: Likewise.
4361 * cpu-hppa.c: Likewise.
4362 * cpu-i370.c: Likewise.
4363 * cpu-i386.c: Likewise.
4364 * cpu-i960.c: Likewise.
4365 * cpu-ia64-opc.c: Likewise.
4366 * cpu-ia64.c: Likewise.
4367 * cpu-m32r.c: Likewise.
4368 * cpu-m68hc11.c: Likewise.
4369 * cpu-m68hc12.c: Likewise.
4370 * cpu-m68k.c: Likewise.
4371 * cpu-m88k.c: Likewise.
4372 * cpu-mips.c: Likewise.
4373 * cpu-ns32k.c: Likewise.
4374 * cpu-pj.c: Likewise.
4375 * cpu-powerpc.c: Likewise.
4376 * cpu-sh.c: Likewise.
4377 * cpu-sparc.c: Likewise.
4378 * cpu-tic54x.c: Likewise.
4379 * cpu-v850.c: Likewise.
4380 * cpu-vax.c: Likewise.
4381 * cpu-w65.c: Likewise.
4382 * cpu-we32k.c: Likewise.
4383 * cpu-z8k.c: Likewise.
4384 * dwarf1.c: Likewise.
4385 * dwarf2.c: Likewise.
4387 2000-11-15 Kazu Hirata <kazu@hxi.com>
4389 * coff-arm.c: Fix formatting.
4390 * coff-ppc.c: Likewise.
4391 * coff-rs6000.c: Likewise.
4392 * coff-sh.c: Likewise.
4393 * coff-sparc.c: Likewise.
4394 * coff-tic30.c: Likewise.
4395 * coff-tic54x.c: Likewise.
4396 * coff-tic80.c: Likewise.
4397 * coff-w65.c: Likewise.
4398 * coff-we32k.c: Likewise.
4399 * coff-z8k.c: Likewise.
4401 2000-11-15 Richard Henderson <rth@redhat.com>
4403 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4404 section with the same ALLOC|LOAD flags as the source section.
4406 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4408 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4409 by STO_ALPHA constants.
4411 2000-11-14 Kazu Hirata <kazu@hxi.com>
4413 * coff-pmac.c: Fix formatting.
4414 * coff-ppc.c: Likewise.
4416 2000-11-13 H.J. Lu <hjl@gnu.org>
4418 * elflink.h (elf_link_add_object_symbols): Also add indirect
4419 symbols for common symbols with the default version.
4421 2000-11-09 Philip Blundell <pb@futuretv.com>
4423 * section.c (STD_SECTION): Set gc_mark flag.
4425 2000-11-11 Kazu Hirata <kazu@hxi.com>
4427 * coff-i960.c: Likewise.
4428 * coff-m68k.c: Likewise.
4429 * coff-m88k.c: Likewise.
4430 * coff-mcore.c: Likewise.
4431 * coff-mips.c: Likewise.
4433 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4435 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4437 2000-11-10 Kazu Hirata <kazu@hxi.com>
4439 * coff-h8300.c: Fix formatting.
4440 * coff-h8500.c: Likewise.
4441 * coff-i386.c: Likewise.
4442 * coff-i860.c: Likewise.
4443 * coff-i960.c: Likewise.
4444 * coff-ia64.c: Likewise.
4446 2000-11-09 Kazu Hirata <kazu@hxi.com>
4448 * archive.c: Fix formatting.
4449 * archures.c: Likewise.
4451 2000-11-07 Richard Henderson <rth@redhat.com>
4453 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4454 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4455 * section.c (bfd_set_section_contents): Call memcpy if
4456 section->contents set and location not equal to contents plus offset.
4458 2000-11-08 Kazu Hirata <kazu@hxi.com>
4460 * bfd-in.h: Fix formatting.
4461 * bfd-in2.h: Likewise.
4463 * binary.c: Likewise.
4465 * coff-a29k.c: Likewise.
4466 * coff-alpha.c: Likewise.
4467 * coff-apollo.c: Likewise.
4468 * coff-aux.c: Likewise.
4470 2000-11-07 Kazu Hirata <kazu@hxi.com>
4472 * aix386-core.c: Fix formatting.
4473 * aoutf1.h: Likewise.
4474 * aoutx.h: Likewise.
4475 * archures.c: Likewise.
4476 * armnetbsd.c: Likewise.
4478 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4480 * coff-h8300.c (special): Adjust reloc address.
4482 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4484 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4485 to differentiate elf32 and elf64 on ia64.
4486 * bfd-in2.h: Regenerate.
4487 * config.bfd: Add target for "ia64*-*-hpux*".
4488 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4489 * configure: Regenerate.
4490 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4491 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4493 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4494 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4495 * Makefile.in: Regnerate.
4496 * elf64-ia64.c: Deleted.
4497 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4499 2000-11-06 Kazu Hirata <kazu@hxi.com>
4501 * aout-adobe.c: Fix formatting.
4502 * aout-arm.c: Likewise.
4503 * aout-cris.c: Likewise.
4504 * aout-encap.c: Likewise.
4505 * aout-ns32k.c: Likewise.
4506 * aout-target.h: Likewise.
4507 * aout-tic30.c: Likewise.
4509 2000-11-05 Philip Blundell <philb@gnu.org>
4511 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4512 BFDs containing no sections to be merged, regardless of their flags.
4514 2000-11-04 Philip Blundell <philb@gnu.org>
4516 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4517 if a relocation for an undefined symbol also results in an
4520 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4522 * config.bfd: Add support for Sun Chorus.
4524 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4526 * configure.in: Recognize alpha-*-freebsd*.
4527 * configure: Regenerate.
4529 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4531 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4532 (Chunk): New global variable set by a parameter in objcopy.c.
4533 (S3Forced): New global variable set by a parameter in
4535 (srec_set_section_contents): If S3Forced is true, always generate
4537 (srec_write_section): Use 'Chunk' to limit maximum length of S
4540 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4542 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4543 * Makefile.in: Regenerate.
4544 * bfd-in2.h: Regenerate.
4545 * po/bfd.pot: Regenerate.
4547 2000-10-31 Philip Blundell <philb@gnu.org>
4549 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4550 EF_SOFT_FLOAT if it is defined.
4552 2000-10-27 Philip Blundell <philb@gnu.org>
4554 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4555 attempts to mix PIC code with non-PIC, just mark the output as
4556 being position dependent.
4557 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4558 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4559 all mismatches, not just the first one.
4561 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4563 * ieee.c (ieee_archive_p): Plug one of many possible
4564 memory leaks in error handling.
4566 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4568 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4569 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4571 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4572 sparc64_elf_object_p): Support v9b.
4573 * archures.c: Declare v8plusb and v9b machines.
4575 * cpu-sparc.c: Ditto.
4577 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4579 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4582 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4583 (SYMBOL_CALLS_LOCAL): New macro.
4584 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4585 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4586 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4587 (ppc_elf_relocate_section): Use flag variable to determine
4588 whether the relocation refers to a local symbol.
4589 Test whether a PLTREL24 reloc will produce a reloc by looking
4590 to see whether a PLT entry was made.
4592 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4594 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4595 entries that could serve as a definition for a weak symbol.
4597 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4599 From Ralf Baechle <ralf@gnu.org>
4601 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4602 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4603 against local symbols.
4604 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4606 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4608 * section.c (struct sec): Add kept_section.
4609 (struct bfd_comdat_info): Remove sec, we can use above.
4610 (STD_SECTION): Add initializer.
4611 (bfd_make_section_anyway): Init here too.
4613 * bfd-in2.h: Regenerate.
4615 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4617 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4618 fudge values for discarded link-once section symbols.
4620 * elf64-hppa.c: Include alloca-conf.h
4622 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4624 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4626 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4628 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4630 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4632 2000-10-10 Tom Rix <trix@redhat.com>
4634 * section.c (bfd_make_section_anyway): Release newsect ptr when
4635 newsect->symbol fails to alloc. Use bfd_release instead of free.
4637 2000-10-09 Richard Henderson <rth@cygnus.com
4639 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4640 (elf64_ia64_unwind_entry_compare): New.
4641 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4643 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4645 * elflink.h (size_dynamic_sections): Don't create various tags if
4646 .dynstr is excluded from the link. Don't set first dynsym entry
4647 if dynsymcount is zero.
4648 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4649 .dynsym excluded from the link. Don't try to write any dynamic
4650 sections excluded from the link.
4652 * elf.c (swap_out_syms): Handle global section symbols.
4654 2000-10-05 DJ Delorie <dj@redhat.com>
4656 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4657 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4658 (coff_write_relocs): write extended reloc count
4659 (coff_write_object_contents): account for extended relocs
4661 2000-10-05 Jim Wilson <wilson@cygnus.com>
4663 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4665 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4666 elf_backend_section_flags function.
4667 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4669 (elf64_ia64_section_flags): New function containing flag conversion
4671 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4672 * elfxx-target.h (elf_backend_section_flags): Define.
4673 (elfNN_bed): Initialize elf_backend_section_flags field.
4675 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4677 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4678 _bfd_elf32_gc_record_vtable. Correct a comment.
4680 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4682 From Ralf Baechle <ralf@gnu.org>
4684 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4685 produces binaries with got[1] = 0x80000001 to differenciate them
4686 for the dynamic linker from the broken binaries produced by old
4689 2000-09-30 Petr Sorfa <petrs@sco.com>
4691 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4692 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4693 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4694 * configure: Regenerate.
4696 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4698 Define two bfd_targets for absence and presence of leading
4699 underscore on symbols. Make sure to only link same kind.
4700 * elf32-cris.c (cris_elf_object_p,
4701 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4702 cris_elf_merge_private_bfd_data): New.
4703 (elf_backend_object_p, elf_backend_final_write_processing,
4704 bfd_elf32_bfd_print_private_bfd_data,
4705 bfd_elf32_bfd_merge_private_bfd_data): Define.
4706 <Target vector definition>: Include elf32-target.h twice with
4707 different macro settings:
4708 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4709 bfd_elf32_us_cris_vec.
4710 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4711 (elf_symbol_leading_char): First as 0, then '_'.
4712 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4713 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4714 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4715 * configure: Regenerate.
4716 * targets.c: Declare bfd_elf32_us_cris_vec.
4717 * po/bfd.pot: Regenerate.
4719 2000-09-29 Momchil Velikov <velco@fadata.bg>
4721 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4722 R_ARM_THM_PC22 relocations.
4724 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4726 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4728 2000-09-29 Momchil Velikov <velco@fadata.bg>
4730 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4731 is has the SEC_HAS_CONTENTS flag set.
4733 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4734 Hans-Peter Nilsson <hp@axis.com>
4736 * aout-cris.c (N_TXTADDR): Define.
4738 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4740 * som.c: Include alloca-conf.h.
4741 * Makefile.am: "make dep-am"
4742 * Makefile.in: Regenerate.
4744 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4746 * elf32-hppa.c (plt_stub): New.
4747 (PLT_STUB_ENTRY): Define.
4748 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4749 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4750 (elf32_hppa_link_hash_table_create): Init to suit.
4751 (elf32_hppa_check_relocs): Set has_12bit_branch and
4752 has_17bit_branch as appropriate.
4753 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4754 non-local functions.
4755 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4756 Add space for plt_stub as needed.
4757 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4758 functions at plt_stub.
4759 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4760 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4762 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4763 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4764 of fixed size, and if negative, disable handling of input sections
4765 before stub section. Set up default stub group size depending
4766 on detected branch relocs.
4767 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4768 ensure different offsets from sym_value aren't rounded to
4769 different 2k blocks. Use lrsel and rrsel for other stubs too for
4770 consistency rather than necessity.
4771 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4772 (final_link_relocate): Likewise.
4773 (elf32_hppa_relocate_section): Likewise.
4775 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4776 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4777 (elf_hppa_final_link_relocate): Handle them.
4778 (elf_hppa_relocate_insn): Likewise.
4779 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4781 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4783 * elfcode.h (elf_object_p): Preserve and clear abfd section
4784 information. Restore at error.
4786 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4788 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4789 is empty, make sure that its rva also 0. NT loader dislikes
4792 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4794 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4797 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4799 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4800 currently unused RELATIVE_DYNAMIC_RELOCS code.
4801 (hppa_discard_copies): Likewise.
4802 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4803 comments. Don't check non-code output sections for stub grouping.
4805 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4807 * section.c (bfd_get_unique_section_name): Return NULL if
4810 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4812 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4813 instruction sequence to actually work.
4814 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4817 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4819 * elf32-sh.c (sh_elf_relocate_section): Use
4820 _bfd_final_link_relocate to apply the relocation against a section
4821 symbol, when doing relocatable links.
4823 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4825 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4827 (stub_hash_newfunc): Here too.
4828 (hppa_add_stub): And here.
4829 (elf32_hppa_link_hash_table): Remove stub_section_created,
4830 reloc_section_created, first_init_sec and first_fini_sec. Add
4832 (elf32_hppa_link_hash_table_create): Init to suit.
4833 (hppa_get_stub_entry): Add support for grouping stub sections.
4834 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4835 section code. Index stub vars by section->id.
4836 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4837 exit paths. Zap allocation of above removed vars. Refine
4840 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4841 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4842 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4843 rather than pointer to bfd_link_info.
4844 (hppa_add_stub): Likewise.
4845 (final_link_relocate): Likewise.
4847 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4849 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4852 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4854 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4855 ld/emulparams/shelf.sh.
4857 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4859 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4860 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4861 * bfd-in2.h: Regenerate.
4863 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4865 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4866 LITUSE relocations incorrectly if -relax is specified on the ld
4867 command line and the displacement field of the load or store
4868 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4870 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4872 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4873 first_fini_sec here.
4874 (elf32_hppa_size_stubs): Instead correctly find the first .init
4875 and .fini section here.
4877 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4879 * elf32-hppa.c (clobber_millicode_symbols): New function.
4880 (elf32_hppa_size_dynamic_sections): Call it.
4882 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4884 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4885 packed. Add plabel, plt_abs packed booleans.
4886 (hppa_link_hash_newfunc): Init new fields.
4887 (PLABEL_PLT_ENTRY_SIZE): Define.
4888 (hppa_stub_name): Use size_t len vars.
4889 (hppa_add_stub): Likewise.
4890 (elf32_hppa_build_stubs): Likewise.
4891 (hppa_build_one_stub): Kill some compiler warnings.
4892 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4893 if dynamic linking. Munge the local plt offsets into
4894 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4895 size_t len vars. Add assert for plabel addend.
4896 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4897 (elf32_hppa_hide_symbol): New function.
4898 (elf_backend_hide_symbol): Define.
4899 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4900 with h->plabel set. Don't make plt entries to have dynamic syms
4901 when they have been forced local. If plt entry is used by a
4902 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4903 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4904 Set up .plt offsets for local syms.
4905 (elf32_hppa_relocate_section): Initialise plt entries for local
4906 syms. Leave weak undefined plabels zero. Make global plabel
4907 relocs against function symbol, and leave the addend zero.
4908 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4909 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4910 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4911 relocs instead of SEGREL32 for dynamic got relocs.
4912 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4913 (elf_backend_got_header_size): Adjust.
4914 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4916 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4917 (hppa_type_of_stub): Use it instead of #if 0
4918 (hppa_discard_copies): Use it here too.
4919 (elf32_hppa_size_dynamic_sections): And here.
4921 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4922 (elf32_hppa_link_hash_table_create): And here.
4923 (hppa_build_one_stub): And here. Instead keep track of stub
4924 offset using _raw_size.
4925 (elf32_hppa_size_stubs): Likewise.
4926 (elf32_hppa_build_stubs): Likewise.
4927 (hppa_size_one_stub): Likewise. Resize reloc section too.
4929 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4930 first_fini_sec handling. Don't search for reloc section or set
4931 hplink->reloc_section_created here.
4932 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4933 set reloc_section_created here.
4934 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4935 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4937 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4939 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4940 with `hplink->root.'.
4941 (elf32_hppa_check_relocs): Likewise.
4942 (elf32_hppa_gc_sweep_hook): Likewise.
4943 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4944 (hppa_handle_PIC_calls): Likewise.
4945 (elf32_hppa_size_dynamic_sections): Likewise.
4946 (elf32_hppa_set_gp): Likewise.
4947 (elf32_hppa_relocate_section): Likewise.
4948 (elf32_hppa_finish_dynamic_symbol): Likewise.
4949 (elf32_hppa_finish_dynamic_sections): Likewise.
4951 From David Huggins-Daines <dhd@linuxcare.com>
4952 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4953 defined weak symbols in shared links.
4954 (final_link_relocate): Calls to defined weak symbols in shared
4955 objects must go via import stubs, as the target might not be known
4958 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4960 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4961 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4962 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4963 the original entries with EMPTY_HOWTOs, and added new ones to fill
4965 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4966 (sh_elf_relocate_section): Likewise.
4968 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4970 * cpu-mips.c (arch_info_struct): Add mips:4K
4971 * bfd-in2.h (bfd_mach_mips4K): New define.
4972 * archures.c: Add bfd_mach_mips4K to comment.
4973 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4974 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4976 2000-09-13 Marco Franzen <marcof@thyron.com>
4978 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4979 use size_t as a counter.
4980 (som_write_space_strings): Similarly.
4982 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4984 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4986 (elf32_i860_relocate_section): Invoke new function from here.
4988 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4990 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4993 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4995 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4996 target section name instead of dumping core when the target symbol is
4999 2000-09-09 Kazu Hirata <kazu@hxi.com>
5001 * riscix.c: Remove DEFUN.
5003 2000-09-08 Nick Clifton <nickc@redhat.com>
5005 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5006 initialise flags in output bfd if the input bfd is the default
5007 architecture with the default flags.
5009 2000-09-08 Kazu Hirata <kazu@hxi.com>
5011 * archive.c: Fix formatting.
5012 * coff-arm.c: Likewise.
5013 * doc/chew.c: Likewise.
5015 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5017 * section.c (bfd_get_unique_section_name): Put a dot before the
5020 2000-09-07 Kazu Hirata <kazu@hxi.com>
5022 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5023 * elf.c: Fix formatting.
5025 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5027 * config.bfd (sh-*-linux*): Added.
5028 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5029 * targets.c: Declare them.
5030 * elf32-sh-lin.c: New file.
5031 * Makefile.am: Compile it.
5032 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5033 * configure, Makefile.in: Rebuilt.
5035 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5037 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5038 pseduo-section when determining where the TOC ends.
5040 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5041 output x_tvndx as it is only two bytes wide.
5043 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5044 reloc is 26 or 32 bits wide.
5046 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5047 for relocs that don't change anything. Also look at the full
5050 2000-09-06 Philip Blundell <philb@gnu.org>
5052 * config.bfd (arm*-*-uclinux*): New target.
5054 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5056 * configure: Rebuilt with new libtool.m4.
5058 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5060 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5061 word for variable name.
5062 * bfd-in2.h: Regenerate.
5064 2000-09-05 Nick Clifton <nickc@redhat.com>
5066 * config.in: Regenerate.
5067 * libbfd.h: Regenerate.
5068 * po/bfd.pot: Regenerate.
5069 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5072 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5074 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5076 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5078 Shared library and PIC support.
5079 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5080 (GOT_ENTRY_SIZE): New.
5081 (ELF_DYNAMIC_INTERPRETER): New.
5082 (STUB_SUFFIX): Define.
5083 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5084 (RELATIVE_DYNAMIC_RELOCS): Define.
5085 (enum elf32_hppa_stub_type): New.
5086 (struct elf32_hppa_stub_hash_entry): Rename offset to
5087 stub_offset. Add a number of new fields.
5088 (struct elf32_hppa_link_hash_entry): New.
5089 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5091 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5092 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5093 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5095 (hppa_link_hash_newfunc): New function.
5096 (elf32_hppa_link_hash_table_create): Use above function. Init new
5098 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5099 instead of addend, and remove sym_name from args. Don't use
5100 symbol name for local syms, instead use sym index.
5101 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5102 stub type rather than size. Pass in hash and handle import stub
5103 case. Also pass in reloc instead of offset so we can calculate
5104 PCREL22F and PCREL12F branches properly.
5105 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5106 import and export stubs too.
5107 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5108 import and export stub sizing.
5109 (elf32_hppa_check_relocs): New function.
5110 (elf32_hppa_adjust_dynamic_symbol): New function.
5111 (hppa_discard_copies): New function.
5112 (elf32_hppa_size_dynamic_sections): New function.
5113 (elf_backend_size_dynamic_sections): Define.
5114 (elf32_hppa_finish_dynamic_symbol): New function.
5115 (elf_backend_finish_dynamic_symbol): Define.
5116 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5117 some local vars into the link hash table too. For shared links,
5118 trundle over function syms, generating export stubs. Handle
5119 PCREL22F branches. Break out stub creation code from here..
5120 (hppa_add_stub): .. to here. New function.
5121 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5122 call the bfd linker. Use elf_gp to record global pointer.
5123 Calculate a value from sections if $global$ is missing.
5124 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5125 (elf32_hppa_gc_mark_hook): New function.
5126 (elf_backend_gc_mark_hook): Define.
5127 (elf32_hppa_gc_sweep_hook): New function.
5128 (elf_backend_gc_sweep_hook): Define.
5129 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5130 Add rel to args, and remove howto, input_bfd, offset, addend,
5131 sym_name as we can recalculate these locally. Handle calls to
5132 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5133 handling of undefined weak syms. Check that stubs are in range.
5134 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5135 message on hitting a DPREL21L reloc that needs fixing. Subtract
5136 off PC for PCREL14F. Break out code that does a stub lookup from
5138 (hppa_get_stub_entry): ..to here. New function.
5139 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5140 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5142 (elf32_hppa_finish_dynamic_sections): New function.
5143 (elf_backend_finish_dynamic_sections): Define.
5144 (elf_backend_final_write_processing) Define.
5145 (hppa_handle_PIC_calls): New function.
5146 (elf32_hppa_build_stubs): Call it. Pass link_info to
5147 hppa_build_one_stub.
5148 (elf32_hppa_create_dynamic_sections): New function
5149 to create .plt and .got then set .plt flags correctly.
5150 (elf_backend_create_dynamic_sections): Define.
5151 (elf32_hppa_object_p): New function.
5152 (elf_backend_object_p): Define.
5153 (elf32_hppa_elf_get_symbol_type): New function.
5154 (elf_backend_get_symbol_type): Define.
5155 (elf_backend_can_gc_sections): Define.
5156 (elf_backend_want_got_plt): Define.
5157 (elf_backend_plt_alignment): Set to 2.
5158 (elf_backend_plt_readonly): Define.
5159 (elf_backend_want_plt_sym): Define.
5160 (elf_backend_got_header_size): Reserve one entry.
5162 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5163 (elf32_hppa_size_stubs): Pass in multi_subspace.
5164 (elf32_hppa_set_gp): Declare.
5166 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5167 (bfd_get_unique_section_name): New function.
5168 * bfd-in2.h: Regenerate.
5170 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5171 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5174 From David Huggins-Daines <dhd@linuxcare.com>
5175 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5176 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5177 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5178 been updated in finish_dynamic_symbol before modifying function
5181 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5182 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5183 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5184 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5185 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5186 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5187 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5188 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5190 From David Huggins-Daines <dhd@linuxcare.com>
5191 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5192 style of local labels as well.
5194 2000-09-03 Philip Blundell <philb@gnu.org>
5196 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5197 references to undefined symbols in debugging sections.
5199 2000-09-02 H.J. Lu <hjl@gnu.org>
5201 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5202 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5203 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5206 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5208 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5209 (elf32_i860_is_local_label_name): New function and prototype.
5211 2000-09-02 Nick Clifton <nickc@redhat.com>
5213 * configure.in: Increase version number to 2.10.91.
5214 * configure: Regenerate.
5215 * aclocal.m4: Regenerate.
5216 * config.in: Regenerate.
5217 * po/bfd.pot: Regenerate.
5219 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5221 * elf.c (_bfd_elf_make_section_from_shdr): Add
5222 .gnu.linkobce.wi. to the list of debug section names.
5224 2000-09-02 Nick Clifton <nickc@redhat.com>
5226 * dwarf2.c (find_debug_info): New function: Locate a section
5227 containing dwarf2 debug information.
5228 (bfd_dwarf2_find_nearest_line): Find all sections containing
5229 debug information and include them in the stash.
5231 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5233 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5234 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5235 (sh_reloc_map): Add new relocs.
5236 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5237 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5238 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5239 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5241 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5242 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5243 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5244 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5245 New array constants.
5246 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5248 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5249 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5250 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5251 elf_sh_plt_reloc_offset): Define.
5252 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5253 elf_sh_link_hash_table): New structs.
5254 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5255 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5257 (elf_backend_create_dynamic_sections,
5258 bfd_elf32_bfd_link_hash_table_create,
5259 elf_backend_adjust_dynamic_symbol,
5260 elf_backend_size_dynamic_sections,
5261 elf_backend_finish_dynamic_symbol,
5262 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5263 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5264 elf_backend_got_header_size, elf_backend_plt_header_size):
5266 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5267 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5269 * bfd-in2.h, libbfd.h: Rebuilt.
5271 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5273 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5276 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5278 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5279 not initialized, set them to indicate the SH1 instruction set.
5281 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5283 * acinclude.m4: Include libtool and gettext macros from the
5285 * aclocal.m4, configure: Rebuilt.
5287 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5289 * elf.c: Eliminate references to __sparcv9 macro; replace with
5290 autoconf variables HAVE_PSINFO32_T etc.
5291 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5292 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5294 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5295 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5296 * aclocal.m4: Ditto.
5297 * configure: Regenerate.
5299 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5301 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5302 for any shared link, not just shared -Bsymbolic.
5303 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5304 any shared link, and pass link info to it.
5305 (elf_i386_size_dynamic_sections): Update comment.
5306 (elf_i386_discard_copies): Modify to discard relocs for symbols
5307 that have been forced local.
5308 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5309 that have been forced local.
5311 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5313 * elflink.h (elf_link_add_object_symbols): Allow common
5314 symbols to have an alignment of 1 if explicitly requested, and
5315 not overridden by other definitions.
5317 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5319 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5320 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5322 2000-08-22 H.J. Lu <hjl@gnu.org>
5324 * elf-bfd.h (elf_link_hash_table): Add runpath.
5326 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5327 * bfd-in2.h: Rebuilt.
5329 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5330 "runpath" field to NULL.
5331 (bfd_elf_get_runpath_list): New function.
5333 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5336 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5338 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5339 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5340 explicitly. Improve validation of r_type.
5342 2000-08-21 H.J. Lu <hjl@gnu.org>
5344 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5345 dynamic allocated content space. Add a comment to remind us that
5346 one day this ought to be fixed.
5347 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5348 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5349 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5351 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5353 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5354 field with the newly relocated value instead of adding it to the
5355 existing immediate field.
5356 (elf32_i860_relocate_splitn): Likewise.
5357 (elf32_i860_relocate_highadj): Likewise.
5359 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5361 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5362 was previously just a stub).
5364 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5366 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5368 (_bfd_elf_create_dynamic_sections): Likewise.
5370 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5372 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5373 for undefined symbols to be the beginning of the section.
5375 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5376 four extra entries at the beginning of the .rela.plt section.
5377 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5378 section to account for the four reserved entries in the .plt section.
5380 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5382 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5383 to the list of NOPs we recognize after a branch-and-link.
5384 Use the ori NOP when one is needed.
5386 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5389 2000-08-14 Jim Wilson <wilson@cygnus.com>
5391 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5392 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5393 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5396 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5398 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5400 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5402 * elf32-i860.c (elf32_i860_relocate_section): New function.
5403 (i860_final_link_relocate): New function.
5404 (elf32_i860_relocate_splitn): New function.
5405 (elf32_i860_relocate_pc16): New function.
5406 (elf32_i860_relocate_highadj): New function.
5407 (elf32_i860_howto): Minor adjustments to some relocations.
5408 (elf_info_to_howto_rel): Define.
5409 (elf_backend_relocate_section): Define.
5411 2000-08-10 Nick Clifton <nickc@cygnus.com>
5413 * elf32-arm.h: Fix formatting.
5415 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5417 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5419 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5421 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5423 2000-08-07 Kazu Hirata <kazu@hxi.com>
5425 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5426 * elf64-ia64.c: Fix a typo.
5428 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5430 * elf32-i860.c (elf32_i860_howto_table): New structure.
5431 (lookup_howto): New function.
5432 (elf32_i860_reloc_type_lookup): New function.
5433 (elf32_i860_info_to_howto_rela): New function.
5434 (elf_code_to_howto_index): New structure.
5435 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5436 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5437 elf32_i860_reloc_type_lookup.
5439 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5441 * som.c (struct fixup_format): Constify `format'.
5442 (som_hppa_howto_table): Use SOM_HOWTO macro.
5443 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5444 (som_bfd_reloc_type_lookup): Likewise.
5445 (compare_subspaces): Remove unused `count1', `count2'.
5446 (som_begin_writing): Remove unused `total_reloc_size'.
5447 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5448 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5449 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5450 (som_find_nearest_line): Decorate unused parameter(s).
5451 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5452 (som_bfd_link_split_section): Likewise.
5454 2000-08-03 Nick Clifton <nickc@cygnus.com>
5456 * section.c: Restore backed out code.
5457 * elf.c: Restore backed out code.
5458 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5459 binaries from working.
5460 * bfd-in2.h: Regenerate.
5462 2000-08-03 H.J. Lu <hjl@gnu.org>
5464 * section.c: Back out the change made by Nick Clifton
5465 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5467 * bfd-in2.h: Likewise.
5470 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5472 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5474 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5476 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5477 * bfd-in2.h, libbfd.h: Regenerate.
5479 2000-07-31 Nick Clifton <nickc@cygnus.com>
5481 * section.c (struct sec): Add new boolean field 'segment_mark'.
5482 (STD_SECTION): Initialise new field to zero.
5484 * bfd-in2.h: Regenerate.
5486 * elf.c (copy_private_bfd_data): Reorganise section to segment
5487 mapping to cope with moved sections requiring new segments,
5488 and overlapping segments.
5489 (SEGMENT_END): New macro: Return the end address of a segment.
5490 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5491 contains a section by comparing their VMA addresses.
5492 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5493 contains a section by comparing their LMA addresses.
5494 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5495 section should be included in a segment.
5496 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5497 follows another in memory.
5498 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5501 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5503 * cpu-i860.c: Added comments.
5505 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5506 bfd_elf32_i860_little_vec.
5507 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5508 (ELF_MAXPAGESIZE): Changed to 4096.
5510 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5512 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5514 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5515 config for little endian elf32 i860.
5516 (targ_defvec): Define for the new config above
5517 as "bfd_elf32_i860_little_vec".
5518 (targ_selvecs): Define for the new config above
5519 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5521 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5524 * configure: Regenerated.
5526 2000-07-27 H.J. Lu <hjl@gnu.org>
5528 * elflink.h (elf_merge_symbol): Take one more argument,
5529 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5530 entry. Don't overide the existing weak definition if dt_needed
5532 (elf_link_add_object_symbols): Pass dt_needed to
5533 elf_merge_symbol ().
5535 2000-07-27 Nick Clifton <nickc@cygnus.com>
5537 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5540 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5542 * configure.host (*-*-aix*): AIX has 'long long' always.
5544 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5545 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5546 (xcoff_write_archive_contents_big): Don't update the offset
5547 of the symbol table, xcoff_write_armap will do it.
5549 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5551 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5552 of dynobj for SGI_COMPAT checks.
5554 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5556 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5557 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5558 * bfd-in2.h: Regenerate.
5560 2000-07-21 Nick Clifton <nickc@cygnus.com>
5562 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5563 range symbol indices in relocs and issue an error message.
5565 2000-07-20 H.J. Lu <hjl@gnu.org>
5567 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5568 info->new_dtags when setting DT_FLAGS_1. It will only be set
5569 by the new linker options. It shouldn't break anything.
5571 2000-07-20 H.J. Lu <hjl@gnu.org>
5573 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5574 only if info->new_dtags is true.
5576 2000-07-20 H.J. Lu <hjl@gnu.org>
5578 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5579 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5581 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5583 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5584 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5585 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5586 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5587 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5588 * Makefile.in: Rebuild.
5589 * aclocal.m4: Rebuild.
5590 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5591 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5592 (bfd_cris_arch): Declare.
5593 (bfd_archures_list): Add bfd_cris_arch.
5594 * bfd-in2.h: Rebuild.
5595 * config.bfd: (cris-*-*): New target.
5596 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5597 * configure: Rebuild.
5598 * elf.c (prep_headers): Add bfd_arch_cris.
5599 * libbfd.h: Rebuild.
5600 * libaout.h (enum machine_type): Add M_CRIS.
5601 * reloc.c: Add CRIS relocations.
5602 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5603 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5604 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5605 * po/POTFILES.in, po/bfd.pot: Regenerate.
5607 2000-07-19 H.J. Lu <hjl@gnu.org>
5609 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5610 DF_TEXTREL if DT_TEXTREL is set.
5611 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5612 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5613 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5614 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5615 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5616 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5617 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5618 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5619 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5620 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5622 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5623 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5625 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5627 2000-07-19 H.J. Lu <hjl@gnu.org>
5629 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5630 * bfd-in2.h: Rebuild.
5632 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5633 (elf_dt_soname): New.
5635 * elf.c (bfd_elf_set_dt_needed_soname): New.
5637 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5638 entry if the shared object loaded by DT_NEEDED is used to
5639 resolve the reference in a regular object.
5641 2000-07-19 H.J. Lu <hjl@gnu.org>
5643 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5644 DT_DEPAUDIT and DT_AUDIT as strings.
5646 2000-07-19 Nick Clifton <nickc@cygnus.com>
5648 * format.c: Fix formatting.
5650 2000-07-19 H.J. Lu <hjl@gnu.org>
5652 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5654 2000-07-19 H.J. Lu <hjl@gnu.org>
5656 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5657 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5658 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5659 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5660 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5661 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5662 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5664 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5666 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5667 renamed functions from here...
5668 (assign_section_numbers): Use renamed functions.
5669 (prep_headers): Use renamed functions.
5671 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5672 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5673 * bfd-in2.h: Regenerate.
5675 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5677 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5678 parenthesis in if statement.
5680 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5682 Enable the support for Traditional MIPS.
5683 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5684 return ict_none appropriately for traditional mips targets.
5685 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5686 (STUB_MOVE): Conditionalize for traditonal mips.
5687 (STUB_LI16): Likewise.
5688 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5689 room for RTPROC header.
5690 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5691 the permission for the PT_DYNAMIC as read, write and execute.
5692 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5693 for traditonal mips.
5694 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5695 _DYNAMIC_LINKING for traditonal mips.
5696 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5697 in case of traditonal mips.
5698 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5699 entry is required. For a function if PLT is not required then set the
5700 corresponding hash table entry to 0.
5701 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5703 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5704 shared object set the value to 0.
5705 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5706 _DYNAMIC_LINKING for traditonal mips.
5707 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5708 for traditonal mips.
5710 2000-07-15 H.J. Lu <hjl@gnu.org>
5712 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5714 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5716 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5717 out a structure that is BFD_IN_MEMORY.
5719 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5721 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5722 bfd pointer. Print section id instead of bfd pointer for local
5723 syms. Prefix addend with `+' for global syms as well as local.
5724 Correct calculation of name component lengths.
5725 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5727 From David Huggins-Daines <dhd@linuxcare.com>
5728 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5729 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5730 (elf64_hppa_modify_segment_map): Likewise.
5732 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5734 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5735 addresses to be "naturally" sign extended. Return -1 if unknown.
5736 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5737 * bfd-in2.h: Regenerate.
5739 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5741 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5742 and ECOF_SIGNED_64 to list ways to extract an offset.
5743 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5744 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5746 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5747 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5749 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5751 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5752 bfd_get_start_address.
5753 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5754 (elf_swap_ehdr_out): Ditto.
5756 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5758 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5759 compatibility with older binutils.
5761 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5763 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5764 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5766 From Ryan Bradetich <rbradetich@uswest.net>
5767 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5768 (parse_line_table): Ditto.
5769 (_bfd_dwarf1_find_nearest_line): Ditto.
5770 * syms.c (cmpindexentry): Remove extra `*' from params.
5772 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5774 * elf32-mips.c (sort_dynamic_relocs): New Function.
5775 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5776 via qsort to sort the dynamic relocations in increasing r_symndx
5779 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5781 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5782 ATTRIBUTE_UNUSED to unused args.
5783 (get_opd): Likewise.
5784 (get_plt): Likewise.
5785 (get_dlt): Likewise.
5786 (get_stub): Likewise.
5787 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5788 (elf64_hppa_link_output_symbol_hook): Likewise.
5789 (elf64_hppa_check_relocs): Delete unused var.
5790 (elf64_hppa_size_dynamic_sections): Likewise.
5791 (elf64_hppa_finalize_opd): Likewise.
5792 (elf64_hppa_finalize_dynreloc): Likewise.
5793 (elf64_hppa_modify_segment_map): Likewise.
5794 (elf64_hppa_finish_dynamic_sections): Likewise.
5796 * elf-hppa.h (elf_hppa_final_write_processing): Add
5797 ATTRIBUTE_UNUSED to unused args.
5798 (elf_hppa_final_link_relocate): Likewise.
5799 (elf_hppa_record_segment_addrs): Add paretheses.
5800 (elf_hppa_relocate_section): Constify dyn_name.
5802 From David Huggins-Daines <dhd@linuxcare.com>
5803 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5804 rearrange case statement so that it gets preferred to 32-bit ones.
5806 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5807 asection->id instead of address of asection structure.
5808 (elf32_hppa_size_stubs): Likewise.
5810 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5811 for .init* and .fini*.
5813 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5814 and addends used in stub names to 32 bits.
5815 (elf32_hppa_size_stubs): Likewise.
5817 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5818 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5819 not bfd_put_64. Fix minor comment typo and formatting.
5821 Changes to create multiple linker stubs, positioned immediately
5822 before the section where they are required.
5823 * elf32-hppa.c: Don't include hppa_stubs.h.
5824 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5825 (elf32_hppa_stub_hash_table): Delete.
5826 (elf32_hppa_link_hash_entry): Delete.
5827 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5828 stub_hash_table, and store the struct here rather than a pointer.
5829 Delete output_symbol_count. Add offset array. Change
5830 global_value to a bfd_vma.
5831 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5832 (elf32_hppa_stub_hash_traverse): Delete.
5833 (elf32_hppa_name_of_stub): Delete.
5834 (elf32_hppa_link_hash_lookup): Delete.
5835 (elf32_hppa_link_hash_traverse): Delete.
5836 (elf32_hppa_stub_hash_table_init): Delete.
5837 (elf32_hppa_size_of_stub): Pass input section and offset rather
5838 than location and calculate location here. Don't pass name as all
5839 stubs are now the same size.
5840 (elf32_hppa_stub_hash_newfunc): Init new fields.
5841 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5843 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5844 comparing against ints. Rewrite stub handling code.
5845 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5846 Case enums to int before comparing against ints. Remove
5847 bfd_reloc_dangerous case.
5848 (elf32_hppa_build_one_stub): Rewrite.
5849 (elf32_hppa_size_one_stub): New function.
5850 (elf32_hppa_build_stubs): Rewrite.
5851 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5852 Rewrite stub-handling specific code.
5854 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5856 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5858 * hppa_stubs.h: Delete.
5859 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5860 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5861 * Makefile.in: Regenerate.
5863 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5866 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5868 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5869 and section name for bfd_reloc_notsupported error message.
5870 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5871 bfd_reloc_notsupported.
5872 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5874 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5875 undefined weak symbols for all relocs.
5876 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5877 offsets are relative to one past the delay slot.
5878 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5879 branch destination. Put addend into stub name too.
5880 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5881 adjust by 8 when deciding whether a linker stub is needed. Put
5882 addend into stub name as for above.
5884 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5885 various args and vars.
5886 (elf32_hppa_bfd_final_link_relocate): Here too.
5887 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5888 inner block var to avoid shadowing.
5890 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5892 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5893 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5894 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5896 * libhppa.h: Change practically all unsigned ints to plain ints.
5897 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5900 From Ryan Bradetich <rbradetich@uswest.net>
5901 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5902 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5904 From David Huggins-Daines <dhd@linuxcare.com>
5905 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5906 to the new OP_* ones.
5908 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5909 error exit. Bail out earlier on plabel relocs that we aren't
5910 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5911 string, and then don't free our copy.
5912 (elf32_hppa_build_one_stub): Make insn unsigned int.
5914 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5915 available with BL, not BE and BLE.
5917 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5918 code for elf arg relocs.
5919 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5920 argument with elf_link_hash_entry h. Handle undefined weak
5921 symbols. Move $global$ lookup from here...
5922 (elf32_hppa_relocate_section): ...to here. Return correct error
5923 message for non-handled relocs.
5924 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5925 wrong test was -0x3ffff to +0x40000.
5927 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5928 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5929 Handle them as such.
5930 (elf_hppa_relocate_insn): Fix a typo.
5932 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5933 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5934 assemble_17, assemble_21): Delete.
5935 Supply defines for all 64 possible opcodes.
5936 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5937 formats. Handle COMICLR.
5938 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5941 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5942 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5943 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5945 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5946 the local syms - did this code get deleted accidentally? Ignore
5947 undefined and undefweak syms.
5949 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5950 block. Use it instead of elf64_hppa_hash_table (info).
5951 (elf_hppa_final_link_relocate): Use hppa_info instead of
5952 elf64_hppa_hash_table (info).
5954 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5955 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5956 (hppa_rebuild_insn): Mask immediate bits here instead.
5957 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5959 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5961 * section.c (struct sec): Add id field. Tidy comment formatting.
5962 (bfd_make_section_anyway): Set id.
5963 (STD_SECTION): Init id too.
5964 Change CONST to const throughout.
5965 * archures.c (bfd_arch_info): Tidy comment.
5966 (bfd_arch_list): Change a CONST to const.
5967 * libbfd-in.h: Tidy comments and replace CONST with const.
5968 * elf-bfd.h: Likewise.
5969 * libbfd.h: Regenerate.
5970 * bfd-in2.h: Regenerate.
5971 * libcoff.h: Regenerate.
5973 2000-07-07 DJ Delorie <dj@redhat.com>
5975 * archive.c (_bfd_write_archive_contents): Add an informative
5978 2000-07-06 Kazu Hirata <kazu@hxi.com>
5980 * srec.c: Fix formatting.
5982 2000-06-05 DJ Delorie <dj@redhat.com>
5986 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5988 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5989 value of PC-relative offsets.
5991 2000-07-03 Jim Wilson <wilson@cygnus.com>
5993 * elf64-alpha.c (alpha_elf_size_info): New.
5994 (elf_backend_size_info): Define to alpha_elf_size_info.
5995 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5997 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5999 * elf32-mips.c: Include elf32-target.h again for the traditional
6002 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6004 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6005 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6006 (avr_info_to_howto_rela): Likewise.
6007 (elf32_avr_gc_mark_hook): Likewise.
6008 (elf32_avr_gc_sweep_hook): Likewise.
6009 (elf32_avr_relocate_section): Likewise.
6011 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6013 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6014 an external symbol for a non-shared, non-relocatable link.
6016 2000-07-03 Nick Clifton <nickc@redhat.com>
6018 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6019 is an external symbol.
6020 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6023 2000-07-03 Kazu Hirata <kazu@hxi.com>
6025 * reloc16.c: Fix formatting.
6027 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6029 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6030 to add a new target for traditional mips i.e
6031 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6032 * configure.in: Likewise.
6033 * configure: Rebuild.
6034 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6036 (bfd_elf32_tradlittlemips_vec): Likewise.
6037 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6038 to see that elfNN_bed does not get redefined even if the target file
6039 is included twice for a chip. See elf32-mips.c.
6041 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6043 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6044 (CLEANFILES): Add DEPA.
6045 * Makefile.in: Regenerate.
6047 2000-06-30 DJ Delorie <dj@cygnus.com>
6049 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6050 can't assume the PE header is at 0x80.
6052 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6054 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6056 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6058 * go32stub.h: Update stub.
6060 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6062 * archures.c (bfd_mach_avr5): Define.
6063 * bfd-in2.h (bfd_mach_avr5): Define.
6064 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6065 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6066 (compatible): Update comment. Add missing test.
6067 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6068 for avr2 and avr4. Simplify 8K wrap code.
6069 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6070 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6072 2000-06-26 Kazu Hirata <kazu@hxi.com>
6074 * coff-h8300.c: Fix formatting.
6075 * cpu-h8300.c: Likewise.
6077 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6079 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6080 for local symbols whose names are unknown.
6082 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6084 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6086 * Makefile.in: Regenerate.
6087 * doc/Makefile.in: Regenerate.
6089 2000-06-20 H.J. Lu <hjl@gnu.org>
6091 * Makefile.am: Rebuild dependency.
6092 * Makefile.in: Rebuild.
6094 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6096 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6097 (elf_backend_copy_indirect_symbol): Map to the new function.
6099 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6101 * archive.c (normalize): Correct pointer comparison when checking
6103 (bfd_bsd_truncate_arname): Likewise.
6104 (bfd_gnu_truncate_arname): Likewise.
6106 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6108 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6109 sections elf_{text,data}_{section,symbol}.
6110 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6111 (_bfd_mips_elf_hide_symbol): New function.
6112 (elf_backend_hide_symbol): Map to the new function.
6113 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6114 definitions of mips_elf_{text,data}_{section,symbol}.
6115 (mips_elf_local_relocation_p): Try to find the direct symbol
6116 based on new check_forced argument.
6117 (mips_elf_calculate_relocation): Use new version of
6118 mips_elf_local_relocation_p.
6119 (mips_elf_relocate_section): Likewise.
6120 (_bfd_mips_elf_relocate_section): Likewise.
6121 (mips_elf_sort_hash_table): Only assert that have enough GOT
6123 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6124 entry if the relocation based on the new external argument.
6125 (mips_elf_create_dynamic_relocation): Assert that we have a
6126 section contents allocated where we can swap out the dynamic
6128 (mips_elf_calculate_relocation): Find the real hash-table entry
6129 correctly by using h->root.root.type. Only create a dynamic
6130 relocation entry if the symbol is defined in a shared library.
6131 Create an external GOT entry for the GOT16 relocation if the
6132 symbol was forced local.
6133 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6134 dynamic index if the symbol was forced local.
6136 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6138 * elf32-mips.c: Fix typos in comments.
6140 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6142 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6145 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6147 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6148 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6149 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6150 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6151 (bfd_elf32_m68hc11_vec): Likewise.
6152 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6153 Supports 68hc11 & 68hc12 at the same time.
6154 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6156 (bfd_elf32_m68hc11_vec): Likewise.
6157 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6158 * archures.c (bfd_m68hc12_arch): Define and register in global list
6159 (bfd_m68hc11_arch): Likewise.
6160 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6161 BFD_RELOC_M68HC11_3B): Define.
6162 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6163 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6165 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6167 * elf_bfd.h (struct elf_backend_data): Add info argument to
6168 elf_backend_hide_symbol.
6169 (_bfd_elf_link_hash_hide_symbol): Likewise.
6170 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6171 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6172 * elflink.h (elf_link_add_object_symbols): Likewise.
6173 (elf_link_assign_sym_version): Likewise.
6175 2000-06-18 H.J. Lu <hjl@gnu.org>
6177 * coff-i386.c (coff_i386_reloc): Don't return in case of
6178 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6179 Compensate PE relocations when linking with non-PE object
6180 files to generate a non-PE executable.
6182 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6184 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6185 GOT entries if we're doing a static link or -Bsymbolic link.
6187 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6189 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6190 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6192 (elf_link_output_relocs): Likewise.
6193 (elf_reloc_link_order): Likewise.
6195 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6197 * archures.c (enum bfd_architecture): #define constants for
6198 PowerPc and RS6000 machine numbers.
6199 * bfd-in2.h: Regenerate.
6200 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6201 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6202 and RS6000 machine numbers using #defined constants from
6204 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6205 machine numbers using #defined constants from archures.c. Add
6206 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6207 64-bit words in 620 entry.
6208 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6210 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6212 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6214 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6215 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6216 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6218 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6220 * bfd-in.h (bfd_family_coff): Define.
6221 * bfd-in2.h: Regenerate.
6222 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6223 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6224 instead of bfd_target_coff_flavour.
6225 * cofflink.c (_bfd_coff_final_link): Likewise.
6226 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6227 exclude XCOFF files.
6228 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6230 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6231 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6232 * xcofflink.c (XCOFF_XVECP): Delete.
6233 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6234 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6235 bfd_xcoff_record_link_assignment,
6236 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6237 check for bfd_target_xcoff_flavour.
6239 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6241 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6243 (read_hdr): New function.
6244 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6245 of trying to extract individual registers. Set abfd->arch_info
6246 to match the architecture that created the core file.
6247 (rs6000coff_get_section_contents): Delete.
6248 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6250 2000-06-14 H.J. Lu <hjl@gnu.org>
6252 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6255 2000-06-13 H.J. Lu <hjl@gnu.org>
6257 * configure: Regenerate.
6259 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6261 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6264 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6266 * configure.in (VERSION): Update to show this is the CVS mainline.
6268 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6270 * elf32-d10v.c: Include elf/d10v.h
6271 (enum reloc_type): Delete.
6272 * elf32-d30v.c: Include elf/d30v.h
6273 (enum reloc_type): Delete.
6275 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6276 * Makefile.in: Regenerate.
6278 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6279 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6280 move HOWTOs into elf_howto_table.
6281 (R_386_standard, R_386_ext_offset): Define.
6282 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6283 (elf_i386_reloc_type_lookup): Modify calculation of index into
6284 elf_howto_table since we've removed the padding.
6285 (elf_i386_info_to_howto_rel): Likewise.
6286 (elf_i386_relocate_section): Likewise.
6288 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6290 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6292 2000-06-05 H.J. Lu <hjl@gnu.org>
6294 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6295 an error when seeing an undefined symbol with hidden/internal
6296 attribute. It is handled in *_relocate_section ().
6298 2000-06-05 H.J. Lu <hjl@gnu.org>
6300 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6301 indirect symbol for the ELF_LINK_NON_ELF bit.
6302 (elf_link_output_extsym): Don't output the indirect symbol even
6303 if the ELF_LINK_NON_ELF bit is set.
6305 2000-06-01 J.T. Conklin <jtc@redback.com>
6307 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6308 (i[3456]86-*-netbsdaout*): New target.
6309 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6310 (i[3456]86-*-openbsd*): Likewise.
6312 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6314 * trad-core.c: From hpux-core.c, include <dirent.h> or
6315 <sys/ndir.h> when possible.
6317 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6319 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6320 definitions. We must not assume they are sorted in the file
6321 according to their index numbers.
6323 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6325 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6326 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6327 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6329 2000-05-30 Nick Clifton <nickc@cygnus.com>
6331 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6332 80960CA, 80960MC as valid machine names.
6334 2000-05-30 H.J. Lu <hjl@gnu.org>
6336 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6337 visibility bits if the symbol is undefined. Correctly handle
6338 weak undefined symbols with hidden and internal attributes.
6340 * elflink.h (elf_link_add_object_symbols): Always turn the
6341 symbol into local if it has the hidden or internal attribute.
6343 2000-05-29 Philip Blundell <philb@gnu.org>
6345 * ppcboot.c: Add packed attribute if compiling with GCC.
6347 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6349 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6351 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6353 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6354 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6355 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6358 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6360 * Makefile.am: Update dependencies with "make dep-am"
6361 * Makefile.in: Regenerate.
6363 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6364 bindtextdomain): Replace defines with those from intl/libgettext.h
6365 to quieten gcc warnings.
6367 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6369 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6371 * archive.c (normalize, bfd_bsd_truncate_arname,
6372 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6373 file names with backslashes.
6375 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6378 * sysdep.h: Include filenames.h.
6380 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6382 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6384 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6386 * elf64-sparc.c (sparc64_elf_relax_section): New.
6387 (sparc64_elf_relocate_section): Optimize tail call into branch always
6389 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6390 (elf32_sparc_relax_section): New.
6392 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6394 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6395 Remove unusued variables.
6396 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6397 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6398 previous fix, so that shared libs really don't influence targets
6399 extension mask and memory model.
6401 2000-05-23 H.J. Lu <hjl@gnu.org>
6403 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6404 h->root.other not h->other.
6405 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6407 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6409 2000-05-23 H.J. Lu <hjl@gnu.org>
6411 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6412 undefined symbol with the non-default visibility attributes.
6413 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6414 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6415 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6416 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6417 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6418 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6419 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6420 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6421 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6422 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6423 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6425 2000-05-22 Richard Henderson <rth@cygnus.com>
6427 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6428 PCREL22, PCREL64I. Zero size of special relocs.
6429 (elf64_ia64_reloc_type_lookup): Likewise.
6430 (USE_BRL, oor_brl, oor_ip): New.
6431 (elf64_ia64_relax_section): New.
6432 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6433 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6434 (elf64_ia64_relocate_section): Likewise.
6435 (bfd_elf64_bfd_relax_section): New.
6436 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6437 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6438 * bfd-in2.h, libbfd.h: Regenerate.
6440 2000-05-22 Nick Clifton <nickc@cygnus.com>
6442 * configure.in : Add peigen.lo to MIPS PE targets.
6443 * configure: Regenerate.
6445 2000-05-22 Momchil Velikov <velco@fadata.bg>
6447 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6448 only if it is known for both input and output bfds. Separate
6449 error message strings as in some languages, it may be necessary
6450 to change more than one place in the string to change between
6453 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6454 endianess checks, call _bfd_generic_verify_endian_match() instead.
6456 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6458 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6460 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6461 endianess before checking bfd flavours.
6463 2000-05-22 H.J. Lu <hjl@gnu.org>
6465 * elflink.h (elf_link_output_extsym): Clear the visibility
6466 field for symbols not defined locally.
6468 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6470 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6471 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6472 (hppa_rebuild_insn): Mask immediate bits here instead.
6473 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6475 2000-05-18 Momchil Velikov <velco@fadata.bg>
6477 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6478 relocs for an executable, ensure that they are virtual addresses.
6480 2000-05-18 Jeffrey A Law (law@cygnus.com)
6482 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6484 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6485 Rick Gorton <gorton@scrugs.lkg.dec.com>
6487 * elflink.h: Add emitrelocations support: when enabled, relocation
6488 information and relocation sections are put into final output
6489 executables. If the emitrelocations flag is set, do the following:
6490 (elf_bfd_final_link): Emit relocation sections.
6491 (elf_link_input_bfd): Compute relocation section contents.
6492 (elf_gc_sections): Don't clean relocation sections.
6494 2000-05-16 Catherine Moore <clm@cygnus.com>
6496 * som.c (som_decode_symclass): Recognize weak symbols.
6498 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6500 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6501 read idata section only from dataoff.
6502 (pe_print_edata): Correctly check for valid eat_member.
6504 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6506 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6508 2000-05-14 Philip Blundell <philb@gnu.org>
6510 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6512 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6514 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6516 * peigen.c (pe_print_idata): Look for .idata section and print
6517 info even if data directory has zero entries. Read idata section
6518 starting from dataoff, and adjust all data offsets to suit. Cast
6519 all bfd_vma vars to unsigned long before passing to fprintf.
6520 * peigen.c (pe_print_edata): Similarly, look for .edata section
6521 and print info even if data directory has zero entries. Cast
6522 all bfd_vma vars to unsigned long before passing to fprintf.
6524 From Szabolcs Szakacsits <szaka@F-Secure.com>
6525 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6526 directory size which may be bogus.
6527 * peigen.c (pe_print_edata): Similarly.
6529 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6531 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6533 (copy_private_bfd_data): Allow for space possibly taken up by elf
6534 headers when calculating segment physical address from lma.
6536 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6538 * versados.c (versados_scan): Init stringlen and pass_2_done.
6540 * trad-core.c (trad_unix_core_file_p): Return
6541 bfd_error_wrong_format rather than bfd_error_file_truncated.
6543 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6544 add_data_entry. DataDirectory virtual address is relative.
6545 (pe_print_idata): Account for relative DataDirectory virtual
6546 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6547 (pe_print_edata): Similarly.
6549 From Szabolcs Szakacsits <szaka@F-Secure.com>
6550 * peigen.c (dir_names): Add Delay Import Directory.
6551 (pe_print_idata): Always search for bfd section containing
6552 idata address rather than looking up section name. Print this
6553 section name rather than .idata.
6554 (pe_print_edata): Similarly. Also print some fields as %08lx.
6555 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6558 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6560 * xcoff.h: Rename to xcoff-target.h
6561 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6562 * coff-rs6000.c: Ditto.
6563 * coff64-rs6000.c: Ditto.
6564 * coff-pmac.c: Ditto.
6565 * Makefile.in: Regenerate.
6567 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6569 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6570 Change U802TOC64MAGIC to U803XTOCMAGIC.
6572 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6574 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6575 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6576 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6578 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6580 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6582 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6584 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6585 hidden and internal symbols.
6586 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6588 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6589 assign a PLT or GOT entry to symbols with hidden and
6590 internal visibility.
6592 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6594 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6596 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6598 2000-05-02 H.J. Lu <hjl@gnu.org>
6600 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6603 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6605 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6606 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6608 * Makefile.in: Regenerate.
6610 2000-05-01 Jim Wilson <wilson@cygnus.com>
6612 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6613 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6614 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6615 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6616 * Makefile.in: Rebuild.
6618 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6620 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6621 doesn't work very well.
6623 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6624 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6625 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6626 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6627 (elf_hppa_info_to_howto): Likewise.
6628 (elf_hppa_info_to_howto_rel): Likewise.
6629 (elf_hppa_reloc_type_lookup): Likewise.
6630 (elf_hppa_is_local_label_name): Likewise.
6631 (elf_hppa_fake_sections): Likewise.
6632 (elf_hppa_final_write_processing): Likewise.
6633 (elf_hppa_howto_table): Fully initialise all entries.
6634 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6635 (elf_hppa_info_to_howto): Likewise.
6636 (elf_hppa_info_to_howto_rel): Likewise.
6637 (elf_hppa_reloc_type_lookup): Likewise.
6638 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6639 elf_hppa_unmark_useless_dynamic_symbols,
6640 elf_hppa_remark_useless_dynamic_symbols,
6641 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6642 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6643 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6644 elf32-hppa.c mess is cleaned up.
6645 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6646 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6647 r_field then call hppa_field_adjust inline func with variable
6648 r_field arg, instead call hppa_field_adjust with fixed arg.
6649 In case R_PARISC_PCREL22F, don't set r_field.
6650 (elf_hppa_relocate_insn): Change args and return type to unsigned
6651 int. Call re_assemble_* funcs to do the work.
6653 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6656 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6658 (sign_extend): Mask first before sign extending.
6659 (low_sign_extend): Rewrite without condition expression.
6660 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6661 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6662 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6663 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6664 result as function return value rather than through pointer arg.
6665 Accept unsigned int args, and return unsigned int.
6666 (re_assemble_3): New. Combines function of dis_assemble_3 with
6667 re-assembly of opcode and immediate.
6668 (re_assemble_12): Likewise.
6669 (re_assemble_16): Likewise.
6670 (re_assemble_17): Likewise.
6671 (re_assemble_21): Likewise.
6672 (re_assemble_22): Likewise.
6673 (hppa_field_adjust): Rewrite and document, paying attention to
6674 size of types and signed/unsigned issues.
6675 (get_opcode): Shift before masking.
6676 (FDLW): Rename to FLDW.
6677 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6678 (hppa_rebuild_insn): Change args and return value to unsigned
6679 int. Make use of re_assemble_*. Correct case 11.
6681 * dep-in.sed: Handle ../opcodes/.
6682 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6683 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6684 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6685 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6686 elfarm-nabi.lo dependencies outside of auto-dependency area.
6687 Regenerate dependencies.
6688 * Makefile.in: Regenerate.
6690 * configure.in (TRAD_HEADER): Test non-null before
6692 * configure: Regenerate.
6694 * reloc.c: Fix mis-spelling in comment.
6696 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6698 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6699 * vms.c (vms_openr_next_archived_file): Return NULL.
6701 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6703 * coffcode.h Copy changes mistakenly done to libcoff.h in
6706 2000-04-29 Andreas Jaeger <aj@suse.de>
6708 * libbfd-in.h: Correctly check GCC version.
6709 * bfd-in.h: Likewise.
6710 * libhppa.h: Likewise.
6711 * libbfd.h: Regenerate.
6712 * bfd-in2.h: Regenerate.
6714 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6716 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6717 coffdu-rs6000.{lo,c}.
6718 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6720 * Makefile.in: Regenerate.
6721 * xcoff.h: New file.
6722 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6723 * coff-rs6000.c: Move all declarations and defines that are
6724 common to the xcoff backends into xcoff.h
6725 * coff64-rs6000.c: Ditto,
6727 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6729 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6730 _bfd_coff_force_symnames in strings and
6731 _bfd_coff_debug_string_prefix_length to their default values.
6732 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6734 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6736 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6737 _bfd_coff_force_symnames in strings and
6738 _bfd_coff_debug_string_prefix_length to their default values.
6740 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6742 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6743 Check local_got_refcounts before dereferencing.
6745 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6746 before deciding we don't need R_PPC_PLT32 relocation.
6747 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6750 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6752 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6754 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6755 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6756 (elf_i386_relocate_section): Allow for .plt to go missing.
6757 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6758 can use a relative reloc for got as elf_i386_relocate_section.
6759 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6761 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6763 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6765 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6767 * Makefile.am (coff64-rs6000.lo): New rule.
6768 * Makefile.in: Regenerate.
6769 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6770 xcoff_is_local_label_name, xcoff_rtype2howto,
6771 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6772 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6773 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6774 (NO_COFF_SYMBOLS): Define.
6775 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6776 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6778 (MINUS_ONE): New macro.
6779 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6781 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6782 coff_SWAP_aux_out): Map to the new functions.
6783 * coff64-rs6000.c: New file.
6784 * libcoff.h (bfd_coff_backend_data): Add new fields
6785 _bfd_coff_force_symnames_in_strings and
6786 _bfd_coff_debug_string_prefix_length.
6787 (bfd_coff_force_symnames_in_strings,
6788 bfd_coff_debug_string_prefix_length): New macros for above fields.
6789 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6790 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6791 of using coff_swap_sym_in directly.
6792 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6793 (coff_set_flags) Set magic for XCOFF64.
6794 (coff_compute_section_file_positions): Add symbol name length to
6795 string section length if bfd_coff_debug_string_prefix_length is
6797 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6798 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6799 using coff_swap_lineno_in directly.
6800 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6801 and _bfd_coff_debug_string_prefix_length fields.
6802 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6803 symbol names into strings table when
6804 bfd_coff_force_symnames_in_strings is true.
6805 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6806 SET_RELOC_VADDR): New macros.
6807 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6808 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6810 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6811 changes within RS6000COFF_C specific code.
6812 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6813 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6814 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6815 Extend existing hack on target name.
6816 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6818 * coff-tic54x.c (ticof): Keep up to date with new fields
6819 in bfd_coff_backend_data.
6820 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6821 targ_selvecs to include rs6000coff64_vec for rs6000.
6822 * configure.in: Add rs6000coff64_vec case.
6823 * cpu-powerpc.c: New bfd_arch_info_type.
6825 2000-04-24 Jeffrey A Law (law@cygnus.com)
6827 * config.bfd: Only disable elf32-hppa vectors, not all of the
6828 BSD and OSF configuration support. Provide (disabled) clauses
6830 * configure.in: Add clause for PA64 support.
6831 * configure: Rebuilt.
6833 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6834 (bfd_elf64_hppa_vec): Declare.
6836 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6837 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6838 (elf64-hppa.lo): Add dependencies.
6839 * Makefile.in: Rebuilt.
6841 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6843 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6845 * libhppa.h (dis_assemble_16): New function.
6846 (pa_arch): Added pa20w element.
6848 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6850 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6851 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6852 bfd_elf64_slurp_reloc_table.
6854 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6855 definitions to get external names.
6856 (elf_write_relocs): Renamed from write_relocs and make global.
6857 (elf_slurp_reloc_table): Make global.
6858 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6860 * archive.c (hpux_uid_gid_encode): New function.
6861 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6862 defined and the ID is greater than 99999.
6863 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6864 special uid/gid fields into 32 bit values.
6866 2000-04-21 Matthew Green <mrg@cygnus.com>
6868 * config.bfd: Add NetBSD/sparc64 support.
6870 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6871 David Mosberger <davidm@hpl.hp.com>
6872 Timothy Wall <twall@cygnus.com>
6873 Jim Wilson <wilson@cygnus.com>
6875 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6876 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6877 (BFD64_BACKENDS): Add elf64-ia64.lo.
6878 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6879 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6880 * Makefile.in: Rebuild.
6881 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6882 (bfd_ia64_arch): Declare.
6883 (bfd_archures_list): Add bfd_ia64_arch.
6884 * bfd-in2.h: Rebuild.
6885 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6886 * configure: Rebuild.
6887 * configure.host: (ia64-*-linux*): New host.
6888 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6889 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6890 * elf.c (prep_headers): Add bfd_arch_ia64.
6891 * libbfd.h: Rebuild.
6892 * reloc.c: Add IA-64 relocations.
6893 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6895 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6896 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6898 2000-04-21 Richard Henderson <rth@cygnus.com>
6900 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6901 contents when performing a partial link.
6902 (bfd_elf_d30v_reloc_21): Likewise.
6904 2000-04-20 H.J. Lu <hjl@gnu.org>
6906 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6907 patch to symbols defined by a shared object.
6908 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6910 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6913 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6914 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6916 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6918 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6919 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6920 (coff-ia64.lo): Add dependency.
6921 * Makefile.in: Regenerate.
6922 * coff-ia64.c: New file.
6923 * efi-app-ia32.c: Ditto.
6924 * efi-app-ia64.c: Ditto.
6925 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6926 (coff_set_flags): Ditto.
6927 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6928 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6929 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6930 * configure: Regenerate.
6931 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6932 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6933 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6934 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6935 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6936 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6937 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6938 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6939 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6940 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6941 (GET_PDATA_ENTRY): Ditto.
6942 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6943 data_start. Use above macros to read fields that are 64 bit wide for
6944 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6945 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6946 FileAlignment and SectionAlignment to minimum alignment if they
6948 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6949 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6950 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6951 Use above macros to write fields that are 64 bit wide for
6953 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6954 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6955 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6956 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6957 begin address, end address, and unwind info address only. Use
6958 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6960 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6961 HIGH3ADJ relocation names.
6962 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6963 * targets.c: Declare bfd_efi_app_ia32_vec and
6964 bfd_efi_app_ia64_vec.
6965 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6966 bfd_efi_app_ia64_vec.
6968 2000-04-17 Timothy Wall <twall@cygnus.com>
6970 * bfd-in2.h: Add prototypes for tic54x load page access.
6971 * bfd-in.h: Regenerate.
6972 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6973 in customized _set_arch_mach function.
6974 * coffcode.h (coff_set_alignment_hook): Set section load page if
6975 the appropriate macro is defined.
6976 (write_object_contents): Read section load page.
6978 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6980 * elf32-hppa.h: Update copyright date.
6982 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6983 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6985 * elf32-d30v.c (MAX32): Don't use LL suffix.
6986 (MIN32): Define in terms of MAX32.
6987 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6989 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6992 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6994 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6996 * dep-in.sed: Match space before file name, not after.
6997 * Makefile.am: Regenerate dependencies.
6998 * Makefile.in: Regenerate.
7000 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7001 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7002 extend without an if statement.
7004 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7006 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7008 * elf32-mips.c (gprel16_with_gp): Likewise.
7009 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7010 here using -0x40000, not (int)0xfffc0000.
7011 (elf32_hppa_size_of_stub): Likewise.
7013 2000-04-11 Timothy Wall <twall@cygnus.com>
7015 * coff-tic54x.c: Now builds with all targets.
7016 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7017 * Makefile.in: Regenerate.
7018 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7019 unitialized variable.
7021 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7023 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7024 --enable-build-warnings option.
7025 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7026 * Makefile.in, configure: Re-generate.
7028 2000-04-07 Nick Clifton <nickc@cygnus.com>
7030 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7031 BFD_RELOC_THUMB_PCREL_BLX.
7033 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7034 R_ARM_XPC25 and R_ARM_THM_PC22.
7036 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7037 R_ARM_XPC25 and R_ARM_THM_XPC22.
7038 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7039 R_ARM_[XPC25|THM_XPC22].
7041 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7042 elf/arm-oabi.h to elf/arm.h
7044 * Makefile.am: Fix dependency for elfarm-oabi.c
7045 * Makefile.in: Regenerate.
7047 * bfd-in2.h: Regenerate.
7048 * libbfd.h: Regenerate.
7050 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7052 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7053 and restore it on failure. Release newly allocated tdata on
7056 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7058 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7059 (decode_line_info): Set it. Report error if unit->line_offset is
7060 equal to or larger than it.
7062 2000-04-07 Timothy Wall <twall@cygnus.com>
7064 * targets.c: Added vecs for tic54x.
7065 * reloc.c: Added relocs for tic54x.
7066 * libbfd.h: Regenerated.
7067 * configure: Add TI COFF vecs for tic54x.
7068 * configure.in: Ditto.
7069 * config.bfd (targ_cpu): Recognize new tic54x target.
7070 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7071 * bfd-in2.h: Add tic54x target and relocations.
7072 * Makefile.am, Makefile.in: Add tic54x target.
7073 * archures.c (bfd_archures_list): Add tic54x target.
7074 * coff-tic54x.c: New.
7075 * cpu-tic54x.c: New.
7077 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7079 * elfcore.h (elf_core_file_p): call backend_object_p which
7080 thereby gets an opportunity to update the arch/machine type.
7082 2000-04-06 Timothy Wall <twall@cygnus.com>
7084 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7085 class. Handle SEC_CLINK and SEC_BLOCK flags.
7086 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7087 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7089 2000-04-06 Nick Clifton <nickc@cygnus.com>
7091 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7092 EF_INTERWORK if this is an unknown EABI.
7093 (elf32_arm_merge_private_bfd_data): Check EABI version
7094 numbers. Only check EF_xxx flags if the EABI version number
7096 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7097 if the EABI version number is unknown.
7098 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7099 if the EABI version number is unknown.
7101 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7103 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7104 BFD_RELOC_SH_LOOP_END.
7105 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7106 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7107 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7108 (sh_elf_reloc_loop): New function.
7109 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7111 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7112 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7113 * bfd-in2.h, libbfd.h: Regenerate.
7115 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7117 * po/bfd.pot: Regenerate.
7119 * Makefile.am: Remove extraneous mkdep comment.
7120 (MKDEP): Use gcc -MM rather than mkdep.
7121 (DEP): Quote when passing vars to sub-make. Add warning
7123 (DEP1): Rewrite for "gcc -MM".
7124 (CLEANFILES): Add DEP2.
7125 Update dependencies.
7126 * Makefile.in: Regenerate.
7128 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7130 * configure.in: Added corefile support for AIX 4.3. In particular,
7131 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7132 compiling rs6000-core.c.
7133 * configure: Regenerated.
7135 2000-04-03 H.J. Lu <hjl@gnu.org>
7137 * cache.c (bfd_open_file): Unlink the output file only if
7138 it has non-zero size.
7140 2000-04-01 Ken Block USG <block@zk3.dec.com>
7142 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7143 relative relocations for non-loaded sections in shared objects.
7144 (elf64_alpha_check_relocs): Similarly.
7146 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7148 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7149 BFD_RELOC_16 to switch for extended relocs.
7150 (MY_swap_ext_reloc_in): New.
7151 (MY_swap_ext_reloc_out): New.
7152 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7153 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7154 (NAME(aout,squirt_out_relocs)): Similarly use
7155 MY_swap_ext_reloc_out.
7156 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7158 2000-04-03 Kazu Hirata <kazu@hxi.com>
7160 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7161 the R_PCRWORD_B case.
7163 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7165 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7169 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7171 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7172 HOWTO references to bfd_elf_generic_reloc, that have
7173 partial_inplace == true, now use the new function. The function
7174 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7175 extends its fixes to the R_M32R_{16,24,32} relocs.
7176 The new logic in m32r_elf_lo16_reloc() has been removed, and
7177 it instead calls the new routine to obtain that functionality.
7179 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7181 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7182 elf32_avr_check_relocs, avr_final_link_relocate,
7183 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7184 elf32_avr_object_p): Add prototypes.
7185 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7186 (bfd_elf_avr_final_write_processing): Make static.
7188 2000-03-27 Denis Chertykov <denisc@overta.ru>
7190 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7191 * archures.c (bfd_architecture): Add AVR architecture.
7192 (bfd_archures_list): Add reference to AVR architecture info.
7193 * elf.c (prep_headers): Handle bfd_arch_avr.
7194 * reloc.c: Add various AVR relocation enums.
7195 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7197 * Makefile.am: Add support for AVR elf.
7198 * configure.in: Likewise.
7199 * config.bfd: Likewise.
7200 * Makefile.in: Regenerate.
7201 * configure: This too.
7202 * bfd-in2.h: And this.
7203 * libbfd.h: And this.
7205 2000-03-24 H.J. Lu <hjl@gnu.org>
7207 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7208 (elf64_alpha_find_reloc_at_ofs): Likewise.
7210 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7212 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7213 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7214 allowable range used to be -2**(n-1) to 2**n-1.
7215 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7216 "boolean overflow" with "bfd_reloc_status_type flag".
7218 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7220 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7222 2000-03-14 Kazu Hirata <kazu@hxi.com>
7224 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7225 of shrinks properly, including the last reloc.
7227 2000-03-13 Kazu Hirata <kazu@hxi.com>
7229 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7232 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7234 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7235 a format mismatch rather than an "error" from bfd_read such as
7236 bfd_error_file_truncated.
7238 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7240 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7241 sign-extension and big-endian compensation for
7242 R_MIPS_64 even in ld -r.
7244 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7246 * elf32-mips.c (mips_elf_next_relocation): Rename from
7247 mips_elf_next_lo16_relocation, and generalize to look
7248 for any relocation type.
7249 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7250 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7251 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7252 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7253 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7254 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7255 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7256 (mips_rtype_to_howto): Likewise.
7257 (mips_elf_calculate_relocation): Handle new relocs.
7258 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7259 are paired. The addend for R_MIPS_GNU_REL16_S2
7260 is shifted right two bits.
7262 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7264 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7265 comment, and ensure it doesn't happen again.
7266 (bfd_install_relocation): Same here.
7267 (_bfd_relocate_contents): Don't bother assigning unused signmask
7268 shift result. Fix typos in comments.
7269 Remove trailing whitespace throughout file.
7271 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7273 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7274 * bfd-in2.h: Rebuild.
7276 2000-03-06 Nick Clifton <nickc@cygnus.com>
7278 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7280 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7281 (SIZEOF_ILF_STRINGS): Redefine.
7282 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7283 relative reloc, as opposed to a section relative reloc.
7284 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7286 Add length of symbol's prefix to string pointer.
7287 Store a pointer to the symbol in the symbol pointer table.
7288 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7289 Initialise the symbol pointer table.
7290 Store the hint in the Hint/Name table.
7291 Make the jump reloc be symbol realtive, not section relative.
7292 Create an import symbol for imported code.
7294 2000-03-06 Catherine Moore <clm@cygnus.com>
7296 * elf.c (swap_out_syms): Check for null type_ptr.
7298 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7300 * aout-target.h (MY(write_object_contents)): Remove unused
7301 and unusable "#if CHOOSE_RELOC_SIZE".
7302 * pc532-mach.c (MY(write_object_contents)): Ditto.
7303 * netbsd.h (MY(write_object_contents)): Ditto.
7304 * hp300hpux.c (MY(write_object_contents)): Ditto.
7305 * freebsd.h (MY(write_object_contents)): Ditto.
7306 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7308 2000-02-29 H.J. Lu <hjl@gnu.org>
7310 * peicode.h (jtab): Make it static.
7312 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7313 defined and COFF_IMAGE_WITH_PE is not defined.
7314 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7315 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7317 2000-03-01 Nick Clifton <nickc@cygnus.com>
7319 * coff-arm.c (bfd_arm_process_before_allocation): Make
7320 'symndx' signed to prevent compile time warning.
7322 * coff-mcore.c: Remove unused prototype for pe_object_p.
7324 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7325 functions that are not used when COFF_IMAGE_WITH_PE is
7327 (struct sh_opcode): Change type of 'flags' field to unsigned
7328 long so that it can hold the USESAS flag.
7330 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7332 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7335 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7337 Remove unusued variables and code.
7338 (elf_backend_add_symbol_hook): Fix prototype.
7340 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7343 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7346 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7348 Remove unusued variables and code.
7349 (elf_backend_add_symbol_hook): Fix prototype.
7351 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7353 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7354 to unused function parameter.
7356 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7358 Use EMPTY_HOWTO to initialise empty howto slots.
7359 Remove unused variables.
7361 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7363 2000-03-01 H.J. Lu <hjl@gnu.org>
7365 * aoutx.h (aout_link_input_section_std): Pass "true" to
7366 the undefined_symbol callback.
7367 (aout_link_input_section_ext): Likewise.
7368 * bout.c (get_value): Likewise.
7369 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7370 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7372 (alpha_relocate_section): Likewise.
7373 * coff-arm.c (coff_arm_relocate_section): Likewise.
7374 * coff-i960.c (coff_i960_relocate_section): Likewise.
7375 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7376 * coff-mips.c (mips_relocate_section): Likewise.
7377 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7378 * coff-sh.c (sh_relocate_section): Likewise.
7379 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7380 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7381 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7382 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7383 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7384 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7385 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7386 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7387 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7388 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7389 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7390 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7391 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7392 * elflink.h (elf_link_output_extsym): Likewise.
7393 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7394 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7395 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7397 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7398 undefined_symbol callback when building shared library with
7399 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7401 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7402 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7403 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7404 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7405 (elf32_mips_get_relocated_section_content): Likewise.
7406 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7407 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7408 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7409 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7411 2000-02-28 Nick Clifton <nickc@cygnus.com>
7413 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7414 * Makefile.in: Regenerate.
7416 * configure.in: Add support for mips and sh pe vectors.
7417 * configure: regenerate.
7419 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7422 * targets.c: Add mips and sh pe vectors.
7424 * libpei.h (coff_final_link_postscript): Only define if not
7427 * coffcode.h: Add support for WinCE magic numbers.
7429 * peigen.c (pe_print_reloc): Update comment and rearrange
7430 appending of newline character.
7432 * peicode.h: Add support for Image Library Format.
7433 (pe_ILF_vars): Structure containing data used by ILF code.
7434 (pe_ILF_make_a_section): New function. Create a section based
7436 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7438 (pe_ILF_make_a_symbol): New function. Create a symbol based
7440 (pe_ILF_save_relocs): New function. Store the relocs created
7441 by pe_ILF_make_a_reloc in a section.
7442 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7444 (pe_ILF_object_p): New function. Return a bfd_target pointer
7446 (pe_bfd_object_p): If an ILF object is detected call
7447 pe_ILF_object_p on it.
7449 * coff-arm.c: Add support for WinCE relocs which are different
7450 from normal ARM COFF relocs.
7451 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7453 * coff-sh.c: Add support for sh-pe target.
7454 * pe-sh.c: New file. Support code for sh-pe target.
7455 * pei-sh.c: New file. Support code for sh-pe target.
7457 * pe-mips.c: New file. Support code for mips-pe target.
7458 * pei-mips.c: New file. Support code for mips-pe target.
7460 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7462 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7463 architecture if the object causing the bump is dynamic.
7464 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7465 and also don't it for memory ordering.
7466 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7468 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7470 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7471 calling bfd_get_section_size_before_reloc.
7472 (decode_line_info): Likewise.
7473 (_bfd_dwarf2_find_nearest_line): Likewise.
7475 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7477 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7478 name of the libtool directory.
7479 * Makefile.in: Rebuild.
7481 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7483 * som.c (SOM_HOWTO): Define.
7484 (som_hppa_howto_table): Use it.
7486 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7488 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7490 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7492 2000-02-24 Catherine Moore <clm@cygnus.com>
7494 * som.c (som_misc_symbol_info): Add field
7496 (som_bfd_derive_misc_symbol_info): Initialize
7498 (som_build_and_write_symbol_table): Keep track
7499 of secondary_def field.
7500 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7501 if secondary_def field is set.
7502 (som_bfd_ar_write_symbol_stuff): Initialize
7505 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7507 * dwarf2.c (read_address): Read 16-bits addresses.
7508 (parse_comp_unit): Accept addr_size == 2.
7510 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7512 * bfd-in.h: Update copyright date.
7514 2000-02-23 Linas Vepstas <linas@linas.org>
7516 * cpu-i370.c: New file.
7517 * elf32-i370.c: New file.
7518 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7519 (bfd_i370_arch): New.
7520 (bfd_archures_list): Add bfd_i370_arch.
7521 * elf.c (prep_headers): Add bfd_arch_i370.
7522 * Makefile.am: Add support for IBM 370 elf.
7523 * config.bfd: Likewise.
7524 * configure.in: Likewise.
7525 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7526 * reloc.c (bfd_reloc_code_type): Likewise.
7527 * targets.c: Likewise.
7529 * Makefile.in: Regenerate.
7530 * configure: Regenerate.
7531 * bfd-in2.h: Regenerate.
7533 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7535 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7536 invalid relocation types, and change them to R_386_NONE.
7538 2000-02-22 H.J. Lu <hjl@gnu.org>
7540 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7541 not defined, don't add a second ELF_VER_CHR.
7543 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7544 symbols converted to local symbols even when stripping all
7546 (elf_link_output_extsym): Process global symbols converted to
7547 local symbols even if they are being stripped.
7549 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7551 * archures.c (bfd_octets_per_byte): Return unsigned int.
7552 (bfd_arch_mach_octets_per_byte): Ditto.
7553 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7555 * section.c (bfd_get_section_size_before_reloc): Quell signed
7556 vs. unsigned comparison warning.
7557 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7558 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7559 change. What was I thinking?
7560 * bfd-in2.h: Regenerate.
7562 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7563 (elf_gc_sections): Same here.
7564 (elf_gc_common_finalize_got_offsets): And here.
7566 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7568 ELF HPPA doesn't work at present; remove it until it does.
7569 * config.bfd: Comment out setting targ_defvec to
7571 * Makefile.am: Rebuild dependencies.
7572 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7573 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7574 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7575 * Makefile.in: Rebuild.
7576 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7578 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7580 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7581 is no bfd_free(). Revert bfd_free part of previous change.
7583 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7585 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7587 (coff_compute_section_file_positions): Use bfd_free to pair
7589 (coff_write_object_contents): Likewise.
7591 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7592 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7594 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7596 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7597 (xcoff_ar_file_hdr_big): New structure.
7598 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7599 (xcoff_ar_hdr_big): New structure.
7600 (SIZEOF_AR_HDR_BIG): New macro.
7601 (xcoff_big_format_p): New macro.
7602 (xcoff_ardata_big): New macro.
7603 (arch_xhdr_big): New macro.
7604 (xcoff_slurp_armap): Handle large archives.
7605 (xcoff_archive_p): Detect large archives.
7606 (xcoff_read_ar_hdr): Handle large archives.
7607 (xcoff_openr_next_archived_file): Handle large archives.
7608 (xcoff_generic_stat_arch_elt): Handle large archives.
7609 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7610 (xcoff_write_armap_big): New function.
7611 (xcoff_write_armap): New function, dispatch to _old or _big.
7612 (xcoff_write_archive_contents_old): Rename from
7613 xcoff_write_archive_contents.
7614 (xcoff_write_archive_contents_big): New function.
7615 (xcoff_write_archive_contents): New function, dispatch to _old or
7618 2000-02-18 Richard Henderson <rth@cygnus.com>
7620 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7621 and hide_symbol members.
7622 (elf_link_hash_copy_indirect): Remove.
7623 (elf_link_hash_hide_symbol): Remove.
7624 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7625 and elf_backend_hide_symbol.
7626 (_bfd_elf_link_hash_copy_indirect): Declare.
7627 (_bfd_elf_link_hash_hide_symbol): Declare.
7628 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7629 (_bfd_elf_link_hash_hide_symbol): Likewise.
7630 (_bfd_elf_link_hash_table_init): Don't init killed members.
7631 * elflink.h (elf_link_add_object_symbols): Use the bed function
7632 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7633 (elf_link_assign_sym_version): Likewise.
7634 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7635 (elf_backend_hide_symbol): Likewise.
7636 (elfNN_bed): Update for new members.
7638 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7640 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7641 STACK_END_ADDR): Define for new core file format.
7642 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7643 for handling the vagaries of the various core file structures used
7644 by AIX over the years.
7645 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7646 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7647 core_dumpx structure.
7649 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7651 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7652 (bfd_mach_sh3_dsp): Likewise.
7653 (bfd_mach_sh4): Reinstate.
7654 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7655 * bfd-in2.h: Regenerate.
7656 * coff-sh.c (struct sh_opcode): flags is no longer short.
7657 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7658 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7659 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7660 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7661 (sh_opcodes): No longer const.
7662 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7663 (sh_insn_uses_reg): Check for USESAS and USESR8.
7664 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7665 (_bfd_sh_align_load_span): Return early for SH4.
7666 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7667 Take into account that field b of a parallel processing insn
7668 could be mistaken for a separate insn.
7669 * cpu-sh.c (arch_info_struct): New array elements for
7670 sh2, sh-dsp and sh3-dsp.
7671 Reinstate element for sh4.
7672 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7673 (SH4_NEXT): Reinstate.
7674 (SH3_NEXT, SH3E_NEXT): Adjust.
7675 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7676 * elf32-sh.c (sh_elf_set_private_flags): New function.
7677 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7678 (sh_elf_merge_private_data): New function.
7679 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7680 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7681 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7682 sh_elf_merge_private_data.
7684 2000-02-13 Richard Henderson <rth@cygnus.com>
7686 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7687 hide_symbol members.
7688 (elf_link_hash_copy_indirect): New.
7689 (elf_link_hash_hide_symbol): New.
7690 * elflink.h (elf_link_add_object_symbols): Break out copy from
7691 indirect new new symbol to elf.c.
7692 (elf_link_assign_sym_version): Break out privatization of
7693 non-exported symbol to elf.c.
7694 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7695 (_bfd_elf_link_hash_hide_symbol): New.
7696 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7698 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7700 * section.c (_bfd_strip_section_from_output): Add info parameter.
7701 If it passed as non-NULL, use it to check whether any input BFD
7702 has an input section which uses this output section. Change all
7704 * bfd-in2.h: Rebuild.
7706 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7707 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7709 * bfd-in2.h: Rebuild.
7711 2000-02-10 Timothy Wall <twall@cygnus.com>
7713 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7714 allow final modifications of swapped-in symbol.
7715 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7716 * coffcode.h (coff_write_relocs): Use macro
7717 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7718 symbol index should be set to -1.
7720 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7722 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7723 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7724 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7725 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7726 sh_insns_uses_or_sets_freg): New functions.
7727 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7728 * (sh_insns_conflict): Use new functions and new macros to
7729 detect conflicts when two instructions both set same integer registers,
7730 both set same fp register, and both set special register.
7732 2000-02-09 Timothy Wall <twall@cygnus.com>
7734 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7735 swapping in sections, so that the swapping routines have access to
7738 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7740 * coff-go32.c: Update comment. Update copyright.
7742 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7744 * syms.c (bfd_decode_symclass)
7745 Two new class characters were added - 'V' and 'v'. The
7746 meaning of 'W' is now restricted to just weak non-object
7747 symbols. This allows differentiation between, for example,
7748 weak functions vs weak objects. nm for example now dumps:
7750 'w' = weak unresolved
7751 'V' = weak global object
7752 'v' = weak unresolved object
7754 (bfd_is_undefined_symclass): New function. Return true if the
7755 given symbol class represents and undefined/unresolved symbol.
7757 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7760 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7762 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7763 STT_ARM_16BIT flag set, but it is not attached to a data object
7764 return STT_ARM_16BIT so that it will be treated as code by the
7767 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7769 * coff-i386.c (i3coff_object_p): Remove prototype.
7772 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7773 to name. Update copyright.
7775 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7776 assignment to avoid warning. Update copyright.
7778 2000-01-24 Robert Lipe (robertl@sco.com)
7780 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7781 instead of using GNU C extension.
7783 2000-01-21 Nick Clifton <nickc@cygnus.com>
7785 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7786 amount from a bfd_in_memory structure.
7787 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7790 2000-01-14 Nick Clifton <nickc@cygnus.com>
7792 * linker.c (default_indirect_link_order): oops - fix incorrectly
7793 applied patch from Tim Wall.
7795 2000-01-13 Timothy Wall (twall@tiac.net>
7797 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7798 = scnhsz, filhsz, relsz, aoutsz, etc)
7800 * coffswap.h: Ditto.
7802 2000-01-13 Nick Clifton <nickc@cygnus.com>
7804 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7805 interwork thumb to arm stub.
7807 2000-01-13 Timothy Wall (twall@tiac.net>
7809 * archures.c (bfd_octets_per_byte): New function: Return
7811 (bfd_arch_mach_octets_per_byte): New function: Return target
7814 * section.c: Distinguish between octets and bytes for usage of
7815 _cooked_size, _raw_size, and output_offset. Clarify
7816 description of bfd_set_section_contents.
7818 * bfd-in2.h: Regenerate.
7820 * coffgen.c: Indicate that the offset parameter is in bytes, not
7823 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7824 where appropriate to get the octet offset when calling
7825 bfd_set_section_contents.
7826 (bfd_coff_reloc_link_order): Ditto.
7828 * linker.c (bfd_generic_reloc_link_order): Ditto.
7829 (_bfd_default_link_order): Ditto.
7831 * reloc.c (bfd_perform_relocation): Distinguish between octets
7832 and bytes. Use octets when indexing into octet data; use bytes
7833 when calculating target addresses.
7834 (bfd_install_relocation): Ditto.
7836 * srec.c (srec_write_section): Ditto.
7838 2000-01-13 Nick Clifton <nickc@cygnus.com>
7840 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7841 3 to 2. This allows 4 byte sized sections, which is necessary for
7842 dlltool to build functioning DLLs.
7844 2000-01-10 Philip Blundell <pb@futuretv.com>
7846 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7847 (arm*-*-conix*): New target.
7849 2000-01-10 Egor Duda <deo@logos-m.ru>
7851 * config.bfd: Include elf32_i386 vector to target list for cygwin
7854 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7855 * configure.in: Test for structure win32_pstatus_t in
7857 * configure: Regenerate.
7859 * elf.c (elfcore_grok_win32pstatus): New function: process
7860 win32_pstatus_t notes in elf core file.
7861 (elfcore_grok_note): Detect win32_pstatus notes.
7863 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7865 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7867 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7868 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7870 For older changes see ChangeLog-9899
7876 version-control: never