]> Git Repo - binutils.git/blame - bfd/ChangeLog
* emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
[binutils.git] / bfd / ChangeLog
CommitLineData
9635981a
KH
12001-02-13 Kazu Hirata <[email protected]>
2
3 * vms.c (vms_print_symbol): Remove unreachable code.
4
6a125b16
KH
5 * rs6000-core.c: Fix formatting.
6
cbff5e0d
DD
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
df8634e3
AM
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
51e0a107
JH
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
23df1078
JH
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
f0e1d18a
L
862001-02-11 H.J. Lu <[email protected]>
87
88 * elflink.h (elf_bfd_final_link): Use file_align for STMTAB
89 alignment.
90
9117d219
NC
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
9f93bca5
MS
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
81545d45
RH
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
a85d7ed0
NC
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
356d255d
NC
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
069f40e5
JJ
1702001-02-09 Jakub Jelinek <[email protected]>
171
172 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
173
eadfa8ab
JJ
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
9fc54e19
MK
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
1f655a09
L
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
ca88208a
RH
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
4603e845
GK
1972001-02-08 Geoffrey Keating <[email protected]>
198
199 * config.bfd: Enable coff64 for rs6000-*. Patch from
200 <[email protected]>.
201
4ca29a6a
NC
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
7da9d88f
NC
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
7340082d
NC
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
81545d45 219 make static; create pointer reference named bfd_target_vector.
7340082d
NC
220 (_bfd_target_vector_entries): Calculate this based on the array
221 typed _bfd_target_vector.
222
2719f880
L
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
175aa013
NC
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
15e0ecd9
L
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
27def10f
KH
2442001-02-06 Kazu Hirata <[email protected]>
245
246 * elf-m10200.c: Fix formatting.
247
a0f2e916
NC
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
d96031fb
NC
2532001-02-02 Fred Fish <[email protected]>
254
255 * Makefile.in: Fix typo.
256
010ac81f
KH
2572001-02-01 Kazu Hirata <[email protected]>
258
259 * elf-m10300.c: Fix formatting.
260
3fab46d0
AM
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.
d9634ba1
AM
265 (elf64_hppa_object_p): Set architecture and machine from elf
266 header flags.
3fab46d0 267
95404643
RH
2682001-01-30 Curtis L. Janssen <[email protected]>
269
270 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
271 before mdebug.
272
8fb35fed
RH
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
a4f68544
NC
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
c02e7c3e
KH
2892001-01-25 Kazu Hirata <[email protected]>
290
291 * bfd-in2.h: Rebuild.
292 * libbfd.h: Likewise.
293
541389e2
L
2942001-01-23 H.J. Lu <[email protected]>
295
296 * bfd-in2.h: Rebuild.
297
0007625f
L
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
b653e1b1
KH
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
3fde5a36
KH
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
70256ad8
AJ
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
ee0bebb8
AJ
3622001-01-21 Maciej W. Rozycki <[email protected]>
363
364 * Makefile.am (install-data-local): Make use of $(DESTDIR).
365 * Makefile.in: Regenerate.
366
2a38f751
KH
3672001-01-21 Kazu Hirata <[email protected]>
368
369 * coff-a29k.c: Fix formatting.
370
c8492176
L
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
a5377ec0
AJ
3782001-01-17 Bo Thorsen <[email protected]>
379
380 * targets.c: Alphabetize list of xvecs.
381
b352eebf
AM
3822001-01-14 Alan Modra <[email protected]>
383
d952f17a
AM
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
c46b7515
AM
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
d768008d
AM
414 * opncls.c (bfd_fdopenr): Add parens like the comment says around
415 O_ACCMODE.
416
150ccafb
AM
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
b352eebf
AM
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
b3b9a062
NC
4252001-01-13 Nick Clifton <[email protected]>
426
b7ed8fad
NC
427 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
428 line.
429
b3b9a062
NC
430 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
431 line.
432
6e0b89ee
AM
4332001-01-12 Alan Modra <[email protected]>
434
435 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
436 * configure: Regenerate.
437
0d2bcfaf
NC
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
c31c1f70
NC
4512001-01-10 Nick Clifton <[email protected]>
452
2758140b 453 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 454
5ad083e3
PB
4552001-01-07 Philip Blundell <[email protected]>
456
457 * README: Replace `[email protected]' with
458 `[email protected]'.
459
7eae7d22
KH
4602001-01-04 Kazu Hirata <[email protected]>
461
462 * som.c: Fix formatting.
463
509945ae
KH
4642001-01-03 Kazu Hirata <[email protected]>
465
3e932841
KH
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
509945ae
KH
477 * linker.c: Likewise.
478 * lynx-core.c: Likewise.
479
892339ee
KH
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.
ee91ed79 490 * peicode.h: Likewise.
892339ee
KH
491 * ppcboot.c: Likewise.
492 * ptrace-core.c: Likewise.
493
3d855632
KH
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
a77a9fef
HPN
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
558e161f
KH
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
3c579812
AO
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
672579e9
KH
5202000-12-25 Kazu Hirata <[email protected]>
521
522 * vms-tir.c: Fix formatting.
523
55f2d5ed
KH
5242000-12-23 Kazu Hirata <[email protected]>
525
526 * vms.c: Fix formatting.
527 * vms.h: Likewise.
528
23ccc829
NC
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
8c603c85
NC
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
5bff4f56
KH
5492000-12-20 Kazu Hirata <[email protected]>
550
551 * targets.c: Fix formatting.
552 * tekhex.c: Likewise.
553 * trad-core.c: Likewise.
554
7b82c249
KH
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
f78c5281
NC
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
02b89dce
NC
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
d20966a7
NC
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
6fa957a9
KH
5862000-12-14 Kazu Hirata <[email protected]>
587
588 * peigen.c: Fix formatting.
589 * som.c: Likewise.
590 * som.h: Likewise.
591
9602af51
KH
5922000-12-13 Kazu Hirata <[email protected]>
593
594 * peigen.c: Fix formatting.
595
514829c3
JW
5962000-12-12 Jim Wilson <[email protected]>
597
598 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
599
3a71aec8
NC
6002000-12-08 Mark Salter <[email protected]>
601
602 * binary.c (binary_set_section_contents): Ignore sections
603 with zero size.
604
1518639e
KH
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
b79e8c78
NC
6222000-12-10 Fred Fish <[email protected]>
623
d952f17a
AM
624 * elflink.h (elf_link_output_extsym): Don't complain about undefined
625 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 626
38b1a46c
NC
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
857ec808
NC
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
51db3708
NC
6442000-12-08 Mark Elbrecht <[email protected]>
645
646 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
647 (BFD_LIBS): ...to here.
648 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
649 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
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.
d952f17a 655 * coffgen.c (coff_find_nearest_line): Call
857ec808 656 _bfd_dwarf2_find_nearest_line.
51db3708 657 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
658 accordingly.
659 (read_abbrevs): Likewise
660 (decode_line_info): Likewise.
661 (parse_comp_unit): Likewise.
662 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
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.
857ec808
NC
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.
d952f17a 675
435b1e90
KH
6762000-12-08 Kazu Hirata <[email protected]>
677
678 * coffgen.c: Fix formatting.
fe8bc63d 679 * elf-m10300.c: Likewise.
435b1e90
KH
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.
fe8bc63d
KH
688 * elf64-alpha.c: Likewise.
689 * elf64-hppa.c: Likewise.
690 * elf64-mips.c: Likewise.
435b1e90 691 * elf64-sparc.c: Likewise.
435b1e90 692
8da6118f
KH
6932000-12-07 Kazu Hirata <[email protected]>
694
695 * elf32-ppc.c: Fix formatting.
696 * elf64-x86-64.c: Likewise.
697
a9922e52
UC
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
c3668558
KH
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
6609fa74
KH
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
a7c10850
KH
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
e7af610e
NC
7362000-12-01 Chris Demetriou <[email protected]>
737
d952f17a
AM
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]>
ddcfc5fc
NC
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
8d88c4ca 7912000-11-30 Jan Hubicka <[email protected]>
d952f17a
AM
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.
8d88c4ca 807
fbc4fff4
KH
8082000-11-30 Kazu Hirata <[email protected]>
809
810 * xcofflink.c: Fix formatting.
811
e60b52c6
KH
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.
be3ccd9c 823 * elf32-mips.c: Likewise.
e60b52c6 824
336eced2
KH
8252000-11-27 Kazu Hirata <[email protected]>
826
827 * aout-adobe.c: Fix formatting.
244148ad
KH
828 * coff64-rs6000.c: Likewise.
829 * coffgen.c: Likewise.
830 * cofflink.c: Likewise.
336eced2 831
d71f672e
PB
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
bc7a577d
PB
8422000-11-22 Philip Blundell <[email protected]>
843
d952f17a 844 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
845 weak undefined symbols.
846
077b8428
NC
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
e9e41bd9
KH
8652000-11-23 Kazu Hirata <[email protected]>
866
867 * aix386-core.c: Fix formatting.
868
64bf6ae6
JW
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.
d952f17a 889
1abaf976
KH
8902000-11-21 Kazu Hirata <[email protected]>
891
6e301b2b
KH
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.
1abaf976
KH
904 * ecofflink.c: Likewise.
905
a0fc8ba1
NC
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
beb0d161
KH
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.
eb6e10cb
KH
923 * bfd-in.h: Likewise.
924 * bfd-in2.h: Likewise.
925 * bfd.c: Likewise.
926 * bout.c: Likewise.
beb0d161 927
2c2475db
JW
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
18b27f17
RH
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
98591c73
KH
9492000-11-16 Kazu Hirata <[email protected]>
950
71f6b586
KH
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.
98591c73
KH
981 * dwarf2.c: Likewise.
982
c5930ee6
KH
9832000-11-15 Kazu Hirata <[email protected]>
984
985 * coff-arm.c: Fix formatting.
986 * coff-ppc.c: Likewise.
987 * coff-rs6000.c: Likewise.
cbfe05c4
KH
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.
c5930ee6 996
dac544a8
RH
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
c810873d
JJ
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
43646c9d
KH
10072000-11-14 Kazu Hirata <[email protected]>
1008
1009 * coff-pmac.c: Fix formatting.
1010 * coff-ppc.c: Likewise.
1011
051b8577
L
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
90460d97
PB
10172000-11-09 Philip Blundell <[email protected]>
1018
1019 * section.c (STD_SECTION): Set gc_mark flag.
1020
b48499ec
KH
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
c5aeb40f
AO
10292000-11-11 Bernd Schmidt <[email protected]>
1030
1031 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1032
5fcfd273
KH
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
047066e1
KH
10422000-11-09 Kazu Hirata <[email protected]>
1043
1044 * archive.c: Fix formatting.
1045 * archures.c: Likewise.
1046
9a951beb
RH
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
aebad5fe
KH
10542000-11-08 Kazu Hirata <[email protected]>
1055
8546af74
KH
1056 * bfd-in.h: Fix formatting.
1057 * bfd-in2.h: Likewise.
1058 * bfd.c: Likewise.
aebad5fe
KH
1059 * binary.c: Likewise.
1060 * bout.c: Likewise.
346ceb11
KH
1061 * coff-a29k.c: Likewise.
1062 * coff-alpha.c: Likewise.
1063 * coff-apollo.c: Likewise.
1064 * coff-aux.c: Likewise.
aebad5fe 1065
0ef5a5bd
KH
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
d562d2fb
AM
10742000-11-07 Alan Modra <[email protected]>
1075
1076 * coff-h8300.c (special): Adjust reloc address.
1077
bbe66d08
JW
10782000-11-06 Steve Ellcey <[email protected]>
1079
4efc3e05 1080 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
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.
4efc3e05 1086 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
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.
4efc3e05 1092 * elf64-ia64.c: Deleted.
bbe66d08
JW
1093 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1094
c4dfa77f
KH
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
cf919dfd
PB
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
8d88c4ca 11162000-11-06 Christopher Faylor <[email protected]>
8848a8d0
CF
1117
1118 * config.bfd: Add support for Sun Chorus.
1119
46d59bfa
DB
11202000-11-05 David O'Brien <[email protected]>
1121
1122 * configure.in: Recognize alpha-*-freebsd*.
1123 * configure: Regenerate.
1124
d952f17a 11252000-11-02 Luciano Gemme <[email protected]>
420496c1
NC
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
59ff2774
NC
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.
d952f17a 1142
ee43f35e
PB
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
1006ba19
PB
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.
d952f17a
AM
1153 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1154 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 1155 all mismatches, not just the first one.
d952f17a 1156
c4920b97
NC
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
19f7b010
JJ
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
e1e0340b
GK
11732000-10-16 Geoffrey Keating <[email protected]>
1174
ea5fbc67
GK
1175 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1176 of a GOT reloc.
1177
e1e0340b
GK
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
a4b120e1
GK
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
5af5b85b
UC
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.
d952f17a 1201
3ef20aaa
AM
12022000-10-12 Alan Modra <[email protected]>
1203
24376d1b
AM
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
d952f17a 1212 zeroing of `flags'.
24376d1b
AM
1213 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1214 fudge values for discarded link-once section symbols.
1215
3ef20aaa
AM
1216 * elf64-hppa.c: Include alloca-conf.h
1217
c0e219cc
AM
12182000-10-11 Alan Modra <[email protected]>
1219
d01e2a23
AM
1220 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1221
c0e219cc
AM
1222 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1223
fe268b66
AM
12242000-10-10 Alan Modra <[email protected]>
1225
1226 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1227
4d7ce4dd
AM
12282000-10-10 Tom Rix <[email protected]>
1229
d952f17a 1230 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
1231 newsect->symbol fails to alloc. Use bfd_release instead of free.
1232
f3b6f7c3
RH
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
44852b19
AM
12392000-10-07 Alan Modra <[email protected]>
1240
fc8c40a0
AM
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
44852b19
AM
1248 * elf.c (swap_out_syms): Handle global section symbols.
1249
3e4554a2
DD
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
fa152c49
JW
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
36605136
AM
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
4b6609a0
UC
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.
36605136 1284
f572a39d
AM
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
4da81684
HPN
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
9a5aca8c
AM
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
512a2384
AM
13202000-09-29 NIIBE Yutaka <[email protected]>
1321
1322 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1323
6c99a5c3
AM
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
9f93bca5 13292000-09-28 Vrjan Friberg <[email protected]>
b16885a1
HPN
1330 Hans-Peter Nilsson <[email protected]>
1331
1332 * aout-cris.c (N_TXTADDR): Define.
1333
6204760d
AM
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
47d89dba
AM
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
a17cc40f
HPN
13772000-09-26 Hans-Peter Nilsson <[email protected]>
1378
1379 * elfcode.h (elf_object_p): Preserve and clear abfd section
d952f17a 1380 information. Restore at error.
a17cc40f 1381
3028b4c0
DD
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
40914184
AM
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
a017a724
AM
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.
1badb539
AM
1398 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1399 comments. Don't check non-code output sections for stub grouping.
a017a724 1400
b3ea3584
AM
14012000-09-20 Alan Modra <[email protected]>
1402
1403 * section.c (bfd_get_unique_section_name): Return NULL if
1404 bfd_malloc fails.
1405
6091b433
NC
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
8a3975e6
AO
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
25f72752
AM
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
4bb5e078
AO
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
0752970e
NC
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
ffcb7aff
NC
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
d5c73c2f
AM
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
74d1c347
AM
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
06bb75c1
AO
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
156c2f8b 15642000-09-13 Anders Norlander <[email protected]>
36605136 1565
d952f17a
AM
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
156c2f8b
NC
1570 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1571
8d88c4ca 15722000-09-13 Marco Franzen <[email protected]>
8681fbcd
JL
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
c1e8b710
JE
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
dbf48117
NC
15842000-09-11 Michael Sokolov <[email protected]>
1585
1586 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1587 static.
1588
ff0829fd
NC
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
27985c55
KH
15952000-09-09 Kazu Hirata <[email protected]>
1596
1597 * riscix.c: Remove DEFUN.
1598
fe077fa6
NC
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
d70910e8
KH
16052000-09-08 Kazu Hirata <[email protected]>
1606
1607 * archive.c: Fix formatting.
1608 * coff-arm.c: Likewise.
1609 * doc/chew.c: Likewise.
1610
77cb06e9
AM
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
c044fabd
KH
16162000-09-07 Kazu Hirata <[email protected]>
1617
256d98af 1618 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
c044fabd
KH
1619 * elf.c: Fix formatting.
1620
b129bfef
AO
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
492055e6
GK
16312000-09-06 Geoffrey Keating <[email protected]>
1632
1633 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
77cb06e9
AM
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.
492055e6 1645
566ad7d7
PB
16462000-09-06 Philip Blundell <[email protected]>
1647
1648 * config.bfd (arm*-*-uclinux*): New target.
1649
90f2472a
AO
16502000-09-06 Alexandre Oliva <[email protected]>
1651
1652 * configure: Rebuilt with new libtool.m4.
1653
a966dba9
AM
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.
77cb06e9 1659
5b343f5a
NC
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.
77cb06e9 1667
188ac662
GK
16682000-09-05 Steven Johnson <[email protected]>
1669
1670 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1671
49bd834c
AM
16722000-09-05 Alan Modra <[email protected]>
1673
30667bf3
AM
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
1bd91689
AM
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
832d951b
AM
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
49bd834c
AM
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
05924f36
PB
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
3d96075c
L
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
de24da47
JE
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
18e03609
NC
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.
77cb06e9 1814
7a6cc5fb
NC
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
a092b084
NC
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
37c644f2
AO
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
791987af
AM
18672000-09-01 Alan Modra <[email protected]>
1868
1869 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1870 change.
1871
8d88c4ca 18722000-08-31 J"orn Rennecke <[email protected]>
a39b79b9
JR
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
ac48eca1
AO
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
7ee38065
MS
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
f69da49f
AM
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
724982f6
NC
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
371e71b8
NC
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
a963dc6a
L
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
9bdafcce
AO
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
7a9af8c4
NC
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
ded0649c
JE
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
d670a150
JE
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
bb0deeff
AO
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
be040dbb
JJ
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
31612ca6
GK
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
c43c2cc5
JW
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
1630fd2b
AO
19922000-08-11 Alexandre Oliva <[email protected]>
1993
1994 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1995
fdeafce7
JE
19962000-08-10 Jason Eckhardt <[email protected]>
1997
77cb06e9
AM
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.
fdeafce7 2006
9b485d32
NC
20072000-08-10 Nick Clifton <[email protected]>
2008
2009 * elf32-arm.h: Fix formatting.
2010
00fdaf47
BS
20112000-08-10 Bernd Schmidt <[email protected]>
2012
2013 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2014
305d537e
JE
20152000-08-08 Jason Eckhardt <[email protected]>
2016
2017 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2018
46f5aac8
KH
20192000-08-07 Kazu Hirata <[email protected]>
2020
dce61835
KH
2021 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2022 * elf64-ia64.c: Fix a typo.
46f5aac8 2023
0e5136c6
JE
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
7dca057b
JL
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.
77cb06e9 2048 (som_bfd_link_split_section): Likewise.
7dca057b 2049
bc67d8a6
NC
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
c0f7859b
L
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
61ff1804
AO
20662000-08-03 Alexandre Oliva <[email protected]>
2067
2068 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2069
a87fdb8d
JE
20702000-07-31 Jason Eckhardt <[email protected]>
2071
77cb06e9
AM
2072 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2073 * bfd-in2.h, libbfd.h: Regenerate.
a87fdb8d 2074
5c440b1e
NC
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
77cb06e9 2082 * elf.c (copy_private_bfd_data): Reorganise section to segment
5c440b1e
NC
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
aa76cae8 20972000-07-22 Jason Eckhardt <[email protected]>
24208c5c
JE
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
77cb06e9 2113 as "bfd_elf32_i860_little_vec".
24208c5c
JE
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
456981d7
L
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
755cfd29
NC
21312000-07-27 Nick Clifton <[email protected]>
2132
2133 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2134 allocated contents.
2135
1a6df346
GK
21362000-07-25 Geoffrey Keating <[email protected]>
2137
adfdf838
GK
2138 * configure.host (*-*-aix*): AIX has 'long long' always.
2139
1a6df346
GK
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
313ba8d6
UC
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
3eb6f68f 21502000-07-21 Michael Sokolov <[email protected]>
20bccb34 2151
77cb06e9
AM
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.
20bccb34 2155
7a3120d9
NC
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
4d538889
L
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
b586af58
L
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
c25373b7
L
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
06c15ad7
HPN
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.
3bd336f7 2198 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
06c15ad7
HPN
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
d6cf2879
L
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
c25373b7 2218 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
d6cf2879
L
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
74816898
L
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
36a30e65
L
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
1d713d9e
NC
22422000-07-19 Nick Clifton <[email protected]>
2243
2244 * format.c: Fix formatting.
2245
d48188b9
L
22462000-07-19 H.J. Lu <[email protected]>
2247
2248 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2249
94558834
L
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
8d88c4ca 22602000-07-18 Andrew Cagney <[email protected]>
125c4a69
NC
2261
2262 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
77cb06e9 2263 renamed functions from here...
125c4a69
NC
2264 (assign_section_numbers): Use renamed functions.
2265 (prep_headers): Use renamed functions.
77cb06e9 2266
125c4a69
NC
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
31a9bdd9
UC
22712000-07-18 Ulf Carlsson <[email protected]>
2272
2273 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
313ba8d6 2274 parenthesis in if statement.
31a9bdd9 2275
f7cb7d68
UC
22762000-07-17 Koundinya K <[email protected]>
2277
77cb06e9 2278 Enable the support for Traditional MIPS.
f7cb7d68
UC
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.
77cb06e9 2297 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
f7cb7d68 2298 traditonal mips.
77cb06e9 2299 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
f7cb7d68 2300 shared object set the value to 0.
77cb06e9 2301 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
f7cb7d68
UC
2302 _DYNAMIC_LINKING for traditonal mips.
2303 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2304 for traditonal mips.
77cb06e9 2305
930d924d
L
23062000-07-15 H.J. Lu <[email protected]>
2307
2308 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2309
e67f03db
DD
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
0ba2a60e
AM
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
8d88c4ca 23282000-07-11 Andrew Cagney <[email protected]>
6d9019e4
AC
2329
2330 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
77cb06e9 2331 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 2332 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
2333 * bfd-in2.h: Regenerate.
2334
8d88c4ca 23352000-07-11 Andrew Cagney <[email protected]>
23e2c83b
AC
2336
2337 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
77cb06e9 2338 and ECOF_SIGNED_64 to list ways to extract an offset.
23e2c83b 2339 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
77cb06e9
AM
2340 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2341 Update.
23e2c83b
AC
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
8d88c4ca 23452000-07-11 Andrew Cagney <[email protected]>
448cafa4
AC
2346
2347 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
77cb06e9 2348 bfd_get_start_address.
448cafa4
AC
2349 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2350 (elf_swap_ehdr_out): Ditto.
2351
83ea41ad
NC
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
3df7b4e2
AM
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
b7af50e3
AM
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
adb76a3e
UC
23682000-07-09 Koundinya K <[email protected]>
2369
77cb06e9
AM
2370 * elf32-mips.c (sort_dynamic_relocs): New Function.
2371 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
adb76a3e
UC
2372 via qsort to sort the dynamic relocations in increasing r_symndx
2373 value.
77cb06e9 2374
edd21aca
AM
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
52b219b5
AM
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
8000a618
DD
25692000-07-07 DJ Delorie <[email protected]>
2570
2571 * archive.c (_bfd_write_archive_contents): Add an informative
2572 comment.
2573
c3b7c767
NC
25742000-07-06 Kazu Hirata <[email protected]>
2575
2576 * srec.c: Fix formatting.
2577
302ab118
DD
25782000-06-05 DJ Delorie <[email protected]>
2579
2580 * MAINTAINERS: new
2581
ed1de528
AO
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
70bcb145
JW
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
b8ee63fa
UC
25932000-07-03 Ulf Carlsson <[email protected]>
2594
2595 * elf32-mips.c: Include elf32-target.h again for the traditional
2596 MIPS targets.
2597
00d2865b
NC
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
e4202681
NC
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.
77cb06e9 2611
e4202681
NC
26122000-07-03 Nick Clifton <[email protected]>
2613
99d6ac2f
NC
2614 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2615 is an external symbol.
e4202681
NC
2616 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2617 external symbol.
77cb06e9 2618
289c596c
NC
26192000-07-03 Kazu Hirata <[email protected]>
2620
2621 * reloc16.c: Fix formatting.
2622
dd745cfa
UC
26232000-07-01 Koundinya K <[email protected]>
2624
77cb06e9
AM
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
dd745cfa
UC
2631 bfd_target_vector.
2632 (bfd_elf32_tradlittlemips_vec): Likewise.
77cb06e9
AM
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
0bdaf48b
AM
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
c75df619 26432000-06-30 DJ Delorie <[email protected]>
77cb06e9 2644
c75df619 2645 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
77cb06e9 2646 can't assume the PE header is at 0x80.
c75df619 2647
b4b415e5
DD
26482000-06-29 Mark Elbrecht <[email protected]>
2649
cda43a1d 2650 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 2651
addd3117
DD
26522000-06-28 Mark Elbrecht <[email protected]>
2653
2654 * go32stub.h: Update stub.
2655
65aa24b6
NC
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
cc040812
NC
26682000-06-26 Kazu Hirata <[email protected]>
2669
2670 * coff-h8300.c: Fix formatting.
2671 * cpu-h8300.c: Likewise.
2672
b1bcb49f
AO
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
1581f8c9
AM
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
bbeb2e03
L
26852000-06-20 H.J. Lu <[email protected]>
2686
2687 * Makefile.am: Rebuild dependency.
2688 * Makefile.in: Rebuild.
2689
8a20f077
UC
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
2ab47eed
AM
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
b305ef96
UC
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.
77cb06e9 2735
1605fc4f
MK
27362000-06-19 Mark Kettenis <[email protected]>
2737
2738 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2739 CORE_VERSION_1.
2740
60bcf0fa
NC
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.
77cb06e9 2748 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
60bcf0fa
NC
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
f41cbf03
UC
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.
77cb06e9 2770
689be717
L
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
9a8f3bb7
UC
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
32f0787a
UC
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.
77cb06e9 2790
87f33987
ND
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
a2fdf270
ND
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
9bd09e22
ND
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
59d9f049
ND
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
63e39178
L
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
bcef29e6
L
28512000-06-13 H.J. Lu <[email protected]>
2852
2853 * configure: Regenerate.
2854
8d88c4ca 28552000-06-13 J"orn Rennecke <[email protected]>
26bfd1c0
JR
2856
2857 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2858 armpei_little_vec.
2859
946efd95
DB
28602000-06-08 David O'Brien <[email protected]>
2861
2862 * configure.in (VERSION): Update to show this is the CVS mainline.
2863
1b452ec6
AM
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.
dc47f327
AM
2875 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2876 move HOWTOs into elf_howto_table.
1b452ec6 2877 (R_386_standard, R_386_ext_offset): Define.
dc47f327 2878 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 2879 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 2880 elf_howto_table since we've removed the padding.
1b452ec6
AM
2881 (elf_i386_info_to_howto_rel): Likewise.
2882 (elf_i386_relocate_section): Likewise.
2883
e0ebfc61
MS
28842000-06-06 Michael Snyder <[email protected]>
2885
2886 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2887
9d6eee78
L
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
94b6c40a
L
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
0af288f3
C
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
8d88c4ca 29082000-05-30 Andrew Cagney <[email protected]>
12df4d3c
AC
2909
2910 * trad-core.c: From hpux-core.c, include <dirent.h> or
77cb06e9 2911 <sys/ndir.h> when possible.
12df4d3c 2912
c0ae4ccc
NC
29132000-05-31 Nick Clifton <[email protected]>
2914
2915 * opintl.h (_(String)): Explain why dgettext is used instead
77cb06e9 2916 of gettext.
c0ae4ccc 2917
321fa097
UD
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
70d72e0e
AM
29242000-05-31 Alan Modra <[email protected]>
2925
2926 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
77cb06e9
AM
2927 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2928 R_PARISC_DIR17F are for absolute branches; Handle them as such.
70d72e0e 2929
96f6d4c4
NC
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
38048eb9
L
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
8c763017
PB
29442000-05-29 Philip Blundell <[email protected]>
2945
2946 * ppcboot.c: Add packed attribute if compiling with GCC.
2947
1ae00f9d
AM
29482000-05-29 Anatoly Vorobey <[email protected]>
2949
2950 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2951
4a938328
MS
29522000-05-26 Michael Snyder <[email protected]>
2953
77cb06e9 2954 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4a938328
MS
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
5af11cab
AM
29592000-05-26 Alan Modra <[email protected]>
2960
2114f57b
AM
2961 * Makefile.am: Update dependencies with "make dep-am"
2962 * Makefile.in: Regenerate.
2963
5af11cab
AM
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
b6cdd0fd
AM
29812000-05-26 Alan Modra <[email protected]>
2982
2983 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2984
f7775d95
JJ
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
6c08d697
JJ
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
edb72b3b
L
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.
ba09750c
L
3006 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3007
3008 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 3009
3a27a730
L
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
748abff6
RH
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
fb67355a
NC
30412000-05-22 Nick Clifton <[email protected]>
3042
3043 * configure.in : Add peigen.lo to MIPS PE targets.
3044 * configure: Regenerate.
3045
1fe494a5
NC
30462000-05-22 Momchil Velikov <[email protected]>
3047
3048 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 3049 only if it is known for both input and output bfds. Separate
1fe494a5
NC
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
77cb06e9 3052 'big' and 'little'.
1fe494a5
NC
3053
3054 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
77cb06e9
AM
3055 endianess checks, call _bfd_generic_verify_endian_match() instead.
3056
3057 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1fe494a5 3058
77cb06e9 3059 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1fe494a5
NC
3060
3061 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
77cb06e9 3062 endianess before checking bfd flavours.
1fe494a5 3063
32c092c3
L
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
df6d9773
JL
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
7ad34365
NC
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
8d88c4ca 30812000-05-18 Jeffrey A Law ([email protected])
d1dab720
JL
3082
3083 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3084
a712da20
NC
30852000-05-17 S. Bharadwaj Yadavalli <[email protected]>
3086 Rick Gorton <[email protected]>
77cb06e9 3087
aa76cae8 3088 * elflink.h: Add emitrelocations support: when enabled, relocation
a712da20
NC
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
aa76cae8 30952000-05-16 Catherine Moore <[email protected]>
10febd84
CM
3096
3097 * som.c (som_decode_symclass): Recognize weak symbols.
3098
db8503c4
AM
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
8d88c4ca 31052000-05-16 J"orn Rennecke <[email protected]>
851cde10
JR
3106
3107 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3108
1bde2d57
PB
31092000-05-14 Philip Blundell <[email protected]>
3110
3111 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3112
a76b448c
AM
31132000-05-12 Alan Modra <[email protected]>
3114
9ee25201
AM
3115 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3116
a76b448c
AM
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
72730e0c
AM
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
8181c403
AM
31372000-05-08 Alan Modra <[email protected]>
3138
bfde9f99
AM
3139 * versados.c (versados_scan): Init stringlen and pass_2_done.
3140
b35efbcd
AM
3141 * trad-core.c (trad_unix_core_file_p): Return
3142 bfd_error_wrong_format rather than bfd_error_file_truncated.
3143
8181c403
AM
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
8d88c4ca 31592000-05-05 Clinton Popetz <[email protected]>
2c38bc20
CP
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.
77cb06e9 3167
8d88c4ca 31682000-05-05 Clinton Popetz <[email protected]>
c6664dfb
CP
3169
3170 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3171 Change U802TOC64MAGIC to U803XTOCMAGIC.
3172
3425c182
MS
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
7c30ac37
AM
31792000-05-04 Alan Modra <[email protected]>
3180
3181 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3182
9f93bca5 31832000-05-03 Martin v. Lvwis <[email protected]>
0444bdd4
L
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
da5d444c
AM
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
ee44def1
L
31992000-05-02 H.J. Lu <[email protected]>
3200
b6cdd0fd 3201 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
ee44def1
L
3202 ELFOSABI_SYSV.
3203
e0afaebd
AM
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
8d88c4ca 32112000-05-01 Jim Wilson <[email protected]>
85e22c7e
JW
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
3f9b03b5
AM
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.
77cb06e9 3281
3f9b03b5
AM
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
c8735523
AM
32972000-05-01 Alan Modra <[email protected]>
3298
3299 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
01fff6e2 3300 * vms.c (vms_openr_next_archived_file): Return NULL.
c8735523 3301
8d88c4ca 33022000-04-28 Clinton Popetz <[email protected]>
2243c419
CP
3303
3304 * coffcode.h Copy changes mistakenly done to libcoff.h in
77cb06e9 3305 4/24/2000 patch.
2243c419 3306
a1934524
AM
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
8d88c4ca 33152000-04-28 Clinton Popetz <[email protected]>
14958a43
CP
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
77cb06e9 3326 * coff64-rs6000.c: Ditto,
14958a43 3327
8d88c4ca 33282000-04-28 Clinton Popetz <[email protected]>
ecefdb58
CP
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
8d88c4ca 33352000-04-28 Clinton Popetz <[email protected]>
6732d8bf
CP
3336
3337 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
77cb06e9 3338 _bfd_coff_force_symnames in strings and
6732d8bf
CP
3339 _bfd_coff_debug_string_prefix_length to their default values.
3340
dd5724d5
AM
33412000-04-27 Alan Modra <[email protected]>
3342
3343 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
77cb06e9 3344 Check local_got_refcounts before dereferencing.
dd5724d5
AM
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
8d88c4ca 33622000-04-26 Clinton Popetz <[email protected]>
8ecb95a2
CP
3363
3364 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3365
8d88c4ca 33662000-04-24 Clinton Popetz <[email protected]>
7f6d05e8
CP
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.
77cb06e9 3380 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7f6d05e8 3381 relocation.
77cb06e9 3382 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7f6d05e8
CP
3383 coff_SWAP_aux_out): Map to the new functions.
3384 * coff64-rs6000.c: New file.
77cb06e9
AM
3385 * libcoff.h (bfd_coff_backend_data): Add new fields
3386 _bfd_coff_force_symnames_in_strings and
7f6d05e8 3387 _bfd_coff_debug_string_prefix_length.
77cb06e9 3388 (bfd_coff_force_symnames_in_strings,
7f6d05e8
CP
3389 bfd_coff_debug_string_prefix_length): New macros for above fields.
3390 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
77cb06e9 3391 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7f6d05e8
CP
3392 of using coff_swap_sym_in directly.
3393 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
77cb06e9 3394 (coff_set_flags) Set magic for XCOFF64.
7f6d05e8
CP
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.
77cb06e9
AM
3403 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3404 symbol names into strings table when
7f6d05e8
CP
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.
77cb06e9 3408 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7f6d05e8
CP
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.
77cb06e9 3413 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7f6d05e8
CP
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.
1ae00f9d 3424 * cpu-powerpc.c: New bfd_arch_info_type.
7f6d05e8 3425
8d88c4ca 34262000-04-24 Jeffrey A Law ([email protected])
15bda425 3427
e59db122
JL
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
9ffc64f4
JL
3434 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3435 (bfd_elf64_hppa_vec): Declare.
3436
d403336c
JL
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
15bda425
JL
3442 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3443
8d88c4ca 34442000-04-24 Jason Eckhardt <[email protected]>
15bda425
JL
3445
3446 * libhppa.h (dis_assemble_16): New function.
3447 (pa_arch): Added pa20w element.
3448
8d88c4ca 34492000-04-24 Ulrich Drepper <[email protected]>
23afc6f6 3450
b9f66672
JL
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
23afc6f6
JL
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
bc11ab2b
JL
34672000-04-21 Matthew Green <[email protected]>
3468
3469 * config.bfd: Add NetBSD/sparc64 support.
3470
800eeca4
JW
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]>
77cb06e9 3475
800eeca4
JW
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.
77cb06e9 3498
b51a1338
RH
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
1319985e
AM
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
dcdea4f4
AM
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
fac41780
JW
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.
77cb06e9 3568
b9af77f5
TW
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
77cb06e9 3576 the appropriate macro is defined.
b9af77f5 3577 (write_object_contents): Read section load page.
77cb06e9 3578
fc633e5b
AM
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
8a4ac871
AM
35952000-04-12 Alan Modra <[email protected]>
3596
7df5277a 3597 * dep-in.sed: Match space before file name, not after.
7df5277a
AM
3598 * Makefile.am: Regenerate dependencies.
3599 * Makefile.in: Regenerate.
3600
8a4ac871
AM
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
43cbcf28
AM
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
4af1d5f6
TW
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.
77cb06e9 3621
a2d91340 3622Fri Apr 7 15:56:57 2000 Andrew Cagney <[email protected]>
1ae00f9d 3623
a2d91340 3624 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1ae00f9d 3625 --enable-build-warnings option.
a2d91340
AC
3626 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3627 * Makefile.in, configure: Re-generate.
3628
d4c97e70
NC
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.
77cb06e9 3647
d4c97e70
NC
3648 * bfd-in2.h: Regenerate.
3649 * libbfd.h: Regenerate.
3650
0ab2f69a
MS
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.
77cb06e9 3656
ccdb16fc
JW
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
81635ce4
TW
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.
77cb06e9 3677
279b54a1
MS
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
34cbe64e
TW
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
fc830a83
NC
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
015551fc
JR
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
41b49281
AM
37162000-04-04 Alan Modra <[email protected]>
3717
8ad3436c
AM
3718 * po/bfd.pot: Regenerate.
3719
41b49281
AM
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
653f71ca
KB
37292000-04-03 Kevin Buettner <[email protected]>
3730
748abff6
RH
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.
653f71ca 3735
9e422a2e
ILT
37362000-04-03 H.J. Lu <[email protected]>
3737
3738 * cache.c (bfd_open_file): Unlink the output file only if
41b49281 3739 it has non-zero size.
9e422a2e 3740
c555c5c5
AM
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
1642229e
HPN
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
4259e8b6
JL
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
65d7f9a6
AM
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
8b125cde
DE
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
c555c5c5 37802000-03-27 Alan Modra <[email protected]>
adde6300
AM
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
cd6f9321
L
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
d5afc56e
AM
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
4c72e23a 38192000-03-14 Doug Evans <[email protected]>
1ae00f9d 3820
748abff6 3821 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
1ae00f9d 3822
c4d5c859
JL
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
003e46d0
JL
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
c555c5c5 38332000-03-11 Alan Modra <[email protected]>
911c6dae 3834
77cb06e9 3835 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
911c6dae
AM
3836 a format mismatch rather than an "error" from bfd_read such as
3837 bfd_error_file_truncated.
3838
7893e6a2
GK
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
1ae00f9d 3843 R_MIPS_64 even in ld -r.
7893e6a2 3844
bb2d6cd7
GK
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
c555c5c5 38632000-03-10 Alan Modra <[email protected]>
88b6bae0
AM
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
c1b7949f
DE
38722000-03-07 Doug Evans <[email protected]>
3873
3874 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3875 * bfd-in2.h: Rebuild.
3876
11c8a8d1
NC
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
b47e35fc
CM
38952000-03-06 Catherine Moore <[email protected]>
3896
3897 * elf.c (swap_out_syms): Check for null type_ptr.
3898
8ba8a462
ILT
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
86033394
NC
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
748abff6 3934 'sym_sec'.
86033394
NC
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
77cb06e9 3945 'oldinst'.
86033394
NC
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.
77cb06e9 3956
86033394
NC
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
77cb06e9 3962 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
86033394 3963
5cc7c785
L
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
17505c5c
NC
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
77cb06e9 4021 targets.
17505c5c
NC
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
37fb6db1
ILT
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
67d83c76
ILT
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
e56f75e9
ILT
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
36e89602
JL
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
246c6687
AO
40872000-02-25 Alexandre Oliva <[email protected]>
4088
9d23b7fe
AO
4089 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4090
246c6687
AO
4091 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4092
ba20314e
CM
40932000-02-24 Catherine Moore <[email protected]>
4094
4095 * som.c (som_misc_symbol_info): Add field
77cb06e9 4096 secondary_def.
ba20314e
CM
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
ecb651f0
NC
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.
77cb06e9 4110
5b93d8bb
AM
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
a432cc3d
ILT
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
1287d1cc
ILT
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
748abff6 4144 * elflink.h (elf_bfd_final_link): Call output_extsym for global
a432cc3d
ILT
4145 symbols converted to local symbols even when stripping all
4146 symbols.
748abff6 4147 (elf_link_output_extsym): Process global symbols converted to
a432cc3d
ILT
4148 local symbols even if they are being stripped.
4149
f6af82bd
AM
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
494e2c58
ILT
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
2fca4467
GK
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
5ea1af0d
GK
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
4fb43185
GK
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
c61b8717
RH
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
6ad49cca
KB
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
d4845d57
JR
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
2920b85c
RH
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.
77cb06e9 4291 * elflink.h (elf_link_add_object_symbols): Break out copy from
2920b85c
RH
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
7f8d5fc9
ILT
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
6c784c9a
TW
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
84dcfba7
JR
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.
77cb06e9 4329 * (sh_insns_conflict): Use new functions and new macros to
84dcfba7
JR
4330 detect conflicts when two instructions both set same integer registers,
4331 both set same fp register, and both set special register.
4332
363d7b14
TW
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
119a7ced 43392000-02-08 Mark Elbrecht <[email protected]>
77cb06e9 4340
119a7ced 4341 * coff-go32.c: Update comment. Update copyright.
a712da20 4342
fad6fcbb 43432000-01-27 Thomas de Lellis <[email protected]>
2f0ca46a 4344
748abff6
RH
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
fad6fcbb
NC
4354
4355 (bfd_is_undefined_symclass): New function. Return true if the
4356 given symbol class represents and undefined/unresolved symbol.
77cb06e9 4357
748abff6 4358 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
fad6fcbb
NC
4359 unresolved symbols.
4360
4361 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
77cb06e9 4362
748abff6 4363 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
2f0ca46a
NC
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
fd6848f6 4366 disassembler.
2f0ca46a 4367
305c7206
AM
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
b5f303f0
NC
43792000-01-24 Robert Lipe ([email protected])
4380
748abff6 4381 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
b5f303f0
NC
4382 instead of using GNU C extension.
4383
2e4bb80e
NC
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
28240dcd
NC
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
6b3b007b
NC
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
d952f17a 4401 * coffswap.h: Ditto.
77cb06e9 4402
756fa1b9
NC
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
9a968f43
NC
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
fd6848f6 4415 * section.c: Distinguish between octets and bytes for usage of
9a968f43
NC
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.
77cb06e9 4423
9a968f43
NC
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.
77cb06e9 4428
9a968f43
NC
4429 * linker.c (bfd_generic_reloc_link_order): Ditto.
4430 (_bfd_default_link_order): Ditto.
77cb06e9 4431
9a968f43
NC
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.
77cb06e9 4436
9a968f43 4437 * srec.c (srec_write_section): Ditto.
77cb06e9 4438
f45fbf87
NC
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
590a2450 4443 dlltool to build functioning DLLs.
f45fbf87 4444
0decc840
NC
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
16e9c715
NC
44502000-01-10 Egor Duda <[email protected]>
4451
77cb06e9 4452 * config.bfd: Include elf32_i386 vector to target list for cygwin
16e9c715 4453 and mingw.
77cb06e9 4454
16e9c715
NC
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.
77cb06e9 4459
16e9c715
NC
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
7a13edea
NC
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
2f6d2f85 4471For older changes see ChangeLog-9899
252b5132
RH
4472\f
4473Local Variables:
4474mode: change-log
4475left-margin: 8
4476fill-column: 74
4477version-control: never
4478End:
This page took 0.815733 seconds and 4 git commands to generate.