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