typo
[binutils-gdb.git] / bfd / ChangeLog
1 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2
3 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4
5 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6
7 * go32stub.h: Update stub.
8
9 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
10
11 * archures.c (bfd_mach_avr5): Define.
12 * bfd-in2.h (bfd_mach_avr5): Define.
13 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
14 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
15 (compatible): Update comment. Add missing test.
16 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
17 for avr2 and avr4. Simplify 8K wrap code.
18 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
19 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
20
21 2000-06-26 Kazu Hirata <kazu@hxi.com>
22
23 * coff-h8300.c: Fix formatting.
24 * cpu-h8300.c: Likewise.
25
26 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
27
28 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
29 for local symbols whose names are unknown.
30
31 2000-06-22 Alan Modra <alan@linuxcare.com.au>
32
33 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
34 find one.
35 * Makefile.in: Regenerate.
36 * doc/Makefile.in: Regenerate.
37
38 2000-06-20 H.J. Lu <hjl@gnu.org>
39
40 * Makefile.am: Rebuild dependency.
41 * Makefile.in: Rebuild.
42
43 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
44
45 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
46 (elf_backend_copy_indirect_symbol): Map to the new function.
47
48 2000-06-20 Alan Modra <alan@linuxcare.com.au>
49
50 * archive.c (normalize): Correct pointer comparison when checking
51 for backslashes.
52 (bfd_bsd_truncate_arname): Likewise.
53 (bfd_gnu_truncate_arname): Likewise.
54
55 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
56
57 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
58 sections elf_{text,data}_{section,symbol}.
59 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
60 (_bfd_mips_elf_hide_symbol): New function.
61 (elf_backend_hide_symbol): Map to the new function.
62 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
63 definitions of mips_elf_{text,data}_{section,symbol}.
64 (mips_elf_local_relocation_p): Try to find the direct symbol
65 based on new check_forced argument.
66 (mips_elf_calculate_relocation): Use new version of
67 mips_elf_local_relocation_p.
68 (mips_elf_relocate_section): Likewise.
69 (_bfd_mips_elf_relocate_section): Likewise.
70 (mips_elf_sort_hash_table): Only assert that have enough GOT
71 space.
72 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
73 entry if the relocation based on the new external argument.
74 (mips_elf_create_dynamic_relocation): Assert that we have a
75 section contents allocated where we can swap out the dynamic
76 relocations.
77 (mips_elf_calculate_relocation): Find the real hash-table entry
78 correctly by using h->root.root.type. Only create a dynamic
79 relocation entry if the symbol is defined in a shared library.
80 Create an external GOT entry for the GOT16 relocation if the
81 symbol was forced local.
82 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
83 dynamic index if the symbol was forced local.
84
85 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
86
87 * elf32-mips.c: Fix typos in comments.
88
89 2000-06-19 Mark Kettenis <kettenis@gnu.org>
90
91 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
92 CORE_VERSION_1.
93
94 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
95
96 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
97 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
98 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
99 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
100 (bfd_elf32_m68hc11_vec): Likewise.
101 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
102 Supports 68hc11 & 68hc12 at the same time.
103 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
104 bfd_target_vector.
105 (bfd_elf32_m68hc11_vec): Likewise.
106 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
107 * archures.c (bfd_m68hc12_arch): Define and register in global list
108 (bfd_m68hc11_arch): Likewise.
109 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
110 BFD_RELOC_M68HC11_3B): Define.
111 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
112 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
113
114 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
115
116 * elf_bfd.h (struct elf_backend_data): Add info argument to
117 elf_backend_hide_symbol.
118 (_bfd_elf_link_hash_hide_symbol): Likewise.
119 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
120 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
121 * elflink.h (elf_link_add_object_symbols): Likewise.
122 (elf_link_assign_sym_version): Likewise.
123
124 2000-06-18 H.J. Lu <hjl@gnu.org>
125
126 * coff-i386.c (coff_i386_reloc): Don't return in case of
127 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
128 Compensate PE relocations when linking with non-PE object
129 files to generate a non-PE executable.
130
131 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
132
133 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
134 GOT entries if we're doing a static link or -Bsymbolic link.
135
136 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
137
138 * elflink.h (elf_link_adjust_relocs): Check for and call backend
139 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
140 available.
141 (elf_link_output_relocs): Likewise.
142 (elf_reloc_link_order): Likewise.
143
144 2000-06-16 Nicholas Duffek <nsd@redhat.com>
145
146 * archures.c (enum bfd_architecture): #define constants for
147 PowerPc and RS6000 machine numbers.
148 * bfd-in2.h: Regenerate.
149 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
150 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
151 and RS6000 machine numbers using #defined constants from
152 archures.c.
153 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
154 machine numbers using #defined constants from archures.c. Add
155 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
156 64-bit words in 620 entry.
157 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
158 RSC, and RS2.
159 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
160
161 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
162
163 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
164 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
165 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
166
167 2000-06-16 Nicholas Duffek <nsd@redhat.com>
168
169 * bfd-in.h (bfd_family_coff): Define.
170 * bfd-in2.h: Regenerate.
171 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
172 coff_find_nearest_line): Check COFFness using bfd_family_coff()
173 instead of bfd_target_coff_flavour.
174 * cofflink.c (_bfd_coff_final_link): Likewise.
175 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
176 exclude XCOFF files.
177 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
178 Likewise.
179 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
180 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
181 * xcofflink.c (XCOFF_XVECP): Delete.
182 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
183 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
184 bfd_xcoff_record_link_assignment,
185 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
186 check for bfd_target_xcoff_flavour.
187
188 2000-06-16 Nicholas Duffek <nsd@redhat.com>
189
190 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
191 files on AIX 4.3.
192 (read_hdr): New function.
193 (rs6000coff_core_p): Store mstsave or __context64 struct instead
194 of trying to extract individual registers. Set abfd->arch_info
195 to match the architecture that created the core file.
196 (rs6000coff_get_section_contents): Delete.
197 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
198
199 2000-06-14 H.J. Lu <hjl@gnu.org>
200
201 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
202 is NULL.
203
204 2000-06-13 H.J. Lu <hjl@gnu.org>
205
206 * configure: Regenerate.
207
208 Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
209
210 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
211 armpei_little_vec.
212
213 2000-06-08 David O'Brien <obrien@FreeBSD.org>
214
215 * configure.in (VERSION): Update to show this is the CVS mainline.
216
217 2000-06-07 Alan Modra <alan@linuxcare.com.au>
218
219 * elf32-d10v.c: Include elf/d10v.h
220 (enum reloc_type): Delete.
221 * elf32-d30v.c: Include elf/d30v.h
222 (enum reloc_type): Delete.
223
224 * Makefile.am: Run "make dep-am" to regenerate dependencies.
225 * Makefile.in: Regenerate.
226
227 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
228 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
229 move HOWTOs into elf_howto_table.
230 (R_386_standard, R_386_ext_offset): Define.
231 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
232 (elf_i386_reloc_type_lookup): Modify calculation of index into
233 elf_howto_table since we've removed the padding.
234 (elf_i386_info_to_howto_rel): Likewise.
235 (elf_i386_relocate_section): Likewise.
236
237 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
238
239 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
240
241 2000-06-05 H.J. Lu <hjl@gnu.org>
242
243 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
244 an error when seeing an undefined symbol with hidden/internal
245 attribute. It is handled in *_relocate_section ().
246
247 2000-06-05 H.J. Lu <hjl@gnu.org>
248
249 * elflink.h (elf_fix_symbol_flags): Follow the link for the
250 indirect symbol for the ELF_LINK_NON_ELF bit.
251 (elf_link_output_extsym): Don't output the indirect symbol even
252 if the ELF_LINK_NON_ELF bit is set.
253
254 2000-06-01 J.T. Conklin <jtc@redback.com>
255
256 * config.bfd (i[3456]86-*-netbsdelf*): New target.
257 (i[3456]86-*-netbsdaout*): New target.
258 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
259 (i[3456]86-*-openbsd*): Likewise.
260
261 Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
262
263 * trad-core.c: From hpux-core.c, include <dirent.h> or
264 <sys/ndir.h> when possible.
265
266 2000-05-31 Nick Clifton <nickc@cygnus.com>
267
268 * opintl.h (_(String)): Explain why dgettext is used instead
269 of gettext.
270
271 2000-05-31 Ulrich Drepper <drepper@redhat.com>
272
273 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
274 definitions. We must not assume they are sorted in the file
275 according to their index numbers.
276
277 2000-05-31 Alan Modra <alan@linuxcare.com.au>
278
279 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
280 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
281 R_PARISC_DIR17F are for absolute branches; Handle them as such.
282
283 2000-05-30 Nick Clifton <nickc@cygnus.com>
284
285 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
286 80960CA, 80960MC as valid machine names.
287
288 2000-05-30 H.J. Lu <hjl@gnu.org>
289
290 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
291 visibility bits if the symbol is undefined. Correctly handle
292 weak undefined symbols with hidden and internal attributes.
293
294 * elflink.h (elf_link_add_object_symbols): Always turn the
295 symbol into local if it has the hidden or internal attribute.
296
297 2000-05-29 Philip Blundell <philb@gnu.org>
298
299 * ppcboot.c: Add packed attribute if compiling with GCC.
300
301 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
302
303 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
304
305 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
306
307 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
308 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
309 corefile on a 64-bit (Sparc Solaris) host. Also clean up
310 a few old comments.
311
312 2000-05-26 Alan Modra <alan@linuxcare.com.au>
313
314 * Makefile.am: Update dependencies with "make dep-am"
315 * Makefile.in: Regenerate.
316
317 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
318 bindtextdomain): Replace defines with those from intl/libgettext.h
319 to quieten gcc warnings.
320
321 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
322
323 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
324
325 * archive.c (normalize, bfd_bsd_truncate_arname,
326 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
327 file names with backslashes.
328
329 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
330 before opening it.
331
332 * sysdep.h: Include filenames.h.
333
334 2000-05-26 Alan Modra <alan@linuxcare.com.au>
335
336 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
337
338 2000-05-26 Jakub Jelinek <jakub@redhat.com>
339
340 * elf64-sparc.c (sparc64_elf_relax_section): New.
341 (sparc64_elf_relocate_section): Optimize tail call into branch always
342 if possible.
343 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
344 (elf32_sparc_relax_section): New.
345
346 2000-05-26 Jakub Jelinek <jakub@redhat.com>
347
348 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
349 Remove unusued variables.
350 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
351 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
352 previous fix, so that shared libs really don't influence targets
353 extension mask and memory model.
354
355 2000-05-23 H.J. Lu <hjl@gnu.org>
356
357 * elf64-alpha.c (elf64_alpha_relocate_section): Check
358 h->root.other not h->other.
359 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
360
361 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
362
363 2000-05-23 H.J. Lu <hjl@gnu.org>
364
365 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
366 undefined symbol with the non-default visibility attributes.
367 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
368 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
369 * elf32-i370.c (i370_elf_relocate_section): Likewise.
370 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
371 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
372 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
373 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
374 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
375 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
376 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
377 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
378
379 2000-05-22 Richard Henderson <rth@cygnus.com>
380
381 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
382 PCREL22, PCREL64I. Zero size of special relocs.
383 (elf64_ia64_reloc_type_lookup): Likewise.
384 (USE_BRL, oor_brl, oor_ip): New.
385 (elf64_ia64_relax_section): New.
386 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
387 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
388 (elf64_ia64_relocate_section): Likewise.
389 (bfd_elf64_bfd_relax_section): New.
390 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
391 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
392 * bfd-in2.h, libbfd.h: Regenerate.
393
394 2000-05-22 Nick Clifton <nickc@cygnus.com>
395
396 * configure.in : Add peigen.lo to MIPS PE targets.
397 * configure: Regenerate.
398
399 2000-05-22 Momchil Velikov <velco@fadata.bg>
400
401 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
402 only if it is known for both input and output bfds. Separate
403 error message strings as in some languages, it may be necessary
404 to change more than one place in the string to change between
405 'big' and 'little'.
406
407 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
408 endianess checks, call _bfd_generic_verify_endian_match() instead.
409
410 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
411
412 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
413
414 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
415 endianess before checking bfd flavours.
416
417 2000-05-22 H.J. Lu <hjl@gnu.org>
418
419 * elflink.h (elf_link_output_extsym): Clear the visibility
420 field for symbols not defined locally.
421
422 2000-05-18 Alan Modra <alan@linuxcare.com.au>
423
424 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
425 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
426 (hppa_rebuild_insn): Mask immediate bits here instead.
427 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
428
429 2000-05-18 Momchil Velikov <velco@fadata.bg>
430
431 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
432 relocs for an executable, ensure that they are virtual addresses.
433
434 Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
435
436 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
437
438 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
439 Rick Gorton <gorton@scrugs.lkg.dec.com>
440
441 * elflink.h: Add emitrelocations support: when enabled, relocation
442 information and relocation sections are put into final output
443 executables. If the emitrelocations flag is set, do the following:
444 (elf_bfd_final_link): Emit relocation sections.
445 (elf_link_input_bfd): Compute relocation section contents.
446 (elf_gc_sections): Don't clean relocation sections.
447
448 2000-05-16 Catherine Moore <clm@cygnux.com>
449
450 * som.c (som_decode_symclass): Recognize weak symbols.
451
452 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
453
454 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
455 read idata section only from dataoff.
456 (pe_print_edata): Correctly check for valid eat_member.
457
458 Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
459
460 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
461
462 2000-05-14 Philip Blundell <philb@gnu.org>
463
464 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
465
466 2000-05-12 Alan Modra <alan@linuxcare.com.au>
467
468 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
469
470 * peigen.c (pe_print_idata): Look for .idata section and print
471 info even if data directory has zero entries. Read idata section
472 starting from dataoff, and adjust all data offsets to suit. Cast
473 all bfd_vma vars to unsigned long before passing to fprintf.
474 * peigen.c (pe_print_edata): Similarly, look for .edata section
475 and print info even if data directory has zero entries. Cast
476 all bfd_vma vars to unsigned long before passing to fprintf.
477
478 From Szabolcs Szakacsits <szaka@F-Secure.com>
479 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
480 directory size which may be bogus.
481 * peigen.c (pe_print_edata): Similarly.
482
483 2000-05-09 Alan Modra <alan@linuxcare.com.au>
484
485 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
486 section is empty.
487 (copy_private_bfd_data): Allow for space possibly taken up by elf
488 headers when calculating segment physical address from lma.
489
490 2000-05-08 Alan Modra <alan@linuxcare.com.au>
491
492 * versados.c (versados_scan): Init stringlen and pass_2_done.
493
494 * trad-core.c (trad_unix_core_file_p): Return
495 bfd_error_wrong_format rather than bfd_error_file_truncated.
496
497 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
498 add_data_entry. DataDirectory virtual address is relative.
499 (pe_print_idata): Account for relative DataDirectory virtual
500 addresses. Don't trash datasize inside POWERPC_LE_PE code.
501 (pe_print_edata): Similarly.
502
503 From Szabolcs Szakacsits <szaka@F-Secure.com>
504 * peigen.c (dir_names): Add Delay Import Directory.
505 (pe_print_idata): Always search for bfd section containing
506 idata address rather than looking up section name. Print this
507 section name rather than .idata.
508 (pe_print_edata): Similarly. Also print some fields as %08lx.
509 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
510 Win32Version.
511
512 Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
513
514 * xcoff.h: Rename to xcoff-target.h
515 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
516 * coff-rs6000.c: Ditto.
517 * coff64-rs6000.c: Ditto.
518 * coff-pmac.c: Ditto.
519 * Makefile.in: Regenerate.
520
521 Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
522
523 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
524 Change U802TOC64MAGIC to U803XTOCMAGIC.
525
526 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
527
528 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
529 * bfd-in.h: Prototype bfd_elf_get_arch_size.
530 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
531
532 2000-05-04 Alan Modra <alan@linuxcare.com.au>
533
534 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
535
536 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
537
538 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
539 hidden and internal symbols.
540 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
541 visibility.
542 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
543 assign a PLT or GOT entry to symbols with hidden and
544 internal visibility.
545
546 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
547
548 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
549 the .bss section.
550 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
551
552 2000-05-02 H.J. Lu <hjl@gnu.org>
553
554 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
555 ELFOSABI_SYSV.
556
557 2000-05-02 Alan Modra <alan@linuxcare.com.au>
558
559 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
560 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
561 dependencies.
562 * Makefile.in: Regenerate.
563
564 Mon May 1 16:56:47 2000 Jim Wilson <wilson@cygnus.com>
565
566 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
567 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
568 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
569 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
570 * Makefile.in: Rebuild.
571
572 2000-05-02 Alan Modra <alan@linuxcare.com.au>
573
574 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
575 doesn't work very well.
576
577 * elf-hppa.h (elf_hppa_internal_shdr): Define.
578 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
579 Set hdr->s_type to 1 if ARCH_SIZE == 32.
580 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
581 (elf_hppa_info_to_howto): Likewise.
582 (elf_hppa_info_to_howto_rel): Likewise.
583 (elf_hppa_reloc_type_lookup): Likewise.
584 (elf_hppa_is_local_label_name): Likewise.
585 (elf_hppa_fake_sections): Likewise.
586 (elf_hppa_final_write_processing): Likewise.
587 (elf_hppa_howto_table): Fully initialise all entries.
588 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
589 (elf_hppa_info_to_howto): Likewise.
590 (elf_hppa_info_to_howto_rel): Likewise.
591 (elf_hppa_reloc_type_lookup): Likewise.
592 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
593 elf_hppa_unmark_useless_dynamic_symbols,
594 elf_hppa_remark_useless_dynamic_symbols,
595 elf_hppa_record_segment_addrs, elf_hppa_final_link,
596 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
597 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
598 elf32-hppa.c mess is cleaned up.
599 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
600 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
601 r_field then call hppa_field_adjust inline func with variable
602 r_field arg, instead call hppa_field_adjust with fixed arg.
603 In case R_PARISC_PCREL22F, don't set r_field.
604 (elf_hppa_relocate_insn): Change args and return type to unsigned
605 int. Call re_assemble_* funcs to do the work.
606
607 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
608 sign extending.
609
610 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
611 extending.
612 (sign_extend): Mask first before sign extending.
613 (low_sign_extend): Rewrite without condition expression.
614 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
615 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
616 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
617 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
618 result as function return value rather than through pointer arg.
619 Accept unsigned int args, and return unsigned int.
620 (re_assemble_3): New. Combines function of dis_assemble_3 with
621 re-assembly of opcode and immediate.
622 (re_assemble_12): Likewise.
623 (re_assemble_16): Likewise.
624 (re_assemble_17): Likewise.
625 (re_assemble_21): Likewise.
626 (re_assemble_22): Likewise.
627 (hppa_field_adjust): Rewrite and document, paying attention to
628 size of types and signed/unsigned issues.
629 (get_opcode): Shift before masking.
630 (FDLW): Rename to FLDW.
631 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
632 (hppa_rebuild_insn): Change args and return value to unsigned
633 int. Make use of re_assemble_*. Correct case 11.
634
635 * dep-in.sed: Handle ../opcodes/.
636 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
637 elf64-hppa.h, hppa_stubs.h, xcoff.h.
638 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
639 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
640 elfarm-nabi.lo dependencies outside of auto-dependency area.
641 Regenerate dependencies.
642 * Makefile.in: Regenerate.
643
644 * configure.in (TRAD_HEADER): Test non-null before
645 AC_DEFINE_UNQUOTED.
646 * configure: Regenerate.
647
648 * reloc.c: Fix mis-spelling in comment.
649
650 2000-05-01 Alan Modra <alan@linuxcare.com.au>
651
652 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
653 * vms.c (vms_openr_next_archived_file): Return NULL.
654
655 Fri Apr 28 21:34:44 2000 Clinton Popetz <cpopetz@cygnus.com>
656
657 * coffcode.h Copy changes mistakenly done to libcoff.h in
658 4/24/2000 patch.
659
660 2000-04-29 Andreas Jaeger <aj@suse.de>
661
662 * libbfd-in.h: Correctly check GCC version.
663 * bfd-in.h: Likewise.
664 * libhppa.h: Likewise.
665 * libbfd.h: Regenerate.
666 * bfd-in2.h: Regenerate.
667
668 Fri Apr 28 14:58:37 2000 Clinton Popetz <cpopetz@cygnus.com>
669
670 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
671 coffdu-rs6000.{lo,c}.
672 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
673 on xcoff.h
674 * Makefile.in: Regenerate.
675 * xcoff.h: New file.
676 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
677 * coff-rs6000.c: Move all declarations and defines that are
678 common to the xcoff backends into xcoff.h
679 * coff64-rs6000.c: Ditto,
680
681 Fri Apr 28 08:35:21 2000 Clinton Popetz <cpopetz@cygnus.com>
682
683 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
684 _bfd_coff_force_symnames in strings and
685 _bfd_coff_debug_string_prefix_length to their default values.
686 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
687
688 Fri Apr 28 08:05:12 2000 Clinton Popetz <cpopetz@cygnus.com>
689
690 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
691 _bfd_coff_force_symnames in strings and
692 _bfd_coff_debug_string_prefix_length to their default values.
693
694 2000-04-27 Alan Modra <alan@linuxcare.com.au>
695
696 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
697 Check local_got_refcounts before dereferencing.
698
699 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
700 before deciding we don't need R_PPC_PLT32 relocation.
701 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
702 dereferencing.
703
704 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
705
706 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
707 .plt entries.
708 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
709 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
710 (elf_i386_relocate_section): Allow for .plt to go missing.
711 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
712 can use a relative reloc for got as elf_i386_relocate_section.
713 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
714
715 Wed Apr 26 16:31:28 2000 Clinton Popetz <cpopetz@cygnus.com>
716
717 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
718
719 Mon Apr 24 15:20:35 2000 Clinton Popetz <cpopetz@cygnus.com>
720
721 * Makefile.am (coff64-rs6000.lo): New rule.
722 * Makefile.in: Regenerate.
723 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
724 xcoff_is_local_label_name, xcoff_rtype2howto,
725 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
726 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
727 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
728 (NO_COFF_SYMBOLS): Define.
729 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
730 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
731 internally.
732 (MINUS_ONE): New macro.
733 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
734 relocation.
735 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
736 coff_SWAP_aux_out): Map to the new functions.
737 * coff64-rs6000.c: New file.
738 * libcoff.h (bfd_coff_backend_data): Add new fields
739 _bfd_coff_force_symnames_in_strings and
740 _bfd_coff_debug_string_prefix_length.
741 (bfd_coff_force_symnames_in_strings,
742 bfd_coff_debug_string_prefix_length): New macros for above fields.
743 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
744 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
745 of using coff_swap_sym_in directly.
746 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
747 (coff_set_flags) Set magic for XCOFF64.
748 (coff_compute_section_file_positions): Add symbol name length to
749 string section length if bfd_coff_debug_string_prefix_length is
750 true.
751 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
752 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
753 using coff_swap_lineno_in directly.
754 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
755 and _bfd_coff_debug_string_prefix_length fields.
756 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
757 symbol names into strings table when
758 bfd_coff_force_symnames_in_strings is true.
759 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
760 SET_RELOC_VADDR): New macros.
761 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
762 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
763 code.
764 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
765 changes within RS6000COFF_C specific code.
766 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
767 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
768 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
769 Extend existing hack on target name.
770 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
771 target name.
772 * coff-tic54x.c (ticof): Keep up to date with new fields
773 in bfd_coff_backend_data.
774 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
775 targ_selvecs to include rs6000coff64_vec for rs6000.
776 * configure.in: Add rs6000coff64_vec case.
777 * cpu-powerpc.c: New bfd_arch_info_type.
778
779 Mon Apr 24 02:17:31 2000 Jeffrey A Law (law@cygnus.com)
780
781 * config.bfd: Only disable elf32-hppa vectors, not all of the
782 BSD and OSF configuration support. Provide (disabled) clauses
783 for PA64 support.
784 * configure.in: Add clause for PA64 support.
785 * configure: Rebuilt.
786
787 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
788 (bfd_elf64_hppa_vec): Declare.
789
790 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
791 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
792 (elf64-hppa.lo): Add dependencies.
793 * Makefile.in: Rebuilt.
794
795 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
796
797 Mon Apr 24 02:14:29 2000 Jason Eckhardt <jle@cygnus.com>
798
799 * libhppa.h (dis_assemble_16): New function.
800 (pa_arch): Added pa20w element.
801
802 Mon Apr 24 01:49:03 2000 Ulrich Drepper <drepper@cygnus.com>
803
804 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
805 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
806 bfd_elf64_slurp_reloc_table.
807
808 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
809 definitions to get external names.
810 (elf_write_relocs): Renamed from write_relocs and make global.
811 (elf_slurp_reloc_table): Make global.
812 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
813
814 * archive.c (hpux_uid_gid_encode): New function.
815 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
816 defined and the ID is greater than 99999.
817 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
818 special uid/gid fields into 32 bit values.
819
820 2000-04-21 Matthew Green <mrg@cygnus.com>
821
822 * config.bfd: Add NetBSD/sparc64 support.
823
824 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
825 David Mosberger <davidm@hpl.hp.com>
826 Timothy Wall <twall@cygnus.com>
827 Jim Wilson <wilson@cygnus.com>
828
829 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
830 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
831 (BFD64_BACKENDS): Add elf64-ia64.lo.
832 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
833 (cpu-ia64.lo, elf64-ia64.lo): New rules.
834 * Makefile.in: Rebuild.
835 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
836 (bfd_ia64_arch): Declare.
837 (bfd_archures_list): Add bfd_ia64_arch.
838 * bfd-in2.h: Rebuild.
839 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
840 * configure: Rebuild.
841 * configure.host: (ia64-*-linux*): New host.
842 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
843 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
844 * elf.c (prep_headers): Add bfd_arch_ia64.
845 * libbfd.h: Rebuild.
846 * reloc.c: Add IA-64 relocations.
847 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
848 Declare.
849 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
850 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
851
852 2000-04-21 Richard Henderson <rth@cygnus.com>
853
854 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
855 contents when performing a partial link.
856 (bfd_elf_d30v_reloc_21): Likewise.
857
858 2000-04-20 H.J. Lu <hjl@gnu.org>
859
860 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
861 patch to symbols defined by a shared object.
862 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
863
864 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
865
866 K&R compiler fixes.
867 * dwarf2.c (concat_filename): Avoid string literal concatenation.
868 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
869
870 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
871
872 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
873 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
874 (coff-ia64.lo): Add dependency.
875 * Makefile.in: Regenerate.
876 * coff-ia64.c: New file.
877 * efi-app-ia32.c: Ditto.
878 * efi-app-ia64.c: Ditto.
879 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
880 (coff_set_flags): Ditto.
881 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
882 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
883 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
884 * configure: Regenerate.
885 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
886 (PUT_OPTHDR_IMAGE_BASE): Ditto.
887 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
888 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
889 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
890 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
891 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
892 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
893 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
894 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
895 (GET_PDATA_ENTRY): Ditto.
896 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
897 data_start. Use above macros to read fields that are 64 bit wide for
898 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
899 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
900 FileAlignment and SectionAlignment to minimum alignment if they
901 are zero.
902 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
903 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
904 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
905 Use above macros to write fields that are 64 bit wide for
906 COFF_WITH_PEP64.
907 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
908 5*4 otherwise. This should be right for IA-32 and IA-64, but may
909 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
910 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
911 begin address, end address, and unwind info address only. Use
912 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
913 print addresses.
914 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
915 HIGH3ADJ relocation names.
916 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
917 * targets.c: Declare bfd_efi_app_ia32_vec and
918 bfd_efi_app_ia64_vec.
919 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
920 bfd_efi_app_ia64_vec.
921
922 2000-04-17 Timothy Wall <twall@cygnus.com>
923
924 * bfd-in2.h: Add prototypes for tic54x load page access.
925 * bfd-in.h: Regenerate.
926 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
927 in customized _set_arch_mach function.
928 * coffcode.h (coff_set_alignment_hook): Set section load page if
929 the appropriate macro is defined.
930 (write_object_contents): Read section load page.
931
932 2000-04-13 Alan Modra <alan@linuxcare.com.au>
933
934 * elf32-hppa.h: Update copyright date.
935
936 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
937 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
938
939 * elf32-d30v.c (MAX32): Don't use LL suffix.
940 (MIN32): Define in terms of MAX32.
941 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
942
943 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
944 expression.
945
946 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
947
948 2000-04-12 Alan Modra <alan@linuxcare.com.au>
949
950 * dep-in.sed: Match space before file name, not after.
951 * Makefile.am: Regenerate dependencies.
952 * Makefile.in: Regenerate.
953
954 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
955 case, allow address wrap-around stupidly removed 2000-03-17. Sign
956 extend without an if statement.
957
958 2000-04-11 Alan Modra <alan@linuxcare.com.au>
959
960 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
961 signed quantites.
962 * elf32-mips.c (gprel16_with_gp): Likewise.
963 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
964 here using -0x40000, not (int)0xfffc0000.
965 (elf32_hppa_size_of_stub): Likewise.
966
967 2000-04-11 Timothy Wall <twall@cygnus.com>
968
969 * coff-tic54x.c: Now builds with all targets.
970 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
971 * Makefile.in: Regenerate.
972 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
973 unitialized variable.
974
975 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
976
977 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
978 --enable-build-warnings option.
979 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
980 * Makefile.in, configure: Re-generate.
981
982 2000-04-07 Nick Clifton <nickc@cygnus.com>
983
984 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
985 BFD_RELOC_THUMB_PCREL_BLX.
986
987 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
988 R_ARM_XPC25 and R_ARM_THM_PC22.
989
990 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
991 R_ARM_XPC25 and R_ARM_THM_XPC22.
992 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
993 R_ARM_[XPC25|THM_XPC22].
994
995 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
996 elf/arm-oabi.h to elf/arm.h
997
998 * Makefile.am: Fix dependency for elfarm-oabi.c
999 * Makefile.in: Regenerate.
1000
1001 * bfd-in2.h: Regenerate.
1002 * libbfd.h: Regenerate.
1003
1004 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
1005
1006 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
1007 and restore it on failure. Release newly allocated tdata on
1008 failure.
1009
1010 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
1011
1012 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
1013 (decode_line_info): Set it. Report error if unit->line_offset is
1014 equal to or larger than it.
1015
1016 2000-04-07 Timothy Wall <twall@cygnus.com>
1017
1018 * targets.c: Added vecs for tic54x.
1019 * reloc.c: Added relocs for tic54x.
1020 * libbfd.h: Regenerated.
1021 * configure: Add TI COFF vecs for tic54x.
1022 * configure.in: Ditto.
1023 * config.bfd (targ_cpu): Recognize new tic54x target.
1024 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
1025 * bfd-in2.h: Add tic54x target and relocations.
1026 * Makefile.am, Makefile.in: Add tic54x target.
1027 * archures.c (bfd_archures_list): Add tic54x target.
1028 * coff-tic54x.c: New.
1029 * cpu-tic54x.c: New.
1030
1031 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
1032
1033 * elfcore.h (elf_core_file_p): call backend_object_p which
1034 thereby gets an opportunity to update the arch/machine type.
1035
1036 2000-04-06 Timothy Wall <twall@cygnus.com>
1037
1038 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
1039 class. Handle SEC_CLINK and SEC_BLOCK flags.
1040 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
1041 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
1042
1043 2000-04-06 Nick Clifton <nickc@cygnus.com>
1044
1045 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
1046 EF_INTERWORK if this is an unknown EABI.
1047 (elf32_arm_merge_private_bfd_data): Check EABI version
1048 numbers. Only check EF_xxx flags if the EABI version number
1049 is unknown.
1050 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
1051 if the EABI version number is unknown.
1052 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
1053 if the EABI version number is unknown.
1054
1055 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1056
1057 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
1058 BFD_RELOC_SH_LOOP_END.
1059 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
1060 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
1061 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
1062 (sh_elf_reloc_loop): New function.
1063 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
1064 any more.
1065 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
1066 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
1067 * bfd-in2.h, libbfd.h: Regenerate.
1068
1069 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1070
1071 * po/bfd.pot: Regenerate.
1072
1073 * Makefile.am: Remove extraneous mkdep comment.
1074 (MKDEP): Use gcc -MM rather than mkdep.
1075 (DEP): Quote when passing vars to sub-make. Add warning
1076 message to end.
1077 (DEP1): Rewrite for "gcc -MM".
1078 (CLEANFILES): Add DEP2.
1079 Update dependencies.
1080 * Makefile.in: Regenerate.
1081
1082 2000-04-03 Kevin Buettner <kevinb@redhat.com>
1083
1084 * configure.in: Added corefile support for AIX 4.3. In particular,
1085 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
1086 compiling rs6000-core.c.
1087 * configure: Regenerated.
1088
1089 2000-04-03 H.J. Lu <hjl@gnu.org>
1090
1091 * cache.c (bfd_open_file): Unlink the output file only if
1092 it has non-zero size.
1093
1094 2000-04-01 Ken Block USG <block@zk3.dec.com>
1095
1096 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
1097 relative relocations for non-loaded sections in shared objects.
1098 (elf64_alpha_check_relocs): Similarly.
1099
1100 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
1101
1102 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
1103 BFD_RELOC_16 to switch for extended relocs.
1104 (MY_swap_ext_reloc_in): New.
1105 (MY_swap_ext_reloc_out): New.
1106 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
1107 than NAME(aout,swap_ext_reloc_in) for extended relocs.
1108 (NAME(aout,squirt_out_relocs)): Similarly use
1109 MY_swap_ext_reloc_out.
1110 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
1111
1112 2000-04-03 Kazu Hirata <kazu@hxi.com>
1113
1114 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
1115 the R_PCRWORD_B case.
1116
1117 2000-03-31 Thomas de Lellis <tdel@wrs.com>
1118
1119 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
1120 on some targets.
1121 * ihex.c : Ditto.
1122
1123 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
1124
1125 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
1126 HOWTO references to bfd_elf_generic_reloc, that have
1127 partial_inplace == true, now use the new function. The function
1128 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
1129 extends its fixes to the R_M32R_{16,24,32} relocs.
1130 The new logic in m32r_elf_lo16_reloc() has been removed, and
1131 it instead calls the new routine to obtain that functionality.
1132
1133 2000-03-27 Alan Modra <alan@linuxcare.com.au>
1134
1135 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
1136 elf32_avr_check_relocs, avr_final_link_relocate,
1137 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
1138 elf32_avr_object_p): Add prototypes.
1139 (elf32_avr_gc_mark_hook): Add default for h->root.type.
1140 (bfd_elf_avr_final_write_processing): Make static.
1141
1142 2000-03-27 Denis Chertykov <denisc@overta.ru>
1143
1144 * cpu-avr.c: New file. BFD support routines for AVR architecture.
1145 * archures.c (bfd_architecture): Add AVR architecture.
1146 (bfd_archures_list): Add reference to AVR architecture info.
1147 * elf.c (prep_headers): Handle bfd_arch_avr.
1148 * reloc.c: Add various AVR relocation enums.
1149 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
1150 list.
1151 * Makefile.am: Add support for AVR elf.
1152 * configure.in: Likewise.
1153 * config.bfd: Likewise.
1154 * Makefile.in: Regenerate.
1155 * configure: This too.
1156 * bfd-in2.h: And this.
1157 * libbfd.h: And this.
1158
1159 2000-03-24 H.J. Lu <hjl@gnu.org>
1160
1161 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
1162 (elf64_alpha_find_reloc_at_ofs): Likewise.
1163
1164 2000-03-17 Alan Modra <alan@linuxcare.com.au>
1165
1166 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
1167 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
1168 allowable range used to be -2**(n-1) to 2**n-1.
1169 * reloc.c (_bfd_relocate_contents): Same here. Also replace
1170 "boolean overflow" with "bfd_reloc_status_type flag".
1171
1172 2000-03-14 Doug Evans <dje@casey.transmeta.com>
1173
1174 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
1175
1176 2000-03-14 Kazu Hirata <kazu@hxi.com>
1177
1178 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
1179 of shrinks properly, including the last reloc.
1180
1181 2000-03-13 Kazu Hirata <kazu@hxi.com>
1182
1183 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
1184 check for R_MOVL2.
1185
1186 2000-03-11 Alan Modra <alan@linuxcare.com.au>
1187
1188 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
1189 a format mismatch rather than an "error" from bfd_read such as
1190 bfd_error_file_truncated.
1191
1192 2000-03-10 Geoff Keating <geoffk@cygnus.com>
1193
1194 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
1195 sign-extension and big-endian compensation for
1196 R_MIPS_64 even in ld -r.
1197
1198 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
1199
1200 * elf32-mips.c (mips_elf_next_relocation): Rename from
1201 mips_elf_next_lo16_relocation, and generalize to look
1202 for any relocation type.
1203 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
1204 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
1205 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
1206 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
1207 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
1208 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
1209 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
1210 (mips_rtype_to_howto): Likewise.
1211 (mips_elf_calculate_relocation): Handle new relocs.
1212 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
1213 are paired. The addend for R_MIPS_GNU_REL16_S2
1214 is shifted right two bits.
1215
1216 2000-03-10 Alan Modra <alan@linuxcare.com.au>
1217
1218 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
1219 comment, and ensure it doesn't happen again.
1220 (bfd_install_relocation): Same here.
1221 (_bfd_relocate_contents): Don't bother assigning unused signmask
1222 shift result. Fix typos in comments.
1223 Remove trailing whitespace throughout file.
1224
1225 2000-03-07 Doug Evans <dje@casey.transmeta.com>
1226
1227 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
1228 * bfd-in2.h: Rebuild.
1229
1230 2000-03-06 Nick Clifton <nickc@cygnus.com>
1231
1232 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
1233 sym_ptr_ptr fields.
1234 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
1235 (SIZEOF_ILF_STRINGS): Redefine.
1236 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
1237 relative reloc, as opposed to a section relative reloc.
1238 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
1239 not C_LABEL.
1240 Add length of symbol's prefix to string pointer.
1241 Store a pointer to the symbol in the symbol pointer table.
1242 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
1243 Initialise the symbol pointer table.
1244 Store the hint in the Hint/Name table.
1245 Make the jump reloc be symbol realtive, not section relative.
1246 Create an import symbol for imported code.
1247
1248 2000-03-06 Catherine Moore <clm@cygnus.com>
1249
1250 * elf.c (swap_out_syms): Check for null type_ptr.
1251
1252 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
1253
1254 * aout-target.h (MY(write_object_contents)): Remove unused
1255 and unusable "#if CHOOSE_RELOC_SIZE".
1256 * pc532-mach.c (MY(write_object_contents)): Ditto.
1257 * netbsd.h (MY(write_object_contents)): Ditto.
1258 * hp300hpux.c (MY(write_object_contents)): Ditto.
1259 * freebsd.h (MY(write_object_contents)): Ditto.
1260 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
1261
1262 2000-02-29 H.J. Lu <hjl@gnu.org>
1263
1264 * peicode.h (jtab): Make it static.
1265
1266 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
1267 defined and COFF_IMAGE_WITH_PE is not defined.
1268 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
1269 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
1270
1271 2000-03-01 Nick Clifton <nickc@cygnus.com>
1272
1273 * coff-arm.c (bfd_arm_process_before_allocation): Make
1274 'symndx' signed to prevent compile time warning.
1275
1276 * coff-mcore.c: Remove unused prototype for pe_object_p.
1277
1278 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
1279 functions that are not used when COFF_IMAGE_WITH_PE is
1280 defined.
1281 (struct sh_opcode): Change type of 'flags' field to unsigned
1282 long so that it can hold the USESAS flag.
1283
1284 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
1285
1286 * elf-m10300.c (mn10300_elf_relax_section): Initialise
1287 'sym_sec'.
1288
1289 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
1290 parameters.
1291 Remove unusued variables and code.
1292 (elf_backend_add_symbol_hook): Fix prototype.
1293
1294 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
1295 'srelgot'.
1296
1297 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
1298 'oldinst'.
1299
1300 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
1301 parameters.
1302 Remove unusued variables and code.
1303 (elf_backend_add_symbol_hook): Fix prototype.
1304
1305 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
1306
1307 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
1308 to unused function parameter.
1309
1310 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
1311 parameters.
1312 Use EMPTY_HOWTO to initialise empty howto slots.
1313 Remove unused variables.
1314
1315 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
1316
1317 2000-03-01 H.J. Lu <hjl@gnu.org>
1318
1319 * aoutx.h (aout_link_input_section_std): Pass "true" to
1320 the undefined_symbol callback.
1321 (aout_link_input_section_ext): Likewise.
1322 * bout.c (get_value): Likewise.
1323 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
1324 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
1325 Likewise.
1326 (alpha_relocate_section): Likewise.
1327 * coff-arm.c (coff_arm_relocate_section): Likewise.
1328 * coff-i960.c (coff_i960_relocate_section): Likewise.
1329 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
1330 * coff-mips.c (mips_relocate_section): Likewise.
1331 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
1332 * coff-sh.c (sh_relocate_section): Likewise.
1333 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
1334 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
1335 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1336 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1337 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1338 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1339 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1340 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1341 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1342 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1343 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1344 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1345 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
1346 * elflink.h (elf_link_output_extsym): Likewise.
1347 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
1348 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
1349 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
1350
1351 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
1352 undefined_symbol callback when building shared library with
1353 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
1354 "true".
1355 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1356 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1357 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1358 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1359 (elf32_mips_get_relocated_section_content): Likewise.
1360 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1361 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1362 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1363 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1364
1365 2000-02-28 Nick Clifton <nickc@cygnus.com>
1366
1367 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
1368 * Makefile.in: Regenerate.
1369
1370 * configure.in: Add support for mips and sh pe vectors.
1371 * configure: regenerate.
1372
1373 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
1374 targets.
1375
1376 * targets.c: Add mips and sh pe vectors.
1377
1378 * libpei.h (coff_final_link_postscript): Only define if not
1379 already defined.
1380
1381 * coffcode.h: Add support for WinCE magic numbers.
1382
1383 * peigen.c (pe_print_reloc): Update comment and rearrange
1384 appending of newline character.
1385
1386 * peicode.h: Add support for Image Library Format.
1387 (pe_ILF_vars): Structure containing data used by ILF code.
1388 (pe_ILF_make_a_section): New function. Create a section based
1389 on ILF data.
1390 (pe_ILF_make_a_reloc): New function. Create a reloc based on
1391 ILF data.
1392 (pe_ILF_make_a_symbol): New function. Create a symbol based
1393 on ILF data.
1394 (pe_ILF_save_relocs): New function. Store the relocs created
1395 by pe_ILF_make_a_reloc in a section.
1396 (pe_ILF_build_a_bfd): New function. Create a BFD describing
1397 an ILF object.
1398 (pe_ILF_object_p): New function. Return a bfd_target pointer
1399 for an ILF object.
1400 (pe_bfd_object_p): If an ILF object is detected call
1401 pe_ILF_object_p on it.
1402
1403 * coff-arm.c: Add support for WinCE relocs which are different
1404 from normal ARM COFF relocs.
1405 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
1406
1407 * coff-sh.c: Add support for sh-pe target.
1408 * pe-sh.c: New file. Support code for sh-pe target.
1409 * pei-sh.c: New file. Support code for sh-pe target.
1410
1411 * pe-mips.c: New file. Support code for mips-pe target.
1412 * pei-mips.c: New file. Support code for mips-pe target.
1413
1414 2000-02-27 Jakub Jelinek <jakub@redhat.com>
1415
1416 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
1417 architecture if the object causing the bump is dynamic.
1418 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
1419 and also don't it for memory ordering.
1420 (sparc64_elf_write_relocs): Take src_rela out of the loop.
1421
1422 2000-02-27 Ian Lance Taylor <ian@zembu.com>
1423
1424 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
1425 calling bfd_get_section_size_before_reloc.
1426 (decode_line_info): Likewise.
1427 (_bfd_dwarf2_find_nearest_line): Likewise.
1428
1429 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
1430
1431 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
1432 name of the libtool directory.
1433 * Makefile.in: Rebuild.
1434
1435 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
1436
1437 * som.c (SOM_HOWTO): Define.
1438 (som_hppa_howto_table): Use it.
1439
1440 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1441
1442 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
1443
1444 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
1445
1446 2000-02-24 Catherine Moore <clm@cygnus.com>
1447
1448 * som.c (som_misc_symbol_info): Add field
1449 secondary_def.
1450 (som_bfd_derive_misc_symbol_info): Initialize
1451 secondary_def.
1452 (som_build_and_write_symbol_table): Keep track
1453 of secondary_def field.
1454 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
1455 if secondary_def field is set.
1456 (som_bfd_ar_write_symbol_stuff): Initialize
1457 secondary_def.
1458
1459 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
1460
1461 * dwarf2.c (read_address): Read 16-bits addresses.
1462 (parse_comp_unit): Accept addr_size == 2.
1463
1464 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1465
1466 * bfd-in.h: Update copyright date.
1467
1468 2000-02-23 Linas Vepstas <linas@linas.org>
1469
1470 * cpu-i370.c: New file.
1471 * elf32-i370.c: New file.
1472 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
1473 (bfd_i370_arch): New.
1474 (bfd_archures_list): Add bfd_i370_arch.
1475 * elf.c (prep_headers): Add bfd_arch_i370.
1476 * Makefile.am: Add support for IBM 370 elf.
1477 * config.bfd: Likewise.
1478 * configure.in: Likewise.
1479 * libbfd.h (bfd_reloc_code_real_names): Likewise.
1480 * reloc.c (bfd_reloc_code_type): Likewise.
1481 * targets.c: Likewise.
1482
1483 * Makefile.in: Regenerate.
1484 * configure: Regenerate.
1485 * bfd-in2.h: Regenerate.
1486
1487 2000-02-22 Ian Lance Taylor <ian@zembu.com>
1488
1489 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
1490 invalid relocation types, and change them to R_386_NONE.
1491
1492 2000-02-22 H.J. Lu <hjl@gnu.org>
1493
1494 * elflink.h (elf_link_add_object_symbols): If a version symbol is
1495 not defined, don't add a second ELF_VER_CHR.
1496
1497 * elflink.h (elf_bfd_final_link): Call output_extsym for global
1498 symbols converted to local symbols even when stripping all
1499 symbols.
1500 (elf_link_output_extsym): Process global symbols converted to
1501 local symbols even if they are being stripped.
1502
1503 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1504
1505 * archures.c (bfd_octets_per_byte): Return unsigned int.
1506 (bfd_arch_mach_octets_per_byte): Ditto.
1507 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
1508 comparison warning.
1509 * section.c (bfd_get_section_size_before_reloc): Quell signed
1510 vs. unsigned comparison warning.
1511 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
1512 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
1513 change. What was I thinking?
1514 * bfd-in2.h: Regenerate.
1515
1516 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
1517 (elf_gc_sections): Same here.
1518 (elf_gc_common_finalize_got_offsets): And here.
1519
1520 2000-02-21 Ian Lance Taylor <ian@zembu.com>
1521
1522 ELF HPPA doesn't work at present; remove it until it does.
1523 * config.bfd: Comment out setting targ_defvec to
1524 bfd_elf32_hppa_vec.
1525 * Makefile.am: Rebuild dependencies.
1526 (BFD32_BACKENDS): Remove elf32-hppa.lo.
1527 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
1528 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
1529 * Makefile.in: Rebuild.
1530 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
1531
1532 2000-02-18 Geoff Keating <geoffk@cygnus.com>
1533
1534 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
1535 is no bfd_free(). Revert bfd_free part of previous change.
1536
1537 2000-02-18 Geoff Keating <geoffk@cygnus.com>
1538
1539 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
1540 arrays.
1541 (coff_compute_section_file_positions): Use bfd_free to pair
1542 bfd_malloc.
1543 (coff_write_object_contents): Likewise.
1544
1545 * coff-rs6000.c (xcoff_howto_table_16): New variable.
1546 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
1547
1548 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
1549
1550 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
1551 (xcoff_ar_file_hdr_big): New structure.
1552 (SIZEOF_AR_FILE_HDR_BIG): New macro.
1553 (xcoff_ar_hdr_big): New structure.
1554 (SIZEOF_AR_HDR_BIG): New macro.
1555 (xcoff_big_format_p): New macro.
1556 (xcoff_ardata_big): New macro.
1557 (arch_xhdr_big): New macro.
1558 (xcoff_slurp_armap): Handle large archives.
1559 (xcoff_archive_p): Detect large archives.
1560 (xcoff_read_ar_hdr): Handle large archives.
1561 (xcoff_openr_next_archived_file): Handle large archives.
1562 (xcoff_generic_stat_arch_elt): Handle large archives.
1563 (xcoff_write_armap_old): Rename from xcoff_write_armap.
1564 (xcoff_write_armap_big): New function.
1565 (xcoff_write_armap): New function, dispatch to _old or _big.
1566 (xcoff_write_archive_contents_old): Rename from
1567 xcoff_write_archive_contents.
1568 (xcoff_write_archive_contents_big): New function.
1569 (xcoff_write_archive_contents): New function, dispatch to _old or
1570 _big.
1571
1572 2000-02-18 Richard Henderson <rth@cygnus.com>
1573
1574 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
1575 and hide_symbol members.
1576 (elf_link_hash_copy_indirect): Remove.
1577 (elf_link_hash_hide_symbol): Remove.
1578 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
1579 and elf_backend_hide_symbol.
1580 (_bfd_elf_link_hash_copy_indirect): Declare.
1581 (_bfd_elf_link_hash_hide_symbol): Declare.
1582 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
1583 (_bfd_elf_link_hash_hide_symbol): Likewise.
1584 (_bfd_elf_link_hash_table_init): Don't init killed members.
1585 * elflink.h (elf_link_add_object_symbols): Use the bed function
1586 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
1587 (elf_link_assign_sym_version): Likewise.
1588 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
1589 (elf_backend_hide_symbol): Likewise.
1590 (elfNN_bed): Update for new members.
1591
1592 2000-02-17 Kevin Buettner <kevinb@redhat.com>
1593
1594 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
1595 STACK_END_ADDR): Define for new core file format.
1596 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
1597 for handling the vagaries of the various core file structures used
1598 by AIX over the years.
1599 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
1600 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
1601 core_dumpx structure.
1602
1603 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1604
1605 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
1606 (bfd_mach_sh3_dsp): Likewise.
1607 (bfd_mach_sh4): Reinstate.
1608 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
1609 * bfd-in2.h: Regenerate.
1610 * coff-sh.c (struct sh_opcode): flags is no longer short.
1611 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
1612 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
1613 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
1614 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
1615 (sh_opcodes): No longer const.
1616 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
1617 (sh_insn_uses_reg): Check for USESAS and USESR8.
1618 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
1619 (_bfd_sh_align_load_span): Return early for SH4.
1620 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
1621 Take into account that field b of a parallel processing insn
1622 could be mistaken for a separate insn.
1623 * cpu-sh.c (arch_info_struct): New array elements for
1624 sh2, sh-dsp and sh3-dsp.
1625 Reinstate element for sh4.
1626 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
1627 (SH4_NEXT): Reinstate.
1628 (SH3_NEXT, SH3E_NEXT): Adjust.
1629 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
1630 * elf32-sh.c (sh_elf_set_private_flags): New function.
1631 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
1632 (sh_elf_merge_private_data): New function.
1633 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
1634 (bfd_elf32_bfd_copy_private_bfd_data): Define.
1635 (bfd_elf32_bfd_merge_private_bfd_data): Change to
1636 sh_elf_merge_private_data.
1637
1638 2000-02-13 Richard Henderson <rth@cygnus.com>
1639
1640 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
1641 hide_symbol members.
1642 (elf_link_hash_copy_indirect): New.
1643 (elf_link_hash_hide_symbol): New.
1644 * elflink.h (elf_link_add_object_symbols): Break out copy from
1645 indirect new new symbol to elf.c.
1646 (elf_link_assign_sym_version): Break out privatization of
1647 non-exported symbol to elf.c.
1648 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
1649 (_bfd_elf_link_hash_hide_symbol): New.
1650 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
1651
1652 2000-02-13 Ian Lance Taylor <ian@zembu.com>
1653
1654 * section.c (_bfd_strip_section_from_output): Add info parameter.
1655 If it passed as non-NULL, use it to check whether any input BFD
1656 has an input section which uses this output section. Change all
1657 callers.
1658 * bfd-in2.h: Rebuild.
1659
1660 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
1661 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
1662 1999-11-29.
1663 * bfd-in2.h: Rebuild.
1664
1665 2000-02-10 Timothy Wall <twall@cygnus.com>
1666
1667 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
1668 allow final modifications of swapped-in symbol.
1669 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
1670 * coffcode.h (coff_write_relocs): Use macro
1671 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
1672 symbol index should be set to -1.
1673
1674 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
1675
1676 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
1677 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
1678 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
1679 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
1680 sh_insns_uses_or_sets_freg): New functions.
1681 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
1682 * (sh_insns_conflict): Use new functions and new macros to
1683 detect conflicts when two instructions both set same integer registers,
1684 both set same fp register, and both set special register.
1685
1686 2000-02-09 Timothy Wall <twall@cygnus.com>
1687
1688 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
1689 swapping in sections, so that the swapping routines have access to
1690 the arch/mach info.
1691
1692 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
1693
1694 * coff-go32.c: Update comment. Update copyright.
1695
1696 2000-01-27 Thomas de Lellis <tdel@windriver.com>
1697
1698 * syms.c (bfd_decode_symclass)
1699 Two new class characters were added - 'V' and 'v'. The
1700 meaning of 'W' is now restricted to just weak non-object
1701 symbols. This allows differentiation between, for example,
1702 weak functions vs weak objects. nm for example now dumps:
1703 'W' = weak global
1704 'w' = weak unresolved
1705 'V' = weak global object
1706 'v' = weak unresolved object
1707
1708 (bfd_is_undefined_symclass): New function. Return true if the
1709 given symbol class represents and undefined/unresolved symbol.
1710
1711 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
1712 unresolved symbols.
1713
1714 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
1715
1716 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
1717 STT_ARM_16BIT flag set, but it is not attached to a data object
1718 return STT_ARM_16BIT so that it will be treated as code by the
1719 disassembler.
1720
1721 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1722
1723 * coff-i386.c (i3coff_object_p): Remove prototype.
1724 Update copyright.
1725
1726 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
1727 to name. Update copyright.
1728
1729 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
1730 assignment to avoid warning. Update copyright.
1731
1732 2000-01-24 Robert Lipe (robertl@sco.com)
1733
1734 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
1735 instead of using GNU C extension.
1736
1737 2000-01-21 Nick Clifton <nickc@cygnus.com>
1738
1739 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
1740 amount from a bfd_in_memory structure.
1741 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
1742 structure.
1743
1744 2000-01-14 Nick Clifton <nickc@cygnus.com>
1745
1746 * linker.c (default_indirect_link_order): oops - fix incorrectly
1747 applied patch from Tim Wall.
1748
1749 2000-01-13 Timothy Wall (twall@tiac.net>
1750
1751 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
1752 = scnhsz, filhsz, relsz, aoutsz, etc)
1753
1754 * coffswap.h: Ditto.
1755
1756 2000-01-13 Nick Clifton <nickc@cygnus.com>
1757
1758 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
1759 interwork thumb to arm stub.
1760
1761 2000-01-13 Timothy Wall (twall@tiac.net>
1762
1763 * archures.c (bfd_octets_per_byte): New function: Return
1764 target byte size.
1765 (bfd_arch_mach_octets_per_byte): New function: Return target
1766 byte size.
1767
1768 * section.c: Distinguish between octets and bytes for usage of
1769 _cooked_size, _raw_size, and output_offset. Clarify
1770 description of bfd_set_section_contents.
1771
1772 * bfd-in2.h: Regenerate.
1773
1774 * coffgen.c: Indicate that the offset parameter is in bytes, not
1775 octets.
1776
1777 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
1778 where appropriate to get the octet offset when calling
1779 bfd_set_section_contents.
1780 (bfd_coff_reloc_link_order): Ditto.
1781
1782 * linker.c (bfd_generic_reloc_link_order): Ditto.
1783 (_bfd_default_link_order): Ditto.
1784
1785 * reloc.c (bfd_perform_relocation): Distinguish between octets
1786 and bytes. Use octets when indexing into octet data; use bytes
1787 when calculating target addresses.
1788 (bfd_install_relocation): Ditto.
1789
1790 * srec.c (srec_write_section): Ditto.
1791
1792 2000-01-13 Nick Clifton <nickc@cygnus.com>
1793
1794 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
1795 3 to 2. This allows 4 byte sized sections, which is necessary for
1796 dlltool to build functioning DLLs.
1797
1798 2000-01-10 Philip Blundell <pb@futuretv.com>
1799
1800 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
1801 (arm*-*-conix*): New target.
1802
1803 2000-01-10 Egor Duda <deo@logos-m.ru>
1804
1805 * config.bfd: Include elf32_i386 vector to target list for cygwin
1806 and mingw.
1807
1808 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
1809 * configure.in: Test for structure win32_pstatus_t in
1810 <sys/procfs.h>
1811 * configure: Regenerate.
1812
1813 * elf.c (elfcore_grok_win32pstatus): New function: process
1814 win32_pstatus_t notes in elf core file.
1815 (elfcore_grok_note): Detect win32_pstatus notes.
1816
1817 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
1818
1819 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
1820 visibility.
1821 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
1822 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
1823
1824 1999-12-29 Richard Henderson <rth@cygnus.com>
1825
1826 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
1827 if no dynamic sections created.
1828
1829 1999-12-27 Nick Clifton <nickc@cygnus.com>
1830
1831 * peicode.h (pe_bfd_object_p): Only define for PE format
1832 targets.
1833
1834 1999-12-17 Nick Clifton <nickc@cygnus.com>
1835
1836 * coff-i386.c (i3coff_object_p): Delete.
1837 (i386coff_vec): Replace reference to i3coff_object_p with a
1838 reference to coff_object_p.
1839
1840 * coff-mcore.c (pe_object_p): Delete.
1841
1842 * peicode.h (pe_bfd_object_p): New function: Detect the
1843 presence of a PE format COFF object file. Also detect and
1844 warn about the presence of LINK6 format Image Library Format
1845 object files.
1846
1847 1999-12-16 Nick Clifton <nickc@cygnus.com>
1848
1849 * coff-arm.c (NUM_ELEM): New macro.
1850 (NUM_RELOCS): New macro: The number of known ARM relocs.
1851 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
1852 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
1853 of range.
1854 (bfd_arm_process_before_allocation): Produce a warning message if
1855 an out of range symbol index is encountered.
1856
1857 1999-12-14 Nick Clifton <nickc@cygnus.com>
1858
1859 * elflink.h (is_global_symbol_definition): New Function: Return
1860 true iff the symbol is being given a global definition in this
1861 bfd.
1862 (elf_link_is_defined_archive_symbol): Do not bother processing
1863 symbols for an archive element that has already been included
1864 in the link.
1865 Use is_global_symbol_definition().
1866
1867 1999-12-09 Andrew Cagney <cagney@cygnus.com>
1868
1869 * config.bfd: Add support for sparc-*-netbsdelf* and
1870 sparc-*-netbsdaout*.
1871
1872 1999-12-13 Nick Clifton <nickc@cygnus.com>
1873
1874 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
1875 if the symbol is in the common section.
1876
1877 1999-12-10 Nick Clifton <nickc@cygnus.com>
1878
1879 * elflink.h (elf_link_is_defined_archive_symbol): New
1880 function: Decide if a symbol, in an archive map is there
1881 because it is defined in the archive element, or because it is
1882 just another common declaration of it.
1883 (elf_link_add_archive_symbols): Use
1884 elf_link_is_defined_archive_symbol to decide if an archive
1885 element contain a reference to a common symbol should be
1886 linked in or not.
1887
1888 1999-12-10 Nick Clifton <nickc@cygnus.com>
1889
1890 * elflink.h: Revert previous patch.
1891 * targets.c: Revert previous patch.
1892 * libbfd-in2.h: Revert previous patch.
1893 * libbfd.h: Revert previous patch.
1894 * elfxx-target.h: Revert previous patch.
1895 * archive.c: Revert previous patch.
1896 * aout-target.h: Revert previous patch.
1897 * aout-tic30.h: Revert previous patch.
1898 * bfd.c: Revert previous patch.
1899 * coff-alpha.c: Revert previous patch.
1900 * coff-rs6000.c: Revert previous patch.
1901 * elf64-mips.c: Revert previous patch.
1902 * ieee.c: Revert previous patch.
1903 * libecoff.h: Revert previous patch.
1904 * oasys.c: Revert previous patch.
1905 * som.c: Revert previous patch.
1906 * vms.c: Revert previous patch.
1907
1908 1999-12-09 Nick Clifton <nickc@cygnus.com>
1909
1910 * elflink.h (elf_link_add_archive_symbols): Add an archive
1911 element even if contains a symbol which is currently only
1912 considered to be a common.
1913
1914 * targets.c (struct bfd_target): Add new field
1915 _bfd_allow_commons_in_armap.
1916 * bfd-in2.h:Regenerate.
1917
1918 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
1919 Define.
1920 (_bfd_archive_bsd_allow_commons_in_armap): Define.
1921 * libbfd.h: Regenerate.
1922
1923 * elfxx-target.h: If using COFF archive map, override
1924 definition of allow_commons_in_armap and replace with
1925 bfd_false.
1926
1927 * archive.c (bfd_compute_and_write_armap): Do not place common
1928 symbols into the archive map unless _bfd_allow_commons_in_armap
1929 returns true.
1930
1931 * aout-target.h (MY_allow_commons_in_armap): Define.
1932 * aout-tic30.h (MY_allow_commons_in_armap): Define.
1933 * bfd.c (bfd_allow_commons_in_armap): Define.
1934 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
1935 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
1936 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
1937 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
1938 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
1939 * oasys.c (oasys_allow_commons_in_armap): Define.
1940 * som.c (som_allow_commons_in_armap): Define.
1941 * vms.c (vms_allow_commons_in_armap): Define.
1942
1943 1999-12-07 Jim Blandy <jimb@cygnus.com>
1944
1945 Add support for SSE registers in ELF core files.
1946 * elf.c (elfcore_make_note_pseudosection): New function.
1947 (elfcore_grok_prfpreg): Use it.
1948 (elfcore_grok_prxfpreg): New function.
1949 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
1950
1951 1999-12-03 Ian Lance Taylor <ian@zembu.com>
1952
1953 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
1954 value by 4 before storing it back in the field. From
1955 Koundinya. K <kk@ddeorg.soft.net>.
1956
1957 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
1958
1959 * archures.c (bfd_mach_am33): Define.
1960 * bfd-in2.h: Rebuilt.
1961 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
1962 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
1963 (compute_function_info): Handle additional registers saved by
1964 movm on the am33.
1965 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
1966 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
1967
1968 1999-11-29 Jim Blandy <jimb@cygnus.com>
1969
1970 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1971 functions.
1972 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1973 declarations.
1974
1975 1999-11-27 Michael Meissner <meissner@cygnus.com>
1976
1977 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
1978 internal use within gas for alpha explicit relocations.
1979 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
1980 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
1981 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
1982 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
1983 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
1984 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
1985
1986 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
1987 BFD_RELOC_ALPHA_USER_*.
1988
1989 * bfd-in2.h: Regenerate.
1990 * libbfd.h: Regenerate.
1991
1992 1999-11-26 Fred Fish <fnf@cygnus.com>
1993
1994 * elf.c (elfcore_read_notes): Add prototype for static function.
1995 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
1996 (bfd_section_from_phdr): Replacement function that calls
1997 _bfd_elf_make_section_from_phdr for generic segment types and
1998 backend fucntion pointed to by elf_backend_section_from_phdr for
1999 backend specific segment types.
2000 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
2001 now called by _bfd_elf_make_section_from_phdr. Note that this func
2002 is now just a stub between the caller and bfd_section_from_phdr.
2003
2004 * elf-bfd.h (struct elf_backend_data): Add new function pointer
2005 elf_backend_section_from_phdr.
2006 (elf_backend_section_from_phdr): Add prototype.
2007
2008 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
2009 (elfNN_bed): Add elf_backend_section_from_phdr.
2010
2011 1999-11-25 Nick Clifton <nickc@cygnus.com>
2012
2013 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
2014 SEC_CODE and SEC_READONLY flags to glue sections.
2015
2016 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
2017 SEC_CODE and SEC_READONLY flags to glue sections.
2018
2019 1999-11-20 Nick Clifton <nickc@cygnus.com>
2020
2021 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
2022 delta.
2023
2024 1999-11-19 Catherine Moore <clm@cygnus.com>
2025
2026 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
2027 (elf_cpu32_plt_entry): Likewise.
2028
2029 1999-11-18 Nick Clifton <nickc@cygnus.com>
2030
2031 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
2032 for RVA relocs.
2033 (coff_mcore_relocate_section): Initialise addend to 0.
2034 Special case processing of RVA reloc.
2035
2036 1999-11-17 Richard Henderson <rth@cygnus.com>
2037
2038 * elf-bfd.h (struct elf_backend_data): Reorder collect and
2039 type_change_ok; add sign_extend_vma.
2040 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
2041 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
2042 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
2043 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
2044 (elfNN_bed): Follow struture changes.
2045
2046 1999-11-09 Ian Lance Taylor <ian@zembu.com>
2047
2048 * libbfd.c (bfd_read): Check result of read against desired result
2049 using !=, not <.
2050 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
2051 invalid compared to the section size.
2052
2053 * ieee.c (ieee_slurp_debug): Get the length of the debug
2054 information right if there is no data part.
2055
2056 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
2057
2058 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
2059 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
2060
2061 1999-10-28 Ian Lance Taylor <ian@zembu.com>
2062
2063 * elflink.h (elf_bfd_final_link): Make last_local signed.
2064
2065 1999-10-27 Ian Lance Taylor <ian@zembu.com>
2066
2067 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
2068 starts with a zero.
2069
2070 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
2071
2072 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
2073 bfd_mach_d10v_ts3.
2074 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
2075 * bfd-in2.h: Regenerate.
2076
2077 1999-10-15 Andrew Haley <aph@cygnus.com>
2078
2079 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
2080
2081 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
2082
2083 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
2084
2085 1999-10-08 Ian Lance Taylor <ian@zembu.com>
2086
2087 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
2088 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
2089 too.
2090
2091 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
2092
2093 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
2094 relocs also need the GP value.
2095 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
2096 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
2097 the GP value for R_MIPS_LITERAL relocs too. Handle
2098 R_MIPS_64 relocs properly on big-endian MIPS.
2099 (mips_elf_sign_extend): Behave properly with 'long long'.
2100 (mips_elf_highest): Correct typo.
2101
2102 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
2103
2104 * cpu-m32r.c (arch_info_struct): New static global.
2105 (bfd_m32r_arch): Refer to it.
2106 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
2107 (m32r_elf_print_private_bfd_data): Ditto.
2108 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
2109 * archures.c (bfd_mach_m32rx): Define it.
2110 * bfd-in2.h: Rebuild.
2111
2112 1999-09-28 Fred Fish <fnf@cygnus.com>
2113
2114 * targets.c (cisco_core_vec): Replaced with two new vecs ...
2115 (cisco_core_big_vec): Add new bigendian vec.
2116 (cisco_core_little_vec): Add new little endian vec.
2117
2118 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
2119 (crash_info_locs): Add array of possible offsets.
2120 (MASK_ADDR): Mask to apply to crash info offset.
2121 (crashinfo_external): Add textbase, database, bssbase and
2122 turn into a typedef.
2123 (cisco_core_file_validate): Renamed from cisco_core_file_p.
2124 Many small changes to account for additional hardware versions.
2125 Pick a reasonable size for ".reg" section. Add a ".crash"
2126 section to allow access to crashinfo_external struct.
2127 (cisco_core_file_p): New version of this function that
2128 iterates over crash_info_locs, calling cisco_core_file_validate.
2129 (cisco_core_vec): Old big endian only vec replaced with ...
2130 (cisco_core_big_vec): Add big endian version.
2131 (cisco_core_little_vec): Add little endian version.
2132
2133 * configure.in (cisco_core_vec): Split to two new vectors ...
2134 (cisco_core_big_vec): New target vector.
2135 (cisco_core_little_vec): New target vector.
2136 * configure: Regenerate.
2137 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
2138 to cisco_core_big_vec in targ_selvecs.
2139
2140 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
2141
2142 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
2143 (mips_elf_relocate_got_local): Unused, delete.
2144 (mips_elf_relocate_global_got): Unused, delete.
2145
2146 1999-09-24 Fred Fish <fnf@cygnus.com>
2147
2148 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
2149 to initialize it to something meaningful. Then use it to generate
2150 more useful segment names.
2151
2152 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
2153
2154 * som.c (NO_PCREL_MODES): Define if the system does not define
2155 R_SHORT_PCREL_MODE.
2156 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
2157 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
2158 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
2159 * libhppa.h (dis_assemble_22): New function.
2160 (bfd_hppa_insn2fmt): Handle long branch.
2161
2162 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
2163 in PA2.0.
2164
2165 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
2166
2167 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
2168 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
2169 (reloc_howto_type howto_table): Tidy comments and whitespace.
2170
2171 1999-09-17 Nick Clifton <nickc@cygnus.com>
2172
2173 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
2174 previous delta. Set sec->gc_mark instead.
2175
2176 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
2177
2178 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
2179 (elf_cpu32_plt_entry): Likewise.
2180
2181 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
2182
2183 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
2184
2185 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
2186 symbol table, then just compute a suitable value (but do not
2187 create a __gp symbol).
2188
2189 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
2190 symbols when building shared libraries.
2191 (elf_hppa_final_link_relocate): Correct handling of PCREL
2192 relocations against undefined symbols.
2193
2194 1999-09-16 Nick Clifton <nickc@cygnus.com>
2195
2196 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
2197 interworking sections as linker created so that they will not
2198 be removed by garbage collection.
2199
2200 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
2201
2202 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
2203 (elf_hppa_final_link_relocate): Consistently create an absolute
2204 address, then subtract out the value of __gp.
2205
2206 1999-09-14 Michael Meissner <meissner@cygnus.com>
2207
2208 * configure.in (Canonicalization of target names): Remove adding
2209 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
2210 generates $ac_config_sub with a ${CONFIG_SHELL} already.
2211 * configure: Regenerate.
2212
2213 1999-09-14 Nick Clifton <nickc@cygnus.com>
2214
2215 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
2216 Mitsubishi).
2217
2218 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
2219
2220 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
2221 (elf_hppa_final_link): Initialize text_segment_base and
2222 data_segment_base.
2223 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
2224
2225 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
2226 (elf_hppa_final_link_relocate): Likewise.
2227 (elf_hppa_relocate_insn): Likewise.
2228 (elf_hppa_relocate_section): Initialize HOWTO.
2229
2230 1999-09-13 Donn Terry <donn@interix.com>
2231
2232 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
2233 handling to support both GNU and MS objects.
2234
2235 * coffcode.h (coff_write_object_contents): Don't check reloc_count
2236 when determining whether to set F_RELFLG.
2237
2238 1999-09-13 Philip Blundell <pb@nexus.co.uk>
2239
2240 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
2241 PC24 relocs if the target is an undefined weak symbol.
2242 (arm_add_to_rel): Fix compiler warning.
2243 (elf32_arm_plt0_entry): Correct comments.
2244
2245 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
2246
2247 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
2248 an absolute symbol in REL relocs.
2249
2250 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
2251
2252 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
2253 Stub SEGREL32. Return an error for any relocation not handled.
2254
2255 1999-09-12 Ian Lance Taylor <ian@zembu.com>
2256
2257 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
2258 constant symbols, and avoid multiple definition errors on them.
2259
2260 1999-09-12 Donn Terry <donn@interix.com>
2261
2262 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
2263 significant bit is set.
2264
2265 1999-09-11 Ian Lance Taylor <ian@zembu.com>
2266
2267 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2268
2269 * elfcode.h (write_relocs): Handle an absolute symbol in REL
2270 relocs as we do for RELA relocs.
2271
2272 1999-09-11 Donn Terry <donn@interix.com>
2273
2274 * libpei.h (_bfd_pei_final_link_postscript): Declare.
2275 (coff_final_link_postscript): Define.
2276 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
2277 directory entries here.
2278 (_bfd_pei_final_link_postscript): New function.
2279
2280 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
2281 section flags based on the section name.
2282
2283 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
2284 get the overflow of the s_nlnno field from the s_nreloc field.
2285 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
2286 the s_nlnno overflow of the .text section into the s_nreloc
2287 field.
2288
2289 * peigen.c (add_data_entry): Declare.
2290 (pei_swap_aouthdr_out): Get image size right. Set linker version
2291 more intuitively.
2292 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
2293 (pe_print_idata): Code cleanup, print more info, get rid of (now)
2294 extraneous ImageBase.
2295 (pe_print_edata): Likewise.
2296 (pe_print_pdata): Likewise. Print exception entries.
2297 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
2298 (tbl): Make const, add "UNKNOWN".
2299 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
2300 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
2301 section data directory.
2302 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
2303
2304 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
2305 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
2306 * peicode.h (coff_get_symbol_info): Define.
2307
2308 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
2309 -DSTRICT_PE_FORMAT.
2310 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
2311 than __INTERIX.
2312 (coff_classify_symbol): Re-revert 1999-08-08 patch if
2313 STRICT_PE_FORMAT.
2314
2315 * libpei.h: New file, broken out of peicode.h.
2316 * peigen.c: New file, broken out of peicode.h.
2317 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
2318 * configure.in: Add peigen.lo to list of files required for each
2319 PE target.
2320 * Makefile.am: Rebuild dependencies.
2321 (BFD32_BACKENDS): Add peigen.lo.
2322 (BFD32_BACKENDS_CFILES): Add peigen.c.
2323 (SOURCE_HFILES): Add libpei.h.
2324 * configure, Makefile.in: Rebuild.
2325
2326 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
2327 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
2328 instead. Don't clear the s_paddr field for an uninitialized data
2329 section.
2330
2331 * coffcode.h (coff_mkobject_hook): Set timestamp field in
2332 coff_data_type to f_timdat.
2333 * peicode.h (pe_mkobject_hook): Likewise.
2334
2335 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
2336 number if COFF_IMAGE_WITH_PE.
2337
2338 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
2339 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
2340 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
2341 there is no SEC_DEBUGGING section.
2342 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
2343 IMAGE_FILE_DEBUG_STRIPPED.
2344
2345 * pe-i386.c (COFF_LONG_FILENAMES): Define.
2346 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2347 * pei-i386.c (COFF_LONG_FILENAMES): Define.
2348 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2349
2350 * coffswap.h (IMAGE_BASE): Don't define.
2351 * pei-arm.c (IMAGE_BASE): Don't define.
2352 * pei-i386.c (IMAGE_BASE): Don't define.
2353 * pei-mcore.c (IMAGE_BASE): Don't define.
2354 * pei-ppc.c (IMAGE_BASE): Don't define.
2355
2356 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
2357 symbol, switch on the class when determining whether to modify the
2358 value. For PE, don't modify the value of a C_FCN symbol not named
2359 .bf.
2360
2361 * libbfd-in.h (_bfd_abort): Declare.
2362 (abort): Define.
2363 * bfd.c (_bfd_abort): New function.
2364 * libbfd.h: Rebuild.
2365
2366 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
2367 special handling.
2368
2369 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
2370 don't write out the associated line numbers.
2371
2372 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
2373 aux entries.
2374
2375 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
2376 changes when the base type is unknown.
2377
2378 * coffgen.c (coff_print_symbol): Fix printing of aux record for
2379 function symbols.
2380
2381 * syms.c (BSF_DEBUGGING_RELOC): Define.
2382 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
2383 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
2384 symbols named .bf.
2385 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
2386 BSF_DEBUGGING_RELOC set.
2387 * bfd-in2.h: Rebuild.
2388
2389 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2390
2391 * ecoff.c (bfd_debug_section): Update initialization for new
2392 comdat_info field.
2393 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
2394 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
2395
2396 1999-09-10 H.J. Lu <hjl@gnu.org>
2397
2398 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
2399 _bfd_filnmlen field.
2400 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2401
2402 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
2403
2404 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
2405 for FPTR relocs involving local symbols.
2406
2407 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
2408 value for the stub address in a call through a stub.
2409 Install the value for a local symbol directly into the DLT
2410 instead of generating a reloc. Correctly handle FPTR64 relocs.
2411
2412 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
2413 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
2414 (elf_hppa_final_link): Call them.
2415
2416 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2417
2418 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
2419 (elf_adjust_dynamic_symbol): ...from here.
2420
2421 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
2422
2423 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
2424 relocation, remove them. SECREL64->LTOFF16WF.
2425 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
2426 DIR* relocations.
2427 (elf_hppa_relocate_insn): Similarly.
2428
2429 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
2430 (elf_hppa_relocate_insn): Similarly.
2431
2432 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
2433 GPREL* relocations.
2434 (elf_hppa_relocate_insn): Similarly.
2435
2436 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
2437 Handle LTOFF_TP* relocs.
2438 (elf_hppa_relocate_insn): Similarly.
2439
2440 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
2441 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
2442 (elf_hppa_relocate_insn): Handle PCREL* relocs.
2443
2444 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
2445 DIR32, DIR64 and FPTR64 relocations.
2446 (elf_hppa_relocate_insn): Similarly.
2447
2448 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
2449 address of the .PARISC.global section.
2450 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
2451 table entry elf_hppa_final_link_relocate. Do not give a warning
2452 for a reloc against an external symbol if it has a PA64 hash
2453 table entry.
2454 (elf_hppa_final_link_relocate): Significantly rework. Handle
2455 DLTIND relocations. Compute the final value of the relocation
2456 before passing the value of elf_hppa_relocate_insn.
2457 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
2458 relocation support. Handle DLTIND relocation requests just like
2459 DLTREL relocation requests. Simplify branch handling.
2460
2461 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
2462
2463 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
2464 non-allocated section as done in i386 version.
2465 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
2466 statement since this is no know relocation.
2467
2468 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
2469
2470 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
2471 relocs.
2472 (elf_hppa_relocate_insn): Similarly.
2473
2474 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
2475 DLTREL14WD relocs.
2476 (elf_hppa_relocate_insn): Similarly.
2477
2478 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
2479 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
2480 Pass the relocate type rather than the insn format to
2481 elf_hppa_relocate_insn.
2482 (elf_hppa_relocate_insn): Make switch dependent on relocation type
2483 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
2484
2485 1999-09-07 Ian Lance Taylor <ian@zembu.com>
2486
2487 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
2488 (bfd_coff_filnmlen): Define.
2489 (bfd_coff_std_swap_table): Initialize new field.
2490 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
2491 than FILNMLEN.
2492 (coff_write_symbols): Likewise.
2493 (coff_get_normalized_symtab): Likewise.
2494 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
2495 * libcoff.h: Rebuild.
2496
2497 1999-09-06 Donn Terry <donn@interix.com>
2498
2499 * coffcode.h (sort_by_secaddr): New static function if
2500 COFF_IMAGE_WITH_PE.
2501 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
2502 sections by VMA when assigning target_index values. Always set
2503 virt_size.
2504
2505 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
2506 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
2507 pe_flags field.
2508 * libcoff.h: Rebuild.
2509
2510 * coffcode.h (coff_set_custom_section_alignment): Add const to
2511 declaration to match definition.
2512 (coff_write_object_contents): Don't set F_AR32W(R)? if
2513 COFF_WITH_PE.
2514
2515 * coff-i386.c (in_reloc_p): Add declaration.
2516 (i386coff_vec): Simplify initialization of
2517 application_section_flags.
2518
2519 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
2520 version. Move COFF_WITH_PE specific code to new version.
2521 (stype_to_sec_flags): Likewise. Add section parameter.
2522 * coffgen.c (make_a_section_from_file): Set target_index before
2523 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
2524 * libcoff.h: Rebuild.
2525
2526 * syms.c (stt): Add some PE/PEI section names.
2527 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
2528 symbol.
2529 (bfd_symbol_info): Check for 'w'.
2530
2531 * section.c (struct bfd_comdat_info): Define.
2532 (asection): Add comdat field.
2533 (STD_SECTION): Initialize comdat field.
2534 (bfd_make_section_anyway): Likewise.
2535 * bfd-in2.h: Rebuild.
2536
2537 1999-09-06 Andreas Schwab <schwab@suse.de>
2538
2539 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
2540 to version symbols.
2541
2542 1999-09-06 Nick Clifton <nickc@cygnus.com>
2543
2544 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
2545 bfd_realloc instead of calloc and realloc.
2546
2547 1999-09-04 Steve Chamberlain <sac@pobox.com>
2548
2549 * cpu-pj.c: New file.
2550 * elf32-pj.c: New file.
2551 * config.bfd (pj*): New cpu.
2552 (pj-*-*, pjl-*-*): New targets.
2553 * configure.in (bfd_elf32_pj_vec): New target vector.
2554 (bfd_elf32_pjl_vec): New target vector.
2555 * archures.c (bfd_arch_pj): Define.
2556 * elf.c (prep_headers): Handle bfd_arch_pj.
2557 * reloc.c: Define BFD_RELOC_PJ_* relocations.
2558 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
2559 to target vector list.
2560 * Makefile.am: Rebuild dependencies.
2561 (ALL_MACHINES): Add cpu-pj.lo.
2562 (ALL_MACHINES_CFILES): Add cpu-pj.c.
2563 (BFD32_BACKENDS): Add elf32-pj.lo.
2564 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
2565 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
2566
2567 1999-09-04 Ian Lance Taylor <ian@zembu.com>
2568
2569 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
2570 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
2571 and NON_GOT_REF from weak defined symbol to real symbol.
2572 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
2573 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
2574 create a COPY reloc.
2575 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
2576 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
2577 don't create a COPY reloc.
2578
2579 1999-09-03 Ian Lance Taylor <ian@zembu.com>
2580
2581 * elflink.h (elf_bfd_final_link): When counting relocations, don't
2582 count those in sections we are not including in the link.
2583
2584 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
2585
2586 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
2587 field in hpux11 shared libraries.
2588
2589 1999-09-02 Nick Clifton <nickc@cygnus.com>
2590
2591 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
2592
2593 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
2594
2595 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
2596 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
2597 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
2598
2599 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
2600
2601 * elflink.h (record_link_assignment): When possible, keep the
2602 original type of the symbol.
2603
2604 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
2605
2606 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
2607 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
2608 tools were configured.
2609 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
2610
2611 1999-08-26 Mark Mitchell <mark@codesourcery.com>
2612
2613 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
2614 GOT entries for GOT16 relocations; they're not required.
2615
2616 1999-08-24 Nick Clifton <nickc@cygnus.com>
2617
2618 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
2619
2620 * config.bfd (arm-*-netbsd*): New target.
2621 * configure.in (armnetbsd_vec): New target vector.
2622 * configure: Regenerate
2623 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
2624
2625 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
2626 (ALL_MACHINES_CFILES): Add armnetbsd.c.
2627 (armnetbsd.lo): New rule with deps.
2628 * Makefile.in: Regenerate.
2629
2630 * armnetbsd.c: New file: Definitions specific to arm-netbsd
2631 target.
2632
2633 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
2634
2635 * som.c (som_slurp_symbol_table): Fix typo in comment.
2636
2637 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
2638
2639 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
2640 here instead of using elf_section_data...
2641
2642 1999-08-19 Nick Clifton <nickc@cygnus.com>
2643
2644 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
2645 relocations into the base file.
2646 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
2647 we are building a base file.
2648
2649 1999-08-19 Nick Clifton <nickc@cygnus.com>
2650
2651 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
2652 a REL style reloc.
2653 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
2654 REL relocs when performing a partial relocation.
2655
2656 1999-08-18 Donn Terry <donn@interix.com>
2657
2658 * cofflink.c: Move definitions of N_TMASK, et. al., out of
2659 _bfd_coff_link_input_bfd into top level.
2660
2661 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
2662 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
2663 (coff_i386_rtype_to_howto): Likewise.
2664 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
2665 Completely ignore symbols which are all zero.
2666 (dummy_reloc16_estimate): Add return 0.
2667 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
2668 variable copy to name_copy to avoid shadowing outer scope
2669 variable.
2670 * libcoff-in.h (coff_data_type): Change raw_syment_count field
2671 from unsigned int to unsigned long. Add timestamp field.
2672 * libcoff.h: Rebuild.
2673
2674 1999-08-17 H.J. Lu <hjl@gnu.org>
2675
2676 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
2677 macro definition.
2678
2679 1999-08-17 Ian Lance Taylor <ian@zembu.com>
2680
2681 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
2682 for special section symbols.
2683 * elflink.h (elf_merge_symbol): If we have no old BFD, check
2684 BSF_DYNAMIC on the section symbol to see whether the old BFD is
2685 dynamic.
2686
2687 1999-08-15 Mark Mitchell <mark@codesourcery.com>
2688
2689 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
2690 coincidence of variable names between old and new code.
2691
2692 1999-08-12 Nick Clifton <nickc@cygnus.com>
2693
2694 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
2695 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
2696 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
2697 and 'addend' parameter a 'bfd_signed_vma'.
2698 (elf32_arm_final_link_relocate): Do not involve stubs in
2699 R_ARM_THM_PC22 relocs relative to section symbols, they are long
2700 jumps, not function calls.
2701
2702 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
2703
2704 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
2705 in R_ARM_PC24 relocs.
2706
2707 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
2708
2709 * elf-hppa.h (elf_hppa_fake_sections): New function.
2710 * elf32-hppa.c (elf_backend_fake_sections): Define.
2711
2712 * elf-hppa.h (elf_hppa_final_write_processing): Update for
2713 recent changes to the arch_info structure.
2714
2715 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
2716 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
2717 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
2718 list.
2719
2720 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
2721 Ralf Baechle <ralf@uni-koblenz.de>
2722
2723 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
2724 output DT_MIPS_GOTSYM.
2725 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
2726 DT_MIPS_SYMTABNO if there are no global GOT symbols.
2727
2728 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
2729
2730 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
2731 prototype. Handle local symbols. Add commentary.
2732 (mips_elf_calculate_relocation): Adjust accordingly.
2733 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
2734 relocations.
2735
2736 * elflink.h (elf_bfd_final_link): Tweak last change.
2737
2738 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2739
2740 * elflink.h (elf_link_size_reloc_section): Use the counts in the
2741 elf-section data to allocate just the right amount of relocation
2742 space. Don't allocate the hash space twice.
2743 (elf_bfd_final_link): Calculate the amount of space to allocate in
2744 each relocation section.
2745
2746 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
2747
2748 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
2749 64bit mode, generate a section relative relocation for a 32bit
2750 wide relocation.
2751 (elf_hppa_is_local_label_name): New function.
2752 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
2753 shared between 32bit and 64bit port.
2754
2755 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2756
2757 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
2758 R_MIPS_GOT16 and R_MIPS_CALL16.
2759 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
2760 to use when looking for a preexisting GOT entry.
2761
2762 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
2763
2764 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
2765 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
2766 not binutils.
2767 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2768
2769 1999-08-09 Geoff Keating <geoffk@cygnus.com>
2770
2771 * elflink.h (elf_link_output_extsym): Don't output a weak
2772 reference to an undefined symbol just because it was defined weak
2773 in a shared object.
2774
2775 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
2776
2777 * coffgen.c (coff_find_nearest_line): When looking for file, use
2778 last best match rather than first. If address is beyond last line
2779 number record, don't return the last line as the correct value.
2780
2781 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2782
2783 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
2784 * bfd-in2.h: Rebuild.
2785
2786 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
2787
2788 * libcoff-in.h (struct coff_section_alignment_entry): Define.
2789 * coffcode.h (coff_set_custom_section_alignment): New static
2790 function.
2791 (coff_section_alignment_table): New static array.
2792 (coff_new_section_hook): Use coff_set_customer_section_alignment.
2793 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2794 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2795 * libcoff.h: Rebuild.
2796
2797 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2798
2799 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
2800 MKDEP.
2801 * Makefile.in: Rebuild.
2802
2803 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
2804
2805 * section.c (SEC_SHARED): Define.
2806 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
2807 (styp_to_sec_flags): Likewise.
2808 * peicode.h (coff_swap_scnhdr_out): Likewise.
2809 * bfd-in2.h: Rebuild.
2810
2811 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2812
2813 * coffcode.h (coff_classify_symbol): Comment out part of
2814 1999-08-05 change which breaks cygwin DLLs.
2815
2816 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
2817 * aclocal.m4, configure: Rebuild.
2818
2819 1999-08-06 Ian Lance Taylor <ian@zembu.com>
2820
2821 * section.c (global_syms): Only initialize union field if
2822 __STDC__.
2823
2824 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2825
2826 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
2827 the size of a GOT entry here.
2828 (mips_elf_calculate_relocation): Don't create a local GOT entry
2829 for the symbol in a GOT16 relocation; just for it's high-order bit
2830 (_bfd_mips_elf_relocate_section): Fix thinko.
2831
2832 1999-08-05 Ian Lance Taylor <ian@zembu.com>
2833
2834 Based on patches from Donn Terry <donn@interix.com>:
2835 * coffcode.h (enum coff_symbol_classification): Define.
2836 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
2837 _bfd_coff_classify_symbol. Change return type.
2838 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
2839 (coff_slurp_symbol_table): Use coff_classify_symbol.
2840 (coff_classify_symbol): New static function.
2841 (coff_sym_is_global): Never define.
2842 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
2843 * cofflink.c (coff_link_check_ar_symbols): Use
2844 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
2845 (coff_link_add_symbols): Likewise.
2846 (_bfd_coff_link_input_bfd): Likewise.
2847 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
2848 coff_classify_symbol.
2849 * libcoff.h: Rebuild.
2850
2851 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
2852
2853 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
2854 (e_ltpsel, e_rtpsel): Similarly.
2855
2856 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
2857 and 14bit ertpsel. Handle 64bit psel.
2858
2859 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2860
2861 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
2862 handling for REL relocations. And only left-shift R_MIPS26
2863 relocation addends where necessary.
2864
2865 1999-08-03 Mark Mitchell <mark@codesourcery.com>
2866
2867 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
2868 (mips_elf_next_lo16_relocation): Don't compute the addend here.
2869 Just return the relocation found.
2870 (mips_elf_relocate_section): Pull the LO16 addend out of the
2871 section itself when using REL relocations.
2872
2873 * elf32-mips.c (mips_elf_calculate_relocation): Restore
2874 _DYNAMIC_LINK handling and handling of undefined symbols in shared
2875 libraries.
2876
2877 1999-08-03 Ian Lance Taylor <ian@zembu.com>
2878
2879 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
2880 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
2881 relocation against a symbol in an input section with no output
2882 section. From Daniel Jacobowitz <drow@false.org>.
2883
2884 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
2885
2886 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
2887 look for generated file correctly.
2888 * aclocal.m4, configure: Rebuild.
2889
2890 1999-08-02 Mark Mitchell <mark@codesourcery.com>
2891
2892 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
2893 and R_MIPS16_26 relocations correctly when relocating.
2894 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
2895 and R_MIPS_CALL_LO16 are for global symbols.
2896
2897 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
2898
2899 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
2900 some fields.
2901 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
2902 variables and initialize them.
2903
2904 1999-08-01 Mark Mitchell <mark@codesourcery.com>
2905
2906 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
2907 there are no global symbols requiring GOT entries.
2908 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2909 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
2910 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
2911
2912 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
2913 symbols are considered to have the value zero.
2914 (_bfd_mips_elf_relocate_section): Don't try to perform a
2915 relocation for an undefined symbol.
2916 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
2917 GOT16 relocations.
2918
2919 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2920
2921 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
2922 wants ba,a,pt %xcc instead of %icc.
2923 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
2924 of large PLT entries.
2925 (sparc64_elf_plt_ptr_offset): Fix calculation.
2926 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
2927 addend should be relative to load address, not .plt section start.
2928 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
2929
2930 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2931
2932 * elf-bfd.h (struct elf_backend_data): Add
2933 print_symbol_all and output_arch_syms backend methods.
2934 * elfxx-target.h: Likewise.
2935 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
2936 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
2937 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
2938 functions.
2939 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
2940 symbols in .dynsym, add their names into .dynstr. Put those symbols
2941 into dynlocal.
2942 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
2943 pointers to STT_REGISTER symbols in dynsym section.
2944 (sparc64_elf_print_symbol_all): New function.
2945 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
2946 printing using the print_symbol_all hook.
2947
2948 1999-07-30 Catherine Moore <clm@cygnus.com>
2949
2950 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
2951 R_ARM_GNU_VTENTRY.
2952
2953 1999-07-29 Richard Henderson <rth@cygnus.com>
2954
2955 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
2956 dynamic_sections_created.
2957
2958 1999-07-29 Richard Henderson <rth@cygnus.com>
2959
2960 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
2961 (mips_rtype_to_howto): ... new function.
2962 (_bfd_mips_elf_relocate_section): Use it.
2963
2964 1999-07-28 Mark Mitchell <mark@codesourcery.com>
2965
2966 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
2967
2968 1999-07-27 Nick Clifton <nickc@cygnus.com>
2969
2970 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
2971
2972 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
2973 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
2974
2975 1999-07-23 Donn Terry <donn@interix.com>
2976
2977 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
2978 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
2979 * cofflink.c (coff_link_add_symbols): If PE, handle section
2980 symbols specially.
2981 * libcoff.h: Rebuild.
2982
2983 * config.bfd (i[3456]86-*-interix*): New target.
2984
2985 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
2986
2987 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
2988 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
2989 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
2990 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
2991 (COFF_SUPPORT_GNU_LINKONCE): Define.
2992 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
2993 (COFF_SUPPORT_GNU_LINKONCE): Define.
2994
2995 1999-07-21 Ian Lance Taylor <ian@zembu.com>
2996
2997 From Mark Elbrecht:
2998 * makefile.dos: Remove; obsolete.
2999 * configure.bat: Remove; obsolete.
3000
3001 1999-07-21 H.J. Lu <hjl@gnu.org>
3002
3003 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
3004
3005 1999-07-21 Philippe De Muyter <phdm@macqel.be>
3006
3007 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
3008 message and fail if a symbol index is out of range.
3009
3010 1999-07-21 Ian Lance Taylor <ian@zembu.com>
3011
3012 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
3013 when looking at a R_MIPS_GOT16 relocation.
3014
3015 1999-07-20 Nick Clifton <nickc@cygnus.com>
3016
3017 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3018
3019 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
3020
3021 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
3022 removed in previous change.
3023 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
3024 in relocateable output.
3025
3026 1999-07-19 Ian Lance Taylor <ian@zembu.com>
3027
3028 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
3029 structure.
3030
3031 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
3032 if they appear to be specially created by the linker.
3033
3034 1999-07-19 Nick Clifton <nickc@cygnus.com>
3035
3036 * targets.c (alternative_target): New field in bfd_target
3037 structure.
3038 (bfd_search_for_target): New function: Find a target that
3039 satisifies a search function.
3040 * bfd-in2.h: Regenerate.
3041
3042 * elfxx-target.h: Initialise the alternative_target field of
3043 the bfd_target structures to point to the other target (if
3044 defined).
3045 * nlm-target.h: Initialise the alternative_target field of
3046 the bfd_target structures to point to the other target (if
3047 defined).
3048
3049 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
3050 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
3051
3052 * aix386-core.c: Initialise new field of bfd_target structure.
3053 * aout-adobe.c: Initialise new field of bfd_target structure.
3054 * aout-arm.c: Initialise new field of bfd_target structure.
3055 * aout-target.h: Initialise new field of bfd_target structure.
3056 * aout-tic30.c: Initialise new field of bfd_target structure.
3057 * binary.c: Initialise new field of bfd_target structure.
3058 * bout.c: Initialise new field of bfd_target structure.
3059 * cisco-core.c: Initialise new field of bfd_target structure.
3060 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3061 * coff-alpha.c: Initialise new field of bfd_target structure.
3062 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
3063 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3064 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
3065 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
3066 * coff-i386.c: Initialise new field of bfd_target structure.
3067 * coff-i860.c: Initialise new field of bfd_target structure.
3068 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3069 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3070 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3071 * coff-mips.c: Initialise new field of bfd_target structure.
3072 * coff-ppc.c: Initialise new field of bfd_target structure.
3073 * coff-rs6000.c: Initialise new field of bfd_target structure.
3074 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3075 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
3076 * coff-tic30.c: Initialise new field of bfd_target structure.
3077 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3078 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3079 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3080 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3081 * hppabsd-core.c: Initialise new field of bfd_target structure.
3082 * hpux-core.c: Initialise new field of bfd_target structure.
3083 * i386msdos.c: Initialise new field of bfd_target structure.
3084 * i386os9k.c: Initialise new field of bfd_target structure.
3085 * ieee.c: Initialise new field of bfd_target structure.
3086 * ihex.c: Initialise new field of bfd_target structure.
3087 * irix-core.c: Initialise new field of bfd_target structure.
3088 * mipsbsd.c: Initialise new field of bfd_target structure.
3089 * netbsd-core.c: Initialise new field of bfd_target structure.
3090 * oasys.c: Initialise new field of bfd_target structure.
3091 * osf-core.c: Initialise new field of bfd_target structure.
3092 * ppcboot.c: Initialise new field of bfd_target structure.
3093 * ptrace-core.c: Initialise new field of bfd_target structure.
3094 * sco5-core.c: Initialise new field of bfd_target structure.
3095 * som.c: Initialise new field of bfd_target structure.
3096 * srec.c: Initialise new field of bfd_target structure.
3097 * tekhex.c: Initialise new field of bfd_target structure.
3098 * trad-core.c: Initialise new field of bfd_target structure.
3099 * versados.c: Initialise new field of bfd_target structure.
3100 * vms.c: Initialise new field of bfd_target structure.
3101
3102 1999-07-19 Andreas Schwab <schwab@suse.de>
3103
3104 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
3105 and rel_hdr.
3106
3107 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
3108
3109 * elflink.h (elf_link_adjust_relocs): New function.
3110 (elf_bfd_final_link): Use it.
3111 (elf_link_input_bfd): Deal with the fact that there can be
3112 two relocation sections for a single section.
3113 (elf_reloc_link_order): Likewise.
3114
3115 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
3116 a relocateable object.
3117 (_bfd_mips_elf_relocate_section): Handle relocateable links.
3118
3119 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
3120
3121 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
3122 (sparc64_elf_get_reloc_upper_bound,
3123 sparc64_elf_get_dynamic_reloc_upper_bound,
3124 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
3125 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
3126 New functions.
3127 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
3128 ELF64_R_TYPE_ID/DATA where appropriate.
3129
3130 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
3131
3132 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
3133 DT_SPARC_PLTFMT.
3134
3135 1999-07-16 Ian Lance Taylor <ian@zembu.com>
3136
3137 * elf32-mips.c (mips_elf_local_relocation_p): New static
3138 function.
3139 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
3140 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
3141 Always set *require_jalxp.
3142 (mips_elf_stub_section_p): Mark abfd parameter as unused.
3143 (_bfd_mips_elf_relocate_section): Only look for LO16 following
3144 GOT16 if the GOT16 is against a local symbol. Don't return false
3145 for an undefined symbol. If there is an overflow, assert that we
3146 have a name.
3147
3148 1999-07-16 Andreas Schwab <schwab@suse.de>
3149
3150 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
3151 variables `link' and `elfsec'.
3152 (elf_bfd_final_link): Remove unused variable `os'.
3153
3154 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
3155
3156 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
3157 a PT_PHDR program headers.
3158 (_bfd_mips_elf_final_link): Don't assume there are going to be
3159 section symbols when we're not building a shared object.
3160 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
3161 we need one.
3162
3163 1999-07-15 J.T. Conklin <jtc@redback.com>
3164
3165 * config.bfd (i[3456]86-*-vxworks*): New target.
3166
3167 1999-07-15 Mark Mitchell <mark@codesourcery.com>
3168
3169 * elf32-mips.c (mips_elf_stub_section_p): New function.
3170 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
3171 (mips_elf_relocate_section): Adjust calling sequence for
3172 mips_elf_calculate_relocation and mips_elf_perform_relocation.
3173 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
3174 required.
3175
3176 1999-07-15 Ian Lance Taylor <ian@zembu.com>
3177
3178 * configure.in: Bump version number to 2.9.5.
3179 * configure: Rebuild.
3180
3181 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
3182
3183 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
3184 64bit format.
3185 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
3186 to derive final type instead of hardwiring a selection.
3187
3188 1999-07-14 Mark Mitchell <mark@codesourcery.com>
3189
3190 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
3191 things relocated by R_MIPS16_GPREL.
3192 (mips_elf_perform_relocation): Likewise.
3193
3194 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
3195
3196 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
3197
3198 1999-07-14 Richard Henderson <rth@cygnus.com>
3199
3200 * elf32-mips.c (struct mips_got_info): Add global_gotno.
3201 (_bfd_mips_elf_size_dynamic_sections): Set it.
3202 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
3203 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
3204 new argument max_local.
3205
3206 1999-07-14 Mark Mitchell <mark@codesourcery.com>
3207
3208 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
3209 subwords when handling an R_MIPS16_26 relocation.
3210 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
3211 semantics.
3212
3213 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
3214 dst_mask to match reality.
3215 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
3216 (mips_elf_obtain_contents): Use bfd_get.
3217 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
3218 (mips_elf_relocate_section): Likewise.
3219
3220 1999-07-13 Mark Mitchell <mark@codesourcery.com>
3221
3222 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
3223 (mips_elf_relocate_section): Adjust calling sequence for
3224 mips_elf_perform_relocation.
3225 (mips_elf_perform_relocation): Take additional argument. Handle
3226 R_MIPS16_26. Use bfd_put for convenience.
3227
3228 1999-07-13 Richard Henderson <rth@cygnus.com>
3229
3230 * elf.c (assign_file_positions_for_segments): Thinko last change.
3231 Always overwrite p_flags.
3232
3233 1999-07-13 Richard Henderson <rth@cygnus.com>
3234
3235 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
3236 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
3237 .dynbss and .rel[a].bss if want_dynbss.
3238 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
3239
3240 1999-07-13 Richard Henderson <rth@cygnus.com>
3241
3242 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
3243
3244 1999-07-13 Richard Henderson <rth@cygnus.com>
3245
3246 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
3247 (struct elf_link_hash_table): Add dynlocal.
3248 (_bfd_elf_link_lookup_local_dynindx): Prototype.
3249 (_bfd_elf_link_adjust_dynindx): Delete.
3250 (_bfd_elf_link_renumber_dynsyms): Prototype.
3251 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
3252 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
3253 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
3254 (_bfd_elf_link_lookup_local_dynindx): New function.
3255 (elf_link_renumber_hash_table_dynsyms): New function.
3256 (_bfd_elf_link_renumber_dynsyms): New function.
3257 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
3258 (struct elf_assign_sym_version_info): Delete removed_dynamic.
3259 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
3260 instead of elf_link_remove_section_and_adjust_dynindices.
3261 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
3262 (elf_link_assign_sym_version): Remove removed_dynamic code.
3263 (elf_link_renumber_dynsyms): Delete.
3264 (elf_bfd_final_link): Install section and local symbols into .dynsym.
3265
3266 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
3267 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
3268 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
3269 * elf32-mips.c: Similarly.
3270 * elf32-ppc.c: Similarly.
3271 * elf32-sparc.c: Similarly.
3272 * elf64-alpha.c: Similarly.
3273 * elf64-sparc.c: Similarly.
3274
3275 1999-07-13 Mark Mitchell <mark@codesourcery.com>
3276
3277 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
3278 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
3279 when the relocation is against _gp_disp.
3280
3281 1999-07-12 Mark Mitchell <mark@codesourcery.com>
3282
3283 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
3284 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
3285 to possibly_dynamic_relocs. Adjust usage throughout code.
3286 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
3287 (elf_mips_ctor64_howto): Likewise.
3288 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
3289 Adjust indentation.
3290 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
3291 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
3292 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
3293 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
3294
3295 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3296
3297 * Makefile.am: Rebuild dependencies.
3298 * Makefile.in: Rebuild.
3299
3300 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
3301 * bfd-in2.h: Rebuild.
3302
3303 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3304 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
3305 structure initializations. Add casts.
3306 * reloc.c (EMPTY_HOWTO): Define.
3307 * bfd-in2.h: Rebuild.
3308 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
3309 comparisons against 0.
3310 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
3311 previous_ibfd_e_flags to unsigned long.
3312 * vms.h (struct vms_private_data_struct): Change section_count to
3313 unsigned.
3314 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
3315 (_bfd_vms_write_gsd): Change symnum to unsigned.
3316 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
3317 * vms-tir.c (etir_sta): Change psect to unsigned.
3318 (alloc_section): Change idx to unsigned.
3319 (tir_sta, tir_ctl): Change psect to unsigned.
3320 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
3321 * vms.c (priv_section_count): Change to unsigned.
3322
3323 1999-07-12 Andreas Schwab <schwab@suse.de>
3324
3325 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
3326 * m68klinux.c: Likewise.
3327
3328 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3329
3330 * Many files: Changes to avoid gcc warnings: Remove unused local
3331 variables. Add default case to enum switches.
3332 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
3333 compile if not COFF_IMAGE_WITH_PE.
3334 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
3335 (bfd_arm_get_bfd_for_interworking): Likewise.
3336 (bfd_arm_process_before_allocation): Likewise.
3337 * epoc-pei-arm.c: Don't rename bfd_arm functions.
3338 * pei-arm.c: Likewise.
3339 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
3340 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
3341 (mips_elf_got16_entry): Put parens around & in body of ==.
3342 (mips_elf_calculate_relocation): Correct test for empty string.
3343 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
3344 stderr.
3345 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
3346 format.
3347
3348 1999-07-11 Ian Lance Taylor <ian@zembu.com>
3349
3350 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3351 as appropriate. Fill in structure initializations. Add variable
3352 initializations. Add casts.
3353 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
3354 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
3355
3356 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
3357 char *.
3358 * elf-bfd.h (bfd_elf_hash): Update declaration.
3359 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
3360 when calling bfd_elf_hash.
3361
3362 1999-07-11 Mark Mitchell <mark@codesourcery.com>
3363
3364 * libbfd.c (bfd_put_8): Make it of type `void'.
3365 * bfd-in2.h: Regenerated.
3366 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
3367 for 32-bit hosts.
3368 (_bfd_mips_elf_final_link): Likewise.
3369
3370 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
3371
3372 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
3373
3374 * config.bfd (hppa*-*-linux-gnu*): New target
3375
3376 1999-07-07 Mark Mitchell <mark@codesourcery.com>
3377
3378 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
3379 (_bfd_mips_elf_create_dynamic_sections): New function.
3380 (_bfd_mips_elf_add_symbol_hook): Likewise.
3381 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
3382 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
3383 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
3384 (_bfd_mips_elf_gc_mark_hook): Likewise.
3385 (_bfd_mips_elf_gc_sweep_hook): Likewise.
3386 (_bfd_mips_elf_always_size_sections): Likewise.
3387 (_bfd_mips_elf_size_dynamic_sections): Likewise.
3388 (_bfd_mips_elf_check_relocs): Likewise.
3389 (_bfd_mips_elf_link_hash_table_create): Likewise.
3390 (_bfd_mips_elf_print_private_data): Likewise.
3391 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
3392 (_bfd_mips_elf_final_link): Likewise.
3393 (_bfd_mips_elf_additional_program_headers): Likewise.
3394 (_bfd_mips_elf_modify_segment_map): Likewise.
3395 (_bfd_mips_elf_relocate_section): Likewise.
3396 * elf32-mips.c (mips_elf32_object_p): Move contents into
3397 _bfd_mips_elf_object_p.
3398 (mips_elf_additional_program_headers): Rename to
3399 _bfd_mips_elf_additional_program_headers.
3400 (mips_elf_modify_segment_map): Rename to
3401 _bfd_mips_elf_modify_segment_map.
3402 (elf_mips_abi_name): Change prototype.
3403 (mips_elf32_section_from_shdr): Merge into
3404 _bfd_mips_elf_section_from_shdr.
3405 (mips_elf32_section_processing): Merge into
3406 _bfd_mips_elf_section_processing.
3407 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
3408 the right back-end ELF linker.
3409 (mips_elf_relocate_section): Rename to
3410 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
3411 (mips_elf_link_output_symbol_hook): Rename to
3412 _bfd_mips_elf_link_output_symbol_hook.
3413 (mips_elf_create_dynamic_section): Rename to
3414 _bfd_mips_elf_create_dynamic_section.
3415 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
3416 Adjust for 64-bit code. Use mips_elf_got_section.
3417 (mips_elf_adjust_dynamic_symbol): Rename to
3418 _bfd_mips_elf_adjust_dynamic_symbol. Use
3419 mips_elf_allocate_dynamic_relocations.
3420 (mips_elf_finish_dynamic_symbol): Rename to
3421 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
3422 Adjust for 64-bit code.
3423 (mips_elf_finish_dynamic_sections): Rename to
3424 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
3425 (mips_elf_always_size_sections): Rename to
3426 _bfd_mips_elf_always_size_sections.
3427 (mips_elf_add_symbol_hook): Rename to
3428 _bfd_mips_elf_add_symbol_hook.
3429 (mips_elf_next_lo16_addend): Constify.
3430 (mips_elf_calculate_relocation): Likewise.
3431 (mips_elf_obtain_contents): Likewise.
3432 (mips_elf_perform_relocation): Likewise.
3433 (mips_elf_create_dynamic_relocation): Likewise.
3434 (mips_elf_allocate_dynamic_relocations): New function.
3435 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
3436 (MIPS_ELF_REL_SIZE): Likewise.
3437 (MIPS_ELF_DYN_SIZE): Likewise.
3438 (MIPS_ELF_GOT_SIZE): Likewise.
3439 (MIPS_ELF_SYM_SIZE): Likewise.
3440 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
3441 (MIPS_ELF_GET_WORD): Likewise.
3442 (MIPS_ELF_PUT_WORD): Likewise.
3443 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
3444 (STUB_LW): Conditionalize for 64-bit value.
3445 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
3446 entries.
3447 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
3448 Check it for inconsistency.
3449 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
3450 ABI.
3451 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
3452 .msym.
3453 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
3454 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
3455 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
3456 (mips_elf_local_got_index): Likewise.
3457 (mips_elf_got_page): Likewise.
3458 (mips_elf_got_info): Likewise.
3459 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
3460 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
3461 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
3462 instead of constant `2'.
3463 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
3464 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
3465 (mips_elf_size_dynamic_sections): Use
3466 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
3467 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
3468 Adjust all releveant entries in elf backend table.
3469 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
3470 (mips_elf64_section_processing): Likewise.
3471 Adjust elf backend entries to use _bfd_mips_elf variants now
3472 publicly available.
3473
3474 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
3475 hash-entry sizes.
3476 (size_dynamic_sections): Likewise.
3477 (elf_link_output_extsym): Likewise.
3478 * elf.c: (elf_fake_sections): Likewise.
3479 * libbfd.c (bfd_get): New macro.
3480 (bfd_put): Likewise.
3481 * bfd-in2.h: Regenerated.
3482
3483 1999-07-07 Mark Mitchell <mark@codesourcery.com>
3484
3485 * elf-bfd.h (elf_size_info): Add hash_entry_size,
3486 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
3487 wap_reloca_in, and swap_reloca_out.
3488 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
3489 multiple internal relocations per external relocation.
3490 (link_read_relocs): Likewise.
3491 (elf_bfd_final_link): Likewise.
3492 (elf_link_input_bfd): Likewise.
3493 (elf_gc_mark): Likewise.
3494 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3495 * elfcode.h (elf_swap_dyn_out): Adjust type to match
3496 elf_swap_dyn_in.
3497 (size_info): Add entries for new fields.
3498 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
3499 (mips_elf64_be_swap_reloc_in): New function.
3500 (mips_elf64_be_swap_reloc_out): Likewise.
3501 (mips_elf64_be_swap_reloca_in): Likewise.
3502 (mips_elf64_be_swap_reloca_out): Likewise.
3503 (mips_elf64_size_info): Add entries for new fields.
3504
3505 1999-07-07 Ian Lance Taylor <ian@zembu.com>
3506
3507 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
3508 field equals the new rel_count field.
3509 (elf_link_input_bfd): When doing a relocateable link, use the new
3510 rel_count field rather than the reloc_count field.
3511 (elf_reloc_link_order): Likewise.
3512 (elf_finish_pointer_linker_section): Likewise.
3513
3514 Based on patch from H.J. Lu <hjl@gnu.org>:
3515 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
3516 shared library to override a weak definition in a regular object.
3517
3518 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
3519
3520 * libhppa.h: Revert July 2, 1999 patch.
3521
3522 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
3523 need to generate DLTIND relocations, not DLTREL relocations.
3524
3525 1999-07-05 Nick Clifton <nickc@cygnus.com>
3526
3527 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
3528 architectures.
3529 (coff_set_flags): Recognise arm 5 architectures.
3530
3531 * cpu-arm.c: Add support for strongarm and arm9 cpus.
3532 Add support for armv5 architecture.
3533
3534 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
3535
3536 * reloc.c: Add new, assembler only, ARM reloc:
3537 BFD_RELOC_ARM_ADRL_IMMEDIATE.
3538
3539 * bfd-in2.h: Regenerate.
3540
3541 1999-07-02 Mark Mitchell <mark@codesourcery.com>
3542
3543 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
3544 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
3545 * elf.c (_bfd_elf_find_nearest_line): Pass it.
3546 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
3547 * elf32-mips.c (ABI_64_P): New macro.
3548 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
3549 (_bfd_mips_elf_find_nearest_line): Adjust call to
3550 _bfd_dwarf2_find_nearest_line.
3551 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3552 * libbfd.h: Regenerated.
3553
3554 1999-07-02 Ian Lance Taylor <ian@zembu.com>
3555
3556 * config.bfd: Add * at the end of i[3456]86-*-unixware.
3557
3558 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
3559
3560 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
3561 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
3562
3563 1999-07-01 Mark Mitchell <mark@codesourcery.com>
3564
3565 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
3566 fields.
3567 (_bfd_elf_init_reloc_shdr): New function.
3568 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
3569 bfd_alloc followed by memset.
3570 (_bfd_elf_init_reloc_shdr): New function, split out from ...
3571 (elf_fake_sections): Here.
3572 (assign_section_numbers): Assign section numbers for the second
3573 relocation section, if required.
3574 * elflink.h (elf_link_output_relocs): New function.
3575 (elf_link_size_reloc_section): Likewise.
3576 (elf_bfd_final_link): Use elf_link_size_reloc_section.
3577 (elf_link_input_bfd): Use elf_link_output_relocs.
3578
3579 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
3580 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
3581
3582 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
3583
3584 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
3585 with 22bit format.
3586
3587 1999-06-28 Mark Mitchell <mark@codesourcery.com>
3588
3589 * elf32-mips.c (mips_elf_got_info): Move declaration before
3590 prototypes. Change global_gotsym to be a pointer to a hash entry,
3591 rather than a number index.
3592 (mips_elf_link_hash_entry): Move declaration before prototypes.
3593 (mips_elf_irix6_finish_dynamic_symbol): New function.
3594 (mips_elf_sign_extend): Likewise.
3595 (mips_elf_high): Likewise.
3596 (mips_elf_higher): Likewise.
3597 (mips_elf_highest): Likewise.
3598 (mips_elf_global_got_index): Likewise.
3599 (mips_elf_local_got_index): Likewise.
3600 (mips_elf_got_offset_from_index): Likeiwse.
3601 (mips_elf_record_global_got_symbol): Likewise.
3602 (mips_elf_got_page): Likewise.
3603 (mips_elf_next_lo16_addend): Likewise.
3604 (mips_elf_calculate_relocation): Likewise.
3605 (mips_elf_obtain_contents): Likewise.
3606 (mips_elf_perform_relocation): Likewise.
3607 (mips_elf_assign_gp): Likewise.
3608 (mips_elf_sort_hash_table_f): Likewise.
3609 (mips_elf_sort_hash_table): Likewise.
3610 (mips_elf_got_section): Likewise.
3611 (mips_elf_got_info): Likewise.
3612 (mips_elf_create_local_got_entry): Likewise.
3613 (mips_elf_got16_entry): Likewise.
3614 (mips_elf_create_dynamic_relocation): Likewise.
3615 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
3616 (mips_elf_final_gp): Use mips_elf_assign_gp.
3617 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
3618 into SHN_SCOMMON automatically on IRIX6.
3619 (mips_elf_add_symbol_hook): Likewise.
3620 (mips_elf_relocate_section): Rewrite, using
3621 mips_elf_calculate_relocation and mips_elf_perform_relocation.
3622 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
3623 Don't deal with .rld_map on IRIX6.
3624 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
3625 section flags appropriately for .got.
3626 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
3627 the got. Call mips_elf_record_global_got_symbol and allocate
3628 local got space appropriately.
3629 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
3630 char *. Rework calculation of GOT size. Sort dynamic symbol
3631 table entries so entries that do not require GOT entries appear at
3632 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
3633 code dealing with DT_INIT and DT_FINI. Remove fiddling with
3634 global_gotsym.
3635 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
3636 entries.
3637 (mips_elf_finish_dynamic_symbol): Use
3638 mips_elf_irix6_finish_dynamic_symbol.
3639 (mips_elf_finish_dynamic_sections): Correct off-by-one error
3640 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
3641 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
3642
3643 1999-06-30 Ian Lance Taylor <ian@zembu.com>
3644
3645 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
3646 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
3647
3648 1999-06-04 Philip Blundell <philb@gnu.org>
3649
3650 * elf32-arm.h (elf_backend_got_header_size): Define.
3651 (elf_backend_plt_header_size): Likewise.
3652
3653 1999-06-28 Jim Pick <jim@jimpick.com>
3654
3655 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
3656
3657 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
3658
3659 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
3660 relocation function.
3661 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
3662
3663 1999-06-27 Mark Mitchell <mark@codesourcery.com>
3664
3665 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
3666 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
3667 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
3668 (_bfd_mips_elf_section_from_shdr): Use them.
3669 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
3670 of GP-relative sections.
3671 (_bfd_mips_elf_set_section_contents): Use them.
3672 (_bfd_mips_elf_section_processing): Share code between .sdata and
3673 .lit4/.lit8 sections. Set appropriate flags for .srdata.
3674 (mips_elf_additional_program_headers): Add handling for
3675 PT_MIPS_OPTIONS segment on IRIX6.
3676 (mips_elf_modify_segment_map): Likeiwse.
3677 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
3678 Include the options sections on IRIX6. Don't look for GP-relative
3679 sections by name; use SHF_MIPS_GPREL instead.
3680 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
3681 the N32 ABI.
3682 (mips_elf_create_dynamic_sections): Don't muck about with section
3683 alignments and such on IRIX6.
3684 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3685 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
3686 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
3687 bfd_zalloc rather than bfd_alloc and memset.
3688 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3689 Don't assert the existence of .rld_map on IRIX6.
3690 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
3691
3692 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
3693 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
3694 instead.
3695
3696 1999-06-26 Mark Mitchell <mark@codesourcery.com>
3697
3698 * elf32-mips.c (mips_elf_swap_msym_in): New function.
3699 (mips_elf_swap_msym_out): New function.
3700 (mips_elf_create_msym_section): Likewise.
3701 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
3702 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
3703 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
3704 section not named .msym.
3705 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
3706 .msym directly. Set appropriate attributes for the .msym
3707 section.
3708 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
3709 (mips_elf_link_hash_newfunc): Clear it.
3710 (mips_elf_create_dynamic_sections): Create the .msym section
3711 on IRIX6.
3712 (mips_elf_size_dynamic_sections): Allocate space for the
3713 .msym section. Add a DT_MIPS_MSYM entry.
3714 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
3715 the symbol.
3716 (mips_elf_finish_dynamic_sections): Assign a value for
3717 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
3718
3719 * elf32-mips.c (irix_compat_t): New enumeration.
3720 (ABI_N32_P): New macro.
3721 (IRIX_COMPAT): Likewise.
3722 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
3723 (mips_elf_relocate_section): Fix typo.
3724
3725 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
3726
3727 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
3728 as writable PE sections.
3729
3730 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3731
3732 * dwarf2.c (struct arange): New type.
3733 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
3734 (arange_add): New function.
3735 (decode_line_info): Keep track of address ranges that a compilation
3736 unit covers.
3737 (comp_unit_contains_address): Return true if address is contained
3738 in _any_ of the address ranges associated with a compilation unit.
3739 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
3740 on the first comp_unit that contains the address.
3741
3742 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3743
3744 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
3745 (decode_line_info): Add variable STASH and initialize it to point
3746 to the per-bfd dwarf2_debug info. Remove static variable
3747 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
3748
3749 1999-06-26 Ian Lance Taylor <ian@zembu.com>
3750
3751 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
3752 shared library to have an undefined symbol.
3753
3754 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3755 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
3756
3757 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
3758
3759 * elf-hppa.c (elf_hppa_final_write_processing): New function.
3760 * elf32-hppa.c: Remove everything related to symbol extension
3761 sections & records. Use the common elf_hppa_final_write_processing.
3762
3763 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3764
3765 * elflink.h (size_dynamic_sections): Use user-specified init/fini
3766 functions instead of _init/_fini if requested.
3767
3768 1999-06-23 Ian Lance Taylor <ian@zembu.com>
3769
3770 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
3771 field.
3772
3773 1999-06-22 Ian Lance Taylor <ian@zembu.com>
3774
3775 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3776 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
3777 field to 0, not -1.
3778 (ppc_elf_finish_dynamic_sections): Check for positive section
3779 dynindx field, rather than comparing against -1.
3780 (ppc_elf_relocate_section): Only return false if undefined_symbol
3781 or reloc_overflow fail, not always upon encountering an error.
3782
3783 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3784
3785 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
3786 bfd_byte * before performing pointer arithmetic.
3787
3788 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
3789
3790 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
3791 support.
3792 * elf32-hppa.c: Include elf-hppa.h.
3793 (ARCH_SIZE): Define.
3794 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
3795 now.
3796 (elf32_hppa_info_to_howto): Similarly.
3797 (elf_hppa_howto_table): Similarly.
3798 (elf_hppa_reloc_type_lookup): Similarly.
3799 (hppa_elf_gen_reloc_type): Similarly.
3800 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
3801
3802 1999-06-22 Nick Clifton <nickc@cygnus.com>
3803
3804 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
3805 handling R_V850_22_PCREL relocation.
3806
3807 1999-06-21 Ian Lance Taylor <ian@zembu.com>
3808
3809 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
3810 type.
3811
3812 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
3813
3814 * section.c (_bfd_strip_section_from_output): Ignore sections
3815 DISCARDed by the link script.
3816
3817 1999-06-19 Ian Lance Taylor <ian@zembu.com>
3818
3819 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3820 Remove unused local variable spp.
3821
3822 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
3823 the entry symbol is not set.
3824
3825 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
3826
3827 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
3828 GPDISP or LITUSE in a relocatable link.
3829
3830 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3831
3832 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
3833 * (alloc_dwarf1_func): Likewise.
3834
3835 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
3836
3837 * libhppa.h: Fix various formatting errors.
3838 (assemble_3); Rewrite using CATENATE.
3839 (assemble_17): Fix various bugs.
3840
3841 1999-06-16 Nick Clifton <nickc@cygnus.com>
3842
3843 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
3844
3845 1999-06-15 Richard Henderson <rth@cygnus.com>
3846
3847 * section.c (SEC_SHORT): Define.
3848 * bfd-in2.h: Rebuild.
3849
3850 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3851
3852 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3853 Remove abfd parameter. Use _bfd_strip_section_from_output.
3854 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
3855
3856 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
3857 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
3858 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
3859 function.
3860 (bfd_elf_size_dynamic_sections): Use it.
3861
3862 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
3863
3864 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
3865 complain_overflow_bitfield to complain_overflow_signed.
3866
3867 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3868
3869 * elflink.h (elf_link_read_relocs_from_section): New function,
3870 split out from ...
3871 (elf_link_read_relocs): Here. Use it for both relocation
3872 sections.
3873
3874 1999-06-12 Mark Mitchell <mark@codesourcery.com>
3875
3876 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
3877 asect->reloc_count is valid.
3878
3879 1999-06-12 Ian Lance Taylor <ian@zembu.com>
3880
3881 * elf32-mips.c (mips_elf32_section_processing): Permit a
3882 SHT_MIPS_REGINFO section to have a size of 0.
3883
3884 1999-06-12 David O'Brien <obrien@freebsd.org>
3885
3886 * config.bfd (alpha*-*-freebsd*): New target.
3887 (i[3456]86-*-freebsd*): Now defaults to ELF.
3888
3889 1999-06-11 Ian Lance Taylor <ian@zembu.com>
3890
3891 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
3892 wrap if the relocation covers the high bit of an address.
3893
3894 * dwarf2.c (decode_line_info): Remove unused variable first_time.
3895
3896 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
3897
3898 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
3899 instead of R_SPARC_max.
3900 (sparc64_elf_info_to_howto): Likewise.
3901 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
3902 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
3903
3904 1999-06-07 Richard Henderson <rth@cygnus.com>
3905
3906 * section.c (_bfd_strip_section_from_output): Remove output
3907 sections with no initial link_order.
3908
3909 1999-06-07 Nick Clifton <nickc@cygnus.com>
3910
3911 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
3912
3913 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3914
3915 * Makefile.am (SOURCE_HFILES): Add missing headers.
3916 * Makefile.in: Regenerated.
3917
3918 1999-06-06 Mark Mitchell <mark@codesourcery.com>
3919
3920 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
3921 the N32 ABI.
3922
3923 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3924
3925 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
3926 range undefweak symbols.
3927 * hash.c: Add missing comma after @xref{}
3928 * linker.c: Likewise.
3929
3930 1999-06-04 Nick Clifton <nickc@cygnus.com>
3931
3932 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
3933 if not defined.
3934 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
3935 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
3936 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
3937 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
3938
3939 1999-06-04 Ian Lance Taylor <ian@zembu.com>
3940
3941 * Makefile.am: Rebuild dependencies.
3942 (BFD32_BACKENDS): Add dwarf1.lo.
3943 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
3944 * Makefile.in: Rebuild.
3945
3946 1999-06-04 Nick Clifton <nickc@cygnus.com>
3947
3948 * Makefile.am: Add epoc-arm-pe target.
3949 * Makefile.in: Regenerate.
3950 * pe-arm.c: Only redefine interworking function names if they have
3951 not already been redefined.
3952 * pei-arm.c: Only redefine interworking function names if they have
3953 not already been redefined.
3954 * epoc-pe-arm.c: Redefine interworking function names to avoid a
3955 name space clash.
3956 * epoc-pei-arm.c: Redefine interworking function names to avoid a
3957 name space clash.
3958
3959 1999-06-03 Nick Clifton <nickc@cygnus.com>
3960
3961 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
3962
3963 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3964
3965 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
3966
3967 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3968
3969 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
3970 start / stop for recalculating of r_addend of R_SH_SWITCH*.
3971
3972 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3973
3974 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
3975 in other text sections.
3976
3977 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3978
3979 * libbfd.c (_bfd_generic_verify_endian_match): New function.
3980 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
3981 * libbfd.h: Regenerate.
3982 * coff-sh.c (sh_merge_private_data): Delete.
3983 (coff_bfd_merge_private_bfd_data): Change to
3984 _bfd_generic_verify_endian_match.
3985 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
3986
3987 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
3988
3989 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
3990
3991 1999-06-03 Ian Lance Taylor <ian@zembu.com>
3992
3993 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
3994 prototype.
3995 (bfd_elf32_arm_process_before_allocation): Likewise.
3996 * bfd-in2.h: Rebuild.
3997
3998 1999-06-03 David Mosberger <davidm@hpl.hp.com>
3999
4000 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
4001 track of end_sequence markers.
4002 (add_line_info): Add END_SEQUENCE arg.
4003 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
4004 debug-line info---it doesn't work right if a compilation unit
4005 consists of multiple discontiguous code-sequences. It would be
4006 worthwhile to optimize for the common case where a compilation
4007 unit results in a contiguous set of code sequences, but this is
4008 quite tricky to get right for arbitrary DWARF2 files.
4009 (lookup_address_in_line_info_table): Don't use the last line entry
4010 for a compilation unit for anything with an address higher than
4011 this line entry. Also, check for end_sequence markers to
4012 correctly handle discontinuities.
4013 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
4014 compilation units, check all compilation units with each->high==0
4015 just like when reading compilation units.
4016
4017 * dwarf2.c (decode_line_info): Initialize table->files and
4018 table->last_line to NULL to avoid segfaults due to random
4019 values in these members.
4020 (concat_filename): Check for out-of-range file number before
4021 indexing filename table. Segfaults suck.
4022
4023 * dwarf2.c (decode_line_info): Don't truncate address to least
4024 significant 32 bits (breaks 64 bit targets).
4025 (lookup_address_in_function_table): Ditto.
4026 (comp_unit_contains_address): Ditto.
4027
4028 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
4029
4030 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
4031 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
4032 (mips_elf64_howto_table_rela): Likewise.
4033
4034 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
4035 split out from ...
4036 (elf_slurp_reloc_table): Here. Use it to handle the case where a
4037 single section has two associated relocation sections.
4038
4039 1999-06-02 Mark Salter <msalter@cygnus.com>
4040
4041 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
4042 COFF_WITH_PE defined.
4043
4044 1999-06-02 Nick Clifton <nickc@cygnus.com>
4045
4046 * pe-arm.c: Rename global arm interworking functions to avoid name
4047 collision when all targets BFD is built.
4048 * pei-arm.c: Ditto.
4049
4050 1999-05-31 Mark Mitchell <mark@codesourcery.com>
4051
4052 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
4053 may_use_rel_p, may_use_rela_p, default_use_rela_p.
4054 (bfd_elf_section_data): Add use_rela_p.
4055 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
4056 (_bfd_elf_new_section_hook): Likewise.
4057 (elf_fake_sections): Use may_use_rela_p, etc., instead of
4058 use_rela_p.
4059 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
4060 * elfcode.h (write_relocs): Determine whether or not use rela
4061 relocs based on the relocation section header.
4062 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
4063 instead of use_rela_p.
4064 * elfxx-target.h (elf_backend_may_use_relp): New macro.
4065 (elf_backend_may_use_rela_p): Likewise.
4066 (elf_backend_default_use_rela_p): Likewise.
4067 (elfNN_bed): Use them.
4068
4069 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
4070
4071 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
4072
4073 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
4074
4075 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
4076 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
4077 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
4078 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
4079 * bfd-in2.h: Regenerated.
4080 * libbfd.h: Likewise.
4081 * elf32-mips.c (mips_info_to_howto_rela): New function.
4082 (USE_REL): Adjust for new conventions.
4083 (MINUS_ONE): New macro.
4084 (elf_mips_howto_table): Add R_MIPS_SUB.
4085 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
4086 and MIPS_GOT_DISP.
4087 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
4088 .MIPS.content section.
4089 (_bfd_mips_elf_fake_sections): Treat all sections that begin
4090 with .MIPS.content as .MIPS.content sections. Set
4091 SHF_MNIPS_NOSTRIP for such section.
4092 (elf_info_to_howto): Define to mips_info_to_howto_rela.
4093 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
4094 MIPS_GOT_OFST, and MIPS_GOT_DISP.
4095
4096 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4097
4098 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
4099 variable.
4100
4101 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
4102 `else'.
4103
4104 1999-05-30 Philip Blundell <philb@gnu.org>
4105
4106 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
4107 1993-03-25 (!!). Take into account the bitmasks for the reloc so
4108 the addend does not overflow into the rest of the word.
4109
4110 1999-05-29 Nick Clifton <nickc@cygnus.com>
4111
4112 * bfd-in.h: Amend prototype for
4113 bfd_elf32_arm_process_before_allocation .
4114 * bfd-in.h: Regenerate.
4115
4116 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
4117 elements in a fixed sized array.
4118 (ARM_ELF_ABI_VERSION): Define.
4119 (ARM_ELF_OS_ABI_VERSION): Define.
4120 (R_ARM_THM_ABS5): Fix rightshift and size.
4121 (R_ARM_THM_PC22): Fix size.
4122 (R_ARM_PLT32): Define Howto.
4123 (find_howto): New function: Locate a howto based on a reloc
4124 number.
4125 (elf32_arm_info_to_howto): Use find_howto if necessary.
4126 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
4127 bfd_reloc_code_real_type.
4128 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
4129 and BFD_RELOC_VTABLE_ENTRY.
4130 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
4131
4132 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
4133 elements in a fixed sized array.
4134 (ARM_ELF_ABI_VERSION): Define.
4135 (ARM_ELF_OS_ABI_VERSION): Define.
4136 (R_ARM_THM_ABS5): Fix rightshift and size.
4137 (R_ARM_THM_PC22): Fix size.
4138 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
4139 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
4140 bfd_reloc_code_real_type.
4141
4142 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
4143 no_pipeline_knowledge.
4144 (elf32_arm_link_hash_create): Initialise new field to zero.
4145 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
4146 no_pipeline_knowledge. Use this parameter to initialise the field
4147 in the globals data structure.
4148 (elf32_arm_final_link_relocate): Only add in pipeline offset if
4149 no_pipeline_knowledge is false and the binary is from an old
4150 toolchain.
4151 (elf32_arm_merge_private_data): Generate an error if an attempt is
4152 made to linl together big endian and little endian code.
4153 (elf32_arm_post_process_headers): New function: Initialise the
4154 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
4155 header.
4156 (elf_backend_post_process_headers): Define.
4157
4158 1999-05-28 Nick Clifton <nickc@cygnus.com>
4159
4160 * elf-bfd.h (struct elf_backend_data): Add new field:
4161 elf_backend_post_process_headers.
4162
4163 * elfxx-target.h (elf_backend_post_process_headers): Define to
4164 NULL if not already defined.
4165 (elfNN_bed): Initialise elf_backend_post_process_headers field.
4166
4167 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
4168 to zero.
4169 (_bfd_elf_compute_section_file_positions): Call
4170 elf_backend_post_process_headers if defined.
4171
4172 1999-05-28 Ian Lance Taylor <ian@zembu.com>
4173
4174 * configure.in: Check whether getuid and getgid exist.
4175 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
4176 HAVE_GETGID are not defined, respectively.
4177 (bfd_write_armap): Don't special case on _WIN32 for getuid and
4178 getgid.
4179 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
4180 * configure, config.in: Rebuild.
4181
4182 1999-05-28 Martin Dorey <mdorey@madge.com>
4183
4184 * elf32-i960.c: New file.
4185 * elf.c (prep_headers): Handle bfd_arch_i960.
4186 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
4187 * config.bfd (i960-*-elf*): New target.
4188 * configure.in (bfd_elf32_i960_vec): New target vector.
4189 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
4190 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
4191 * Makefile.in, aclocal.m4, configure: Rebuild.
4192
4193 1999-05-27 Nick Clifton <nickc@cygnus.com>
4194
4195 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
4196 R_ARM_PLT32.
4197 (find_howto): New function: Find entries in the
4198 elf32_arm_howto_table.
4199 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
4200 computed simply.
4201 (elf32_arm_reloc_type_lookup): Add lookup for
4202 BFD_RELOC_ARM_PLT32.
4203
4204 1999-05-25 Philip Blundell <pb@nexus.co.uk>
4205
4206 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
4207 (elf32_arm_link_hash_table_create): Use above function as the
4208 constructor for hash table entries.
4209 (elf32_arm_relocate_section): Avoid crash when there is no output
4210 section.
4211 (elf32_arm_final_link_relocate): New parameter h.
4212 (elf32_arm_relocate_section): Pass symbol hash entry to above
4213 routine.
4214 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
4215 comments.
4216
4217 1999-05-25 Catherine Moore <clm@cygnus.com>
4218
4219 * coff-arm.c (coff_arm_relocate_section): Don't emit
4220 base file entries for pc-relative values.
4221
4222 1999-05-25 DJ Delorie <dj@cygnus.com>
4223
4224 * peicode.h (coff_swap_sym_in): When we create the actual section
4225 to reflect the not-there section C_SECTION symbols refer to,
4226 change the symbol class to C_STAT as the section is now really
4227 there.
4228
4229 1999-05-24 Philip Blundell <pb@nexus.co.uk>
4230
4231 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
4232 1999-03-25.
4233
4234 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
4235
4236 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
4237 F_PIC_INT to F_PIC.
4238 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
4239 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
4240
4241 1999-05-16 Nick Clifton <nickc@cygnus.com>
4242
4243 * coff-mcore.c (in_reloc_p): Reinstate.
4244
4245 1999-05-15 Nick Clifton <nickc@cygnus.com>
4246
4247 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
4248 * bfd-in2.h: Regenerate.
4249 * coff-mcore.c (in_reloc_p): Remove defintion.
4250 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
4251 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
4252 IMAGE_REL_MCORE_RVA.
4253 (coff_mcore_rtype_to_howto): Add special processing for
4254 IMAGE_REL_MCORE_RVA.
4255 (coff_mcore_relocate_section): Add support for
4256 IMAGE_REL_MCORE_RVA.
4257 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
4258 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
4259 R_MCORE_RELATIVE.
4260 (mcore_elf_relocate_section): Delete redundant case labels.
4261
4262 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4263
4264 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
4265 precedence between bit-and and comparison.
4266
4267 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
4268
4269 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
4270 list of target formats (targ_selvecs).
4271 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
4272 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
4273
4274 1999-05-10 DJ Delorie <dj@cygnus.com>
4275
4276 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
4277 reasonable mode until "ar x" is smart enough to skip it (fixes
4278 gcc/libgcc.a builds on mips-ecoff targets
4279
4280 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
4281 to work. Hack to support MS import libraries, which use different
4282 COMDAT types than GNU.
4283 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
4284 to implied zero-length sections (see peicode below)
4285 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
4286 filename symbols, which use one *or more* auxents.
4287 * coffswap.h (coff_swap_aux_in): ditto
4288 * peicode.h (coff_swap_sym_in): Build the implied zero-length
4289 sections
4290
4291 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
4292
4293 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
4294 for all relocations.
4295
4296 1999-05-10 Catherine Moore <clm@cygnus.com>
4297
4298 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
4299 if COFF_IMAGE_WITH_PE.
4300 (bfd_arm_process_before_allocation): Likewise.
4301 (bfd_arm_get_bfd_for_interworking): Likewise.
4302 * coff-arm.c: Likewise.
4303 * bfd-in2.h: Regenerate.
4304 * configure.in (armpe_little_vec): Remove coff-arm.lo.
4305 (armpe_big_vec): Likewise.
4306 * configure: Rebuild.
4307
4308 1999-05-10 Nick Clifton <nickc@cygnus.com>
4309
4310 * elf.c (elf_fake_sections): Check for .rel. as start of rel
4311 section, not just .rel. Same for .rela.
4312
4313 1999-05-07 Nick Clifton <nickc@cygnus.com>
4314
4315 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
4316 endianism with an error message.
4317
4318 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
4319
4320 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
4321 assignment from "unsigned char *" to "char *".
4322 (decode_line_info): Likewise for dwarf_line_buffer assignment.
4323
4324 1999-05-05 Catherine Moore <clm@cygnus.com>
4325
4326 * coff-arm.c (coff_arm_relocate_section): Add one to
4327 address of ARM_RVA32 thumb functions.
4328
4329 1999-05-05 Catherine Moore <clm@cygnus.com>
4330
4331 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
4332 (elf32_m68k_copy_private_bfd_data): New.
4333 (elf32_m68k_merge_private_bfd_data): New.
4334 (elf32_m68k_print_private_bfd_data): New.
4335 (CPU32_FLAG): Define.
4336 (PLT_CPU32_ENTRY_SIZE): Define.
4337 (elf_cpu32_plt0_entry): Declare.
4338 (elf_cpu32_plt_entry): Declare.
4339 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
4340 (elf_m68k_finish_dynamic_symbol): Likewise.
4341 (elf_m68k_finish_dynamic_sections): Likewise.
4342 (elf_backend_plt_header_size): Remove definition.
4343 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4344 (bfd_elf32_bfd_merge_private_bfd_data): Define.
4345 (bfd_elf32_bfd_set_private_flags): Define.
4346 (bfd_elf32_bfd_print_private_bfd_data): Define.
4347
4348 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
4349
4350 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
4351 and R_LONG_PCREL_MODE.
4352
4353 1999-04-29 Nick Clifton <nickc@cygnus.com>
4354
4355 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
4356
4357 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
4358
4359 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
4360 in relocation calculation.
4361
4362 1999-04-26 Tom Tromey <tromey@cygnus.com>
4363
4364 * aclocal.m4, configure: Updated for new version of libtool.
4365
4366 1999-04-21 Nick Clifton <nickc@cygnus.com>
4367
4368 * coff-mcore.c: Add support for mcore relocs.
4369
4370 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
4371
4372 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
4373 incorrect use EF_MIPS_xxBITPTRS.
4374
4375 1999-04-18 Ian Lance Taylor <ian@zembu.com>
4376
4377 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
4378 variable insn.
4379
4380 * bfd-in2.h: Rebuild.
4381 * libbfd.h: Rebuild.
4382
4383 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
4384
4385 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
4386 (coff_arm_relocate_section): Add ARM26D transform. Only
4387 change to ARM26D for relocateable links.
4388
4389 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
4390
4391 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
4392 (bfd_elf32_bfd_print_private_bfd_data): New.
4393
4394 1999-04-15 Doug Evans <devans@casey.cygnus.com>
4395
4396 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
4397 refetch addend if USE_REL, add many comments regarding current state.
4398 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
4399 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
4400 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
4401 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
4402
4403 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
4404
4405 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
4406 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
4407
4408 1999-04-13 David Mosberger <davidm@hpl.hp.com>
4409
4410 * dwarf2.c (decode_line_info): Don't truncate address to least
4411 significant 32 bits (breaks 64 bit targets).
4412 (lookup_address_in_function_table): Ditto.
4413 (comp_unit_contains_address): Ditto.
4414
4415 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
4416
4417 * coff-arm.c (arm_emit_base_file_entry): New routine.
4418 (A2T3_OFFSET): Define.
4419 (T2A3_OFFSET): Define.
4420 (coff_arm_relocate_section): Emit base file entries for interworking
4421 stubs.
4422
4423 1999-04-13 Philip Blundell <philb@gnu.org>
4424
4425 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
4426 relocs 17 through 19.
4427
4428 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
4429
4430 * elfcode.h: Remove fnmatch.h.
4431 * elflink.h (elf_link_assign_sym_version): Call back to ld
4432 instead of calling fnmatch.
4433
4434 * config.bfd (i?86-*-beoself): Include pe vecs.
4435
4436 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
4437
4438 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
4439 to go missing.
4440
4441 1999-04-10 Richard Henderson <rth@cygnus.com>
4442
4443 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
4444 when trying to resolve dynamic symbol references.
4445 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4446 * elf32-mips.c (mips_elf_relocate_section): Likewise.
4447 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4448 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4449 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4450 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4451 * elflink.h (elf_link_output_extsym): Likewise.
4452
4453 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
4454
4455 * section.c (_bfd_strip_section_from_output): New function moved from
4456 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
4457 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
4458 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4459 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
4460 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4461 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4462 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4463 * bfd-in2.h: Update.
4464
4465 1999-04-09 Ian Lance Taylor <ian@zembu.com>
4466
4467 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
4468
4469 1999-04-08 Nick Clifton <nickc@cygnus.com>
4470
4471 * coff-mcore.c: New File: Support for mcore-pe targets.
4472 * cpu-mcore.c: New File: Support for mcore targets.
4473 * elf32-mcore.c: New File: Support for mcore-elf target.
4474 * pe-mcore.c: New File: Definitions for mcore-pe target.
4475 * pei-mcore.c: New File: Definitions for mcore-pei target.
4476 * Makefile.am: Add support for MCore targets.
4477 * Makefile.in: Regenerate.
4478 * config.bfd: Add support for MCore targets.
4479 * configure.in: Add support for MCore targets.
4480 * configure: Regenerate.
4481 * archures.c: Add support for MCore architecture.
4482 * bfd-in2.h: Regenerate.
4483 * coffcode.h: Add support for mcore-pe targets.
4484 * elf.c: Add support for mcore-elf target.
4485 * reloc.c: Add support for MCore relocs.
4486 * targets.c: Add support for MCore targets.
4487
4488 1999-04-07 Nick Clifton <nickc@cygnus.com>
4489
4490 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
4491 R_ARM_XPC25 and R_ARM_THM_XPC22.
4492 (elf32_arm_reloc_map): Remove redundant entries.
4493
4494 1999-04-06 Ian Lance Taylor <ian@zembu.com>
4495
4496 * sysdep.h (LC_MESSAGES): Never define.
4497
4498 1999-04-06 Chris Torek <torek@bsdi.com>
4499
4500 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
4501 all callers. Rewrite completely.
4502 (_bfd_relocate_contents): Rewrite overflow checking.
4503 * bfd-in2.h: Rebuild.
4504
4505 1999-04-05 Ian Lance Taylor <ian@zembu.com>
4506
4507 From Gabriel Paubert <paubert@iram.es>:
4508 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
4509 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
4510 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
4511 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
4512 * ppcboot.c (ppcboot_vec): Use little endian routines for
4513 headers.
4514
4515 * elf.c (elfcore_strndup): Only define if it will be used.
4516 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
4517 and irelend.
4518 (ppc_elf_check_relocs): Remove unused local i.
4519 (ppc_elf_gc_mark_hook): Add default case to switch.
4520
4521 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
4522 * srec.c (srec_scan): Accept \r in symbol definitions.
4523 (srec_object_p): Set HAS_SYMS if we saw any symbols.
4524 (symbolsrec_object_p): Likewise.
4525
4526 1999-04-04 Don Bowman <don@pixsci.com>
4527
4528 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
4529
4530 1999-04-04 Ian Lance Taylor <ian@zembu.com>
4531
4532 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
4533 last_line.
4534 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
4535 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
4536 switch.
4537 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
4538 local i.
4539 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
4540 local val.
4541
4542 1999-03-31 Nick Clifton <nickc@cygnus.com>
4543
4544 * config.bfd: Add support for arm-epoc-pe target.
4545 * configure.in: Add support for arm-epoc-pe target.
4546 * configure: Regenerate.
4547 * targets.c: Add support for arm-epoc-pe target.
4548 * coff-arm.c: Allow header files to override definition of
4549 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
4550 * pe-arm.h: Allow previous header files to override definition of
4551 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
4552 * pei-arm.h: Allow previous header files to override definition of
4553 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
4554 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
4555 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
4556
4557 1999-03-30 Nick Clifton <nickc@cygnus.com>
4558
4559 * elf.c (elf_map_symbols): Handle the case where section
4560 symbols are generated for content-less sections which are
4561 not mapped to the output file.
4562
4563 * linker.c: Replace direct references to fields in BFD structure
4564 with accessor macros.
4565
4566 * elflink.h: Replace direct references to fields in BFD structure
4567 with accessor macros.
4568
4569 1999-03-25 Philip Blundell <pb@nexus.co.uk>
4570
4571 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
4572
4573 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
4574 account when adjusting section symbols during a partial link.
4575
4576 1999-03-24 Nick Clifton <nickc@cygnus.com>
4577
4578 * coff-sparc.c (struct coff_reloc_map): Change type of field
4579 'bfd_reloc_val' to bfd_reloc_code_real_type.
4580 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
4581 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
4582 * elf32-arc.c (struct arc_reloc_map): Ditto.
4583 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
4584 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
4585 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
4586 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
4587 * elf32-sh.c (struct elf_reloc_map): Ditto.
4588 * elf32-sparc.c (struct elf_reloc_map): Ditto.
4589 * elf32-v850.c (struct v850_reloc_map): Ditto.
4590 * elf64-sparc.c (struct elf_reloc_map): Ditto.
4591 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
4592 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
4593
4594 1999-03-17 Martin Hunt <hunt@cygnus.com>
4595
4596 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
4597 function so source-level assembly works. If multiple N_SOs
4598 are seen without and N_FUNs, create an indextable entry with
4599 a NULL function name.
4600
4601 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
4602
4603 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
4604 of certian similar cpus.
4605
4606 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
4607
4608 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
4609 Add the 5000. Change the architecture for the 5400 to mips4.
4610 (elf_mips_mach): Add r5000.
4611
4612 1999-03-11 Doug Evans <devans@casey.cygnus.com>
4613
4614 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
4615
4616 1999-03-11 Nick Clifton <nickc@cygnus.com>
4617
4618 * binary.c (binary_set_section_contents): Generate warning about
4619 huge file offsets for any section that will occupy file space, not
4620 just those that are loadable.
4621
4622 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
4623
4624 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
4625
4626 1999-02-22 Jim Lemke <jlemke@cygnus.com>
4627
4628 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
4629
4630 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
4631
4632 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
4633 * elflink.h: Revert all changes since Feb 16. Instead:
4634 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
4635 appropriate. Copy it to version symbols.
4636 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
4637 symbols if appropriate.
4638 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
4639 symbol if appropriate.
4640 (elf_link_output_extsym): If symbol is marked as undefined, and
4641 has no nonweak references, mark it as weak undefined.
4642
4643 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
4644
4645 * elflink.h (elf_merge_symbol): When overriding a dynamic
4646 definition with a weak undefined symbol, set NEEDS_PLT if it is a
4647 function.
4648 (elf_link_add_object_symbols): Don't copy the other field if we
4649 are overridding.
4650
4651 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
4652
4653 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
4654 shared object with a weak undefined symbol.
4655
4656 1999-02-18 Nick Clifton <nickc@cygnus.com>
4657
4658 * elfarm-nabi.c: Set partial_inplace back to false.
4659
4660 1999-02-17 Nick Clifton <nickc@cygnus.com>
4661
4662 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
4663 (USER_LABEL_PREFIX): Set to "_".
4664
4665 The following patches are from: Scott Bambrough
4666 <scottb@corelcomputer.com>
4667
4668 * libaout.h (M_ARM6_NETBSD): Set to 143.
4669
4670 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
4671 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
4672 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
4673 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
4674 * bfd-in2.h: Regenerate.
4675
4676 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
4677 'true' as REL relocs are now being used. Add new PIC relocs:
4678 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
4679 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
4680
4681 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
4682 of targets.
4683 (elf32_arm_final_link_relocate): Change parameters so that entire
4684 reloc is passed. Add support for PIC relocs.
4685 (elf32_arm_relocate_section): Pass entire reloc to
4686 elf32_arm_final_link_relocate.
4687 (elf32_arm_check_relocs): Handle new PIC relocs.
4688 (elf32_arm_adjust_dynamic_symbol): New function.
4689 (elf32_arm_size_dynamic_sections): New function.
4690 (elf32_arm_discard_copies): New function.
4691 (elf32_arm_finish_dynamic_symbol): New function.
4692 (elf32_arm_finish_dynamic_sections): New function.
4693 (ELF_MAXPAGE_SIZE): Define.
4694 (bfd_elf32_bfd_reloc_type_lookup): Define.
4695 (elf_backend_relocate_section): Define.
4696 (elf_backend_adjust_dynamic_symbol): Define.
4697 (elf_backend_create_dynamic_sections): Define.
4698 (elf_backend_finish_dynamic_symbol): Define.
4699 (elf_backend_finish_dynamic_sections): Define.
4700 (elf_backend_size_dynamic_sections): Define.
4701 (elf_backend_plt_readonly): Define.
4702 (elf_backend_want_got_plt): Define.
4703 (elf_backend_want_plt_sym): Define.
4704
4705 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
4706
4707 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
4708 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
4709 (_bfd_mips_elf_fake_sections): Likewise.
4710
4711 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4712
4713 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
4714 bfd_elf32_arm_get_bfd_for_interworking,
4715 bfd_elf32_arm_process_before_allocation): Define to avoid clash
4716 with elfarm-nabi.c.
4717
4718 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
4719 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
4720 elf32_arm_find_nearest_line): Make them static.
4721
4722 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
4723
4724 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
4725 callers. Do not merge a definition from a shared object with a
4726 weak undefined symbol.
4727 (elf_link_add_object_symbols): Do not change the symbol type or
4728 size if the old symbol overrides the new one.
4729
4730 1999-02-08 Nick Clifton <nickc@cygnus.com>
4731
4732 * config.bfd: Add support for strongarm target.
4733
4734 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4735
4736 * elf32-m68k.c (reloc_map): Use the correct types for the struct
4737 fields instead of unsigned char.
4738
4739 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
4740
4741 * Makefile.am: Rebuild dependencies.
4742 * Makefile.in: Rebuild.
4743
4744 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
4745
4746 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
4747 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
4748 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
4749 * acinclude.m4: Add comments to uses of AC_DEFINE.
4750 * acconfig.h: Remove.
4751 * configure: Rebuild with current autoconf/automake.
4752 * aclocal.m4: Likewise.
4753 * config.in: Likewise.
4754 * Makefile.in: Likewise.
4755
4756 1999-02-04 DJ Delorie <dj@cygnus.com>
4757
4758 * libbfd.c (real_read): don't call fread for zero bytes. This
4759 covers up a bug (or misuse of bfd) that's exposed by Solaris.
4760
4761 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
4762
4763 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
4764 of a jump is in the current 256 MB region.
4765
4766 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
4767
4768 * format.c (bfd_check_format_matches): Change last patch to only
4769 take effect for the binary target.
4770
4771 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
4772
4773 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
4774
4775 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
4776
4777 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
4778
4779 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
4780
4781 * format.c (bfd_check_format_matches): If the target was
4782 previously specified, don't check other targets when checking for
4783 an archive file.
4784
4785 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
4786
4787 * elf32-arm.h (elf32_arm_reloc_map): Removed.
4788 (elf32_arm_reloc_type_lookup): Removed
4789 * elfarm-nabi.c (elf32_arm_reloc_map): New.
4790 (elf32_arm_reloc_type_lookup): New.
4791 * elfarm-oabi.c (elf32_arm_reloc_map): New.
4792 (elf32_arm_reloc_type_lookup): New.
4793
4794 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
4795
4796 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
4797 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
4798 * Makefile.am: Use new files.
4799 * Makefile.in: Regenerate.
4800 * configure.in: Use new files.
4801 * configure: Regenerate.
4802
4803 1999-02-01 Nick Clifton <nickc@cygnus.com>
4804
4805 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
4806 (fr30_elf_gc_sweep_hook): New function.
4807 (elf_backend_can_gc_sections): Define.
4808
4809 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
4810
4811 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
4812 and bfd_elf32_bigarm_oabi_vec.
4813
4814 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
4815
4816 * Makefile.am (elf32-arm-oldabi.lo): New.
4817 (elf32-arm-newabi.lo): New.
4818 * Makefile.in: Regenerate.
4819 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
4820 (arm-*-elf): Likewise.
4821 (arm-*-oabi): New.
4822 (thumb-*-oabi): New.
4823 * configure: Regenerate.
4824 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
4825 (bfd_elf32_bigarm_oabi_vec): New.
4826 * elf32-arm-newabi.c: New.
4827 * elf32-arm-oldabi.c: New.
4828 * elf32-arm.c: Removed.
4829 * elf32-arm.h: New.
4830
4831 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
4832
4833 * binary.c (binary_set_section_contents): Omit warnings for
4834 unloadable sections.
4835
4836 1999-01-31 Michael Meissner <meissner@cygnus.com>
4837
4838 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
4839 powerpc{,le}-*-eabi.
4840
4841 1999-01-29 Nick Clifton <nickc@cygnus.com>
4842
4843 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
4844 * dwarf2.c (read_signed_leb128): Remove unused variables.
4845
4846 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
4847
4848 * elf.c (assign_file_positions_for_segments): Only adjust
4849 p_align when needed.
4850
4851 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
4852
4853 * binary.c (binary_set_section_contents): Don't return early for a
4854 non-loadable section, in case the first section is non-loadable.
4855 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
4856 W. Rozycki <macro@ds2.pg.gda.pl>.
4857
4858 1999-01-28 Nick Clifton <nickc@cygnus.com>
4859
4860 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
4861 R_FR30_GNU_VTENTRY relocs.
4862
4863 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
4864
4865 * elflink.h (elf_link_output_sym): Zero syms which are
4866 part of sections which have been excluded.
4867
4868 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
4869
4870 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
4871 to F_PIC_INT.
4872 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
4873 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
4874
4875 1999-01-27 Nick Clifton <nickc@cygnus.com>
4876
4877 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
4878 relocation.
4879 (fr30_final_link_relocate): Use computed value as result of
4880 relocation.
4881
4882 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
4883
4884 * binary.c (binary_set_section_contents): Emit warning for
4885 huge file offsets due to widely-dispersed section LMAs.
4886
4887 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
4888
4889 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
4890 align first section to largest section alignment, not first
4891 section alignment.
4892
4893 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4894
4895 * configure.in: Require autoconf 2.12.1 or higher.
4896
4897 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
4898
4899 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
4900 * bfd-in2.h: Likewise.
4901 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
4902
4903 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
4904
4905 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
4906 * cpu-mips.c: Add support for and independent 4111.
4907 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
4908 (_bfd_mips_elf_final_write_processing):
4909 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
4910
4911 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
4912
4913 * elf32-mips.c (elf_mips_abi_name): New.
4914 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
4915
4916 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
4917
4918 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
4919 Handle bfd_mach_mips4300.
4920
4921 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
4922
4923 * elf32-i386.c: Remove leaked development code from patch
4924 1998-12-10 by Richard Henderson.
4925
4926 1998-12-10 Richard Henderson <rth@cygnus.com>
4927
4928 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
4929 in debug sections for symbol defined externally.
4930
4931 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4932
4933 * targets.c (bfd_target_vector): Remove duplicate entry for
4934 tekhex_vec.
4935
4936 1998-12-09 Nick Clifton <nickc@cygnus.com>
4937
4938 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
4939 since we are using RELAs.
4940
4941 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
4942
4943 SCO Open Server Release 5 core file support, from Jouke Numan
4944 <jnuman@hiscom.nl>:
4945 * sco5-core.c: New file.
4946 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
4947 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
4948 * Makefile.am: Rebuild dependencies.
4949 (OPTIONAL_BACKENDS): Add sco5-core.lo.
4950 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
4951 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
4952 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
4953 * bfd-in2.h, configure, Makefile.in: Rebuild.
4954
4955 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
4956
4957 * config.bfd (hppa*-*-mpeix*): New target.
4958 * configure.in: Add AC_HEADER_DIRENT.
4959 (hppa*-*-mpeix*): New target.
4960 * configure.host (hppa*-*-mpeix*): New host.
4961 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
4962 friends rather than just including <sys/dir.h>.
4963 * som.h (struct som_symbol): Add hppa_priv_level and apto
4964 tc_data. Change all users.
4965 (struct somdata): Add comp_unit field.
4966 (obj_som_compilation_unit): Define.
4967 (bfd_som_attach_compilation_unix): Declare.
4968 * som.c: Check HOST_HPPAMPEIX.
4969 (struct som_misc_symbol_info): Add new field priv_level.
4970 (som_object_setup): Add current_offset parameter. Change all
4971 callers.
4972 (setup_sections): Likewise.
4973 (som_object_p): For EXECLIBMAGIC, read the lst header.
4974 (som_write_symbol_strings): Add compilation_unit parameter.
4975 Change all callers.
4976 (som_finish_writing): Write out compilation_unit.
4977 (som_bfd_derive_misc_symbol_info): Set priv_level.
4978 (som_build_and_write_symbol_table): Set xleast field to 3.
4979 (som_slurp_symbol_table): Set symbol priv_level.
4980 (bfd_som_attach_compilation_unit): New function.
4981 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
4982 priv_level into symbol_value.
4983 * configure, config.in: Rebuild.
4984
4985 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
4986
4987 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
4988 warning function to call _bfd_error_handler instead.
4989
4990 * libbfd.c (COERCE32): Cast through unsigned long and long to
4991 avoid bug in old version of gcc.
4992
4993 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
4994 (elf_backend_additional_program_headers): Don't define.
4995
4996 1998-12-08 Nick Clifton <nickc@cygnus.com>
4997
4998 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
4999 relocations to include offset of 2 included in the insns, and the
5000 offset of the relocs within the section.
5001
5002 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
5003
5004 The following changes were made by David Taylor
5005 <taylor@texas.cygnus.com>, Edith Epstein
5006 <eepstein@sophia.cygnus.com>, Jim Blandy
5007 <jimb@zwingli.cygnus.com>, and Elena Zannoni
5008 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
5009 changes originally made by HP; HP did not create ChangeLog
5010 entries.
5011
5012 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
5013 automake macro library.
5014
5015 * hpux-core.c (hpux_core_core_file_p): this function now
5016 understands HPUX 10.30 thread info. Yes, the thread stacks can be
5017 found in the corefile! Also, in hpux_core_core_file_p, if we
5018 encounter a section with an unknown type, don't punt. Instead,
5019 just skip it. Also, count the number of sections of known type
5020 that we encounter. If we encounter at least one good one, then
5021 we'll declare that the file is a core file. If we encounter any
5022 unknown ones but some known ones, then we'll issue a warning (but
5023 still declare it to be a core file). Also, correctly decide when a
5024 file is not a core.
5025 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
5026 (CORE_ANON_SHMEM): define if not defined.
5027 (hpux_core_struct): add members lwpid and user_tid.
5028 (core_kernel_thread_id, core_user_thread_id): new macros.
5029 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
5030 the name before storing it in the bfd.
5031 (hpux_core_core_file_p): handle threads.
5032
5033 * libhppa.h (GET_FIELD): protect against redefinition.
5034 (HPPA_WIDE): define.
5035 (GET_FIELD): define.
5036 (GET_BIT): define.
5037 (MASK): define.
5038 (CATENATE): define.
5039 (ELEVEN): define.
5040 (sign_extend): redefine.
5041 (assemble_6): define.
5042 (assemble_12): rewrite.
5043 (assemble_16): define.
5044 (assemble_16a): define.
5045 (assemble_17): rewrite.
5046 (assemble_22): define.
5047
5048 1998-12-07 Nick Clifton <nickc@cygnus.com>
5049
5050 * elf32-fr30.c (fr30_final_link_relocate): Using signed
5051 relocations for signed values.
5052
5053 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
5054
5055 * mipsbsd.c (MY(set_arch_mach)): Make static.
5056 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
5057 bfd_mach_mips* macros rather than simple numbers.
5058
5059 COFF weak symbol support, based on patches from Mark Elbrecht
5060 <snowball3@usa.net>:
5061 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
5062 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
5063 (coff_write_alien_symbol): Likewise.
5064 * cofflink.c (coff_link_check_ar_symbols): Likewise.
5065 (coff_link_add_symbols): Likewise.
5066 (_bfd_coff_link_input_bfd): Likewise.
5067 (_bfd_coff_write_global_sym): Likewise.
5068
5069 * elf.c (copy_private_bfd_data): Always initialize the
5070 includes_phdrs field.
5071
5072 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
5073 file defines a symbol first mentioned in an ELF file.
5074
5075 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
5076 possible, rather than only if BFD64.
5077 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
5078 not __GNUC__.
5079 * bfd-in2.h: Rebuild.
5080
5081 * srec.c (srec_set_section_contents): Correct test to avoid
5082 switching to 4 byte addresses after seeing a second section which
5083 requires 3 byte addresses. From Joel Schantz
5084 <joel.schantz@argosys.boeing.com>.
5085
5086 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
5087 <aymeric.vincent@emi.u-bordeaux.fr>.
5088
5089 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
5090
5091 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
5092 decide whether the output file is -mrelocatable-lib,
5093 -mrelocatable, or neither. (gdb.base/nodebug.exp)
5094
5095 1998-12-03 Nick Clifton <nickc@cygnus.com>
5096
5097 * elf32-fr30.c: Add support for R_FR30_48 reloc.
5098 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
5099 * bfd-in2.h: Regenerate.
5100 * libbfd.h: Regenerate
5101
5102 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
5103
5104 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
5105 link against a dynamic symbol with no type or size.
5106
5107 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
5108
5109 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
5110 relocation for section which does not get loaded.
5111 (elf_i386_relocate_section) [R_386_32]: Likewise.
5112
5113 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
5114
5115 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
5116 reloc_count and i long instead of unsigned long. Handle error
5117 return from bfd_canonicalize_reloc.
5118
5119 1998-12-01 Nick Clifton <nickc@cygnus.com>
5120
5121 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
5122 a hash table.
5123
5124 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5125
5126 * elf32-sh.c (elf/sh.h): Include.
5127 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
5128 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
5129 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
5130 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5131 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
5132
5133 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
5134
5135 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
5136 causes division by zero later on.
5137
5138 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
5139
5140 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
5141 needed.
5142
5143 1998-11-25 DJ Delorie <dj@cygnus.com>
5144
5145 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
5146 hook now.
5147
5148 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
5149
5150 * elf32-fr30.c (fr30_elf_relocate_section): Call
5151 fr30_final_link_relocate.
5152 (fr30_final_link_relocate): New function: Handle I20 and I32
5153 relocs.
5154 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
5155 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
5156 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
5157
5158 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
5159 chain to empty.
5160
5161 The following changes are based on a patch submitted by Gianluca
5162 Moro <glctr@abc.it>:
5163
5164 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
5165 not already been updated.
5166 (find_remembered_hi16s_reloc): New parameter 'already_found'
5167 returns state of remembered hi16s reloc.
5168 (remember_hi16s_reloc): Set 'found' field to false.
5169 (hi16s_location): Add 'found' field.
5170
5171 1998-11-23 DJ Delorie <dj@cygnus.com>
5172
5173 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
5174 to see .DLL files as unrecognized.
5175 (i3coff_object_p): Sorry, had to hack it to not recognize these
5176 files (pei-i386) on request.
5177
5178 1998-11-23 DJ Delorie <dj@cygnus.com>
5179
5180 * opncls.c (bfd_make_readable): need more cleanup for symbols and
5181 relents. Call bfd_check_format to reinitialize.
5182
5183 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
5184
5185 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
5186 warnings.
5187
5188 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
5189
5190 * aclocal.m4: regenerate
5191 * configure: regenerate
5192
5193 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
5194
5195 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
5196 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
5197 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
5198 respect it as an upper bound on what memory to reference.
5199 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5200 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
5201 update vtable_entries_size appropriately.
5202
5203 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
5204
5205 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
5206 reloc number.
5207
5208 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
5209
5210 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
5211 bfds; they have no "file" so we fake it.
5212 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
5213 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
5214 resizing the memory buffer.
5215 * opncls.c (bfd_make_writable): New function; lets you write a
5216 bfd_create'd bfd to an in-memory buffer.
5217 (bfd_make_readable): New function; lets you read back that buffer
5218 as if it were from bfd_openr. Used to build generated archive
5219 members (winsup's ld's dlltool)
5220
5221 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
5222
5223 * po/bfd.pot: Regenerated.
5224
5225 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
5226
5227 * elf32-v850.c (hi16s_location): Replaced fixed size array with
5228 linked list.
5229
5230 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
5231
5232 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
5233 element of the gotentry list for local symbols too.
5234 (elf64_alpha_relocate_section): Unify local and global handling.
5235 Assert that gotent->use_count > 0.
5236
5237 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
5238
5239 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
5240 update for file name changes of July 2, 1998.
5241 (vms_vax_vec): New.
5242 * configure: Rebuild.
5243
5244 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
5245
5246 * po/bfd.pot: Regenerated.
5247
5248 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
5249
5250 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
5251 * aclocal.m4, configure: regenerate
5252
5253 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
5254
5255 * elf.c (prep_headers): Add support for bfd_arch_fr30.
5256
5257 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
5258
5259 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
5260 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
5261 was cached.
5262 * aclocal.m4, configure: regenerated.
5263
5264 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
5265
5266 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
5267 R_D10V_GNU_VTENTRY relocs.
5268 (elf_d10v_howto_table): Likewise.
5269 (d10v_reloc_map d10v_reloc_map): Likewise.
5270 (elf32_d10v_gc_mark_hook): New.
5271 (elf32_d10v_gc_sweep_hook): New.
5272 (elf32_d10v_check_relocs): New.
5273 (elf32_d10v_relocate_section): New.
5274 (elf_backend_relocate_section): Define.
5275 (elf_backend_can_gc_sections): Define.
5276
5277 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
5278
5279 * Makefile.am (BFD32_BACKENDS): Move vms files here...
5280 (BFD64_BACKENDS): ...from here.
5281 (BFD32_BACKENDS_CFILES): Move vms files here...
5282 (BFD64_BACKENDS_CFILES): ...from here.
5283 * Makefile.in: Rebuild.
5284
5285 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
5286
5287 * Makefile.am: Add FR30 target.
5288 * Makefile.in: Add FR30 target.
5289 * archures.c: Add support for FR30.
5290 * config.bfd: Add support for FR30.
5291 * configure.in: Add support for FR30.
5292 * reloc.c: Add support for FR30 relocations.
5293 * targets.c: Add support for FR30 relocations.
5294 * bfd-in2.h: Regenerate.
5295 * configure: Regenerate.
5296 * libbfd.h: Regenerate.
5297 * cpu-fr30.c: New file.
5298 * elf32-fr30.c: New file.
5299
5300 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
5301
5302 * configure.in: detect cygwin* instead of cygwin32*
5303 * configure: regenerate
5304
5305 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
5306
5307 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
5308 use bfd_malloc and free instead and check return value from bfd_malloc.
5309
5310 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
5311
5312 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
5313 * libbfd.h: Rebuild.
5314
5315 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
5316 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
5317 (MIPS_TEXT_DYNSYM_SECN): Likewise.
5318 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
5319 section.
5320 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
5321 field.
5322 (mips_elf_link_hash_table_create): Don't initialize
5323 dynsym_sec_strindex.
5324 (mips_elf_gc_mark_hook): Add default case to avoid warning.
5325 (mips_elf_size_dynamic_sections): Generate a section symbol for
5326 every output section.
5327 (mips_elf_finish_dynamic_sections): Count all sections for
5328 DT_MIPS_UNREFEXTNO.
5329 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
5330 output sections.
5331
5332 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
5333
5334 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
5335 for later PLT entries in large PLTs.
5336 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
5337
5338 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
5339
5340 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
5341
5342 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
5343
5344 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
5345 * elflink.h (elf_collect_hash_codes): New function. This function is
5346 called for each exported symbol and we compute the ELF hash value for
5347 it.
5348 (compute_bucket_value): New function. It is called from
5349 size_dynamic_sections to determine the hash table size. When we are
5350 optimizing a better, but slower, algorithm is used.
5351 (size_dynamic_sections): Call compute_bucket_value.
5352
5353 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
5354
5355 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
5356
5357 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
5358 R_SH_GNU_VTENTRY.
5359 (sh_elf_gc_mark_hook): New.
5360 (sh_elf_gc_sweep_hook): New.
5361 (sh_elf_check_relocs): New.
5362 (elf_backend_can_gc_sections): Define.
5363
5364 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
5365
5366 * acinclude.m4: undo previous gettext change
5367 * aclocal.m4: rebuild with right version of aclocal.
5368
5369 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
5370
5371 * acinclude.m4, aclocal.m4: move gettext-related fragments from
5372 aclocal.m4 to acinclude.m4, so they don't get lost.
5373
5374 * elfcore.h: rewrite for better corefile support.
5375 * elf.c (elfcore_*): new functions.
5376 * elf-bfd.h (elf_obj_tdata): new structure members.
5377 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
5378 flavor of procfs.
5379 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
5380
5381 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
5382
5383 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
5384 and R_M32R_GNU_VTENTRY.
5385 (elf_backend_can_gc_sections): Define.
5386 (m32r_elf_check_relocs): New.
5387 (m32r_elf_gc_mark_hook): New.
5388 (m32r_elf_gc_sweep_hook): New.
5389 (m32r_elf_relocate_section): Handle VT relocs.
5390
5391 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
5392
5393 * coff-arm.c (arm_relocate_section): Remove redundant test.
5394
5395 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
5396 cleat that the 'bitsize' field is the size of the bitfield AFTER
5397 relocation not before.
5398
5399 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
5400
5401 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
5402 relocs.
5403
5404 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
5405
5406 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
5407 R_SPARC_GNU_VTENTRY.
5408 (elf32_sparc_check_relocs): Handle them.
5409 (elf32_sparc_reloc_type_lookup): Likewise.
5410 (elf32_sparc_relocate_section): Likewise.
5411 (elf32_sparc_gc_mark_hook): New.
5412 (elf32_sparc_gc_sweep_hook): New.
5413
5414 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
5415
5416 * som.c (som_finish_writing): Perform some sanity checks when
5417 writing an executable or shared library.
5418
5419 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
5420
5421 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
5422 * configure.in (elf): Add dwarf1.lo.
5423 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
5424 * elf.c (_bfd_elf_find_nearest_line): Add call to
5425 _bfd_dwarf1_find_nearest_line.
5426 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
5427 Add call to _bfd_dwarf1_find_nearest_line.
5428 * configure: Rebuilt.
5429
5430 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
5431
5432 * elflink.h (elf_gc_sections): Do not allow garbage
5433 collection if dynamic sections have been created.
5434
5435 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
5436
5437 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
5438 R_V850_GNU_VTENTRY.
5439 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
5440 (v850_elf_perform_relocation): Likewise.
5441 (v850_elf_final_link_relocate): Likewise.
5442 (v850_elf_relocate_section): Likewise.
5443 (v850_elf_gc_sweep_hook): New routine.
5444 (v850_elf_gc_mark_hook): New routine.
5445 (elf_backend_can_gc_sections): Define.
5446
5447 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
5448
5449 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
5450 that dynobj exists.
5451
5452 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
5453
5454 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
5455 Declare size as bfd_size_type.
5456 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
5457
5458 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
5459
5460 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
5461 structure.
5462 * som.c (CPU_PA_RISC2_0): Define.
5463 (_PA_RISC2_0_ID): Likewise.
5464 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
5465
5466 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
5467
5468 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
5469 has a base which is already defined, only add the referenced
5470 symbol to the dynamic symbol table if it is defined or referenced
5471 by a regular file.
5472
5473 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
5474 correctly.
5475
5476 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5477
5478 * elflink.h (elf_link_add_object_symbols): Undo last change.
5479
5480 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
5481
5482 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
5483 symbol for the indirect alias to a versioned symbol.
5484
5485 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
5486
5487 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
5488 (elf32_i386_vtentry_howto): New.
5489 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
5490 or elf32_i386_vtinherit_howto on lookup.
5491
5492 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5493
5494 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
5495 reloc_type. Rename R_68K__max to R_68K_max.
5496 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
5497 reloc.
5498
5499 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
5500
5501 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
5502 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
5503
5504 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
5505 after.
5506
5507 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
5508
5509 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
5510 message has a null byte terminator.
5511
5512 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
5513
5514 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
5515 word subject to R_V850_32 relocation.
5516
5517 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
5518
5519 * dwarf2.c: Add comment describing problem computing line numbers
5520 for undefined symbols at link time.
5521
5522 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
5523
5524 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
5525 transform a defweak into a plt entry.
5526 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
5527 plt entry references to receive a RELATIVE reloc.
5528 (elf64_alpha_finish_dynamic_symbol): Fill them in.
5529 (elf64_alpha_relocate_section): Assert we don't overrun
5530 the allocated relocation space.
5531
5532 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
5533
5534 * elf.c (swap_out_syms): Always treat section symbols as
5535 special, even if they are attached to a common section.
5536
5537 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
5538
5539 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
5540 sections with v850 common section attributes into named v850
5541 common sections.
5542 (v850_elf_add_symbol_hook): Move symbols in sections with v850
5543 common section attributes into named v850 common sections.
5544
5545 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
5546
5547 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
5548 statement.
5549
5550 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
5551
5552 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
5553 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
5554 reloc to the wrong section a warning, not an error. .dynsbss
5555 is not an output section, so there is no need to check for it.
5556
5557 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
5558
5559 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
5560
5561 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
5562
5563 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
5564 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
5565 R_ARM_GNU_VTENTRY.
5566 (elf32_arm_gc_mark_hook): New.
5567 (elf32_arm_gc_sweep_hook): New.
5568 (elf32_arm_check_relocs): New.
5569 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
5570 relocations.
5571 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
5572 relocations.
5573
5574 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
5575
5576 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
5577 assume there is no PLT or GOT.
5578
5579 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
5580
5581 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
5582 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
5583 also accepted as a function symbol type.
5584
5585 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5586
5587 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
5588
5589 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
5590
5591 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
5592 match definition of _bfd_gc_sections field.
5593 * libbfd.h: Rebuild.
5594
5595 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
5596
5597 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
5598 the addend of a dynamic relocation referencing a section.
5599 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5600 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
5601
5602 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
5603
5604 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
5605 bed has a size_dynamic_sections routine before trying to use it.
5606
5607 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
5608
5609 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
5610 _bfd_elf_rel_vtable_reloc_fn.
5611
5612 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
5613
5614 * Makefile.am: Add elf32-arm.c.
5615 * Makefile.in: Rebuild.
5616 * elf-bfd.h: Add elf_backend_get_symbol_type.
5617 * elf.c (swap_out_syms): If defined, call
5618 elf_backend_get_symbol_type.
5619 * elf32-arm.c: Define elf_backend_get_symbol_type.
5620 (elf32_arm_get_symbol-type): New routine.
5621 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
5622 (bfd_elf32_arm_process_before_allocation): Change to
5623 check for STT_ARM_TFUNC.
5624 (elf32_arm_final_link_relocate): Likewise.
5625 * elfxx-target.h: Add elf_backend_get_symbol_type.
5626
5627 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
5628
5629 * archures.c (bfd_mach_alpha_ev[456]): New.
5630 * cpu-alpha.c: Rework to match these types.
5631 * bfd-in2.h: Rebuild.
5632
5633 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
5634
5635 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
5636 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
5637
5638 * elf32-i386.c (elf_howto_table): Add vtable relocs.
5639 (elf_i386_reloc_type_lookup): Recognize them.
5640 (elf_i386_check_relocs): Pass them off to generic code.
5641 (elf_i386_relocate_section): Ignore them.
5642 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
5643 (elf_backend_can_gc_sections): True.
5644
5645 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
5646
5647 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
5648 before looking at owner field.
5649 (elf32_arm_to_thumb_stub): Ditto.
5650 (elf32_arm_relocate_section): Compute name before calling
5651 elf32_arm_final_link_relocate().
5652
5653 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5654
5655 * elf.c: comment and formatting cleanups.
5656 * elfcore.h: ditto.
5657
5658 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5659
5660 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
5661 (core files are treated differently than object files).
5662 * elf-bfd.h (_bfd_elf_write_corefile_contents,
5663 bfd_elf_mkcorefile): declare.
5664 * elfxx-target.h (_bfd_elf_write_corefile_contents,
5665 bfd_elf_mkcorefile): add to bfd_target vector.
5666 * elfcore.h (elf_core_file_p): save the program header table,
5667 and set the bfd architecture from the elf file header.
5668 * elf.c (bfd_elf_mkcorefile): new function.
5669 (_bfd_elf_write_corefile_contents): new function.
5670 (assign_file_positions_for_segments): add cases for handling
5671 PT_NOTE segments. (assign_file_positions_except_relocs):
5672 core files should be handled the same as exec files.
5673 (prep_headers): identify core files as type ET_CORE.
5674 (copy_private_bfd_data): identify the sections belonging to
5675 the PT_NOTE segment.
5676
5677 * elf32-sparc.c (elf32_sparc_final_write_processing):
5678 add break statement to default case.
5679
5680 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
5681
5682 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
5683 section (not input) will be in sections ".sbss", ".sbss2",
5684 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
5685 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
5686 output_offset for correct evaluation of addend.
5687
5688 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
5689
5690 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
5691 elf32_arm_allocate_interworking_sections and
5692 elf32_arm_process_before_allocation.
5693
5694 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
5695
5696 * bfd-in.h: Ammend prototype for
5697 elf32_arm_process_before_allocation to remove surplus third
5698 argument.
5699
5700 * bfd-in2.h: Regenerate.
5701
5702 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
5703
5704 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
5705
5706 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
5707
5708 * aoutx.h (aout_link_input_section_ext): Use the relocation already
5709 calculated for RELOC_SPARC_REV32 case.
5710
5711 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
5712
5713 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
5714 elf32_arm_allocate_interworking_sections and
5715 elf32_arm_process_before_allocation.
5716 * bfd-in2.h: Regenerated.
5717 * elf32-arm.c Define elf32_arm_link_hash_table.
5718 (insert_thumb_branch): New routine.
5719 (find_thumb_glue): New routine.
5720 (find_arm_glue): New routine.
5721 (record_arm_to_thumb_glue): New routine.
5722 (record_thumb_to_arm_glue): New routine.
5723 (elf32_arm_link_hash_table_create): New routine.
5724 (elf32_arm_get_bfd_for_interworking): New routine.
5725 (elf32_arm_allocate_interworking_sections) New routine.
5726 (elf32_arm_process_before_allocation) New routine.
5727 (elf32_thumb_to_arm_stub): New routine.
5728 (elf32_arm_to_thumb_stub): New routine.
5729 (elf32_print_private_bfd_data): Fix typo.
5730 (elf32_arm_final_link_relocate): Add argument sym_sec.
5731 Check for branches to thumb symbols in case R_ARM_PC24.
5732 Check for branches to arm symbols in case R_ARM_THM_PC22.
5733 (elf32_arm_relocate_section): Pass symbol section to
5734 elf32_arm_final_link_relocate.
5735
5736 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
5737
5738 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
5739 entries unless the symbol is defined in the executable; in
5740 particular, undefined weak symbols get a PLT entry.
5741
5742 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
5743
5744 * libaout.h: Remove nested comment to avoid warning.
5745
5746 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
5747
5748 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5749 R_ARM_PC24 relocation.
5750
5751 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
5752
5753 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
5754 argument is_local. Add argument sym_flags. Check sym_flags
5755 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
5756 (elf32_arm_relocate_section): Don't pass local sym and pass
5757 sym_flags to elf32_arm_final_link_relocate.
5758
5759 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
5760
5761 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
5762 to not count too few relocs for dynamicly linked executables.
5763
5764 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
5765
5766 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
5767 symbols without a dynamic index dynamic. Consider all weak
5768 symbols dynamic.
5769 (elf64_alpha_strip_section_from_output): Don't assume 1-1
5770 correspondance between input and output sections.
5771
5772 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5773
5774 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
5775 that use a .got.plt section start the got offset at zero.
5776
5777 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
5778
5779 * ieee.c (ieee_write_processor): Correct the processor ID written
5780 out for bfd_arch_m68k, accommodating change of March 25.
5781
5782 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
5783
5784 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5785 R_ARM_THM_RPC22 relocations.
5786
5787 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
5788
5789 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
5790 are always dynamic.
5791 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
5792 .got relocs in -Bsymbolic shared objects.
5793
5794 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
5795
5796 * elf32-arm.c: Add private flags to ELF header.
5797 (elf32_arm_print_private_bfd_data): New Function.
5798 (elf32_arm_set_private_flags): New Function.
5799 (elf32_arm_copy_private_flags): New Function.
5800 (elf32_arm_merge_private_bfd_data): New Function.
5801
5802 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
5803
5804 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
5805 a local symbol.
5806 (elf32_sparc_relocate_section): Likewise.
5807
5808 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
5809
5810 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
5811 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
5812 (ppc_elf_relocate_section): Pull sgot and splt search to the start
5813 of the function. Recognize no .plt as static linking.
5814
5815 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
5816
5817 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
5818 ".liblist" string through gettext.
5819
5820 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
5821
5822 * Makefile.am: Add support for elf32-arm.lo.
5823 * Makefile.in: Rebuild.
5824 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
5825 (thumb-*-elf): Define targ_defvec and targ_selvecs.
5826 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
5827 * configure: Regenerate.
5828 * elf.c: (prep_headers): Support arch_type of EM_ARM.
5829 * targets.c: Support new targets bfd_elf32_bigarm_vec and
5830 bfd_target bfd_elf32_littlearm_vec.
5831 * elf32-arm.c: New file.
5832
5833 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
5834
5835 * libaout.h (M_SPARCLITE_LE): New machine.
5836 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
5837 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
5838 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
5839 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
5840 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
5841 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
5842 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
5843 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
5844 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
5845 be BFD_RELOC_SPARC_REV32.
5846 * reloc.c: Ditto.
5847 * config.bfd (sparc86x-*-aout): New
5848
5849 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
5850
5851 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
5852 actually mapping the output sections.
5853
5854 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
5855
5856
5857 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
5858 (mn10300_elf_reloc_map): Similarly.
5859 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
5860
5861 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
5862
5863 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
5864 Irix 6.
5865 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
5866 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
5867 elf_mips_reloc_type defined in elf/mips.h.
5868
5869 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
5870
5871 * elf64-mips.c: Remove reloc_type definition completely. It's now
5872 in elf/mips.h.
5873
5874 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
5875
5876 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
5877 as they are defined in elf/mips.h now.
5878
5879 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
5880
5881
5882 * Re-add lost change:
5883 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
5884 "movm_stack_size".
5885 (mn10300_elf_relax_section): Include stack space for register saves
5886 in the imm8 field of a "call" instruction.
5887 (compute_function_info): Determine how much stack is allocated by
5888 the movm instruction. Fix typo.
5889 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
5890
5891 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
5892
5893 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
5894 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
5895
5896 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
5897
5898 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
5899
5900 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
5901
5902 * elf32-hppa.h: Let ELF header define the enum containing the
5903 external reloc numbers.
5904 * elf32-i386.h: Likewise.
5905
5906 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
5907
5908 * elf-m10300.c: Let ELF header now define the macros to get the enum.
5909 * elf32-mips.c: Likewise.
5910 * elf32-ppc.c: Likewise.
5911
5912 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
5913
5914 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
5915 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
5916 prblems.
5917 * bfd-in.h: Regenerate.
5918 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
5919 parameter to 'unsigned int' to avoid K&R compatability problems.
5920
5921 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
5922
5923 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
5924 functionname_ptr to be const. Change line_ptr to be unsigned.
5925
5926 * coffcode.h (coff_link_output_has_begun): Simplify handling when
5927 macro is not defined. Change second parameter from bfd_link_info
5928 to coff_final_link_info. Add prototype.
5929 (coff_final_link_postscript): Simplify handling when macro is not
5930 defined. Add prototype.
5931
5932 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
5933
5934 * elf-mn10300.c: Before include system specific ELF header define
5935 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
5936 * elf32-mips.c: Likewise.
5937 * elf32-ppc.c: Likewise.
5938
5939 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
5940
5941 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
5942 temporary patch over to elf64-mips.c as well.
5943
5944 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
5945
5946 * elf32-mips.c (reloc_type): Temporarily disable definition of
5947 standard relocation since they are now defined in elf/mips.h.
5948
5949 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
5950
5951 * elf-m10200.c (mn10200_elf_final_link_relocate):
5952 Modify range test for case R_MN10200_8.
5953
5954 * elf-m10300.c (mn10300_elf_final_link_relocate):
5955 Modify range test for case R_MN10300_8.
5956
5957 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
5958
5959 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
5960 * elf32-i386.c (elf_backend_got_header_size): Define.
5961 (elf_backend_plt_header_size): Define.
5962 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
5963 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
5964 * elfxx-target.h: Provide a default of zero.
5965 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
5966 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
5967
5968 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
5969 entry from an executable, even if the plt refcount goes to 0.
5970
5971 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5972
5973 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
5974 directory name at the line number.
5975
5976 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
5977 with an unspecified type.
5978
5979 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
5980
5981 * sunos.c: Add undef of valid to avoid problem on SunOS.
5982
5983 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
5984
5985 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
5986
5987 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5988
5989 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
5990 R_68K_PCxx and R_68K_xx relocations. Make sure that
5991 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
5992 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
5993 R_68K_xx relocations.
5994 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
5995 that has no plt entry.
5996 (elf_m68k_relocate_section): Ignore the plt offset in a static
5997 link.
5998 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
5999 an ignored symbol.
6000 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
6001 a static link.
6002
6003 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
6004 types.
6005 (howto_table, reloc_map): Add entries for them.
6006 (elf_m68k_check_relocs): Handle them. Implement reference
6007 counting for got and plt entries.
6008 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
6009 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
6010 symbols.
6011 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
6012 (elf_m68k_relocate_section): Handle the new reloc types.
6013 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
6014 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
6015 * elflink.h (elf_link_add_object_symbols): When creating an
6016 indirect reference for symbol versioning also copy the plt
6017 offset.
6018 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
6019 flag also reset the plt offset.
6020 (elf_link_assign_sym_version): Likewise.
6021 (elf_gc_common_finalize_got_offsets): Increment the got offset by
6022 the size of the entry in bytes.
6023 (elf_gc_allocate_got_offsets): Likewise.
6024
6025 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
6026
6027 * elflink.h (elf_gc_sections): Return true rather than falling off
6028 the bottom.
6029
6030 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
6031 xmalloc.
6032
6033 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
6034
6035 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
6036 comment describing when it should be enabled.
6037 Changed definition of USER_LABEL_PREFIX to "", to fall into line
6038 with GCC sources.
6039
6040 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
6041
6042 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
6043 information ATN records.
6044
6045 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
6046
6047 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
6048 section for an absolute symbol in a fully linked file. Based on
6049 patch from Christian Holland <CHolland@de.lucent.com>.
6050
6051 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
6052
6053 * coff-m88k.c (m88k_special_reloc): Don't lose the information
6054 that a symbol is undefined.
6055
6056 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
6057
6058 * som.c (som_bfd_gc_sections): Define.
6059
6060 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
6061
6062 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
6063 overflows in ARM_26D patches, since they have already been
6064 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
6065
6066 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
6067
6068 * coffcode.h (coff_write_object_contents): If we have any long
6069 section names, call coff_write_symbols even if there are no
6070 symbols.
6071
6072 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
6073
6074 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
6075 PT_LOAD segment, rather than only setting it once for the entire
6076 file.
6077
6078 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
6079 rather than ignoring every phdr with a p_paddr of 0, ignore all
6080 the phdrs if they all have a p_paddr of 0.
6081
6082 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
6083 section was discarded from the link.
6084
6085 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6086
6087 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
6088
6089 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6090
6091 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
6092 floating point operations.
6093
6094 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
6095
6096 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
6097 function symbols.
6098
6099 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
6100
6101 Merge of vax/vms (read-only) support
6102 * configure.com: Support Vax target.
6103 * makefile.vms: Support Vax target.
6104 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
6105 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
6106 support.
6107 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
6108 support.
6109 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
6110 support.
6111 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
6112 support.
6113 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
6114 support.
6115 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
6116 * targets.c (bfd_target_ovax_flavour): New flavour.
6117 (vms_alpha_vec): Renamed from evax_alpha_vec.
6118 (vms_vax_vec): New.
6119 (target_vector): Update accordingly.
6120 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
6121 evax_alpha_vec.
6122 (vax*-*-*vms*): New target.
6123 * Makefile.am: Update for renamed files. Rebuild dependencies.
6124 * bfd-in2.h: Rebuild.
6125 * configure.in, Makefile.in, aclocal.m4: Rebuild.
6126
6127 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
6128
6129 Based on patch from Matt Semersky <matts@scd.hp.com>:
6130 * linker.c (_bfd_generic_final_link): Force a trailing NULL
6131 pointer on abfd->outsymbols.
6132 (generic_add_output_symbol): Handle NULL sym parameter.
6133
6134 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
6135
6136 * elf.c (copy_private_bfd_data): Add support for changing VMA or
6137 LMA of sections.
6138
6139 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
6140
6141 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
6142 when handling 32 bit immediate relocs.
6143 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
6144
6145 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
6146
6147 * section.c (STD_SECTION): Account for recently added gc_mark
6148 field in struct asection.
6149
6150 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
6151 (bfd_elf32_bfd_merge_private_bfd_data): Define.
6152
6153 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
6154
6155 ELF Section-level Garbage Collection:
6156 * bfd.c (bfd_gc_sections): New.
6157 * aout-adobe.c: Hook to default implementation.
6158 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
6159 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
6160 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
6161 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
6162 * tekhex.c, versados.c: Likewise.
6163 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
6164 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
6165
6166 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
6167 (bfd_generic_gc_sections): New.
6168 * section.c (SEC_KEEP): New.
6169 (asection): Add gc_mark member.
6170
6171 * elfcode.h (elf_gc*): New name remappings.
6172 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
6173 sections to be excluded.
6174 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
6175 (elf_gc_propogate_vtable_entries_used): New.
6176 (elf_gc_smash_unused_vtentry_relocs): New.
6177 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
6178 (elf_gc_common_finalize_got_offsets): New.
6179 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
6180 * elfxx-target.h: Add and default gc hooks.
6181
6182 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
6183 for unions.
6184 (struct elf_obj_tdata): Likewise for local_got_offsets.
6185 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
6186 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
6187 * elf64-sparc.c, elflink.h: Likewise.
6188
6189 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
6190 (ELF_LINK_HASH_MARK): Define.
6191 (struct elf_backend_data): Add GC hooks.
6192 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
6193
6194 * elf-m10300.c (mn10300_elf_check_relocs): New.
6195 (mn10300_elf_gc_mark_hook): New.
6196 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
6197 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
6198 (mn10300_elf_final_link_relocate): Likewise.
6199 (mn10300_elf_relocate_section): Likewise.
6200 (elf_backend_can_gc_sections): Define.
6201 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
6202 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
6203 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
6204 (mips_info_to_howto_rel): Likewise.
6205 (mips_elf_relocate_section): Likewise.
6206 (mips_elf_check_relocs): Likewise.
6207 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
6208 (elf_backend_can_gc_sections): Define.
6209 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
6210 (ppc_elf_howto_raw): Handle them.
6211 (ppc_elf_reloc_type_lookup): Likewise.
6212 (ppc_elf_relocate_section): Likewise.
6213 (ppc_elf_check_relocs): Reference count .got and .plt entries.
6214 Handle new vtable relocs.
6215 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
6216 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
6217 (elf_backend_can_gc_sections): Define.
6218
6219 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
6220
6221 * archures.c (bfd_mach_mn10300): Define.
6222 * elf-m10300.c: Include elf/mn10300.h
6223 (elf_mn10300_mach): New function.
6224 (_bfd_mn10300_elf_final_write_processing): Likewise.
6225 (_bfd_mn10300_elf_object_p): Likewise.
6226 (elf_backendfinal_write_processing): Define.
6227 (elf_backend_object_p): Likewise.
6228
6229 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
6230
6231 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
6232 relocation.
6233
6234 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
6235
6236 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
6237 link_next field, not the next field.
6238
6239 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
6240
6241 * elf.c (map_sections_to_segments): Check the section address
6242 against the phdr size both with and without a modulo of
6243 maxpagesize.
6244
6245 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
6246
6247 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
6248 linker created empty input section if the output section has the
6249 same name.
6250
6251 * elflink.h (elf_link_output_extsym): Print an error message if
6252 _bfd_elf_section_from_bfd_section fails.
6253
6254 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
6255 failure.
6256
6257 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
6258
6259 * elf.c (copy_private_bfd_data): Improve handling of Solaris
6260 native linker output. Avoid putting an empty section in more than
6261 one segment.
6262
6263 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
6264
6265 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
6266 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
6267
6268 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
6269
6270 * elf.c (swap_out_syms): New arg relocatable_p.
6271 Don't add section VMA to symbols for relocatable output.
6272 (_bfd_elf_compute_section_file_positions): Update call to
6273 swap_out_syms.
6274
6275 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
6276
6277 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
6278 against 'addend' be signed rather than unsigned.
6279
6280 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
6281
6282 * elf32-m32r.c: Add prototyps for static functions.
6283
6284 * coff-arm.c: Add prototypes for static functions.
6285
6286 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
6287
6288 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
6289 LMA is used to order sections in a segment.
6290
6291 * elf32-v850.c: Add prototypes for static functions.
6292 Change type of addend parameter to bfd_vma in various functions.
6293
6294 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
6295
6296 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
6297 complain_overflow_signed instead of complain_overflow_bitfield.
6298
6299 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6300
6301 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
6302 when comparing against 0.
6303
6304 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
6305
6306 * Makefile.am (config.status): New target.
6307 * Makefile.in: Rebuild.
6308
6309 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
6310
6311 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
6312 error if previous object endianness doesn't match current object.
6313
6314 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
6315
6316 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
6317 _bfd_elf_print_private)bfd_data ().
6318
6319 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
6320
6321 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
6322 and size_change_ok.
6323 (elf_link_add_object_symbols): Set type_change_ok and
6324 size_change_ok before calling elf_merge_symbol.
6325
6326 * elf32-mips.c (mips_elf_relocate_section): If we issue an
6327 undefined symbol error, don't also issue an overflow error.
6328
6329 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
6330
6331 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
6332 R_PPC_LOCAL24PC relocation should be local; if not, print an error
6333 message instead of crashing.
6334
6335 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
6336
6337 * archures.c (bfd_mach_cpu32): Define.
6338 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
6339 bfd_mach_cpu32.
6340 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
6341 * ieee.c: Include <ctype.h>.
6342 (ieee_object_p): Parse out process ID string to make it more
6343 likely to be acceptable for bfd_scan_arch.
6344 * bfd-in2.h: Rebuild.
6345
6346 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
6347
6348 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
6349 _bfd_elf_print_private_bfd_data() so that the program header will
6350 be displayed.
6351
6352 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
6353
6354 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
6355 0x68. Reindent. Add some comments.
6356
6357 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
6358
6359 * elf.c (copy_private_bfd_data): Adjust physical address of
6360 segment in output BFD to contain LMAs of its sections.
6361
6362 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
6363
6364 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
6365 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
6366 endian data 32 bit relocations.
6367 (elf32_sparc_merge_private_bfd_data): Check if linking little
6368 endian objects with big endian objects.
6369 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
6370 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
6371 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
6372 * reloc.c: Same.
6373 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
6374 * archures.c (bfd_mach_sparc_sparclite_le): New.
6375 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
6376
6377 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
6378
6379 * peicode.h (add_data_entry): Fix precedence of operators in if ()
6380 statement.
6381
6382 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
6383
6384 * bfd-in.h: Move over patch to bfd-in2.h.
6385
6386 * reloc.c (bfd_check_overflow): Add casts before shifts which may
6387 not fit in 32 bits.
6388 (_bfd_relocate_contents): Likewise.
6389
6390 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
6391
6392 * peicode.h (add_data_entry): If the section has no private data
6393 then do not create a Data Dictionary entry for it.
6394
6395 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
6396
6397 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
6398 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
6399 elf64_alpha_size_got_sections): Rewrite, handling multiple got
6400 subsections during relaxation more correctly.
6401
6402 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
6403
6404 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
6405 Add extra argument to bfd_arm_process_before_allocation ().
6406 * bfd-in.h: Reflect changes made in bfd-in2.h.
6407 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
6408 coff class of a BFD symbol.
6409 * coff-arm.c: Add support for interworking between Thumb code and
6410 non-interworking aware ARM code.
6411
6412 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
6413
6414 * po/Make-in (install-info): New target.
6415
6416 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
6417
6418 * filemode.c: Remove; not used.
6419
6420 If sysdep.h includes a header file, don't include it again:
6421 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
6422 <errno.h>.
6423 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
6424 <sysdep.h>.
6425 * archive.c: Don't include <string.h> or <errno.h>.
6426 * evax-alpha.c; Don't include <stdio.h>.
6427 * evax-egsd.c: Likewise.
6428 * evax-etir.c: Likewise.
6429 * evax-misc.c: Likewise.
6430 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
6431 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
6432 <errno.h>.
6433 * hpux-core.c: Likewise.
6434 * netbsd-core.c: Likewise.
6435 * som.c: Likewise.
6436 * libbfd.c: Don't include <sys/types.h>.
6437 * nlmcode.h: Don't include <string.h>.
6438 * osf-core.c: Don't include <string.h> or <stdio.h>.
6439 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
6440 <errno.h>, or <unistd.h>.
6441 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
6442
6443 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
6444
6445 * configure.com: If the version number can not be found in
6446 configure.in, set it to "unknown" rather than "2.8.1".
6447
6448 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
6449
6450 * elf32-mips.c (elf_mips_mach): New.
6451 (_bfd_mips_elf_object_p): Use elf_mips_mach.
6452 (_bfd_mips_elf_final_write_processing): Use the names
6453 of machines, rather than the numbers. Set both the ARCH
6454 and MACH in e_flags. Handle a few more specific machines.
6455 (_bfd_mips_elf_merge_private_bfd_data): Merge both
6456 EF_MIPS_ARCH and EF_MIPS_MACH.
6457
6458 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
6459
6460 * syms.c (bfd_is_local_label): Revert last change.
6461 * srec.c (srec_write_symbols): Discard debugging symbols.
6462
6463 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
6464
6465 * som.c: Include <ctype.h>.
6466 * som.h: Don't include sysdep.h.
6467
6468 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
6469
6470 * libbfd.h: Rebuilt.
6471 * libbfd-in.h: Removed gettext includes and defines.
6472 * sysdep.h: Moved gettext-related includes and defines here.
6473
6474 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
6475
6476 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
6477 an ad-hoc test. Kill bogus #if 0 code.
6478 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
6479
6480 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
6481
6482 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
6483 when generating a normal executable for a symbol defined in a
6484 regular file. When copying a reloc into the output file, adjust
6485 the addend for a PC relative reloc against a global symbol.
6486
6487 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
6488
6489 * libbfd.h: Rebuilt.
6490 * libbfd-in.h (_): Define as dgettext.
6491
6492 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
6493
6494 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
6495 not signed.
6496 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
6497 when declaring parameter types.
6498 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
6499
6500 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
6501
6502 * config.bfd: If we include any ELF targets in targ_defvec and/or
6503 targ_selvecs, then add the generic ELF targets to targ_selvecs.
6504 * elf32-gen.c (dummy): New static const variable.
6505 (elf_generic_info_to_howto): New static function.
6506 (elf_generic_info_to_howto_rel): New static function.
6507 (elf_info_to_howto): Define as elf_generic_info_to_howto.
6508 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
6509 * elf64-gen.c: Same changes as elf32-gen.c.
6510 * elfcode.h (elf_object_p): For the generic target, ignore a
6511 failure of bfd_default_set_arch_mach. Fix indentation a bit.
6512
6513 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
6514
6515 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
6516 * configure: Rebuild.
6517
6518 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
6519
6520 * config.bfd: Update OSR5/Unixware patterns.
6521
6522 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
6523
6524 * elf.c (assign_file_positions_for_segments): Allow for holes
6525 between sections added by a link script.
6526
6527 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
6528
6529 * configure.in: Change version number to 2.9.4
6530 * configure: Rebuild.
6531
6532 Based on patch from H.J. Lu <hjl@gnu.org>:
6533 * elf.c (bfd_elf_get_bfd_needed_list): New function.
6534 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
6535 * bfd-in2.h: Rebuild.
6536
6537 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
6538
6539 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
6540 Change all users.
6541
6542 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
6543
6544 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
6545 (elf64_alpha_relax_section): Fill them in.
6546 (elf64_alpha_relax_opt_call): Implement more than a stub.
6547 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
6548 alignment on .scommon.
6549 (elf64_alpha_merge_gots): Merge use counts as well.
6550
6551 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
6552
6553 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
6554 for calculating a local symbol's address.
6555 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
6556 Set the .got's cooked size as well as the raw size.
6557
6558 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
6559
6560 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
6561 internationalisation of printed information.
6562
6563 * coff-arm.c (coff_arm_print_private_bfd_data): Add
6564 internationalisation of printed information.
6565
6566 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
6567
6568 * syms.c (struct indexentry): Change directory_name, file_name,
6569 and function_name fields to char *.
6570 (struct stab_find_info): Change cached_file_name field to char *.
6571
6572 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
6573
6574 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
6575
6576 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
6577
6578 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
6579
6580 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
6581
6582 * Makefile.am (install-data-local): Make $(includedir).
6583 * Makefile.in: Rebuild.
6584
6585 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
6586
6587 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
6588
6589 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
6590
6591 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
6592 * Makefile.in: Rebuild.
6593
6594 * bfd-in2.h: Rebuild for Nick's changes.
6595
6596 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
6597
6598 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
6599 change wrt length == max_namelen.
6600
6601 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
6602
6603 * Many files: Added gettext invocations around user-visible
6604 strings.
6605 * libbfd-in.h: Added gettext includes and defines.
6606 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
6607 HAVE_LC_MESSAGES): Define.
6608 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
6609 po/Makefile.
6610 * Makefile.am (SUBDIRS): Added po.
6611 (POTFILES): New macro.
6612 (po/POTFILES.in): New target.
6613 (SOURCE_HFILES): New macro.
6614 (HFILES): Use it.
6615 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
6616
6617 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6618
6619 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
6620 NT_PRSTATUS note section encountered, it contains the status of
6621 the currently executing thread when the core file was written.
6622
6623 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
6624
6625 * libcoff.h: Add extra parameter to
6626 bfd_coff_link_output_has_begun overrideable function.
6627 * cofflink.c: Pass extra parameter to
6628 bfd_coff_link_output_has_begun function.
6629 * bfd-in.h: Add prototypes for exported ARM interworking
6630 functions.
6631 * peicode.h: ARM specific code reorganised to conform to BFD
6632 coding conventions.
6633 * coffcode.h: ARM specific code reorganised to conform to BFD
6634 coding conventions.
6635 * coff-arm.c: Code reorganised to conform to the BFD coding
6636 conventions. Global variables have been moved into an ARM
6637 specific hash table structure and a new function:
6638 bfd_arm_get_bfd_for_interworking() has been created which is
6639 called from the linker scripts.
6640
6641 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
6642
6643 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
6644
6645 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
6646 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
6647 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
6648 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
6649
6650 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
6651
6652 * config.bfd: Added sparc86x support.
6653
6654 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
6655
6656 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
6657 an out of range pc-relative jump/call to an undefined weak symbol.
6658
6659 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
6660
6661 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
6662 comparisons signed.
6663
6664 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
6665
6666 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
6667 an error other than bfd_error_system_call, set the error to
6668 bfd_error_wrong_format.
6669
6670 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
6671 bfd_elf32_powerpcle_vec.
6672
6673 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
6674 program segments are zero, don't set p_paddr_valid.
6675
6676 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
6677
6678 * elf64-alpha.c: Initial implementation of relaxation --
6679 (struct alpha_elf_link_hash_entry): Add use_count member.
6680 (elf64_alpha_check_relocs): Initialize and increment it.
6681 (elf64_alpha_can_merge_gots): Check it when considering merging.
6682 (elf64_alpha_merge_gots): Drop entries with zero use.
6683 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
6684 (elf64_alpha_always_size_sections): Split out got sizing ...
6685 (elf64_alpha_size_got_sections): ... here. New function.
6686 (elf64_alpha_relax_find_reloc_ofs): New function.
6687 (elf64_alpha_relax_with_lituse): Likewise.
6688 (elf64_alpha_relax_without_lituse): Likewise.
6689 (elf64_alpha_relax_opt_call): Likewise.
6690 (elf64_alpha_relax_section): Likewise.
6691 (elf64_alpha_add_symbol_hook): Likewise.
6692 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
6693 (elf64_alpha_relocate_section): Likewise.
6694 (bfd_elf64_bfd_relax_section): Define.
6695 (elf_backend_add_symbol_hook): Likewise.
6696
6697 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
6698
6699 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
6700 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
6701 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
6702
6703 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
6704
6705 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
6706 * configure: Rebuild.
6707
6708 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
6709
6710 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
6711 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
6712 * configure.in: Define and substitute WIN32LDFLAGS and
6713 WIN32LIBADD.
6714 * aclocal.m4: Rebuild with new libtool.
6715 * configure, Makefile.in: Rebuild.
6716
6717 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
6718
6719 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
6720 before any other symbols in the same section.
6721
6722 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
6723
6724 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
6725 systems.
6726
6727 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
6728
6729 * dwarf2.c (comp_unit): Move it earlier in the source. Add
6730 addr_size.
6731 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
6732 Use addr_size for address size, rather than sizeof(bfd_vma).
6733 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
6734 Fix call to read_address.
6735 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
6736 Scrap other unneeded arguments. Fix call to read_address.
6737 (scan_unit_for_functions): Fix call to read_attribute.
6738 (parse_comp_unit): We now handle more values for addr_size.
6739 Set addr_size in unit. Fix call to read_attribute and
6740 decode_line_info.
6741
6742 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
6743
6744 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
6745
6746 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
6747
6748 * archures.c (bfd_default_scan): Add m68k cases back to default
6749 switch, reverting patch of March 25, since IEEE support depends
6750 upon them.
6751
6752 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
6753
6754 * Makefile.am (diststuff): New target.
6755 * Makefile.in: Rebuild.
6756
6757 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
6758
6759 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
6760 som_offset when we have an extended name table.
6761
6762 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
6763
6764 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
6765 trying to copy it.
6766 * Makefile.in: Rebuild.
6767
6768 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6769
6770 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
6771 symbols when creating a shared library.
6772 (elf_m68k_adjust_dynindx): New function, used by above code.
6773 (elf_m68k_finish_dynamic_sections): Initialize the section
6774 symbols.
6775 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
6776
6777 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
6778
6779 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
6780 value 11.
6781
6782 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6783
6784 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
6785 assertion.
6786
6787 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
6788
6789 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
6790 absolute symbols.
6791
6792 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
6793
6794 * configure.in: Set version to 2.9.1.
6795 * configure: Rebuild.
6796
6797 * Branched binutils 2.9.
6798
6799 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
6800
6801 * syms.c (ENABLE_CACHING): Define.
6802 (struct indexentry): Define.
6803 (struct stab_cache): Remove.
6804 (cmpindexentry): New static function.
6805 (struct stab_find_info): Add new fields: indextable,
6806 indextablesize, cached_indexentry, cached_offset, cached_stab, and
6807 cached_file_name. Remove fields: file_cache, function_cache, and
6808 line_cache.
6809 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
6810 index table and search it.
6811
6812 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
6813
6814 * elf.c (_bfd_elf_copy_private_section_data): Call
6815 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
6816
6817 * cpu-mips.c: Remove trailing comma at end of enumeration list.
6818
6819 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
6820
6821 * coff-arm.c: Define all globally visible variables and functions
6822 only when COFF_WITH_PE is not defined.
6823 * configure.in (armpe_little_vec, armpe_big_vec): Add
6824 coff-arm.lo.
6825 * configure: Rebuild.
6826
6827 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
6828
6829 Fix some gcc -Wall warnings:
6830 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
6831 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
6832 * archures.c (bfd_default_scan): Likewise.
6833 * bfd.c (bfd_scan_vma): Likewise.
6834 * binary.c (mangle_name): Likewise
6835 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
6836 * coff-sh.c (sh_relocate_section): Likewise.
6837 * coff-stgo32.c (create_go32_stub): Likewise.
6838 * coffcode.h (coff_slurp_line_table): Likewise.
6839 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
6840 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
6841 (assign_file_positions_for_segments): Likewise.
6842 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6843 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
6844 * oasys.c (oasys_write_sections): Likewise.
6845 * ppcboot.c (ppcboot_object_p): Likewise.
6846 (mangle_name): Likewise.
6847 * riscix.c (riscix_fix_pcrel_26): Likewise.
6848 * srec.c (srec_scan): Likewise.
6849 * stabs.c (_bfd_write_section_stabs): Likewise.
6850 * sunos.c (sunos_add_dynamic_symbols): Likewise.
6851 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
6852 switch. Declare parameters for function pointers.
6853 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
6854 warning.
6855 * elf.c (elf_sort_sections): Likewise.
6856 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
6857 Add default cases to switches.
6858 (coff_arm_relocate_section): Remove unused local variables.
6859 Always set rstat.
6860 (coff_arm_bfd_set_private_flags): Change flag variable to type
6861 flagword.
6862 * coff-mips.c (mips_relocate_section): Initialize use_lo.
6863 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
6864 (dump_toc): Change cat to const, and initialize it.
6865 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
6866 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
6867 (sh_elf_relocate_section): Initialize r_symndx.
6868 * coffcode.h (coff_compute_section_file_positions): Only declare
6869 old_sofar if ALIGN_SECTIONS_IN_FILE.
6870 (coff_write_object_contents): Initialize csym.
6871 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
6872 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
6873 switch.
6874 * dwarf2.c: Include libiberty.h.
6875 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
6876 (decode_line_info): Remove unused local variables.
6877 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
6878 (m32r_elf_relocate_section): Likewise.
6879 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
6880 (v850_elf_reloc): Likewise.
6881 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
6882 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
6883 * elf.c (assign_file_positions_for_segments): Always set adjust.
6884 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
6885 parenthesize expression.
6886 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
6887 (m32r_elf_object_p): Return a value.
6888 (m32r_elf_print_private_bfd_data): Change fprintf format string.
6889 * elf32-mips.c (mips_elf_final_link): Initialize last.
6890 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
6891 * elf32-v850.c (v850_elf_object_p): Return a value.
6892 (v850_elf_print_private_bfd_data): Change fprintf format string.
6893 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
6894 unsigned long.
6895 * elflink.h (elf_link_add_object_symbols): Change vernum to
6896 unsigned int, and initialize it. Change fprintf format string.
6897 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
6898 when setting or comparing to soname_indx.
6899 (elf_create_pointer_linker_section): Change num_symbols to
6900 unsigned int.
6901 * libcoff-in.h (coff_data_type): Change flags to flagword.
6902 * peicode.h (pe_print_idata): Initialize idx. Change j to
6903 bfd_size_type. Initialize hint_member. Remove useless test to
6904 time_stamp.
6905 (pe_print_edata): Change num_functions and num_names in struct
6906 EDT_type to unsigned long. Remove cast. Change fprintf format
6907 string.
6908 * ppcboot.c (ppcboot_object_p): Change i to size_t.
6909 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
6910 int.
6911 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
6912 int *. Update uses. Change j to long.
6913 * bfd-in2.h, libcoff.h: Rebuild.
6914
6915 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
6916
6917 * elf32-v850.c Remove definition of USE_REL.
6918 (v850_elf_info_to_howto_rela): New function.
6919 (v850_elf_perform_relocation): Renamed from
6920 v850_elf_store_addend_in_insn. Removed replace argument.
6921 (v850_elf_reloc): store the relocation in the addend field instead
6922 of the insn.
6923 (v850_elf_final_link_relocate): Now calls
6924 v850_elf_perform_relocation.
6925 (v850_elf_relocate_section): Remove code to generate REL
6926 relocations.
6927
6928 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
6929
6930 * coffcode.h (coff_new_section_hook): Set the type and storage
6931 class in the native symbol information allocated for a new section
6932 symbol.
6933
6934 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
6935
6936 * peicode.h: Chain together calls to
6937 coff_bfd_copy_private_bfd_data and
6938 coff_bfd_print_private_bfd_data.
6939
6940 * coff-arm.c: Add prototypes for
6941 coff_arm_bfd_print_private_bfd_data and
6942 coff_arm_bfd_copy_private_bfd_data.
6943
6944 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
6945
6946 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
6947 build.
6948
6949 * peicode.h: Call arm-coff private data functions after handling
6950 pe private data.
6951
6952 * coff-arm.c: Turn statics into globals so that they can be shared
6953 both pe and pei backends.
6954
6955 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
6956
6957 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
6958 plain numbers.
6959 (sunos_write_object_contents): Likewise.
6960 * aoutx.h (NAME(aout,machine_type)): Likewise.
6961 * coffcode.h (coff_set_arch_mach_hook): Likewise.
6962
6963 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6964
6965 * archures.c (bfd_mach_m68*): Add definitions for various m68k
6966 variants.
6967 (bfd_default_scan): Remove m68k special cases.
6968 * bfd-in2.h: Rebuild.
6969 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
6970 than plain numbers.
6971 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
6972 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
6973 m68k:68000.
6974 (bfd_m68k_arch): Set mach field to zero to signal no explicit
6975 selection, change printable_name to just "m68k" and make that the
6976 default instead of m68k:68020.
6977
6978 * aout-tic30.c (NAME): Define this to avoid multiple definitions
6979 from aoutx.h.
6980 (MY_get_section_contents): Define as aout_32_get_section_contents
6981 rather than NAME(aout,get_section_contents).
6982
6983 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
6984
6985 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
6986 and call bfd_default_set_arch_mach to do the real work.
6987
6988 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
6989
6990 * bout.c (BALX): Include return register g14 as part of the insn.
6991 (BALX_MASK): New.
6992 (calljx_callback): Use it.
6993
6994 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
6995
6996 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
6997 * libbfd.h: Rebuild.
6998
6999 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
7000 byte_count to unsigned int.
7001 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
7002 unused local variables.
7003
7004 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
7005 variables er and er1.
7006
7007 * cpu-v850.c: Include <ctype.h>.
7008 (scan): Case isdigit argument to unsigned char.
7009
7010 From Yan Meroth <YAN.MEROTH@st.com>:
7011 * ihex.c (ihex_scan): Add extbase variable so that getting an
7012 extended linear address record does not ignore any previous
7013 extended address.
7014 (ihex_write_object_contents): When writing out an extended linear
7015 address record, zero out any previous extended address.
7016
7017 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
7018
7019 * ieee.c (do_one): Check section before dereferencing it.
7020 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
7021 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
7022
7023 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
7024
7025 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
7026
7027 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
7028
7029 * coff-arm.c: Add interworking functions to pe backends.
7030
7031 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
7032
7033 * configure.in: Use AM_DISABLE_SHARED.
7034 * aclocal.m4, configure: Rebuild with libtool 1.2.
7035
7036 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
7037
7038 * coff-arm.c (coff_arm_relocate_section): Better error messages
7039 when interowrking conflucts occur. Courtesy of Jonathan Walton
7040 and Tony Thompson.
7041 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
7042 relocations. Patch courtesy of Jonathan Walton and Tony
7043 Thompson.
7044
7045 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
7046
7047 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
7048 part of Feb 22 change controling when to override the existing
7049 symbol with the .plt entry.
7050
7051 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
7052
7053 * config.bfd (targ_cpu): Add thumb-pe target.
7054
7055 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
7056 functions in PE build.
7057
7058 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
7059
7060 * config.bfd (sparclite-*-elf*): Added.
7061
7062 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
7063
7064 * configure.in: Add elf.lo to elf shell variable.
7065 * Makefile.am (BFD_LIBS): Remove elf.lo.
7066 (BFD_LIBS_CFILES): Remove elf.c.
7067 (BFD32_BACKENDS): Add elf.lo.
7068 (BFD32_BACKENDS_CFILES): Add elf.c.
7069 * configure, Makefile.in: Rebuild.
7070
7071 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
7072
7073 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
7074 relocation against a non-local symbol should not have a dynamic
7075 relocation.
7076
7077 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
7078
7079 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
7080 COFF filehdr flags.
7081 (pe_print_private_bfd_data): Print PE flags. From Mikey
7082 <jeffdb@netzone.com>.
7083
7084 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
7085
7086 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
7087 a plt entry when we can determine that we authoritatively define
7088 the symbol.
7089
7090 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
7091
7092 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
7093 don't actually use trad-core, but a SunOS-style core file handled
7094 by gdb directly.
7095 * hosts/sparclinux.h: Remove.
7096
7097 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
7098
7099 * peicode.h (pe_print_idata): If there is no .idata section, look
7100 for the import tables in some other section. Make the initial
7101 label line up better with the data. Print the import address
7102 table even if there is no import name table. If the import
7103 address table holds actual addresses, print them.
7104
7105 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
7106
7107 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
7108 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
7109 bfd_error_system_call.
7110
7111 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
7112
7113 * Makefile.am (AUTOMAKE_OPTIONS): Define.
7114 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
7115
7116 From H.J. Lu <hjl@gnu.org>:
7117 * Makefile.am (libbfd_la_LDFLAGS): Define.
7118 * Makefile.in: Rebuild.
7119
7120 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
7121
7122 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
7123 * netbsd.h (MACHTYPE_OK): Define.
7124 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
7125 calling N_SET_MACHTYPE, rather than having a switch.
7126 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
7127 and M_ALPHA_NETBSD.
7128 * i386netbsd.c (MACHTYPE_OK): Don't define.
7129 (DEFAULT_MID): Define.
7130 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
7131 (MACHTYPE_OK): Don't define.
7132 (DEFAULT_MID): Define.
7133 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
7134 (DEFAULT_MID): Define.
7135 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
7136 (DEFAULT_MID): Define.
7137 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
7138 (DEFAULT_MID): Define.
7139
7140 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
7141 * vaxnetbsd.c: New file.
7142 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
7143 rather than netbsd_core.
7144 * targets.c (vaxnetbsd_vec): Declare.
7145 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
7146 defined, add netbsd_core_vec.
7147 * configure.in: Set COREFILE for alpha*-*-netbsd* and
7148 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
7149 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
7150 * config.bfd (alpha*-*-netbsd*): New target.
7151 * Makefile.am: Rebuild dependencies.
7152 (BFD32_BACKENDS): Add vaxnetbsd.lo.
7153 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
7154 * configure, Makefile.in: Rebuild.
7155
7156 * configure.host: Remove the old shared library build stuff. We
7157 now use libtool instead.
7158
7159 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
7160
7161 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
7162
7163 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
7164
7165 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
7166 * configure: Rebuild.
7167
7168 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
7169 * elf32-v850.c (remember_hi16s_reloc): New function.
7170 (find_remembered_hi16s_reloc): New function.
7171 (v850_elf_store_addend_in_insn): Use the above new functions to
7172 match up HI6S relocs with LO16 relocs.
7173
7174 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
7175
7176 * configure.in: Change -linux* to -linux-gnu*.
7177 * config.bfd, configure.host: Likewise.
7178 * configure: Rebuild.
7179
7180 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
7181
7182 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
7183 LO16/HI16S bug and improve comments about what is going on.
7184
7185 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
7186
7187 * configure, aclocal.m4: Rebuild with new libtool.
7188
7189 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
7190
7191 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
7192 when merging v850 code into v850e/v850ea code. Do not initialise
7193 output flags if the input is the default architecture.
7194
7195 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
7196
7197 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
7198 get the size from bfd_arch_bits_per_address instead of directly
7199 from the isa.
7200
7201 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
7202
7203 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
7204 to wrap, just return all 1's bits instead.
7205 * libbfd.h: Regenerate.
7206
7207 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
7208
7209 * coff-i386.c (coff_pe_i386_relocate_section): New static function
7210 if COFF_WITH_PE.
7211 (coff_relocate_section): If COFF_WITH_PE, define as
7212 coff_pe_i386_relocate_section.
7213 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
7214 skip empty sections, to match coff_write_object_contents.
7215
7216 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
7217 rather than swapping out r_offset twice. From Luke Deller
7218 <luked@cse.unsw.edu.au>.
7219
7220 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
7221
7222 * configure.in: Set libtool_enable_shared rather than
7223 libtool_shared. Remove diversion hack.
7224 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
7225 with new libtool.
7226
7227 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
7228
7229 * syms.c (struct stab_cache): Define.
7230 (struct stab_find_info): Remove cached_offset, cached_stab,
7231 cached_str, and cached_stroff fields. Add file_cache,
7232 function_cache, and line_cache fields.
7233 (_bfd_stab_section_find_nearest_line): Use extensive caching to
7234 speed up searches.
7235
7236 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
7237
7238 * peicode.h (pe_print_idata): Check for import of ordinal rather
7239 than name.
7240 (pe_print_edata): If there is no .edata section, look for the
7241 export data in some other section.
7242
7243 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
7244
7245 * configure.in: Change version to 2.8.4.
7246 * configure: Regenerated.
7247
7248 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
7249
7250 Add tms320c30 support:
7251 * cpu-tic30.c: New file.
7252 * aout-tic30.c: New file.
7253 * coff-tic30.c: New file.
7254 * archures.c (bfd_arch_tic30): Define.
7255 (bfd_tic30_arch): Declare.
7256 (bfd_archures_list): Add bfd_tic30_arch.
7257 * targets.c (bfd_target_vector): Add tic30_aout_vec and
7258 tic30_coff_vec.
7259 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
7260 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
7261 (coff_set_flags): Likewise.
7262 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
7263 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
7264 * Makefile.am: Rebuild dependencies.
7265 (ALL_MACHINES): Add cpu-tic30.lo.
7266 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
7267 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
7268 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
7269 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
7270
7271 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
7272
7273 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
7274 to lag behind LO16 reloc by a couple of instructions.
7275
7276 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
7277
7278 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
7279 make to reexamine the file timestamp.
7280 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
7281
7282 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
7283 0x100000.
7284
7285 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
7286
7287 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
7288 to create .dynsbss and .rela.sbss sections.
7289 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
7290 copied from dynamic objects into .sbss.
7291 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
7292 use it. Correct typo of .rela.sdata2.
7293 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
7294 put the data, which may now be in .sbss.
7295 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
7296 (elf_backend_create_dynamic_sections): Define as
7297 ppc_elf_create_dynamic_sections.
7298
7299 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
7300 against _GLOBAL_OFFSET_TABLE_.
7301 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
7302 shared libraries which refer to local symbols. Make sure that the
7303 test for allocating space for a reloc in a shared object is the
7304 same as the test for emitting a reloc.
7305
7306 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
7307
7308 * config.bfd (i[3456]-*-mingw32*): New target.
7309 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
7310 * aclocal.m4, configure: Rebuild.
7311
7312 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
7313
7314 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
7315 have a bfd_object.
7316
7317 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
7318
7319 Sparc v9 ABI compliant PLT:
7320 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
7321 (plt_templates, sparc64_elf_build_plt_entry): Delete.
7322 (LARGE_PLT_THRESHOLD): New define.
7323 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
7324 (sparc64_elf_build_plt): New function.
7325 (sparc64_elf_plt_entry_offset): Likewise.
7326 (sparc64_elf_plt_ptr_offset): Likewise.
7327 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
7328 contain the index for convenience. Skip the initial entries
7329 in .rela.plt.
7330 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
7331 memory for the benefit of .rela.plt.
7332 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
7333 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
7334 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
7335 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
7336 Call sparc64_elf_build_plt.
7337 (elf_backend_want_got_plt): No.
7338 (elf_backend_plt_readonly): No.
7339 (elf_backend_plt_alignment): 8.
7340
7341 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
7342 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
7343 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
7344 to be called.
7345
7346 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
7347
7348 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
7349 processors.
7350 * cpu-mips.c (arch_info_struct): Add mips variants.
7351 * bfd-in2.h: Rebuilt.
7352
7353 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
7354
7355 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
7356 t2a3_b_insn.
7357
7358 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
7359
7360 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
7361 (i[3456]86sco3.2v5*coff): New target.
7362
7363 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
7364
7365 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
7366
7367 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
7368
7369 * bfd.c (bfd_get_error_handler): Add orthogonal function.
7370 * bfd-in2.h: Regenerate.
7371
7372 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
7373
7374 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
7375
7376 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
7377
7378 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
7379 adjust addend for an output common symbol (from Jimmy Blair
7380 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
7381 defined symbol to counteract adjustment made in generic relocation
7382 code.
7383
7384 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
7385
7386 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
7387
7388 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
7389 (GET_SCNDHR_NLNNO): Likewise.
7390
7391 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
7392
7393 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
7394
7395 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
7396
7397 * elf32-m32r.c: Add macros to handle NOP insertion.
7398
7399 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
7400
7401 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
7402 (xcoff_mark): Likewise.
7403 (xcoff_build_ldsyms): Mark absolute symbols.
7404
7405 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
7406
7407 * bout.c (b_out_write_object_contents): Sort symbols before output
7408 to keep {CALL,BAL}NAME symbols adjacent.
7409 (b_out_symbol_cmp): New function.
7410
7411 For older changes see ChangeLog-9697
7412 \f
7413 Local Variables:
7414 mode: change-log
7415 left-margin: 8
7416 fill-column: 74
7417 version-control: never
7418 End: