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