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