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