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