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