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