Fix ia64-linux binutils readelf -s testsuite failure.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a78f18dc
JW
12001-07-05 Jim Wilson <wilson@redhat.com>
2
3 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
4
0515494a
NC
52001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
6
7 * peicode.h (coff_swap_scnhdr_in): For sections containing
8 uninitialised data, only set their size to s_paddr if this does
9 not reset their size to zero. MS's latest compilers will set
10 s_paddr to zero.
11
5e7079af
L
122001-07-04 H.J. Lu <hjl@gnu.org>
13
14 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
15 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
16 bfd_mach_mips5000.
17
440c4607
NC
182001-07-03 Mark Elbrecht <snowball3@softhome.net>
19
f47e5071
NC
20 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
21
440c4607
NC
22 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
23 sections being discarded.
24
936e320b
AM
252001-06-30 Alan Modra <amodra@bigpond.net.au>
26
27 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
28 instead of _bfd_elfcore_section_from_phdr.
29 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
30 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
31 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
32 (elfcore_grok_prstatus): Likewise.
33 (elfcore_grok_lwpstatus): Likewise.
34 (bfd_get_elf_phdr_upper_bound): Likewise.
35 (elfcore_make_note_pseudosection): Formatting.
36 (_bfd_elfcore_strndup): Formatting.
37 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
38 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
39
bb0082d6
AM
402001-06-29 Daniel Jacobowitz <drow@mvista.com>
41
42 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
43 and _bfd_elfcore_strndup.
44 (struct elf_backend_data): Add elf_backend_grok_prstatus
45 and elf_backend_grok_psinfo.
46 * elf.c (_bfd_elfcore_make_pseudosection): New function.
47 (elfcore_grok_prstatus): Use it.
48 (elfcore_make_note_pseudosection): Likewise.
49 (elfcore_strndup): Rename to...
50 (_bfd_elfcore_strndup): Here, and make global.
51 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
52 (elfcore_grok_note): Call elf_backend_grok_prstatus
53 and elf_backend_grok_psinfo if available.
54 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
55 (_bfd_elf32_mips_grok_psinfo): New function.
56 (elf_backend_grok_prstatus): Define.
57 (elf_backend_grok_psinfo): Define.
58 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
59 (elf_backend_grok_psinfo): Likewise.
60 (elfNN_bed): Include elf_backend_grok_prstatus and
61 elf_backend_grok_psinfo.
62
b64977c5
L
632001-06-29 H.J. Lu <hjl@gnu.org>
64
65 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
66 hplink->sgot is NULL before filling GOT. Checck if hplink->splt
67 is NULL before filling PLT.
68
e45bf863
AM
692001-06-29 Alan Modra <amodra@bigpond.net.au>
70
71 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
72
5a15f56f
AM
732001-06-27 Alan Modra <amodra@bigpond.net.au>
74
446f2863
AM
75 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
76 here..
77 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
78 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
79 after gc has run.
80
81 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
82 (IS_ABSOLUTE_RELOC): Define.
83 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
84 (hppa_link_hash_newfunc): Always init it.
85 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
86 create COPY relocs only when the reloc is in a read-only section.
87 Instead, allocate space for a dynamic reloc to reference the
88 library symbol directly. Keep track of space we allocate using
89 relocs_entries.
90 (hppa_discard_copies): Delete, and move code to..
91 (allocate_plt_and_got): ..here. Rename to
92 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
93 relocs for non-shared link.
94 (elf32_hppa_size_dynamic_sections): Update calls to above.
95 (elf32_hppa_relocate_section): Write out the dynamic relocs used
96 in lieu of COPY relocs.
97
5a15f56f
AM
98 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
99 here..
100 (elf_i386_adjust_dynamic_symbol): ..nor here..
101 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
102 after gc has run.
103 (elf_i386_size_dynamic_sections): Fix a comment.
104 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
105 involved in writing reloc out.
106
866b3400
AM
1072001-06-25 Alan Modra <amodra@bigpond.net.au>
108
28d0b90e
AM
109 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
110 Ensure syms are dynamic if we might be emitting a reloc.
111 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
112 for undefweak or undefined syms..
113 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
114
866b3400
AM
115 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
116 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
117 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
118 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
119
6cbac8b9
L
1202001-06-24 H.J. Lu <hjl@gnu.org>
121
122 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
123 strncasecmp/strcasecmp instead of strncmp/strcmp.
124
62b7d3f1
L
1252001-06-23 H.J. Lu <hjl@gnu.org>
126
866b3400
AM
127 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
128 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
129 in the regular object file and treat the weak definition as
130 the normal one.
131
12d0ee4a
AM
1322001-06-23 Alan Modra <amodra@bigpond.net.au>
133
8c694914
AM
134 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
135 unresolved_reloc test to exclude cases where we use "relocation"
136 before setting it to point into the .got. Reinstate fudge for
137 unresolved relocs in debugging sections.
138
83be169b
AM
139 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
140 complicated tests for unresolvable relocs with a simple direct
141 scheme using "unresolved_reloc" var.
142
ffb2e45b
AM
143 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
144 elf_i386_dyn_relocs. Update comment.
145 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
146 dyn_relocs.
147 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
148 others to aborts.
149 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
150 abort.
151 (elf_i386_size_dynamic_sections): Likewise.
152 (elf_i386_finish_dynamic_symbol): Likewise.
153 (elf_i386_finish_dynamic_sections): Likewise.
154 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
155 handling code.
156
12d0ee4a
AM
157 Avoid creating COPY relocs if possible.
158 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
159 which .got created. Mark symbols used by R_386_32 and R_386_PC32
160 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
161 reloc is in a read-only section. Instead, allocate space for a
162 dynamic reloc to reference the library symbol directly. Keep
163 track of space we allocate using pcrel_relocs_copied.
164 (discard_copies): Delete, and move code to ..
165 (allocate_plt_and_got): ..here. Rename to
166 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
167 relocs for non-shared link.
168 (elf_i386_size_dynamic_sections): Update calls to above functions.
169 (elf_i386_relocate_section): Write out the dynamic relocs. Add
170 more ugly logic to avoid "unresolvable relocation" error. Use
171 htab shortcut in place of elf_hash_table macro.
172 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
173 not always be created now.
174
f631948d
AJ
1752001-06-20 Bo Thorsen <bo@suse.co.uk>
176
177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
178 shared libraries.
179
89084430
NC
1802001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
181
182 * configure.host (mips64-*-linux): Reformat.
183
68fb2e56
AM
1842001-06-21 Alan Modra <amodra@bigpond.net.au>
185
186 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
187 allocate local .got space. Use shortcuts from hash table for .got
188 and .plt rather than comparing section names.
189 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
190 adjusting index into local_got_refcounts to document what we are
191 really doing.
192 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
193 Tidy .got and .plt error checking.
194
9317eacc
CM
1952001-06-20 Catherine Moore <clm@redhat.com>
196
bb0082d6
AM
197 * elf-bfd.h (struct elf_backend_data):
198 elf_backend_emit_relocs: New field: Function for emitting
199 relocs.
200 elf_backend_count_relocs: New field: Function for determining
201 the number of relocs to be emitted.
202 * elfxx-target.h: Provide default (NULL) values for
203 elf_backend_emit_relocs and elf_backend_count_relocs.
204 * elflink.h (elf_link_size_reloc_section): Make the hash table
205 big enough to hold the relocs counted by either reloc_count or
206 o->reloc_count.
207 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
208 should be emitted, either because of a command line option
209 stored in the info structure or because the target provides a
210 special reloc emitting function.
211 If the target provides a reloc counting function use it,
212 unless performing a relocatable link or emitting all relocs.
213 Also set the SEC_RELOC flag on any output section which will
214 contain relocs.
215 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
216 should be emitted, either because of a command line option
217 stored in the info structure or because the target provides a
218 special reloc emitting function.
219 If the target provides a reloc emitting function, use it,
220 unless performing a relocatable link or emitting all relocs.
9317eacc 221
161d71a6
L
2222001-06-20 H.J. Lu <hjl@gnu.org>
223
224 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
225 allocate local .got space.
226
fd8ab9e5
AJ
2272001-06-19 Andreas Jaeger <aj@suse.de>
228
229 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
230 dynamic symbols.
231
99293407
HPN
2322001-06-18 Hans-Peter Nilsson <hp@axis.com>
233
234 * elflink.h (struct elf_assign_sym_version_info): Remove member
235 export_dynamic. All users changed to use info member.
236 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
237 export_dynamic, instead use member in parameter info.
238 * bfd-in.h (bfd_elf32_size_dynamic_sections,
239 bfd_elf64_size_dynamic_sections): Update prototype.
240 * bfd-in2.h: Regenerate.
241
bc2b6df7
L
2422001-06-18 H.J. Lu <hjl@gnu.org>
243
244 * elflink.h (elf_info_failed): Add a new field, verdefs.
245 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
246 elf_export_symbol.
247 (elf_export_symbol): Check eif->verdefs to decide if a symbol
248 should be exported.
249
43917054
L
2502001-06-17 H.J. Lu <hjl@gnu.org>
251
252 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
253 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 254 section is against a read-only section.
43917054
L
255 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
256 field to false.
257 (_bfd_mips_elf_check_relocs): Record if there is a relocation
258 in the .rel.dyn section against a read-only section by setting
259 DF_TEXTREL or readonly_reloc.
260 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
261 it is true.
262 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
263 there is a relocation in the .rel.dyn section against a
264 read-only section.
265 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
266 DF_TEXTREL is set.
267
7c8ca0e4
NC
2682001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
269
270 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
271 function. Move flagword result into parameter list. Remove
272 comment about setting bfd_error_handler to intercept failure
273 results.
bb0082d6 274 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
275 calling bfd_coff_styp_to_sec_flags and pass a failure back to
276 caller.
bb0082d6 277 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 278 function. Move flagword result into parameter list.
bb0082d6
AM
279 * libcoff.h: Regenerate.
280 * libecoff.h: Regenerate.
7c8ca0e4 281
dee0a8f4
NC
2822001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
283
284 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
285 section is going to follow it.
286
0d1ea5c0
CM
2872001-06-12 Catherine Moore <clm@redhat.com>
288
bb0082d6
AM
289 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
290 with the file_align entry from elf_backend_data.
291 (elf_gc_smash_unused_vtentry_relocs): Likewise.
292 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 293
4e8a9624
AM
2942001-06-10 Alan Modra <amodra@bigpond.net.au>
295
296 * elflink.h: Whitespace changes.
297 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
298 rather than "unsigned char".
299 (elf_link_output_relocs): Likewise.
300 (elf_link_input_bfd): Likewise.
301 (elf_reloc_link_order): LIkewise.
302 * elf.c: s/CONST/const/. Whitespace changes.
303 * elf32-mips.c: Formatting fix.
304
305 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
306 * Makefile.in: Regenerate.
307 * po/Make-in: Remove trailing tab.
308
7a25cd3e
PB
3092001-06-09 Philip Blundell <philb@gnu.org>
310
311 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
312 change.
313 (elf32_arm_plt_entry): Likewise.
314
3f5a136d
L
3152001-06-08 H.J. Lu <hjl@gnu.org>
316
317 * elf.c (swap_out_syms): Keep names for global section symbols.
318
d8fe1fed
L
3192001-06-07 H.J. Lu <hjl@gnu.org>
320
321 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
322 MIPS-based machines need it.
323
c36e006f
L
3242001-06-07 H.J. Lu <hjl@gnu.org>
325
326 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
327 for SGI only.
328
329 * config.bfd: Remove ecoff from Linux/mips.
330
cc78d0af
AJ
3312001-06-07 Andreas Jaeger <aj@suse.de>
332
333 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
334 assertion.
335 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
336 alignment of 8 for .rela sections; handle further relocations.
337
879db8be
NC
3382001-06-06 Christian Groessler <cpg@aladdin.de>
339
bb0082d6 340 * coff-z8k.c: Fix formatting.
879db8be
NC
341 Fix howtos: howto->size was always 1.
342
cbb1fd50
NC
3432001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
344
345 * configure.host (mips64*-*-linux*): Define.
346
73a74a62
AM
3472001-06-05 Alan Modra <amodra@bigpond.net.au>
348
6725bdbf
AM
349 * elf32-i386.c (elf_i386_discard_copies): Rename to
350 discard_copies, and use elf_link_hash_entry arg rather than
351 elf_i386_link_hash_entry.
352 (elf_i386_link_hash_traverse): Delete.
353 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
354 Tidy sizing of dynamic sections.
355 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
356 possible .plt entries.
357 (elf_i386_gc_sweep_hook): Likewise.
358 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
359 everything with plt.refcount <= 0.
360
361 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
362 .relgot space here.
363 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 364 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
365 .rel.plt here..
366 (allocate_plt_and_got): ..instead do it all here. New function.
367 (elf_i386_size_dynamic_sections): Allocate local .got space and
368 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
369 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
370 rather than gc variety).
371 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
372 (elf_i386_relocate_section): Use it here and correct handling of
373 R_386_GOT32. Provide section and offset for "unresolvable
374 relocation" error message.
375 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
376
377 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
378 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
379 (elf_i386_link_hash_table_create): Init them.
380 (create_got_section): New function.
381 (elf_i386_create_dynamic_sections): New function.
382 (elf_backend_create_dynamic_sections): Set to above.
383 (elf_i386_check_relocs): Use shortcuts from hash table rather than
384 calling bfd_get_section_by_name.
385 (elf_i386_gc_sweep_hook): Likewise.
386 (elf_i386_adjust_dynamic_symbol): Likewise.
387 (elf_i386_size_dynamic_sections): Likewise.
388 (elf_i386_relocate_section): Likewise.
389 (elf_i386_finish_dynamic_sections): Likewise.
390
73a74a62
AM
391 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
392
24a5e751
L
3932001-06-02 H.J. Lu <hjl@gnu.org>
394
395 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
396 and ELFOSABI_HPUX.
397 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
398
15103188
L
3992001-06-02 H.J. Lu <hjl@gnu.org>
400
401 * aout-cris.c (MACHTYPE_OK): New. Defined.
402
2f484710
HPN
4032001-06-02 Hans-Peter Nilsson <hp@axis.com>
404
405 * section.c (_bfd_strip_section_from_output): Handle NULL
406 output_section.
407
a5ac692b
L
4082001-06-02 H.J. Lu <hjl@gnu.org>
409
410 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
411 rs6000coff64_vec only if BFD64 is defined.
412 (powerpc64-*-aix*): Enable only if BFD64 is defined.
413
27e53099
L
4142001-06-02 H.J. Lu <hjl@gnu.org>
415
416 * coff-ia64.c (ia64coff_object_p): Rewrite with
417 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
418
80643fbc
AJ
4192001-06-01 Andreas Jaeger <aj@suse.de>
420
421 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
422 relocation, small reformatting.
423
6b3db546
AJ
4242001-05-29 Andreas Jaeger <aj@suse.de>
425
426 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
427 (elf64_x86_64_relocate_section): Likewise.
428
4dc86686
AM
4292001-05-30 Alan Modra <amodra@one.net.au>
430
431 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
432 millicode. Don't allocate .got and .rela.got space here..
433 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
434 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
435 .rela.plt here..
436 (hppa_handle_PIC_calls): ..nor here..
437 (allocate_plt_and_got): ..instead do it all here. New function.
438 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
439 call allocate_plt_and_got. No need to zap .got if not dynamic.
440 (elf32_hppa_final_link): Call regular bfd_final_link instead of
441 gc_common_final_link.
442 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
443 (elf32_hppa_relocate_section): Use it here.
444 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
445 dynamic_sections_created.
446 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
447
de41dcd8
AJ
4482001-05-28 Andreas Jaeger <aj@suse.de>
449
450 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
451 generic version since we want a hashsize of 4.
452 (elf_backend_size_info): Likewise.
453
209f668e
NC
4542001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
455
209f668e
NC
456 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
457 a zeroing loop.
458 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
459 (elf_link_input_bfd): Likewise.
460 (elf_reloc_link_order): Likewise.
461 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
462 relocations correctly.
463
f7a74f8c
NC
4642001-05-28 Nicolas Pitre <nico@cam.org>
465
466 * elf32-arm.h: fix PLT generation for big endian ARM
467
8dea1268
AM
4682001-05-28 Alan Modra <amodra@one.net.au>
469
470 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
471 for symbols forced local that need plabels.
472 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
473 .plt.rela for local syms if non-shared.
474 (hppa_build_one_stub): Mask lsb of plt.offset.
475 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
476 (clobber_millicode_symbols): Correct comment.
477 (elf32_hppa_relocate_section): Likewise.
478 (elf32_hppa_finish_dynamic_symbol): Likewise.
479
0f2712ed
NC
4802001-05-28 Jeff Sturm <jsturm@one-point.com>
481
482 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
483 * bfd-in2.h: Regenerate.
484 * libbfd.h: Regenerate.
485 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
486 and BFD_RELOC_SPARC_UA64 mapping
487 * elf64-sparc.c: Likewise.
de41dcd8 488
6768c14a
L
4892001-05-25 H.J. Lu <hjl@gnu.org>
490
491 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
492 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
493 (coff-rs6000.lo): Remove the old dependency.
494 * Makefile.in: Rebuild.
495
496 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
497 coff-rs6000.lo.
498
b55039f4
L
4992001-05-25 H.J. Lu <hjl@gnu.org>
500
501 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
502 rs6000coff_core_file_matches_executable_p,
503 rs6000coff_core_file_failing_command and
504 rs6000coff_core_file_failing_signal only if AIX_CORE is
505 defined.
506 (pmac_xcoff_vec): Likewise.
507 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
508
64e9ece0
TW
5092001-05-25 Timothy Wall <twall@redhat.com>
510
511 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
512 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
513
f34d8777
L
5142001-05-25 H.J. Lu <hjl@gnu.org>
515
516 * bfd-in2.h: Regenerated.
517 * libcoff.h: Likewise.
518
49e9d0d3
AM
5192001-05-25 Alan Modra <amodra@one.net.au>
520
521 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
522 undefined millicode syms in shared libs.
523 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
524 (elf32_hppa_check_relocs): Likewise.
525 (elf32_hppa_adjust_dynamic_symbol): Likewise.
526 (elf32_hppa_size_dynamic_sections): Likewise.
527 (elf32_hppa_relocate_section): Likewise.
528 (elf32_hppa_finish_dynamic_symbol): Likewise.
529 (elf32_hppa_finish_dynamic_sections): Likewise.
530
beb1bf64
TR
5312001-05-24 Tom Rix <trix@redhat.com>
532
bb0082d6 533 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
534 xcoff-target.h not used to define rs6000 or ppc bfd.
535 * Makefile.in same
536
537 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
538 to 64 bit.
539
540 * coff-rs6000.c : Many changes for 64 bit support. Move common
541 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
542 and pmac_xcoff_vec
543
544 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
545 linker now supported. Explictly define the rs6000coff64_vec.
546
547 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 548 (coff_print_aux) same
beb1bf64
TR
549 (coff_write_object_contents) same
550 (coff_slurp_line_table) same
551
552 * coffgen.c : (coff_fix_symbol_name) formatting
553 (coff_mangle_symbols) xcoff 64 bit support
554 (coff_write_symbol) same
555 (coff_write_alien_symbol) same
556 (coff_write_native_symbol) same
557 (coff_write_symbols) same
558 (coff_get_symbol_info) same
559 (bfd_coff_get_syment) same
560 (coff_print_symbol) same
561
562 * config.bfd : add powerpc64-*-aix* target
563
564 * libcoff-in.h : formatting
565
566 * libcoff.h : move xcoff extern declarations to libxcoff.h
567
568 * libxcoff.h : New file
569
de41dcd8
AJ
570 * xcofflink.c : Many changes for xcoff64 support. Move common
571 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
572 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
573 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
574
575 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
576 aix4.2+ -binitfini.
577
578 (xcoff_build_ldsyms) : handle special __rtinit symbol.
579
e90fdc1a
AO
5802001-05-23 Alexandre Oliva <aoliva@redhat.com>
581
582 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
583 s/ENTIRES/ENTRIES/.
584
d1cf510e
NC
5852001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
586
c2feb664
NC
587 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
588 * libbfd.h: Regenerate.
4e8a9624 589 * bfd-in2.h: Regenerate.
c2feb664 590
d1cf510e
NC
591 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
592 * archures.c (bfd_mach_mips12000): Define.
593 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
594 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
595 support.
596 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
597 * bfd-in2.h: Regenerate.
598 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
599
6c426cf3
NC
6002001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
601
602 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
603 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
604 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
605 that is used by GCC.
606
d9bc7a44
NC
6072001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
608
609 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
610 of entries in a structured section.
bb0082d6
AM
611 * elf.c: Use new macro.
612 * elf32-i386.c: Use new macro.
613 * elf32-mips.c: Use new macro.
614 * elf64-alpha.c: Use new macro.
615 * elf64-sparc.c: Use new macro.
616 * elfcode.h: Use new macro.
617 * elflink.h: Use new macro.
d9bc7a44
NC
618
6192001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
620
621 * bfdint.texi: Replace -oformat with --oformat.
622
f5198f61
AJ
6232001-05-21 Andreas Jaeger <aj@suse.de>
624
625 * dwarf2.c (decode_line_info): Fix error message.
626 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
627 adjust error message.
628
7913c838
L
6292001-05-18 H.J. Lu <hjl@gnu.org>
630
631 * elflink.h (elf_link_add_object_symbols): Revert the last
632 change.
633
e0522e89
AM
6342001-05-17 Alan Modra <amodra@one.net.au>
635
636 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
637 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
638 (hppa_build_one_stub): Add an assert to check plt.offset.
639
96fd004e
L
6402001-05-17 H.J. Lu <hjl@gnu.org>
641
642 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
643 version definition to basename of the output filename.
644
f3876d8b
L
6452001-05-17 H.J. Lu <hjl@gnu.org>
646
647 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
648 basename of the bfd filename.
649
d1778b88
AM
6502001-05-16 Alan Modra <amodra@one.net.au>
651
652 * section.c (asection): Add linker_has_input field.
653 (STD_SECTION): Adjust initialization to suit.
654 * ecoff.c (bfd_debug_section): Likewise.
655 * bfd-in2.h: Regenerate.
656
2a0fa943
AO
6572001-05-15 Alexandre Oliva <aoliva@redhat.com>
658
659 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
660 negative 32-bit operands to 16 operands when the operand is
661 going to be zero-extended by the modified opcode.
662
bcee8eb8
AM
6632001-05-12 Peter Targett <peter.targett@arccores.com>
664
665 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
666 name for 'arc5' core versions.
667 (bfd_arc_arch): Make bfd_mach_arc_6 default.
668
669 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
670 architecture.
671 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
672
579f31ac
JJ
6732001-05-11 Jakub Jelinek <jakub@redhat.com>
674
675 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
676 sections as well.
677 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
678 to .gnu.linkonce.t.FOO text section.
679
8550eb6e
JJ
6802001-05-11 Jakub Jelinek <jakub@redhat.com>
681
682 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
683 fields, change sec into secinfo.
684 (struct sec_merge_info): Add chain, remove last fields.
685 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
686 (sec_merge_hash_lookup): If lookup could not use a string only
687 because it has bad alignment, mark the old string for deletion.
688 (sec_merge_add): Add secinfo argument. Don't compute entry's
689 position, instead record the section.
690 (sec_merge_emit): Update for the sec into secinfo change in
691 struct sec_merge_hash_entry.
692 (_bfd_merge_section): Only record the section for merging, defer
693 putting strings into the hash table.
694 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
695 _bfd_merge_sections): New functions.
696 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
697 changes.
698 * libbfd-in.h (_bfd_merge_sections): Add prototype.
699 (_bfd_nolink_bfd_merge_sections): Define.
700 * libbfd.h: Likewise.
701 (bfd_generic_merge_sections): Add prototype.
702 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
703 (struct bfd_target): Likewise.
704 * bfd.c (bfd_merge_sections): Define.
705 * bfd-in2.h: Rebuilt.
706 * elf.c (_bfd_elf_merge_sections): New function.
707 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
708 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
709 * reloc.c (bfd_generic_merge_sections): New function.
710 * vms.c (vms_bfd_merge_sections): New function.
711 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
712 * aout-target.h (MY_bfd_merge_sections): Define.
713 * aout-tic30.c (MY_bfd_merge_sections): Define.
714 * binary.c (binary_bfd_merge_sections): Define.
715 * bout.c (b_out_bfd_merge_sections): Define.
716 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
717 * coffcode.c (coff_bfd_merge_sections): Define.
718 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
719 * i386msdos.c (msdos_bfd_merge_sections): Define.
720 * i386os9k.c (os9k_bfd_merge_sections): Define.
721 * ieee.c (ieee_bfd_merge_sections): Define.
722 * ihex.c (ihex_bfd_merge_sections): Define.
723 * nlm-target.h (nlm_bfd_merge_sections): Define.
724 * oasys.c (oasys_bfd_merge_sections): Define.
725 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
726 * som.c (som_bfd_merge_sections): Define.
727 * srec.c (srec_bfd_merge_sections): Define.
728 * tekhex.c (tekhex_bfd_merge_sections): Define.
729 * versados.c (versados_bfd_merge_sections): Define.
730 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
731
1548c54f
NC
7322001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
733
734 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
735 to be unsigned long, in order to match its use.
736
689effed
L
7372001-05-10 H.J. Lu <hjl@gnu.org>
738
739 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
740 indirect symbols.
741
6e5222be
L
7422001-05-09 H.J. Lu <hjl@gnu.org>
743
744 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
745 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
746 Remove the unused veriable `dynver'.
747
8e191bd3
ILT
7482001-05-08 Ian Lance Taylor <ian@zembu.com>
749
750 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
751 NULL or is not COFF.
752 (coff_i386_rtype_to_howto): Don't dump core if output section
753 owner is not COFF.
754
062e2358
AM
7552001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
756
757 * ecoff.c (bfd_debug_section): Fix initialization.
758 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
759 is always a positive integer. Cast away sign mismatch.
760 * elf32-mips.c: Fix misleading comment and typo.
761 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
762 correct data type.
763 * elflink.c: Fix typo.
764 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
765 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
766
16b65e4e
RH
7672001-05-04 Richard Henderson <rth@redhat.com>
768
769 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
770
cac15327
NC
7712001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
772
773 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 774 EF_ARM_HASENTRY if the start address is set.
cac15327 775
966b3e0b
NC
7762001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
777
778 * targets.c (_bfd_target_vector_entries): Compute value based on
779 the size of the _bfd_target_vector and not bfd_target_vector.
780
210ba1e8
L
7812001-05-03 H.J. Lu <hjl@gnu.org>
782
783 * elfcode.h: Include "libiberty.h".
784
785 * elflink.h (elf_link_add_object_symbols): Set
786 elf_dt_name (abfd) to basename of the bfd filename.
787 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
788 of the bfd filename.
789
56fc028e
AJ
7902001-05-03 Andreas Jaeger <aj@suse.de>
791
792 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
793 (elf_generic_info_to_howto_rel): Likewise.
794 * coff-alpha.c (reloc_nil): Likewise.
795 (alpha_ecoff_bad_format_hook): Likewise.
796 (alpha_adjust_reloc_out): Likewise.
797 (alpha_bfd_reloc_type_lookup): Likewise.
798 (alpha_convert_external_reloc): Likewise.
799 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
800 (elf64_alpha_reloc_bad): Likewise.
801 (elf64_alpha_reloc_gpdisp): Likewise.
802 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
803 (elf64_alpha_info_to_howto): Likewise.
804 (elf64_alpha_add_symbol_hook): Likewise.
805 (elf64_alpha_create_got_section): Likewise.
806 (elf64_alpha_is_local_label_name): Likewise.
807 (elf64_alpha_merge_ind_symbols): Likewise.
808 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
809 (mips_elf64_get_reloc_upper_bound): Likewise.
810 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
811 (nlm_alpha_get_public_offset): Likewise.
812
c7e40348
NC
8132001-05-02 Johan Rydberg <jrydberg@opencores.org>
814
bb0082d6 815 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 816 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 817 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 818
5fba655a
L
8192001-04-30 H.J. Lu <hjl@gnu.org>
820
821 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
822 only for ELF_LINK_FORCED_LOCAL.
823 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
824 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
825 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
826
827 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
828 if the symbol has hidden or internal visibility.
829
db20fd76
AM
8302001-04-30 Alan Modra <amodra@one.net.au>
831
832 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
833 calls to undefined weak symbols.
834
6a2bda3f
AJ
8352001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
836
837 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
838 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
839
053579d7
AJ
8402001-04-27 Andreas Jaeger <aj@suse.de>
841
842 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
843 out handled entries.
844 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
845 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
846 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
847 GOT32.
848
87748b32
NC
8492001-04-27 Sean McNeil <sean@mcneil.com>
850
851 * config.bfd: Add arm-vxworks target.
852 * coff-arm (coff_arm_relocate_section): Add in symbol value to
853 addend (fro VXworks targets).
854
f5f31454
L
8552001-04-26 H.J. Lu <hjl@gnu.org>
856
857 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
858 valid.
859
d436a9b3
FCE
8602001-04-25 Frank Ch. Eigler <fche@redhat.com>
861
862 * bfd-in.h (bfd_cache_close): Declare newly exported function.
863 * bfd-in2.h: Regenerated.
864
a531bbd2
JJ
8652001-04-24 Jakub Jelinek <jakub@redhat.com>
866
867 * merge.c (struct sec_merge_hash_entry): Add alignment field.
868 (struct sec_merge_hash): Remove alignment_power.
869 (sec_merge_hash_newfunc): Clear alignment.
870 (sec_merge_hash_lookup): Pass alignment as argument.
871 Use hashp->root.next, not hashp->next to walk the hash chain.
872 If a string already in the hashtable does not have required
873 alignment, create a new hashtable entry.
874 (sec_merge_init): Remove alignment_power argument.
875 (sec_merge_add): Add alignment argument.
876 (sec_merge_emit): Alignment is now a per-entity thing, not per
877 section.
878 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
879 for proper alignment.
880 Pass alignment information to sec_merge_add.
881
6840198f
NC
8822001-04-24 Christian Groessler <cpg@aladdin.de>
883
884 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
885 and R_REL16 reloc types; accept odd values for R_REL16 type
886
b3baf5d0
NC
8872001-04-24 Johan Rydberg <jrydberg@opencores.org>
888
889 * cpu-openrisc.c: New file.
890 * elf32-openrisc.c: Likewise.
891
892 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
893 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
894 (BFD32_BACKENDS): Add elf32-openrisc.lo.
895 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
896 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
897 * Makefile.in: Regenerated.
898 * config.bfd: (openrisc-*-elf): New target.
053579d7 899 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
900 * configure: Regenerated.
901 * libbfd.h: Regenerated.
902 * bfd-in2.h: Regenerated.
903 * reloc.c: Add OpenRISC relocations.
053579d7 904 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
905 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
906 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
907 (bfd_openrisc_arch): Declare.
908 (bfd_archures_list): Add bfd_openrisc_arch.
909 * elf.c (prep_headers): Add bfd_arch_openrisc.
910
fe4770f4
AJ
9112001-04-23 Bo Thorsen <bo@suse.de>
912
913 * elf64-x86-64.c: Add c++ vtable hack.
914 Small whitespace and comment changes.
915
653165cc
AJ
9162001-04-19 Andreas Jaeger <aj@suse.de>
917
918 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
919 (elf64_x86_64_plt_entry): Likewise.
920 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
921 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
922
4d96d128
HPN
9232001-04-17 Hans-Peter Nilsson <hp@axis.com>
924
925 * elf32-cris.c: Tweak comments related to dynamic linking.
926 (cris_elf_relocate_section): When not creating shared object, fill
927 in the .got table for any symbol not in the dynamic symbol table.
928 (elf_cris_finish_dynamic_symbol): When not creating shared object,
929 only emit a .got.rela reloc if the symbol is in the dynamic symbol
930 table.
931 (cris_elf_check_relocs): Use variable r_type in all places rather
932 than the original expression. Add default case in switch for
933 reloc types.
934 (elf_cris_size_dynamic_sections): Iterate over
935 elf_cris_discard_excess_program_dynamics when not creating shared
936 library.
653165cc 937 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
938 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
939 (elf_cris_discard_excess_program_dynamics): New.
940
3ed30d29
DD
9412001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
942
943 * coffcode.h (coff_write_object_contents): Use
944 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
945
a80f6941
L
9462001-04-14 H.J. Lu <hjl@gnu.org>
947
948 * bfd-in2.h: Regenerate.
949
767e4b0d
JJ
9502001-04-14 Jakub Jelinek <jakub@redhat.com>
951
952 * section.c (STD_SECTION): Add entsize.
953
2dd439c5
L
9542001-04-13 H.J. Lu <hjl@gnu.org>
955
956 * section.c (SEC_MERGE): Define new flag for merging.
957 (SEC_STRINGS): Likewise.
958 (entsize): New field.
959
baf80c32
DD
9602001-04-13 Roger Sayle <roger@metaphorics.com>
961
962 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
963 flag on pe-i386 targets.
964
f5fa8ca2
JJ
9652001-04-13 Jakub Jelinek <jakub@redhat.com>
966
967 * libbfd-in.h (_bfd_merge_section): New.
968 (_bfd_write_merged_section): New.
969 (_bfd_merged_section_offset): New.
970 * libbfd.h: Rebuilt.
971 * linker.c (_bfd_generic_link_output_symbols): Handle
972 discard_sec_merge.
973 * aoutx.h (aout_link_write_symbols): Likewise.
974 * pdp11.c (aout_link_write_symbols): Likewise.
975 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
976 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
977 sections.
978 (elf_link_sec_merge_syms): New.
979 (elf_link_input_bfd): Call _bfd_merged_section_offset
980 and _bfd_write_merged_section.
981 Handle discard_sec_merge.
982 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
983 field.
984 (struct bfd_elf_section_data): Likewise.
985 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
986 SEC_STRINGS section flags and entsize from their ELF counterparts.
987 (_bfd_elf_link_hash_table_init): Initialize merge_info.
988 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
989 from their BFD counterparts.
990 * merge.c: New file.
991 * Makefile.am: Add strtab.lo.
992 * Makefile.in: Rebuilt.
993
d954b040
HPN
9942001-04-09 Hans-Peter Nilsson <hp@axis.com>
995
996 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
997 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
998
fdbafa10
L
9992001-04-05 Steven J. Hill <sjhill@cotw.com>
1000
1001 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1002 endian MIPS ELF target.
1003 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1004 MIPS ELF target.
1005
1006 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1007 64bit big endian MIPS ELF target.
653165cc 1008 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1009 endian MIPS ELF target.
1010 * configure: Regenerated.
1011
1012 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1013 little endian targets.
1014 (mips_elf_sym_is_global): Handle traditional targets.
1015
1016 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1017 64bit big endian MIPS ELF target.
1018 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1019 endian MIPS ELF target.
1020
1021 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1022 and bfd_elf64_tradlittlemips_vec.
1023
dd484e5c
L
10242001-04-05 David Mosberger <davidm@hpl.hp.com>
1025
1026 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1027 ordinary "progbits" section.
1028
391a809a
AM
10292001-04-04 Alan Modra <alan@linuxcare.com.au>
1030
1031 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1032 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1033
5854c633
L
10342001-04-03 David Mosberger <davidm@hpl.hp.com>
1035
1036 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1037
8b4b0fac
L
10382001-03-30 H.J. Lu <hjl@gnu.org>
1039
1040 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1041 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1042
eb4a6e4f
L
10432001-03-26 H.J. Lu <hjl@gnu.org>
1044
1045 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1046 if there are any relocations for generic ELF.
1047 (bfd_elf32_bfd_link_add_symbols): Defined to
1048 elf32_generic_link_add_symbols.
1049 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1050 if there are any relocations for generic ELF.
1051 (bfd_elf64_bfd_link_add_symbols): Defined to
1052 elf64_generic_link_add_symbols.
1053
55c80943
NC
10542001-03-23 Nick Clifton <nickc@redhat.com>
1055
1056 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1057 files created in build directory.
1058 (BUILD_HFILES): New variable: List of header files created in
1059 build directory.
1060 (POTFILES): Delete.
1061 (po/POTFILES.in): Replace rule with empty entry.
1062 (po/SRC-POTFILES.in): New rule: Create a list of source files
1063 in the source directory.
1064 (po/BLD-POTFILES.in): New rule: Create a list of source files
1065 in the build directory.
1066 (MOSTLYCLEAN): Do not delete source files created in build
1067 directory.
1068 * Makefile.in: Regenerate.
1069 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1070 into po/Makefile.
1071 * configure: Regenerate.
1072
1073 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1074 and BLD_POTFILES.
55c80943 1075 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1076 Delete POTFILES when performing distclean.
1077 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1078 * po/POTFILES.in: Delete.
1079 * po/SRC-POTFILES.in: New file.
1080 * po/BLD-POTFILES.in: New file.
bb0082d6 1081 * po/bfd.pot: Regenerate.
55c80943 1082
58d29fc3
HPN
10832001-03-22 Hans-Peter Nilsson <hp@axis.com>
1084
915e5146
HPN
1085 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1086 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1087 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1088 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1089 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1090 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1091 functions.
1092 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1093 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1094 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1095 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1096 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1097 New HOWTO members for new relocs.
1098 (cris_reloc_map): Map new relocs.
1099 (ELF_DYNAMIC_INTERPRETER): Define.
1100 (PLT_ENTRY_SIZE): Define.
1101 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1102 elf_cris_pic_plt_entry): New, PLT templates.
1103 (struct elf_cris_pcrel_relocs_copied, struct
1104 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1105 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1106 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1107 positive values. Adjust PCREL relocs to be relative to location
1108 after relocation.
1109 (cris_elf_relocate_section): Handle relocations to dynamic
1110 objects. Handle new relocations. Call error handler when seeing
1111 non-PIC relocation for read-only sections while generating shared
1112 object.
1113 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1114 entries.
1115 (bfd_elf32_bfd_link_hash_table_create,
1116 elf_backend_adjust_dynamic_symbol,
1117 elf_backend_size_dynamic_sections,
1118 elf_backend_finish_dynamic_symbol,
1119 elf_backend_finish_dynamic_sections,
1120 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1121 elf_backend_hide_symbol, elf_backend_want_got_plt,
1122 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1123 elf_backend_got_header_size, elf_backend_plt_header_size):
1124 Define.
1125
58d29fc3
HPN
1126 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1127 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1128 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1129 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1130 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1131 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1132 * bfd-in2.h, libbfd.h: Regenerate.
1133
7a65545d
DN
11342001-03-21 Diego Novillo <dnovillo@redhat.com>
1135
1136 (_bfd_mips_elf_relocate_section): Give a better error message when
1137 a relocation is not recognized.
1138
b32b5d6e
AM
11392001-03-21 Alan Modra <alan@linuxcare.com.au>
1140
1141 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1142 non-NULL before attempting to dereference.
1143
f4fbb4a3
L
11442001-03-20 H.J. Lu <hjl@gnu.org>
1145
1146 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1147 * configure: Rebuild.
1148
95fc45e6
AS
11492001-03-20 Andreas Schwab <schwab@suse.de>
1150
1151 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1152 relocation value when resolving a reference from a debugging
1153 section.
1154
03d411a9
NC
11552001-03-16 Scott Thomason <SThomaso@hii.com>
1156
1157 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1158 (xcoff64_swap_sym_out): Fix syntax errors.
1159
d1659392
NC
11602001-03-16 Richard Sandiford <rsandifo@redhat.com>
1161
1162 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1163
12cca0d2
AM
11642001-03-15 Alan Modra <alan@linuxcare.com.au>
1165
1166 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1167 (hppa_link_hash_newfunc): Init it.
1168 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1169 section appears to be non-PIC.
1170 (final_link_relocate): Likewise.
1171 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1172 possible candidate function, and set pic_call for those that will
1173 only have a .plt entry for the PIC call stub.
1174 (hppa_handle_PIC_calls): Set maybe_pic_call.
1175
cd6ec716
DD
11762001-03-12 DJ Delorie <dj@redhat.com>
1177
1178 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1179 R_SH_DIR8WP* relocs if they're against external symbols, else
1180 they're just for relaxing. Validate the reloc values.
1181
43a0748c
NC
11822001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1183
1184 * binary.c (bfd_external_binary_architecture): Declare.
1185 (binary_object_p): If bfd_external_binary_architecture is defined,
1186 set the architecture to this string.
1187
d982ba73
PB
11882001-03-11 Philip Blundell <philb@gnu.org>
1189
1190 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1191 entries that could serve as a definition for a weak symbol.
1192
7898deda
NC
11932001-03-08 Nick Clifton <nickc@redhat.com>
1194
1195 * Most files: Update copyright notices using Perl script created
1196 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1197
df425bc0
NC
11982001-03-07 Nick Clifton <nickc@redhat.com>
1199
1200 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1201 prior patch on ! defined OLD_ARM_ABI.
1202
bcdd92f3
AJ
12032001-03-07 Andreas Jaeger <aj@suse.de>
1204
1205 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1206 some relocation values.
1207
4f3c3dbb
NC
12082001-03-06 Nick Clifton <nickc@redhat.com>
1209
1210 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1211 of offset in BLX(1) instruction.
1212 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1213 offset in BLX(1) instruction.
bb0082d6 1214 Fix formatting.
4f3c3dbb 1215
f8f3c6cc
NC
12162001-03-06 Nick Clifton <nickc@redhat.com>
1217
1218 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1219 BFD_RELOC_THUMB_PCREL_BLX.
1220
3cac17ae
NC
12212001-03-06 Igor Shevlyakov <igor@windriver.com>
1222
1223 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1224 * bfd-in2.h: Regenerate.
1225 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1226 * ieee.c (ieee_write_processor): Set proper id for
1227 Coldfire CPUs.
1228
d1b17ab0
NC
12292001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1230
1231 * configure.in: Add s390 target.
1232 * configure: Regenerate.
1233
5608e05b
AJ
12342001-02-28 Andreas Jaeger <aj@suse.de>
1235
1236 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1237 to addend.
1238
fd2ec330
PB
12392001-02-28 Philip Blundell <pb@futuretv.com>
1240
1241 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1242 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1243
920581c5
L
12442001-02-27 H.J. Lu <hjl@gnu.org>
1245
1246 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1247 abfd->tdata.aout_data == NULL.
1248
27b7e12d
AM
12492001-02-27 Alan Modra <alan@linuxcare.com.au>
1250
3ee1d854
AM
1251 * elf32-hppa.c: Correct field selector in stub comments.
1252 (clobber_millicode_symbols): Formatting fix.
1253
27b7e12d
AM
1254 * configure.in: Bump version to 2.11.90.
1255 * configure: Regenerate.
1256 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1257 (CFILES): $SOURCE_CFILES + generated C files.
1258 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1259 Run "make dep-am"
1260 * Makefile.in: Regenerate.
1261 * doc/Makefile.in: This too.
1262
10d1e03a
TW
12632001-02-26 Timothy Wall <twall@cygnus.com>
1264
1265 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1266 comments.
10d1e03a 1267
1276aefa
NC
12682001-02-26 Nick Clifton <nickc@redhat.com>
1269
1270 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1271 up, replacing multiple if statements with a switch.
bb0082d6 1272 (handle_COMDAT): New function.
1276aefa
NC
1273
12742001-02-26 H.J. Lu <hjl@gnu.org>
1275
1276 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1277 a warning for section flags we do not handle instead of
1278 aborting.
1279
4a73f21b
AJ
12802001-02-26 Andreas Jaeger <aj@suse.de>
1281
1282 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1283
7b6dab7f
TW
12842001-02-22 Timothy Wall <twall@cygnus.com>
1285
1286 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1287 * configure.in: Add objects for elf64_ia64_aix vectors.
1288 * configure: Regenerated.
1289 * configure.host: Recognize ia64-*-aix*.
1290 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1291 for AIX. AIX5 requires most relocations to be dynamic (*all*
1292 binaries are somewhat similar to shared libraries).
1293 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1294
87f8eb97
JW
12952001-02-21 David Mosberger <davidm@hpl.hp.com>
1296
1297 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1298 C8 said "1" instead of "8". Clarify error string for IMM22:
1299 "signed integer" instead of just "integer".
1300
05aa1441
AJ
13012001-02-20 Andreas Jaeger <aj@suse.de>
1302
1303 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1304 PLT entries that could serve as a definition for a weak symbol.
1305
8701c1bc
JJ
13062001-02-19 Jakub Jelinek <jakub@redhat.com>
1307
1308 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1309 entries that could serve as a definition for a weak symbol.
1310 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1311
d4af9775
DB
13122001-02-18 David O'Brien <obrien@FreeBSD>
1313
1314 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1315 FreeBSD/i386-CURRENT differently until I can figure out the needed
1316 corefile changes.
1317 * configure: Regenerate.
1318 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1319 FreeBSD/PowerPC, and FreeBSD/sparc64.
1320
e135f41b
NC
13212001-02-18 lars brinkhoff <lars@nocrew.org>
1322
1323 * Makefile.am: Add PDP-11 a.out target.
1324 * config.bfd: Likewise.
1325 * configure.in: Likewise.
1326 * targets.c: Likewise.
1327 * archures.c: Likewise.
1328 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1329 * libbfd.h: Add PDP-11 relocations.
1330 * reloc.c: Likewise.
1331 * cpu-pdp11.c: New file.
1332 * pdp11.c: New file.
1333
1334 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1335 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1336 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1337 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1338 (GET_MAGIC): New macro.
1339 (PUT_MAGIC): Likewise.
1340 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1341
dc3febfa
NC
13422001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1343
1344 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1345 multiarch needs it).
1346
ea412e04
L
13472001-02-18 H.J. Lu <hjl@gnu.org>
1348
1349 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1350 index.
1351
47eee8a9
KH
13522001-02-18 Kazu Hirata <kazu@hxi.com>
1353
1354 * vms-misc.c: Fix formatting.
1355
8a0c27cd
KH
13562001-02-16 Kazu Hirata <kazu@hxi.com>
1357
1358 * vms.c: Fix formatting.
1359
d1fad7c6
NC
13602001-02-14 H.J. Lu <hjl@gnu.org>
1361
1362 * elf.c (elf_find_function): New function.
1363 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1364 the file name and function name.
1365
825b47db
NC
13662001-02-14 Nick Clifton <nickc@redhat.com>
1367
51d7ee16
NC
1368 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1369 asection structure.
1370
825b47db
NC
1371 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1372 (BFD64_BACKENDS): Add pepigen.c
1373 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1374
1375 * Makefile.in: Regenerate.
1376 * configure: Regenerate.
1377 * po/POTFILES.in: Regenerate.
1378 * po/bfd.pot: Regenerate.
1379
ea36a178
L
13802001-02-14 H.J. Lu <hjl@gnu.org>
1381
1382 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1383 force_minimum_alignment.
1384
407443a3
AJ
13852001-02-14 Bo Thorsen <bo@suse.de>
1386
1387 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1388 (elf64_86_64_size_info): Struct added to fix a problem
1389 with the hashtable string entries.
1390 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1391 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1392 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1393 remove the FIXME for this.
1394 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1395 section. Also removed the FIXME for it.
1396 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1397 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1398 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1399
b4adccfd
RH
14002001-02-13 Richard Henderson <rth@redhat.com>
1401
1402 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1403 and not user provided.
1404
9635981a
KH
14052001-02-13 Kazu Hirata <kazu@hxi.com>
1406
1407 * vms.c (vms_print_symbol): Remove unreachable code.
1408
6a125b16
KH
1409 * rs6000-core.c: Fix formatting.
1410
cbff5e0d
DD
14112001-02-13 David Mosberger <davidm@hpl.hp.com>
1412
1413 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1414 as _bfd_XXi_only_swap_filehdr_out.
1415 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1416 pe->force_minimum_alignment to TRUE.
1417 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1418 PEI_TARGET_SUBSYSTEM.
1419 (pe_print_private_bfd_data): Call
1420 _bfd_XX_print_private_bfd_data_common() instead of
1421 _bfd_pe_print_private_bfd_data_common().
1422 (pe_bfd_copy_private_bfd_data): Call
1423 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1424 _bfd_pe_bfd_copy_private_bfd_data_common().
1425 (coff_bfd_copy_private_section_data): Define as
1426 _bfd_XX_bfd_copy_private_section_data instead of
1427 _bfd_pe_bfd_copy_private_section_data.
1428 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1429 of a _bfd_pe_get_symbol_info.
1430
1431 * peigen.c: Delete.
1432
1433 * peXXigen.c: Renamed from peigen.c.
1434 (COFF_WITH_XX): Define this macro (will get expanded into
1435 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1436 compiled as peigen.c or pepigen.c.
1437 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1438 define the canonical PEP structures and definitions.
1439 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1440 effect, enforce minimum file and section alignments. If
1441 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1442 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1443 so, by default, this is a no-op).
1444
1445 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1446 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1447 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1448 _bfd_pefoo if it's not defined. Use these macros to define
1449 coff swap macros.
1450
1451 * libcoff.h (pe_tdata): Add members target_subsystem and
1452 force_minimum_alignment.
1453
1454 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1455 COFF_WITH_pep.
1456 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1457
1458 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1459 peigen.lo.
1460
1461 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1462 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1463 PEPAOUTHDR.
1464
1465 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1466 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1467 (peigen.c): Add rule to generate from peXXigen.c.
1468 (pepigen.c): Ditto.
1469 (pepigen.lo): List dependencies for pepigen.lo.
1470
df8634e3
AM
14712001-02-13 Alan Modra <alan@linuxcare.com.au>
1472
1473 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1474 $global$ referenced but not defined, set its value here.
1475
51e0a107
JH
14762001-02-09 Bo Thorsen <bo@suse.de>
1477
1478 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1479 alignment to 3.
1480 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1481 and relocation.
1482 (elf64_x86_64_relocate_section): Fix formatting.
1483 (elf64_x86_64_relocate_section): Fix addend for relocation of
1484 R_X86_64_(8|16|32|PC8|PC16|PC32).
1485
d1fad7c6 14862001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
1487
1488 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1489
f0e1d18a
L
14902001-02-11 H.J. Lu <hjl@gnu.org>
1491
6757257f 1492 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1493 alignment.
1494
9117d219
NC
14952001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1496
1497 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1498 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1499 relocations against dynsym symbols.
1500
1501 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1502 the R_MIPS_26 relocation.
1503 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1504 the R_MIPS_26 relocation.
1505 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1506 relocation.
1507 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1508 the R_MIPS_26 relocation.
1509 (mips_elf64_howto_table_rela): Likewise.
1510
1511 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1512 member to mark symbols that have non-CALL relocations against
1513 them.
1514 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1515 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1516 R_MIPS_GOT16.
1517 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1518 non-CALL relocation against it is encountered.
1519 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1520 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1521 no_fn_stub is not set.
1522
1523 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1524 information from the real symbol for indirect ones.
1525 Check no_fn_stub to find out if a symbol has a function stub
1526 indeed.
1527
9f93bca5
MS
15282001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1529
1530 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1531 * Makefile.in: Regenerate.
1532
81545d45
RH
15332001-02-09 David Mosberger <davidm@hpl.hp.com>
1534
1535 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1536 true if section name is an unwind table section name.
1537 (elfNN_ia64_additional_program_headers): Count each unwind section
1538 separately.
1539 (elfNN_ia64_modify_segment_map): Install one unwind program header
1540 for each unwind separate section. Note: normally the linker
1541 script merges the unwind sections that go into a single segment,
1542 so this still generates at most one unwind program header per
1543 segment.
1544
1545 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1546 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1547 (elfNN_ia64_fake_sections): Mark sections with names that start
1548 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1549 unwind section.
1550
1551 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1552 Use it to make sh_info in unwind section point to the text section
1553 it applies to.
1554
a85d7ed0
NC
15552001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1556
1557 * Makefile.am: Add linux target for S/390.
1558 * archures.c: Likewise.
1559 * bfd-in2.h: Likewise.
1560 * config.bfd: Likewise.
1561 * configure.in: Likewise.
1562 * elf.c: Likewise.
1563 * libbfd.h: Likewise.
1564 * targets.c: Likewise.
1565 * cpu-s390.c: New file.
1566 * elf32-s390.c: New file.
1567 * elf64-s390.c: New file.
1568
356d255d
NC
15692001-02-09 Nick Clifton <nickc@redhat.com>
1570
1571 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1572 ImageBase. This has already been done by coff_swap_hdr_in.
1573
069f40e5
JJ
15742001-02-09 Jakub Jelinek <jakub@redhat.com>
1575
1576 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1577
eadfa8ab
JJ
15782001-02-09 Jakub Jelinek <jakub@redhat.com>
1579
1580 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1581 (sparc64_elf_relocate_section): Likewise.
1582
9fc54e19
MK
15832001-02-09 Mark Kettenis <kettenis@gnu.org>
1584
1585 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1586 similar to R_SPARC_32.
1587 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1588
1f655a09
L
15892001-02-08 H.J. Lu <hjl@gnu.org>
1590
1591 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1592 relocation entries for weak definitions when building DSO with
1593 -Bsymbolic.
1594
ca88208a
RH
15952001-02-08 Richard Henderson <rth@redhat.com>
1596
1597 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1598 before visibility. Locally defined protected symbols are not
1599 dynamic.
1600
4603e845
GK
16012001-02-08 Geoffrey Keating <geoffk@redhat.com>
1602
1603 * config.bfd: Enable coff64 for rs6000-*. Patch from
1604 <hzoli@austin.ibm.com>.
1605
4ca29a6a
NC
16062001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1607
1608 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1609 found, do not attempt to find dwarf2 info before returning.
1610
7da9d88f
NC
16112001-02-07 Jakub Jelinek <jakub@redhat.com>
1612
1613 * elflink.h (is_global_symbol_definition): Rename to
1614 is_global_data_symbol_definition and have it reject function
1615 symbols.
1616 (elf_link_is_defined_archive_symbol): Use renamed function.
1617
7340082d
NC
16182001-02-07 Todd Vierling <tv@wasabisystems.com>
1619
1620 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1621 * libbfd.h (bfd_target_vector): Likewise.
1622 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1623 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1624 (_bfd_target_vector_entries): Calculate this based on the array
1625 typed _bfd_target_vector.
1626
2719f880
L
16272001-02-06 H.J. Lu <hjl@gnu.org>
1628
1629 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1630 internal symbols are not dynamic.
1631 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1632
175aa013
NC
16332001-02-06 Nick Clifton <nickc@redhat.com>
1634
1635 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1636 that it will not be pulled into the list of files that make up
1637 po/POTFILES.in.
1638 * Makefile.in: Regenerate.
1639 * po/bfd.pot: Regenerate.
1640
15e0ecd9
L
16412001-02-06 H.J. Lu <hjl@gnu.org>
1642
7898deda 1643 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1644 checking.
1645 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1646 external_PEI_IMAGE_hdr.
1647
27def10f
KH
16482001-02-06 Kazu Hirata <kazu@hxi.com>
1649
1650 * elf-m10200.c: Fix formatting.
1651
a0f2e916
NC
16522001-02-04 Nick Clifton <nickc@redhat.com>
1653
1654 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1655 rel, it will be handled later on.
1656
d96031fb
NC
16572001-02-02 Fred Fish <fnf@ninemoons.com>
1658
1659 * Makefile.in: Fix typo.
1660
010ac81f
KH
16612001-02-01 Kazu Hirata <kazu@hxi.com>
1662
1663 * elf-m10300.c: Fix formatting.
1664
3fab46d0
AM
16652001-01-30 Alan Modra <alan@linuxcare.com.au>
1666
1667 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1668 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1669 (elf64_hppa_object_p): Set architecture and machine from elf
1670 header flags.
3fab46d0 1671
95404643
RH
16722001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1673
1674 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1675 before mdebug.
1676
8fb35fed
RH
16772001-01-26 Richard Henderson <rth@redhat.com>
1678
1679 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1680 for non-default visibility.
1681 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1682 delete ugly macro and replace with pretty function.
1683
a4f68544
NC
16842001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1685
1686 * coff-go32.c: Update copyright.
1687 * coff-stgo32.c: Likewise.
1688 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1689 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1690 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1691 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1692
c02e7c3e
KH
16932001-01-25 Kazu Hirata <kazu@hxi.com>
1694
1695 * bfd-in2.h: Rebuild.
1696 * libbfd.h: Likewise.
1697
541389e2
L
16982001-01-23 H.J. Lu <hjl@gnu.org>
1699
1700 * bfd-in2.h: Rebuild.
1701
0007625f
L
17022001-01-23 H.J. Lu <hjl@gnu.org>
1703
1704 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1705 is NULL or PRIV(vms_rec) is outside of the buffer.
1706
b653e1b1
KH
17072001-01-23 Kazu Hirata <kazu@hxi.com>
1708
1709 * coff64-rs6000.c: Fix formatting.
1710 * coff-arm.c: Likewise.
1711 * coffgen.c: Likewise.
1712 * cofflink.c: Likewise.
1713 * coff-mcore.c: Likewise.
1714 * coff-mips.c: Likewise.
1715 * coff-pmac.c: Likewise.
1716 * coff-ppc.c: Likewise.
1717 * coff-rs6000.c: Likewise.
1718 * elf32.c: Likewise.
1719 * elf32-fr30.c: Likewise.
1720 * elf32-i370.c: Likewise.
1721 * elf32-i860.c: Likewise.
1722 * elf32-m32r.c: Likewise.
1723 * elf32-m68k.c: Likewise.
1724 * elf32-mcore.c: Likewise.
1725 * elf32-ppc.c: Likewise.
1726 * elf32-sh.c: Likewise.
1727 * elf32-v850.c: Likewise.
1728 * elf64-alpha.c: Likewise.
1729 * elf64-sparc.c: Likewise.
1730 * elflink.c: Likewise.
1731 * elflink.h: Likewise.
1732 * elf-m10200.c: Likewise.
1733 * elf-m10300.c: Likewise.
1734 * elfxx-ia64.c: Likewise.
1735
3fde5a36
KH
1736 * aoutx.h: Fix formatting.
1737 * bfd.c: Likewise.
1738 * bfd-in2.h: Likewise.
1739 * bfd-in.h: Likewise.
1740 * cpu-i386.c: Likewise.
1741 * cpu-m68hc11.c: Likewise.
1742 * dwarf2.c: Likewise.
1743 * elf64-x86-64.c: Likewise.
1744 * format.c: Likewise.
1745 * freebsd.h: Likewise.
1746 * hash.c: Likewise.
1747 * hp300hpux.c: Likewise.
1748 * hppabsd-core.c: Likewise.
1749 * hpux-core.c: Likewise.
1750
70256ad8
AJ
17512001-01-22 Bo Thorsen <bo@suse.de>
1752
1753 * elf64-x86-64.c: Added PIC support for X86-64.
1754 (elf64_x86_64_link_hash_newfunc): Function added.
1755 (elf64_x86_64_link_hash_table_create): Likewise.
1756 (elf64_x86_64_check_relocs): Likewise.
1757 (elf64_x86_64_gc_mark_hook): Likewise.
1758 (elf64_x86_64_gc_sweep_hook): Likewise.
1759 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1760 (elf64_x86_64_size_dynamic_sections): Likewise.
1761 (elf64_x86_64_discard_copies): Likewise.
1762 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1763 (elf64_x86_64_finish_dynamic_sections): Likewise.
1764 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1765
ee0bebb8
AJ
17662001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1767
1768 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1769 * Makefile.in: Regenerate.
1770
2a38f751
KH
17712001-01-21 Kazu Hirata <kazu@hxi.com>
1772
1773 * coff-a29k.c: Fix formatting.
1774
c8492176
L
17752001-01-19 H.J. Lu <hjl@gnu.org>
1776
1777 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1778 relocation section names.
1779 (elf_i386_relocate_section): Report files with bad relocation
1780 section names and return false.
1781
a5377ec0
AJ
17822001-01-17 Bo Thorsen <bo@suse.de>
1783
1784 * targets.c: Alphabetize list of xvecs.
1785
b352eebf
AM
17862001-01-14 Alan Modra <alan@linuxcare.com.au>
1787
d952f17a
AM
1788 * config.bfd: Add linux target variant for elfxx-hppa.
1789 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1790 bfd_elf64_hppa_linux_vec.
1791 * configure: Regenerate.
1792 * elf64-hppa.c: Include elf64-target.h again to support linux
1793 target variant.
1794 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1795 * elf32-hppa.c: Include elf32-target.h again to support linux
1796 target variant.
1797 (elf32_hppa_post_process_headers): New function.
1798 (elf_backend_post_process_headers): Define.
1799 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1800 bfd_elf32_hppa_linux_vec.
1801
c46b7515
AM
1802 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1803 and data_segment_base fields.
1804 (elf32_hppa_link_hash_table_create ): Init them.
1805 (elf32_hppa_check_relocs): Update comments.
1806 (hppa_record_segment_addr): New function.
1807 (elf32_hppa_relocate_section): Call it.
1808 (final_link_relocate): Handle R_PARISC_SEGREL32.
1809 (elf32_hppa_final_link): New function.
1810 (bfd_elf32_bfd_final_link): Define to call it.
1811 (hppa_unwind_entry_compare): New function.
1812 * cache.c (bfd_open_file): Create files in write+read mode.
1813
1814 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1815 SEGREL32 and numerous other relocs. Change duplicate
1816 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1817
d768008d
AM
1818 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1819 O_ACCMODE.
1820
150ccafb
AM
1821 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1822 .plt entries for DT_INIT and DT_FINI.
1823 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1824 DT_INIT and DT_FINI.
1825
b352eebf
AM
1826 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1827 offsets for stub .plt access if wide mode. Check offset in range.
1828
b3b9a062
NC
18292001-01-13 Nick Clifton <nickc@redhat.com>
1830
b7ed8fad
NC
1831 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1832 line.
1833
b3b9a062
NC
1834 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1835 line.
1836
6e0b89ee
AM
18372001-01-12 Alan Modra <alan@linuxcare.com.au>
1838
1839 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1840 * configure: Regenerate.
1841
0d2bcfaf
NC
18422001-01-11 Peter Targett <peter.targett@arccores.com>
1843
1844 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1845 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1846 * cpu-arc.c (arch_info_struct): Add entries for variants.
1847 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1848 (arc_get_mach) Don't assume machine names prefixed arc- before
1849 testing.
1850 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1851 selections.
1852 (arc_elf_final_write_processing) Likewise.
1853 (ELF_MACHINE_CODE) Use EM_ARC.
1854
c31c1f70
NC
18552001-01-10 Nick Clifton <nickc@redhat.com>
1856
2758140b 1857 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1858
5ad083e3
PB
18592001-01-07 Philip Blundell <philb@gnu.org>
1860
1861 * README: Replace `bug-gnu-utils@gnu.org' with
1862 `bug-binutils@gnu.org'.
1863
7eae7d22
KH
18642001-01-04 Kazu Hirata <kazu@hxi.com>
1865
1866 * som.c: Fix formatting.
1867
509945ae
KH
18682001-01-03 Kazu Hirata <kazu@hxi.com>
1869
3e932841
KH
1870 * ecoffswap.h: Fix formatting.
1871 * elf-bfd.h: Likewise.
1872 * elfarm-nabi.c: Likewise.
1873 * elfarm-oabi.c: Likewise.
1874 * elfcode.h: Likewise.
1875 * elfcore.h: Likewise.
1876 * elflink.c: Likewise.
1877 * elflink.h: Likewise.
1878 * elfxx-ia64.c: Likewise.
1879 * elfxx-target.h: Likewise.
1880 * libbfd.c: Likewise
509945ae
KH
1881 * linker.c: Likewise.
1882 * lynx-core.c: Likewise.
1883
892339ee
KH
18842001-01-02 Kazu Hirata <kazu@hxi.com>
1885
1886 * pc532-mach.c: Fix formatting.
1887 * pe-arm.c: Likewise.
1888 * pe-i386.c: Likewise.
1889 * pe-mips.c: Likewise.
1890 * pe-ppc.c: Likewise.
1891 * pe-sh.c: Likewise.
1892 * pei-mips.c: Likewise.
1893 * pei-sh.c: Likewise.
ee91ed79 1894 * peicode.h: Likewise.
892339ee
KH
1895 * ppcboot.c: Likewise.
1896 * ptrace-core.c: Likewise.
1897
3d855632
KH
18982001-01-01 Kazu Hirata <kazu@hxi.com>
1899
1900 * reloc.c: Fix formatting.
1901 * riscix.c: Likewise.
1902 * rs6000-core.c: Likewise.
1903 * xcoff-target.h: Likewise.
1904
a77a9fef
HPN
19052000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1906
1907 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1908 error, by calling bfd_default_set_arch_mach with incoming
1909 values.
1910
558e161f
KH
19112000-12-26 Kazu Hirata <kazu@hxi.com>
1912
1913 * vaxnetbsd.c: Fix formatting.
1914 * versados.c: Likewise.
1915 * vms-gsd.c: Likewise.
1916 * vms-hdr.c: Likewise.
1917 * vms-misc.c: Likewise.
1918
3c579812
AO
19192000-12-25 Alexandre Oliva <aoliva@redhat.com>
1920
1921 * archive.c (coff_write_armap): Don't write more than symbol_count
1922 `archive_member_file_ptr's.
1923
672579e9
KH
19242000-12-25 Kazu Hirata <kazu@hxi.com>
1925
1926 * vms-tir.c: Fix formatting.
1927
55f2d5ed
KH
19282000-12-23 Kazu Hirata <kazu@hxi.com>
1929
1930 * vms.c: Fix formatting.
1931 * vms.h: Likewise.
1932
23ccc829
NC
19332000-12-21 Santeri Paavolainen <santtu@ssh.com>
1934
1935 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1936
1937 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1938
1939 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1940 arithmetic.
1941
1942 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1943
1944 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1945
8c603c85
NC
19462000-12-21 Richard Sandiford <rsandifo@redhat.com>
1947
1948 * libbfd.c (bfd_get_bits): Added
1949 (bfd_put_bits): Likewise
1950 * bfd-in.h: Declared the above.
1951 * bfd-in2.h: Regenerated.
1952
5bff4f56
KH
19532000-12-20 Kazu Hirata <kazu@hxi.com>
1954
1955 * targets.c: Fix formatting.
1956 * tekhex.c: Likewise.
1957 * trad-core.c: Likewise.
1958
7b82c249
KH
19592000-12-19 Kazu Hirata <kazu@hxi.com>
1960
1961 * sco5-core.c: Fix formatting.
1962 * section.c: Likewise.
1963 * sparclinux.c: Likewise.
1964 * sparclynx.c: Likewise.
1965 * sparcnetbsd.c: Likewise.
1966 * srec.c: Likewise.
1967 * stabs.c: Likewise.
1968 * stab-syms.c: Likewise.
1969 * sunos.c: Likewise.
1970 * syms.c: Likewise.
1971 * sysdep.h: Likewise.
1972
f78c5281
NC
19732000-12-18 Nick Clifton <nickc@redhat.com>
1974
1975 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1976 defined.
1977 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1978 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1979
02b89dce
NC
19802000-12-18 Nick Clifton <nickc@redhat.com>
1981
1982 * vms-misc.c (_bfd_vms_get_record): Add default case to
1983 file_format switch.
1984
d20966a7
NC
19852000-12-15 Miloslav Trmac <mitr@volny.cz>
1986
1987 * elfcore.h (elf_core_file_p): Move to the start of the program
1988 headers before attempting to read them.
1989
6fa957a9
KH
19902000-12-14 Kazu Hirata <kazu@hxi.com>
1991
1992 * peigen.c: Fix formatting.
1993 * som.c: Likewise.
1994 * som.h: Likewise.
1995
9602af51
KH
19962000-12-13 Kazu Hirata <kazu@hxi.com>
1997
1998 * peigen.c: Fix formatting.
1999
514829c3
JW
20002000-12-12 Jim Wilson <wilson@redhat.com>
2001
2002 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2003
3a71aec8
NC
20042000-12-08 Mark Salter <msalter@redhat.com>
2005
2006 * binary.c (binary_set_section_contents): Ignore sections
2007 with zero size.
2008
1518639e
KH
20092000-12-12 Kazu Hirata <kazu@hxi.com>
2010
2011 * m68klinux.c: Fix formatting.
2012 * m68knetbsd.c: Likewise.
2013 * mipsbsd.c: Likewise.
2014 * netbsd-core.c: Likewise.
2015 * netbsd.h: Likewise.
2016 * newsos3.c: Likewise.
2017 * nlm32-alpha.c: Likewise.
2018 * nlm32-i386.c: Likewise.
2019 * nlm32-ppc.c: Likewise.
2020 * nlm32-sparc.c: Likewise.
2021 * nlmcode.h: Likewise.
2022 * nlmswap.h: Likewise.
2023 * nlm-target.h: Likewise.
2024 * ns32knetbsd.c: Likewise.
2025
b79e8c78
NC
20262000-12-10 Fred Fish <fnf@be.com>
2027
d952f17a
AM
2028 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2029 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2030
38b1a46c
NC
20312000-12-12 Nick Clifton <nickc@redhat.com>
2032
2033 * cpu-sh.c: Fix formattng.
2034 * elf.c: Fix formattng.
2035 * elf32-mips.c: Fix formattng.
2036 * elf32-sh.c: Fix formattng.
2037 * elf64-alpha.c: Fix formattng.
2038
857ec808
NC
20392000-12-09 Nick Clifton <nickc@redhat.com>
2040
2041 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2042 dwarf2_find_line_info as last parameter to invocation of
2043 _bfd_dwarf2_find_nearest_line.
2044 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2045 dwarf2_find_line_info as last parameter to invocation of
2046 _bfd_dwarf2_find_nearest_line.
2047
51db3708
NC
20482000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2049
2050 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2051 (BFD_LIBS): ...to here.
2052 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2053 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2054 * Makefile.in: Regenerate.
2055 * configure.in: Remove dwarf.lo from the elf shell variable.
2056 * configure: Regenerate.
2057 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2058 * libcoff.h: Regenerate.
d952f17a 2059 * coffgen.c (coff_find_nearest_line): Call
857ec808 2060 _bfd_dwarf2_find_nearest_line.
51db3708 2061 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2062 accordingly.
2063 (read_abbrevs): Likewise
2064 (decode_line_info): Likewise.
2065 (parse_comp_unit): Likewise.
2066 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2067 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2068 * libbfd.h: Regenerate.
2069 * elf.c (_bfd_elf_find_nearest_line): Update call.
2070 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2071 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2072 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2073 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2074 (styp_to_sec_flags): Handle DWARF2 sections.
2075 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2076 to _bfd_find_nearest_line.
2077 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2078 call to _bfd_find_nearest_line.
d952f17a 2079
435b1e90
KH
20802000-12-08 Kazu Hirata <kazu@hxi.com>
2081
2082 * coffgen.c: Fix formatting.
fe8bc63d 2083 * elf-m10300.c: Likewise.
435b1e90
KH
2084 * elf32-i386.c: Likewise.
2085 * elf32-i960.c: Likewise.
2086 * elf32-m68k.c: Likewise.
2087 * elf32-mcore.c: Likewise.
2088 * elf32-ppc.c: Likewise.
2089 * elf32-sh.c: Likewise.
2090 * elf32-sparc.c: Likewise.
2091 * elf32-v850.c: Likewise.
fe8bc63d
KH
2092 * elf64-alpha.c: Likewise.
2093 * elf64-hppa.c: Likewise.
2094 * elf64-mips.c: Likewise.
435b1e90 2095 * elf64-sparc.c: Likewise.
435b1e90 2096
8da6118f
KH
20972000-12-07 Kazu Hirata <kazu@hxi.com>
2098
2099 * elf32-ppc.c: Fix formatting.
2100 * elf64-x86-64.c: Likewise.
2101
a9922e52
UC
21022000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2103
2104 From Ralf Baechle <ralf@gnu.org>
2105
2106 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2107 BFDs containing no sections or empty .text, .data or .bss sections
2108 to be merged, regardless of their flags.
2109
c3668558
KH
21102000-12-06 Kazu Hirata <kazu@hxi.com>
2111
2112 * elf32-m32r.c: Fix formatting.
2113 * elf32-m68hc11.c: Likewise.
2114 * elf32-m68hc12.c: Likewise.
2115 * elf32-m68k.c: Likewise.
2116 * elf32-mcore.c: Likewise.
2117 * elf32-pj.c: Likewise.
2118 * elf32-ppc.c: Likewise.
2119
6609fa74
KH
21202000-12-05 Kazu Hirata <kazu@hxi.com>
2121
2122 * elf32-fr30.c: Fix formatting.
2123 * elf32-hppa.c: Likewise.
2124 * elf32-i370.c: Likewise.
2125 * elf32-i386.c: Likewise.
2126 * elf32-i860.c: Likewise.
2127 * elf32-i960.c: Likewise.
2128
a7c10850
KH
21292000-12-03 Kazu Hirata <kazu@hxi.com>
2130
2131 * elf32-arm.h: Fix formatting.
2132 * elf32-avr.c: Likewise.
2133 * elf32-cris.c: Likewise.
2134 * elf32-d10v.c: Likewise.
2135 * elf32-d30v.c: Likewise.
2136 * elf-hppa.h: Likewise.
2137 * elf-m10200.c: Likewise.
2138 * elf-m10300.c: Likewise.
2139
e7af610e
NC
21402000-12-01 Chris Demetriou <cgd@sibyte.com>
2141
d952f17a
AM
2142 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2143 bfd_mach_mips32_4k. Update FIXME comment.
2144 * archures.c (bfd_mach_mips32): New constant.
2145 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2146 the latter, renumber it.
2147 * bfd-in2.h (bfd_mach_mips32): New constant.
2148 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2149 the latter, renumber it.
2150 * cpu-mips.c (I_mips32): New constant.
2151 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2152 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2153 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2154 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2155 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2156 with E_MIPS_MACH_MIPS32_4K.
2157 (_bfd_mips_elf_final_write_processing): Replace
2158 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2159 bfd_mach_mips32 case.
2160 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2161 comparison with support for MIPS32.
2162 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2163 MIPS32.
2164
2165 * aoutx.h (NAME(aout,machine_type)): Add cases for
2166 bfd_mach_mips5 and bfd_mach_mips64.
2167 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2168 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2169 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2170 (arch_info_struct): Add entries for bfd_mach_mips5 and
2171 bfd_mach_mips64.
2172 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2173 _bfd_mips_elf_print_private_bfd_data): Add cases for
2174 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2175 (_bfd_mips_elf_final_write_processing): Add cases for
2176 bfd_mach_mips5 and bfd_mach_mips64.
2177
7898deda 2178 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2179 bfd_mach_mips_sb1 case.
7898deda
NC
2180 * archures.c (bfd_mach_mips_sb1): New constant.
2181 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2182 * cpu-mips.c (I_sb1): New constant.
d952f17a 2183 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2184 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2185 E_MIPS_MACH_SB1.
2186 (_bfd_mips_elf_final_write_processing): Add case for
2187 bfd_mach_mips_sb1.
2188
21892000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2190
2191 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2192 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2193 (sparc*-*-rtems*): Switched from a.out to ELF.
2194
8d88c4ca 21952000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2196
2197 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2198 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2199 (elf64-x86-64.lo): Add dependencies.
2200 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2201 bfd_mach_x86_64_intel_syntax.
2202 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2203 * config.bfd (x86_64): Add.
2204 * configure.in: Add support for bfd_elf64_x86_64_vec.
2205 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2206 (bfd_i386_arch, i8086_ar): Link in.
2207 * elf64-x86-64.c: New file.
2208 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2209 * targets.c (bfd_elf64_x86_64_vec): Add.
2210 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2211
fbc4fff4
KH
22122000-11-30 Kazu Hirata <kazu@hxi.com>
2213
2214 * xcofflink.c: Fix formatting.
2215
e60b52c6
KH
22162000-11-28 Kazu Hirata <kazu@hxi.com>
2217
2218 * aoutx.h: Fix formatting.
2219 * bfd-in.h: Likewise.
2220 * bfd-in2.h: Likewise.
2221 * cache.c: Likewise.
2222 * cisco-core.c: Likewise.
2223 * coff64-rs6000.c: Likewise.
2224 * coffcode.h: Likewise.
2225 * coffswap.h: Likewise.
2226 * corefile.c: Likewise.
be3ccd9c 2227 * elf32-mips.c: Likewise.
e60b52c6 2228
336eced2
KH
22292000-11-27 Kazu Hirata <kazu@hxi.com>
2230
2231 * aout-adobe.c: Fix formatting.
244148ad
KH
2232 * coff64-rs6000.c: Likewise.
2233 * coffgen.c: Likewise.
2234 * cofflink.c: Likewise.
336eced2 2235
d71f672e
PB
22362000-11-27 Philip Blundell <pb@futuretv.com>
2237
2238 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2239 (obj_coff_strings_written): New accessor macro for above.
2240 * libcoff.h: Regenerate.
2241 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2242 strings.
2243 * coffcode.h (coff_write_object_contents): No need to write out
2244 the string table if it's already been done.
2245
bc7a577d
PB
22462000-11-22 Philip Blundell <pb@futuretv.com>
2247
d952f17a 2248 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2249 weak undefined symbols.
2250
077b8428
NC
22512000-11-24 Nick Clifton <nickc@redhat.com>
2252
2253 * archures.c (bfd_mach_arm_5TE): Define.
2254 (bfd_mach_arm+XScale): Define.
2255 * bfd-in2.h: Regenerate.
2256
2257 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2258 BFD_RELOC_ARM_PCREL_BLX.
2259
2260 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2261 XScale machine numbers.
2262
2263 * config.bfd (xscale-elf): Add target.
2264 (xscale-coff): Add target.
2265
2266 * cpu-arm.c: Add xscale machine name.
2267 Add v5t, v5te and XScale machine numbers.
2268
e9e41bd9
KH
22692000-11-23 Kazu Hirata <kazu@hxi.com>
2270
2271 * aix386-core.c: Fix formatting.
2272
64bf6ae6
JW
22732000-11-22 Jim Wilson <wilson@redhat.com>
2274
2275 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2276 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2277 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2278 (ins_imms_scaled): Initialize sign_bit at function entry.
2279 (elf64_ia64_operands): Add missing initializers.
2280 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2281 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2282 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2283 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2284 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2285 parameters.
2286 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2287 and free_extsyms at function entry.
2288 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2289 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2290 (get_got): Delete unused local srel.
2291 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2292 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2293
1abaf976
KH
22942000-11-21 Kazu Hirata <kazu@hxi.com>
2295
6e301b2b
KH
2296 * coff-a29k.c: Fix formatting.
2297 * coff-h8500.c: Likewise.
2298 * coff-i960.c: Likewise.
2299 * coff-ppc.c: Likewise.
2300 * coff-rs6000.c: Likewise.
2301 * coff-stgo32.c: Likewise.
2302 * coff-tic54x.c: Likewise.
2303 * coff-w65.c: Likewise.
2304 * cpu-h8500.c: Likewise.
2305 * cpu-hppa.c: Likewise.
2306 * cpu-ns32k.c: Likewise.
2307 * ecoff.c: Likewise.
1abaf976
KH
2308 * ecofflink.c: Likewise.
2309
a0fc8ba1
NC
23102000-11-21 Nick Clifton <nickc@redhat.com>
2311
2312 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2313 remove possibility of infinite loop.
2314
beb0d161
KH
23152000-11-20 Kazu Hirata <kazu@hxi.com>
2316
2317 * aix386-core.c: Fix formatting.
2318 * aout-adobe.c: Likewise.
2319 * aout-arm.c: Likewise.
2320 * aout-encap.c: Likewise.
2321 * aout-ns32k.c: Likewise.
2322 * aout-target.h: Likewise.
2323 * aout-tic30.c: Likewise.
2324 * aoutf1.h: Likewise.
2325 * aoutx.h: Likewise.
2326 * archive.c: Likewise.
eb6e10cb
KH
2327 * bfd-in.h: Likewise.
2328 * bfd-in2.h: Likewise.
2329 * bfd.c: Likewise.
2330 * bout.c: Likewise.
beb0d161 2331
2c2475db
JW
23322000-11-17 H.J. Lu <hjl@gnu.org>
2333
2334 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2335 pltoff entries for DT_INIT and DT_FINI.
2336 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2337 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2338 entries.
2339
18b27f17
RH
23402000-11-16 Richard Henderson <rth@redhat.com>
2341
2342 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2343 (allocate_dynrel_entries): Likewise.
2344 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2345 (set_pltoff_entry): Likewise.
2346 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2347 (elfNN_ia64_reloc_type_lookup): Likewise.
2348 (elfNN_ia64_install_value): Likewise.
2349 (elfNN_ia64_relocate_section): Likewise.
2350 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2351 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2352
98591c73
KH
23532000-11-16 Kazu Hirata <kazu@hxi.com>
2354
71f6b586
KH
2355 * cpu-a29k.c: Fix formatting.
2356 * cpu-alpha.c: Likewise.
2357 * cpu-arm.c: Likewise.
2358 * cpu-avr.c: Likewise.
2359 * cpu-d10v.c: Likewise.
2360 * cpu-h8500.c: Likewise.
2361 * cpu-hppa.c: Likewise.
2362 * cpu-i370.c: Likewise.
2363 * cpu-i386.c: Likewise.
2364 * cpu-i960.c: Likewise.
2365 * cpu-ia64-opc.c: Likewise.
2366 * cpu-ia64.c: Likewise.
2367 * cpu-m32r.c: Likewise.
2368 * cpu-m68hc11.c: Likewise.
2369 * cpu-m68hc12.c: Likewise.
2370 * cpu-m68k.c: Likewise.
2371 * cpu-m88k.c: Likewise.
2372 * cpu-mips.c: Likewise.
2373 * cpu-ns32k.c: Likewise.
2374 * cpu-pj.c: Likewise.
2375 * cpu-powerpc.c: Likewise.
2376 * cpu-sh.c: Likewise.
2377 * cpu-sparc.c: Likewise.
2378 * cpu-tic54x.c: Likewise.
2379 * cpu-v850.c: Likewise.
2380 * cpu-vax.c: Likewise.
2381 * cpu-w65.c: Likewise.
2382 * cpu-we32k.c: Likewise.
2383 * cpu-z8k.c: Likewise.
2384 * dwarf1.c: Likewise.
98591c73
KH
2385 * dwarf2.c: Likewise.
2386
c5930ee6
KH
23872000-11-15 Kazu Hirata <kazu@hxi.com>
2388
2389 * coff-arm.c: Fix formatting.
2390 * coff-ppc.c: Likewise.
2391 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2392 * coff-sh.c: Likewise.
2393 * coff-sparc.c: Likewise.
2394 * coff-tic30.c: Likewise.
2395 * coff-tic54x.c: Likewise.
2396 * coff-tic80.c: Likewise.
2397 * coff-w65.c: Likewise.
2398 * coff-we32k.c: Likewise.
2399 * coff-z8k.c: Likewise.
c5930ee6 2400
dac544a8
RH
24012000-11-15 Richard Henderson <rth@redhat.com>
2402
2403 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2404 section with the same ALLOC|LOAD flags as the source section.
2405
c810873d
JJ
24062000-11-14 Jakub Jelinek <jakub@redhat.com>
2407
2408 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2409 by STO_ALPHA constants.
2410
43646c9d
KH
24112000-11-14 Kazu Hirata <kazu@hxi.com>
2412
2413 * coff-pmac.c: Fix formatting.
2414 * coff-ppc.c: Likewise.
2415
051b8577
L
24162000-11-13 H.J. Lu <hjl@gnu.org>
2417
2418 * elflink.h (elf_link_add_object_symbols): Also add indirect
2419 symbols for common symbols with the default version.
2420
90460d97
PB
24212000-11-09 Philip Blundell <pb@futuretv.com>
2422
2423 * section.c (STD_SECTION): Set gc_mark flag.
2424
b48499ec
KH
24252000-11-11 Kazu Hirata <kazu@hxi.com>
2426
2427 * coff-i960.c: Likewise.
2428 * coff-m68k.c: Likewise.
2429 * coff-m88k.c: Likewise.
2430 * coff-mcore.c: Likewise.
2431 * coff-mips.c: Likewise.
2432
c5aeb40f
AO
24332000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2434
2435 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2436
5fcfd273
KH
24372000-11-10 Kazu Hirata <kazu@hxi.com>
2438
2439 * coff-h8300.c: Fix formatting.
2440 * coff-h8500.c: Likewise.
2441 * coff-i386.c: Likewise.
2442 * coff-i860.c: Likewise.
2443 * coff-i960.c: Likewise.
2444 * coff-ia64.c: Likewise.
2445
047066e1
KH
24462000-11-09 Kazu Hirata <kazu@hxi.com>
2447
2448 * archive.c: Fix formatting.
2449 * archures.c: Likewise.
2450
9a951beb
RH
24512000-11-07 Richard Henderson <rth@redhat.com>
2452
2453 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2454 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2455 * section.c (bfd_set_section_contents): Call memcpy if
2456 section->contents set and location not equal to contents plus offset.
2457
aebad5fe
KH
24582000-11-08 Kazu Hirata <kazu@hxi.com>
2459
8546af74
KH
2460 * bfd-in.h: Fix formatting.
2461 * bfd-in2.h: Likewise.
2462 * bfd.c: Likewise.
aebad5fe
KH
2463 * binary.c: Likewise.
2464 * bout.c: Likewise.
346ceb11
KH
2465 * coff-a29k.c: Likewise.
2466 * coff-alpha.c: Likewise.
2467 * coff-apollo.c: Likewise.
2468 * coff-aux.c: Likewise.
aebad5fe 2469
0ef5a5bd
KH
24702000-11-07 Kazu Hirata <kazu@hxi.com>
2471
2472 * aix386-core.c: Fix formatting.
2473 * aoutf1.h: Likewise.
2474 * aoutx.h: Likewise.
2475 * archures.c: Likewise.
2476 * armnetbsd.c: Likewise.
2477
d562d2fb
AM
24782000-11-07 Alan Modra <alan@linuxcare.com.au>
2479
2480 * coff-h8300.c (special): Adjust reloc address.
2481
bbe66d08
JW
24822000-11-06 Steve Ellcey <sje@cup.hp.com>
2483
4efc3e05 2484 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2485 to differentiate elf32 and elf64 on ia64.
2486 * bfd-in2.h: Regenerate.
2487 * config.bfd: Add target for "ia64*-*-hpux*".
2488 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2489 * configure: Regenerate.
4efc3e05 2490 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2491 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2492
2493 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2494 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2495 * Makefile.in: Regnerate.
4efc3e05 2496 * elf64-ia64.c: Deleted.
bbe66d08
JW
2497 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2498
c4dfa77f
KH
24992000-11-06 Kazu Hirata <kazu@hxi.com>
2500
2501 * aout-adobe.c: Fix formatting.
2502 * aout-arm.c: Likewise.
2503 * aout-cris.c: Likewise.
2504 * aout-encap.c: Likewise.
2505 * aout-ns32k.c: Likewise.
2506 * aout-target.h: Likewise.
2507 * aout-tic30.c: Likewise.
2508
cf919dfd
PB
25092000-11-05 Philip Blundell <philb@gnu.org>
2510
2511 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2512 BFDs containing no sections to be merged, regardless of their flags.
2513
25142000-11-04 Philip Blundell <philb@gnu.org>
2515
2516 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2517 if a relocation for an undefined symbol also results in an
2518 overflow.
2519
8d88c4ca 25202000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
2521
2522 * config.bfd: Add support for Sun Chorus.
2523
46d59bfa
DB
25242000-11-05 David O'Brien <obrien@FreeBSD.org>
2525
2526 * configure.in: Recognize alpha-*-freebsd*.
2527 * configure: Regenerate.
2528
d952f17a 25292000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
2530
2531 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2532 (Chunk): New global variable set by a parameter in objcopy.c.
2533 (S3Forced): New global variable set by a parameter in
2534 objcopy.c.
2535 (srec_set_section_contents): If S3Forced is true, always generate
2536 S3 records.
2537 (srec_write_section): Use 'Chunk' to limit maximum length of S
2538 records.
2539
59ff2774
NC
25402000-11-02 Per Lundberg <plundis@chaosdev.org>
2541
2542 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2543 * Makefile.in: Regenerate.
2544 * bfd-in2.h: Regenerate.
2545 * po/bfd.pot: Regenerate.
d952f17a 2546
ee43f35e
PB
25472000-10-31 Philip Blundell <philb@gnu.org>
2548
2549 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2550 EF_SOFT_FLOAT if it is defined.
2551
1006ba19
PB
25522000-10-27 Philip Blundell <philb@gnu.org>
2553
2554 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2555 attempts to mix PIC code with non-PIC, just mark the output as
2556 being position dependent.
d952f17a
AM
2557 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2558 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2559 all mismatches, not just the first one.
d952f17a 2560
c4920b97
NC
25612000-10-25 Chris Demetriou <cgd@sibyte.com>
2562
2563 * ieee.c (ieee_archive_p): Plug one of many possible
2564 memory leaks in error handling.
2565
19f7b010
JJ
25662000-10-20 Jakub Jelinek <jakub@redhat.com>
2567
2568 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2569 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2570 Support v8plusb.
2571 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2572 sparc64_elf_object_p): Support v9b.
2573 * archures.c: Declare v8plusb and v9b machines.
2574 * bfd-in2.h: Ditto.
2575 * cpu-sparc.c: Ditto.
2576
e1e0340b
GK
25772000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2578
ea5fbc67
GK
2579 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2580 of a GOT reloc.
2581
e1e0340b
GK
2582 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2583 (SYMBOL_CALLS_LOCAL): New macro.
2584 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2585 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2586 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2587 (ppc_elf_relocate_section): Use flag variable to determine
2588 whether the relocation refers to a local symbol.
2589 Test whether a PLTREL24 reloc will produce a reloc by looking
2590 to see whether a PLT entry was made.
2591
a4b120e1
GK
25922000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2593
2594 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2595 entries that could serve as a definition for a weak symbol.
2596
5af5b85b
UC
25972000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2598
2599 From Ralf Baechle <ralf@gnu.org>
2600
2601 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2602 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2603 against local symbols.
2604 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2605
3ef20aaa
AM
26062000-10-12 Alan Modra <alan@linuxcare.com.au>
2607
24376d1b
AM
2608 * section.c (struct sec): Add kept_section.
2609 (struct bfd_comdat_info): Remove sec, we can use above.
2610 (STD_SECTION): Add initializer.
2611 (bfd_make_section_anyway): Init here too.
2612
2613 * bfd-in2.h: Regenerate.
2614
2615 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2616 zeroing of `flags'.
24376d1b
AM
2617 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2618 fudge values for discarded link-once section symbols.
2619
3ef20aaa
AM
2620 * elf64-hppa.c: Include alloca-conf.h
2621
c0e219cc
AM
26222000-10-11 Alan Modra <alan@linuxcare.com.au>
2623
d01e2a23
AM
2624 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2625
c0e219cc
AM
2626 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2627
fe268b66
AM
26282000-10-10 Alan Modra <alan@linuxcare.com.au>
2629
2630 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2631
4d7ce4dd
AM
26322000-10-10 Tom Rix <trix@redhat.com>
2633
d952f17a 2634 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2635 newsect->symbol fails to alloc. Use bfd_release instead of free.
2636
f3b6f7c3
RH
26372000-10-09 Richard Henderson <rth@cygnus.com
2638
2639 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2640 (elf64_ia64_unwind_entry_compare): New.
2641 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2642
44852b19
AM
26432000-10-07 Alan Modra <alan@linuxcare.com.au>
2644
fc8c40a0
AM
2645 * elflink.h (size_dynamic_sections): Don't create various tags if
2646 .dynstr is excluded from the link. Don't set first dynsym entry
2647 if dynsymcount is zero.
2648 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2649 .dynsym excluded from the link. Don't try to write any dynamic
2650 sections excluded from the link.
2651
44852b19
AM
2652 * elf.c (swap_out_syms): Handle global section symbols.
2653
3e4554a2
DD
26542000-10-05 DJ Delorie <dj@redhat.com>
2655
2656 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2657 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2658 (coff_write_relocs): write extended reloc count
2659 (coff_write_object_contents): account for extended relocs
2660
fa152c49
JW
26612000-10-05 Jim Wilson <wilson@cygnus.com>
2662
2663 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2664 field.
2665 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2666 elf_backend_section_flags function.
2667 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2668 code.
2669 (elf64_ia64_section_flags): New function containing flag conversion
2670 code.
2671 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2672 * elfxx-target.h (elf_backend_section_flags): Define.
2673 (elfNN_bed): Initialize elf_backend_section_flags field.
2674
36605136
AM
26752000-10-02 Alan Modra <alan@linuxcare.com.au>
2676
2677 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2678 _bfd_elf32_gc_record_vtable. Correct a comment.
2679
4b6609a0
UC
26802000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2681
2682 From Ralf Baechle <ralf@gnu.org>
2683
2684 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2685 produces binaries with got[1] = 0x80000001 to differenciate them
2686 for the dynamic linker from the broken binaries produced by old
2687 versions.
36605136 2688
f572a39d
AM
26892000-09-30 Petr Sorfa <petrs@sco.com>
2690
2691 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2692 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2693 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2694 * configure: Regenerate.
2695
4da81684
HPN
26962000-09-27 Hans-Peter Nilsson <hp@axis.com>
2697
2698 Define two bfd_targets for absence and presence of leading
2699 underscore on symbols. Make sure to only link same kind.
2700 * elf32-cris.c (cris_elf_object_p,
2701 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2702 cris_elf_merge_private_bfd_data): New.
2703 (elf_backend_object_p, elf_backend_final_write_processing,
2704 bfd_elf32_bfd_print_private_bfd_data,
2705 bfd_elf32_bfd_merge_private_bfd_data): Define.
2706 <Target vector definition>: Include elf32-target.h twice with
2707 different macro settings:
2708 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2709 bfd_elf32_us_cris_vec.
2710 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2711 (elf_symbol_leading_char): First as 0, then '_'.
2712 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2713 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2714 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2715 * configure: Regenerate.
2716 * targets.c: Declare bfd_elf32_us_cris_vec.
2717 * po/bfd.pot: Regenerate.
2718
9a5aca8c
AM
27192000-09-29 Momchil Velikov <velco@fadata.bg>
2720
2721 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2722 R_ARM_THM_PC22 relocations.
2723
512a2384
AM
27242000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2725
2726 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2727
6c99a5c3
AM
27282000-09-29 Momchil Velikov <velco@fadata.bg>
2729
2730 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2731 is has the SEC_HAS_CONTENTS flag set.
2732