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