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