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