1 2001-07-11 H.J. Lu <hjl@gnu.org>
3 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
4 ALLOC|LOAD flags as the source section for debugging sections
5 when creating the reloc section.
7 2001-07-05 Jim Wilson <wilson@redhat.com>
9 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
10 the section of the bigger symbol.
12 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
14 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
16 * peicode.h (coff_swap_scnhdr_in): For sections containing
17 uninitialised data, only set their size to s_paddr if this does
18 not reset their size to zero. MS's latest compilers will set
21 2001-07-04 H.J. Lu <hjl@gnu.org>
23 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
24 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
27 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
29 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
31 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
32 sections being discarded.
34 2001-06-30 Alan Modra <amodra@bigpond.net.au>
36 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
37 instead of _bfd_elfcore_section_from_phdr.
38 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
39 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
40 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
41 (elfcore_grok_prstatus): Likewise.
42 (elfcore_grok_lwpstatus): Likewise.
43 (bfd_get_elf_phdr_upper_bound): Likewise.
44 (elfcore_make_note_pseudosection): Formatting.
45 (_bfd_elfcore_strndup): Formatting.
46 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
47 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
49 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
51 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
52 and _bfd_elfcore_strndup.
53 (struct elf_backend_data): Add elf_backend_grok_prstatus
54 and elf_backend_grok_psinfo.
55 * elf.c (_bfd_elfcore_make_pseudosection): New function.
56 (elfcore_grok_prstatus): Use it.
57 (elfcore_make_note_pseudosection): Likewise.
58 (elfcore_strndup): Rename to...
59 (_bfd_elfcore_strndup): Here, and make global.
60 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
61 (elfcore_grok_note): Call elf_backend_grok_prstatus
62 and elf_backend_grok_psinfo if available.
63 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
64 (_bfd_elf32_mips_grok_psinfo): New function.
65 (elf_backend_grok_prstatus): Define.
66 (elf_backend_grok_psinfo): Define.
67 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
68 (elf_backend_grok_psinfo): Likewise.
69 (elfNN_bed): Include elf_backend_grok_prstatus and
70 elf_backend_grok_psinfo.
72 2001-06-29 H.J. Lu <hjl@gnu.org>
74 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
75 hplink->sgot is NULL before filling GOT. Checck if hplink->splt
76 is NULL before filling PLT.
78 2001-06-29 Alan Modra <amodra@bigpond.net.au>
80 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
82 2001-06-27 Alan Modra <amodra@bigpond.net.au>
84 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
86 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
87 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
90 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
91 (IS_ABSOLUTE_RELOC): Define.
92 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
93 (hppa_link_hash_newfunc): Always init it.
94 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
95 create COPY relocs only when the reloc is in a read-only section.
96 Instead, allocate space for a dynamic reloc to reference the
97 library symbol directly. Keep track of space we allocate using
99 (hppa_discard_copies): Delete, and move code to..
100 (allocate_plt_and_got): ..here. Rename to
101 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
102 relocs for non-shared link.
103 (elf32_hppa_size_dynamic_sections): Update calls to above.
104 (elf32_hppa_relocate_section): Write out the dynamic relocs used
105 in lieu of COPY relocs.
107 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
109 (elf_i386_adjust_dynamic_symbol): ..nor here..
110 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
112 (elf_i386_size_dynamic_sections): Fix a comment.
113 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
114 involved in writing reloc out.
116 2001-06-25 Alan Modra <amodra@bigpond.net.au>
118 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
119 Ensure syms are dynamic if we might be emitting a reloc.
120 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
121 for undefweak or undefined syms..
122 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
124 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
125 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
126 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
127 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
129 2001-06-24 H.J. Lu <hjl@gnu.org>
131 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
132 strncasecmp/strcasecmp instead of strncmp/strcmp.
134 2001-06-23 H.J. Lu <hjl@gnu.org>
136 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
137 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
138 in the regular object file and treat the weak definition as
141 2001-06-23 Alan Modra <amodra@bigpond.net.au>
143 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
144 unresolved_reloc test to exclude cases where we use "relocation"
145 before setting it to point into the .got. Reinstate fudge for
146 unresolved relocs in debugging sections.
148 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
149 complicated tests for unresolvable relocs with a simple direct
150 scheme using "unresolved_reloc" var.
152 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
153 elf_i386_dyn_relocs. Update comment.
154 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
156 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
158 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
160 (elf_i386_size_dynamic_sections): Likewise.
161 (elf_i386_finish_dynamic_symbol): Likewise.
162 (elf_i386_finish_dynamic_sections): Likewise.
163 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
166 Avoid creating COPY relocs if possible.
167 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
168 which .got created. Mark symbols used by R_386_32 and R_386_PC32
169 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
170 reloc is in a read-only section. Instead, allocate space for a
171 dynamic reloc to reference the library symbol directly. Keep
172 track of space we allocate using pcrel_relocs_copied.
173 (discard_copies): Delete, and move code to ..
174 (allocate_plt_and_got): ..here. Rename to
175 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
176 relocs for non-shared link.
177 (elf_i386_size_dynamic_sections): Update calls to above functions.
178 (elf_i386_relocate_section): Write out the dynamic relocs. Add
179 more ugly logic to avoid "unresolvable relocation" error. Use
180 htab shortcut in place of elf_hash_table macro.
181 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
182 not always be created now.
184 2001-06-20 Bo Thorsen <bo@suse.co.uk>
186 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
189 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
191 * configure.host (mips64-*-linux): Reformat.
193 2001-06-21 Alan Modra <amodra@bigpond.net.au>
195 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
196 allocate local .got space. Use shortcuts from hash table for .got
197 and .plt rather than comparing section names.
198 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
199 adjusting index into local_got_refcounts to document what we are
201 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
202 Tidy .got and .plt error checking.
204 2001-06-20 Catherine Moore <clm@redhat.com>
206 * elf-bfd.h (struct elf_backend_data):
207 elf_backend_emit_relocs: New field: Function for emitting
209 elf_backend_count_relocs: New field: Function for determining
210 the number of relocs to be emitted.
211 * elfxx-target.h: Provide default (NULL) values for
212 elf_backend_emit_relocs and elf_backend_count_relocs.
213 * elflink.h (elf_link_size_reloc_section): Make the hash table
214 big enough to hold the relocs counted by either reloc_count or
216 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
217 should be emitted, either because of a command line option
218 stored in the info structure or because the target provides a
219 special reloc emitting function.
220 If the target provides a reloc counting function use it,
221 unless performing a relocatable link or emitting all relocs.
222 Also set the SEC_RELOC flag on any output section which will
224 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
225 should be emitted, either because of a command line option
226 stored in the info structure or because the target provides a
227 special reloc emitting function.
228 If the target provides a reloc emitting function, use it,
229 unless performing a relocatable link or emitting all relocs.
231 2001-06-20 H.J. Lu <hjl@gnu.org>
233 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
234 allocate local .got space.
236 2001-06-19 Andreas Jaeger <aj@suse.de>
238 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
241 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
243 * elflink.h (struct elf_assign_sym_version_info): Remove member
244 export_dynamic. All users changed to use info member.
245 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
246 export_dynamic, instead use member in parameter info.
247 * bfd-in.h (bfd_elf32_size_dynamic_sections,
248 bfd_elf64_size_dynamic_sections): Update prototype.
249 * bfd-in2.h: Regenerate.
251 2001-06-18 H.J. Lu <hjl@gnu.org>
253 * elflink.h (elf_info_failed): Add a new field, verdefs.
254 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
256 (elf_export_symbol): Check eif->verdefs to decide if a symbol
259 2001-06-17 H.J. Lu <hjl@gnu.org>
261 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
262 readonly_reloc, to record if a relocation in the .rel.dyn
263 section is against a read-only section.
264 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
266 (_bfd_mips_elf_check_relocs): Record if there is a relocation
267 in the .rel.dyn section against a read-only section by setting
268 DF_TEXTREL or readonly_reloc.
269 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
271 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
272 there is a relocation in the .rel.dyn section against a
274 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
277 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
279 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
280 function. Move flagword result into parameter list. Remove
281 comment about setting bfd_error_handler to intercept failure
283 * coffgen.c (make_a_section_from_file): Examine result of
284 calling bfd_coff_styp_to_sec_flags and pass a failure back to
286 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
287 function. Move flagword result into parameter list.
288 * libcoff.h: Regenerate.
289 * libecoff.h: Regenerate.
291 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
293 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
294 section is going to follow it.
296 2001-06-12 Catherine Moore <clm@redhat.com>
298 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
299 with the file_align entry from elf_backend_data.
300 (elf_gc_smash_unused_vtentry_relocs): Likewise.
301 (elf_gc_record_vtentry): Likewise.
303 2001-06-10 Alan Modra <amodra@bigpond.net.au>
305 * elflink.h: Whitespace changes.
306 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
307 rather than "unsigned char".
308 (elf_link_output_relocs): Likewise.
309 (elf_link_input_bfd): Likewise.
310 (elf_reloc_link_order): LIkewise.
311 * elf.c: s/CONST/const/. Whitespace changes.
312 * elf32-mips.c: Formatting fix.
314 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
315 * Makefile.in: Regenerate.
316 * po/Make-in: Remove trailing tab.
318 2001-06-09 Philip Blundell <philb@gnu.org>
320 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
322 (elf32_arm_plt_entry): Likewise.
324 2001-06-08 H.J. Lu <hjl@gnu.org>
326 * elf.c (swap_out_syms): Keep names for global section symbols.
328 2001-06-07 H.J. Lu <hjl@gnu.org>
330 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
331 MIPS-based machines need it.
333 2001-06-07 H.J. Lu <hjl@gnu.org>
335 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
338 * config.bfd: Remove ecoff from Linux/mips.
340 2001-06-07 Andreas Jaeger <aj@suse.de>
342 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
344 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
345 alignment of 8 for .rela sections; handle further relocations.
347 2001-06-06 Christian Groessler <cpg@aladdin.de>
349 * coff-z8k.c: Fix formatting.
350 Fix howtos: howto->size was always 1.
352 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
354 * configure.host (mips64*-*-linux*): Define.
356 2001-06-05 Alan Modra <amodra@bigpond.net.au>
358 * elf32-i386.c (elf_i386_discard_copies): Rename to
359 discard_copies, and use elf_link_hash_entry arg rather than
360 elf_i386_link_hash_entry.
361 (elf_i386_link_hash_traverse): Delete.
362 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
363 Tidy sizing of dynamic sections.
364 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
365 possible .plt entries.
366 (elf_i386_gc_sweep_hook): Likewise.
367 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
368 everything with plt.refcount <= 0.
370 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
372 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
373 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
375 (allocate_plt_and_got): ..instead do it all here. New function.
376 (elf_i386_size_dynamic_sections): Allocate local .got space and
377 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
378 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
379 rather than gc variety).
380 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
381 (elf_i386_relocate_section): Use it here and correct handling of
382 R_386_GOT32. Provide section and offset for "unresolvable
383 relocation" error message.
384 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
386 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
387 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
388 (elf_i386_link_hash_table_create): Init them.
389 (create_got_section): New function.
390 (elf_i386_create_dynamic_sections): New function.
391 (elf_backend_create_dynamic_sections): Set to above.
392 (elf_i386_check_relocs): Use shortcuts from hash table rather than
393 calling bfd_get_section_by_name.
394 (elf_i386_gc_sweep_hook): Likewise.
395 (elf_i386_adjust_dynamic_symbol): Likewise.
396 (elf_i386_size_dynamic_sections): Likewise.
397 (elf_i386_relocate_section): Likewise.
398 (elf_i386_finish_dynamic_sections): Likewise.
400 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
402 2001-06-02 H.J. Lu <hjl@gnu.org>
404 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
406 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
408 2001-06-02 H.J. Lu <hjl@gnu.org>
410 * aout-cris.c (MACHTYPE_OK): New. Defined.
412 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
414 * section.c (_bfd_strip_section_from_output): Handle NULL
417 2001-06-02 H.J. Lu <hjl@gnu.org>
419 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
420 rs6000coff64_vec only if BFD64 is defined.
421 (powerpc64-*-aix*): Enable only if BFD64 is defined.
423 2001-06-02 H.J. Lu <hjl@gnu.org>
425 * coff-ia64.c (ia64coff_object_p): Rewrite with
426 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
428 2001-06-01 Andreas Jaeger <aj@suse.de>
430 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
431 relocation, small reformatting.
433 2001-05-29 Andreas Jaeger <aj@suse.de>
435 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
436 (elf64_x86_64_relocate_section): Likewise.
438 2001-05-30 Alan Modra <amodra@one.net.au>
440 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
441 millicode. Don't allocate .got and .rela.got space here..
442 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
443 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
445 (hppa_handle_PIC_calls): ..nor here..
446 (allocate_plt_and_got): ..instead do it all here. New function.
447 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
448 call allocate_plt_and_got. No need to zap .got if not dynamic.
449 (elf32_hppa_final_link): Call regular bfd_final_link instead of
450 gc_common_final_link.
451 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
452 (elf32_hppa_relocate_section): Use it here.
453 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
454 dynamic_sections_created.
455 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
457 2001-05-28 Andreas Jaeger <aj@suse.de>
459 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
460 generic version since we want a hashsize of 4.
461 (elf_backend_size_info): Likewise.
463 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
465 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
467 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
468 (elf_link_input_bfd): Likewise.
469 (elf_reloc_link_order): Likewise.
470 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
471 relocations correctly.
473 2001-05-28 Nicolas Pitre <nico@cam.org>
475 * elf32-arm.h: fix PLT generation for big endian ARM
477 2001-05-28 Alan Modra <amodra@one.net.au>
479 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
480 for symbols forced local that need plabels.
481 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
482 .plt.rela for local syms if non-shared.
483 (hppa_build_one_stub): Mask lsb of plt.offset.
484 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
485 (clobber_millicode_symbols): Correct comment.
486 (elf32_hppa_relocate_section): Likewise.
487 (elf32_hppa_finish_dynamic_symbol): Likewise.
489 2001-05-28 Jeff Sturm <jsturm@one-point.com>
491 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
492 * bfd-in2.h: Regenerate.
493 * libbfd.h: Regenerate.
494 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
495 and BFD_RELOC_SPARC_UA64 mapping
496 * elf64-sparc.c: Likewise.
498 2001-05-25 H.J. Lu <hjl@gnu.org>
500 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
501 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
502 (coff-rs6000.lo): Remove the old dependency.
503 * Makefile.in: Rebuild.
505 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
508 2001-05-25 H.J. Lu <hjl@gnu.org>
510 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
511 rs6000coff_core_file_matches_executable_p,
512 rs6000coff_core_file_failing_command and
513 rs6000coff_core_file_failing_signal only if AIX_CORE is
515 (pmac_xcoff_vec): Likewise.
516 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
518 2001-05-25 Timothy Wall <twall@redhat.com>
520 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
521 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
523 2001-05-25 H.J. Lu <hjl@gnu.org>
525 * bfd-in2.h: Regenerated.
526 * libcoff.h: Likewise.
528 2001-05-25 Alan Modra <amodra@one.net.au>
530 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
531 undefined millicode syms in shared libs.
532 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
533 (elf32_hppa_check_relocs): Likewise.
534 (elf32_hppa_adjust_dynamic_symbol): Likewise.
535 (elf32_hppa_size_dynamic_sections): Likewise.
536 (elf32_hppa_relocate_section): Likewise.
537 (elf32_hppa_finish_dynamic_symbol): Likewise.
538 (elf32_hppa_finish_dynamic_sections): Likewise.
540 2001-05-24 Tom Rix <trix@redhat.com>
542 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
543 xcoff-target.h not used to define rs6000 or ppc bfd.
546 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
549 * coff-rs6000.c : Many changes for 64 bit support. Move common
550 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
553 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
554 linker now supported. Explictly define the rs6000coff64_vec.
556 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
557 (coff_print_aux) same
558 (coff_write_object_contents) same
559 (coff_slurp_line_table) same
561 * coffgen.c : (coff_fix_symbol_name) formatting
562 (coff_mangle_symbols) xcoff 64 bit support
563 (coff_write_symbol) same
564 (coff_write_alien_symbol) same
565 (coff_write_native_symbol) same
566 (coff_write_symbols) same
567 (coff_get_symbol_info) same
568 (bfd_coff_get_syment) same
569 (coff_print_symbol) same
571 * config.bfd : add powerpc64-*-aix* target
573 * libcoff-in.h : formatting
575 * libcoff.h : move xcoff extern declarations to libxcoff.h
577 * libxcoff.h : New file
579 * xcofflink.c : Many changes for xcoff64 support. Move common
580 structures to include/coff/xcoff.h. Move specific structure to
581 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
582 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
584 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
587 (xcoff_build_ldsyms) : handle special __rtinit symbol.
589 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
591 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
594 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
596 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
597 * libbfd.h: Regenerate.
598 * bfd-in2.h: Regenerate.
600 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
601 * archures.c (bfd_mach_mips12000): Define.
602 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
603 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
605 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
606 * bfd-in2.h: Regenerate.
607 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
609 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
611 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
612 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
613 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
616 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
618 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
619 of entries in a structured section.
620 * elf.c: Use new macro.
621 * elf32-i386.c: Use new macro.
622 * elf32-mips.c: Use new macro.
623 * elf64-alpha.c: Use new macro.
624 * elf64-sparc.c: Use new macro.
625 * elfcode.h: Use new macro.
626 * elflink.h: Use new macro.
628 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
630 * bfdint.texi: Replace -oformat with --oformat.
632 2001-05-21 Andreas Jaeger <aj@suse.de>
634 * dwarf2.c (decode_line_info): Fix error message.
635 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
636 adjust error message.
638 2001-05-18 H.J. Lu <hjl@gnu.org>
640 * elflink.h (elf_link_add_object_symbols): Revert the last
643 2001-05-17 Alan Modra <amodra@one.net.au>
645 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
646 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
647 (hppa_build_one_stub): Add an assert to check plt.offset.
649 2001-05-17 H.J. Lu <hjl@gnu.org>
651 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
652 version definition to basename of the output filename.
654 2001-05-17 H.J. Lu <hjl@gnu.org>
656 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
657 basename of the bfd filename.
659 2001-05-16 Alan Modra <amodra@one.net.au>
661 * section.c (asection): Add linker_has_input field.
662 (STD_SECTION): Adjust initialization to suit.
663 * ecoff.c (bfd_debug_section): Likewise.
664 * bfd-in2.h: Regenerate.
666 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
668 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
669 negative 32-bit operands to 16 operands when the operand is
670 going to be zero-extended by the modified opcode.
672 2001-05-12 Peter Targett <peter.targett@arccores.com>
674 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
675 name for 'arc5' core versions.
676 (bfd_arc_arch): Make bfd_mach_arc_6 default.
678 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
680 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
682 2001-05-11 Jakub Jelinek <jakub@redhat.com>
684 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
686 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
687 to .gnu.linkonce.t.FOO text section.
689 2001-05-11 Jakub Jelinek <jakub@redhat.com>
691 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
692 fields, change sec into secinfo.
693 (struct sec_merge_info): Add chain, remove last fields.
694 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
695 (sec_merge_hash_lookup): If lookup could not use a string only
696 because it has bad alignment, mark the old string for deletion.
697 (sec_merge_add): Add secinfo argument. Don't compute entry's
698 position, instead record the section.
699 (sec_merge_emit): Update for the sec into secinfo change in
700 struct sec_merge_hash_entry.
701 (_bfd_merge_section): Only record the section for merging, defer
702 putting strings into the hash table.
703 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
704 _bfd_merge_sections): New functions.
705 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
707 * libbfd-in.h (_bfd_merge_sections): Add prototype.
708 (_bfd_nolink_bfd_merge_sections): Define.
709 * libbfd.h: Likewise.
710 (bfd_generic_merge_sections): Add prototype.
711 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
712 (struct bfd_target): Likewise.
713 * bfd.c (bfd_merge_sections): Define.
714 * bfd-in2.h: Rebuilt.
715 * elf.c (_bfd_elf_merge_sections): New function.
716 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
717 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
718 * reloc.c (bfd_generic_merge_sections): New function.
719 * vms.c (vms_bfd_merge_sections): New function.
720 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
721 * aout-target.h (MY_bfd_merge_sections): Define.
722 * aout-tic30.c (MY_bfd_merge_sections): Define.
723 * binary.c (binary_bfd_merge_sections): Define.
724 * bout.c (b_out_bfd_merge_sections): Define.
725 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
726 * coffcode.c (coff_bfd_merge_sections): Define.
727 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
728 * i386msdos.c (msdos_bfd_merge_sections): Define.
729 * i386os9k.c (os9k_bfd_merge_sections): Define.
730 * ieee.c (ieee_bfd_merge_sections): Define.
731 * ihex.c (ihex_bfd_merge_sections): Define.
732 * nlm-target.h (nlm_bfd_merge_sections): Define.
733 * oasys.c (oasys_bfd_merge_sections): Define.
734 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
735 * som.c (som_bfd_merge_sections): Define.
736 * srec.c (srec_bfd_merge_sections): Define.
737 * tekhex.c (tekhex_bfd_merge_sections): Define.
738 * versados.c (versados_bfd_merge_sections): Define.
739 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
741 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
743 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
744 to be unsigned long, in order to match its use.
746 2001-05-10 H.J. Lu <hjl@gnu.org>
748 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
751 2001-05-09 H.J. Lu <hjl@gnu.org>
753 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
754 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
755 Remove the unused veriable `dynver'.
757 2001-05-08 Ian Lance Taylor <ian@zembu.com>
759 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
761 (coff_i386_rtype_to_howto): Don't dump core if output section
764 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
766 * ecoff.c (bfd_debug_section): Fix initialization.
767 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
768 is always a positive integer. Cast away sign mismatch.
769 * elf32-mips.c: Fix misleading comment and typo.
770 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
772 * elflink.c: Fix typo.
773 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
774 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
776 2001-05-04 Richard Henderson <rth@redhat.com>
778 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
780 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
782 * elf32-arm.h (elf32_arm_final_link_relocate): Set
783 EF_ARM_HASENTRY if the start address is set.
785 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
787 * targets.c (_bfd_target_vector_entries): Compute value based on
788 the size of the _bfd_target_vector and not bfd_target_vector.
790 2001-05-03 H.J. Lu <hjl@gnu.org>
792 * elfcode.h: Include "libiberty.h".
794 * elflink.h (elf_link_add_object_symbols): Set
795 elf_dt_name (abfd) to basename of the bfd filename.
796 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
799 2001-05-03 Andreas Jaeger <aj@suse.de>
801 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
802 (elf_generic_info_to_howto_rel): Likewise.
803 * coff-alpha.c (reloc_nil): Likewise.
804 (alpha_ecoff_bad_format_hook): Likewise.
805 (alpha_adjust_reloc_out): Likewise.
806 (alpha_bfd_reloc_type_lookup): Likewise.
807 (alpha_convert_external_reloc): Likewise.
808 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
809 (elf64_alpha_reloc_bad): Likewise.
810 (elf64_alpha_reloc_gpdisp): Likewise.
811 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
812 (elf64_alpha_info_to_howto): Likewise.
813 (elf64_alpha_add_symbol_hook): Likewise.
814 (elf64_alpha_create_got_section): Likewise.
815 (elf64_alpha_is_local_label_name): Likewise.
816 (elf64_alpha_merge_ind_symbols): Likewise.
817 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
818 (mips_elf64_get_reloc_upper_bound): Likewise.
819 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
820 (nlm_alpha_get_public_offset): Likewise.
822 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
824 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
825 about overflow in R_OPENRISC_LO_16_IN_INSN and
826 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
828 2001-04-30 H.J. Lu <hjl@gnu.org>
830 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
831 only for ELF_LINK_FORCED_LOCAL.
832 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
833 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
834 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
836 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
837 if the symbol has hidden or internal visibility.
839 2001-04-30 Alan Modra <amodra@one.net.au>
841 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
842 calls to undefined weak symbols.
844 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
846 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
847 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
849 2001-04-27 Andreas Jaeger <aj@suse.de>
851 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
853 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
854 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
855 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
858 2001-04-27 Sean McNeil <sean@mcneil.com>
860 * config.bfd: Add arm-vxworks target.
861 * coff-arm (coff_arm_relocate_section): Add in symbol value to
862 addend (fro VXworks targets).
864 2001-04-26 H.J. Lu <hjl@gnu.org>
866 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
869 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
871 * bfd-in.h (bfd_cache_close): Declare newly exported function.
872 * bfd-in2.h: Regenerated.
874 2001-04-24 Jakub Jelinek <jakub@redhat.com>
876 * merge.c (struct sec_merge_hash_entry): Add alignment field.
877 (struct sec_merge_hash): Remove alignment_power.
878 (sec_merge_hash_newfunc): Clear alignment.
879 (sec_merge_hash_lookup): Pass alignment as argument.
880 Use hashp->root.next, not hashp->next to walk the hash chain.
881 If a string already in the hashtable does not have required
882 alignment, create a new hashtable entry.
883 (sec_merge_init): Remove alignment_power argument.
884 (sec_merge_add): Add alignment argument.
885 (sec_merge_emit): Alignment is now a per-entity thing, not per
887 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
888 for proper alignment.
889 Pass alignment information to sec_merge_add.
891 2001-04-24 Christian Groessler <cpg@aladdin.de>
893 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
894 and R_REL16 reloc types; accept odd values for R_REL16 type
896 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
898 * cpu-openrisc.c: New file.
899 * elf32-openrisc.c: Likewise.
901 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
902 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
903 (BFD32_BACKENDS): Add elf32-openrisc.lo.
904 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
905 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
906 * Makefile.in: Regenerated.
907 * config.bfd: (openrisc-*-elf): New target.
908 * configure.in (bfd_elf32_openrisc_vec): New vector.
909 * configure: Regenerated.
910 * libbfd.h: Regenerated.
911 * bfd-in2.h: Regenerated.
912 * reloc.c: Add OpenRISC relocations.
913 * targets.c (bfd_elf32_openrisc_vec): Declare.
914 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
915 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
916 (bfd_openrisc_arch): Declare.
917 (bfd_archures_list): Add bfd_openrisc_arch.
918 * elf.c (prep_headers): Add bfd_arch_openrisc.
920 2001-04-23 Bo Thorsen <bo@suse.de>
922 * elf64-x86-64.c: Add c++ vtable hack.
923 Small whitespace and comment changes.
925 2001-04-19 Andreas Jaeger <aj@suse.de>
927 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
928 (elf64_x86_64_plt_entry): Likewise.
929 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
930 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
932 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
934 * elf32-cris.c: Tweak comments related to dynamic linking.
935 (cris_elf_relocate_section): When not creating shared object, fill
936 in the .got table for any symbol not in the dynamic symbol table.
937 (elf_cris_finish_dynamic_symbol): When not creating shared object,
938 only emit a .got.rela reloc if the symbol is in the dynamic symbol
940 (cris_elf_check_relocs): Use variable r_type in all places rather
941 than the original expression. Add default case in switch for
943 (elf_cris_size_dynamic_sections): Iterate over
944 elf_cris_discard_excess_program_dynamics when not creating shared
946 (elf_cris_discard_excess_dso_dynamics): Renamed from
947 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
948 (elf_cris_discard_excess_program_dynamics): New.
950 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
952 * coffcode.h (coff_write_object_contents): Use
953 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
955 2001-04-14 H.J. Lu <hjl@gnu.org>
957 * bfd-in2.h: Regenerate.
959 2001-04-14 Jakub Jelinek <jakub@redhat.com>
961 * section.c (STD_SECTION): Add entsize.
963 2001-04-13 H.J. Lu <hjl@gnu.org>
965 * section.c (SEC_MERGE): Define new flag for merging.
966 (SEC_STRINGS): Likewise.
967 (entsize): New field.
969 2001-04-13 Roger Sayle <roger@metaphorics.com>
971 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
972 flag on pe-i386 targets.
974 2001-04-13 Jakub Jelinek <jakub@redhat.com>
976 * libbfd-in.h (_bfd_merge_section): New.
977 (_bfd_write_merged_section): New.
978 (_bfd_merged_section_offset): New.
980 * linker.c (_bfd_generic_link_output_symbols): Handle
982 * aoutx.h (aout_link_write_symbols): Likewise.
983 * pdp11.c (aout_link_write_symbols): Likewise.
984 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
985 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
987 (elf_link_sec_merge_syms): New.
988 (elf_link_input_bfd): Call _bfd_merged_section_offset
989 and _bfd_write_merged_section.
990 Handle discard_sec_merge.
991 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
993 (struct bfd_elf_section_data): Likewise.
994 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
995 SEC_STRINGS section flags and entsize from their ELF counterparts.
996 (_bfd_elf_link_hash_table_init): Initialize merge_info.
997 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
998 from their BFD counterparts.
1000 * Makefile.am: Add strtab.lo.
1001 * Makefile.in: Rebuilt.
1003 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1005 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1006 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1008 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1010 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1011 endian MIPS ELF target.
1012 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1015 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1016 64bit big endian MIPS ELF target.
1017 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1018 endian MIPS ELF target.
1019 * configure: Regenerated.
1021 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1022 little endian targets.
1023 (mips_elf_sym_is_global): Handle traditional targets.
1025 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1026 64bit big endian MIPS ELF target.
1027 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1028 endian MIPS ELF target.
1030 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1031 and bfd_elf64_tradlittlemips_vec.
1033 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1035 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1036 ordinary "progbits" section.
1038 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1040 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1041 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1043 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1045 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1047 2001-03-30 H.J. Lu <hjl@gnu.org>
1049 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1050 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1052 2001-03-26 H.J. Lu <hjl@gnu.org>
1054 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1055 if there are any relocations for generic ELF.
1056 (bfd_elf32_bfd_link_add_symbols): Defined to
1057 elf32_generic_link_add_symbols.
1058 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1059 if there are any relocations for generic ELF.
1060 (bfd_elf64_bfd_link_add_symbols): Defined to
1061 elf64_generic_link_add_symbols.
1063 2001-03-23 Nick Clifton <nickc@redhat.com>
1065 * Makefile.am (BUILD_CFILES): New variable: List of C source
1066 files created in build directory.
1067 (BUILD_HFILES): New variable: List of header files created in
1070 (po/POTFILES.in): Replace rule with empty entry.
1071 (po/SRC-POTFILES.in): New rule: Create a list of source files
1072 in the source directory.
1073 (po/BLD-POTFILES.in): New rule: Create a list of source files
1074 in the build directory.
1075 (MOSTLYCLEAN): Do not delete source files created in build
1077 * Makefile.in: Regenerate.
1078 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1080 * configure: Regenerate.
1082 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1084 Add .. to the search path when building bfd.pot.
1085 Delete POTFILES when performing distclean.
1086 Add comment describing why distclean is broken in maintainer mode.
1087 * po/POTFILES.in: Delete.
1088 * po/SRC-POTFILES.in: New file.
1089 * po/BLD-POTFILES.in: New file.
1090 * po/bfd.pot: Regenerate.
1092 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1094 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1095 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1096 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1097 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1098 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1099 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1101 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1102 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1103 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1104 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1105 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1106 New HOWTO members for new relocs.
1107 (cris_reloc_map): Map new relocs.
1108 (ELF_DYNAMIC_INTERPRETER): Define.
1109 (PLT_ENTRY_SIZE): Define.
1110 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1111 elf_cris_pic_plt_entry): New, PLT templates.
1112 (struct elf_cris_pcrel_relocs_copied, struct
1113 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1114 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1115 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1116 positive values. Adjust PCREL relocs to be relative to location
1118 (cris_elf_relocate_section): Handle relocations to dynamic
1119 objects. Handle new relocations. Call error handler when seeing
1120 non-PIC relocation for read-only sections while generating shared
1122 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1124 (bfd_elf32_bfd_link_hash_table_create,
1125 elf_backend_adjust_dynamic_symbol,
1126 elf_backend_size_dynamic_sections,
1127 elf_backend_finish_dynamic_symbol,
1128 elf_backend_finish_dynamic_sections,
1129 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1130 elf_backend_hide_symbol, elf_backend_want_got_plt,
1131 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1132 elf_backend_got_header_size, elf_backend_plt_header_size):
1135 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1136 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1137 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1138 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1139 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1140 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1141 * bfd-in2.h, libbfd.h: Regenerate.
1143 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1145 (_bfd_mips_elf_relocate_section): Give a better error message when
1146 a relocation is not recognized.
1148 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1150 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1151 non-NULL before attempting to dereference.
1153 2001-03-20 H.J. Lu <hjl@gnu.org>
1155 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1156 * configure: Rebuild.
1158 2001-03-20 Andreas Schwab <schwab@suse.de>
1160 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1161 relocation value when resolving a reference from a debugging
1164 2001-03-16 Scott Thomason <SThomaso@hii.com>
1166 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1167 (xcoff64_swap_sym_out): Fix syntax errors.
1169 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1171 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1173 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1175 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1176 (hppa_link_hash_newfunc): Init it.
1177 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1178 section appears to be non-PIC.
1179 (final_link_relocate): Likewise.
1180 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1181 possible candidate function, and set pic_call for those that will
1182 only have a .plt entry for the PIC call stub.
1183 (hppa_handle_PIC_calls): Set maybe_pic_call.
1185 2001-03-12 DJ Delorie <dj@redhat.com>
1187 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1188 R_SH_DIR8WP* relocs if they're against external symbols, else
1189 they're just for relaxing. Validate the reloc values.
1191 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1193 * binary.c (bfd_external_binary_architecture): Declare.
1194 (binary_object_p): If bfd_external_binary_architecture is defined,
1195 set the architecture to this string.
1197 2001-03-11 Philip Blundell <philb@gnu.org>
1199 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1200 entries that could serve as a definition for a weak symbol.
1202 2001-03-08 Nick Clifton <nickc@redhat.com>
1204 * Most files: Update copyright notices using Perl script created
1205 by Kevin Buettner <kevinb@redhat.com>.
1207 2001-03-07 Nick Clifton <nickc@redhat.com>
1209 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1210 prior patch on ! defined OLD_ARM_ABI.
1212 2001-03-07 Andreas Jaeger <aj@suse.de>
1214 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1215 some relocation values.
1217 2001-03-06 Nick Clifton <nickc@redhat.com>
1219 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1220 of offset in BLX(1) instruction.
1221 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1222 offset in BLX(1) instruction.
1225 2001-03-06 Nick Clifton <nickc@redhat.com>
1227 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1228 BFD_RELOC_THUMB_PCREL_BLX.
1230 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1232 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1233 * bfd-in2.h: Regenerate.
1234 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1235 * ieee.c (ieee_write_processor): Set proper id for
1238 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1240 * configure.in: Add s390 target.
1241 * configure: Regenerate.
1243 2001-02-28 Andreas Jaeger <aj@suse.de>
1245 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1248 2001-02-28 Philip Blundell <pb@futuretv.com>
1250 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1251 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1253 2001-02-27 H.J. Lu <hjl@gnu.org>
1255 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1256 abfd->tdata.aout_data == NULL.
1258 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1260 * elf32-hppa.c: Correct field selector in stub comments.
1261 (clobber_millicode_symbols): Formatting fix.
1263 * configure.in: Bump version to 2.11.90.
1264 * configure: Regenerate.
1265 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1266 (CFILES): $SOURCE_CFILES + generated C files.
1267 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1269 * Makefile.in: Regenerate.
1270 * doc/Makefile.in: This too.
1272 2001-02-26 Timothy Wall <twall@cygnus.com>
1274 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1277 2001-02-26 Nick Clifton <nickc@redhat.com>
1279 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1280 up, replacing multiple if statements with a switch.
1281 (handle_COMDAT): New function.
1283 2001-02-26 H.J. Lu <hjl@gnu.org>
1285 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1286 a warning for section flags we do not handle instead of
1289 2001-02-26 Andreas Jaeger <aj@suse.de>
1291 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1293 2001-02-22 Timothy Wall <twall@cygnus.com>
1295 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1296 * configure.in: Add objects for elf64_ia64_aix vectors.
1297 * configure: Regenerated.
1298 * configure.host: Recognize ia64-*-aix*.
1299 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1300 for AIX. AIX5 requires most relocations to be dynamic (*all*
1301 binaries are somewhat similar to shared libraries).
1302 * targets.c: Add elf64_ia64_aix vectors.
1304 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1306 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1307 C8 said "1" instead of "8". Clarify error string for IMM22:
1308 "signed integer" instead of just "integer".
1310 2001-02-20 Andreas Jaeger <aj@suse.de>
1312 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1313 PLT entries that could serve as a definition for a weak symbol.
1315 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1317 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1318 entries that could serve as a definition for a weak symbol.
1319 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1321 2001-02-18 David O'Brien <obrien@FreeBSD>
1323 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1324 FreeBSD/i386-CURRENT differently until I can figure out the needed
1326 * configure: Regenerate.
1327 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1328 FreeBSD/PowerPC, and FreeBSD/sparc64.
1330 2001-02-18 lars brinkhoff <lars@nocrew.org>
1332 * Makefile.am: Add PDP-11 a.out target.
1333 * config.bfd: Likewise.
1334 * configure.in: Likewise.
1335 * targets.c: Likewise.
1336 * archures.c: Likewise.
1337 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1338 * libbfd.h: Add PDP-11 relocations.
1339 * reloc.c: Likewise.
1340 * cpu-pdp11.c: New file.
1341 * pdp11.c: New file.
1343 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1344 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1345 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1346 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1347 (GET_MAGIC): New macro.
1348 (PUT_MAGIC): Likewise.
1349 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1351 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1353 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1354 multiarch needs it).
1356 2001-02-18 H.J. Lu <hjl@gnu.org>
1358 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1361 2001-02-18 Kazu Hirata <kazu@hxi.com>
1363 * vms-misc.c: Fix formatting.
1365 2001-02-16 Kazu Hirata <kazu@hxi.com>
1367 * vms.c: Fix formatting.
1369 2001-02-14 H.J. Lu <hjl@gnu.org>
1371 * elf.c (elf_find_function): New function.
1372 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1373 the file name and function name.
1375 2001-02-14 Nick Clifton <nickc@redhat.com>
1377 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1380 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1381 (BFD64_BACKENDS): Add pepigen.c
1382 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1384 * Makefile.in: Regenerate.
1385 * configure: Regenerate.
1386 * po/POTFILES.in: Regenerate.
1387 * po/bfd.pot: Regenerate.
1389 2001-02-14 H.J. Lu <hjl@gnu.org>
1391 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1392 force_minimum_alignment.
1394 2001-02-14 Bo Thorsen <bo@suse.de>
1396 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1397 (elf64_86_64_size_info): Struct added to fix a problem
1398 with the hashtable string entries.
1399 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1400 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1401 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1402 remove the FIXME for this.
1403 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1404 section. Also removed the FIXME for it.
1405 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1406 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1407 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1409 2001-02-13 Richard Henderson <rth@redhat.com>
1411 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1412 and not user provided.
1414 2001-02-13 Kazu Hirata <kazu@hxi.com>
1416 * vms.c (vms_print_symbol): Remove unreachable code.
1418 * rs6000-core.c: Fix formatting.
1420 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1422 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1423 as _bfd_XXi_only_swap_filehdr_out.
1424 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1425 pe->force_minimum_alignment to TRUE.
1426 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1427 PEI_TARGET_SUBSYSTEM.
1428 (pe_print_private_bfd_data): Call
1429 _bfd_XX_print_private_bfd_data_common() instead of
1430 _bfd_pe_print_private_bfd_data_common().
1431 (pe_bfd_copy_private_bfd_data): Call
1432 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1433 _bfd_pe_bfd_copy_private_bfd_data_common().
1434 (coff_bfd_copy_private_section_data): Define as
1435 _bfd_XX_bfd_copy_private_section_data instead of
1436 _bfd_pe_bfd_copy_private_section_data.
1437 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1438 of a _bfd_pe_get_symbol_info.
1442 * peXXigen.c: Renamed from peigen.c.
1443 (COFF_WITH_XX): Define this macro (will get expanded into
1444 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1445 compiled as peigen.c or pepigen.c.
1446 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1447 define the canonical PEP structures and definitions.
1448 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1449 effect, enforce minimum file and section alignments. If
1450 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1451 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1452 so, by default, this is a no-op).
1454 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1455 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1456 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1457 _bfd_pefoo if it's not defined. Use these macros to define
1460 * libcoff.h (pe_tdata): Add members target_subsystem and
1461 force_minimum_alignment.
1463 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1465 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1467 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1470 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1471 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1474 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1475 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1476 (peigen.c): Add rule to generate from peXXigen.c.
1478 (pepigen.lo): List dependencies for pepigen.lo.
1480 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1482 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1483 $global$ referenced but not defined, set its value here.
1485 2001-02-09 Bo Thorsen <bo@suse.de>
1487 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1489 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1491 (elf64_x86_64_relocate_section): Fix formatting.
1492 (elf64_x86_64_relocate_section): Fix addend for relocation of
1493 R_X86_64_(8|16|32|PC8|PC16|PC32).
1495 2001-02-12 Jan Hubicka <jh@suse.cz>
1497 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1499 2001-02-11 H.J. Lu <hjl@gnu.org>
1501 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1504 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1506 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1507 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1508 relocations against dynsym symbols.
1510 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1511 the R_MIPS_26 relocation.
1512 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1513 the R_MIPS_26 relocation.
1514 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1516 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1517 the R_MIPS_26 relocation.
1518 (mips_elf64_howto_table_rela): Likewise.
1520 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1521 member to mark symbols that have non-CALL relocations against
1523 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1524 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1526 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1527 non-CALL relocation against it is encountered.
1528 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1529 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1530 no_fn_stub is not set.
1532 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1533 information from the real symbol for indirect ones.
1534 Check no_fn_stub to find out if a symbol has a function stub
1537 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1539 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1540 * Makefile.in: Regenerate.
1542 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1544 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1545 true if section name is an unwind table section name.
1546 (elfNN_ia64_additional_program_headers): Count each unwind section
1548 (elfNN_ia64_modify_segment_map): Install one unwind program header
1549 for each unwind separate section. Note: normally the linker
1550 script merges the unwind sections that go into a single segment,
1551 so this still generates at most one unwind program header per
1554 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1555 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1556 (elfNN_ia64_fake_sections): Mark sections with names that start
1557 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1560 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1561 Use it to make sh_info in unwind section point to the text section
1564 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1566 * Makefile.am: Add linux target for S/390.
1567 * archures.c: Likewise.
1568 * bfd-in2.h: Likewise.
1569 * config.bfd: Likewise.
1570 * configure.in: Likewise.
1572 * libbfd.h: Likewise.
1573 * targets.c: Likewise.
1574 * cpu-s390.c: New file.
1575 * elf32-s390.c: New file.
1576 * elf64-s390.c: New file.
1578 2001-02-09 Nick Clifton <nickc@redhat.com>
1580 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1581 ImageBase. This has already been done by coff_swap_hdr_in.
1583 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1585 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1587 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1589 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1590 (sparc64_elf_relocate_section): Likewise.
1592 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1594 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1595 similar to R_SPARC_32.
1596 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1598 2001-02-08 H.J. Lu <hjl@gnu.org>
1600 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1601 relocation entries for weak definitions when building DSO with
1604 2001-02-08 Richard Henderson <rth@redhat.com>
1606 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1607 before visibility. Locally defined protected symbols are not
1610 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1612 * config.bfd: Enable coff64 for rs6000-*. Patch from
1613 <hzoli@austin.ibm.com>.
1615 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1617 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1618 found, do not attempt to find dwarf2 info before returning.
1620 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1622 * elflink.h (is_global_symbol_definition): Rename to
1623 is_global_data_symbol_definition and have it reject function
1625 (elf_link_is_defined_archive_symbol): Use renamed function.
1627 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1629 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1630 * libbfd.h (bfd_target_vector): Likewise.
1631 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1632 make static; create pointer reference named bfd_target_vector.
1633 (_bfd_target_vector_entries): Calculate this based on the array
1634 typed _bfd_target_vector.
1636 2001-02-06 H.J. Lu <hjl@gnu.org>
1638 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1639 internal symbols are not dynamic.
1640 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1642 2001-02-06 Nick Clifton <nickc@redhat.com>
1644 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1645 that it will not be pulled into the list of files that make up
1647 * Makefile.in: Regenerate.
1648 * po/bfd.pot: Regenerate.
1650 2001-02-06 H.J. Lu <hjl@gnu.org>
1652 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1654 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1655 external_PEI_IMAGE_hdr.
1657 2001-02-06 Kazu Hirata <kazu@hxi.com>
1659 * elf-m10200.c: Fix formatting.
1661 2001-02-04 Nick Clifton <nickc@redhat.com>
1663 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1664 rel, it will be handled later on.
1666 2001-02-02 Fred Fish <fnf@ninemoons.com>
1668 * Makefile.in: Fix typo.
1670 2001-02-01 Kazu Hirata <kazu@hxi.com>
1672 * elf-m10300.c: Fix formatting.
1674 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1676 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1677 (elf_backend_get_symbol_type): Define.
1678 (elf64_hppa_object_p): Set architecture and machine from elf
1681 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1683 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1686 2001-01-26 Richard Henderson <rth@redhat.com>
1688 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1689 for non-default visibility.
1690 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1691 delete ugly macro and replace with pretty function.
1693 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1695 * coff-go32.c: Update copyright.
1696 * coff-stgo32.c: Likewise.
1697 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1698 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1699 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1700 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1702 2001-01-25 Kazu Hirata <kazu@hxi.com>
1704 * bfd-in2.h: Rebuild.
1705 * libbfd.h: Likewise.
1707 2001-01-23 H.J. Lu <hjl@gnu.org>
1709 * bfd-in2.h: Rebuild.
1711 2001-01-23 H.J. Lu <hjl@gnu.org>
1713 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1714 is NULL or PRIV(vms_rec) is outside of the buffer.
1716 2001-01-23 Kazu Hirata <kazu@hxi.com>
1718 * coff64-rs6000.c: Fix formatting.
1719 * coff-arm.c: Likewise.
1720 * coffgen.c: Likewise.
1721 * cofflink.c: Likewise.
1722 * coff-mcore.c: Likewise.
1723 * coff-mips.c: Likewise.
1724 * coff-pmac.c: Likewise.
1725 * coff-ppc.c: Likewise.
1726 * coff-rs6000.c: Likewise.
1727 * elf32.c: Likewise.
1728 * elf32-fr30.c: Likewise.
1729 * elf32-i370.c: Likewise.
1730 * elf32-i860.c: Likewise.
1731 * elf32-m32r.c: Likewise.
1732 * elf32-m68k.c: Likewise.
1733 * elf32-mcore.c: Likewise.
1734 * elf32-ppc.c: Likewise.
1735 * elf32-sh.c: Likewise.
1736 * elf32-v850.c: Likewise.
1737 * elf64-alpha.c: Likewise.
1738 * elf64-sparc.c: Likewise.
1739 * elflink.c: Likewise.
1740 * elflink.h: Likewise.
1741 * elf-m10200.c: Likewise.
1742 * elf-m10300.c: Likewise.
1743 * elfxx-ia64.c: Likewise.
1745 * aoutx.h: Fix formatting.
1747 * bfd-in2.h: Likewise.
1748 * bfd-in.h: Likewise.
1749 * cpu-i386.c: Likewise.
1750 * cpu-m68hc11.c: Likewise.
1751 * dwarf2.c: Likewise.
1752 * elf64-x86-64.c: Likewise.
1753 * format.c: Likewise.
1754 * freebsd.h: Likewise.
1756 * hp300hpux.c: Likewise.
1757 * hppabsd-core.c: Likewise.
1758 * hpux-core.c: Likewise.
1760 2001-01-22 Bo Thorsen <bo@suse.de>
1762 * elf64-x86-64.c: Added PIC support for X86-64.
1763 (elf64_x86_64_link_hash_newfunc): Function added.
1764 (elf64_x86_64_link_hash_table_create): Likewise.
1765 (elf64_x86_64_check_relocs): Likewise.
1766 (elf64_x86_64_gc_mark_hook): Likewise.
1767 (elf64_x86_64_gc_sweep_hook): Likewise.
1768 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1769 (elf64_x86_64_size_dynamic_sections): Likewise.
1770 (elf64_x86_64_discard_copies): Likewise.
1771 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1772 (elf64_x86_64_finish_dynamic_sections): Likewise.
1773 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1775 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1777 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1778 * Makefile.in: Regenerate.
1780 2001-01-21 Kazu Hirata <kazu@hxi.com>
1782 * coff-a29k.c: Fix formatting.
1784 2001-01-19 H.J. Lu <hjl@gnu.org>
1786 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1787 relocation section names.
1788 (elf_i386_relocate_section): Report files with bad relocation
1789 section names and return false.
1791 2001-01-17 Bo Thorsen <bo@suse.de>
1793 * targets.c: Alphabetize list of xvecs.
1795 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1797 * config.bfd: Add linux target variant for elfxx-hppa.
1798 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1799 bfd_elf64_hppa_linux_vec.
1800 * configure: Regenerate.
1801 * elf64-hppa.c: Include elf64-target.h again to support linux
1803 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1804 * elf32-hppa.c: Include elf32-target.h again to support linux
1806 (elf32_hppa_post_process_headers): New function.
1807 (elf_backend_post_process_headers): Define.
1808 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1809 bfd_elf32_hppa_linux_vec.
1811 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1812 and data_segment_base fields.
1813 (elf32_hppa_link_hash_table_create ): Init them.
1814 (elf32_hppa_check_relocs): Update comments.
1815 (hppa_record_segment_addr): New function.
1816 (elf32_hppa_relocate_section): Call it.
1817 (final_link_relocate): Handle R_PARISC_SEGREL32.
1818 (elf32_hppa_final_link): New function.
1819 (bfd_elf32_bfd_final_link): Define to call it.
1820 (hppa_unwind_entry_compare): New function.
1821 * cache.c (bfd_open_file): Create files in write+read mode.
1823 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1824 SEGREL32 and numerous other relocs. Change duplicate
1825 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1827 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1830 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1831 .plt entries for DT_INIT and DT_FINI.
1832 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1833 DT_INIT and DT_FINI.
1835 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1836 offsets for stub .plt access if wide mode. Check offset in range.
1838 2001-01-13 Nick Clifton <nickc@redhat.com>
1840 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1843 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1846 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1848 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1849 * configure: Regenerate.
1851 2001-01-11 Peter Targett <peter.targett@arccores.com>
1853 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1854 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1855 * cpu-arc.c (arch_info_struct): Add entries for variants.
1856 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1857 (arc_get_mach) Don't assume machine names prefixed arc- before
1859 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1861 (arc_elf_final_write_processing) Likewise.
1862 (ELF_MACHINE_CODE) Use EM_ARC.
1864 2001-01-10 Nick Clifton <nickc@redhat.com>
1866 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1868 2001-01-07 Philip Blundell <philb@gnu.org>
1870 * README: Replace `bug-gnu-utils@gnu.org' with
1871 `bug-binutils@gnu.org'.
1873 2001-01-04 Kazu Hirata <kazu@hxi.com>
1875 * som.c: Fix formatting.
1877 2001-01-03 Kazu Hirata <kazu@hxi.com>
1879 * ecoffswap.h: Fix formatting.
1880 * elf-bfd.h: Likewise.
1881 * elfarm-nabi.c: Likewise.
1882 * elfarm-oabi.c: Likewise.
1883 * elfcode.h: Likewise.
1884 * elfcore.h: Likewise.
1885 * elflink.c: Likewise.
1886 * elflink.h: Likewise.
1887 * elfxx-ia64.c: Likewise.
1888 * elfxx-target.h: Likewise.
1889 * libbfd.c: Likewise
1890 * linker.c: Likewise.
1891 * lynx-core.c: Likewise.
1893 2001-01-02 Kazu Hirata <kazu@hxi.com>
1895 * pc532-mach.c: Fix formatting.
1896 * pe-arm.c: Likewise.
1897 * pe-i386.c: Likewise.
1898 * pe-mips.c: Likewise.
1899 * pe-ppc.c: Likewise.
1900 * pe-sh.c: Likewise.
1901 * pei-mips.c: Likewise.
1902 * pei-sh.c: Likewise.
1903 * peicode.h: Likewise.
1904 * ppcboot.c: Likewise.
1905 * ptrace-core.c: Likewise.
1907 2001-01-01 Kazu Hirata <kazu@hxi.com>
1909 * reloc.c: Fix formatting.
1910 * riscix.c: Likewise.
1911 * rs6000-core.c: Likewise.
1912 * xcoff-target.h: Likewise.
1914 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1916 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1917 error, by calling bfd_default_set_arch_mach with incoming
1920 2000-12-26 Kazu Hirata <kazu@hxi.com>
1922 * vaxnetbsd.c: Fix formatting.
1923 * versados.c: Likewise.
1924 * vms-gsd.c: Likewise.
1925 * vms-hdr.c: Likewise.
1926 * vms-misc.c: Likewise.
1928 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1930 * archive.c (coff_write_armap): Don't write more than symbol_count
1931 `archive_member_file_ptr's.
1933 2000-12-25 Kazu Hirata <kazu@hxi.com>
1935 * vms-tir.c: Fix formatting.
1937 2000-12-23 Kazu Hirata <kazu@hxi.com>
1939 * vms.c: Fix formatting.
1942 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1944 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1946 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1948 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1951 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1953 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1955 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1957 * libbfd.c (bfd_get_bits): Added
1958 (bfd_put_bits): Likewise
1959 * bfd-in.h: Declared the above.
1960 * bfd-in2.h: Regenerated.
1962 2000-12-20 Kazu Hirata <kazu@hxi.com>
1964 * targets.c: Fix formatting.
1965 * tekhex.c: Likewise.
1966 * trad-core.c: Likewise.
1968 2000-12-19 Kazu Hirata <kazu@hxi.com>
1970 * sco5-core.c: Fix formatting.
1971 * section.c: Likewise.
1972 * sparclinux.c: Likewise.
1973 * sparclynx.c: Likewise.
1974 * sparcnetbsd.c: Likewise.
1976 * stabs.c: Likewise.
1977 * stab-syms.c: Likewise.
1978 * sunos.c: Likewise.
1980 * sysdep.h: Likewise.
1982 2000-12-18 Nick Clifton <nickc@redhat.com>
1984 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1986 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1987 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1989 2000-12-18 Nick Clifton <nickc@redhat.com>
1991 * vms-misc.c (_bfd_vms_get_record): Add default case to
1994 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1996 * elfcore.h (elf_core_file_p): Move to the start of the program
1997 headers before attempting to read them.
1999 2000-12-14 Kazu Hirata <kazu@hxi.com>
2001 * peigen.c: Fix formatting.
2005 2000-12-13 Kazu Hirata <kazu@hxi.com>
2007 * peigen.c: Fix formatting.
2009 2000-12-12 Jim Wilson <wilson@redhat.com>
2011 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2013 2000-12-08 Mark Salter <msalter@redhat.com>
2015 * binary.c (binary_set_section_contents): Ignore sections
2018 2000-12-12 Kazu Hirata <kazu@hxi.com>
2020 * m68klinux.c: Fix formatting.
2021 * m68knetbsd.c: Likewise.
2022 * mipsbsd.c: Likewise.
2023 * netbsd-core.c: Likewise.
2024 * netbsd.h: Likewise.
2025 * newsos3.c: Likewise.
2026 * nlm32-alpha.c: Likewise.
2027 * nlm32-i386.c: Likewise.
2028 * nlm32-ppc.c: Likewise.
2029 * nlm32-sparc.c: Likewise.
2030 * nlmcode.h: Likewise.
2031 * nlmswap.h: Likewise.
2032 * nlm-target.h: Likewise.
2033 * ns32knetbsd.c: Likewise.
2035 2000-12-10 Fred Fish <fnf@be.com>
2037 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2038 symbols in shared objects if allow_shlib_undefined is true.
2040 2000-12-12 Nick Clifton <nickc@redhat.com>
2042 * cpu-sh.c: Fix formattng.
2043 * elf.c: Fix formattng.
2044 * elf32-mips.c: Fix formattng.
2045 * elf32-sh.c: Fix formattng.
2046 * elf64-alpha.c: Fix formattng.
2048 2000-12-09 Nick Clifton <nickc@redhat.com>
2050 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2051 dwarf2_find_line_info as last parameter to invocation of
2052 _bfd_dwarf2_find_nearest_line.
2053 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2054 dwarf2_find_line_info as last parameter to invocation of
2055 _bfd_dwarf2_find_nearest_line.
2057 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2059 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2060 (BFD_LIBS): ...to here.
2061 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2062 (BFD_LIBS_CFILES): ...to here.
2063 * Makefile.in: Regenerate.
2064 * configure.in: Remove dwarf.lo from the elf shell variable.
2065 * configure: Regenerate.
2066 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2067 * libcoff.h: Regenerate.
2068 * coffgen.c (coff_find_nearest_line): Call
2069 _bfd_dwarf2_find_nearest_line.
2070 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2072 (read_abbrevs): Likewise
2073 (decode_line_info): Likewise.
2074 (parse_comp_unit): Likewise.
2075 (comp_unit_find_nearest_line): Likewise.
2076 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2077 * libbfd.h: Regenerate.
2078 * elf.c (_bfd_elf_find_nearest_line): Update call.
2079 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2080 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2081 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2082 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2083 (styp_to_sec_flags): Handle DWARF2 sections.
2084 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2085 to _bfd_find_nearest_line.
2086 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2087 call to _bfd_find_nearest_line.
2089 2000-12-08 Kazu Hirata <kazu@hxi.com>
2091 * coffgen.c: Fix formatting.
2092 * elf-m10300.c: Likewise.
2093 * elf32-i386.c: Likewise.
2094 * elf32-i960.c: Likewise.
2095 * elf32-m68k.c: Likewise.
2096 * elf32-mcore.c: Likewise.
2097 * elf32-ppc.c: Likewise.
2098 * elf32-sh.c: Likewise.
2099 * elf32-sparc.c: Likewise.
2100 * elf32-v850.c: Likewise.
2101 * elf64-alpha.c: Likewise.
2102 * elf64-hppa.c: Likewise.
2103 * elf64-mips.c: Likewise.
2104 * elf64-sparc.c: Likewise.
2106 2000-12-07 Kazu Hirata <kazu@hxi.com>
2108 * elf32-ppc.c: Fix formatting.
2109 * elf64-x86-64.c: Likewise.
2111 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2113 From Ralf Baechle <ralf@gnu.org>
2115 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2116 BFDs containing no sections or empty .text, .data or .bss sections
2117 to be merged, regardless of their flags.
2119 2000-12-06 Kazu Hirata <kazu@hxi.com>
2121 * elf32-m32r.c: Fix formatting.
2122 * elf32-m68hc11.c: Likewise.
2123 * elf32-m68hc12.c: Likewise.
2124 * elf32-m68k.c: Likewise.
2125 * elf32-mcore.c: Likewise.
2126 * elf32-pj.c: Likewise.
2127 * elf32-ppc.c: Likewise.
2129 2000-12-05 Kazu Hirata <kazu@hxi.com>
2131 * elf32-fr30.c: Fix formatting.
2132 * elf32-hppa.c: Likewise.
2133 * elf32-i370.c: Likewise.
2134 * elf32-i386.c: Likewise.
2135 * elf32-i860.c: Likewise.
2136 * elf32-i960.c: Likewise.
2138 2000-12-03 Kazu Hirata <kazu@hxi.com>
2140 * elf32-arm.h: Fix formatting.
2141 * elf32-avr.c: Likewise.
2142 * elf32-cris.c: Likewise.
2143 * elf32-d10v.c: Likewise.
2144 * elf32-d30v.c: Likewise.
2145 * elf-hppa.h: Likewise.
2146 * elf-m10200.c: Likewise.
2147 * elf-m10300.c: Likewise.
2149 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2151 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2152 bfd_mach_mips32_4k. Update FIXME comment.
2153 * archures.c (bfd_mach_mips32): New constant.
2154 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2155 the latter, renumber it.
2156 * bfd-in2.h (bfd_mach_mips32): New constant.
2157 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2158 the latter, renumber it.
2159 * cpu-mips.c (I_mips32): New constant.
2160 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2161 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2162 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2163 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2164 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2165 with E_MIPS_MACH_MIPS32_4K.
2166 (_bfd_mips_elf_final_write_processing): Replace
2167 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2168 bfd_mach_mips32 case.
2169 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2170 comparison with support for MIPS32.
2171 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2174 * aoutx.h (NAME(aout,machine_type)): Add cases for
2175 bfd_mach_mips5 and bfd_mach_mips64.
2176 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2177 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2178 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2179 (arch_info_struct): Add entries for bfd_mach_mips5 and
2181 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2182 _bfd_mips_elf_print_private_bfd_data): Add cases for
2183 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2184 (_bfd_mips_elf_final_write_processing): Add cases for
2185 bfd_mach_mips5 and bfd_mach_mips64.
2187 * aoutx.h (NAME(aout,machine_type)): Add a
2188 bfd_mach_mips_sb1 case.
2189 * archures.c (bfd_mach_mips_sb1): New constant.
2190 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2191 * cpu-mips.c (I_sb1): New constant.
2192 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2193 * elf32-mips.c (elf_mips_mach): Add case for
2195 (_bfd_mips_elf_final_write_processing): Add case for
2198 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2200 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2201 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2202 (sparc*-*-rtems*): Switched from a.out to ELF.
2204 2000-11-30 Jan Hubicka <jh@suse.cz>
2206 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2207 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2208 (elf64-x86-64.lo): Add dependencies.
2209 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2210 bfd_mach_x86_64_intel_syntax.
2211 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2212 * config.bfd (x86_64): Add.
2213 * configure.in: Add support for bfd_elf64_x86_64_vec.
2214 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2215 (bfd_i386_arch, i8086_ar): Link in.
2216 * elf64-x86-64.c: New file.
2217 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2218 * targets.c (bfd_elf64_x86_64_vec): Add.
2219 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2221 2000-11-30 Kazu Hirata <kazu@hxi.com>
2223 * xcofflink.c: Fix formatting.
2225 2000-11-28 Kazu Hirata <kazu@hxi.com>
2227 * aoutx.h: Fix formatting.
2228 * bfd-in.h: Likewise.
2229 * bfd-in2.h: Likewise.
2230 * cache.c: Likewise.
2231 * cisco-core.c: Likewise.
2232 * coff64-rs6000.c: Likewise.
2233 * coffcode.h: Likewise.
2234 * coffswap.h: Likewise.
2235 * corefile.c: Likewise.
2236 * elf32-mips.c: Likewise.
2238 2000-11-27 Kazu Hirata <kazu@hxi.com>
2240 * aout-adobe.c: Fix formatting.
2241 * coff64-rs6000.c: Likewise.
2242 * coffgen.c: Likewise.
2243 * cofflink.c: Likewise.
2245 2000-11-27 Philip Blundell <pb@futuretv.com>
2247 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2248 (obj_coff_strings_written): New accessor macro for above.
2249 * libcoff.h: Regenerate.
2250 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2252 * coffcode.h (coff_write_object_contents): No need to write out
2253 the string table if it's already been done.
2255 2000-11-22 Philip Blundell <pb@futuretv.com>
2257 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2258 weak undefined symbols.
2260 2000-11-24 Nick Clifton <nickc@redhat.com>
2262 * archures.c (bfd_mach_arm_5TE): Define.
2263 (bfd_mach_arm+XScale): Define.
2264 * bfd-in2.h: Regenerate.
2266 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2267 BFD_RELOC_ARM_PCREL_BLX.
2269 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2270 XScale machine numbers.
2272 * config.bfd (xscale-elf): Add target.
2273 (xscale-coff): Add target.
2275 * cpu-arm.c: Add xscale machine name.
2276 Add v5t, v5te and XScale machine numbers.
2278 2000-11-23 Kazu Hirata <kazu@hxi.com>
2280 * aix386-core.c: Fix formatting.
2282 2000-11-22 Jim Wilson <wilson@redhat.com>
2284 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2285 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2286 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2287 (ins_imms_scaled): Initialize sign_bit at function entry.
2288 (elf64_ia64_operands): Add missing initializers.
2289 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2290 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2291 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2292 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2293 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2295 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2296 and free_extsyms at function entry.
2297 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2298 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2299 (get_got): Delete unused local srel.
2300 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2301 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2303 2000-11-21 Kazu Hirata <kazu@hxi.com>
2305 * coff-a29k.c: Fix formatting.
2306 * coff-h8500.c: Likewise.
2307 * coff-i960.c: Likewise.
2308 * coff-ppc.c: Likewise.
2309 * coff-rs6000.c: Likewise.
2310 * coff-stgo32.c: Likewise.
2311 * coff-tic54x.c: Likewise.
2312 * coff-w65.c: Likewise.
2313 * cpu-h8500.c: Likewise.
2314 * cpu-hppa.c: Likewise.
2315 * cpu-ns32k.c: Likewise.
2316 * ecoff.c: Likewise.
2317 * ecofflink.c: Likewise.
2319 2000-11-21 Nick Clifton <nickc@redhat.com>
2321 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2322 remove possibility of infinite loop.
2324 2000-11-20 Kazu Hirata <kazu@hxi.com>
2326 * aix386-core.c: Fix formatting.
2327 * aout-adobe.c: Likewise.
2328 * aout-arm.c: Likewise.
2329 * aout-encap.c: Likewise.
2330 * aout-ns32k.c: Likewise.
2331 * aout-target.h: Likewise.
2332 * aout-tic30.c: Likewise.
2333 * aoutf1.h: Likewise.
2334 * aoutx.h: Likewise.
2335 * archive.c: Likewise.
2336 * bfd-in.h: Likewise.
2337 * bfd-in2.h: Likewise.
2341 2000-11-17 H.J. Lu <hjl@gnu.org>
2343 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2344 pltoff entries for DT_INIT and DT_FINI.
2345 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2346 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2349 2000-11-16 Richard Henderson <rth@redhat.com>
2351 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2352 (allocate_dynrel_entries): Likewise.
2353 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2354 (set_pltoff_entry): Likewise.
2355 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2356 (elfNN_ia64_reloc_type_lookup): Likewise.
2357 (elfNN_ia64_install_value): Likewise.
2358 (elfNN_ia64_relocate_section): Likewise.
2359 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2360 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2362 2000-11-16 Kazu Hirata <kazu@hxi.com>
2364 * cpu-a29k.c: Fix formatting.
2365 * cpu-alpha.c: Likewise.
2366 * cpu-arm.c: Likewise.
2367 * cpu-avr.c: Likewise.
2368 * cpu-d10v.c: Likewise.
2369 * cpu-h8500.c: Likewise.
2370 * cpu-hppa.c: Likewise.
2371 * cpu-i370.c: Likewise.
2372 * cpu-i386.c: Likewise.
2373 * cpu-i960.c: Likewise.
2374 * cpu-ia64-opc.c: Likewise.
2375 * cpu-ia64.c: Likewise.
2376 * cpu-m32r.c: Likewise.
2377 * cpu-m68hc11.c: Likewise.
2378 * cpu-m68hc12.c: Likewise.
2379 * cpu-m68k.c: Likewise.
2380 * cpu-m88k.c: Likewise.
2381 * cpu-mips.c: Likewise.
2382 * cpu-ns32k.c: Likewise.
2383 * cpu-pj.c: Likewise.
2384 * cpu-powerpc.c: Likewise.
2385 * cpu-sh.c: Likewise.
2386 * cpu-sparc.c: Likewise.
2387 * cpu-tic54x.c: Likewise.
2388 * cpu-v850.c: Likewise.
2389 * cpu-vax.c: Likewise.
2390 * cpu-w65.c: Likewise.
2391 * cpu-we32k.c: Likewise.
2392 * cpu-z8k.c: Likewise.
2393 * dwarf1.c: Likewise.
2394 * dwarf2.c: Likewise.
2396 2000-11-15 Kazu Hirata <kazu@hxi.com>
2398 * coff-arm.c: Fix formatting.
2399 * coff-ppc.c: Likewise.
2400 * coff-rs6000.c: Likewise.
2401 * coff-sh.c: Likewise.
2402 * coff-sparc.c: Likewise.
2403 * coff-tic30.c: Likewise.
2404 * coff-tic54x.c: Likewise.
2405 * coff-tic80.c: Likewise.
2406 * coff-w65.c: Likewise.
2407 * coff-we32k.c: Likewise.
2408 * coff-z8k.c: Likewise.
2410 2000-11-15 Richard Henderson <rth@redhat.com>
2412 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2413 section with the same ALLOC|LOAD flags as the source section.
2415 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2417 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2418 by STO_ALPHA constants.
2420 2000-11-14 Kazu Hirata <kazu@hxi.com>
2422 * coff-pmac.c: Fix formatting.
2423 * coff-ppc.c: Likewise.
2425 2000-11-13 H.J. Lu <hjl@gnu.org>
2427 * elflink.h (elf_link_add_object_symbols): Also add indirect
2428 symbols for common symbols with the default version.
2430 2000-11-09 Philip Blundell <pb@futuretv.com>
2432 * section.c (STD_SECTION): Set gc_mark flag.
2434 2000-11-11 Kazu Hirata <kazu@hxi.com>
2436 * coff-i960.c: Likewise.
2437 * coff-m68k.c: Likewise.
2438 * coff-m88k.c: Likewise.
2439 * coff-mcore.c: Likewise.
2440 * coff-mips.c: Likewise.
2442 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2444 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2446 2000-11-10 Kazu Hirata <kazu@hxi.com>
2448 * coff-h8300.c: Fix formatting.
2449 * coff-h8500.c: Likewise.
2450 * coff-i386.c: Likewise.
2451 * coff-i860.c: Likewise.
2452 * coff-i960.c: Likewise.
2453 * coff-ia64.c: Likewise.
2455 2000-11-09 Kazu Hirata <kazu@hxi.com>
2457 * archive.c: Fix formatting.
2458 * archures.c: Likewise.
2460 2000-11-07 Richard Henderson <rth@redhat.com>
2462 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2463 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2464 * section.c (bfd_set_section_contents): Call memcpy if
2465 section->contents set and location not equal to contents plus offset.
2467 2000-11-08 Kazu Hirata <kazu@hxi.com>
2469 * bfd-in.h: Fix formatting.
2470 * bfd-in2.h: Likewise.
2472 * binary.c: Likewise.
2474 * coff-a29k.c: Likewise.
2475 * coff-alpha.c: Likewise.
2476 * coff-apollo.c: Likewise.
2477 * coff-aux.c: Likewise.
2479 2000-11-07 Kazu Hirata <kazu@hxi.com>
2481 * aix386-core.c: Fix formatting.
2482 * aoutf1.h: Likewise.
2483 * aoutx.h: Likewise.
2484 * archures.c: Likewise.
2485 * armnetbsd.c: Likewise.
2487 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2489 * coff-h8300.c (special): Adjust reloc address.
2491 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2493 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2494 to differentiate elf32 and elf64 on ia64.
2495 * bfd-in2.h: Regenerate.
2496 * config.bfd: Add target for "ia64*-*-hpux*".
2497 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2498 * configure: Regenerate.
2499 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2500 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2502 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2503 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2504 * Makefile.in: Regnerate.
2505 * elf64-ia64.c: Deleted.
2506 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2508 2000-11-06 Kazu Hirata <kazu@hxi.com>
2510 * aout-adobe.c: Fix formatting.
2511 * aout-arm.c: Likewise.
2512 * aout-cris.c: Likewise.
2513 * aout-encap.c: Likewise.
2514 * aout-ns32k.c: Likewise.
2515 * aout-target.h: Likewise.
2516 * aout-tic30.c: Likewise.
2518 2000-11-05 Philip Blundell <philb@gnu.org>
2520 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2521 BFDs containing no sections to be merged, regardless of their flags.
2523 2000-11-04 Philip Blundell <philb@gnu.org>
2525 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2526 if a relocation for an undefined symbol also results in an
2529 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2531 * config.bfd: Add support for Sun Chorus.
2533 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2535 * configure.in: Recognize alpha-*-freebsd*.
2536 * configure: Regenerate.
2538 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2540 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2541 (Chunk): New global variable set by a parameter in objcopy.c.
2542 (S3Forced): New global variable set by a parameter in
2544 (srec_set_section_contents): If S3Forced is true, always generate
2546 (srec_write_section): Use 'Chunk' to limit maximum length of S
2549 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2551 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2552 * Makefile.in: Regenerate.
2553 * bfd-in2.h: Regenerate.
2554 * po/bfd.pot: Regenerate.
2556 2000-10-31 Philip Blundell <philb@gnu.org>
2558 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2559 EF_SOFT_FLOAT if it is defined.
2561 2000-10-27 Philip Blundell <philb@gnu.org>
2563 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2564 attempts to mix PIC code with non-PIC, just mark the output as
2565 being position dependent.
2566 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2567 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2568 all mismatches, not just the first one.
2570 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2572 * ieee.c (ieee_archive_p): Plug one of many possible
2573 memory leaks in error handling.
2575 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2577 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2578 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2580 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2581 sparc64_elf_object_p): Support v9b.
2582 * archures.c: Declare v8plusb and v9b machines.
2584 * cpu-sparc.c: Ditto.
2586 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2588 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2591 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2592 (SYMBOL_CALLS_LOCAL): New macro.
2593 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2594 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2595 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2596 (ppc_elf_relocate_section): Use flag variable to determine
2597 whether the relocation refers to a local symbol.
2598 Test whether a PLTREL24 reloc will produce a reloc by looking
2599 to see whether a PLT entry was made.
2601 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2603 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2604 entries that could serve as a definition for a weak symbol.
2606 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2608 From Ralf Baechle <ralf@gnu.org>
2610 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2611 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2612 against local symbols.
2613 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2615 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2617 * section.c (struct sec): Add kept_section.
2618 (struct bfd_comdat_info): Remove sec, we can use above.
2619 (STD_SECTION): Add initializer.
2620 (bfd_make_section_anyway): Init here too.
2622 * bfd-in2.h: Regenerate.
2624 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2626 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2627 fudge values for discarded link-once section symbols.
2629 * elf64-hppa.c: Include alloca-conf.h
2631 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2633 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2635 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2637 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2639 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2641 2000-10-10 Tom Rix <trix@redhat.com>
2643 * section.c (bfd_make_section_anyway): Release newsect ptr when
2644 newsect->symbol fails to alloc. Use bfd_release instead of free.
2646 2000-10-09 Richard Henderson <rth@cygnus.com
2648 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2649 (elf64_ia64_unwind_entry_compare): New.
2650 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2652 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2654 * elflink.h (size_dynamic_sections): Don't create various tags if
2655 .dynstr is excluded from the link. Don't set first dynsym entry
2656 if dynsymcount is zero.
2657 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2658 .dynsym excluded from the link. Don't try to write any dynamic
2659 sections excluded from the link.
2661 * elf.c (swap_out_syms): Handle global section symbols.
2663 2000-10-05 DJ Delorie <dj@redhat.com>
2665 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2666 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2667 (coff_write_relocs): write extended reloc count
2668 (coff_write_object_contents): account for extended relocs
2670 2000-10-05 Jim Wilson <wilson@cygnus.com>
2672 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2674 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2675 elf_backend_section_flags function.
2676 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2678 (elf64_ia64_section_flags): New function containing flag conversion
2680 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2681 * elfxx-target.h (elf_backend_section_flags): Define.
2682 (elfNN_bed): Initialize elf_backend_section_flags field.
2684 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2686 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2687 _bfd_elf32_gc_record_vtable. Correct a comment.
2689 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2691 From Ralf Baechle <ralf@gnu.org>
2693 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2694 produces binaries with got[1] = 0x80000001 to differenciate them
2695 for the dynamic linker from the broken binaries produced by old
2698 2000-09-30 Petr Sorfa <petrs@sco.com>
2700 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2701 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2702 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2703 * configure: Regenerate.
2705 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2707 Define two bfd_targets for absence and presence of leading
2708 underscore on symbols. Make sure to only link same kind.
2709 * elf32-cris.c (cris_elf_object_p,
2710 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2711 cris_elf_merge_private_bfd_data): New.
2712 (elf_backend_object_p, elf_backend_final_write_processing,
2713 bfd_elf32_bfd_print_private_bfd_data,
2714 bfd_elf32_bfd_merge_private_bfd_data): Define.
2715 <Target vector definition>: Include elf32-target.h twice with
2716 different macro settings:
2717 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2718 bfd_elf32_us_cris_vec.
2719 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2720 (elf_symbol_leading_char): First as 0, then '_'.
2721 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2722 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2723 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2724 * configure: Regenerate.
2725 * targets.c: Declare bfd_elf32_us_cris_vec.
2726 * po/bfd.pot: Regenerate.
2728 2000-09-29 Momchil Velikov <velco@fadata.bg>
2730 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2731 R_ARM_THM_PC22 relocations.
2733 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2735 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2737 2000-09-29 Momchil Velikov <velco@fadata.bg>
2739 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2740 is has the SEC_HAS_CONTENTS flag set.
2742 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
2743 Hans-Peter Nilsson <hp@axis.com>
2745 * aout-cris.c (N_TXTADDR): Define.
2747 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2749 * som.c: Include alloca-conf.h.
2750 * Makefile.am: "make dep-am"
2751 * Makefile.in: Regenerate.
2753 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2755 * elf32-hppa.c (plt_stub): New.
2756 (PLT_STUB_ENTRY): Define.
2757 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2758 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2759 (elf32_hppa_link_hash_table_create): Init to suit.
2760 (elf32_hppa_check_relocs): Set has_12bit_branch and
2761 has_17bit_branch as appropriate.
2762 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2763 non-local functions.
2764 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2765 Add space for plt_stub as needed.
2766 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2767 functions at plt_stub.
2768 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2769 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2771 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2772 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2773 of fixed size, and if negative, disable handling of input sections
2774 before stub section. Set up default stub group size depending
2775 on detected branch relocs.
2776 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2777 ensure different offsets from sym_value aren't rounded to
2778 different 2k blocks. Use lrsel and rrsel for other stubs too for
2779 consistency rather than necessity.
2780 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2781 (final_link_relocate): Likewise.
2782 (elf32_hppa_relocate_section): Likewise.
2784 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2785 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2786 (elf_hppa_final_link_relocate): Handle them.
2787 (elf_hppa_relocate_insn): Likewise.
2788 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2790 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2792 * elfcode.h (elf_object_p): Preserve and clear abfd section
2793 information. Restore at error.
2795 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2797 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2798 is empty, make sure that its rva also 0. NT loader dislikes
2801 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2803 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2806 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2808 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2809 currently unused RELATIVE_DYNAMIC_RELOCS code.
2810 (hppa_discard_copies): Likewise.
2811 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2812 comments. Don't check non-code output sections for stub grouping.
2814 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2816 * section.c (bfd_get_unique_section_name): Return NULL if
2819 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2821 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2822 instruction sequence to actually work.
2823 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2826 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2828 * elf32-sh.c (sh_elf_relocate_section): Use
2829 _bfd_final_link_relocate to apply the relocation against a section
2830 symbol, when doing relocatable links.
2832 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2834 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2836 (stub_hash_newfunc): Here too.
2837 (hppa_add_stub): And here.
2838 (elf32_hppa_link_hash_table): Remove stub_section_created,
2839 reloc_section_created, first_init_sec and first_fini_sec. Add
2841 (elf32_hppa_link_hash_table_create): Init to suit.
2842 (hppa_get_stub_entry): Add support for grouping stub sections.
2843 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2844 section code. Index stub vars by section->id.
2845 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2846 exit paths. Zap allocation of above removed vars. Refine
2849 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2850 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2851 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2852 rather than pointer to bfd_link_info.
2853 (hppa_add_stub): Likewise.
2854 (final_link_relocate): Likewise.
2856 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2858 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2861 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2863 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2864 ld/emulparams/shelf.sh.
2866 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2868 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2869 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2870 * bfd-in2.h: Regenerate.
2872 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2874 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2875 LITUSE relocations incorrectly if -relax is specified on the ld
2876 command line and the displacement field of the load or store
2877 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2879 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2881 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2882 first_fini_sec here.
2883 (elf32_hppa_size_stubs): Instead correctly find the first .init
2884 and .fini section here.
2886 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2888 * elf32-hppa.c (clobber_millicode_symbols): New function.
2889 (elf32_hppa_size_dynamic_sections): Call it.
2891 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2893 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2894 packed. Add plabel, plt_abs packed booleans.
2895 (hppa_link_hash_newfunc): Init new fields.
2896 (PLABEL_PLT_ENTRY_SIZE): Define.
2897 (hppa_stub_name): Use size_t len vars.
2898 (hppa_add_stub): Likewise.
2899 (elf32_hppa_build_stubs): Likewise.
2900 (hppa_build_one_stub): Kill some compiler warnings.
2901 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2902 if dynamic linking. Munge the local plt offsets into
2903 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2904 size_t len vars. Add assert for plabel addend.
2905 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2906 (elf32_hppa_hide_symbol): New function.
2907 (elf_backend_hide_symbol): Define.
2908 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2909 with h->plabel set. Don't make plt entries to have dynamic syms
2910 when they have been forced local. If plt entry is used by a
2911 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2912 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2913 Set up .plt offsets for local syms.
2914 (elf32_hppa_relocate_section): Initialise plt entries for local
2915 syms. Leave weak undefined plabels zero. Make global plabel
2916 relocs against function symbol, and leave the addend zero.
2917 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2918 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2919 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2920 relocs instead of SEGREL32 for dynamic got relocs.
2921 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2922 (elf_backend_got_header_size): Adjust.
2923 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2925 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2926 (hppa_type_of_stub): Use it instead of #if 0
2927 (hppa_discard_copies): Use it here too.
2928 (elf32_hppa_size_dynamic_sections): And here.
2930 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2931 (elf32_hppa_link_hash_table_create): And here.
2932 (hppa_build_one_stub): And here. Instead keep track of stub
2933 offset using _raw_size.
2934 (elf32_hppa_size_stubs): Likewise.
2935 (elf32_hppa_build_stubs): Likewise.
2936 (hppa_size_one_stub): Likewise. Resize reloc section too.
2938 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2939 first_fini_sec handling. Don't search for reloc section or set
2940 hplink->reloc_section_created here.
2941 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2942 set reloc_section_created here.
2943 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2944 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2946 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2948 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2949 with `hplink->root.'.
2950 (elf32_hppa_check_relocs): Likewise.
2951 (elf32_hppa_gc_sweep_hook): Likewise.
2952 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2953 (hppa_handle_PIC_calls): Likewise.
2954 (elf32_hppa_size_dynamic_sections): Likewise.
2955 (elf32_hppa_set_gp): Likewise.
2956 (elf32_hppa_relocate_section): Likewise.
2957 (elf32_hppa_finish_dynamic_symbol): Likewise.
2958 (elf32_hppa_finish_dynamic_sections): Likewise.
2960 From David Huggins-Daines <dhd@linuxcare.com>
2961 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2962 defined weak symbols in shared links.
2963 (final_link_relocate): Calls to defined weak symbols in shared
2964 objects must go via import stubs, as the target might not be known
2967 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2969 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2970 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2971 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2972 the original entries with EMPTY_HOWTOs, and added new ones to fill
2974 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2975 (sh_elf_relocate_section): Likewise.
2977 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2979 * cpu-mips.c (arch_info_struct): Add mips:4K
2980 * bfd-in2.h (bfd_mach_mips4K): New define.
2981 * archures.c: Add bfd_mach_mips4K to comment.
2982 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2983 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2985 2000-09-13 Marco Franzen <marcof@thyron.com>
2987 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2988 use size_t as a counter.
2989 (som_write_space_strings): Similarly.
2991 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2993 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2995 (elf32_i860_relocate_section): Invoke new function from here.
2997 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2999 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3002 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3004 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3005 target section name instead of dumping core when the target symbol is
3008 2000-09-09 Kazu Hirata <kazu@hxi.com>
3010 * riscix.c: Remove DEFUN.
3012 2000-09-08 Nick Clifton <nickc@redhat.com>
3014 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3015 initialise flags in output bfd if the input bfd is the default
3016 architecture with the default flags.
3018 2000-09-08 Kazu Hirata <kazu@hxi.com>
3020 * archive.c: Fix formatting.
3021 * coff-arm.c: Likewise.
3022 * doc/chew.c: Likewise.
3024 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3026 * section.c (bfd_get_unique_section_name): Put a dot before the
3029 2000-09-07 Kazu Hirata <kazu@hxi.com>
3031 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3032 * elf.c: Fix formatting.
3034 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3036 * config.bfd (sh-*-linux*): Added.
3037 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3038 * targets.c: Declare them.
3039 * elf32-sh-lin.c: New file.
3040 * Makefile.am: Compile it.
3041 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3042 * configure, Makefile.in: Rebuilt.
3044 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3046 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3047 pseduo-section when determining where the TOC ends.
3049 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3050 output x_tvndx as it is only two bytes wide.
3052 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3053 reloc is 26 or 32 bits wide.
3055 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3056 for relocs that don't change anything. Also look at the full
3059 2000-09-06 Philip Blundell <philb@gnu.org>
3061 * config.bfd (arm*-*-uclinux*): New target.
3063 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3065 * configure: Rebuilt with new libtool.m4.
3067 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3069 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3070 word for variable name.
3071 * bfd-in2.h: Regenerate.
3073 2000-09-05 Nick Clifton <nickc@redhat.com>
3075 * config.in: Regenerate.
3076 * libbfd.h: Regenerate.
3077 * po/bfd.pot: Regenerate.
3078 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3081 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3083 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3085 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3087 Shared library and PIC support.
3088 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3089 (GOT_ENTRY_SIZE): New.
3090 (ELF_DYNAMIC_INTERPRETER): New.
3091 (STUB_SUFFIX): Define.
3092 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3093 (RELATIVE_DYNAMIC_RELOCS): Define.
3094 (enum elf32_hppa_stub_type): New.
3095 (struct elf32_hppa_stub_hash_entry): Rename offset to
3096 stub_offset. Add a number of new fields.
3097 (struct elf32_hppa_link_hash_entry): New.
3098 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3100 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3101 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3102 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3104 (hppa_link_hash_newfunc): New function.
3105 (elf32_hppa_link_hash_table_create): Use above function. Init new
3107 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3108 instead of addend, and remove sym_name from args. Don't use
3109 symbol name for local syms, instead use sym index.
3110 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3111 stub type rather than size. Pass in hash and handle import stub
3112 case. Also pass in reloc instead of offset so we can calculate
3113 PCREL22F and PCREL12F branches properly.
3114 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3115 import and export stubs too.
3116 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3117 import and export stub sizing.
3118 (elf32_hppa_check_relocs): New function.
3119 (elf32_hppa_adjust_dynamic_symbol): New function.
3120 (hppa_discard_copies): New function.
3121 (elf32_hppa_size_dynamic_sections): New function.
3122 (elf_backend_size_dynamic_sections): Define.
3123 (elf32_hppa_finish_dynamic_symbol): New function.
3124 (elf_backend_finish_dynamic_symbol): Define.
3125 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3126 some local vars into the link hash table too. For shared links,
3127 trundle over function syms, generating export stubs. Handle
3128 PCREL22F branches. Break out stub creation code from here..
3129 (hppa_add_stub): .. to here. New function.
3130 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3131 call the bfd linker. Use elf_gp to record global pointer.
3132 Calculate a value from sections if $global$ is missing.
3133 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3134 (elf32_hppa_gc_mark_hook): New function.
3135 (elf_backend_gc_mark_hook): Define.
3136 (elf32_hppa_gc_sweep_hook): New function.
3137 (elf_backend_gc_sweep_hook): Define.
3138 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3139 Add rel to args, and remove howto, input_bfd, offset, addend,
3140 sym_name as we can recalculate these locally. Handle calls to
3141 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3142 handling of undefined weak syms. Check that stubs are in range.
3143 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3144 message on hitting a DPREL21L reloc that needs fixing. Subtract
3145 off PC for PCREL14F. Break out code that does a stub lookup from
3147 (hppa_get_stub_entry): ..to here. New function.
3148 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3149 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3151 (elf32_hppa_finish_dynamic_sections): New function.
3152 (elf_backend_finish_dynamic_sections): Define.
3153 (elf_backend_final_write_processing) Define.
3154 (hppa_handle_PIC_calls): New function.
3155 (elf32_hppa_build_stubs): Call it. Pass link_info to
3156 hppa_build_one_stub.
3157 (elf32_hppa_create_dynamic_sections): New function
3158 to create .plt and .got then set .plt flags correctly.
3159 (elf_backend_create_dynamic_sections): Define.
3160 (elf32_hppa_object_p): New function.
3161 (elf_backend_object_p): Define.
3162 (elf32_hppa_elf_get_symbol_type): New function.
3163 (elf_backend_get_symbol_type): Define.
3164 (elf_backend_can_gc_sections): Define.
3165 (elf_backend_want_got_plt): Define.
3166 (elf_backend_plt_alignment): Set to 2.
3167 (elf_backend_plt_readonly): Define.
3168 (elf_backend_want_plt_sym): Define.
3169 (elf_backend_got_header_size): Reserve one entry.
3171 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3172 (elf32_hppa_size_stubs): Pass in multi_subspace.
3173 (elf32_hppa_set_gp): Declare.
3175 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3176 (bfd_get_unique_section_name): New function.
3177 * bfd-in2.h: Regenerate.
3179 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3180 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3183 From David Huggins-Daines <dhd@linuxcare.com>
3184 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3185 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3186 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3187 been updated in finish_dynamic_symbol before modifying function
3190 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3191 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3192 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3193 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3194 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3195 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3196 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3197 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3199 From David Huggins-Daines <dhd@linuxcare.com>
3200 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3201 style of local labels as well.
3203 2000-09-03 Philip Blundell <philb@gnu.org>
3205 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3206 references to undefined symbols in debugging sections.
3208 2000-09-02 H.J. Lu <hjl@gnu.org>
3210 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3211 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3212 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3215 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3217 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3218 (elf32_i860_is_local_label_name): New function and prototype.
3220 2000-09-02 Nick Clifton <nickc@redhat.com>
3222 * configure.in: Increase version number to 2.10.91.
3223 * configure: Regenerate.
3224 * aclocal.m4: Regenerate.
3225 * config.in: Regenerate.
3226 * po/bfd.pot: Regenerate.
3228 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3230 * elf.c (_bfd_elf_make_section_from_shdr): Add
3231 .gnu.linkobce.wi. to the list of debug section names.
3233 2000-09-02 Nick Clifton <nickc@redhat.com>
3235 * dwarf2.c (find_debug_info): New function: Locate a section
3236 containing dwarf2 debug information.
3237 (bfd_dwarf2_find_nearest_line): Find all sections containing
3238 debug information and include them in the stash.
3240 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3242 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3243 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3244 (sh_reloc_map): Add new relocs.
3245 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3246 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3247 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3248 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3250 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3251 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3252 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3253 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3254 New array constants.
3255 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3257 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3258 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3259 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3260 elf_sh_plt_reloc_offset): Define.
3261 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3262 elf_sh_link_hash_table): New structs.
3263 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3264 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3266 (elf_backend_create_dynamic_sections,
3267 bfd_elf32_bfd_link_hash_table_create,
3268 elf_backend_adjust_dynamic_symbol,
3269 elf_backend_size_dynamic_sections,
3270 elf_backend_finish_dynamic_symbol,
3271 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3272 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3273 elf_backend_got_header_size, elf_backend_plt_header_size):
3275 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3276 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3278 * bfd-in2.h, libbfd.h: Rebuilt.
3280 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3282 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3285 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3287 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3288 not initialized, set them to indicate the SH1 instruction set.
3290 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3292 * acinclude.m4: Include libtool and gettext macros from the
3294 * aclocal.m4, configure: Rebuilt.
3296 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3298 * elf.c: Eliminate references to __sparcv9 macro; replace with
3299 autoconf variables HAVE_PSINFO32_T etc.
3300 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3301 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3303 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3304 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3305 * aclocal.m4: Ditto.
3306 * configure: Regenerate.
3308 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3310 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3311 for any shared link, not just shared -Bsymbolic.
3312 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3313 any shared link, and pass link info to it.
3314 (elf_i386_size_dynamic_sections): Update comment.
3315 (elf_i386_discard_copies): Modify to discard relocs for symbols
3316 that have been forced local.
3317 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3318 that have been forced local.
3320 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3322 * elflink.h (elf_link_add_object_symbols): Allow common
3323 symbols to have an alignment of 1 if explicitly requested, and
3324 not overridden by other definitions.
3326 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3328 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3329 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3331 2000-08-22 H.J. Lu <hjl@gnu.org>
3333 * elf-bfd.h (elf_link_hash_table): Add runpath.
3335 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3336 * bfd-in2.h: Rebuilt.
3338 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3339 "runpath" field to NULL.
3340 (bfd_elf_get_runpath_list): New function.
3342 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3345 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3347 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3348 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3349 explicitly. Improve validation of r_type.
3351 2000-08-21 H.J. Lu <hjl@gnu.org>
3353 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3354 dynamic allocated content space. Add a comment to remind us that
3355 one day this ought to be fixed.
3356 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3357 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3358 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3360 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3362 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3363 field with the newly relocated value instead of adding it to the
3364 existing immediate field.
3365 (elf32_i860_relocate_splitn): Likewise.
3366 (elf32_i860_relocate_highadj): Likewise.
3368 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3370 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3371 was previously just a stub).
3373 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3375 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3377 (_bfd_elf_create_dynamic_sections): Likewise.
3379 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3381 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3382 for undefined symbols to be the beginning of the section.
3384 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3385 four extra entries at the beginning of the .rela.plt section.
3386 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3387 section to account for the four reserved entries in the .plt section.
3389 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3391 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3392 to the list of NOPs we recognize after a branch-and-link.
3393 Use the ori NOP when one is needed.
3395 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3398 2000-08-14 Jim Wilson <wilson@cygnus.com>
3400 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3401 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3402 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3405 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3407 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3409 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3411 * elf32-i860.c (elf32_i860_relocate_section): New function.
3412 (i860_final_link_relocate): New function.
3413 (elf32_i860_relocate_splitn): New function.
3414 (elf32_i860_relocate_pc16): New function.
3415 (elf32_i860_relocate_highadj): New function.
3416 (elf32_i860_howto): Minor adjustments to some relocations.
3417 (elf_info_to_howto_rel): Define.
3418 (elf_backend_relocate_section): Define.
3420 2000-08-10 Nick Clifton <nickc@cygnus.com>
3422 * elf32-arm.h: Fix formatting.
3424 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3426 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3428 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3430 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3432 2000-08-07 Kazu Hirata <kazu@hxi.com>
3434 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3435 * elf64-ia64.c: Fix a typo.
3437 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3439 * elf32-i860.c (elf32_i860_howto_table): New structure.
3440 (lookup_howto): New function.
3441 (elf32_i860_reloc_type_lookup): New function.
3442 (elf32_i860_info_to_howto_rela): New function.
3443 (elf_code_to_howto_index): New structure.
3444 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3445 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3446 elf32_i860_reloc_type_lookup.
3448 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3450 * som.c (struct fixup_format): Constify `format'.
3451 (som_hppa_howto_table): Use SOM_HOWTO macro.
3452 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3453 (som_bfd_reloc_type_lookup): Likewise.
3454 (compare_subspaces): Remove unused `count1', `count2'.
3455 (som_begin_writing): Remove unused `total_reloc_size'.
3456 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3457 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3458 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3459 (som_find_nearest_line): Decorate unused parameter(s).
3460 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3461 (som_bfd_link_split_section): Likewise.
3463 2000-08-03 Nick Clifton <nickc@cygnus.com>
3465 * section.c: Restore backed out code.
3466 * elf.c: Restore backed out code.
3467 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3468 binaries from working.
3469 * bfd-in2.h: Regenerate.
3471 2000-08-03 H.J. Lu <hjl@gnu.org>
3473 * section.c: Back out the change made by Nick Clifton
3474 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3476 * bfd-in2.h: Likewise.
3479 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3481 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3483 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3485 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3486 * bfd-in2.h, libbfd.h: Regenerate.
3488 2000-07-31 Nick Clifton <nickc@cygnus.com>
3490 * section.c (struct sec): Add new boolean field 'segment_mark'.
3491 (STD_SECTION): Initialise new field to zero.
3493 * bfd-in2.h: Regenerate.
3495 * elf.c (copy_private_bfd_data): Reorganise section to segment
3496 mapping to cope with moved sections requiring new segments,
3497 and overlapping segments.
3498 (SEGMENT_END): New macro: Return the end address of a segment.
3499 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3500 contains a section by comparing their VMA addresses.
3501 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3502 contains a section by comparing their LMA addresses.
3503 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3504 section should be included in a segment.
3505 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3506 follows another in memory.
3507 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3510 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3512 * cpu-i860.c: Added comments.
3514 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3515 bfd_elf32_i860_little_vec.
3516 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3517 (ELF_MAXPAGESIZE): Changed to 4096.
3519 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3521 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3523 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3524 config for little endian elf32 i860.
3525 (targ_defvec): Define for the new config above
3526 as "bfd_elf32_i860_little_vec".
3527 (targ_selvecs): Define for the new config above
3528 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3530 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3533 * configure: Regenerated.
3535 2000-07-27 H.J. Lu <hjl@gnu.org>
3537 * elflink.h (elf_merge_symbol): Take one more argument,
3538 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3539 entry. Don't overide the existing weak definition if dt_needed
3541 (elf_link_add_object_symbols): Pass dt_needed to
3542 elf_merge_symbol ().
3544 2000-07-27 Nick Clifton <nickc@cygnus.com>
3546 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3549 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3551 * configure.host (*-*-aix*): AIX has 'long long' always.
3553 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3554 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3555 (xcoff_write_archive_contents_big): Don't update the offset
3556 of the symbol table, xcoff_write_armap will do it.
3558 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3560 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3561 of dynobj for SGI_COMPAT checks.
3563 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3565 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3566 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3567 * bfd-in2.h: Regenerate.
3569 2000-07-21 Nick Clifton <nickc@cygnus.com>
3571 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3572 range symbol indices in relocs and issue an error message.
3574 2000-07-20 H.J. Lu <hjl@gnu.org>
3576 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3577 info->new_dtags when setting DT_FLAGS_1. It will only be set
3578 by the new linker options. It shouldn't break anything.
3580 2000-07-20 H.J. Lu <hjl@gnu.org>
3582 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3583 only if info->new_dtags is true.
3585 2000-07-20 H.J. Lu <hjl@gnu.org>
3587 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3588 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3590 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3592 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3593 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3594 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3595 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3596 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3597 * Makefile.in: Rebuild.
3598 * aclocal.m4: Rebuild.
3599 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3600 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3601 (bfd_cris_arch): Declare.
3602 (bfd_archures_list): Add bfd_cris_arch.
3603 * bfd-in2.h: Rebuild.
3604 * config.bfd: (cris-*-*): New target.
3605 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3606 * configure: Rebuild.
3607 * elf.c (prep_headers): Add bfd_arch_cris.
3608 * libbfd.h: Rebuild.
3609 * libaout.h (enum machine_type): Add M_CRIS.
3610 * reloc.c: Add CRIS relocations.
3611 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3612 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3613 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3614 * po/POTFILES.in, po/bfd.pot: Regenerate.
3616 2000-07-19 H.J. Lu <hjl@gnu.org>
3618 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3619 DF_TEXTREL if DT_TEXTREL is set.
3620 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3621 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3622 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3623 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3624 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3625 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3626 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3627 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3628 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3629 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3631 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3632 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3634 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3636 2000-07-19 H.J. Lu <hjl@gnu.org>
3638 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3639 * bfd-in2.h: Rebuild.
3641 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3642 (elf_dt_soname): New.
3644 * elf.c (bfd_elf_set_dt_needed_soname): New.
3646 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3647 entry if the shared object loaded by DT_NEEDED is used to
3648 resolve the reference in a regular object.
3650 2000-07-19 H.J. Lu <hjl@gnu.org>
3652 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3653 DT_DEPAUDIT and DT_AUDIT as strings.
3655 2000-07-19 Nick Clifton <nickc@cygnus.com>
3657 * format.c: Fix formatting.
3659 2000-07-19 H.J. Lu <hjl@gnu.org>
3661 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3663 2000-07-19 H.J. Lu <hjl@gnu.org>
3665 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3666 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3667 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3668 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3669 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3670 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3671 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3673 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3675 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3676 renamed functions from here...
3677 (assign_section_numbers): Use renamed functions.
3678 (prep_headers): Use renamed functions.
3680 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3681 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3682 * bfd-in2.h: Regenerate.
3684 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3686 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3687 parenthesis in if statement.
3689 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3691 Enable the support for Traditional MIPS.
3692 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3693 return ict_none appropriately for traditional mips targets.
3694 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3695 (STUB_MOVE): Conditionalize for traditonal mips.
3696 (STUB_LI16): Likewise.
3697 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3698 room for RTPROC header.
3699 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3700 the permission for the PT_DYNAMIC as read, write and execute.
3701 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3702 for traditonal mips.
3703 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3704 _DYNAMIC_LINKING for traditonal mips.
3705 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3706 in case of traditonal mips.
3707 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3708 entry is required. For a function if PLT is not required then set the
3709 corresponding hash table entry to 0.
3710 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3712 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3713 shared object set the value to 0.
3714 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3715 _DYNAMIC_LINKING for traditonal mips.
3716 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3717 for traditonal mips.
3719 2000-07-15 H.J. Lu <hjl@gnu.org>
3721 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3723 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3725 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3726 out a structure that is BFD_IN_MEMORY.
3728 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3730 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3731 bfd pointer. Print section id instead of bfd pointer for local
3732 syms. Prefix addend with `+' for global syms as well as local.
3733 Correct calculation of name component lengths.
3734 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3736 From David Huggins-Daines <dhd@linuxcare.com>
3737 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3738 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3739 (elf64_hppa_modify_segment_map): Likewise.
3741 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3743 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3744 addresses to be "naturally" sign extended. Return -1 if unknown.
3745 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3746 * bfd-in2.h: Regenerate.
3748 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3750 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3751 and ECOF_SIGNED_64 to list ways to extract an offset.
3752 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3753 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3755 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3756 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3758 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3760 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3761 bfd_get_start_address.
3762 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3763 (elf_swap_ehdr_out): Ditto.
3765 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3767 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3768 compatibility with older binutils.
3770 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3772 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3773 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3775 From Ryan Bradetich <rbradetich@uswest.net>
3776 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3777 (parse_line_table): Ditto.
3778 (_bfd_dwarf1_find_nearest_line): Ditto.
3779 * syms.c (cmpindexentry): Remove extra `*' from params.
3781 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3783 * elf32-mips.c (sort_dynamic_relocs): New Function.
3784 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3785 via qsort to sort the dynamic relocations in increasing r_symndx
3788 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3790 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3791 ATTRIBUTE_UNUSED to unused args.
3792 (get_opd): Likewise.
3793 (get_plt): Likewise.
3794 (get_dlt): Likewise.
3795 (get_stub): Likewise.
3796 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3797 (elf64_hppa_link_output_symbol_hook): Likewise.
3798 (elf64_hppa_check_relocs): Delete unused var.
3799 (elf64_hppa_size_dynamic_sections): Likewise.
3800 (elf64_hppa_finalize_opd): Likewise.
3801 (elf64_hppa_finalize_dynreloc): Likewise.
3802 (elf64_hppa_modify_segment_map): Likewise.
3803 (elf64_hppa_finish_dynamic_sections): Likewise.
3805 * elf-hppa.h (elf_hppa_final_write_processing): Add
3806 ATTRIBUTE_UNUSED to unused args.
3807 (elf_hppa_final_link_relocate): Likewise.
3808 (elf_hppa_record_segment_addrs): Add paretheses.
3809 (elf_hppa_relocate_section): Constify dyn_name.
3811 From David Huggins-Daines <dhd@linuxcare.com>
3812 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3813 rearrange case statement so that it gets preferred to 32-bit ones.
3815 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3816 asection->id instead of address of asection structure.
3817 (elf32_hppa_size_stubs): Likewise.
3819 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3820 for .init* and .fini*.
3822 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3823 and addends used in stub names to 32 bits.
3824 (elf32_hppa_size_stubs): Likewise.
3826 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3827 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3828 not bfd_put_64. Fix minor comment typo and formatting.
3830 Changes to create multiple linker stubs, positioned immediately
3831 before the section where they are required.
3832 * elf32-hppa.c: Don't include hppa_stubs.h.
3833 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3834 (elf32_hppa_stub_hash_table): Delete.
3835 (elf32_hppa_link_hash_entry): Delete.
3836 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3837 stub_hash_table, and store the struct here rather than a pointer.
3838 Delete output_symbol_count. Add offset array. Change
3839 global_value to a bfd_vma.
3840 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3841 (elf32_hppa_stub_hash_traverse): Delete.
3842 (elf32_hppa_name_of_stub): Delete.
3843 (elf32_hppa_link_hash_lookup): Delete.
3844 (elf32_hppa_link_hash_traverse): Delete.
3845 (elf32_hppa_stub_hash_table_init): Delete.
3846 (elf32_hppa_size_of_stub): Pass input section and offset rather
3847 than location and calculate location here. Don't pass name as all
3848 stubs are now the same size.
3849 (elf32_hppa_stub_hash_newfunc): Init new fields.
3850 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3852 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3853 comparing against ints. Rewrite stub handling code.
3854 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3855 Case enums to int before comparing against ints. Remove
3856 bfd_reloc_dangerous case.
3857 (elf32_hppa_build_one_stub): Rewrite.
3858 (elf32_hppa_size_one_stub): New function.
3859 (elf32_hppa_build_stubs): Rewrite.
3860 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3861 Rewrite stub-handling specific code.
3863 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3865 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3867 * hppa_stubs.h: Delete.
3868 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3869 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3870 * Makefile.in: Regenerate.
3872 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3875 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3877 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3878 and section name for bfd_reloc_notsupported error message.
3879 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3880 bfd_reloc_notsupported.
3881 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3883 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3884 undefined weak symbols for all relocs.
3885 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3886 offsets are relative to one past the delay slot.
3887 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3888 branch destination. Put addend into stub name too.
3889 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3890 adjust by 8 when deciding whether a linker stub is needed. Put
3891 addend into stub name as for above.
3893 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3894 various args and vars.
3895 (elf32_hppa_bfd_final_link_relocate): Here too.
3896 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3897 inner block var to avoid shadowing.
3899 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3901 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3902 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3903 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3905 * libhppa.h: Change practically all unsigned ints to plain ints.
3906 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3909 From Ryan Bradetich <rbradetich@uswest.net>
3910 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3911 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3913 From David Huggins-Daines <dhd@linuxcare.com>
3914 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3915 to the new OP_* ones.
3917 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3918 error exit. Bail out earlier on plabel relocs that we aren't
3919 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3920 string, and then don't free our copy.
3921 (elf32_hppa_build_one_stub): Make insn unsigned int.
3923 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3924 available with BL, not BE and BLE.
3926 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3927 code for elf arg relocs.
3928 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3929 argument with elf_link_hash_entry h. Handle undefined weak
3930 symbols. Move $global$ lookup from here...
3931 (elf32_hppa_relocate_section): ...to here. Return correct error
3932 message for non-handled relocs.
3933 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3934 wrong test was -0x3ffff to +0x40000.
3936 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3937 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3938 Handle them as such.
3939 (elf_hppa_relocate_insn): Fix a typo.
3941 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3942 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3943 assemble_17, assemble_21): Delete.
3944 Supply defines for all 64 possible opcodes.
3945 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3946 formats. Handle COMICLR.
3947 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3950 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3951 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3952 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3954 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3955 the local syms - did this code get deleted accidentally? Ignore
3956 undefined and undefweak syms.
3958 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3959 block. Use it instead of elf64_hppa_hash_table (info).
3960 (elf_hppa_final_link_relocate): Use hppa_info instead of
3961 elf64_hppa_hash_table (info).
3963 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3964 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3965 (hppa_rebuild_insn): Mask immediate bits here instead.
3966 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3968 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3970 * section.c (struct sec): Add id field. Tidy comment formatting.
3971 (bfd_make_section_anyway): Set id.
3972 (STD_SECTION): Init id too.
3973 Change CONST to const throughout.
3974 * archures.c (bfd_arch_info): Tidy comment.
3975 (bfd_arch_list): Change a CONST to const.
3976 * libbfd-in.h: Tidy comments and replace CONST with const.
3977 * elf-bfd.h: Likewise.
3978 * libbfd.h: Regenerate.
3979 * bfd-in2.h: Regenerate.
3980 * libcoff.h: Regenerate.
3982 2000-07-07 DJ Delorie <dj@redhat.com>
3984 * archive.c (_bfd_write_archive_contents): Add an informative
3987 2000-07-06 Kazu Hirata <kazu@hxi.com>
3989 * srec.c: Fix formatting.
3991 2000-06-05 DJ Delorie <dj@redhat.com>
3995 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3997 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3998 value of PC-relative offsets.
4000 2000-07-03 Jim Wilson <wilson@cygnus.com>
4002 * elf64-alpha.c (alpha_elf_size_info): New.
4003 (elf_backend_size_info): Define to alpha_elf_size_info.
4004 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4006 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4008 * elf32-mips.c: Include elf32-target.h again for the traditional
4011 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4013 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4014 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4015 (avr_info_to_howto_rela): Likewise.
4016 (elf32_avr_gc_mark_hook): Likewise.
4017 (elf32_avr_gc_sweep_hook): Likewise.
4018 (elf32_avr_relocate_section): Likewise.
4020 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4022 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4023 an external symbol for a non-shared, non-relocatable link.
4025 2000-07-03 Nick Clifton <nickc@redhat.com>
4027 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4028 is an external symbol.
4029 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4032 2000-07-03 Kazu Hirata <kazu@hxi.com>
4034 * reloc16.c: Fix formatting.
4036 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4038 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4039 to add a new target for traditional mips i.e
4040 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4041 * configure.in: Likewise.
4042 * configure: Rebuild.
4043 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4045 (bfd_elf32_tradlittlemips_vec): Likewise.
4046 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4047 to see that elfNN_bed does not get redefined even if the target file
4048 is included twice for a chip. See elf32-mips.c.
4050 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4052 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4053 (CLEANFILES): Add DEPA.
4054 * Makefile.in: Regenerate.
4056 2000-06-30 DJ Delorie <dj@cygnus.com>
4058 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4059 can't assume the PE header is at 0x80.
4061 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4063 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4065 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4067 * go32stub.h: Update stub.
4069 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4071 * archures.c (bfd_mach_avr5): Define.
4072 * bfd-in2.h (bfd_mach_avr5): Define.
4073 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4074 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4075 (compatible): Update comment. Add missing test.
4076 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4077 for avr2 and avr4. Simplify 8K wrap code.
4078 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4079 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4081 2000-06-26 Kazu Hirata <kazu@hxi.com>
4083 * coff-h8300.c: Fix formatting.
4084 * cpu-h8300.c: Likewise.
4086 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4088 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4089 for local symbols whose names are unknown.
4091 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4093 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4095 * Makefile.in: Regenerate.
4096 * doc/Makefile.in: Regenerate.
4098 2000-06-20 H.J. Lu <hjl@gnu.org>
4100 * Makefile.am: Rebuild dependency.
4101 * Makefile.in: Rebuild.
4103 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4105 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4106 (elf_backend_copy_indirect_symbol): Map to the new function.
4108 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4110 * archive.c (normalize): Correct pointer comparison when checking
4112 (bfd_bsd_truncate_arname): Likewise.
4113 (bfd_gnu_truncate_arname): Likewise.
4115 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4117 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4118 sections elf_{text,data}_{section,symbol}.
4119 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4120 (_bfd_mips_elf_hide_symbol): New function.
4121 (elf_backend_hide_symbol): Map to the new function.
4122 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4123 definitions of mips_elf_{text,data}_{section,symbol}.
4124 (mips_elf_local_relocation_p): Try to find the direct symbol
4125 based on new check_forced argument.
4126 (mips_elf_calculate_relocation): Use new version of
4127 mips_elf_local_relocation_p.
4128 (mips_elf_relocate_section): Likewise.
4129 (_bfd_mips_elf_relocate_section): Likewise.
4130 (mips_elf_sort_hash_table): Only assert that have enough GOT
4132 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4133 entry if the relocation based on the new external argument.
4134 (mips_elf_create_dynamic_relocation): Assert that we have a
4135 section contents allocated where we can swap out the dynamic
4137 (mips_elf_calculate_relocation): Find the real hash-table entry
4138 correctly by using h->root.root.type. Only create a dynamic
4139 relocation entry if the symbol is defined in a shared library.
4140 Create an external GOT entry for the GOT16 relocation if the
4141 symbol was forced local.
4142 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4143 dynamic index if the symbol was forced local.
4145 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4147 * elf32-mips.c: Fix typos in comments.
4149 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4151 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4154 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4156 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4157 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4158 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4159 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4160 (bfd_elf32_m68hc11_vec): Likewise.
4161 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4162 Supports 68hc11 & 68hc12 at the same time.
4163 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4165 (bfd_elf32_m68hc11_vec): Likewise.
4166 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4167 * archures.c (bfd_m68hc12_arch): Define and register in global list
4168 (bfd_m68hc11_arch): Likewise.
4169 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4170 BFD_RELOC_M68HC11_3B): Define.
4171 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4172 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4174 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4176 * elf_bfd.h (struct elf_backend_data): Add info argument to
4177 elf_backend_hide_symbol.
4178 (_bfd_elf_link_hash_hide_symbol): Likewise.
4179 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4180 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4181 * elflink.h (elf_link_add_object_symbols): Likewise.
4182 (elf_link_assign_sym_version): Likewise.
4184 2000-06-18 H.J. Lu <hjl@gnu.org>
4186 * coff-i386.c (coff_i386_reloc): Don't return in case of
4187 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4188 Compensate PE relocations when linking with non-PE object
4189 files to generate a non-PE executable.
4191 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4193 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4194 GOT entries if we're doing a static link or -Bsymbolic link.
4196 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4198 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4199 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4201 (elf_link_output_relocs): Likewise.
4202 (elf_reloc_link_order): Likewise.
4204 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4206 * archures.c (enum bfd_architecture): #define constants for
4207 PowerPc and RS6000 machine numbers.
4208 * bfd-in2.h: Regenerate.
4209 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4210 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4211 and RS6000 machine numbers using #defined constants from
4213 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4214 machine numbers using #defined constants from archures.c. Add
4215 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4216 64-bit words in 620 entry.
4217 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4219 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4221 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4223 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4224 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4225 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4227 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4229 * bfd-in.h (bfd_family_coff): Define.
4230 * bfd-in2.h: Regenerate.
4231 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4232 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4233 instead of bfd_target_coff_flavour.
4234 * cofflink.c (_bfd_coff_final_link): Likewise.
4235 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4236 exclude XCOFF files.
4237 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4239 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4240 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4241 * xcofflink.c (XCOFF_XVECP): Delete.
4242 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4243 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4244 bfd_xcoff_record_link_assignment,
4245 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4246 check for bfd_target_xcoff_flavour.
4248 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4250 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4252 (read_hdr): New function.
4253 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4254 of trying to extract individual registers. Set abfd->arch_info
4255 to match the architecture that created the core file.
4256 (rs6000coff_get_section_contents): Delete.
4257 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4259 2000-06-14 H.J. Lu <hjl@gnu.org>
4261 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4264 2000-06-13 H.J. Lu <hjl@gnu.org>
4266 * configure: Regenerate.
4268 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4270 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4273 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4275 * configure.in (VERSION): Update to show this is the CVS mainline.
4277 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4279 * elf32-d10v.c: Include elf/d10v.h
4280 (enum reloc_type): Delete.
4281 * elf32-d30v.c: Include elf/d30v.h
4282 (enum reloc_type): Delete.
4284 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4285 * Makefile.in: Regenerate.
4287 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4288 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4289 move HOWTOs into elf_howto_table.
4290 (R_386_standard, R_386_ext_offset): Define.
4291 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4292 (elf_i386_reloc_type_lookup): Modify calculation of index into
4293 elf_howto_table since we've removed the padding.
4294 (elf_i386_info_to_howto_rel): Likewise.
4295 (elf_i386_relocate_section): Likewise.
4297 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4299 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4301 2000-06-05 H.J. Lu <hjl@gnu.org>
4303 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4304 an error when seeing an undefined symbol with hidden/internal
4305 attribute. It is handled in *_relocate_section ().
4307 2000-06-05 H.J. Lu <hjl@gnu.org>
4309 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4310 indirect symbol for the ELF_LINK_NON_ELF bit.
4311 (elf_link_output_extsym): Don't output the indirect symbol even
4312 if the ELF_LINK_NON_ELF bit is set.
4314 2000-06-01 J.T. Conklin <jtc@redback.com>
4316 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4317 (i[3456]86-*-netbsdaout*): New target.
4318 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4319 (i[3456]86-*-openbsd*): Likewise.
4321 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4323 * trad-core.c: From hpux-core.c, include <dirent.h> or
4324 <sys/ndir.h> when possible.
4326 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4328 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4329 definitions. We must not assume they are sorted in the file
4330 according to their index numbers.
4332 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4334 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4335 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4336 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4338 2000-05-30 Nick Clifton <nickc@cygnus.com>
4340 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4341 80960CA, 80960MC as valid machine names.
4343 2000-05-30 H.J. Lu <hjl@gnu.org>
4345 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4346 visibility bits if the symbol is undefined. Correctly handle
4347 weak undefined symbols with hidden and internal attributes.
4349 * elflink.h (elf_link_add_object_symbols): Always turn the
4350 symbol into local if it has the hidden or internal attribute.
4352 2000-05-29 Philip Blundell <philb@gnu.org>
4354 * ppcboot.c: Add packed attribute if compiling with GCC.
4356 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4358 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4360 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4362 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4363 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4364 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4367 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4369 * Makefile.am: Update dependencies with "make dep-am"
4370 * Makefile.in: Regenerate.
4372 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4373 bindtextdomain): Replace defines with those from intl/libgettext.h
4374 to quieten gcc warnings.
4376 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4378 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4380 * archive.c (normalize, bfd_bsd_truncate_arname,
4381 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4382 file names with backslashes.
4384 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4387 * sysdep.h: Include filenames.h.
4389 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4391 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4393 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4395 * elf64-sparc.c (sparc64_elf_relax_section): New.
4396 (sparc64_elf_relocate_section): Optimize tail call into branch always
4398 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4399 (elf32_sparc_relax_section): New.
4401 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4403 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4404 Remove unusued variables.
4405 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4406 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4407 previous fix, so that shared libs really don't influence targets
4408 extension mask and memory model.
4410 2000-05-23 H.J. Lu <hjl@gnu.org>
4412 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4413 h->root.other not h->other.
4414 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4416 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4418 2000-05-23 H.J. Lu <hjl@gnu.org>
4420 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4421 undefined symbol with the non-default visibility attributes.
4422 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4423 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4424 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4425 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4426 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4427 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4428 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4429 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4430 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4431 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4432 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4434 2000-05-22 Richard Henderson <rth@cygnus.com>
4436 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4437 PCREL22, PCREL64I. Zero size of special relocs.
4438 (elf64_ia64_reloc_type_lookup): Likewise.
4439 (USE_BRL, oor_brl, oor_ip): New.
4440 (elf64_ia64_relax_section): New.
4441 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4442 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4443 (elf64_ia64_relocate_section): Likewise.
4444 (bfd_elf64_bfd_relax_section): New.
4445 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4446 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4447 * bfd-in2.h, libbfd.h: Regenerate.
4449 2000-05-22 Nick Clifton <nickc@cygnus.com>
4451 * configure.in : Add peigen.lo to MIPS PE targets.
4452 * configure: Regenerate.
4454 2000-05-22 Momchil Velikov <velco@fadata.bg>
4456 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4457 only if it is known for both input and output bfds. Separate
4458 error message strings as in some languages, it may be necessary
4459 to change more than one place in the string to change between
4462 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4463 endianess checks, call _bfd_generic_verify_endian_match() instead.
4465 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4467 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4469 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4470 endianess before checking bfd flavours.
4472 2000-05-22 H.J. Lu <hjl@gnu.org>
4474 * elflink.h (elf_link_output_extsym): Clear the visibility
4475 field for symbols not defined locally.
4477 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4479 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4480 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4481 (hppa_rebuild_insn): Mask immediate bits here instead.
4482 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4484 2000-05-18 Momchil Velikov <velco@fadata.bg>
4486 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4487 relocs for an executable, ensure that they are virtual addresses.
4489 2000-05-18 Jeffrey A Law (law@cygnus.com)
4491 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4493 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4494 Rick Gorton <gorton@scrugs.lkg.dec.com>
4496 * elflink.h: Add emitrelocations support: when enabled, relocation
4497 information and relocation sections are put into final output
4498 executables. If the emitrelocations flag is set, do the following:
4499 (elf_bfd_final_link): Emit relocation sections.
4500 (elf_link_input_bfd): Compute relocation section contents.
4501 (elf_gc_sections): Don't clean relocation sections.
4503 2000-05-16 Catherine Moore <clm@cygnus.com>
4505 * som.c (som_decode_symclass): Recognize weak symbols.
4507 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4509 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4510 read idata section only from dataoff.
4511 (pe_print_edata): Correctly check for valid eat_member.
4513 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4515 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4517 2000-05-14 Philip Blundell <philb@gnu.org>
4519 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4521 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4523 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4525 * peigen.c (pe_print_idata): Look for .idata section and print
4526 info even if data directory has zero entries. Read idata section
4527 starting from dataoff, and adjust all data offsets to suit. Cast
4528 all bfd_vma vars to unsigned long before passing to fprintf.
4529 * peigen.c (pe_print_edata): Similarly, look for .edata section
4530 and print info even if data directory has zero entries. Cast
4531 all bfd_vma vars to unsigned long before passing to fprintf.
4533 From Szabolcs Szakacsits <szaka@F-Secure.com>
4534 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4535 directory size which may be bogus.
4536 * peigen.c (pe_print_edata): Similarly.
4538 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4540 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4542 (copy_private_bfd_data): Allow for space possibly taken up by elf
4543 headers when calculating segment physical address from lma.
4545 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4547 * versados.c (versados_scan): Init stringlen and pass_2_done.
4549 * trad-core.c (trad_unix_core_file_p): Return
4550 bfd_error_wrong_format rather than bfd_error_file_truncated.
4552 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4553 add_data_entry. DataDirectory virtual address is relative.
4554 (pe_print_idata): Account for relative DataDirectory virtual
4555 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4556 (pe_print_edata): Similarly.
4558 From Szabolcs Szakacsits <szaka@F-Secure.com>
4559 * peigen.c (dir_names): Add Delay Import Directory.
4560 (pe_print_idata): Always search for bfd section containing
4561 idata address rather than looking up section name. Print this
4562 section name rather than .idata.
4563 (pe_print_edata): Similarly. Also print some fields as %08lx.
4564 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4567 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4569 * xcoff.h: Rename to xcoff-target.h
4570 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4571 * coff-rs6000.c: Ditto.
4572 * coff64-rs6000.c: Ditto.
4573 * coff-pmac.c: Ditto.
4574 * Makefile.in: Regenerate.
4576 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4578 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4579 Change U802TOC64MAGIC to U803XTOCMAGIC.
4581 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4583 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4584 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4585 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4587 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4589 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4591 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
4593 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4594 hidden and internal symbols.
4595 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4597 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4598 assign a PLT or GOT entry to symbols with hidden and
4599 internal visibility.
4601 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4603 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4605 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4607 2000-05-02 H.J. Lu <hjl@gnu.org>
4609 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4612 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4614 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4615 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4617 * Makefile.in: Regenerate.
4619 2000-05-01 Jim Wilson <wilson@cygnus.com>
4621 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4622 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4623 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4624 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4625 * Makefile.in: Rebuild.
4627 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4629 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4630 doesn't work very well.
4632 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4633 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4634 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4635 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4636 (elf_hppa_info_to_howto): Likewise.
4637 (elf_hppa_info_to_howto_rel): Likewise.
4638 (elf_hppa_reloc_type_lookup): Likewise.
4639 (elf_hppa_is_local_label_name): Likewise.
4640 (elf_hppa_fake_sections): Likewise.
4641 (elf_hppa_final_write_processing): Likewise.
4642 (elf_hppa_howto_table): Fully initialise all entries.
4643 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4644 (elf_hppa_info_to_howto): Likewise.
4645 (elf_hppa_info_to_howto_rel): Likewise.
4646 (elf_hppa_reloc_type_lookup): Likewise.
4647 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4648 elf_hppa_unmark_useless_dynamic_symbols,
4649 elf_hppa_remark_useless_dynamic_symbols,
4650 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4651 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4652 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4653 elf32-hppa.c mess is cleaned up.
4654 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4655 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4656 r_field then call hppa_field_adjust inline func with variable
4657 r_field arg, instead call hppa_field_adjust with fixed arg.
4658 In case R_PARISC_PCREL22F, don't set r_field.
4659 (elf_hppa_relocate_insn): Change args and return type to unsigned
4660 int. Call re_assemble_* funcs to do the work.
4662 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4665 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4667 (sign_extend): Mask first before sign extending.
4668 (low_sign_extend): Rewrite without condition expression.
4669 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4670 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4671 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4672 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4673 result as function return value rather than through pointer arg.
4674 Accept unsigned int args, and return unsigned int.
4675 (re_assemble_3): New. Combines function of dis_assemble_3 with
4676 re-assembly of opcode and immediate.
4677 (re_assemble_12): Likewise.
4678 (re_assemble_16): Likewise.
4679 (re_assemble_17): Likewise.
4680 (re_assemble_21): Likewise.
4681 (re_assemble_22): Likewise.
4682 (hppa_field_adjust): Rewrite and document, paying attention to
4683 size of types and signed/unsigned issues.
4684 (get_opcode): Shift before masking.
4685 (FDLW): Rename to FLDW.
4686 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4687 (hppa_rebuild_insn): Change args and return value to unsigned
4688 int. Make use of re_assemble_*. Correct case 11.
4690 * dep-in.sed: Handle ../opcodes/.
4691 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4692 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4693 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4694 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4695 elfarm-nabi.lo dependencies outside of auto-dependency area.
4696 Regenerate dependencies.
4697 * Makefile.in: Regenerate.
4699 * configure.in (TRAD_HEADER): Test non-null before
4701 * configure: Regenerate.
4703 * reloc.c: Fix mis-spelling in comment.
4705 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4707 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4708 * vms.c (vms_openr_next_archived_file): Return NULL.
4710 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4712 * coffcode.h Copy changes mistakenly done to libcoff.h in
4715 2000-04-29 Andreas Jaeger <aj@suse.de>
4717 * libbfd-in.h: Correctly check GCC version.
4718 * bfd-in.h: Likewise.
4719 * libhppa.h: Likewise.
4720 * libbfd.h: Regenerate.
4721 * bfd-in2.h: Regenerate.
4723 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4725 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4726 coffdu-rs6000.{lo,c}.
4727 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4729 * Makefile.in: Regenerate.
4730 * xcoff.h: New file.
4731 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4732 * coff-rs6000.c: Move all declarations and defines that are
4733 common to the xcoff backends into xcoff.h
4734 * coff64-rs6000.c: Ditto,
4736 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4738 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4739 _bfd_coff_force_symnames in strings and
4740 _bfd_coff_debug_string_prefix_length to their default values.
4741 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4743 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4745 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4746 _bfd_coff_force_symnames in strings and
4747 _bfd_coff_debug_string_prefix_length to their default values.
4749 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4751 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4752 Check local_got_refcounts before dereferencing.
4754 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4755 before deciding we don't need R_PPC_PLT32 relocation.
4756 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4759 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4761 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4763 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4764 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4765 (elf_i386_relocate_section): Allow for .plt to go missing.
4766 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4767 can use a relative reloc for got as elf_i386_relocate_section.
4768 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4770 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4772 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4774 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4776 * Makefile.am (coff64-rs6000.lo): New rule.
4777 * Makefile.in: Regenerate.
4778 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4779 xcoff_is_local_label_name, xcoff_rtype2howto,
4780 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4781 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4782 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4783 (NO_COFF_SYMBOLS): Define.
4784 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4785 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4787 (MINUS_ONE): New macro.
4788 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4790 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4791 coff_SWAP_aux_out): Map to the new functions.
4792 * coff64-rs6000.c: New file.
4793 * libcoff.h (bfd_coff_backend_data): Add new fields
4794 _bfd_coff_force_symnames_in_strings and
4795 _bfd_coff_debug_string_prefix_length.
4796 (bfd_coff_force_symnames_in_strings,
4797 bfd_coff_debug_string_prefix_length): New macros for above fields.
4798 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4799 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4800 of using coff_swap_sym_in directly.
4801 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4802 (coff_set_flags) Set magic for XCOFF64.
4803 (coff_compute_section_file_positions): Add symbol name length to
4804 string section length if bfd_coff_debug_string_prefix_length is
4806 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4807 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4808 using coff_swap_lineno_in directly.
4809 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4810 and _bfd_coff_debug_string_prefix_length fields.
4811 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4812 symbol names into strings table when
4813 bfd_coff_force_symnames_in_strings is true.
4814 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4815 SET_RELOC_VADDR): New macros.
4816 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4817 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4819 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4820 changes within RS6000COFF_C specific code.
4821 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4822 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4823 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4824 Extend existing hack on target name.
4825 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4827 * coff-tic54x.c (ticof): Keep up to date with new fields
4828 in bfd_coff_backend_data.
4829 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4830 targ_selvecs to include rs6000coff64_vec for rs6000.
4831 * configure.in: Add rs6000coff64_vec case.
4832 * cpu-powerpc.c: New bfd_arch_info_type.
4834 2000-04-24 Jeffrey A Law (law@cygnus.com)
4836 * config.bfd: Only disable elf32-hppa vectors, not all of the
4837 BSD and OSF configuration support. Provide (disabled) clauses
4839 * configure.in: Add clause for PA64 support.
4840 * configure: Rebuilt.
4842 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4843 (bfd_elf64_hppa_vec): Declare.
4845 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4846 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4847 (elf64-hppa.lo): Add dependencies.
4848 * Makefile.in: Rebuilt.
4850 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4852 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4854 * libhppa.h (dis_assemble_16): New function.
4855 (pa_arch): Added pa20w element.
4857 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4859 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4860 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4861 bfd_elf64_slurp_reloc_table.
4863 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4864 definitions to get external names.
4865 (elf_write_relocs): Renamed from write_relocs and make global.
4866 (elf_slurp_reloc_table): Make global.
4867 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4869 * archive.c (hpux_uid_gid_encode): New function.
4870 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4871 defined and the ID is greater than 99999.
4872 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4873 special uid/gid fields into 32 bit values.
4875 2000-04-21 Matthew Green <mrg@cygnus.com>
4877 * config.bfd: Add NetBSD/sparc64 support.
4879 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4880 David Mosberger <davidm@hpl.hp.com>
4881 Timothy Wall <twall@cygnus.com>
4882 Jim Wilson <wilson@cygnus.com>
4884 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4885 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4886 (BFD64_BACKENDS): Add elf64-ia64.lo.
4887 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4888 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4889 * Makefile.in: Rebuild.
4890 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4891 (bfd_ia64_arch): Declare.
4892 (bfd_archures_list): Add bfd_ia64_arch.
4893 * bfd-in2.h: Rebuild.
4894 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4895 * configure: Rebuild.
4896 * configure.host: (ia64-*-linux*): New host.
4897 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4898 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4899 * elf.c (prep_headers): Add bfd_arch_ia64.
4900 * libbfd.h: Rebuild.
4901 * reloc.c: Add IA-64 relocations.
4902 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4904 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4905 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4907 2000-04-21 Richard Henderson <rth@cygnus.com>
4909 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4910 contents when performing a partial link.
4911 (bfd_elf_d30v_reloc_21): Likewise.
4913 2000-04-20 H.J. Lu <hjl@gnu.org>
4915 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4916 patch to symbols defined by a shared object.
4917 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4919 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4922 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4923 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4925 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4927 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4928 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4929 (coff-ia64.lo): Add dependency.
4930 * Makefile.in: Regenerate.
4931 * coff-ia64.c: New file.
4932 * efi-app-ia32.c: Ditto.
4933 * efi-app-ia64.c: Ditto.
4934 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4935 (coff_set_flags): Ditto.
4936 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4937 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4938 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4939 * configure: Regenerate.
4940 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4941 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4942 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4943 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4944 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4945 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4946 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4947 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4948 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4949 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4950 (GET_PDATA_ENTRY): Ditto.
4951 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4952 data_start. Use above macros to read fields that are 64 bit wide for
4953 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4954 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4955 FileAlignment and SectionAlignment to minimum alignment if they
4957 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4958 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4959 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4960 Use above macros to write fields that are 64 bit wide for
4962 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4963 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4964 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4965 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4966 begin address, end address, and unwind info address only. Use
4967 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4969 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4970 HIGH3ADJ relocation names.
4971 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4972 * targets.c: Declare bfd_efi_app_ia32_vec and
4973 bfd_efi_app_ia64_vec.
4974 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4975 bfd_efi_app_ia64_vec.
4977 2000-04-17 Timothy Wall <twall@cygnus.com>
4979 * bfd-in2.h: Add prototypes for tic54x load page access.
4980 * bfd-in.h: Regenerate.
4981 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4982 in customized _set_arch_mach function.
4983 * coffcode.h (coff_set_alignment_hook): Set section load page if
4984 the appropriate macro is defined.
4985 (write_object_contents): Read section load page.
4987 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4989 * elf32-hppa.h: Update copyright date.
4991 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4992 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4994 * elf32-d30v.c (MAX32): Don't use LL suffix.
4995 (MIN32): Define in terms of MAX32.
4996 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4998 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5001 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5003 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5005 * dep-in.sed: Match space before file name, not after.
5006 * Makefile.am: Regenerate dependencies.
5007 * Makefile.in: Regenerate.
5009 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5010 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5011 extend without an if statement.
5013 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5015 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5017 * elf32-mips.c (gprel16_with_gp): Likewise.
5018 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5019 here using -0x40000, not (int)0xfffc0000.
5020 (elf32_hppa_size_of_stub): Likewise.
5022 2000-04-11 Timothy Wall <twall@cygnus.com>
5024 * coff-tic54x.c: Now builds with all targets.
5025 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5026 * Makefile.in: Regenerate.
5027 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5028 unitialized variable.
5030 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5032 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5033 --enable-build-warnings option.
5034 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5035 * Makefile.in, configure: Re-generate.
5037 2000-04-07 Nick Clifton <nickc@cygnus.com>
5039 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5040 BFD_RELOC_THUMB_PCREL_BLX.
5042 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5043 R_ARM_XPC25 and R_ARM_THM_PC22.
5045 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5046 R_ARM_XPC25 and R_ARM_THM_XPC22.
5047 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5048 R_ARM_[XPC25|THM_XPC22].
5050 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5051 elf/arm-oabi.h to elf/arm.h
5053 * Makefile.am: Fix dependency for elfarm-oabi.c
5054 * Makefile.in: Regenerate.
5056 * bfd-in2.h: Regenerate.
5057 * libbfd.h: Regenerate.
5059 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5061 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5062 and restore it on failure. Release newly allocated tdata on
5065 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5067 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5068 (decode_line_info): Set it. Report error if unit->line_offset is
5069 equal to or larger than it.
5071 2000-04-07 Timothy Wall <twall@cygnus.com>
5073 * targets.c: Added vecs for tic54x.
5074 * reloc.c: Added relocs for tic54x.
5075 * libbfd.h: Regenerated.
5076 * configure: Add TI COFF vecs for tic54x.
5077 * configure.in: Ditto.
5078 * config.bfd (targ_cpu): Recognize new tic54x target.
5079 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5080 * bfd-in2.h: Add tic54x target and relocations.
5081 * Makefile.am, Makefile.in: Add tic54x target.
5082 * archures.c (bfd_archures_list): Add tic54x target.
5083 * coff-tic54x.c: New.
5084 * cpu-tic54x.c: New.
5086 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5088 * elfcore.h (elf_core_file_p): call backend_object_p which
5089 thereby gets an opportunity to update the arch/machine type.
5091 2000-04-06 Timothy Wall <twall@cygnus.com>
5093 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5094 class. Handle SEC_CLINK and SEC_BLOCK flags.
5095 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5096 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5098 2000-04-06 Nick Clifton <nickc@cygnus.com>
5100 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5101 EF_INTERWORK if this is an unknown EABI.
5102 (elf32_arm_merge_private_bfd_data): Check EABI version
5103 numbers. Only check EF_xxx flags if the EABI version number
5105 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5106 if the EABI version number is unknown.
5107 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5108 if the EABI version number is unknown.
5110 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5112 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5113 BFD_RELOC_SH_LOOP_END.
5114 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5115 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5116 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5117 (sh_elf_reloc_loop): New function.
5118 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5120 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5121 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5122 * bfd-in2.h, libbfd.h: Regenerate.
5124 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5126 * po/bfd.pot: Regenerate.
5128 * Makefile.am: Remove extraneous mkdep comment.
5129 (MKDEP): Use gcc -MM rather than mkdep.
5130 (DEP): Quote when passing vars to sub-make. Add warning
5132 (DEP1): Rewrite for "gcc -MM".
5133 (CLEANFILES): Add DEP2.
5134 Update dependencies.
5135 * Makefile.in: Regenerate.
5137 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5139 * configure.in: Added corefile support for AIX 4.3. In particular,
5140 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5141 compiling rs6000-core.c.
5142 * configure: Regenerated.
5144 2000-04-03 H.J. Lu <hjl@gnu.org>
5146 * cache.c (bfd_open_file): Unlink the output file only if
5147 it has non-zero size.
5149 2000-04-01 Ken Block USG <block@zk3.dec.com>
5151 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5152 relative relocations for non-loaded sections in shared objects.
5153 (elf64_alpha_check_relocs): Similarly.
5155 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5157 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5158 BFD_RELOC_16 to switch for extended relocs.
5159 (MY_swap_ext_reloc_in): New.
5160 (MY_swap_ext_reloc_out): New.
5161 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5162 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5163 (NAME(aout,squirt_out_relocs)): Similarly use
5164 MY_swap_ext_reloc_out.
5165 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5167 2000-04-03 Kazu Hirata <kazu@hxi.com>
5169 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5170 the R_PCRWORD_B case.
5172 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5174 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5178 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5180 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5181 HOWTO references to bfd_elf_generic_reloc, that have
5182 partial_inplace == true, now use the new function. The function
5183 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5184 extends its fixes to the R_M32R_{16,24,32} relocs.
5185 The new logic in m32r_elf_lo16_reloc() has been removed, and
5186 it instead calls the new routine to obtain that functionality.
5188 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5190 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5191 elf32_avr_check_relocs, avr_final_link_relocate,
5192 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5193 elf32_avr_object_p): Add prototypes.
5194 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5195 (bfd_elf_avr_final_write_processing): Make static.
5197 2000-03-27 Denis Chertykov <denisc@overta.ru>
5199 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5200 * archures.c (bfd_architecture): Add AVR architecture.
5201 (bfd_archures_list): Add reference to AVR architecture info.
5202 * elf.c (prep_headers): Handle bfd_arch_avr.
5203 * reloc.c: Add various AVR relocation enums.
5204 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5206 * Makefile.am: Add support for AVR elf.
5207 * configure.in: Likewise.
5208 * config.bfd: Likewise.
5209 * Makefile.in: Regenerate.
5210 * configure: This too.
5211 * bfd-in2.h: And this.
5212 * libbfd.h: And this.
5214 2000-03-24 H.J. Lu <hjl@gnu.org>
5216 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5217 (elf64_alpha_find_reloc_at_ofs): Likewise.
5219 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5221 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5222 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5223 allowable range used to be -2**(n-1) to 2**n-1.
5224 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5225 "boolean overflow" with "bfd_reloc_status_type flag".
5227 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5229 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5231 2000-03-14 Kazu Hirata <kazu@hxi.com>
5233 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5234 of shrinks properly, including the last reloc.
5236 2000-03-13 Kazu Hirata <kazu@hxi.com>
5238 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5241 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5243 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5244 a format mismatch rather than an "error" from bfd_read such as
5245 bfd_error_file_truncated.
5247 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5249 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5250 sign-extension and big-endian compensation for
5251 R_MIPS_64 even in ld -r.
5253 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5255 * elf32-mips.c (mips_elf_next_relocation): Rename from
5256 mips_elf_next_lo16_relocation, and generalize to look
5257 for any relocation type.
5258 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5259 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5260 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5261 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5262 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5263 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5264 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5265 (mips_rtype_to_howto): Likewise.
5266 (mips_elf_calculate_relocation): Handle new relocs.
5267 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5268 are paired. The addend for R_MIPS_GNU_REL16_S2
5269 is shifted right two bits.
5271 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5273 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5274 comment, and ensure it doesn't happen again.
5275 (bfd_install_relocation): Same here.
5276 (_bfd_relocate_contents): Don't bother assigning unused signmask
5277 shift result. Fix typos in comments.
5278 Remove trailing whitespace throughout file.
5280 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5282 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5283 * bfd-in2.h: Rebuild.
5285 2000-03-06 Nick Clifton <nickc@cygnus.com>
5287 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5289 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5290 (SIZEOF_ILF_STRINGS): Redefine.
5291 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5292 relative reloc, as opposed to a section relative reloc.
5293 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5295 Add length of symbol's prefix to string pointer.
5296 Store a pointer to the symbol in the symbol pointer table.
5297 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5298 Initialise the symbol pointer table.
5299 Store the hint in the Hint/Name table.
5300 Make the jump reloc be symbol realtive, not section relative.
5301 Create an import symbol for imported code.
5303 2000-03-06 Catherine Moore <clm@cygnus.com>
5305 * elf.c (swap_out_syms): Check for null type_ptr.
5307 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5309 * aout-target.h (MY(write_object_contents)): Remove unused
5310 and unusable "#if CHOOSE_RELOC_SIZE".
5311 * pc532-mach.c (MY(write_object_contents)): Ditto.
5312 * netbsd.h (MY(write_object_contents)): Ditto.
5313 * hp300hpux.c (MY(write_object_contents)): Ditto.
5314 * freebsd.h (MY(write_object_contents)): Ditto.
5315 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5317 2000-02-29 H.J. Lu <hjl@gnu.org>
5319 * peicode.h (jtab): Make it static.
5321 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5322 defined and COFF_IMAGE_WITH_PE is not defined.
5323 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5324 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5326 2000-03-01 Nick Clifton <nickc@cygnus.com>
5328 * coff-arm.c (bfd_arm_process_before_allocation): Make
5329 'symndx' signed to prevent compile time warning.
5331 * coff-mcore.c: Remove unused prototype for pe_object_p.
5333 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5334 functions that are not used when COFF_IMAGE_WITH_PE is
5336 (struct sh_opcode): Change type of 'flags' field to unsigned
5337 long so that it can hold the USESAS flag.
5339 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5341 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5344 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5346 Remove unusued variables and code.
5347 (elf_backend_add_symbol_hook): Fix prototype.
5349 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5352 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5355 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5357 Remove unusued variables and code.
5358 (elf_backend_add_symbol_hook): Fix prototype.
5360 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5362 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5363 to unused function parameter.
5365 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5367 Use EMPTY_HOWTO to initialise empty howto slots.
5368 Remove unused variables.
5370 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5372 2000-03-01 H.J. Lu <hjl@gnu.org>
5374 * aoutx.h (aout_link_input_section_std): Pass "true" to
5375 the undefined_symbol callback.
5376 (aout_link_input_section_ext): Likewise.
5377 * bout.c (get_value): Likewise.
5378 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5379 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5381 (alpha_relocate_section): Likewise.
5382 * coff-arm.c (coff_arm_relocate_section): Likewise.
5383 * coff-i960.c (coff_i960_relocate_section): Likewise.
5384 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5385 * coff-mips.c (mips_relocate_section): Likewise.
5386 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5387 * coff-sh.c (sh_relocate_section): Likewise.
5388 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5389 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5390 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5391 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5392 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5393 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5394 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5395 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5396 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5397 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5398 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5399 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5400 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5401 * elflink.h (elf_link_output_extsym): Likewise.
5402 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5403 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5404 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5406 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5407 undefined_symbol callback when building shared library with
5408 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5410 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5411 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5412 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5413 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5414 (elf32_mips_get_relocated_section_content): Likewise.
5415 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5416 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5417 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5418 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5420 2000-02-28 Nick Clifton <nickc@cygnus.com>
5422 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5423 * Makefile.in: Regenerate.
5425 * configure.in: Add support for mips and sh pe vectors.
5426 * configure: regenerate.
5428 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5431 * targets.c: Add mips and sh pe vectors.
5433 * libpei.h (coff_final_link_postscript): Only define if not
5436 * coffcode.h: Add support for WinCE magic numbers.
5438 * peigen.c (pe_print_reloc): Update comment and rearrange
5439 appending of newline character.
5441 * peicode.h: Add support for Image Library Format.
5442 (pe_ILF_vars): Structure containing data used by ILF code.
5443 (pe_ILF_make_a_section): New function. Create a section based
5445 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5447 (pe_ILF_make_a_symbol): New function. Create a symbol based
5449 (pe_ILF_save_relocs): New function. Store the relocs created
5450 by pe_ILF_make_a_reloc in a section.
5451 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5453 (pe_ILF_object_p): New function. Return a bfd_target pointer
5455 (pe_bfd_object_p): If an ILF object is detected call
5456 pe_ILF_object_p on it.
5458 * coff-arm.c: Add support for WinCE relocs which are different
5459 from normal ARM COFF relocs.
5460 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5462 * coff-sh.c: Add support for sh-pe target.
5463 * pe-sh.c: New file. Support code for sh-pe target.
5464 * pei-sh.c: New file. Support code for sh-pe target.
5466 * pe-mips.c: New file. Support code for mips-pe target.
5467 * pei-mips.c: New file. Support code for mips-pe target.
5469 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5471 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5472 architecture if the object causing the bump is dynamic.
5473 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5474 and also don't it for memory ordering.
5475 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5477 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5479 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5480 calling bfd_get_section_size_before_reloc.
5481 (decode_line_info): Likewise.
5482 (_bfd_dwarf2_find_nearest_line): Likewise.
5484 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5486 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5487 name of the libtool directory.
5488 * Makefile.in: Rebuild.
5490 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5492 * som.c (SOM_HOWTO): Define.
5493 (som_hppa_howto_table): Use it.
5495 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5497 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5499 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5501 2000-02-24 Catherine Moore <clm@cygnus.com>
5503 * som.c (som_misc_symbol_info): Add field
5505 (som_bfd_derive_misc_symbol_info): Initialize
5507 (som_build_and_write_symbol_table): Keep track
5508 of secondary_def field.
5509 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5510 if secondary_def field is set.
5511 (som_bfd_ar_write_symbol_stuff): Initialize
5514 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5516 * dwarf2.c (read_address): Read 16-bits addresses.
5517 (parse_comp_unit): Accept addr_size == 2.
5519 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5521 * bfd-in.h: Update copyright date.
5523 2000-02-23 Linas Vepstas <linas@linas.org>
5525 * cpu-i370.c: New file.
5526 * elf32-i370.c: New file.
5527 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5528 (bfd_i370_arch): New.
5529 (bfd_archures_list): Add bfd_i370_arch.
5530 * elf.c (prep_headers): Add bfd_arch_i370.
5531 * Makefile.am: Add support for IBM 370 elf.
5532 * config.bfd: Likewise.
5533 * configure.in: Likewise.
5534 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5535 * reloc.c (bfd_reloc_code_type): Likewise.
5536 * targets.c: Likewise.
5538 * Makefile.in: Regenerate.
5539 * configure: Regenerate.
5540 * bfd-in2.h: Regenerate.
5542 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5544 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5545 invalid relocation types, and change them to R_386_NONE.
5547 2000-02-22 H.J. Lu <hjl@gnu.org>
5549 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5550 not defined, don't add a second ELF_VER_CHR.
5552 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5553 symbols converted to local symbols even when stripping all
5555 (elf_link_output_extsym): Process global symbols converted to
5556 local symbols even if they are being stripped.
5558 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5560 * archures.c (bfd_octets_per_byte): Return unsigned int.
5561 (bfd_arch_mach_octets_per_byte): Ditto.
5562 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5564 * section.c (bfd_get_section_size_before_reloc): Quell signed
5565 vs. unsigned comparison warning.
5566 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5567 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5568 change. What was I thinking?
5569 * bfd-in2.h: Regenerate.
5571 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5572 (elf_gc_sections): Same here.
5573 (elf_gc_common_finalize_got_offsets): And here.
5575 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5577 ELF HPPA doesn't work at present; remove it until it does.
5578 * config.bfd: Comment out setting targ_defvec to
5580 * Makefile.am: Rebuild dependencies.
5581 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5582 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5583 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5584 * Makefile.in: Rebuild.
5585 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5587 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5589 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5590 is no bfd_free(). Revert bfd_free part of previous change.
5592 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5594 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5596 (coff_compute_section_file_positions): Use bfd_free to pair
5598 (coff_write_object_contents): Likewise.
5600 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5601 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5603 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5605 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5606 (xcoff_ar_file_hdr_big): New structure.
5607 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5608 (xcoff_ar_hdr_big): New structure.
5609 (SIZEOF_AR_HDR_BIG): New macro.
5610 (xcoff_big_format_p): New macro.
5611 (xcoff_ardata_big): New macro.
5612 (arch_xhdr_big): New macro.
5613 (xcoff_slurp_armap): Handle large archives.
5614 (xcoff_archive_p): Detect large archives.
5615 (xcoff_read_ar_hdr): Handle large archives.
5616 (xcoff_openr_next_archived_file): Handle large archives.
5617 (xcoff_generic_stat_arch_elt): Handle large archives.
5618 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5619 (xcoff_write_armap_big): New function.
5620 (xcoff_write_armap): New function, dispatch to _old or _big.
5621 (xcoff_write_archive_contents_old): Rename from
5622 xcoff_write_archive_contents.
5623 (xcoff_write_archive_contents_big): New function.
5624 (xcoff_write_archive_contents): New function, dispatch to _old or
5627 2000-02-18 Richard Henderson <rth@cygnus.com>
5629 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5630 and hide_symbol members.
5631 (elf_link_hash_copy_indirect): Remove.
5632 (elf_link_hash_hide_symbol): Remove.
5633 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5634 and elf_backend_hide_symbol.
5635 (_bfd_elf_link_hash_copy_indirect): Declare.
5636 (_bfd_elf_link_hash_hide_symbol): Declare.
5637 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5638 (_bfd_elf_link_hash_hide_symbol): Likewise.
5639 (_bfd_elf_link_hash_table_init): Don't init killed members.
5640 * elflink.h (elf_link_add_object_symbols): Use the bed function
5641 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5642 (elf_link_assign_sym_version): Likewise.
5643 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5644 (elf_backend_hide_symbol): Likewise.
5645 (elfNN_bed): Update for new members.
5647 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5649 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5650 STACK_END_ADDR): Define for new core file format.
5651 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5652 for handling the vagaries of the various core file structures used
5653 by AIX over the years.
5654 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5655 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5656 core_dumpx structure.
5658 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5660 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5661 (bfd_mach_sh3_dsp): Likewise.
5662 (bfd_mach_sh4): Reinstate.
5663 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5664 * bfd-in2.h: Regenerate.
5665 * coff-sh.c (struct sh_opcode): flags is no longer short.
5666 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5667 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5668 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5669 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5670 (sh_opcodes): No longer const.
5671 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5672 (sh_insn_uses_reg): Check for USESAS and USESR8.
5673 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5674 (_bfd_sh_align_load_span): Return early for SH4.
5675 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5676 Take into account that field b of a parallel processing insn
5677 could be mistaken for a separate insn.
5678 * cpu-sh.c (arch_info_struct): New array elements for
5679 sh2, sh-dsp and sh3-dsp.
5680 Reinstate element for sh4.
5681 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5682 (SH4_NEXT): Reinstate.
5683 (SH3_NEXT, SH3E_NEXT): Adjust.
5684 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5685 * elf32-sh.c (sh_elf_set_private_flags): New function.
5686 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5687 (sh_elf_merge_private_data): New function.
5688 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5689 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5690 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5691 sh_elf_merge_private_data.
5693 2000-02-13 Richard Henderson <rth@cygnus.com>
5695 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5696 hide_symbol members.
5697 (elf_link_hash_copy_indirect): New.
5698 (elf_link_hash_hide_symbol): New.
5699 * elflink.h (elf_link_add_object_symbols): Break out copy from
5700 indirect new new symbol to elf.c.
5701 (elf_link_assign_sym_version): Break out privatization of
5702 non-exported symbol to elf.c.
5703 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5704 (_bfd_elf_link_hash_hide_symbol): New.
5705 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5707 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5709 * section.c (_bfd_strip_section_from_output): Add info parameter.
5710 If it passed as non-NULL, use it to check whether any input BFD
5711 has an input section which uses this output section. Change all
5713 * bfd-in2.h: Rebuild.
5715 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5716 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5718 * bfd-in2.h: Rebuild.
5720 2000-02-10 Timothy Wall <twall@cygnus.com>
5722 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5723 allow final modifications of swapped-in symbol.
5724 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5725 * coffcode.h (coff_write_relocs): Use macro
5726 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5727 symbol index should be set to -1.
5729 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5731 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5732 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5733 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5734 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5735 sh_insns_uses_or_sets_freg): New functions.
5736 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5737 * (sh_insns_conflict): Use new functions and new macros to
5738 detect conflicts when two instructions both set same integer registers,
5739 both set same fp register, and both set special register.
5741 2000-02-09 Timothy Wall <twall@cygnus.com>
5743 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5744 swapping in sections, so that the swapping routines have access to
5747 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5749 * coff-go32.c: Update comment. Update copyright.
5751 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5753 * syms.c (bfd_decode_symclass)
5754 Two new class characters were added - 'V' and 'v'. The
5755 meaning of 'W' is now restricted to just weak non-object
5756 symbols. This allows differentiation between, for example,
5757 weak functions vs weak objects. nm for example now dumps:
5759 'w' = weak unresolved
5760 'V' = weak global object
5761 'v' = weak unresolved object
5763 (bfd_is_undefined_symclass): New function. Return true if the
5764 given symbol class represents and undefined/unresolved symbol.
5766 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5769 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5771 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5772 STT_ARM_16BIT flag set, but it is not attached to a data object
5773 return STT_ARM_16BIT so that it will be treated as code by the
5776 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5778 * coff-i386.c (i3coff_object_p): Remove prototype.
5781 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5782 to name. Update copyright.
5784 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5785 assignment to avoid warning. Update copyright.
5787 2000-01-24 Robert Lipe (robertl@sco.com)
5789 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5790 instead of using GNU C extension.
5792 2000-01-21 Nick Clifton <nickc@cygnus.com>
5794 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5795 amount from a bfd_in_memory structure.
5796 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5799 2000-01-14 Nick Clifton <nickc@cygnus.com>
5801 * linker.c (default_indirect_link_order): oops - fix incorrectly
5802 applied patch from Tim Wall.
5804 2000-01-13 Timothy Wall (twall@tiac.net>
5806 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5807 = scnhsz, filhsz, relsz, aoutsz, etc)
5809 * coffswap.h: Ditto.
5811 2000-01-13 Nick Clifton <nickc@cygnus.com>
5813 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5814 interwork thumb to arm stub.
5816 2000-01-13 Timothy Wall (twall@tiac.net>
5818 * archures.c (bfd_octets_per_byte): New function: Return
5820 (bfd_arch_mach_octets_per_byte): New function: Return target
5823 * section.c: Distinguish between octets and bytes for usage of
5824 _cooked_size, _raw_size, and output_offset. Clarify
5825 description of bfd_set_section_contents.
5827 * bfd-in2.h: Regenerate.
5829 * coffgen.c: Indicate that the offset parameter is in bytes, not
5832 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5833 where appropriate to get the octet offset when calling
5834 bfd_set_section_contents.
5835 (bfd_coff_reloc_link_order): Ditto.
5837 * linker.c (bfd_generic_reloc_link_order): Ditto.
5838 (_bfd_default_link_order): Ditto.
5840 * reloc.c (bfd_perform_relocation): Distinguish between octets
5841 and bytes. Use octets when indexing into octet data; use bytes
5842 when calculating target addresses.
5843 (bfd_install_relocation): Ditto.
5845 * srec.c (srec_write_section): Ditto.
5847 2000-01-13 Nick Clifton <nickc@cygnus.com>
5849 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5850 3 to 2. This allows 4 byte sized sections, which is necessary for
5851 dlltool to build functioning DLLs.
5853 2000-01-10 Philip Blundell <pb@futuretv.com>
5855 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5856 (arm*-*-conix*): New target.
5858 2000-01-10 Egor Duda <deo@logos-m.ru>
5860 * config.bfd: Include elf32_i386 vector to target list for cygwin
5863 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5864 * configure.in: Test for structure win32_pstatus_t in
5866 * configure: Regenerate.
5868 * elf.c (elfcore_grok_win32pstatus): New function: process
5869 win32_pstatus_t notes in elf core file.
5870 (elfcore_grok_note): Detect win32_pstatus notes.
5872 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5874 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5876 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5877 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5879 For older changes see ChangeLog-9899
5885 version-control: never