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