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