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