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