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