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