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