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