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