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