* elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-05-28 Alan Modra <amodra@one.net.au>
2
3 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
4 for symbols forced local that need plabels.
5 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
6 .plt.rela for local syms if non-shared.
7 (hppa_build_one_stub): Mask lsb of plt.offset.
8 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
9 (clobber_millicode_symbols): Correct comment.
10 (elf32_hppa_relocate_section): Likewise.
11 (elf32_hppa_finish_dynamic_symbol): Likewise.
12
13 2001-05-28 Jeff Sturm <jsturm@one-point.com>
14
15 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
16 * bfd-in2.h: Regenerate.
17 * libbfd.h: Regenerate.
18 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
19 and BFD_RELOC_SPARC_UA64 mapping
20 * elf64-sparc.c: Likewise.
21
22 2001-05-25 H.J. Lu <hjl@gnu.org>
23
24 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
25 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
26 (coff-rs6000.lo): Remove the old dependency.
27 * Makefile.in: Rebuild.
28
29 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
30 coff-rs6000.lo.
31
32 2001-05-25 H.J. Lu <hjl@gnu.org>
33
34 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
35 rs6000coff_core_file_matches_executable_p,
36 rs6000coff_core_file_failing_command and
37 rs6000coff_core_file_failing_signal only if AIX_CORE is
38 defined.
39 (pmac_xcoff_vec): Likewise.
40 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
41
42 2001-05-25 Timothy Wall <twall@redhat.com>
43
44 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
45 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
46
47 2001-05-25 H.J. Lu <hjl@gnu.org>
48
49 * bfd-in2.h: Regenerated.
50 * libcoff.h: Likewise.
51
52 2001-05-25 Alan Modra <amodra@one.net.au>
53
54 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
55 undefined millicode syms in shared libs.
56 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
57 (elf32_hppa_check_relocs): Likewise.
58 (elf32_hppa_adjust_dynamic_symbol): Likewise.
59 (elf32_hppa_size_dynamic_sections): Likewise.
60 (elf32_hppa_relocate_section): Likewise.
61 (elf32_hppa_finish_dynamic_symbol): Likewise.
62 (elf32_hppa_finish_dynamic_sections): Likewise.
63
64 2001-05-24 Tom Rix <trix@redhat.com>
65
66 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
67 xcoff-target.h not used to define rs6000 or ppc bfd.
68 * Makefile.in same
69
70 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
71 to 64 bit.
72
73 * coff-rs6000.c : Many changes for 64 bit support. Move common
74 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
75 and pmac_xcoff_vec
76
77 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
78 linker now supported. Explictly define the rs6000coff64_vec.
79
80 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
81 (coff_print_aux) same
82 (coff_write_object_contents) same
83 (coff_slurp_line_table) same
84
85 * coffgen.c : (coff_fix_symbol_name) formatting
86 (coff_mangle_symbols) xcoff 64 bit support
87 (coff_write_symbol) same
88 (coff_write_alien_symbol) same
89 (coff_write_native_symbol) same
90 (coff_write_symbols) same
91 (coff_get_symbol_info) same
92 (bfd_coff_get_syment) same
93 (coff_print_symbol) same
94
95 * config.bfd : add powerpc64-*-aix* target
96
97 * libcoff-in.h : formatting
98
99 * libcoff.h : move xcoff extern declarations to libxcoff.h
100
101 * libxcoff.h : New file
102
103 * xcofflink.c : Many changes for xcoff64 support. Move common
104 structures to include/coff/xcoff.h. Move specific structure to
105 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
106 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
107
108 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
109 aix4.2+ -binitfini.
110
111 (xcoff_build_ldsyms) : handle special __rtinit symbol.
112
113 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
114
115 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
116 s/ENTIRES/ENTRIES/.
117
118 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
119
120 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
121 * libbfd.h: Regenerate.
122 * bfd0in2.h: Regenerate.
123
124 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
125 * archures.c (bfd_mach_mips12000): Define.
126 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
127 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
128 support.
129 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
130 * bfd-in2.h: Regenerate.
131 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
132
133 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
134
135 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
136 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
137 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
138 that is used by GCC.
139
140 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
141
142 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
143 of entries in a structured section.
144 * elf.c: Use new macro.
145 * elf32-i386.c: Use new macro.
146 * elf32-mips.c: Use new macro.
147 * elf64-alpha.c: Use new macro.
148 * elf64-sparc.c: Use new macro.
149 * elfcode.h: Use new macro.
150 * elflink.h: Use new macro.
151
152 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
153
154 * bfdint.texi: Replace -oformat with --oformat.
155
156 2001-05-21 Andreas Jaeger <aj@suse.de>
157
158 * dwarf2.c (decode_line_info): Fix error message.
159 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
160 adjust error message.
161
162 2001-05-18 H.J. Lu <hjl@gnu.org>
163
164 * elflink.h (elf_link_add_object_symbols): Revert the last
165 change.
166
167 2001-05-17 Alan Modra <amodra@one.net.au>
168
169 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
170 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
171 (hppa_build_one_stub): Add an assert to check plt.offset.
172
173 2001-05-17 H.J. Lu <hjl@gnu.org>
174
175 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
176 version definition to basename of the output filename.
177
178 2001-05-17 H.J. Lu <hjl@gnu.org>
179
180 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
181 basename of the bfd filename.
182
183 2001-05-16 Alan Modra <amodra@one.net.au>
184
185 * section.c (asection): Add linker_has_input field.
186 (STD_SECTION): Adjust initialization to suit.
187 * ecoff.c (bfd_debug_section): Likewise.
188 * bfd-in2.h: Regenerate.
189
190 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
191
192 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
193 negative 32-bit operands to 16 operands when the operand is
194 going to be zero-extended by the modified opcode.
195
196 2001-05-12 Peter Targett <peter.targett@arccores.com>
197
198 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
199 name for 'arc5' core versions.
200 (bfd_arc_arch): Make bfd_mach_arc_6 default.
201
202 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
203 architecture.
204 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
205
206 2001-05-11 Jakub Jelinek <jakub@redhat.com>
207
208 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
209 sections as well.
210 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
211 to .gnu.linkonce.t.FOO text section.
212
213 2001-05-11 Jakub Jelinek <jakub@redhat.com>
214
215 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
216 fields, change sec into secinfo.
217 (struct sec_merge_info): Add chain, remove last fields.
218 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
219 (sec_merge_hash_lookup): If lookup could not use a string only
220 because it has bad alignment, mark the old string for deletion.
221 (sec_merge_add): Add secinfo argument. Don't compute entry's
222 position, instead record the section.
223 (sec_merge_emit): Update for the sec into secinfo change in
224 struct sec_merge_hash_entry.
225 (_bfd_merge_section): Only record the section for merging, defer
226 putting strings into the hash table.
227 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
228 _bfd_merge_sections): New functions.
229 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
230 changes.
231 * libbfd-in.h (_bfd_merge_sections): Add prototype.
232 (_bfd_nolink_bfd_merge_sections): Define.
233 * libbfd.h: Likewise.
234 (bfd_generic_merge_sections): Add prototype.
235 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
236 (struct bfd_target): Likewise.
237 * bfd.c (bfd_merge_sections): Define.
238 * bfd-in2.h: Rebuilt.
239 * elf.c (_bfd_elf_merge_sections): New function.
240 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
241 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
242 * reloc.c (bfd_generic_merge_sections): New function.
243 * vms.c (vms_bfd_merge_sections): New function.
244 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
245 * aout-target.h (MY_bfd_merge_sections): Define.
246 * aout-tic30.c (MY_bfd_merge_sections): Define.
247 * binary.c (binary_bfd_merge_sections): Define.
248 * bout.c (b_out_bfd_merge_sections): Define.
249 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
250 * coffcode.c (coff_bfd_merge_sections): Define.
251 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
252 * i386msdos.c (msdos_bfd_merge_sections): Define.
253 * i386os9k.c (os9k_bfd_merge_sections): Define.
254 * ieee.c (ieee_bfd_merge_sections): Define.
255 * ihex.c (ihex_bfd_merge_sections): Define.
256 * nlm-target.h (nlm_bfd_merge_sections): Define.
257 * oasys.c (oasys_bfd_merge_sections): Define.
258 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
259 * som.c (som_bfd_merge_sections): Define.
260 * srec.c (srec_bfd_merge_sections): Define.
261 * tekhex.c (tekhex_bfd_merge_sections): Define.
262 * versados.c (versados_bfd_merge_sections): Define.
263 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
264
265 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
266
267 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
268 to be unsigned long, in order to match its use.
269
270 2001-05-10 H.J. Lu <hjl@gnu.org>
271
272 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
273 indirect symbols.
274
275 2001-05-09 H.J. Lu <hjl@gnu.org>
276
277 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
278 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
279 Remove the unused veriable `dynver'.
280
281 2001-05-08 Ian Lance Taylor <ian@zembu.com>
282
283 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
284 NULL or is not COFF.
285 (coff_i386_rtype_to_howto): Don't dump core if output section
286 owner is not COFF.
287
288 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
289
290 * ecoff.c (bfd_debug_section): Fix initialization.
291 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
292 is always a positive integer. Cast away sign mismatch.
293 * elf32-mips.c: Fix misleading comment and typo.
294 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
295 correct data type.
296 * elflink.c: Fix typo.
297 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
298 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
299
300 2001-05-04 Richard Henderson <rth@redhat.com>
301
302 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
303
304 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
305
306 * elf32-arm.h (elf32_arm_final_link_relocate): Set
307 EF_ARM_HASENTRY if the start address is set.
308
309 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
310
311 * targets.c (_bfd_target_vector_entries): Compute value based on
312 the size of the _bfd_target_vector and not bfd_target_vector.
313
314 2001-05-03 H.J. Lu <hjl@gnu.org>
315
316 * elfcode.h: Include "libiberty.h".
317
318 * elflink.h (elf_link_add_object_symbols): Set
319 elf_dt_name (abfd) to basename of the bfd filename.
320 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
321 of the bfd filename.
322
323 2001-05-03 Andreas Jaeger <aj@suse.de>
324
325 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
326 (elf_generic_info_to_howto_rel): Likewise.
327 * coff-alpha.c (reloc_nil): Likewise.
328 (alpha_ecoff_bad_format_hook): Likewise.
329 (alpha_adjust_reloc_out): Likewise.
330 (alpha_bfd_reloc_type_lookup): Likewise.
331 (alpha_convert_external_reloc): Likewise.
332 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
333 (elf64_alpha_reloc_bad): Likewise.
334 (elf64_alpha_reloc_gpdisp): Likewise.
335 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
336 (elf64_alpha_info_to_howto): Likewise.
337 (elf64_alpha_add_symbol_hook): Likewise.
338 (elf64_alpha_create_got_section): Likewise.
339 (elf64_alpha_is_local_label_name): Likewise.
340 (elf64_alpha_merge_ind_symbols): Likewise.
341 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
342 (mips_elf64_get_reloc_upper_bound): Likewise.
343 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
344 (nlm_alpha_get_public_offset): Likewise.
345
346 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
347
348 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
349 about overflow in R_OPENRISC_LO_16_IN_INSN and
350 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
351
352 2001-04-30 H.J. Lu <hjl@gnu.org>
353
354 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
355 only for ELF_LINK_FORCED_LOCAL.
356 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
357 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
358 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
359
360 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
361 if the symbol has hidden or internal visibility.
362
363 2001-04-30 Alan Modra <amodra@one.net.au>
364
365 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
366 calls to undefined weak symbols.
367
368 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
369
370 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
371 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
372
373 2001-04-27 Andreas Jaeger <aj@suse.de>
374
375 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
376 out handled entries.
377 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
378 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
379 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
380 GOT32.
381
382 2001-04-27 Sean McNeil <sean@mcneil.com>
383
384 * config.bfd: Add arm-vxworks target.
385 * coff-arm (coff_arm_relocate_section): Add in symbol value to
386 addend (fro VXworks targets).
387
388 2001-04-26 H.J. Lu <hjl@gnu.org>
389
390 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
391 valid.
392
393 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
394
395 * bfd-in.h (bfd_cache_close): Declare newly exported function.
396 * bfd-in2.h: Regenerated.
397
398 2001-04-24 Jakub Jelinek <jakub@redhat.com>
399
400 * merge.c (struct sec_merge_hash_entry): Add alignment field.
401 (struct sec_merge_hash): Remove alignment_power.
402 (sec_merge_hash_newfunc): Clear alignment.
403 (sec_merge_hash_lookup): Pass alignment as argument.
404 Use hashp->root.next, not hashp->next to walk the hash chain.
405 If a string already in the hashtable does not have required
406 alignment, create a new hashtable entry.
407 (sec_merge_init): Remove alignment_power argument.
408 (sec_merge_add): Add alignment argument.
409 (sec_merge_emit): Alignment is now a per-entity thing, not per
410 section.
411 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
412 for proper alignment.
413 Pass alignment information to sec_merge_add.
414
415 2001-04-24 Christian Groessler <cpg@aladdin.de>
416
417 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
418 and R_REL16 reloc types; accept odd values for R_REL16 type
419
420 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
421
422 * cpu-openrisc.c: New file.
423 * elf32-openrisc.c: Likewise.
424
425 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
426 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
427 (BFD32_BACKENDS): Add elf32-openrisc.lo.
428 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
429 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
430 * Makefile.in: Regenerated.
431 * config.bfd: (openrisc-*-elf): New target.
432 * configure.in (bfd_elf32_openrisc_vec): New vector.
433 * configure: Regenerated.
434 * libbfd.h: Regenerated.
435 * bfd-in2.h: Regenerated.
436 * reloc.c: Add OpenRISC relocations.
437 * targets.c (bfd_elf32_openrisc_vec): Declare.
438 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
439 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
440 (bfd_openrisc_arch): Declare.
441 (bfd_archures_list): Add bfd_openrisc_arch.
442 * elf.c (prep_headers): Add bfd_arch_openrisc.
443
444 2001-04-23 Bo Thorsen <bo@suse.de>
445
446 * elf64-x86-64.c: Add c++ vtable hack.
447 Small whitespace and comment changes.
448
449 2001-04-19 Andreas Jaeger <aj@suse.de>
450
451 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
452 (elf64_x86_64_plt_entry): Likewise.
453 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
454 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
455
456 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
457
458 * elf32-cris.c: Tweak comments related to dynamic linking.
459 (cris_elf_relocate_section): When not creating shared object, fill
460 in the .got table for any symbol not in the dynamic symbol table.
461 (elf_cris_finish_dynamic_symbol): When not creating shared object,
462 only emit a .got.rela reloc if the symbol is in the dynamic symbol
463 table.
464 (cris_elf_check_relocs): Use variable r_type in all places rather
465 than the original expression. Add default case in switch for
466 reloc types.
467 (elf_cris_size_dynamic_sections): Iterate over
468 elf_cris_discard_excess_program_dynamics when not creating shared
469 library.
470 (elf_cris_discard_excess_dso_dynamics): Renamed from
471 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
472 (elf_cris_discard_excess_program_dynamics): New.
473
474 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
475
476 * coffcode.h (coff_write_object_contents): Use
477 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
478
479 2001-04-14 H.J. Lu <hjl@gnu.org>
480
481 * bfd-in2.h: Regenerate.
482
483 2001-04-14 Jakub Jelinek <jakub@redhat.com>
484
485 * section.c (STD_SECTION): Add entsize.
486
487 2001-04-13 H.J. Lu <hjl@gnu.org>
488
489 * section.c (SEC_MERGE): Define new flag for merging.
490 (SEC_STRINGS): Likewise.
491 (entsize): New field.
492
493 2001-04-13 Roger Sayle <roger@metaphorics.com>
494
495 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
496 flag on pe-i386 targets.
497
498 2001-04-13 Jakub Jelinek <jakub@redhat.com>
499
500 * libbfd-in.h (_bfd_merge_section): New.
501 (_bfd_write_merged_section): New.
502 (_bfd_merged_section_offset): New.
503 * libbfd.h: Rebuilt.
504 * linker.c (_bfd_generic_link_output_symbols): Handle
505 discard_sec_merge.
506 * aoutx.h (aout_link_write_symbols): Likewise.
507 * pdp11.c (aout_link_write_symbols): Likewise.
508 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
509 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
510 sections.
511 (elf_link_sec_merge_syms): New.
512 (elf_link_input_bfd): Call _bfd_merged_section_offset
513 and _bfd_write_merged_section.
514 Handle discard_sec_merge.
515 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
516 field.
517 (struct bfd_elf_section_data): Likewise.
518 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
519 SEC_STRINGS section flags and entsize from their ELF counterparts.
520 (_bfd_elf_link_hash_table_init): Initialize merge_info.
521 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
522 from their BFD counterparts.
523 * merge.c: New file.
524 * Makefile.am: Add strtab.lo.
525 * Makefile.in: Rebuilt.
526
527 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
528
529 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
530 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
531
532 2001-04-05 Steven J. Hill <sjhill@cotw.com>
533
534 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
535 endian MIPS ELF target.
536 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
537 MIPS ELF target.
538
539 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
540 64bit big endian MIPS ELF target.
541 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
542 endian MIPS ELF target.
543 * configure: Regenerated.
544
545 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
546 little endian targets.
547 (mips_elf_sym_is_global): Handle traditional targets.
548
549 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
550 64bit big endian MIPS ELF target.
551 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
552 endian MIPS ELF target.
553
554 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
555 and bfd_elf64_tradlittlemips_vec.
556
557 2001-04-05 David Mosberger <davidm@hpl.hp.com>
558
559 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
560 ordinary "progbits" section.
561
562 2001-04-04 Alan Modra <alan@linuxcare.com.au>
563
564 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
565 when -Bsymbolic causes a symbol to no longer need a .plt entry.
566
567 2001-04-03 David Mosberger <davidm@hpl.hp.com>
568
569 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
570
571 2001-03-30 H.J. Lu <hjl@gnu.org>
572
573 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
574 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
575
576 2001-03-26 H.J. Lu <hjl@gnu.org>
577
578 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
579 if there are any relocations for generic ELF.
580 (bfd_elf32_bfd_link_add_symbols): Defined to
581 elf32_generic_link_add_symbols.
582 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
583 if there are any relocations for generic ELF.
584 (bfd_elf64_bfd_link_add_symbols): Defined to
585 elf64_generic_link_add_symbols.
586
587 2001-03-23 Nick Clifton <nickc@redhat.com>
588
589 * Makefile.am (BUILD_CFILES): New variable: List of C source
590 files created in build directory.
591 (BUILD_HFILES): New variable: List of header files created in
592 build directory.
593 (POTFILES): Delete.
594 (po/POTFILES.in): Replace rule with empty entry.
595 (po/SRC-POTFILES.in): New rule: Create a list of source files
596 in the source directory.
597 (po/BLD-POTFILES.in): New rule: Create a list of source files
598 in the build directory.
599 (MOSTLYCLEAN): Do not delete source files created in build
600 directory.
601 * Makefile.in: Regenerate.
602 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
603 into po/Makefile.
604 * configure: Regenerate.
605
606 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
607 and BLD_POTFILES.
608 Add .. to the search path when building bfd.pot.
609 Delete POTFILES when performing distclean.
610 Add comment describing why distclean is broken in maintainer mode.
611 * po/POTFILES.in: Delete.
612 * po/SRC-POTFILES.in: New file.
613 * po/BLD-POTFILES.in: New file.
614 * po/bfd.pot: Regenerate.
615
616 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
617
618 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
619 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
620 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
621 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
622 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
623 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
624 functions.
625 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
626 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
627 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
628 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
629 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
630 New HOWTO members for new relocs.
631 (cris_reloc_map): Map new relocs.
632 (ELF_DYNAMIC_INTERPRETER): Define.
633 (PLT_ENTRY_SIZE): Define.
634 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
635 elf_cris_pic_plt_entry): New, PLT templates.
636 (struct elf_cris_pcrel_relocs_copied, struct
637 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
638 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
639 (cris_final_link_relocate): Check that 16-bit GOT relocs have
640 positive values. Adjust PCREL relocs to be relative to location
641 after relocation.
642 (cris_elf_relocate_section): Handle relocations to dynamic
643 objects. Handle new relocations. Call error handler when seeing
644 non-PIC relocation for read-only sections while generating shared
645 object.
646 (cris_elf_check_relocs): Set reference counts for GOT and PLT
647 entries.
648 (bfd_elf32_bfd_link_hash_table_create,
649 elf_backend_adjust_dynamic_symbol,
650 elf_backend_size_dynamic_sections,
651 elf_backend_finish_dynamic_symbol,
652 elf_backend_finish_dynamic_sections,
653 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
654 elf_backend_hide_symbol, elf_backend_want_got_plt,
655 elf_backend_plt_readonly, elf_backend_want_plt_sym,
656 elf_backend_got_header_size, elf_backend_plt_header_size):
657 Define.
658
659 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
660 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
661 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
662 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
663 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
664 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
665 * bfd-in2.h, libbfd.h: Regenerate.
666
667 2001-03-21 Diego Novillo <dnovillo@redhat.com>
668
669 (_bfd_mips_elf_relocate_section): Give a better error message when
670 a relocation is not recognized.
671
672 2001-03-21 Alan Modra <alan@linuxcare.com.au>
673
674 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
675 non-NULL before attempting to dereference.
676
677 2001-03-20 H.J. Lu <hjl@gnu.org>
678
679 * configure.in: Remove the redundent AC_ARG_PROGRAM.
680 * configure: Rebuild.
681
682 2001-03-20 Andreas Schwab <schwab@suse.de>
683
684 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
685 relocation value when resolving a reference from a debugging
686 section.
687
688 2001-03-16 Scott Thomason <SThomaso@hii.com>
689
690 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
691 (xcoff64_swap_sym_out): Fix syntax errors.
692
693 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
694
695 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
696
697 2001-03-15 Alan Modra <alan@linuxcare.com.au>
698
699 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
700 (hppa_link_hash_newfunc): Init it.
701 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
702 section appears to be non-PIC.
703 (final_link_relocate): Likewise.
704 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
705 possible candidate function, and set pic_call for those that will
706 only have a .plt entry for the PIC call stub.
707 (hppa_handle_PIC_calls): Set maybe_pic_call.
708
709 2001-03-12 DJ Delorie <dj@redhat.com>
710
711 * elf32-sh.c (sh_elf_relocate_section): Only relocation
712 R_SH_DIR8WP* relocs if they're against external symbols, else
713 they're just for relaxing. Validate the reloc values.
714
715 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
716
717 * binary.c (bfd_external_binary_architecture): Declare.
718 (binary_object_p): If bfd_external_binary_architecture is defined,
719 set the architecture to this string.
720
721 2001-03-11 Philip Blundell <philb@gnu.org>
722
723 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
724 entries that could serve as a definition for a weak symbol.
725
726 2001-03-08 Nick Clifton <nickc@redhat.com>
727
728 * Most files: Update copyright notices using Perl script created
729 by Kevin Buettner <kevinb@redhat.com>.
730
731 2001-03-07 Nick Clifton <nickc@redhat.com>
732
733 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
734 prior patch on ! defined OLD_ARM_ABI.
735
736 2001-03-07 Andreas Jaeger <aj@suse.de>
737
738 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
739 some relocation values.
740
741 2001-03-06 Nick Clifton <nickc@redhat.com>
742
743 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
744 of offset in BLX(1) instruction.
745 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
746 offset in BLX(1) instruction.
747 Fix formatting.
748
749 2001-03-06 Nick Clifton <nickc@redhat.com>
750
751 * coff-arm.c (coff_arm_reloc_type_lookup): Add
752 BFD_RELOC_THUMB_PCREL_BLX.
753
754 2001-03-06 Igor Shevlyakov <igor@windriver.com>
755
756 * archures.c (bfd_default_scan): Add Coldfire CPUs.
757 * bfd-in2.h: Regenerate.
758 * cpu-m68k.c: Add Coldfire CPUs for arch table.
759 * ieee.c (ieee_write_processor): Set proper id for
760 Coldfire CPUs.
761
762 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
763
764 * configure.in: Add s390 target.
765 * configure: Regenerate.
766
767 2001-02-28 Andreas Jaeger <aj@suse.de>
768
769 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
770 to addend.
771
772 2001-02-28 Philip Blundell <pb@futuretv.com>
773
774 * elf32-arm.h: Update mentions of renamed EF_xx constants.
775 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
776
777 2001-02-27 H.J. Lu <hjl@gnu.org>
778
779 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
780 abfd->tdata.aout_data == NULL.
781
782 2001-02-27 Alan Modra <alan@linuxcare.com.au>
783
784 * elf32-hppa.c: Correct field selector in stub comments.
785 (clobber_millicode_symbols): Formatting fix.
786
787 * configure.in: Bump version to 2.11.90.
788 * configure: Regenerate.
789 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
790 (CFILES): $SOURCE_CFILES + generated C files.
791 (POTFILES): Include $HFILES not $SOURCE_HFILES.
792 Run "make dep-am"
793 * Makefile.in: Regenerate.
794 * doc/Makefile.in: This too.
795
796 2001-02-26 Timothy Wall <twall@cygnus.com>
797
798 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
799 comments.
800
801 2001-02-26 Nick Clifton <nickc@redhat.com>
802
803 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
804 up, replacing multiple if statements with a switch.
805 (handle_COMDAT): New function.
806
807 2001-02-26 H.J. Lu <hjl@gnu.org>
808
809 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
810 a warning for section flags we do not handle instead of
811 aborting.
812
813 2001-02-26 Andreas Jaeger <aj@suse.de>
814
815 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
816
817 2001-02-22 Timothy Wall <twall@cygnus.com>
818
819 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
820 * configure.in: Add objects for elf64_ia64_aix vectors.
821 * configure: Regenerated.
822 * configure.host: Recognize ia64-*-aix*.
823 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
824 for AIX. AIX5 requires most relocations to be dynamic (*all*
825 binaries are somewhat similar to shared libraries).
826 * targets.c: Add elf64_ia64_aix vectors.
827
828 2001-02-21 David Mosberger <davidm@hpl.hp.com>
829
830 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
831 C8 said "1" instead of "8". Clarify error string for IMM22:
832 "signed integer" instead of just "integer".
833
834 2001-02-20 Andreas Jaeger <aj@suse.de>
835
836 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
837 PLT entries that could serve as a definition for a weak symbol.
838
839 2001-02-19 Jakub Jelinek <jakub@redhat.com>
840
841 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
842 entries that could serve as a definition for a weak symbol.
843 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
844
845 2001-02-18 David O'Brien <obrien@FreeBSD>
846
847 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
848 FreeBSD/i386-CURRENT differently until I can figure out the needed
849 corefile changes.
850 * configure: Regenerate.
851 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
852 FreeBSD/PowerPC, and FreeBSD/sparc64.
853
854 2001-02-18 lars brinkhoff <lars@nocrew.org>
855
856 * Makefile.am: Add PDP-11 a.out target.
857 * config.bfd: Likewise.
858 * configure.in: Likewise.
859 * targets.c: Likewise.
860 * archures.c: Likewise.
861 * bfd-in2.h: Likewise. Add PDP-11 relocations.
862 * libbfd.h: Add PDP-11 relocations.
863 * reloc.c: Likewise.
864 * cpu-pdp11.c: New file.
865 * pdp11.c: New file.
866
867 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
868 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
869 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
870 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
871 (GET_MAGIC): New macro.
872 (PUT_MAGIC): Likewise.
873 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
874
875 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
876
877 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
878 multiarch needs it).
879
880 2001-02-18 H.J. Lu <hjl@gnu.org>
881
882 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
883 index.
884
885 2001-02-18 Kazu Hirata <kazu@hxi.com>
886
887 * vms-misc.c: Fix formatting.
888
889 2001-02-16 Kazu Hirata <kazu@hxi.com>
890
891 * vms.c: Fix formatting.
892
893 2001-02-14 H.J. Lu <hjl@gnu.org>
894
895 * elf.c (elf_find_function): New function.
896 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
897 the file name and function name.
898
899 2001-02-14 Nick Clifton <nickc@redhat.com>
900
901 * ecoff.c (bfd_debug_section): Update to initialise new fields in
902 asection structure.
903
904 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
905 (BFD64_BACKENDS): Add pepigen.c
906 Add rules to create peigen.c and pepigen.c from peXXigen.c.
907
908 * Makefile.in: Regenerate.
909 * configure: Regenerate.
910 * po/POTFILES.in: Regenerate.
911 * po/bfd.pot: Regenerate.
912
913 2001-02-14 H.J. Lu <hjl@gnu.org>
914
915 * libcoff-in.h (pe_tdata): Add members target_subsystem and
916 force_minimum_alignment.
917
918 2001-02-14 Bo Thorsen <bo@suse.de>
919
920 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
921 (elf64_86_64_size_info): Struct added to fix a problem
922 with the hashtable string entries.
923 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
924 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
925 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
926 remove the FIXME for this.
927 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
928 section. Also removed the FIXME for it.
929 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
930 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
931 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
932
933 2001-02-13 Richard Henderson <rth@redhat.com>
934
935 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
936 and not user provided.
937
938 2001-02-13 Kazu Hirata <kazu@hxi.com>
939
940 * vms.c (vms_print_symbol): Remove unreachable code.
941
942 * rs6000-core.c: Fix formatting.
943
944 2001-02-13 David Mosberger <davidm@hpl.hp.com>
945
946 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
947 as _bfd_XXi_only_swap_filehdr_out.
948 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
949 pe->force_minimum_alignment to TRUE.
950 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
951 PEI_TARGET_SUBSYSTEM.
952 (pe_print_private_bfd_data): Call
953 _bfd_XX_print_private_bfd_data_common() instead of
954 _bfd_pe_print_private_bfd_data_common().
955 (pe_bfd_copy_private_bfd_data): Call
956 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
957 _bfd_pe_bfd_copy_private_bfd_data_common().
958 (coff_bfd_copy_private_section_data): Define as
959 _bfd_XX_bfd_copy_private_section_data instead of
960 _bfd_pe_bfd_copy_private_section_data.
961 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
962 of a _bfd_pe_get_symbol_info.
963
964 * peigen.c: Delete.
965
966 * peXXigen.c: Renamed from peigen.c.
967 (COFF_WITH_XX): Define this macro (will get expanded into
968 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
969 compiled as peigen.c or pepigen.c.
970 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
971 define the canonical PEP structures and definitions.
972 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
973 effect, enforce minimum file and section alignments. If
974 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
975 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
976 so, by default, this is a no-op).
977
978 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
979 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
980 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
981 _bfd_pefoo if it's not defined. Use these macros to define
982 coff swap macros.
983
984 * libcoff.h (pe_tdata): Add members target_subsystem and
985 force_minimum_alignment.
986
987 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
988 COFF_WITH_pep.
989 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
990
991 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
992 peigen.lo.
993
994 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
995 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
996 PEPAOUTHDR.
997
998 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
999 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1000 (peigen.c): Add rule to generate from peXXigen.c.
1001 (pepigen.c): Ditto.
1002 (pepigen.lo): List dependencies for pepigen.lo.
1003
1004 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1005
1006 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1007 $global$ referenced but not defined, set its value here.
1008
1009 2001-02-09 Bo Thorsen <bo@suse.de>
1010
1011 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1012 alignment to 3.
1013 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1014 and relocation.
1015 (elf64_x86_64_relocate_section): Fix formatting.
1016 (elf64_x86_64_relocate_section): Fix addend for relocation of
1017 R_X86_64_(8|16|32|PC8|PC16|PC32).
1018
1019 2001-02-12 Jan Hubicka <jh@suse.cz>
1020
1021 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1022
1023 2001-02-11 H.J. Lu <hjl@gnu.org>
1024
1025 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1026 alignment.
1027
1028 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1029
1030 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1031 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1032 relocations against dynsym symbols.
1033
1034 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1035 the R_MIPS_26 relocation.
1036 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1037 the R_MIPS_26 relocation.
1038 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1039 relocation.
1040 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1041 the R_MIPS_26 relocation.
1042 (mips_elf64_howto_table_rela): Likewise.
1043
1044 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1045 member to mark symbols that have non-CALL relocations against
1046 them.
1047 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1048 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1049 R_MIPS_GOT16.
1050 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1051 non-CALL relocation against it is encountered.
1052 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1053 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1054 no_fn_stub is not set.
1055
1056 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1057 information from the real symbol for indirect ones.
1058 Check no_fn_stub to find out if a symbol has a function stub
1059 indeed.
1060
1061 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1062
1063 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1064 * Makefile.in: Regenerate.
1065
1066 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1067
1068 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1069 true if section name is an unwind table section name.
1070 (elfNN_ia64_additional_program_headers): Count each unwind section
1071 separately.
1072 (elfNN_ia64_modify_segment_map): Install one unwind program header
1073 for each unwind separate section. Note: normally the linker
1074 script merges the unwind sections that go into a single segment,
1075 so this still generates at most one unwind program header per
1076 segment.
1077
1078 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1079 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1080 (elfNN_ia64_fake_sections): Mark sections with names that start
1081 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1082 unwind section.
1083
1084 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1085 Use it to make sh_info in unwind section point to the text section
1086 it applies to.
1087
1088 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1089
1090 * Makefile.am: Add linux target for S/390.
1091 * archures.c: Likewise.
1092 * bfd-in2.h: Likewise.
1093 * config.bfd: Likewise.
1094 * configure.in: Likewise.
1095 * elf.c: Likewise.
1096 * libbfd.h: Likewise.
1097 * targets.c: Likewise.
1098 * cpu-s390.c: New file.
1099 * elf32-s390.c: New file.
1100 * elf64-s390.c: New file.
1101
1102 2001-02-09 Nick Clifton <nickc@redhat.com>
1103
1104 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1105 ImageBase. This has already been done by coff_swap_hdr_in.
1106
1107 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1108
1109 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1110
1111 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1112
1113 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1114 (sparc64_elf_relocate_section): Likewise.
1115
1116 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1117
1118 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1119 similar to R_SPARC_32.
1120 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1121
1122 2001-02-08 H.J. Lu <hjl@gnu.org>
1123
1124 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1125 relocation entries for weak definitions when building DSO with
1126 -Bsymbolic.
1127
1128 2001-02-08 Richard Henderson <rth@redhat.com>
1129
1130 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1131 before visibility. Locally defined protected symbols are not
1132 dynamic.
1133
1134 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1135
1136 * config.bfd: Enable coff64 for rs6000-*. Patch from
1137 <hzoli@austin.ibm.com>.
1138
1139 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1140
1141 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1142 found, do not attempt to find dwarf2 info before returning.
1143
1144 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1145
1146 * elflink.h (is_global_symbol_definition): Rename to
1147 is_global_data_symbol_definition and have it reject function
1148 symbols.
1149 (elf_link_is_defined_archive_symbol): Use renamed function.
1150
1151 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1152
1153 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1154 * libbfd.h (bfd_target_vector): Likewise.
1155 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1156 make static; create pointer reference named bfd_target_vector.
1157 (_bfd_target_vector_entries): Calculate this based on the array
1158 typed _bfd_target_vector.
1159
1160 2001-02-06 H.J. Lu <hjl@gnu.org>
1161
1162 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1163 internal symbols are not dynamic.
1164 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1165
1166 2001-02-06 Nick Clifton <nickc@redhat.com>
1167
1168 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1169 that it will not be pulled into the list of files that make up
1170 po/POTFILES.in.
1171 * Makefile.in: Regenerate.
1172 * po/bfd.pot: Regenerate.
1173
1174 2001-02-06 H.J. Lu <hjl@gnu.org>
1175
1176 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1177 checking.
1178 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1179 external_PEI_IMAGE_hdr.
1180
1181 2001-02-06 Kazu Hirata <kazu@hxi.com>
1182
1183 * elf-m10200.c: Fix formatting.
1184
1185 2001-02-04 Nick Clifton <nickc@redhat.com>
1186
1187 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1188 rel, it will be handled later on.
1189
1190 2001-02-02 Fred Fish <fnf@ninemoons.com>
1191
1192 * Makefile.in: Fix typo.
1193
1194 2001-02-01 Kazu Hirata <kazu@hxi.com>
1195
1196 * elf-m10300.c: Fix formatting.
1197
1198 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1199
1200 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1201 (elf_backend_get_symbol_type): Define.
1202 (elf64_hppa_object_p): Set architecture and machine from elf
1203 header flags.
1204
1205 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1206
1207 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1208 before mdebug.
1209
1210 2001-01-26 Richard Henderson <rth@redhat.com>
1211
1212 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1213 for non-default visibility.
1214 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1215 delete ugly macro and replace with pretty function.
1216
1217 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1218
1219 * coff-go32.c: Update copyright.
1220 * coff-stgo32.c: Likewise.
1221 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1222 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1223 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1224 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1225
1226 2001-01-25 Kazu Hirata <kazu@hxi.com>
1227
1228 * bfd-in2.h: Rebuild.
1229 * libbfd.h: Likewise.
1230
1231 2001-01-23 H.J. Lu <hjl@gnu.org>
1232
1233 * bfd-in2.h: Rebuild.
1234
1235 2001-01-23 H.J. Lu <hjl@gnu.org>
1236
1237 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1238 is NULL or PRIV(vms_rec) is outside of the buffer.
1239
1240 2001-01-23 Kazu Hirata <kazu@hxi.com>
1241
1242 * coff64-rs6000.c: Fix formatting.
1243 * coff-arm.c: Likewise.
1244 * coffgen.c: Likewise.
1245 * cofflink.c: Likewise.
1246 * coff-mcore.c: Likewise.
1247 * coff-mips.c: Likewise.
1248 * coff-pmac.c: Likewise.
1249 * coff-ppc.c: Likewise.
1250 * coff-rs6000.c: Likewise.
1251 * elf32.c: Likewise.
1252 * elf32-fr30.c: Likewise.
1253 * elf32-i370.c: Likewise.
1254 * elf32-i860.c: Likewise.
1255 * elf32-m32r.c: Likewise.
1256 * elf32-m68k.c: Likewise.
1257 * elf32-mcore.c: Likewise.
1258 * elf32-ppc.c: Likewise.
1259 * elf32-sh.c: Likewise.
1260 * elf32-v850.c: Likewise.
1261 * elf64-alpha.c: Likewise.
1262 * elf64-sparc.c: Likewise.
1263 * elflink.c: Likewise.
1264 * elflink.h: Likewise.
1265 * elf-m10200.c: Likewise.
1266 * elf-m10300.c: Likewise.
1267 * elfxx-ia64.c: Likewise.
1268
1269 * aoutx.h: Fix formatting.
1270 * bfd.c: Likewise.
1271 * bfd-in2.h: Likewise.
1272 * bfd-in.h: Likewise.
1273 * cpu-i386.c: Likewise.
1274 * cpu-m68hc11.c: Likewise.
1275 * dwarf2.c: Likewise.
1276 * elf64-x86-64.c: Likewise.
1277 * format.c: Likewise.
1278 * freebsd.h: Likewise.
1279 * hash.c: Likewise.
1280 * hp300hpux.c: Likewise.
1281 * hppabsd-core.c: Likewise.
1282 * hpux-core.c: Likewise.
1283
1284 2001-01-22 Bo Thorsen <bo@suse.de>
1285
1286 * elf64-x86-64.c: Added PIC support for X86-64.
1287 (elf64_x86_64_link_hash_newfunc): Function added.
1288 (elf64_x86_64_link_hash_table_create): Likewise.
1289 (elf64_x86_64_check_relocs): Likewise.
1290 (elf64_x86_64_gc_mark_hook): Likewise.
1291 (elf64_x86_64_gc_sweep_hook): Likewise.
1292 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1293 (elf64_x86_64_size_dynamic_sections): Likewise.
1294 (elf64_x86_64_discard_copies): Likewise.
1295 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1296 (elf64_x86_64_finish_dynamic_sections): Likewise.
1297 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1298
1299 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1300
1301 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1302 * Makefile.in: Regenerate.
1303
1304 2001-01-21 Kazu Hirata <kazu@hxi.com>
1305
1306 * coff-a29k.c: Fix formatting.
1307
1308 2001-01-19 H.J. Lu <hjl@gnu.org>
1309
1310 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1311 relocation section names.
1312 (elf_i386_relocate_section): Report files with bad relocation
1313 section names and return false.
1314
1315 2001-01-17 Bo Thorsen <bo@suse.de>
1316
1317 * targets.c: Alphabetize list of xvecs.
1318
1319 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1320
1321 * config.bfd: Add linux target variant for elfxx-hppa.
1322 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1323 bfd_elf64_hppa_linux_vec.
1324 * configure: Regenerate.
1325 * elf64-hppa.c: Include elf64-target.h again to support linux
1326 target variant.
1327 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1328 * elf32-hppa.c: Include elf32-target.h again to support linux
1329 target variant.
1330 (elf32_hppa_post_process_headers): New function.
1331 (elf_backend_post_process_headers): Define.
1332 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1333 bfd_elf32_hppa_linux_vec.
1334
1335 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1336 and data_segment_base fields.
1337 (elf32_hppa_link_hash_table_create ): Init them.
1338 (elf32_hppa_check_relocs): Update comments.
1339 (hppa_record_segment_addr): New function.
1340 (elf32_hppa_relocate_section): Call it.
1341 (final_link_relocate): Handle R_PARISC_SEGREL32.
1342 (elf32_hppa_final_link): New function.
1343 (bfd_elf32_bfd_final_link): Define to call it.
1344 (hppa_unwind_entry_compare): New function.
1345 * cache.c (bfd_open_file): Create files in write+read mode.
1346
1347 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1348 SEGREL32 and numerous other relocs. Change duplicate
1349 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1350
1351 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1352 O_ACCMODE.
1353
1354 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1355 .plt entries for DT_INIT and DT_FINI.
1356 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1357 DT_INIT and DT_FINI.
1358
1359 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1360 offsets for stub .plt access if wide mode. Check offset in range.
1361
1362 2001-01-13 Nick Clifton <nickc@redhat.com>
1363
1364 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1365 line.
1366
1367 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1368 line.
1369
1370 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1371
1372 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1373 * configure: Regenerate.
1374
1375 2001-01-11 Peter Targett <peter.targett@arccores.com>
1376
1377 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1378 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1379 * cpu-arc.c (arch_info_struct): Add entries for variants.
1380 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1381 (arc_get_mach) Don't assume machine names prefixed arc- before
1382 testing.
1383 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1384 selections.
1385 (arc_elf_final_write_processing) Likewise.
1386 (ELF_MACHINE_CODE) Use EM_ARC.
1387
1388 2001-01-10 Nick Clifton <nickc@redhat.com>
1389
1390 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1391
1392 2001-01-07 Philip Blundell <philb@gnu.org>
1393
1394 * README: Replace `bug-gnu-utils@gnu.org' with
1395 `bug-binutils@gnu.org'.
1396
1397 2001-01-04 Kazu Hirata <kazu@hxi.com>
1398
1399 * som.c: Fix formatting.
1400
1401 2001-01-03 Kazu Hirata <kazu@hxi.com>
1402
1403 * ecoffswap.h: Fix formatting.
1404 * elf-bfd.h: Likewise.
1405 * elfarm-nabi.c: Likewise.
1406 * elfarm-oabi.c: Likewise.
1407 * elfcode.h: Likewise.
1408 * elfcore.h: Likewise.
1409 * elflink.c: Likewise.
1410 * elflink.h: Likewise.
1411 * elfxx-ia64.c: Likewise.
1412 * elfxx-target.h: Likewise.
1413 * libbfd.c: Likewise
1414 * linker.c: Likewise.
1415 * lynx-core.c: Likewise.
1416
1417 2001-01-02 Kazu Hirata <kazu@hxi.com>
1418
1419 * pc532-mach.c: Fix formatting.
1420 * pe-arm.c: Likewise.
1421 * pe-i386.c: Likewise.
1422 * pe-mips.c: Likewise.
1423 * pe-ppc.c: Likewise.
1424 * pe-sh.c: Likewise.
1425 * pei-mips.c: Likewise.
1426 * pei-sh.c: Likewise.
1427 * peicode.h: Likewise.
1428 * ppcboot.c: Likewise.
1429 * ptrace-core.c: Likewise.
1430
1431 2001-01-01 Kazu Hirata <kazu@hxi.com>
1432
1433 * reloc.c: Fix formatting.
1434 * riscix.c: Likewise.
1435 * rs6000-core.c: Likewise.
1436 * xcoff-target.h: Likewise.
1437
1438 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1439
1440 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1441 error, by calling bfd_default_set_arch_mach with incoming
1442 values.
1443
1444 2000-12-26 Kazu Hirata <kazu@hxi.com>
1445
1446 * vaxnetbsd.c: Fix formatting.
1447 * versados.c: Likewise.
1448 * vms-gsd.c: Likewise.
1449 * vms-hdr.c: Likewise.
1450 * vms-misc.c: Likewise.
1451
1452 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1453
1454 * archive.c (coff_write_armap): Don't write more than symbol_count
1455 `archive_member_file_ptr's.
1456
1457 2000-12-25 Kazu Hirata <kazu@hxi.com>
1458
1459 * vms-tir.c: Fix formatting.
1460
1461 2000-12-23 Kazu Hirata <kazu@hxi.com>
1462
1463 * vms.c: Fix formatting.
1464 * vms.h: Likewise.
1465
1466 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1467
1468 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1469
1470 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1471
1472 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1473 arithmetic.
1474
1475 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1476
1477 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1478
1479 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1480
1481 * libbfd.c (bfd_get_bits): Added
1482 (bfd_put_bits): Likewise
1483 * bfd-in.h: Declared the above.
1484 * bfd-in2.h: Regenerated.
1485
1486 2000-12-20 Kazu Hirata <kazu@hxi.com>
1487
1488 * targets.c: Fix formatting.
1489 * tekhex.c: Likewise.
1490 * trad-core.c: Likewise.
1491
1492 2000-12-19 Kazu Hirata <kazu@hxi.com>
1493
1494 * sco5-core.c: Fix formatting.
1495 * section.c: Likewise.
1496 * sparclinux.c: Likewise.
1497 * sparclynx.c: Likewise.
1498 * sparcnetbsd.c: Likewise.
1499 * srec.c: Likewise.
1500 * stabs.c: Likewise.
1501 * stab-syms.c: Likewise.
1502 * sunos.c: Likewise.
1503 * syms.c: Likewise.
1504 * sysdep.h: Likewise.
1505
1506 2000-12-18 Nick Clifton <nickc@redhat.com>
1507
1508 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1509 defined.
1510 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1511 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1512
1513 2000-12-18 Nick Clifton <nickc@redhat.com>
1514
1515 * vms-misc.c (_bfd_vms_get_record): Add default case to
1516 file_format switch.
1517
1518 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1519
1520 * elfcore.h (elf_core_file_p): Move to the start of the program
1521 headers before attempting to read them.
1522
1523 2000-12-14 Kazu Hirata <kazu@hxi.com>
1524
1525 * peigen.c: Fix formatting.
1526 * som.c: Likewise.
1527 * som.h: Likewise.
1528
1529 2000-12-13 Kazu Hirata <kazu@hxi.com>
1530
1531 * peigen.c: Fix formatting.
1532
1533 2000-12-12 Jim Wilson <wilson@redhat.com>
1534
1535 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1536
1537 2000-12-08 Mark Salter <msalter@redhat.com>
1538
1539 * binary.c (binary_set_section_contents): Ignore sections
1540 with zero size.
1541
1542 2000-12-12 Kazu Hirata <kazu@hxi.com>
1543
1544 * m68klinux.c: Fix formatting.
1545 * m68knetbsd.c: Likewise.
1546 * mipsbsd.c: Likewise.
1547 * netbsd-core.c: Likewise.
1548 * netbsd.h: Likewise.
1549 * newsos3.c: Likewise.
1550 * nlm32-alpha.c: Likewise.
1551 * nlm32-i386.c: Likewise.
1552 * nlm32-ppc.c: Likewise.
1553 * nlm32-sparc.c: Likewise.
1554 * nlmcode.h: Likewise.
1555 * nlmswap.h: Likewise.
1556 * nlm-target.h: Likewise.
1557 * ns32knetbsd.c: Likewise.
1558
1559 2000-12-10 Fred Fish <fnf@be.com>
1560
1561 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1562 symbols in shared objects if allow_shlib_undefined is true.
1563
1564 2000-12-12 Nick Clifton <nickc@redhat.com>
1565
1566 * cpu-sh.c: Fix formattng.
1567 * elf.c: Fix formattng.
1568 * elf32-mips.c: Fix formattng.
1569 * elf32-sh.c: Fix formattng.
1570 * elf64-alpha.c: Fix formattng.
1571
1572 2000-12-09 Nick Clifton <nickc@redhat.com>
1573
1574 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1575 dwarf2_find_line_info as last parameter to invocation of
1576 _bfd_dwarf2_find_nearest_line.
1577 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1578 dwarf2_find_line_info as last parameter to invocation of
1579 _bfd_dwarf2_find_nearest_line.
1580
1581 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1582
1583 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1584 (BFD_LIBS): ...to here.
1585 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1586 (BFD_LIBS_CFILES): ...to here.
1587 * Makefile.in: Regenerate.
1588 * configure.in: Remove dwarf.lo from the elf shell variable.
1589 * configure: Regenerate.
1590 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1591 * libcoff.h: Regenerate.
1592 * coffgen.c (coff_find_nearest_line): Call
1593 _bfd_dwarf2_find_nearest_line.
1594 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1595 accordingly.
1596 (read_abbrevs): Likewise
1597 (decode_line_info): Likewise.
1598 (parse_comp_unit): Likewise.
1599 (comp_unit_find_nearest_line): Likewise.
1600 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1601 * libbfd.h: Regenerate.
1602 * elf.c (_bfd_elf_find_nearest_line): Update call.
1603 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1604 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1605 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1606 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1607 (styp_to_sec_flags): Handle DWARF2 sections.
1608 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1609 to _bfd_find_nearest_line.
1610 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1611 call to _bfd_find_nearest_line.
1612
1613 2000-12-08 Kazu Hirata <kazu@hxi.com>
1614
1615 * coffgen.c: Fix formatting.
1616 * elf-m10300.c: Likewise.
1617 * elf32-i386.c: Likewise.
1618 * elf32-i960.c: Likewise.
1619 * elf32-m68k.c: Likewise.
1620 * elf32-mcore.c: Likewise.
1621 * elf32-ppc.c: Likewise.
1622 * elf32-sh.c: Likewise.
1623 * elf32-sparc.c: Likewise.
1624 * elf32-v850.c: Likewise.
1625 * elf64-alpha.c: Likewise.
1626 * elf64-hppa.c: Likewise.
1627 * elf64-mips.c: Likewise.
1628 * elf64-sparc.c: Likewise.
1629
1630 2000-12-07 Kazu Hirata <kazu@hxi.com>
1631
1632 * elf32-ppc.c: Fix formatting.
1633 * elf64-x86-64.c: Likewise.
1634
1635 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1636
1637 From Ralf Baechle <ralf@gnu.org>
1638
1639 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1640 BFDs containing no sections or empty .text, .data or .bss sections
1641 to be merged, regardless of their flags.
1642
1643 2000-12-06 Kazu Hirata <kazu@hxi.com>
1644
1645 * elf32-m32r.c: Fix formatting.
1646 * elf32-m68hc11.c: Likewise.
1647 * elf32-m68hc12.c: Likewise.
1648 * elf32-m68k.c: Likewise.
1649 * elf32-mcore.c: Likewise.
1650 * elf32-pj.c: Likewise.
1651 * elf32-ppc.c: Likewise.
1652
1653 2000-12-05 Kazu Hirata <kazu@hxi.com>
1654
1655 * elf32-fr30.c: Fix formatting.
1656 * elf32-hppa.c: Likewise.
1657 * elf32-i370.c: Likewise.
1658 * elf32-i386.c: Likewise.
1659 * elf32-i860.c: Likewise.
1660 * elf32-i960.c: Likewise.
1661
1662 2000-12-03 Kazu Hirata <kazu@hxi.com>
1663
1664 * elf32-arm.h: Fix formatting.
1665 * elf32-avr.c: Likewise.
1666 * elf32-cris.c: Likewise.
1667 * elf32-d10v.c: Likewise.
1668 * elf32-d30v.c: Likewise.
1669 * elf-hppa.h: Likewise.
1670 * elf-m10200.c: Likewise.
1671 * elf-m10300.c: Likewise.
1672
1673 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1674
1675 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1676 bfd_mach_mips32_4k. Update FIXME comment.
1677 * archures.c (bfd_mach_mips32): New constant.
1678 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1679 the latter, renumber it.
1680 * bfd-in2.h (bfd_mach_mips32): New constant.
1681 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1682 the latter, renumber it.
1683 * cpu-mips.c (I_mips32): New constant.
1684 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1685 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1686 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1687 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1688 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1689 with E_MIPS_MACH_MIPS32_4K.
1690 (_bfd_mips_elf_final_write_processing): Replace
1691 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1692 bfd_mach_mips32 case.
1693 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1694 comparison with support for MIPS32.
1695 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1696 MIPS32.
1697
1698 * aoutx.h (NAME(aout,machine_type)): Add cases for
1699 bfd_mach_mips5 and bfd_mach_mips64.
1700 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1701 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1702 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1703 (arch_info_struct): Add entries for bfd_mach_mips5 and
1704 bfd_mach_mips64.
1705 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1706 _bfd_mips_elf_print_private_bfd_data): Add cases for
1707 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1708 (_bfd_mips_elf_final_write_processing): Add cases for
1709 bfd_mach_mips5 and bfd_mach_mips64.
1710
1711 * aoutx.h (NAME(aout,machine_type)): Add a
1712 bfd_mach_mips_sb1 case.
1713 * archures.c (bfd_mach_mips_sb1): New constant.
1714 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1715 * cpu-mips.c (I_sb1): New constant.
1716 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1717 * elf32-mips.c (elf_mips_mach): Add case for
1718 E_MIPS_MACH_SB1.
1719 (_bfd_mips_elf_final_write_processing): Add case for
1720 bfd_mach_mips_sb1.
1721
1722 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1723
1724 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1725 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1726 (sparc*-*-rtems*): Switched from a.out to ELF.
1727
1728 2000-11-30 Jan Hubicka <jh@suse.cz>
1729
1730 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1731 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1732 (elf64-x86-64.lo): Add dependencies.
1733 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1734 bfd_mach_x86_64_intel_syntax.
1735 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1736 * config.bfd (x86_64): Add.
1737 * configure.in: Add support for bfd_elf64_x86_64_vec.
1738 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1739 (bfd_i386_arch, i8086_ar): Link in.
1740 * elf64-x86-64.c: New file.
1741 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1742 * targets.c (bfd_elf64_x86_64_vec): Add.
1743 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1744
1745 2000-11-30 Kazu Hirata <kazu@hxi.com>
1746
1747 * xcofflink.c: Fix formatting.
1748
1749 2000-11-28 Kazu Hirata <kazu@hxi.com>
1750
1751 * aoutx.h: Fix formatting.
1752 * bfd-in.h: Likewise.
1753 * bfd-in2.h: Likewise.
1754 * cache.c: Likewise.
1755 * cisco-core.c: Likewise.
1756 * coff64-rs6000.c: Likewise.
1757 * coffcode.h: Likewise.
1758 * coffswap.h: Likewise.
1759 * corefile.c: Likewise.
1760 * elf32-mips.c: Likewise.
1761
1762 2000-11-27 Kazu Hirata <kazu@hxi.com>
1763
1764 * aout-adobe.c: Fix formatting.
1765 * coff64-rs6000.c: Likewise.
1766 * coffgen.c: Likewise.
1767 * cofflink.c: Likewise.
1768
1769 2000-11-27 Philip Blundell <pb@futuretv.com>
1770
1771 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1772 (obj_coff_strings_written): New accessor macro for above.
1773 * libcoff.h: Regenerate.
1774 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1775 strings.
1776 * coffcode.h (coff_write_object_contents): No need to write out
1777 the string table if it's already been done.
1778
1779 2000-11-22 Philip Blundell <pb@futuretv.com>
1780
1781 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1782 weak undefined symbols.
1783
1784 2000-11-24 Nick Clifton <nickc@redhat.com>
1785
1786 * archures.c (bfd_mach_arm_5TE): Define.
1787 (bfd_mach_arm+XScale): Define.
1788 * bfd-in2.h: Regenerate.
1789
1790 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1791 BFD_RELOC_ARM_PCREL_BLX.
1792
1793 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1794 XScale machine numbers.
1795
1796 * config.bfd (xscale-elf): Add target.
1797 (xscale-coff): Add target.
1798
1799 * cpu-arm.c: Add xscale machine name.
1800 Add v5t, v5te and XScale machine numbers.
1801
1802 2000-11-23 Kazu Hirata <kazu@hxi.com>
1803
1804 * aix386-core.c: Fix formatting.
1805
1806 2000-11-22 Jim Wilson <wilson@redhat.com>
1807
1808 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1809 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1810 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1811 (ins_imms_scaled): Initialize sign_bit at function entry.
1812 (elf64_ia64_operands): Add missing initializers.
1813 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1814 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1815 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1816 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1817 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1818 parameters.
1819 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1820 and free_extsyms at function entry.
1821 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1822 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1823 (get_got): Delete unused local srel.
1824 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1825 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1826
1827 2000-11-21 Kazu Hirata <kazu@hxi.com>
1828
1829 * coff-a29k.c: Fix formatting.
1830 * coff-h8500.c: Likewise.
1831 * coff-i960.c: Likewise.
1832 * coff-ppc.c: Likewise.
1833 * coff-rs6000.c: Likewise.
1834 * coff-stgo32.c: Likewise.
1835 * coff-tic54x.c: Likewise.
1836 * coff-w65.c: Likewise.
1837 * cpu-h8500.c: Likewise.
1838 * cpu-hppa.c: Likewise.
1839 * cpu-ns32k.c: Likewise.
1840 * ecoff.c: Likewise.
1841 * ecofflink.c: Likewise.
1842
1843 2000-11-21 Nick Clifton <nickc@redhat.com>
1844
1845 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1846 remove possibility of infinite loop.
1847
1848 2000-11-20 Kazu Hirata <kazu@hxi.com>
1849
1850 * aix386-core.c: Fix formatting.
1851 * aout-adobe.c: Likewise.
1852 * aout-arm.c: Likewise.
1853 * aout-encap.c: Likewise.
1854 * aout-ns32k.c: Likewise.
1855 * aout-target.h: Likewise.
1856 * aout-tic30.c: Likewise.
1857 * aoutf1.h: Likewise.
1858 * aoutx.h: Likewise.
1859 * archive.c: Likewise.
1860 * bfd-in.h: Likewise.
1861 * bfd-in2.h: Likewise.
1862 * bfd.c: Likewise.
1863 * bout.c: Likewise.
1864
1865 2000-11-17 H.J. Lu <hjl@gnu.org>
1866
1867 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1868 pltoff entries for DT_INIT and DT_FINI.
1869 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1870 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1871 entries.
1872
1873 2000-11-16 Richard Henderson <rth@redhat.com>
1874
1875 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1876 (allocate_dynrel_entries): Likewise.
1877 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1878 (set_pltoff_entry): Likewise.
1879 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1880 (elfNN_ia64_reloc_type_lookup): Likewise.
1881 (elfNN_ia64_install_value): Likewise.
1882 (elfNN_ia64_relocate_section): Likewise.
1883 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1884 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1885
1886 2000-11-16 Kazu Hirata <kazu@hxi.com>
1887
1888 * cpu-a29k.c: Fix formatting.
1889 * cpu-alpha.c: Likewise.
1890 * cpu-arm.c: Likewise.
1891 * cpu-avr.c: Likewise.
1892 * cpu-d10v.c: Likewise.
1893 * cpu-h8500.c: Likewise.
1894 * cpu-hppa.c: Likewise.
1895 * cpu-i370.c: Likewise.
1896 * cpu-i386.c: Likewise.
1897 * cpu-i960.c: Likewise.
1898 * cpu-ia64-opc.c: Likewise.
1899 * cpu-ia64.c: Likewise.
1900 * cpu-m32r.c: Likewise.
1901 * cpu-m68hc11.c: Likewise.
1902 * cpu-m68hc12.c: Likewise.
1903 * cpu-m68k.c: Likewise.
1904 * cpu-m88k.c: Likewise.
1905 * cpu-mips.c: Likewise.
1906 * cpu-ns32k.c: Likewise.
1907 * cpu-pj.c: Likewise.
1908 * cpu-powerpc.c: Likewise.
1909 * cpu-sh.c: Likewise.
1910 * cpu-sparc.c: Likewise.
1911 * cpu-tic54x.c: Likewise.
1912 * cpu-v850.c: Likewise.
1913 * cpu-vax.c: Likewise.
1914 * cpu-w65.c: Likewise.
1915 * cpu-we32k.c: Likewise.
1916 * cpu-z8k.c: Likewise.
1917 * dwarf1.c: Likewise.
1918 * dwarf2.c: Likewise.
1919
1920 2000-11-15 Kazu Hirata <kazu@hxi.com>
1921
1922 * coff-arm.c: Fix formatting.
1923 * coff-ppc.c: Likewise.
1924 * coff-rs6000.c: Likewise.
1925 * coff-sh.c: Likewise.
1926 * coff-sparc.c: Likewise.
1927 * coff-tic30.c: Likewise.
1928 * coff-tic54x.c: Likewise.
1929 * coff-tic80.c: Likewise.
1930 * coff-w65.c: Likewise.
1931 * coff-we32k.c: Likewise.
1932 * coff-z8k.c: Likewise.
1933
1934 2000-11-15 Richard Henderson <rth@redhat.com>
1935
1936 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1937 section with the same ALLOC|LOAD flags as the source section.
1938
1939 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1940
1941 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1942 by STO_ALPHA constants.
1943
1944 2000-11-14 Kazu Hirata <kazu@hxi.com>
1945
1946 * coff-pmac.c: Fix formatting.
1947 * coff-ppc.c: Likewise.
1948
1949 2000-11-13 H.J. Lu <hjl@gnu.org>
1950
1951 * elflink.h (elf_link_add_object_symbols): Also add indirect
1952 symbols for common symbols with the default version.
1953
1954 2000-11-09 Philip Blundell <pb@futuretv.com>
1955
1956 * section.c (STD_SECTION): Set gc_mark flag.
1957
1958 2000-11-11 Kazu Hirata <kazu@hxi.com>
1959
1960 * coff-i960.c: Likewise.
1961 * coff-m68k.c: Likewise.
1962 * coff-m88k.c: Likewise.
1963 * coff-mcore.c: Likewise.
1964 * coff-mips.c: Likewise.
1965
1966 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1967
1968 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1969
1970 2000-11-10 Kazu Hirata <kazu@hxi.com>
1971
1972 * coff-h8300.c: Fix formatting.
1973 * coff-h8500.c: Likewise.
1974 * coff-i386.c: Likewise.
1975 * coff-i860.c: Likewise.
1976 * coff-i960.c: Likewise.
1977 * coff-ia64.c: Likewise.
1978
1979 2000-11-09 Kazu Hirata <kazu@hxi.com>
1980
1981 * archive.c: Fix formatting.
1982 * archures.c: Likewise.
1983
1984 2000-11-07 Richard Henderson <rth@redhat.com>
1985
1986 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1987 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1988 * section.c (bfd_set_section_contents): Call memcpy if
1989 section->contents set and location not equal to contents plus offset.
1990
1991 2000-11-08 Kazu Hirata <kazu@hxi.com>
1992
1993 * bfd-in.h: Fix formatting.
1994 * bfd-in2.h: Likewise.
1995 * bfd.c: Likewise.
1996 * binary.c: Likewise.
1997 * bout.c: Likewise.
1998 * coff-a29k.c: Likewise.
1999 * coff-alpha.c: Likewise.
2000 * coff-apollo.c: Likewise.
2001 * coff-aux.c: Likewise.
2002
2003 2000-11-07 Kazu Hirata <kazu@hxi.com>
2004
2005 * aix386-core.c: Fix formatting.
2006 * aoutf1.h: Likewise.
2007 * aoutx.h: Likewise.
2008 * archures.c: Likewise.
2009 * armnetbsd.c: Likewise.
2010
2011 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2012
2013 * coff-h8300.c (special): Adjust reloc address.
2014
2015 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2016
2017 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2018 to differentiate elf32 and elf64 on ia64.
2019 * bfd-in2.h: Regenerate.
2020 * config.bfd: Add target for "ia64*-*-hpux*".
2021 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2022 * configure: Regenerate.
2023 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2024 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2025
2026 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2027 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2028 * Makefile.in: Regnerate.
2029 * elf64-ia64.c: Deleted.
2030 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2031
2032 2000-11-06 Kazu Hirata <kazu@hxi.com>
2033
2034 * aout-adobe.c: Fix formatting.
2035 * aout-arm.c: Likewise.
2036 * aout-cris.c: Likewise.
2037 * aout-encap.c: Likewise.
2038 * aout-ns32k.c: Likewise.
2039 * aout-target.h: Likewise.
2040 * aout-tic30.c: Likewise.
2041
2042 2000-11-05 Philip Blundell <philb@gnu.org>
2043
2044 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2045 BFDs containing no sections to be merged, regardless of their flags.
2046
2047 2000-11-04 Philip Blundell <philb@gnu.org>
2048
2049 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2050 if a relocation for an undefined symbol also results in an
2051 overflow.
2052
2053 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2054
2055 * config.bfd: Add support for Sun Chorus.
2056
2057 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2058
2059 * configure.in: Recognize alpha-*-freebsd*.
2060 * configure: Regenerate.
2061
2062 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2063
2064 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2065 (Chunk): New global variable set by a parameter in objcopy.c.
2066 (S3Forced): New global variable set by a parameter in
2067 objcopy.c.
2068 (srec_set_section_contents): If S3Forced is true, always generate
2069 S3 records.
2070 (srec_write_section): Use 'Chunk' to limit maximum length of S
2071 records.
2072
2073 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2074
2075 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2076 * Makefile.in: Regenerate.
2077 * bfd-in2.h: Regenerate.
2078 * po/bfd.pot: Regenerate.
2079
2080 2000-10-31 Philip Blundell <philb@gnu.org>
2081
2082 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2083 EF_SOFT_FLOAT if it is defined.
2084
2085 2000-10-27 Philip Blundell <philb@gnu.org>
2086
2087 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2088 attempts to mix PIC code with non-PIC, just mark the output as
2089 being position dependent.
2090 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2091 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2092 all mismatches, not just the first one.
2093
2094 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2095
2096 * ieee.c (ieee_archive_p): Plug one of many possible
2097 memory leaks in error handling.
2098
2099 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2100
2101 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2102 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2103 Support v8plusb.
2104 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2105 sparc64_elf_object_p): Support v9b.
2106 * archures.c: Declare v8plusb and v9b machines.
2107 * bfd-in2.h: Ditto.
2108 * cpu-sparc.c: Ditto.
2109
2110 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2111
2112 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2113 of a GOT reloc.
2114
2115 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2116 (SYMBOL_CALLS_LOCAL): New macro.
2117 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2118 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2119 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2120 (ppc_elf_relocate_section): Use flag variable to determine
2121 whether the relocation refers to a local symbol.
2122 Test whether a PLTREL24 reloc will produce a reloc by looking
2123 to see whether a PLT entry was made.
2124
2125 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2126
2127 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2128 entries that could serve as a definition for a weak symbol.
2129
2130 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2131
2132 From Ralf Baechle <ralf@gnu.org>
2133
2134 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2135 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2136 against local symbols.
2137 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2138
2139 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2140
2141 * section.c (struct sec): Add kept_section.
2142 (struct bfd_comdat_info): Remove sec, we can use above.
2143 (STD_SECTION): Add initializer.
2144 (bfd_make_section_anyway): Init here too.
2145
2146 * bfd-in2.h: Regenerate.
2147
2148 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2149 zeroing of `flags'.
2150 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2151 fudge values for discarded link-once section symbols.
2152
2153 * elf64-hppa.c: Include alloca-conf.h
2154
2155 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2156
2157 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2158
2159 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2160
2161 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2162
2163 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2164
2165 2000-10-10 Tom Rix <trix@redhat.com>
2166
2167 * section.c (bfd_make_section_anyway): Release newsect ptr when
2168 newsect->symbol fails to alloc. Use bfd_release instead of free.
2169
2170 2000-10-09 Richard Henderson <rth@cygnus.com
2171
2172 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2173 (elf64_ia64_unwind_entry_compare): New.
2174 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2175
2176 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2177
2178 * elflink.h (size_dynamic_sections): Don't create various tags if
2179 .dynstr is excluded from the link. Don't set first dynsym entry
2180 if dynsymcount is zero.
2181 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2182 .dynsym excluded from the link. Don't try to write any dynamic
2183 sections excluded from the link.
2184
2185 * elf.c (swap_out_syms): Handle global section symbols.
2186
2187 2000-10-05 DJ Delorie <dj@redhat.com>
2188
2189 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2190 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2191 (coff_write_relocs): write extended reloc count
2192 (coff_write_object_contents): account for extended relocs
2193
2194 2000-10-05 Jim Wilson <wilson@cygnus.com>
2195
2196 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2197 field.
2198 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2199 elf_backend_section_flags function.
2200 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2201 code.
2202 (elf64_ia64_section_flags): New function containing flag conversion
2203 code.
2204 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2205 * elfxx-target.h (elf_backend_section_flags): Define.
2206 (elfNN_bed): Initialize elf_backend_section_flags field.
2207
2208 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2209
2210 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2211 _bfd_elf32_gc_record_vtable. Correct a comment.
2212
2213 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2214
2215 From Ralf Baechle <ralf@gnu.org>
2216
2217 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2218 produces binaries with got[1] = 0x80000001 to differenciate them
2219 for the dynamic linker from the broken binaries produced by old
2220 versions.
2221
2222 2000-09-30 Petr Sorfa <petrs@sco.com>
2223
2224 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2225 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2226 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2227 * configure: Regenerate.
2228
2229 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2230
2231 Define two bfd_targets for absence and presence of leading
2232 underscore on symbols. Make sure to only link same kind.
2233 * elf32-cris.c (cris_elf_object_p,
2234 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2235 cris_elf_merge_private_bfd_data): New.
2236 (elf_backend_object_p, elf_backend_final_write_processing,
2237 bfd_elf32_bfd_print_private_bfd_data,
2238 bfd_elf32_bfd_merge_private_bfd_data): Define.
2239 <Target vector definition>: Include elf32-target.h twice with
2240 different macro settings:
2241 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2242 bfd_elf32_us_cris_vec.
2243 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2244 (elf_symbol_leading_char): First as 0, then '_'.
2245 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2246 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2247 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2248 * configure: Regenerate.
2249 * targets.c: Declare bfd_elf32_us_cris_vec.
2250 * po/bfd.pot: Regenerate.
2251
2252 2000-09-29 Momchil Velikov <velco@fadata.bg>
2253
2254 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2255 R_ARM_THM_PC22 relocations.
2256
2257 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2258
2259 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2260
2261 2000-09-29 Momchil Velikov <velco@fadata.bg>
2262
2263 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2264 is has the SEC_HAS_CONTENTS flag set.
2265
2266 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
2267 Hans-Peter Nilsson <hp@axis.com>
2268
2269 * aout-cris.c (N_TXTADDR): Define.
2270
2271 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2272
2273 * som.c: Include alloca-conf.h.
2274 * Makefile.am: "make dep-am"
2275 * Makefile.in: Regenerate.
2276
2277 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2278
2279 * elf32-hppa.c (plt_stub): New.
2280 (PLT_STUB_ENTRY): Define.
2281 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2282 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2283 (elf32_hppa_link_hash_table_create): Init to suit.
2284 (elf32_hppa_check_relocs): Set has_12bit_branch and
2285 has_17bit_branch as appropriate.
2286 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2287 non-local functions.
2288 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2289 Add space for plt_stub as needed.
2290 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2291 functions at plt_stub.
2292 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2293 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2294
2295 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2296 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2297 of fixed size, and if negative, disable handling of input sections
2298 before stub section. Set up default stub group size depending
2299 on detected branch relocs.
2300 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2301 ensure different offsets from sym_value aren't rounded to
2302 different 2k blocks. Use lrsel and rrsel for other stubs too for
2303 consistency rather than necessity.
2304 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2305 (final_link_relocate): Likewise.
2306 (elf32_hppa_relocate_section): Likewise.
2307
2308 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2309 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2310 (elf_hppa_final_link_relocate): Handle them.
2311 (elf_hppa_relocate_insn): Likewise.
2312 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2313
2314 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2315
2316 * elfcode.h (elf_object_p): Preserve and clear abfd section
2317 information. Restore at error.
2318
2319 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2320
2321 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2322 is empty, make sure that its rva also 0. NT loader dislikes
2323 having otherwise.
2324
2325 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2326
2327 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2328 global by default.
2329
2330 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2331
2332 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2333 currently unused RELATIVE_DYNAMIC_RELOCS code.
2334 (hppa_discard_copies): Likewise.
2335 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2336 comments. Don't check non-code output sections for stub grouping.
2337
2338 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2339
2340 * section.c (bfd_get_unique_section_name): Return NULL if
2341 bfd_malloc fails.
2342
2343 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2344
2345 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2346 instruction sequence to actually work.
2347 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2348 accordingly.
2349
2350 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2351
2352 * elf32-sh.c (sh_elf_relocate_section): Use
2353 _bfd_final_link_relocate to apply the relocation against a section
2354 symbol, when doing relocatable links.
2355
2356 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2357
2358 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2359 to id_sec.
2360 (stub_hash_newfunc): Here too.
2361 (hppa_add_stub): And here.
2362 (elf32_hppa_link_hash_table): Remove stub_section_created,
2363 reloc_section_created, first_init_sec and first_fini_sec. Add
2364 stub_group.
2365 (elf32_hppa_link_hash_table_create): Init to suit.
2366 (hppa_get_stub_entry): Add support for grouping stub sections.
2367 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2368 section code. Index stub vars by section->id.
2369 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2370 exit paths. Zap allocation of above removed vars. Refine
2371 link-once test.
2372
2373 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2374 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2375 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2376 rather than pointer to bfd_link_info.
2377 (hppa_add_stub): Likewise.
2378 (final_link_relocate): Likewise.
2379
2380 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2381
2382 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2383 link-once sections.
2384
2385 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2386
2387 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2388 ld/emulparams/shelf.sh.
2389
2390 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2391
2392 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2393 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2394 * bfd-in2.h: Regenerate.
2395
2396 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2397
2398 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2399 LITUSE relocations incorrectly if -relax is specified on the ld
2400 command line and the displacement field of the load or store
2401 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2402
2403 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2404
2405 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2406 first_fini_sec here.
2407 (elf32_hppa_size_stubs): Instead correctly find the first .init
2408 and .fini section here.
2409
2410 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2411
2412 * elf32-hppa.c (clobber_millicode_symbols): New function.
2413 (elf32_hppa_size_dynamic_sections): Call it.
2414
2415 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2416
2417 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2418 packed. Add plabel, plt_abs packed booleans.
2419 (hppa_link_hash_newfunc): Init new fields.
2420 (PLABEL_PLT_ENTRY_SIZE): Define.
2421 (hppa_stub_name): Use size_t len vars.
2422 (hppa_add_stub): Likewise.
2423 (elf32_hppa_build_stubs): Likewise.
2424 (hppa_build_one_stub): Kill some compiler warnings.
2425 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2426 if dynamic linking. Munge the local plt offsets into
2427 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2428 size_t len vars. Add assert for plabel addend.
2429 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2430 (elf32_hppa_hide_symbol): New function.
2431 (elf_backend_hide_symbol): Define.
2432 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2433 with h->plabel set. Don't make plt entries to have dynamic syms
2434 when they have been forced local. If plt entry is used by a
2435 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2436 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2437 Set up .plt offsets for local syms.
2438 (elf32_hppa_relocate_section): Initialise plt entries for local
2439 syms. Leave weak undefined plabels zero. Make global plabel
2440 relocs against function symbol, and leave the addend zero.
2441 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2442 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2443 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2444 relocs instead of SEGREL32 for dynamic got relocs.
2445 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2446 (elf_backend_got_header_size): Adjust.
2447 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2448
2449 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2450 (hppa_type_of_stub): Use it instead of #if 0
2451 (hppa_discard_copies): Use it here too.
2452 (elf32_hppa_size_dynamic_sections): And here.
2453
2454 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2455 (elf32_hppa_link_hash_table_create): And here.
2456 (hppa_build_one_stub): And here. Instead keep track of stub
2457 offset using _raw_size.
2458 (elf32_hppa_size_stubs): Likewise.
2459 (elf32_hppa_build_stubs): Likewise.
2460 (hppa_size_one_stub): Likewise. Resize reloc section too.
2461
2462 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2463 first_fini_sec handling. Don't search for reloc section or set
2464 hplink->reloc_section_created here.
2465 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2466 set reloc_section_created here.
2467 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2468 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2469 and DT_FINI.
2470 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2471
2472 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2473 with `hplink->root.'.
2474 (elf32_hppa_check_relocs): Likewise.
2475 (elf32_hppa_gc_sweep_hook): Likewise.
2476 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2477 (hppa_handle_PIC_calls): Likewise.
2478 (elf32_hppa_size_dynamic_sections): Likewise.
2479 (elf32_hppa_set_gp): Likewise.
2480 (elf32_hppa_relocate_section): Likewise.
2481 (elf32_hppa_finish_dynamic_symbol): Likewise.
2482 (elf32_hppa_finish_dynamic_sections): Likewise.
2483
2484 From David Huggins-Daines <dhd@linuxcare.com>
2485 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2486 defined weak symbols in shared links.
2487 (final_link_relocate): Calls to defined weak symbols in shared
2488 objects must go via import stubs, as the target might not be known
2489 at link time.
2490
2491 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2492
2493 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2494 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2495 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2496 the original entries with EMPTY_HOWTOs, and added new ones to fill
2497 in the gap.
2498 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2499 (sh_elf_relocate_section): Likewise.
2500
2501 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2502
2503 * cpu-mips.c (arch_info_struct): Add mips:4K
2504 * bfd-in2.h (bfd_mach_mips4K): New define.
2505 * archures.c: Add bfd_mach_mips4K to comment.
2506 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2507 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2508
2509 2000-09-13 Marco Franzen <marcof@thyron.com>
2510
2511 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2512 use size_t as a counter.
2513 (som_write_space_strings): Similarly.
2514
2515 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2516
2517 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2518 and prototype.
2519 (elf32_i860_relocate_section): Invoke new function from here.
2520
2521 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2522
2523 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2524 static.
2525
2526 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2527
2528 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2529 target section name instead of dumping core when the target symbol is
2530 undefined.
2531
2532 2000-09-09 Kazu Hirata <kazu@hxi.com>
2533
2534 * riscix.c: Remove DEFUN.
2535
2536 2000-09-08 Nick Clifton <nickc@redhat.com>
2537
2538 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2539 initialise flags in output bfd if the input bfd is the default
2540 architecture with the default flags.
2541
2542 2000-09-08 Kazu Hirata <kazu@hxi.com>
2543
2544 * archive.c: Fix formatting.
2545 * coff-arm.c: Likewise.
2546 * doc/chew.c: Likewise.
2547
2548 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2549
2550 * section.c (bfd_get_unique_section_name): Put a dot before the
2551 numeric suffix.
2552
2553 2000-09-07 Kazu Hirata <kazu@hxi.com>
2554
2555 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2556 * elf.c: Fix formatting.
2557
2558 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2559
2560 * config.bfd (sh-*-linux*): Added.
2561 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2562 * targets.c: Declare them.
2563 * elf32-sh-lin.c: New file.
2564 * Makefile.am: Compile it.
2565 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2566 * configure, Makefile.in: Rebuilt.
2567
2568 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2569
2570 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2571 pseduo-section when determining where the TOC ends.
2572
2573 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2574 output x_tvndx as it is only two bytes wide.
2575
2576 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2577 reloc is 26 or 32 bits wide.
2578
2579 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2580 for relocs that don't change anything. Also look at the full
2581 6 bits of bitsize.
2582
2583 2000-09-06 Philip Blundell <philb@gnu.org>
2584
2585 * config.bfd (arm*-*-uclinux*): New target.
2586
2587 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2588
2589 * configure: Rebuilt with new libtool.m4.
2590
2591 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2592
2593 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2594 word for variable name.
2595 * bfd-in2.h: Regenerate.
2596
2597 2000-09-05 Nick Clifton <nickc@redhat.com>
2598
2599 * config.in: Regenerate.
2600 * libbfd.h: Regenerate.
2601 * po/bfd.pot: Regenerate.
2602 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2603 local versions.
2604
2605 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2606
2607 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2608
2609 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2610
2611 Shared library and PIC support.
2612 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2613 (GOT_ENTRY_SIZE): New.
2614 (ELF_DYNAMIC_INTERPRETER): New.
2615 (STUB_SUFFIX): Define.
2616 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2617 (RELATIVE_DYNAMIC_RELOCS): Define.
2618 (enum elf32_hppa_stub_type): New.
2619 (struct elf32_hppa_stub_hash_entry): Rename offset to
2620 stub_offset. Add a number of new fields.
2621 (struct elf32_hppa_link_hash_entry): New.
2622 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2623 global_value.
2624 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2625 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2626 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2627 new fields.
2628 (hppa_link_hash_newfunc): New function.
2629 (elf32_hppa_link_hash_table_create): Use above function. Init new
2630 fields.
2631 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2632 instead of addend, and remove sym_name from args. Don't use
2633 symbol name for local syms, instead use sym index.
2634 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2635 stub type rather than size. Pass in hash and handle import stub
2636 case. Also pass in reloc instead of offset so we can calculate
2637 PCREL22F and PCREL12F branches properly.
2638 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2639 import and export stubs too.
2640 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2641 import and export stub sizing.
2642 (elf32_hppa_check_relocs): New function.
2643 (elf32_hppa_adjust_dynamic_symbol): New function.
2644 (hppa_discard_copies): New function.
2645 (elf32_hppa_size_dynamic_sections): New function.
2646 (elf_backend_size_dynamic_sections): Define.
2647 (elf32_hppa_finish_dynamic_symbol): New function.
2648 (elf_backend_finish_dynamic_symbol): Define.
2649 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2650 some local vars into the link hash table too. For shared links,
2651 trundle over function syms, generating export stubs. Handle
2652 PCREL22F branches. Break out stub creation code from here..
2653 (hppa_add_stub): .. to here. New function.
2654 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2655 call the bfd linker. Use elf_gp to record global pointer.
2656 Calculate a value from sections if $global$ is missing.
2657 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2658 (elf32_hppa_gc_mark_hook): New function.
2659 (elf_backend_gc_mark_hook): Define.
2660 (elf32_hppa_gc_sweep_hook): New function.
2661 (elf_backend_gc_sweep_hook): Define.
2662 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2663 Add rel to args, and remove howto, input_bfd, offset, addend,
2664 sym_name as we can recalculate these locally. Handle calls to
2665 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2666 handling of undefined weak syms. Check that stubs are in range.
2667 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2668 message on hitting a DPREL21L reloc that needs fixing. Subtract
2669 off PC for PCREL14F. Break out code that does a stub lookup from
2670 here..
2671 (hppa_get_stub_entry): ..to here. New function.
2672 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2673 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2674 relocs, etc. etc.
2675 (elf32_hppa_finish_dynamic_sections): New function.
2676 (elf_backend_finish_dynamic_sections): Define.
2677 (elf_backend_final_write_processing) Define.
2678 (hppa_handle_PIC_calls): New function.
2679 (elf32_hppa_build_stubs): Call it. Pass link_info to
2680 hppa_build_one_stub.
2681 (elf32_hppa_create_dynamic_sections): New function
2682 to create .plt and .got then set .plt flags correctly.
2683 (elf_backend_create_dynamic_sections): Define.
2684 (elf32_hppa_object_p): New function.
2685 (elf_backend_object_p): Define.
2686 (elf32_hppa_elf_get_symbol_type): New function.
2687 (elf_backend_get_symbol_type): Define.
2688 (elf_backend_can_gc_sections): Define.
2689 (elf_backend_want_got_plt): Define.
2690 (elf_backend_plt_alignment): Set to 2.
2691 (elf_backend_plt_readonly): Define.
2692 (elf_backend_want_plt_sym): Define.
2693 (elf_backend_got_header_size): Reserve one entry.
2694
2695 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2696 (elf32_hppa_size_stubs): Pass in multi_subspace.
2697 (elf32_hppa_set_gp): Declare.
2698
2699 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2700 (bfd_get_unique_section_name): New function.
2701 * bfd-in2.h: Regenerate.
2702
2703 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2704 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2705 comment.
2706
2707 From David Huggins-Daines <dhd@linuxcare.com>
2708 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2709 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2710 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2711 been updated in finish_dynamic_symbol before modifying function
2712 symbol.
2713
2714 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2715 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2716 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2717 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2718 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2719 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2720 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2721 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2722
2723 From David Huggins-Daines <dhd@linuxcare.com>
2724 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2725 style of local labels as well.
2726
2727 2000-09-03 Philip Blundell <philb@gnu.org>
2728
2729 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2730 references to undefined symbols in debugging sections.
2731
2732 2000-09-02 H.J. Lu <hjl@gnu.org>
2733
2734 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2735 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2736 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2737 section.
2738
2739 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2740
2741 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2742 (elf32_i860_is_local_label_name): New function and prototype.
2743
2744 2000-09-02 Nick Clifton <nickc@redhat.com>
2745
2746 * configure.in: Increase version number to 2.10.91.
2747 * configure: Regenerate.
2748 * aclocal.m4: Regenerate.
2749 * config.in: Regenerate.
2750 * po/bfd.pot: Regenerate.
2751
2752 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2753
2754 * elf.c (_bfd_elf_make_section_from_shdr): Add
2755 .gnu.linkobce.wi. to the list of debug section names.
2756
2757 2000-09-02 Nick Clifton <nickc@redhat.com>
2758
2759 * dwarf2.c (find_debug_info): New function: Locate a section
2760 containing dwarf2 debug information.
2761 (bfd_dwarf2_find_nearest_line): Find all sections containing
2762 debug information and include them in the stash.
2763
2764 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2765
2766 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2767 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2768 (sh_reloc_map): Add new relocs.
2769 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2770 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2771 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2772 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2773 functions.
2774 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2775 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2776 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2777 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2778 New array constants.
2779 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2780 New variables.
2781 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2782 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2783 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2784 elf_sh_plt_reloc_offset): Define.
2785 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2786 elf_sh_link_hash_table): New structs.
2787 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2788 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2789 relocation types.
2790 (elf_backend_create_dynamic_sections,
2791 bfd_elf32_bfd_link_hash_table_create,
2792 elf_backend_adjust_dynamic_symbol,
2793 elf_backend_size_dynamic_sections,
2794 elf_backend_finish_dynamic_symbol,
2795 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2796 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2797 elf_backend_got_header_size, elf_backend_plt_header_size):
2798 Define.
2799 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2800 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2801 New relocs.
2802 * bfd-in2.h, libbfd.h: Rebuilt.
2803
2804 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2805
2806 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2807 change.
2808
2809 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2810
2811 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2812 not initialized, set them to indicate the SH1 instruction set.
2813
2814 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2815
2816 * acinclude.m4: Include libtool and gettext macros from the
2817 top level.
2818 * aclocal.m4, configure: Rebuilt.
2819
2820 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2821
2822 * elf.c: Eliminate references to __sparcv9 macro; replace with
2823 autoconf variables HAVE_PSINFO32_T etc.
2824 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2825 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2826 * config.in: Ditto.
2827 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2828 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2829 * aclocal.m4: Ditto.
2830 * configure: Regenerate.
2831
2832 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2833
2834 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2835 for any shared link, not just shared -Bsymbolic.
2836 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2837 any shared link, and pass link info to it.
2838 (elf_i386_size_dynamic_sections): Update comment.
2839 (elf_i386_discard_copies): Modify to discard relocs for symbols
2840 that have been forced local.
2841 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2842 that have been forced local.
2843
2844 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2845
2846 * elflink.h (elf_link_add_object_symbols): Allow common
2847 symbols to have an alignment of 1 if explicitly requested, and
2848 not overridden by other definitions.
2849
2850 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2851
2852 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2853 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2854
2855 2000-08-22 H.J. Lu <hjl@gnu.org>
2856
2857 * elf-bfd.h (elf_link_hash_table): Add runpath.
2858
2859 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2860 * bfd-in2.h: Rebuilt.
2861
2862 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2863 "runpath" field to NULL.
2864 (bfd_elf_get_runpath_list): New function.
2865
2866 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2867 DT_RUNPATH entries.
2868
2869 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2870
2871 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2872 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2873 explicitly. Improve validation of r_type.
2874
2875 2000-08-21 H.J. Lu <hjl@gnu.org>
2876
2877 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2878 dynamic allocated content space. Add a comment to remind us that
2879 one day this ought to be fixed.
2880 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2881 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2882 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2883
2884 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2885
2886 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2887 field with the newly relocated value instead of adding it to the
2888 existing immediate field.
2889 (elf32_i860_relocate_splitn): Likewise.
2890 (elf32_i860_relocate_highadj): Likewise.
2891
2892 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2893
2894 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2895 was previously just a stub).
2896
2897 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2898
2899 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2900 Formatting fixes.
2901 (_bfd_elf_create_dynamic_sections): Likewise.
2902
2903 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2904
2905 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2906 for undefined symbols to be the beginning of the section.
2907
2908 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2909 four extra entries at the beginning of the .rela.plt section.
2910 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2911 section to account for the four reserved entries in the .plt section.
2912
2913 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2914
2915 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2916 to the list of NOPs we recognize after a branch-and-link.
2917 Use the ori NOP when one is needed.
2918
2919 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2920 for large archives.
2921
2922 2000-08-14 Jim Wilson <wilson@cygnus.com>
2923
2924 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2925 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2926 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2927 EF_IA_64_ABSOLUTE.
2928
2929 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2930
2931 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2932
2933 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2934
2935 * elf32-i860.c (elf32_i860_relocate_section): New function.
2936 (i860_final_link_relocate): New function.
2937 (elf32_i860_relocate_splitn): New function.
2938 (elf32_i860_relocate_pc16): New function.
2939 (elf32_i860_relocate_highadj): New function.
2940 (elf32_i860_howto): Minor adjustments to some relocations.
2941 (elf_info_to_howto_rel): Define.
2942 (elf_backend_relocate_section): Define.
2943
2944 2000-08-10 Nick Clifton <nickc@cygnus.com>
2945
2946 * elf32-arm.h: Fix formatting.
2947
2948 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2949
2950 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2951
2952 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2953
2954 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2955
2956 2000-08-07 Kazu Hirata <kazu@hxi.com>
2957
2958 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2959 * elf64-ia64.c: Fix a typo.
2960
2961 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2962
2963 * elf32-i860.c (elf32_i860_howto_table): New structure.
2964 (lookup_howto): New function.
2965 (elf32_i860_reloc_type_lookup): New function.
2966 (elf32_i860_info_to_howto_rela): New function.
2967 (elf_code_to_howto_index): New structure.
2968 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2969 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2970 elf32_i860_reloc_type_lookup.
2971
2972 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2973
2974 * som.c (struct fixup_format): Constify `format'.
2975 (som_hppa_howto_table): Use SOM_HOWTO macro.
2976 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2977 (som_bfd_reloc_type_lookup): Likewise.
2978 (compare_subspaces): Remove unused `count1', `count2'.
2979 (som_begin_writing): Remove unused `total_reloc_size'.
2980 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2981 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2982 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2983 (som_find_nearest_line): Decorate unused parameter(s).
2984 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2985 (som_bfd_link_split_section): Likewise.
2986
2987 2000-08-03 Nick Clifton <nickc@cygnus.com>
2988
2989 * section.c: Restore backed out code.
2990 * elf.c: Restore backed out code.
2991 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2992 binaries from working.
2993 * bfd-in2.h: Regenerate.
2994
2995 2000-08-03 H.J. Lu <hjl@gnu.org>
2996
2997 * section.c: Back out the change made by Nick Clifton
2998 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2999 binaries.
3000 * bfd-in2.h: Likewise.
3001 * elf.c: Likewise.
3002
3003 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3004
3005 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3006
3007 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3008
3009 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3010 * bfd-in2.h, libbfd.h: Regenerate.
3011
3012 2000-07-31 Nick Clifton <nickc@cygnus.com>
3013
3014 * section.c (struct sec): Add new boolean field 'segment_mark'.
3015 (STD_SECTION): Initialise new field to zero.
3016
3017 * bfd-in2.h: Regenerate.
3018
3019 * elf.c (copy_private_bfd_data): Reorganise section to segment
3020 mapping to cope with moved sections requiring new segments,
3021 and overlapping segments.
3022 (SEGMENT_END): New macro: Return the end address of a segment.
3023 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3024 contains a section by comparing their VMA addresses.
3025 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3026 contains a section by comparing their LMA addresses.
3027 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3028 section should be included in a segment.
3029 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3030 follows another in memory.
3031 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3032 segments overlap.
3033
3034 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3035
3036 * cpu-i860.c: Added comments.
3037
3038 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3039 bfd_elf32_i860_little_vec.
3040 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3041 (ELF_MAXPAGESIZE): Changed to 4096.
3042
3043 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3044 new target.
3045 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3046
3047 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3048 config for little endian elf32 i860.
3049 (targ_defvec): Define for the new config above
3050 as "bfd_elf32_i860_little_vec".
3051 (targ_selvecs): Define for the new config above
3052 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3053
3054 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3055 of new target vec.
3056
3057 * configure: Regenerated.
3058
3059 2000-07-27 H.J. Lu <hjl@gnu.org>
3060
3061 * elflink.h (elf_merge_symbol): Take one more argument,
3062 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3063 entry. Don't overide the existing weak definition if dt_needed
3064 is true.
3065 (elf_link_add_object_symbols): Pass dt_needed to
3066 elf_merge_symbol ().
3067
3068 2000-07-27 Nick Clifton <nickc@cygnus.com>
3069
3070 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3071 allocated contents.
3072
3073 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3074
3075 * configure.host (*-*-aix*): AIX has 'long long' always.
3076
3077 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3078 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3079 (xcoff_write_archive_contents_big): Don't update the offset
3080 of the symbol table, xcoff_write_armap will do it.
3081
3082 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3083
3084 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3085 of dynobj for SGI_COMPAT checks.
3086
3087 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3088
3089 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3090 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3091 * bfd-in2.h: Regenerate.
3092
3093 2000-07-21 Nick Clifton <nickc@cygnus.com>
3094
3095 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3096 range symbol indices in relocs and issue an error message.
3097
3098 2000-07-20 H.J. Lu <hjl@gnu.org>
3099
3100 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3101 info->new_dtags when setting DT_FLAGS_1. It will only be set
3102 by the new linker options. It shouldn't break anything.
3103
3104 2000-07-20 H.J. Lu <hjl@gnu.org>
3105
3106 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3107 only if info->new_dtags is true.
3108
3109 2000-07-20 H.J. Lu <hjl@gnu.org>
3110
3111 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3112 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3113
3114 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3115
3116 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3117 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3118 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3119 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3120 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3121 * Makefile.in: Rebuild.
3122 * aclocal.m4: Rebuild.
3123 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3124 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3125 (bfd_cris_arch): Declare.
3126 (bfd_archures_list): Add bfd_cris_arch.
3127 * bfd-in2.h: Rebuild.
3128 * config.bfd: (cris-*-*): New target.
3129 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3130 * configure: Rebuild.
3131 * elf.c (prep_headers): Add bfd_arch_cris.
3132 * libbfd.h: Rebuild.
3133 * libaout.h (enum machine_type): Add M_CRIS.
3134 * reloc.c: Add CRIS relocations.
3135 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3136 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3137 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3138 * po/POTFILES.in, po/bfd.pot: Regenerate.
3139
3140 2000-07-19 H.J. Lu <hjl@gnu.org>
3141
3142 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3143 DF_TEXTREL if DT_TEXTREL is set.
3144 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3145 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3146 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3147 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3148 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3149 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3150 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3151 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3152 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3153 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3154
3155 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3156 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3157 DT_RPATH is set.
3158 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3159
3160 2000-07-19 H.J. Lu <hjl@gnu.org>
3161
3162 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3163 * bfd-in2.h: Rebuild.
3164
3165 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3166 (elf_dt_soname): New.
3167
3168 * elf.c (bfd_elf_set_dt_needed_soname): New.
3169
3170 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3171 entry if the shared object loaded by DT_NEEDED is used to
3172 resolve the reference in a regular object.
3173
3174 2000-07-19 H.J. Lu <hjl@gnu.org>
3175
3176 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3177 DT_DEPAUDIT and DT_AUDIT as strings.
3178
3179 2000-07-19 Nick Clifton <nickc@cygnus.com>
3180
3181 * format.c: Fix formatting.
3182
3183 2000-07-19 H.J. Lu <hjl@gnu.org>
3184
3185 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3186
3187 2000-07-19 H.J. Lu <hjl@gnu.org>
3188
3189 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3190 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3191 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3192 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3193 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3194 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3195 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3196
3197 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3198
3199 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3200 renamed functions from here...
3201 (assign_section_numbers): Use renamed functions.
3202 (prep_headers): Use renamed functions.
3203
3204 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3205 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3206 * bfd-in2.h: Regenerate.
3207
3208 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3209
3210 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3211 parenthesis in if statement.
3212
3213 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3214
3215 Enable the support for Traditional MIPS.
3216 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3217 return ict_none appropriately for traditional mips targets.
3218 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3219 (STUB_MOVE): Conditionalize for traditonal mips.
3220 (STUB_LI16): Likewise.
3221 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3222 room for RTPROC header.
3223 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3224 the permission for the PT_DYNAMIC as read, write and execute.
3225 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3226 for traditonal mips.
3227 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3228 _DYNAMIC_LINKING for traditonal mips.
3229 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3230 in case of traditonal mips.
3231 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3232 entry is required. For a function if PLT is not required then set the
3233 corresponding hash table entry to 0.
3234 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3235 traditonal mips.
3236 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3237 shared object set the value to 0.
3238 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3239 _DYNAMIC_LINKING for traditonal mips.
3240 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3241 for traditonal mips.
3242
3243 2000-07-15 H.J. Lu <hjl@gnu.org>
3244
3245 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3246
3247 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3248
3249 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3250 out a structure that is BFD_IN_MEMORY.
3251
3252 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3253
3254 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3255 bfd pointer. Print section id instead of bfd pointer for local
3256 syms. Prefix addend with `+' for global syms as well as local.
3257 Correct calculation of name component lengths.
3258 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3259
3260 From David Huggins-Daines <dhd@linuxcare.com>
3261 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3262 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3263 (elf64_hppa_modify_segment_map): Likewise.
3264
3265 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3266
3267 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3268 addresses to be "naturally" sign extended. Return -1 if unknown.
3269 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3270 * bfd-in2.h: Regenerate.
3271
3272 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3273
3274 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3275 and ECOF_SIGNED_64 to list ways to extract an offset.
3276 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3277 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3278 Update.
3279 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3280 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3281
3282 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3283
3284 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3285 bfd_get_start_address.
3286 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3287 (elf_swap_ehdr_out): Ditto.
3288
3289 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3290
3291 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3292 compatibility with older binutils.
3293
3294 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3295
3296 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3297 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3298
3299 From Ryan Bradetich <rbradetich@uswest.net>
3300 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3301 (parse_line_table): Ditto.
3302 (_bfd_dwarf1_find_nearest_line): Ditto.
3303 * syms.c (cmpindexentry): Remove extra `*' from params.
3304
3305 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3306
3307 * elf32-mips.c (sort_dynamic_relocs): New Function.
3308 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3309 via qsort to sort the dynamic relocations in increasing r_symndx
3310 value.
3311
3312 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3313
3314 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3315 ATTRIBUTE_UNUSED to unused args.
3316 (get_opd): Likewise.
3317 (get_plt): Likewise.
3318 (get_dlt): Likewise.
3319 (get_stub): Likewise.
3320 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3321 (elf64_hppa_link_output_symbol_hook): Likewise.
3322 (elf64_hppa_check_relocs): Delete unused var.
3323 (elf64_hppa_size_dynamic_sections): Likewise.
3324 (elf64_hppa_finalize_opd): Likewise.
3325 (elf64_hppa_finalize_dynreloc): Likewise.
3326 (elf64_hppa_modify_segment_map): Likewise.
3327 (elf64_hppa_finish_dynamic_sections): Likewise.
3328
3329 * elf-hppa.h (elf_hppa_final_write_processing): Add
3330 ATTRIBUTE_UNUSED to unused args.
3331 (elf_hppa_final_link_relocate): Likewise.
3332 (elf_hppa_record_segment_addrs): Add paretheses.
3333 (elf_hppa_relocate_section): Constify dyn_name.
3334
3335 From David Huggins-Daines <dhd@linuxcare.com>
3336 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3337 rearrange case statement so that it gets preferred to 32-bit ones.
3338
3339 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3340 asection->id instead of address of asection structure.
3341 (elf32_hppa_size_stubs): Likewise.
3342
3343 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3344 for .init* and .fini*.
3345
3346 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3347 and addends used in stub names to 32 bits.
3348 (elf32_hppa_size_stubs): Likewise.
3349
3350 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3351 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3352 not bfd_put_64. Fix minor comment typo and formatting.
3353
3354 Changes to create multiple linker stubs, positioned immediately
3355 before the section where they are required.
3356 * elf32-hppa.c: Don't include hppa_stubs.h.
3357 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3358 (elf32_hppa_stub_hash_table): Delete.
3359 (elf32_hppa_link_hash_entry): Delete.
3360 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3361 stub_hash_table, and store the struct here rather than a pointer.
3362 Delete output_symbol_count. Add offset array. Change
3363 global_value to a bfd_vma.
3364 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3365 (elf32_hppa_stub_hash_traverse): Delete.
3366 (elf32_hppa_name_of_stub): Delete.
3367 (elf32_hppa_link_hash_lookup): Delete.
3368 (elf32_hppa_link_hash_traverse): Delete.
3369 (elf32_hppa_stub_hash_table_init): Delete.
3370 (elf32_hppa_size_of_stub): Pass input section and offset rather
3371 than location and calculate location here. Don't pass name as all
3372 stubs are now the same size.
3373 (elf32_hppa_stub_hash_newfunc): Init new fields.
3374 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3375 too.
3376 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3377 comparing against ints. Rewrite stub handling code.
3378 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3379 Case enums to int before comparing against ints. Remove
3380 bfd_reloc_dangerous case.
3381 (elf32_hppa_build_one_stub): Rewrite.
3382 (elf32_hppa_size_one_stub): New function.
3383 (elf32_hppa_build_stubs): Rewrite.
3384 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3385 Rewrite stub-handling specific code.
3386
3387 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3388
3389 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3390
3391 * hppa_stubs.h: Delete.
3392 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3393 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3394 * Makefile.in: Regenerate.
3395
3396 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3397 e_nlrsel.
3398
3399 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3400
3401 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3402 and section name for bfd_reloc_notsupported error message.
3403 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3404 bfd_reloc_notsupported.
3405 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3406
3407 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3408 undefined weak symbols for all relocs.
3409 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3410 offsets are relative to one past the delay slot.
3411 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3412 branch destination. Put addend into stub name too.
3413 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3414 adjust by 8 when deciding whether a linker stub is needed. Put
3415 addend into stub name as for above.
3416
3417 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3418 various args and vars.
3419 (elf32_hppa_bfd_final_link_relocate): Here too.
3420 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3421 inner block var to avoid shadowing.
3422
3423 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3424 unsigned.
3425 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3426 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3427 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3428
3429 * libhppa.h: Change practically all unsigned ints to plain ints.
3430 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3431 prototypes.
3432
3433 From Ryan Bradetich <rbradetich@uswest.net>
3434 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3435 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3436 suit above.
3437 From David Huggins-Daines <dhd@linuxcare.com>
3438 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3439 to the new OP_* ones.
3440
3441 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3442 error exit. Bail out earlier on plabel relocs that we aren't
3443 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3444 string, and then don't free our copy.
3445 (elf32_hppa_build_one_stub): Make insn unsigned int.
3446
3447 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3448 available with BL, not BE and BLE.
3449
3450 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3451 code for elf arg relocs.
3452 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3453 argument with elf_link_hash_entry h. Handle undefined weak
3454 symbols. Move $global$ lookup from here...
3455 (elf32_hppa_relocate_section): ...to here. Return correct error
3456 message for non-handled relocs.
3457 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3458 wrong test was -0x3ffff to +0x40000.
3459
3460 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3461 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3462 Handle them as such.
3463 (elf_hppa_relocate_insn): Fix a typo.
3464
3465 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3466 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3467 assemble_17, assemble_21): Delete.
3468 Supply defines for all 64 possible opcodes.
3469 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3470 formats. Handle COMICLR.
3471 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3472 -10, -16, 16, 22.
3473
3474 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3475 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3476 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3477 to suit.
3478 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3479 the local syms - did this code get deleted accidentally? Ignore
3480 undefined and undefweak syms.
3481
3482 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3483 block. Use it instead of elf64_hppa_hash_table (info).
3484 (elf_hppa_final_link_relocate): Use hppa_info instead of
3485 elf64_hppa_hash_table (info).
3486
3487 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3488 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3489 (hppa_rebuild_insn): Mask immediate bits here instead.
3490 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3491
3492 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3493
3494 * section.c (struct sec): Add id field. Tidy comment formatting.
3495 (bfd_make_section_anyway): Set id.
3496 (STD_SECTION): Init id too.
3497 Change CONST to const throughout.
3498 * archures.c (bfd_arch_info): Tidy comment.
3499 (bfd_arch_list): Change a CONST to const.
3500 * libbfd-in.h: Tidy comments and replace CONST with const.
3501 * elf-bfd.h: Likewise.
3502 * libbfd.h: Regenerate.
3503 * bfd-in2.h: Regenerate.
3504 * libcoff.h: Regenerate.
3505
3506 2000-07-07 DJ Delorie <dj@redhat.com>
3507
3508 * archive.c (_bfd_write_archive_contents): Add an informative
3509 comment.
3510
3511 2000-07-06 Kazu Hirata <kazu@hxi.com>
3512
3513 * srec.c: Fix formatting.
3514
3515 2000-06-05 DJ Delorie <dj@redhat.com>
3516
3517 * MAINTAINERS: new
3518
3519 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3520
3521 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3522 value of PC-relative offsets.
3523
3524 2000-07-03 Jim Wilson <wilson@cygnus.com>
3525
3526 * elf64-alpha.c (alpha_elf_size_info): New.
3527 (elf_backend_size_info): Define to alpha_elf_size_info.
3528 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3529
3530 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3531
3532 * elf32-mips.c: Include elf32-target.h again for the traditional
3533 MIPS targets.
3534
3535 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3536
3537 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3538 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3539 (avr_info_to_howto_rela): Likewise.
3540 (elf32_avr_gc_mark_hook): Likewise.
3541 (elf32_avr_gc_sweep_hook): Likewise.
3542 (elf32_avr_relocate_section): Likewise.
3543
3544 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3545
3546 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3547 an external symbol for a non-shared, non-relocatable link.
3548
3549 2000-07-03 Nick Clifton <nickc@redhat.com>
3550
3551 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3552 is an external symbol.
3553 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3554 external symbol.
3555
3556 2000-07-03 Kazu Hirata <kazu@hxi.com>
3557
3558 * reloc16.c: Fix formatting.
3559
3560 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3561
3562 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3563 to add a new target for traditional mips i.e
3564 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3565 * configure.in: Likewise.
3566 * configure: Rebuild.
3567 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3568 bfd_target_vector.
3569 (bfd_elf32_tradlittlemips_vec): Likewise.
3570 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3571 to see that elfNN_bed does not get redefined even if the target file
3572 is included twice for a chip. See elf32-mips.c.
3573
3574 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3575
3576 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3577 (CLEANFILES): Add DEPA.
3578 * Makefile.in: Regenerate.
3579
3580 2000-06-30 DJ Delorie <dj@cygnus.com>
3581
3582 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3583 can't assume the PE header is at 0x80.
3584
3585 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3586
3587 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3588
3589 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3590
3591 * go32stub.h: Update stub.
3592
3593 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3594
3595 * archures.c (bfd_mach_avr5): Define.
3596 * bfd-in2.h (bfd_mach_avr5): Define.
3597 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3598 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3599 (compatible): Update comment. Add missing test.
3600 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3601 for avr2 and avr4. Simplify 8K wrap code.
3602 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3603 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3604
3605 2000-06-26 Kazu Hirata <kazu@hxi.com>
3606
3607 * coff-h8300.c: Fix formatting.
3608 * cpu-h8300.c: Likewise.
3609
3610 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3611
3612 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3613 for local symbols whose names are unknown.
3614
3615 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3616
3617 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3618 find one.
3619 * Makefile.in: Regenerate.
3620 * doc/Makefile.in: Regenerate.
3621
3622 2000-06-20 H.J. Lu <hjl@gnu.org>
3623
3624 * Makefile.am: Rebuild dependency.
3625 * Makefile.in: Rebuild.
3626
3627 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3628
3629 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3630 (elf_backend_copy_indirect_symbol): Map to the new function.
3631
3632 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3633
3634 * archive.c (normalize): Correct pointer comparison when checking
3635 for backslashes.
3636 (bfd_bsd_truncate_arname): Likewise.
3637 (bfd_gnu_truncate_arname): Likewise.
3638
3639 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3640
3641 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3642 sections elf_{text,data}_{section,symbol}.
3643 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3644 (_bfd_mips_elf_hide_symbol): New function.
3645 (elf_backend_hide_symbol): Map to the new function.
3646 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3647 definitions of mips_elf_{text,data}_{section,symbol}.
3648 (mips_elf_local_relocation_p): Try to find the direct symbol
3649 based on new check_forced argument.
3650 (mips_elf_calculate_relocation): Use new version of
3651 mips_elf_local_relocation_p.
3652 (mips_elf_relocate_section): Likewise.
3653 (_bfd_mips_elf_relocate_section): Likewise.
3654 (mips_elf_sort_hash_table): Only assert that have enough GOT
3655 space.
3656 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3657 entry if the relocation based on the new external argument.
3658 (mips_elf_create_dynamic_relocation): Assert that we have a
3659 section contents allocated where we can swap out the dynamic
3660 relocations.
3661 (mips_elf_calculate_relocation): Find the real hash-table entry
3662 correctly by using h->root.root.type. Only create a dynamic
3663 relocation entry if the symbol is defined in a shared library.
3664 Create an external GOT entry for the GOT16 relocation if the
3665 symbol was forced local.
3666 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3667 dynamic index if the symbol was forced local.
3668
3669 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3670
3671 * elf32-mips.c: Fix typos in comments.
3672
3673 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3674
3675 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3676 CORE_VERSION_1.
3677
3678 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3679
3680 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3681 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3682 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3683 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3684 (bfd_elf32_m68hc11_vec): Likewise.
3685 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3686 Supports 68hc11 & 68hc12 at the same time.
3687 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3688 bfd_target_vector.
3689 (bfd_elf32_m68hc11_vec): Likewise.
3690 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3691 * archures.c (bfd_m68hc12_arch): Define and register in global list
3692 (bfd_m68hc11_arch): Likewise.
3693 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3694 BFD_RELOC_M68HC11_3B): Define.
3695 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3696 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3697
3698 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3699
3700 * elf_bfd.h (struct elf_backend_data): Add info argument to
3701 elf_backend_hide_symbol.
3702 (_bfd_elf_link_hash_hide_symbol): Likewise.
3703 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3704 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3705 * elflink.h (elf_link_add_object_symbols): Likewise.
3706 (elf_link_assign_sym_version): Likewise.
3707
3708 2000-06-18 H.J. Lu <hjl@gnu.org>
3709
3710 * coff-i386.c (coff_i386_reloc): Don't return in case of
3711 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3712 Compensate PE relocations when linking with non-PE object
3713 files to generate a non-PE executable.
3714
3715 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3716
3717 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3718 GOT entries if we're doing a static link or -Bsymbolic link.
3719
3720 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3721
3722 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3723 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3724 available.
3725 (elf_link_output_relocs): Likewise.
3726 (elf_reloc_link_order): Likewise.
3727
3728 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3729
3730 * archures.c (enum bfd_architecture): #define constants for
3731 PowerPc and RS6000 machine numbers.
3732 * bfd-in2.h: Regenerate.
3733 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3734 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3735 and RS6000 machine numbers using #defined constants from
3736 archures.c.
3737 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3738 machine numbers using #defined constants from archures.c. Add
3739 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3740 64-bit words in 620 entry.
3741 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3742 RSC, and RS2.
3743 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3744
3745 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3746
3747 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3748 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3749 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3750
3751 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3752
3753 * bfd-in.h (bfd_family_coff): Define.
3754 * bfd-in2.h: Regenerate.
3755 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3756 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3757 instead of bfd_target_coff_flavour.
3758 * cofflink.c (_bfd_coff_final_link): Likewise.
3759 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3760 exclude XCOFF files.
3761 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3762 Likewise.
3763 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3764 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3765 * xcofflink.c (XCOFF_XVECP): Delete.
3766 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3767 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3768 bfd_xcoff_record_link_assignment,
3769 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3770 check for bfd_target_xcoff_flavour.
3771
3772 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3773
3774 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3775 files on AIX 4.3.
3776 (read_hdr): New function.
3777 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3778 of trying to extract individual registers. Set abfd->arch_info
3779 to match the architecture that created the core file.
3780 (rs6000coff_get_section_contents): Delete.
3781 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3782
3783 2000-06-14 H.J. Lu <hjl@gnu.org>
3784
3785 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3786 is NULL.
3787
3788 2000-06-13 H.J. Lu <hjl@gnu.org>
3789
3790 * configure: Regenerate.
3791
3792 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3793
3794 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3795 armpei_little_vec.
3796
3797 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3798
3799 * configure.in (VERSION): Update to show this is the CVS mainline.
3800
3801 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3802
3803 * elf32-d10v.c: Include elf/d10v.h
3804 (enum reloc_type): Delete.
3805 * elf32-d30v.c: Include elf/d30v.h
3806 (enum reloc_type): Delete.
3807
3808 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3809 * Makefile.in: Regenerate.
3810
3811 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3812 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3813 move HOWTOs into elf_howto_table.
3814 (R_386_standard, R_386_ext_offset): Define.
3815 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3816 (elf_i386_reloc_type_lookup): Modify calculation of index into
3817 elf_howto_table since we've removed the padding.
3818 (elf_i386_info_to_howto_rel): Likewise.
3819 (elf_i386_relocate_section): Likewise.
3820
3821 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3822
3823 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3824
3825 2000-06-05 H.J. Lu <hjl@gnu.org>
3826
3827 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3828 an error when seeing an undefined symbol with hidden/internal
3829 attribute. It is handled in *_relocate_section ().
3830
3831 2000-06-05 H.J. Lu <hjl@gnu.org>
3832
3833 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3834 indirect symbol for the ELF_LINK_NON_ELF bit.
3835 (elf_link_output_extsym): Don't output the indirect symbol even
3836 if the ELF_LINK_NON_ELF bit is set.
3837
3838 2000-06-01 J.T. Conklin <jtc@redback.com>
3839
3840 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3841 (i[3456]86-*-netbsdaout*): New target.
3842 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3843 (i[3456]86-*-openbsd*): Likewise.
3844
3845 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3846
3847 * trad-core.c: From hpux-core.c, include <dirent.h> or
3848 <sys/ndir.h> when possible.
3849
3850 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3851
3852 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3853 definitions. We must not assume they are sorted in the file
3854 according to their index numbers.
3855
3856 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3857
3858 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3859 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3860 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3861
3862 2000-05-30 Nick Clifton <nickc@cygnus.com>
3863
3864 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3865 80960CA, 80960MC as valid machine names.
3866
3867 2000-05-30 H.J. Lu <hjl@gnu.org>
3868
3869 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3870 visibility bits if the symbol is undefined. Correctly handle
3871 weak undefined symbols with hidden and internal attributes.
3872
3873 * elflink.h (elf_link_add_object_symbols): Always turn the
3874 symbol into local if it has the hidden or internal attribute.
3875
3876 2000-05-29 Philip Blundell <philb@gnu.org>
3877
3878 * ppcboot.c: Add packed attribute if compiling with GCC.
3879
3880 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3881
3882 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3883
3884 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3885
3886 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3887 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3888 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3889 a few old comments.
3890
3891 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3892
3893 * Makefile.am: Update dependencies with "make dep-am"
3894 * Makefile.in: Regenerate.
3895
3896 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3897 bindtextdomain): Replace defines with those from intl/libgettext.h
3898 to quieten gcc warnings.
3899
3900 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3901
3902 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3903
3904 * archive.c (normalize, bfd_bsd_truncate_arname,
3905 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3906 file names with backslashes.
3907
3908 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3909 before opening it.
3910
3911 * sysdep.h: Include filenames.h.
3912
3913 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3914
3915 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3916
3917 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3918
3919 * elf64-sparc.c (sparc64_elf_relax_section): New.
3920 (sparc64_elf_relocate_section): Optimize tail call into branch always
3921 if possible.
3922 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3923 (elf32_sparc_relax_section): New.
3924
3925 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3926
3927 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3928 Remove unusued variables.
3929 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3930 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3931 previous fix, so that shared libs really don't influence targets
3932 extension mask and memory model.
3933
3934 2000-05-23 H.J. Lu <hjl@gnu.org>
3935
3936 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3937 h->root.other not h->other.
3938 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3939
3940 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3941
3942 2000-05-23 H.J. Lu <hjl@gnu.org>
3943
3944 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3945 undefined symbol with the non-default visibility attributes.
3946 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3947 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3948 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3949 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3950 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3951 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3952 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3953 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3954 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3955 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3956 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3957
3958 2000-05-22 Richard Henderson <rth@cygnus.com>
3959
3960 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3961 PCREL22, PCREL64I. Zero size of special relocs.
3962 (elf64_ia64_reloc_type_lookup): Likewise.
3963 (USE_BRL, oor_brl, oor_ip): New.
3964 (elf64_ia64_relax_section): New.
3965 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3966 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3967 (elf64_ia64_relocate_section): Likewise.
3968 (bfd_elf64_bfd_relax_section): New.
3969 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3970 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3971 * bfd-in2.h, libbfd.h: Regenerate.
3972
3973 2000-05-22 Nick Clifton <nickc@cygnus.com>
3974
3975 * configure.in : Add peigen.lo to MIPS PE targets.
3976 * configure: Regenerate.
3977
3978 2000-05-22 Momchil Velikov <velco@fadata.bg>
3979
3980 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3981 only if it is known for both input and output bfds. Separate
3982 error message strings as in some languages, it may be necessary
3983 to change more than one place in the string to change between
3984 'big' and 'little'.
3985
3986 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3987 endianess checks, call _bfd_generic_verify_endian_match() instead.
3988
3989 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3990
3991 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3992
3993 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3994 endianess before checking bfd flavours.
3995
3996 2000-05-22 H.J. Lu <hjl@gnu.org>
3997
3998 * elflink.h (elf_link_output_extsym): Clear the visibility
3999 field for symbols not defined locally.
4000
4001 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4002
4003 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4004 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4005 (hppa_rebuild_insn): Mask immediate bits here instead.
4006 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4007
4008 2000-05-18 Momchil Velikov <velco@fadata.bg>
4009
4010 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4011 relocs for an executable, ensure that they are virtual addresses.
4012
4013 2000-05-18 Jeffrey A Law (law@cygnus.com)
4014
4015 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4016
4017 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4018 Rick Gorton <gorton@scrugs.lkg.dec.com>
4019
4020 * elflink.h: Add emitrelocations support: when enabled, relocation
4021 information and relocation sections are put into final output
4022 executables. If the emitrelocations flag is set, do the following:
4023 (elf_bfd_final_link): Emit relocation sections.
4024 (elf_link_input_bfd): Compute relocation section contents.
4025 (elf_gc_sections): Don't clean relocation sections.
4026
4027 2000-05-16 Catherine Moore <clm@cygnus.com>
4028
4029 * som.c (som_decode_symclass): Recognize weak symbols.
4030
4031 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4032
4033 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4034 read idata section only from dataoff.
4035 (pe_print_edata): Correctly check for valid eat_member.
4036
4037 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4038
4039 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4040
4041 2000-05-14 Philip Blundell <philb@gnu.org>
4042
4043 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4044
4045 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4046
4047 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4048
4049 * peigen.c (pe_print_idata): Look for .idata section and print
4050 info even if data directory has zero entries. Read idata section
4051 starting from dataoff, and adjust all data offsets to suit. Cast
4052 all bfd_vma vars to unsigned long before passing to fprintf.
4053 * peigen.c (pe_print_edata): Similarly, look for .edata section
4054 and print info even if data directory has zero entries. Cast
4055 all bfd_vma vars to unsigned long before passing to fprintf.
4056
4057 From Szabolcs Szakacsits <szaka@F-Secure.com>
4058 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4059 directory size which may be bogus.
4060 * peigen.c (pe_print_edata): Similarly.
4061
4062 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4063
4064 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4065 section is empty.
4066 (copy_private_bfd_data): Allow for space possibly taken up by elf
4067 headers when calculating segment physical address from lma.
4068
4069 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4070
4071 * versados.c (versados_scan): Init stringlen and pass_2_done.
4072
4073 * trad-core.c (trad_unix_core_file_p): Return
4074 bfd_error_wrong_format rather than bfd_error_file_truncated.
4075
4076 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4077 add_data_entry. DataDirectory virtual address is relative.
4078 (pe_print_idata): Account for relative DataDirectory virtual
4079 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4080 (pe_print_edata): Similarly.
4081
4082 From Szabolcs Szakacsits <szaka@F-Secure.com>
4083 * peigen.c (dir_names): Add Delay Import Directory.
4084 (pe_print_idata): Always search for bfd section containing
4085 idata address rather than looking up section name. Print this
4086 section name rather than .idata.
4087 (pe_print_edata): Similarly. Also print some fields as %08lx.
4088 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4089 Win32Version.
4090
4091 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4092
4093 * xcoff.h: Rename to xcoff-target.h
4094 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4095 * coff-rs6000.c: Ditto.
4096 * coff64-rs6000.c: Ditto.
4097 * coff-pmac.c: Ditto.
4098 * Makefile.in: Regenerate.
4099
4100 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4101
4102 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4103 Change U802TOC64MAGIC to U803XTOCMAGIC.
4104
4105 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4106
4107 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4108 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4109 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4110
4111 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4112
4113 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4114
4115 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
4116
4117 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4118 hidden and internal symbols.
4119 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4120 visibility.
4121 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4122 assign a PLT or GOT entry to symbols with hidden and
4123 internal visibility.
4124
4125 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4126
4127 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4128 the .bss section.
4129 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4130
4131 2000-05-02 H.J. Lu <hjl@gnu.org>
4132
4133 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4134 ELFOSABI_SYSV.
4135
4136 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4137
4138 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4139 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4140 dependencies.
4141 * Makefile.in: Regenerate.
4142
4143 2000-05-01 Jim Wilson <wilson@cygnus.com>
4144
4145 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4146 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4147 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4148 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4149 * Makefile.in: Rebuild.
4150
4151 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4152
4153 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4154 doesn't work very well.
4155
4156 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4157 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4158 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4159 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4160 (elf_hppa_info_to_howto): Likewise.
4161 (elf_hppa_info_to_howto_rel): Likewise.
4162 (elf_hppa_reloc_type_lookup): Likewise.
4163 (elf_hppa_is_local_label_name): Likewise.
4164 (elf_hppa_fake_sections): Likewise.
4165 (elf_hppa_final_write_processing): Likewise.
4166 (elf_hppa_howto_table): Fully initialise all entries.
4167 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4168 (elf_hppa_info_to_howto): Likewise.
4169 (elf_hppa_info_to_howto_rel): Likewise.
4170 (elf_hppa_reloc_type_lookup): Likewise.
4171 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4172 elf_hppa_unmark_useless_dynamic_symbols,
4173 elf_hppa_remark_useless_dynamic_symbols,
4174 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4175 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4176 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4177 elf32-hppa.c mess is cleaned up.
4178 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4179 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4180 r_field then call hppa_field_adjust inline func with variable
4181 r_field arg, instead call hppa_field_adjust with fixed arg.
4182 In case R_PARISC_PCREL22F, don't set r_field.
4183 (elf_hppa_relocate_insn): Change args and return type to unsigned
4184 int. Call re_assemble_* funcs to do the work.
4185
4186 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4187 sign extending.
4188
4189 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4190 extending.
4191 (sign_extend): Mask first before sign extending.
4192 (low_sign_extend): Rewrite without condition expression.
4193 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4194 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4195 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4196 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4197 result as function return value rather than through pointer arg.
4198 Accept unsigned int args, and return unsigned int.
4199 (re_assemble_3): New. Combines function of dis_assemble_3 with
4200 re-assembly of opcode and immediate.
4201 (re_assemble_12): Likewise.
4202 (re_assemble_16): Likewise.
4203 (re_assemble_17): Likewise.
4204 (re_assemble_21): Likewise.
4205 (re_assemble_22): Likewise.
4206 (hppa_field_adjust): Rewrite and document, paying attention to
4207 size of types and signed/unsigned issues.
4208 (get_opcode): Shift before masking.
4209 (FDLW): Rename to FLDW.
4210 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4211 (hppa_rebuild_insn): Change args and return value to unsigned
4212 int. Make use of re_assemble_*. Correct case 11.
4213
4214 * dep-in.sed: Handle ../opcodes/.
4215 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4216 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4217 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4218 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4219 elfarm-nabi.lo dependencies outside of auto-dependency area.
4220 Regenerate dependencies.
4221 * Makefile.in: Regenerate.
4222
4223 * configure.in (TRAD_HEADER): Test non-null before
4224 AC_DEFINE_UNQUOTED.
4225 * configure: Regenerate.
4226
4227 * reloc.c: Fix mis-spelling in comment.
4228
4229 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4230
4231 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4232 * vms.c (vms_openr_next_archived_file): Return NULL.
4233
4234 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4235
4236 * coffcode.h Copy changes mistakenly done to libcoff.h in
4237 4/24/2000 patch.
4238
4239 2000-04-29 Andreas Jaeger <aj@suse.de>
4240
4241 * libbfd-in.h: Correctly check GCC version.
4242 * bfd-in.h: Likewise.
4243 * libhppa.h: Likewise.
4244 * libbfd.h: Regenerate.
4245 * bfd-in2.h: Regenerate.
4246
4247 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4248
4249 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4250 coffdu-rs6000.{lo,c}.
4251 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4252 on xcoff.h
4253 * Makefile.in: Regenerate.
4254 * xcoff.h: New file.
4255 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4256 * coff-rs6000.c: Move all declarations and defines that are
4257 common to the xcoff backends into xcoff.h
4258 * coff64-rs6000.c: Ditto,
4259
4260 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4261
4262 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4263 _bfd_coff_force_symnames in strings and
4264 _bfd_coff_debug_string_prefix_length to their default values.
4265 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4266
4267 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4268
4269 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4270 _bfd_coff_force_symnames in strings and
4271 _bfd_coff_debug_string_prefix_length to their default values.
4272
4273 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4274
4275 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4276 Check local_got_refcounts before dereferencing.
4277
4278 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4279 before deciding we don't need R_PPC_PLT32 relocation.
4280 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4281 dereferencing.
4282
4283 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4284
4285 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4286 .plt entries.
4287 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4288 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4289 (elf_i386_relocate_section): Allow for .plt to go missing.
4290 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4291 can use a relative reloc for got as elf_i386_relocate_section.
4292 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4293
4294 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4295
4296 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4297
4298 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4299
4300 * Makefile.am (coff64-rs6000.lo): New rule.
4301 * Makefile.in: Regenerate.
4302 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4303 xcoff_is_local_label_name, xcoff_rtype2howto,
4304 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4305 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4306 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4307 (NO_COFF_SYMBOLS): Define.
4308 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4309 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4310 internally.
4311 (MINUS_ONE): New macro.
4312 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4313 relocation.
4314 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4315 coff_SWAP_aux_out): Map to the new functions.
4316 * coff64-rs6000.c: New file.
4317 * libcoff.h (bfd_coff_backend_data): Add new fields
4318 _bfd_coff_force_symnames_in_strings and
4319 _bfd_coff_debug_string_prefix_length.
4320 (bfd_coff_force_symnames_in_strings,
4321 bfd_coff_debug_string_prefix_length): New macros for above fields.
4322 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4323 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4324 of using coff_swap_sym_in directly.
4325 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4326 (coff_set_flags) Set magic for XCOFF64.
4327 (coff_compute_section_file_positions): Add symbol name length to
4328 string section length if bfd_coff_debug_string_prefix_length is
4329 true.
4330 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4331 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4332 using coff_swap_lineno_in directly.
4333 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4334 and _bfd_coff_debug_string_prefix_length fields.
4335 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4336 symbol names into strings table when
4337 bfd_coff_force_symnames_in_strings is true.
4338 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4339 SET_RELOC_VADDR): New macros.
4340 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4341 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4342 code.
4343 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4344 changes within RS6000COFF_C specific code.
4345 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4346 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4347 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4348 Extend existing hack on target name.
4349 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4350 target name.
4351 * coff-tic54x.c (ticof): Keep up to date with new fields
4352 in bfd_coff_backend_data.
4353 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4354 targ_selvecs to include rs6000coff64_vec for rs6000.
4355 * configure.in: Add rs6000coff64_vec case.
4356 * cpu-powerpc.c: New bfd_arch_info_type.
4357
4358 2000-04-24 Jeffrey A Law (law@cygnus.com)
4359
4360 * config.bfd: Only disable elf32-hppa vectors, not all of the
4361 BSD and OSF configuration support. Provide (disabled) clauses
4362 for PA64 support.
4363 * configure.in: Add clause for PA64 support.
4364 * configure: Rebuilt.
4365
4366 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4367 (bfd_elf64_hppa_vec): Declare.
4368
4369 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4370 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4371 (elf64-hppa.lo): Add dependencies.
4372 * Makefile.in: Rebuilt.
4373
4374 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4375
4376 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4377
4378 * libhppa.h (dis_assemble_16): New function.
4379 (pa_arch): Added pa20w element.
4380
4381 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4382
4383 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4384 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4385 bfd_elf64_slurp_reloc_table.
4386
4387 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4388 definitions to get external names.
4389 (elf_write_relocs): Renamed from write_relocs and make global.
4390 (elf_slurp_reloc_table): Make global.
4391 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4392
4393 * archive.c (hpux_uid_gid_encode): New function.
4394 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4395 defined and the ID is greater than 99999.
4396 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4397 special uid/gid fields into 32 bit values.
4398
4399 2000-04-21 Matthew Green <mrg@cygnus.com>
4400
4401 * config.bfd: Add NetBSD/sparc64 support.
4402
4403 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4404 David Mosberger <davidm@hpl.hp.com>
4405 Timothy Wall <twall@cygnus.com>
4406 Jim Wilson <wilson@cygnus.com>
4407
4408 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4409 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4410 (BFD64_BACKENDS): Add elf64-ia64.lo.
4411 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4412 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4413 * Makefile.in: Rebuild.
4414 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4415 (bfd_ia64_arch): Declare.
4416 (bfd_archures_list): Add bfd_ia64_arch.
4417 * bfd-in2.h: Rebuild.
4418 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4419 * configure: Rebuild.
4420 * configure.host: (ia64-*-linux*): New host.
4421 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4422 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4423 * elf.c (prep_headers): Add bfd_arch_ia64.
4424 * libbfd.h: Rebuild.
4425 * reloc.c: Add IA-64 relocations.
4426 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4427 Declare.
4428 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4429 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4430
4431 2000-04-21 Richard Henderson <rth@cygnus.com>
4432
4433 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4434 contents when performing a partial link.
4435 (bfd_elf_d30v_reloc_21): Likewise.
4436
4437 2000-04-20 H.J. Lu <hjl@gnu.org>
4438
4439 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4440 patch to symbols defined by a shared object.
4441 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4442
4443 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4444
4445 K&R compiler fixes.
4446 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4447 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4448
4449 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4450
4451 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4452 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4453 (coff-ia64.lo): Add dependency.
4454 * Makefile.in: Regenerate.
4455 * coff-ia64.c: New file.
4456 * efi-app-ia32.c: Ditto.
4457 * efi-app-ia64.c: Ditto.
4458 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4459 (coff_set_flags): Ditto.
4460 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4461 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4462 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4463 * configure: Regenerate.
4464 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4465 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4466 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4467 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4468 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4469 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4470 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4471 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4472 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4473 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4474 (GET_PDATA_ENTRY): Ditto.
4475 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4476 data_start. Use above macros to read fields that are 64 bit wide for
4477 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4478 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4479 FileAlignment and SectionAlignment to minimum alignment if they
4480 are zero.
4481 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4482 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4483 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4484 Use above macros to write fields that are 64 bit wide for
4485 COFF_WITH_PEP64.
4486 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4487 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4488 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4489 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4490 begin address, end address, and unwind info address only. Use
4491 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4492 print addresses.
4493 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4494 HIGH3ADJ relocation names.
4495 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4496 * targets.c: Declare bfd_efi_app_ia32_vec and
4497 bfd_efi_app_ia64_vec.
4498 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4499 bfd_efi_app_ia64_vec.
4500
4501 2000-04-17 Timothy Wall <twall@cygnus.com>
4502
4503 * bfd-in2.h: Add prototypes for tic54x load page access.
4504 * bfd-in.h: Regenerate.
4505 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4506 in customized _set_arch_mach function.
4507 * coffcode.h (coff_set_alignment_hook): Set section load page if
4508 the appropriate macro is defined.
4509 (write_object_contents): Read section load page.
4510
4511 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4512
4513 * elf32-hppa.h: Update copyright date.
4514
4515 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4516 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4517
4518 * elf32-d30v.c (MAX32): Don't use LL suffix.
4519 (MIN32): Define in terms of MAX32.
4520 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4521
4522 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4523 expression.
4524
4525 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4526
4527 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4528
4529 * dep-in.sed: Match space before file name, not after.
4530 * Makefile.am: Regenerate dependencies.
4531 * Makefile.in: Regenerate.
4532
4533 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4534 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4535 extend without an if statement.
4536
4537 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4538
4539 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4540 signed quantites.
4541 * elf32-mips.c (gprel16_with_gp): Likewise.
4542 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4543 here using -0x40000, not (int)0xfffc0000.
4544 (elf32_hppa_size_of_stub): Likewise.
4545
4546 2000-04-11 Timothy Wall <twall@cygnus.com>
4547
4548 * coff-tic54x.c: Now builds with all targets.
4549 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4550 * Makefile.in: Regenerate.
4551 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4552 unitialized variable.
4553
4554 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4555
4556 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4557 --enable-build-warnings option.
4558 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4559 * Makefile.in, configure: Re-generate.
4560
4561 2000-04-07 Nick Clifton <nickc@cygnus.com>
4562
4563 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4564 BFD_RELOC_THUMB_PCREL_BLX.
4565
4566 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4567 R_ARM_XPC25 and R_ARM_THM_PC22.
4568
4569 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4570 R_ARM_XPC25 and R_ARM_THM_XPC22.
4571 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4572 R_ARM_[XPC25|THM_XPC22].
4573
4574 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4575 elf/arm-oabi.h to elf/arm.h
4576
4577 * Makefile.am: Fix dependency for elfarm-oabi.c
4578 * Makefile.in: Regenerate.
4579
4580 * bfd-in2.h: Regenerate.
4581 * libbfd.h: Regenerate.
4582
4583 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4584
4585 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4586 and restore it on failure. Release newly allocated tdata on
4587 failure.
4588
4589 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4590
4591 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4592 (decode_line_info): Set it. Report error if unit->line_offset is
4593 equal to or larger than it.
4594
4595 2000-04-07 Timothy Wall <twall@cygnus.com>
4596
4597 * targets.c: Added vecs for tic54x.
4598 * reloc.c: Added relocs for tic54x.
4599 * libbfd.h: Regenerated.
4600 * configure: Add TI COFF vecs for tic54x.
4601 * configure.in: Ditto.
4602 * config.bfd (targ_cpu): Recognize new tic54x target.
4603 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4604 * bfd-in2.h: Add tic54x target and relocations.
4605 * Makefile.am, Makefile.in: Add tic54x target.
4606 * archures.c (bfd_archures_list): Add tic54x target.
4607 * coff-tic54x.c: New.
4608 * cpu-tic54x.c: New.
4609
4610 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4611
4612 * elfcore.h (elf_core_file_p): call backend_object_p which
4613 thereby gets an opportunity to update the arch/machine type.
4614
4615 2000-04-06 Timothy Wall <twall@cygnus.com>
4616
4617 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4618 class. Handle SEC_CLINK and SEC_BLOCK flags.
4619 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4620 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4621
4622 2000-04-06 Nick Clifton <nickc@cygnus.com>
4623
4624 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4625 EF_INTERWORK if this is an unknown EABI.
4626 (elf32_arm_merge_private_bfd_data): Check EABI version
4627 numbers. Only check EF_xxx flags if the EABI version number
4628 is unknown.
4629 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4630 if the EABI version number is unknown.
4631 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4632 if the EABI version number is unknown.
4633
4634 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4635
4636 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4637 BFD_RELOC_SH_LOOP_END.
4638 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4639 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4640 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4641 (sh_elf_reloc_loop): New function.
4642 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4643 any more.
4644 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4645 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4646 * bfd-in2.h, libbfd.h: Regenerate.
4647
4648 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4649
4650 * po/bfd.pot: Regenerate.
4651
4652 * Makefile.am: Remove extraneous mkdep comment.
4653 (MKDEP): Use gcc -MM rather than mkdep.
4654 (DEP): Quote when passing vars to sub-make. Add warning
4655 message to end.
4656 (DEP1): Rewrite for "gcc -MM".
4657 (CLEANFILES): Add DEP2.
4658 Update dependencies.
4659 * Makefile.in: Regenerate.
4660
4661 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4662
4663 * configure.in: Added corefile support for AIX 4.3. In particular,
4664 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4665 compiling rs6000-core.c.
4666 * configure: Regenerated.
4667
4668 2000-04-03 H.J. Lu <hjl@gnu.org>
4669
4670 * cache.c (bfd_open_file): Unlink the output file only if
4671 it has non-zero size.
4672
4673 2000-04-01 Ken Block USG <block@zk3.dec.com>
4674
4675 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4676 relative relocations for non-loaded sections in shared objects.
4677 (elf64_alpha_check_relocs): Similarly.
4678
4679 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4680
4681 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4682 BFD_RELOC_16 to switch for extended relocs.
4683 (MY_swap_ext_reloc_in): New.
4684 (MY_swap_ext_reloc_out): New.
4685 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4686 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4687 (NAME(aout,squirt_out_relocs)): Similarly use
4688 MY_swap_ext_reloc_out.
4689 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4690
4691 2000-04-03 Kazu Hirata <kazu@hxi.com>
4692
4693 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4694 the R_PCRWORD_B case.
4695
4696 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4697
4698 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4699 on some targets.
4700 * ihex.c : Ditto.
4701
4702 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4703
4704 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4705 HOWTO references to bfd_elf_generic_reloc, that have
4706 partial_inplace == true, now use the new function. The function
4707 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4708 extends its fixes to the R_M32R_{16,24,32} relocs.
4709 The new logic in m32r_elf_lo16_reloc() has been removed, and
4710 it instead calls the new routine to obtain that functionality.
4711
4712 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4713
4714 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4715 elf32_avr_check_relocs, avr_final_link_relocate,
4716 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4717 elf32_avr_object_p): Add prototypes.
4718 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4719 (bfd_elf_avr_final_write_processing): Make static.
4720
4721 2000-03-27 Denis Chertykov <denisc@overta.ru>
4722
4723 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4724 * archures.c (bfd_architecture): Add AVR architecture.
4725 (bfd_archures_list): Add reference to AVR architecture info.
4726 * elf.c (prep_headers): Handle bfd_arch_avr.
4727 * reloc.c: Add various AVR relocation enums.
4728 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4729 list.
4730 * Makefile.am: Add support for AVR elf.
4731 * configure.in: Likewise.
4732 * config.bfd: Likewise.
4733 * Makefile.in: Regenerate.
4734 * configure: This too.
4735 * bfd-in2.h: And this.
4736 * libbfd.h: And this.
4737
4738 2000-03-24 H.J. Lu <hjl@gnu.org>
4739
4740 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4741 (elf64_alpha_find_reloc_at_ofs): Likewise.
4742
4743 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4744
4745 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4746 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4747 allowable range used to be -2**(n-1) to 2**n-1.
4748 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4749 "boolean overflow" with "bfd_reloc_status_type flag".
4750
4751 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4752
4753 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4754
4755 2000-03-14 Kazu Hirata <kazu@hxi.com>
4756
4757 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4758 of shrinks properly, including the last reloc.
4759
4760 2000-03-13 Kazu Hirata <kazu@hxi.com>
4761
4762 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4763 check for R_MOVL2.
4764
4765 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4766
4767 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4768 a format mismatch rather than an "error" from bfd_read such as
4769 bfd_error_file_truncated.
4770
4771 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4772
4773 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4774 sign-extension and big-endian compensation for
4775 R_MIPS_64 even in ld -r.
4776
4777 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4778
4779 * elf32-mips.c (mips_elf_next_relocation): Rename from
4780 mips_elf_next_lo16_relocation, and generalize to look
4781 for any relocation type.
4782 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4783 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4784 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4785 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4786 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4787 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4788 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4789 (mips_rtype_to_howto): Likewise.
4790 (mips_elf_calculate_relocation): Handle new relocs.
4791 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4792 are paired. The addend for R_MIPS_GNU_REL16_S2
4793 is shifted right two bits.
4794
4795 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4796
4797 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4798 comment, and ensure it doesn't happen again.
4799 (bfd_install_relocation): Same here.
4800 (_bfd_relocate_contents): Don't bother assigning unused signmask
4801 shift result. Fix typos in comments.
4802 Remove trailing whitespace throughout file.
4803
4804 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4805
4806 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4807 * bfd-in2.h: Rebuild.
4808
4809 2000-03-06 Nick Clifton <nickc@cygnus.com>
4810
4811 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4812 sym_ptr_ptr fields.
4813 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4814 (SIZEOF_ILF_STRINGS): Redefine.
4815 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4816 relative reloc, as opposed to a section relative reloc.
4817 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4818 not C_LABEL.
4819 Add length of symbol's prefix to string pointer.
4820 Store a pointer to the symbol in the symbol pointer table.
4821 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4822 Initialise the symbol pointer table.
4823 Store the hint in the Hint/Name table.
4824 Make the jump reloc be symbol realtive, not section relative.
4825 Create an import symbol for imported code.
4826
4827 2000-03-06 Catherine Moore <clm@cygnus.com>
4828
4829 * elf.c (swap_out_syms): Check for null type_ptr.
4830
4831 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4832
4833 * aout-target.h (MY(write_object_contents)): Remove unused
4834 and unusable "#if CHOOSE_RELOC_SIZE".
4835 * pc532-mach.c (MY(write_object_contents)): Ditto.
4836 * netbsd.h (MY(write_object_contents)): Ditto.
4837 * hp300hpux.c (MY(write_object_contents)): Ditto.
4838 * freebsd.h (MY(write_object_contents)): Ditto.
4839 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4840
4841 2000-02-29 H.J. Lu <hjl@gnu.org>
4842
4843 * peicode.h (jtab): Make it static.
4844
4845 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4846 defined and COFF_IMAGE_WITH_PE is not defined.
4847 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4848 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4849
4850 2000-03-01 Nick Clifton <nickc@cygnus.com>
4851
4852 * coff-arm.c (bfd_arm_process_before_allocation): Make
4853 'symndx' signed to prevent compile time warning.
4854
4855 * coff-mcore.c: Remove unused prototype for pe_object_p.
4856
4857 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4858 functions that are not used when COFF_IMAGE_WITH_PE is
4859 defined.
4860 (struct sh_opcode): Change type of 'flags' field to unsigned
4861 long so that it can hold the USESAS flag.
4862
4863 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4864
4865 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4866 'sym_sec'.
4867
4868 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4869 parameters.
4870 Remove unusued variables and code.
4871 (elf_backend_add_symbol_hook): Fix prototype.
4872
4873 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4874 'srelgot'.
4875
4876 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4877 'oldinst'.
4878
4879 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4880 parameters.
4881 Remove unusued variables and code.
4882 (elf_backend_add_symbol_hook): Fix prototype.
4883
4884 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4885
4886 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4887 to unused function parameter.
4888
4889 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4890 parameters.
4891 Use EMPTY_HOWTO to initialise empty howto slots.
4892 Remove unused variables.
4893
4894 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4895
4896 2000-03-01 H.J. Lu <hjl@gnu.org>
4897
4898 * aoutx.h (aout_link_input_section_std): Pass "true" to
4899 the undefined_symbol callback.
4900 (aout_link_input_section_ext): Likewise.
4901 * bout.c (get_value): Likewise.
4902 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4903 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4904 Likewise.
4905 (alpha_relocate_section): Likewise.
4906 * coff-arm.c (coff_arm_relocate_section): Likewise.
4907 * coff-i960.c (coff_i960_relocate_section): Likewise.
4908 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4909 * coff-mips.c (mips_relocate_section): Likewise.
4910 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4911 * coff-sh.c (sh_relocate_section): Likewise.
4912 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4913 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4914 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4915 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4916 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4917 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4918 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4919 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4920 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4921 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4922 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4923 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4924 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4925 * elflink.h (elf_link_output_extsym): Likewise.
4926 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4927 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4928 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4929
4930 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4931 undefined_symbol callback when building shared library with
4932 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4933 "true".
4934 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4935 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4936 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4937 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4938 (elf32_mips_get_relocated_section_content): Likewise.
4939 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4940 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4941 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4942 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4943
4944 2000-02-28 Nick Clifton <nickc@cygnus.com>
4945
4946 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4947 * Makefile.in: Regenerate.
4948
4949 * configure.in: Add support for mips and sh pe vectors.
4950 * configure: regenerate.
4951
4952 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4953 targets.
4954
4955 * targets.c: Add mips and sh pe vectors.
4956
4957 * libpei.h (coff_final_link_postscript): Only define if not
4958 already defined.
4959
4960 * coffcode.h: Add support for WinCE magic numbers.
4961
4962 * peigen.c (pe_print_reloc): Update comment and rearrange
4963 appending of newline character.
4964
4965 * peicode.h: Add support for Image Library Format.
4966 (pe_ILF_vars): Structure containing data used by ILF code.
4967 (pe_ILF_make_a_section): New function. Create a section based
4968 on ILF data.
4969 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4970 ILF data.
4971 (pe_ILF_make_a_symbol): New function. Create a symbol based
4972 on ILF data.
4973 (pe_ILF_save_relocs): New function. Store the relocs created
4974 by pe_ILF_make_a_reloc in a section.
4975 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4976 an ILF object.
4977 (pe_ILF_object_p): New function. Return a bfd_target pointer
4978 for an ILF object.
4979 (pe_bfd_object_p): If an ILF object is detected call
4980 pe_ILF_object_p on it.
4981
4982 * coff-arm.c: Add support for WinCE relocs which are different
4983 from normal ARM COFF relocs.
4984 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4985
4986 * coff-sh.c: Add support for sh-pe target.
4987 * pe-sh.c: New file. Support code for sh-pe target.
4988 * pei-sh.c: New file. Support code for sh-pe target.
4989
4990 * pe-mips.c: New file. Support code for mips-pe target.
4991 * pei-mips.c: New file. Support code for mips-pe target.
4992
4993 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4994
4995 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4996 architecture if the object causing the bump is dynamic.
4997 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4998 and also don't it for memory ordering.
4999 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5000
5001 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5002
5003 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5004 calling bfd_get_section_size_before_reloc.
5005 (decode_line_info): Likewise.
5006 (_bfd_dwarf2_find_nearest_line): Likewise.
5007
5008 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5009
5010 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5011 name of the libtool directory.
5012 * Makefile.in: Rebuild.
5013
5014 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5015
5016 * som.c (SOM_HOWTO): Define.
5017 (som_hppa_howto_table): Use it.
5018
5019 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5020
5021 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5022
5023 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5024
5025 2000-02-24 Catherine Moore <clm@cygnus.com>
5026
5027 * som.c (som_misc_symbol_info): Add field
5028 secondary_def.
5029 (som_bfd_derive_misc_symbol_info): Initialize
5030 secondary_def.
5031 (som_build_and_write_symbol_table): Keep track
5032 of secondary_def field.
5033 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5034 if secondary_def field is set.
5035 (som_bfd_ar_write_symbol_stuff): Initialize
5036 secondary_def.
5037
5038 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5039
5040 * dwarf2.c (read_address): Read 16-bits addresses.
5041 (parse_comp_unit): Accept addr_size == 2.
5042
5043 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5044
5045 * bfd-in.h: Update copyright date.
5046
5047 2000-02-23 Linas Vepstas <linas@linas.org>
5048
5049 * cpu-i370.c: New file.
5050 * elf32-i370.c: New file.
5051 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5052 (bfd_i370_arch): New.
5053 (bfd_archures_list): Add bfd_i370_arch.
5054 * elf.c (prep_headers): Add bfd_arch_i370.
5055 * Makefile.am: Add support for IBM 370 elf.
5056 * config.bfd: Likewise.
5057 * configure.in: Likewise.
5058 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5059 * reloc.c (bfd_reloc_code_type): Likewise.
5060 * targets.c: Likewise.
5061
5062 * Makefile.in: Regenerate.
5063 * configure: Regenerate.
5064 * bfd-in2.h: Regenerate.
5065
5066 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5067
5068 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5069 invalid relocation types, and change them to R_386_NONE.
5070
5071 2000-02-22 H.J. Lu <hjl@gnu.org>
5072
5073 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5074 not defined, don't add a second ELF_VER_CHR.
5075
5076 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5077 symbols converted to local symbols even when stripping all
5078 symbols.
5079 (elf_link_output_extsym): Process global symbols converted to
5080 local symbols even if they are being stripped.
5081
5082 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5083
5084 * archures.c (bfd_octets_per_byte): Return unsigned int.
5085 (bfd_arch_mach_octets_per_byte): Ditto.
5086 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5087 comparison warning.
5088 * section.c (bfd_get_section_size_before_reloc): Quell signed
5089 vs. unsigned comparison warning.
5090 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5091 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5092 change. What was I thinking?
5093 * bfd-in2.h: Regenerate.
5094
5095 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5096 (elf_gc_sections): Same here.
5097 (elf_gc_common_finalize_got_offsets): And here.
5098
5099 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5100
5101 ELF HPPA doesn't work at present; remove it until it does.
5102 * config.bfd: Comment out setting targ_defvec to
5103 bfd_elf32_hppa_vec.
5104 * Makefile.am: Rebuild dependencies.
5105 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5106 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5107 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5108 * Makefile.in: Rebuild.
5109 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5110
5111 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5112
5113 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5114 is no bfd_free(). Revert bfd_free part of previous change.
5115
5116 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5117
5118 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5119 arrays.
5120 (coff_compute_section_file_positions): Use bfd_free to pair
5121 bfd_malloc.
5122 (coff_write_object_contents): Likewise.
5123
5124 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5125 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5126
5127 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5128
5129 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5130 (xcoff_ar_file_hdr_big): New structure.
5131 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5132 (xcoff_ar_hdr_big): New structure.
5133 (SIZEOF_AR_HDR_BIG): New macro.
5134 (xcoff_big_format_p): New macro.
5135 (xcoff_ardata_big): New macro.
5136 (arch_xhdr_big): New macro.
5137 (xcoff_slurp_armap): Handle large archives.
5138 (xcoff_archive_p): Detect large archives.
5139 (xcoff_read_ar_hdr): Handle large archives.
5140 (xcoff_openr_next_archived_file): Handle large archives.
5141 (xcoff_generic_stat_arch_elt): Handle large archives.
5142 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5143 (xcoff_write_armap_big): New function.
5144 (xcoff_write_armap): New function, dispatch to _old or _big.
5145 (xcoff_write_archive_contents_old): Rename from
5146 xcoff_write_archive_contents.
5147 (xcoff_write_archive_contents_big): New function.
5148 (xcoff_write_archive_contents): New function, dispatch to _old or
5149 _big.
5150
5151 2000-02-18 Richard Henderson <rth@cygnus.com>
5152
5153 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5154 and hide_symbol members.
5155 (elf_link_hash_copy_indirect): Remove.
5156 (elf_link_hash_hide_symbol): Remove.
5157 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5158 and elf_backend_hide_symbol.
5159 (_bfd_elf_link_hash_copy_indirect): Declare.
5160 (_bfd_elf_link_hash_hide_symbol): Declare.
5161 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5162 (_bfd_elf_link_hash_hide_symbol): Likewise.
5163 (_bfd_elf_link_hash_table_init): Don't init killed members.
5164 * elflink.h (elf_link_add_object_symbols): Use the bed function
5165 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5166 (elf_link_assign_sym_version): Likewise.
5167 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5168 (elf_backend_hide_symbol): Likewise.
5169 (elfNN_bed): Update for new members.
5170
5171 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5172
5173 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5174 STACK_END_ADDR): Define for new core file format.
5175 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5176 for handling the vagaries of the various core file structures used
5177 by AIX over the years.
5178 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5179 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5180 core_dumpx structure.
5181
5182 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5183
5184 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5185 (bfd_mach_sh3_dsp): Likewise.
5186 (bfd_mach_sh4): Reinstate.
5187 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5188 * bfd-in2.h: Regenerate.
5189 * coff-sh.c (struct sh_opcode): flags is no longer short.
5190 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5191 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5192 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5193 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5194 (sh_opcodes): No longer const.
5195 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5196 (sh_insn_uses_reg): Check for USESAS and USESR8.
5197 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5198 (_bfd_sh_align_load_span): Return early for SH4.
5199 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5200 Take into account that field b of a parallel processing insn
5201 could be mistaken for a separate insn.
5202 * cpu-sh.c (arch_info_struct): New array elements for
5203 sh2, sh-dsp and sh3-dsp.
5204 Reinstate element for sh4.
5205 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5206 (SH4_NEXT): Reinstate.
5207 (SH3_NEXT, SH3E_NEXT): Adjust.
5208 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5209 * elf32-sh.c (sh_elf_set_private_flags): New function.
5210 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5211 (sh_elf_merge_private_data): New function.
5212 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5213 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5214 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5215 sh_elf_merge_private_data.
5216
5217 2000-02-13 Richard Henderson <rth@cygnus.com>
5218
5219 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5220 hide_symbol members.
5221 (elf_link_hash_copy_indirect): New.
5222 (elf_link_hash_hide_symbol): New.
5223 * elflink.h (elf_link_add_object_symbols): Break out copy from
5224 indirect new new symbol to elf.c.
5225 (elf_link_assign_sym_version): Break out privatization of
5226 non-exported symbol to elf.c.
5227 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5228 (_bfd_elf_link_hash_hide_symbol): New.
5229 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5230
5231 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5232
5233 * section.c (_bfd_strip_section_from_output): Add info parameter.
5234 If it passed as non-NULL, use it to check whether any input BFD
5235 has an input section which uses this output section. Change all
5236 callers.
5237 * bfd-in2.h: Rebuild.
5238
5239 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5240 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5241 1999-11-29.
5242 * bfd-in2.h: Rebuild.
5243
5244 2000-02-10 Timothy Wall <twall@cygnus.com>
5245
5246 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5247 allow final modifications of swapped-in symbol.
5248 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5249 * coffcode.h (coff_write_relocs): Use macro
5250 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5251 symbol index should be set to -1.
5252
5253 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5254
5255 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5256 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5257 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5258 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5259 sh_insns_uses_or_sets_freg): New functions.
5260 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5261 * (sh_insns_conflict): Use new functions and new macros to
5262 detect conflicts when two instructions both set same integer registers,
5263 both set same fp register, and both set special register.
5264
5265 2000-02-09 Timothy Wall <twall@cygnus.com>
5266
5267 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5268 swapping in sections, so that the swapping routines have access to
5269 the arch/mach info.
5270
5271 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5272
5273 * coff-go32.c: Update comment. Update copyright.
5274
5275 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5276
5277 * syms.c (bfd_decode_symclass)
5278 Two new class characters were added - 'V' and 'v'. The
5279 meaning of 'W' is now restricted to just weak non-object
5280 symbols. This allows differentiation between, for example,
5281 weak functions vs weak objects. nm for example now dumps:
5282 'W' = weak global
5283 'w' = weak unresolved
5284 'V' = weak global object
5285 'v' = weak unresolved object
5286
5287 (bfd_is_undefined_symclass): New function. Return true if the
5288 given symbol class represents and undefined/unresolved symbol.
5289
5290 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5291 unresolved symbols.
5292
5293 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5294
5295 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5296 STT_ARM_16BIT flag set, but it is not attached to a data object
5297 return STT_ARM_16BIT so that it will be treated as code by the
5298 disassembler.
5299
5300 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5301
5302 * coff-i386.c (i3coff_object_p): Remove prototype.
5303 Update copyright.
5304
5305 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5306 to name. Update copyright.
5307
5308 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5309 assignment to avoid warning. Update copyright.
5310
5311 2000-01-24 Robert Lipe (robertl@sco.com)
5312
5313 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5314 instead of using GNU C extension.
5315
5316 2000-01-21 Nick Clifton <nickc@cygnus.com>
5317
5318 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5319 amount from a bfd_in_memory structure.
5320 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5321 structure.
5322
5323 2000-01-14 Nick Clifton <nickc@cygnus.com>
5324
5325 * linker.c (default_indirect_link_order): oops - fix incorrectly
5326 applied patch from Tim Wall.
5327
5328 2000-01-13 Timothy Wall (twall@tiac.net>
5329
5330 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5331 = scnhsz, filhsz, relsz, aoutsz, etc)
5332
5333 * coffswap.h: Ditto.
5334
5335 2000-01-13 Nick Clifton <nickc@cygnus.com>
5336
5337 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5338 interwork thumb to arm stub.
5339
5340 2000-01-13 Timothy Wall (twall@tiac.net>
5341
5342 * archures.c (bfd_octets_per_byte): New function: Return
5343 target byte size.
5344 (bfd_arch_mach_octets_per_byte): New function: Return target
5345 byte size.
5346
5347 * section.c: Distinguish between octets and bytes for usage of
5348 _cooked_size, _raw_size, and output_offset. Clarify
5349 description of bfd_set_section_contents.
5350
5351 * bfd-in2.h: Regenerate.
5352
5353 * coffgen.c: Indicate that the offset parameter is in bytes, not
5354 octets.
5355
5356 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5357 where appropriate to get the octet offset when calling
5358 bfd_set_section_contents.
5359 (bfd_coff_reloc_link_order): Ditto.
5360
5361 * linker.c (bfd_generic_reloc_link_order): Ditto.
5362 (_bfd_default_link_order): Ditto.
5363
5364 * reloc.c (bfd_perform_relocation): Distinguish between octets
5365 and bytes. Use octets when indexing into octet data; use bytes
5366 when calculating target addresses.
5367 (bfd_install_relocation): Ditto.
5368
5369 * srec.c (srec_write_section): Ditto.
5370
5371 2000-01-13 Nick Clifton <nickc@cygnus.com>
5372
5373 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5374 3 to 2. This allows 4 byte sized sections, which is necessary for
5375 dlltool to build functioning DLLs.
5376
5377 2000-01-10 Philip Blundell <pb@futuretv.com>
5378
5379 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5380 (arm*-*-conix*): New target.
5381
5382 2000-01-10 Egor Duda <deo@logos-m.ru>
5383
5384 * config.bfd: Include elf32_i386 vector to target list for cygwin
5385 and mingw.
5386
5387 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5388 * configure.in: Test for structure win32_pstatus_t in
5389 <sys/procfs.h>
5390 * configure: Regenerate.
5391
5392 * elf.c (elfcore_grok_win32pstatus): New function: process
5393 win32_pstatus_t notes in elf core file.
5394 (elfcore_grok_note): Detect win32_pstatus notes.
5395
5396 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5397
5398 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5399 visibility.
5400 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5401 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5402
5403 For older changes see ChangeLog-9899
5404 \f
5405 Local Variables:
5406 mode: change-log
5407 left-margin: 8
5408 fill-column: 74
5409 version-control: never
5410 End:
This page took 0.14897 seconds and 5 git commands to generate.