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