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