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