Fix typos
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
89084430
NC
12001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2
3 * configure.host (mips64-*-linux): Reformat.
4
68fb2e56
AM
52001-06-21 Alan Modra <amodra@bigpond.net.au>
6
7 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
8 allocate local .got space. Use shortcuts from hash table for .got
9 and .plt rather than comparing section names.
10 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
11 adjusting index into local_got_refcounts to document what we are
12 really doing.
13 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
14 Tidy .got and .plt error checking.
15
9317eacc
CM
162001-06-20 Catherine Moore <clm@redhat.com>
17
18 * elf-bfd.h (struct elf_backend_data):
19 elf_backend_emit_relocs: New field: Function for emitting
20 relocs.
21 elf_backend_count_relocs: New field: Function for determining
22 the number of relocs to be emitted.
23 * elfxx-target.h: Provide default (NULL) values for
24 elf_backend_emit_relocs and elf_backend_count_relocs.
25 * elflink.h (elf_link_size_reloc_section): Make the hash table
26 big enough to hold the relocs counted by either reloc_count or
27 o->reloc_count.
28 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
29 should be emitted, either because of a command line option
30 stored in the info structure or because the target provides a
31 special reloc emitting function.
32 If the target provides a reloc counting function use it,
33 unless performing a relocatable link or emitting all relocs.
34 Also set the SEC_RELOC flag on any output section which will
35 contain relocs.
36 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
37 should be emitted, either because of a command line option
38 stored in the info structure or because the target provides a
39 special reloc emitting function.
40 If the target provides a reloc emitting function, use it,
41 unless performing a relocatable link or emitting all relocs.
42
161d71a6
L
432001-06-20 H.J. Lu <hjl@gnu.org>
44
45 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
46 allocate local .got space.
47
fd8ab9e5
AJ
482001-06-19 Andreas Jaeger <aj@suse.de>
49
50 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
51 dynamic symbols.
52
99293407
HPN
532001-06-18 Hans-Peter Nilsson <hp@axis.com>
54
55 * elflink.h (struct elf_assign_sym_version_info): Remove member
56 export_dynamic. All users changed to use info member.
57 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
58 export_dynamic, instead use member in parameter info.
59 * bfd-in.h (bfd_elf32_size_dynamic_sections,
60 bfd_elf64_size_dynamic_sections): Update prototype.
61 * bfd-in2.h: Regenerate.
62
bc2b6df7
L
632001-06-18 H.J. Lu <hjl@gnu.org>
64
65 * elflink.h (elf_info_failed): Add a new field, verdefs.
66 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
67 elf_export_symbol.
68 (elf_export_symbol): Check eif->verdefs to decide if a symbol
69 should be exported.
70
43917054
L
712001-06-17 H.J. Lu <hjl@gnu.org>
72
73 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
74 readonly_reloc, to record if a relocation in the .rel.dyn
75 section is against a read-only section.
76 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
77 field to false.
78 (_bfd_mips_elf_check_relocs): Record if there is a relocation
79 in the .rel.dyn section against a read-only section by setting
80 DF_TEXTREL or readonly_reloc.
81 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
82 it is true.
83 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
84 there is a relocation in the .rel.dyn section against a
85 read-only section.
86 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
87 DF_TEXTREL is set.
88
7c8ca0e4
NC
892001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
90
91 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
92 function. Move flagword result into parameter list. Remove
93 comment about setting bfd_error_handler to intercept failure
94 results.
95 * coffgen.c (make_a_section_from_file): Examine result of
96 calling bfd_coff_styp_to_sec_flags and pass a failure back to
97 caller.
98 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
99 function. Move flagword result into parameter list.
100 * libcoff.h: Regenerate.
101 * libecoff.h: Regenerate.
102
dee0a8f4
NC
1032001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
104
105 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
106 section is going to follow it.
107
0d1ea5c0
CM
1082001-06-12 Catherine Moore <clm@redhat.com>
109
110 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
111 with the file_align entry from elf_backend_data.
112 (elf_gc_smash_unused_vtentry_relocs): Likewise.
113 (elf_gc_record_vtentry): Likewise.
114
4e8a9624
AM
1152001-06-10 Alan Modra <amodra@bigpond.net.au>
116
117 * elflink.h: Whitespace changes.
118 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
119 rather than "unsigned char".
120 (elf_link_output_relocs): Likewise.
121 (elf_link_input_bfd): Likewise.
122 (elf_reloc_link_order): LIkewise.
123 * elf.c: s/CONST/const/. Whitespace changes.
124 * elf32-mips.c: Formatting fix.
125
126 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
127 * Makefile.in: Regenerate.
128 * po/Make-in: Remove trailing tab.
129
7a25cd3e
PB
1302001-06-09 Philip Blundell <philb@gnu.org>
131
132 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
133 change.
134 (elf32_arm_plt_entry): Likewise.
135
3f5a136d
L
1362001-06-08 H.J. Lu <hjl@gnu.org>
137
138 * elf.c (swap_out_syms): Keep names for global section symbols.
139
d8fe1fed
L
1402001-06-07 H.J. Lu <hjl@gnu.org>
141
142 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
143 MIPS-based machines need it.
144
c36e006f
L
1452001-06-07 H.J. Lu <hjl@gnu.org>
146
147 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
148 for SGI only.
149
150 * config.bfd: Remove ecoff from Linux/mips.
151
cc78d0af
AJ
1522001-06-07 Andreas Jaeger <aj@suse.de>
153
154 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
155 assertion.
156 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
157 alignment of 8 for .rela sections; handle further relocations.
158
879db8be
NC
1592001-06-06 Christian Groessler <cpg@aladdin.de>
160
161 * coff-z8k.c: Fix formatting.
162 Fix howtos: howto->size was always 1.
163
cbb1fd50
NC
1642001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
165
166 * configure.host (mips64*-*-linux*): Define.
167
73a74a62
AM
1682001-06-05 Alan Modra <amodra@bigpond.net.au>
169
6725bdbf
AM
170 * elf32-i386.c (elf_i386_discard_copies): Rename to
171 discard_copies, and use elf_link_hash_entry arg rather than
172 elf_i386_link_hash_entry.
173 (elf_i386_link_hash_traverse): Delete.
174 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
175 Tidy sizing of dynamic sections.
176 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
177 possible .plt entries.
178 (elf_i386_gc_sweep_hook): Likewise.
179 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
180 everything with plt.refcount <= 0.
181
182 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
183 .relgot space here.
184 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 185 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
186 .rel.plt here..
187 (allocate_plt_and_got): ..instead do it all here. New function.
188 (elf_i386_size_dynamic_sections): Allocate local .got space and
189 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
190 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
191 rather than gc variety).
192 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
193 (elf_i386_relocate_section): Use it here and correct handling of
194 R_386_GOT32. Provide section and offset for "unresolvable
195 relocation" error message.
196 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
197
198 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
199 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
200 (elf_i386_link_hash_table_create): Init them.
201 (create_got_section): New function.
202 (elf_i386_create_dynamic_sections): New function.
203 (elf_backend_create_dynamic_sections): Set to above.
204 (elf_i386_check_relocs): Use shortcuts from hash table rather than
205 calling bfd_get_section_by_name.
206 (elf_i386_gc_sweep_hook): Likewise.
207 (elf_i386_adjust_dynamic_symbol): Likewise.
208 (elf_i386_size_dynamic_sections): Likewise.
209 (elf_i386_relocate_section): Likewise.
210 (elf_i386_finish_dynamic_sections): Likewise.
211
73a74a62
AM
212 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
213
24a5e751
L
2142001-06-02 H.J. Lu <hjl@gnu.org>
215
216 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
217 and ELFOSABI_HPUX.
218 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
219
15103188
L
2202001-06-02 H.J. Lu <hjl@gnu.org>
221
222 * aout-cris.c (MACHTYPE_OK): New. Defined.
223
2f484710
HPN
2242001-06-02 Hans-Peter Nilsson <hp@axis.com>
225
226 * section.c (_bfd_strip_section_from_output): Handle NULL
227 output_section.
228
a5ac692b
L
2292001-06-02 H.J. Lu <hjl@gnu.org>
230
231 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
232 rs6000coff64_vec only if BFD64 is defined.
233 (powerpc64-*-aix*): Enable only if BFD64 is defined.
234
27e53099
L
2352001-06-02 H.J. Lu <hjl@gnu.org>
236
237 * coff-ia64.c (ia64coff_object_p): Rewrite with
238 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
239
80643fbc
AJ
2402001-06-01 Andreas Jaeger <aj@suse.de>
241
242 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
243 relocation, small reformatting.
244
6b3db546
AJ
2452001-05-29 Andreas Jaeger <aj@suse.de>
246
247 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
248 (elf64_x86_64_relocate_section): Likewise.
249
4dc86686
AM
2502001-05-30 Alan Modra <amodra@one.net.au>
251
252 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
253 millicode. Don't allocate .got and .rela.got space here..
254 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
255 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
256 .rela.plt here..
257 (hppa_handle_PIC_calls): ..nor here..
258 (allocate_plt_and_got): ..instead do it all here. New function.
259 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
260 call allocate_plt_and_got. No need to zap .got if not dynamic.
261 (elf32_hppa_final_link): Call regular bfd_final_link instead of
262 gc_common_final_link.
263 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
264 (elf32_hppa_relocate_section): Use it here.
265 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
266 dynamic_sections_created.
267 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
268
de41dcd8
AJ
2692001-05-28 Andreas Jaeger <aj@suse.de>
270
271 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
272 generic version since we want a hashsize of 4.
273 (elf_backend_size_info): Likewise.
274
209f668e
NC
2752001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
276
209f668e
NC
277 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
278 a zeroing loop.
279 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
280 (elf_link_input_bfd): Likewise.
281 (elf_reloc_link_order): Likewise.
282 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
283 relocations correctly.
284
f7a74f8c
NC
2852001-05-28 Nicolas Pitre <nico@cam.org>
286
287 * elf32-arm.h: fix PLT generation for big endian ARM
288
8dea1268
AM
2892001-05-28 Alan Modra <amodra@one.net.au>
290
291 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
292 for symbols forced local that need plabels.
293 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
294 .plt.rela for local syms if non-shared.
295 (hppa_build_one_stub): Mask lsb of plt.offset.
296 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
297 (clobber_millicode_symbols): Correct comment.
298 (elf32_hppa_relocate_section): Likewise.
299 (elf32_hppa_finish_dynamic_symbol): Likewise.
300
0f2712ed
NC
3012001-05-28 Jeff Sturm <jsturm@one-point.com>
302
303 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
304 * bfd-in2.h: Regenerate.
305 * libbfd.h: Regenerate.
306 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
307 and BFD_RELOC_SPARC_UA64 mapping
308 * elf64-sparc.c: Likewise.
de41dcd8 309
6768c14a
L
3102001-05-25 H.J. Lu <hjl@gnu.org>
311
312 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
313 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
314 (coff-rs6000.lo): Remove the old dependency.
315 * Makefile.in: Rebuild.
316
317 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
318 coff-rs6000.lo.
319
b55039f4
L
3202001-05-25 H.J. Lu <hjl@gnu.org>
321
322 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
323 rs6000coff_core_file_matches_executable_p,
324 rs6000coff_core_file_failing_command and
325 rs6000coff_core_file_failing_signal only if AIX_CORE is
326 defined.
327 (pmac_xcoff_vec): Likewise.
328 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
329
64e9ece0
TW
3302001-05-25 Timothy Wall <twall@redhat.com>
331
332 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
333 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
334
f34d8777
L
3352001-05-25 H.J. Lu <hjl@gnu.org>
336
337 * bfd-in2.h: Regenerated.
338 * libcoff.h: Likewise.
339
49e9d0d3
AM
3402001-05-25 Alan Modra <amodra@one.net.au>
341
342 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
343 undefined millicode syms in shared libs.
344 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
345 (elf32_hppa_check_relocs): Likewise.
346 (elf32_hppa_adjust_dynamic_symbol): Likewise.
347 (elf32_hppa_size_dynamic_sections): Likewise.
348 (elf32_hppa_relocate_section): Likewise.
349 (elf32_hppa_finish_dynamic_symbol): Likewise.
350 (elf32_hppa_finish_dynamic_sections): Likewise.
351
beb1bf64
TR
3522001-05-24 Tom Rix <trix@redhat.com>
353
354 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
355 xcoff-target.h not used to define rs6000 or ppc bfd.
356 * Makefile.in same
357
358 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
359 to 64 bit.
360
361 * coff-rs6000.c : Many changes for 64 bit support. Move common
362 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
363 and pmac_xcoff_vec
364
365 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
366 linker now supported. Explictly define the rs6000coff64_vec.
367
368 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 369 (coff_print_aux) same
beb1bf64
TR
370 (coff_write_object_contents) same
371 (coff_slurp_line_table) same
372
373 * coffgen.c : (coff_fix_symbol_name) formatting
374 (coff_mangle_symbols) xcoff 64 bit support
375 (coff_write_symbol) same
376 (coff_write_alien_symbol) same
377 (coff_write_native_symbol) same
378 (coff_write_symbols) same
379 (coff_get_symbol_info) same
380 (bfd_coff_get_syment) same
381 (coff_print_symbol) same
382
383 * config.bfd : add powerpc64-*-aix* target
384
385 * libcoff-in.h : formatting
386
387 * libcoff.h : move xcoff extern declarations to libxcoff.h
388
389 * libxcoff.h : New file
390
de41dcd8
AJ
391 * xcofflink.c : Many changes for xcoff64 support. Move common
392 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
393 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
394 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
395
396 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
397 aix4.2+ -binitfini.
398
399 (xcoff_build_ldsyms) : handle special __rtinit symbol.
400
e90fdc1a
AO
4012001-05-23 Alexandre Oliva <aoliva@redhat.com>
402
403 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
404 s/ENTIRES/ENTRIES/.
405
d1cf510e
NC
4062001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
407
c2feb664
NC
408 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
409 * libbfd.h: Regenerate.
4e8a9624 410 * bfd-in2.h: Regenerate.
c2feb664 411
d1cf510e
NC
412 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
413 * archures.c (bfd_mach_mips12000): Define.
414 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
415 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
416 support.
417 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
418 * bfd-in2.h: Regenerate.
419 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
420
6c426cf3
NC
4212001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
422
423 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
424 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
425 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
426 that is used by GCC.
427
d9bc7a44
NC
4282001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
429
430 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
431 of entries in a structured section.
432 * elf.c: Use new macro.
433 * elf32-i386.c: Use new macro.
434 * elf32-mips.c: Use new macro.
435 * elf64-alpha.c: Use new macro.
436 * elf64-sparc.c: Use new macro.
437 * elfcode.h: Use new macro.
438 * elflink.h: Use new macro.
439
4402001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
441
442 * bfdint.texi: Replace -oformat with --oformat.
443
f5198f61
AJ
4442001-05-21 Andreas Jaeger <aj@suse.de>
445
446 * dwarf2.c (decode_line_info): Fix error message.
447 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
448 adjust error message.
449
7913c838
L
4502001-05-18 H.J. Lu <hjl@gnu.org>
451
452 * elflink.h (elf_link_add_object_symbols): Revert the last
453 change.
454
e0522e89
AM
4552001-05-17 Alan Modra <amodra@one.net.au>
456
457 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
458 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
459 (hppa_build_one_stub): Add an assert to check plt.offset.
460
96fd004e
L
4612001-05-17 H.J. Lu <hjl@gnu.org>
462
463 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
464 version definition to basename of the output filename.
465
f3876d8b
L
4662001-05-17 H.J. Lu <hjl@gnu.org>
467
468 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
469 basename of the bfd filename.
470
d1778b88
AM
4712001-05-16 Alan Modra <amodra@one.net.au>
472
473 * section.c (asection): Add linker_has_input field.
474 (STD_SECTION): Adjust initialization to suit.
475 * ecoff.c (bfd_debug_section): Likewise.
476 * bfd-in2.h: Regenerate.
477
2a0fa943
AO
4782001-05-15 Alexandre Oliva <aoliva@redhat.com>
479
480 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
481 negative 32-bit operands to 16 operands when the operand is
482 going to be zero-extended by the modified opcode.
483
bcee8eb8
AM
4842001-05-12 Peter Targett <peter.targett@arccores.com>
485
486 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
487 name for 'arc5' core versions.
488 (bfd_arc_arch): Make bfd_mach_arc_6 default.
489
490 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
491 architecture.
492 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
493
579f31ac
JJ
4942001-05-11 Jakub Jelinek <jakub@redhat.com>
495
496 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
497 sections as well.
498 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
499 to .gnu.linkonce.t.FOO text section.
500
8550eb6e
JJ
5012001-05-11 Jakub Jelinek <jakub@redhat.com>
502
503 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
504 fields, change sec into secinfo.
505 (struct sec_merge_info): Add chain, remove last fields.
506 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
507 (sec_merge_hash_lookup): If lookup could not use a string only
508 because it has bad alignment, mark the old string for deletion.
509 (sec_merge_add): Add secinfo argument. Don't compute entry's
510 position, instead record the section.
511 (sec_merge_emit): Update for the sec into secinfo change in
512 struct sec_merge_hash_entry.
513 (_bfd_merge_section): Only record the section for merging, defer
514 putting strings into the hash table.
515 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
516 _bfd_merge_sections): New functions.
517 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
518 changes.
519 * libbfd-in.h (_bfd_merge_sections): Add prototype.
520 (_bfd_nolink_bfd_merge_sections): Define.
521 * libbfd.h: Likewise.
522 (bfd_generic_merge_sections): Add prototype.
523 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
524 (struct bfd_target): Likewise.
525 * bfd.c (bfd_merge_sections): Define.
526 * bfd-in2.h: Rebuilt.
527 * elf.c (_bfd_elf_merge_sections): New function.
528 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
529 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
530 * reloc.c (bfd_generic_merge_sections): New function.
531 * vms.c (vms_bfd_merge_sections): New function.
532 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
533 * aout-target.h (MY_bfd_merge_sections): Define.
534 * aout-tic30.c (MY_bfd_merge_sections): Define.
535 * binary.c (binary_bfd_merge_sections): Define.
536 * bout.c (b_out_bfd_merge_sections): Define.
537 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
538 * coffcode.c (coff_bfd_merge_sections): Define.
539 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
540 * i386msdos.c (msdos_bfd_merge_sections): Define.
541 * i386os9k.c (os9k_bfd_merge_sections): Define.
542 * ieee.c (ieee_bfd_merge_sections): Define.
543 * ihex.c (ihex_bfd_merge_sections): Define.
544 * nlm-target.h (nlm_bfd_merge_sections): Define.
545 * oasys.c (oasys_bfd_merge_sections): Define.
546 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
547 * som.c (som_bfd_merge_sections): Define.
548 * srec.c (srec_bfd_merge_sections): Define.
549 * tekhex.c (tekhex_bfd_merge_sections): Define.
550 * versados.c (versados_bfd_merge_sections): Define.
551 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
552
1548c54f
NC
5532001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
554
555 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
556 to be unsigned long, in order to match its use.
557
689effed
L
5582001-05-10 H.J. Lu <hjl@gnu.org>
559
560 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
561 indirect symbols.
562
6e5222be
L
5632001-05-09 H.J. Lu <hjl@gnu.org>
564
565 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
566 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
567 Remove the unused veriable `dynver'.
568
8e191bd3
ILT
5692001-05-08 Ian Lance Taylor <ian@zembu.com>
570
571 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
572 NULL or is not COFF.
573 (coff_i386_rtype_to_howto): Don't dump core if output section
574 owner is not COFF.
575
062e2358
AM
5762001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
577
578 * ecoff.c (bfd_debug_section): Fix initialization.
579 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
580 is always a positive integer. Cast away sign mismatch.
581 * elf32-mips.c: Fix misleading comment and typo.
582 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
583 correct data type.
584 * elflink.c: Fix typo.
585 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
586 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
587
16b65e4e
RH
5882001-05-04 Richard Henderson <rth@redhat.com>
589
590 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
591
cac15327
NC
5922001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
593
594 * elf32-arm.h (elf32_arm_final_link_relocate): Set
595 EF_ARM_HASENTRY if the start address is set.
596
966b3e0b
NC
5972001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
598
599 * targets.c (_bfd_target_vector_entries): Compute value based on
600 the size of the _bfd_target_vector and not bfd_target_vector.
601
210ba1e8
L
6022001-05-03 H.J. Lu <hjl@gnu.org>
603
604 * elfcode.h: Include "libiberty.h".
605
606 * elflink.h (elf_link_add_object_symbols): Set
607 elf_dt_name (abfd) to basename of the bfd filename.
608 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
609 of the bfd filename.
610
56fc028e
AJ
6112001-05-03 Andreas Jaeger <aj@suse.de>
612
613 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
614 (elf_generic_info_to_howto_rel): Likewise.
615 * coff-alpha.c (reloc_nil): Likewise.
616 (alpha_ecoff_bad_format_hook): Likewise.
617 (alpha_adjust_reloc_out): Likewise.
618 (alpha_bfd_reloc_type_lookup): Likewise.
619 (alpha_convert_external_reloc): Likewise.
620 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
621 (elf64_alpha_reloc_bad): Likewise.
622 (elf64_alpha_reloc_gpdisp): Likewise.
623 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
624 (elf64_alpha_info_to_howto): Likewise.
625 (elf64_alpha_add_symbol_hook): Likewise.
626 (elf64_alpha_create_got_section): Likewise.
627 (elf64_alpha_is_local_label_name): Likewise.
628 (elf64_alpha_merge_ind_symbols): Likewise.
629 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
630 (mips_elf64_get_reloc_upper_bound): Likewise.
631 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
632 (nlm_alpha_get_public_offset): Likewise.
633
c7e40348
NC
6342001-05-02 Johan Rydberg <jrydberg@opencores.org>
635
636 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
637 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 638 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 639
5fba655a
L
6402001-04-30 H.J. Lu <hjl@gnu.org>
641
642 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
643 only for ELF_LINK_FORCED_LOCAL.
644 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
645 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
646 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
647
648 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
649 if the symbol has hidden or internal visibility.
650
db20fd76
AM
6512001-04-30 Alan Modra <amodra@one.net.au>
652
653 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
654 calls to undefined weak symbols.
655
6a2bda3f
AJ
6562001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
657
658 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
659 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
660
053579d7
AJ
6612001-04-27 Andreas Jaeger <aj@suse.de>
662
663 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
664 out handled entries.
665 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
666 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
667 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
668 GOT32.
669
87748b32
NC
6702001-04-27 Sean McNeil <sean@mcneil.com>
671
672 * config.bfd: Add arm-vxworks target.
673 * coff-arm (coff_arm_relocate_section): Add in symbol value to
674 addend (fro VXworks targets).
675
f5f31454
L
6762001-04-26 H.J. Lu <hjl@gnu.org>
677
678 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
679 valid.
680
d436a9b3
FCE
6812001-04-25 Frank Ch. Eigler <fche@redhat.com>
682
683 * bfd-in.h (bfd_cache_close): Declare newly exported function.
684 * bfd-in2.h: Regenerated.
685
a531bbd2
JJ
6862001-04-24 Jakub Jelinek <jakub@redhat.com>
687
688 * merge.c (struct sec_merge_hash_entry): Add alignment field.
689 (struct sec_merge_hash): Remove alignment_power.
690 (sec_merge_hash_newfunc): Clear alignment.
691 (sec_merge_hash_lookup): Pass alignment as argument.
692 Use hashp->root.next, not hashp->next to walk the hash chain.
693 If a string already in the hashtable does not have required
694 alignment, create a new hashtable entry.
695 (sec_merge_init): Remove alignment_power argument.
696 (sec_merge_add): Add alignment argument.
697 (sec_merge_emit): Alignment is now a per-entity thing, not per
698 section.
699 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
700 for proper alignment.
701 Pass alignment information to sec_merge_add.
702
6840198f
NC
7032001-04-24 Christian Groessler <cpg@aladdin.de>
704
705 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
706 and R_REL16 reloc types; accept odd values for R_REL16 type
707
b3baf5d0
NC
7082001-04-24 Johan Rydberg <jrydberg@opencores.org>
709
710 * cpu-openrisc.c: New file.
711 * elf32-openrisc.c: Likewise.
712
713 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
714 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
715 (BFD32_BACKENDS): Add elf32-openrisc.lo.
716 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
717 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
718 * Makefile.in: Regenerated.
719 * config.bfd: (openrisc-*-elf): New target.
053579d7 720 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
721 * configure: Regenerated.
722 * libbfd.h: Regenerated.
723 * bfd-in2.h: Regenerated.
724 * reloc.c: Add OpenRISC relocations.
053579d7 725 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
726 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
727 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
728 (bfd_openrisc_arch): Declare.
729 (bfd_archures_list): Add bfd_openrisc_arch.
730 * elf.c (prep_headers): Add bfd_arch_openrisc.
731
fe4770f4
AJ
7322001-04-23 Bo Thorsen <bo@suse.de>
733
734 * elf64-x86-64.c: Add c++ vtable hack.
735 Small whitespace and comment changes.
736
653165cc
AJ
7372001-04-19 Andreas Jaeger <aj@suse.de>
738
739 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
740 (elf64_x86_64_plt_entry): Likewise.
741 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
742 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
743
4d96d128
HPN
7442001-04-17 Hans-Peter Nilsson <hp@axis.com>
745
746 * elf32-cris.c: Tweak comments related to dynamic linking.
747 (cris_elf_relocate_section): When not creating shared object, fill
748 in the .got table for any symbol not in the dynamic symbol table.
749 (elf_cris_finish_dynamic_symbol): When not creating shared object,
750 only emit a .got.rela reloc if the symbol is in the dynamic symbol
751 table.
752 (cris_elf_check_relocs): Use variable r_type in all places rather
753 than the original expression. Add default case in switch for
754 reloc types.
755 (elf_cris_size_dynamic_sections): Iterate over
756 elf_cris_discard_excess_program_dynamics when not creating shared
757 library.
653165cc 758 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
759 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
760 (elf_cris_discard_excess_program_dynamics): New.
761
3ed30d29
DD
7622001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
763
764 * coffcode.h (coff_write_object_contents): Use
765 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
766
a80f6941
L
7672001-04-14 H.J. Lu <hjl@gnu.org>
768
769 * bfd-in2.h: Regenerate.
770
767e4b0d
JJ
7712001-04-14 Jakub Jelinek <jakub@redhat.com>
772
773 * section.c (STD_SECTION): Add entsize.
774
2dd439c5
L
7752001-04-13 H.J. Lu <hjl@gnu.org>
776
777 * section.c (SEC_MERGE): Define new flag for merging.
778 (SEC_STRINGS): Likewise.
779 (entsize): New field.
780
baf80c32
DD
7812001-04-13 Roger Sayle <roger@metaphorics.com>
782
783 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
784 flag on pe-i386 targets.
785
f5fa8ca2
JJ
7862001-04-13 Jakub Jelinek <jakub@redhat.com>
787
788 * libbfd-in.h (_bfd_merge_section): New.
789 (_bfd_write_merged_section): New.
790 (_bfd_merged_section_offset): New.
791 * libbfd.h: Rebuilt.
792 * linker.c (_bfd_generic_link_output_symbols): Handle
793 discard_sec_merge.
794 * aoutx.h (aout_link_write_symbols): Likewise.
795 * pdp11.c (aout_link_write_symbols): Likewise.
796 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
797 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
798 sections.
799 (elf_link_sec_merge_syms): New.
800 (elf_link_input_bfd): Call _bfd_merged_section_offset
801 and _bfd_write_merged_section.
802 Handle discard_sec_merge.
803 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
804 field.
805 (struct bfd_elf_section_data): Likewise.
806 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
807 SEC_STRINGS section flags and entsize from their ELF counterparts.
808 (_bfd_elf_link_hash_table_init): Initialize merge_info.
809 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
810 from their BFD counterparts.
811 * merge.c: New file.
812 * Makefile.am: Add strtab.lo.
813 * Makefile.in: Rebuilt.
814
d954b040
HPN
8152001-04-09 Hans-Peter Nilsson <hp@axis.com>
816
817 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
818 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
819
fdbafa10
L
8202001-04-05 Steven J. Hill <sjhill@cotw.com>
821
822 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
823 endian MIPS ELF target.
824 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
825 MIPS ELF target.
826
827 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
828 64bit big endian MIPS ELF target.
653165cc 829 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
830 endian MIPS ELF target.
831 * configure: Regenerated.
832
833 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
834 little endian targets.
835 (mips_elf_sym_is_global): Handle traditional targets.
836
837 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
838 64bit big endian MIPS ELF target.
839 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
840 endian MIPS ELF target.
841
842 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
843 and bfd_elf64_tradlittlemips_vec.
844
dd484e5c
L
8452001-04-05 David Mosberger <davidm@hpl.hp.com>
846
847 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
848 ordinary "progbits" section.
849
391a809a
AM
8502001-04-04 Alan Modra <alan@linuxcare.com.au>
851
852 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
853 when -Bsymbolic causes a symbol to no longer need a .plt entry.
854
5854c633
L
8552001-04-03 David Mosberger <davidm@hpl.hp.com>
856
857 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
858
8b4b0fac
L
8592001-03-30 H.J. Lu <hjl@gnu.org>
860
861 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
862 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
863
eb4a6e4f
L
8642001-03-26 H.J. Lu <hjl@gnu.org>
865
866 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
867 if there are any relocations for generic ELF.
868 (bfd_elf32_bfd_link_add_symbols): Defined to
869 elf32_generic_link_add_symbols.
870 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
871 if there are any relocations for generic ELF.
872 (bfd_elf64_bfd_link_add_symbols): Defined to
873 elf64_generic_link_add_symbols.
874
55c80943
NC
8752001-03-23 Nick Clifton <nickc@redhat.com>
876
877 * Makefile.am (BUILD_CFILES): New variable: List of C source
878 files created in build directory.
879 (BUILD_HFILES): New variable: List of header files created in
880 build directory.
881 (POTFILES): Delete.
882 (po/POTFILES.in): Replace rule with empty entry.
883 (po/SRC-POTFILES.in): New rule: Create a list of source files
884 in the source directory.
885 (po/BLD-POTFILES.in): New rule: Create a list of source files
886 in the build directory.
887 (MOSTLYCLEAN): Do not delete source files created in build
888 directory.
889 * Makefile.in: Regenerate.
890 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
891 into po/Makefile.
892 * configure: Regenerate.
893
894 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
895 and BLD_POTFILES.
896 Add .. to the search path when building bfd.pot.
897 Delete POTFILES when performing distclean.
898 Add comment describing why distclean is broken in maintainer mode.
899 * po/POTFILES.in: Delete.
900 * po/SRC-POTFILES.in: New file.
901 * po/BLD-POTFILES.in: New file.
902 * po/bfd.pot: Regenerate.
903
58d29fc3
HPN
9042001-03-22 Hans-Peter Nilsson <hp@axis.com>
905
915e5146
HPN
906 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
907 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
908 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
909 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
910 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
911 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
912 functions.
913 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
914 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
915 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
916 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
917 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
918 New HOWTO members for new relocs.
919 (cris_reloc_map): Map new relocs.
920 (ELF_DYNAMIC_INTERPRETER): Define.
921 (PLT_ENTRY_SIZE): Define.
922 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
923 elf_cris_pic_plt_entry): New, PLT templates.
924 (struct elf_cris_pcrel_relocs_copied, struct
925 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
926 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
927 (cris_final_link_relocate): Check that 16-bit GOT relocs have
928 positive values. Adjust PCREL relocs to be relative to location
929 after relocation.
930 (cris_elf_relocate_section): Handle relocations to dynamic
931 objects. Handle new relocations. Call error handler when seeing
932 non-PIC relocation for read-only sections while generating shared
933 object.
934 (cris_elf_check_relocs): Set reference counts for GOT and PLT
935 entries.
936 (bfd_elf32_bfd_link_hash_table_create,
937 elf_backend_adjust_dynamic_symbol,
938 elf_backend_size_dynamic_sections,
939 elf_backend_finish_dynamic_symbol,
940 elf_backend_finish_dynamic_sections,
941 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
942 elf_backend_hide_symbol, elf_backend_want_got_plt,
943 elf_backend_plt_readonly, elf_backend_want_plt_sym,
944 elf_backend_got_header_size, elf_backend_plt_header_size):
945 Define.
946
58d29fc3
HPN
947 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
948 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
949 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
950 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
951 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
952 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
953 * bfd-in2.h, libbfd.h: Regenerate.
954
7a65545d
DN
9552001-03-21 Diego Novillo <dnovillo@redhat.com>
956
957 (_bfd_mips_elf_relocate_section): Give a better error message when
958 a relocation is not recognized.
959
b32b5d6e
AM
9602001-03-21 Alan Modra <alan@linuxcare.com.au>
961
962 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
963 non-NULL before attempting to dereference.
964
f4fbb4a3
L
9652001-03-20 H.J. Lu <hjl@gnu.org>
966
967 * configure.in: Remove the redundent AC_ARG_PROGRAM.
968 * configure: Rebuild.
969
95fc45e6
AS
9702001-03-20 Andreas Schwab <schwab@suse.de>
971
972 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
973 relocation value when resolving a reference from a debugging
974 section.
975
03d411a9
NC
9762001-03-16 Scott Thomason <SThomaso@hii.com>
977
978 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
979 (xcoff64_swap_sym_out): Fix syntax errors.
980
d1659392
NC
9812001-03-16 Richard Sandiford <rsandifo@redhat.com>
982
983 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
984
12cca0d2
AM
9852001-03-15 Alan Modra <alan@linuxcare.com.au>
986
987 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
988 (hppa_link_hash_newfunc): Init it.
989 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
990 section appears to be non-PIC.
991 (final_link_relocate): Likewise.
992 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
993 possible candidate function, and set pic_call for those that will
994 only have a .plt entry for the PIC call stub.
995 (hppa_handle_PIC_calls): Set maybe_pic_call.
996
cd6ec716
DD
9972001-03-12 DJ Delorie <dj@redhat.com>
998
999 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1000 R_SH_DIR8WP* relocs if they're against external symbols, else
1001 they're just for relaxing. Validate the reloc values.
1002
43a0748c
NC
10032001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1004
1005 * binary.c (bfd_external_binary_architecture): Declare.
1006 (binary_object_p): If bfd_external_binary_architecture is defined,
1007 set the architecture to this string.
1008
d982ba73
PB
10092001-03-11 Philip Blundell <philb@gnu.org>
1010
1011 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1012 entries that could serve as a definition for a weak symbol.
1013
7898deda
NC
10142001-03-08 Nick Clifton <nickc@redhat.com>
1015
1016 * Most files: Update copyright notices using Perl script created
1017 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1018
df425bc0
NC
10192001-03-07 Nick Clifton <nickc@redhat.com>
1020
1021 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1022 prior patch on ! defined OLD_ARM_ABI.
1023
bcdd92f3
AJ
10242001-03-07 Andreas Jaeger <aj@suse.de>
1025
1026 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1027 some relocation values.
1028
4f3c3dbb
NC
10292001-03-06 Nick Clifton <nickc@redhat.com>
1030
1031 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1032 of offset in BLX(1) instruction.
1033 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1034 offset in BLX(1) instruction.
1035 Fix formatting.
1036
f8f3c6cc
NC
10372001-03-06 Nick Clifton <nickc@redhat.com>
1038
1039 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1040 BFD_RELOC_THUMB_PCREL_BLX.
1041
3cac17ae
NC
10422001-03-06 Igor Shevlyakov <igor@windriver.com>
1043
1044 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1045 * bfd-in2.h: Regenerate.
1046 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1047 * ieee.c (ieee_write_processor): Set proper id for
1048 Coldfire CPUs.
1049
d1b17ab0
NC
10502001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1051
1052 * configure.in: Add s390 target.
1053 * configure: Regenerate.
1054
5608e05b
AJ
10552001-02-28 Andreas Jaeger <aj@suse.de>
1056
1057 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1058 to addend.
1059
fd2ec330
PB
10602001-02-28 Philip Blundell <pb@futuretv.com>
1061
1062 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1063 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1064
920581c5
L
10652001-02-27 H.J. Lu <hjl@gnu.org>
1066
1067 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1068 abfd->tdata.aout_data == NULL.
1069
27b7e12d
AM
10702001-02-27 Alan Modra <alan@linuxcare.com.au>
1071
3ee1d854
AM
1072 * elf32-hppa.c: Correct field selector in stub comments.
1073 (clobber_millicode_symbols): Formatting fix.
1074
27b7e12d
AM
1075 * configure.in: Bump version to 2.11.90.
1076 * configure: Regenerate.
1077 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1078 (CFILES): $SOURCE_CFILES + generated C files.
1079 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1080 Run "make dep-am"
1081 * Makefile.in: Regenerate.
1082 * doc/Makefile.in: This too.
1083
10d1e03a
TW
10842001-02-26 Timothy Wall <twall@cygnus.com>
1085
1086 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1087 comments.
10d1e03a 1088
1276aefa
NC
10892001-02-26 Nick Clifton <nickc@redhat.com>
1090
1091 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1092 up, replacing multiple if statements with a switch.
1093 (handle_COMDAT): New function.
1094
10952001-02-26 H.J. Lu <hjl@gnu.org>
1096
1097 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1098 a warning for section flags we do not handle instead of
1099 aborting.
1100
4a73f21b
AJ
11012001-02-26 Andreas Jaeger <aj@suse.de>
1102
1103 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1104
7b6dab7f
TW
11052001-02-22 Timothy Wall <twall@cygnus.com>
1106
1107 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1108 * configure.in: Add objects for elf64_ia64_aix vectors.
1109 * configure: Regenerated.
1110 * configure.host: Recognize ia64-*-aix*.
1111 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1112 for AIX. AIX5 requires most relocations to be dynamic (*all*
1113 binaries are somewhat similar to shared libraries).
1114 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1115
87f8eb97
JW
11162001-02-21 David Mosberger <davidm@hpl.hp.com>
1117
1118 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1119 C8 said "1" instead of "8". Clarify error string for IMM22:
1120 "signed integer" instead of just "integer".
1121
05aa1441
AJ
11222001-02-20 Andreas Jaeger <aj@suse.de>
1123
1124 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1125 PLT entries that could serve as a definition for a weak symbol.
1126
8701c1bc
JJ
11272001-02-19 Jakub Jelinek <jakub@redhat.com>
1128
1129 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1130 entries that could serve as a definition for a weak symbol.
1131 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1132
d4af9775
DB
11332001-02-18 David O'Brien <obrien@FreeBSD>
1134
1135 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1136 FreeBSD/i386-CURRENT differently until I can figure out the needed
1137 corefile changes.
1138 * configure: Regenerate.
1139 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1140 FreeBSD/PowerPC, and FreeBSD/sparc64.
1141
e135f41b
NC
11422001-02-18 lars brinkhoff <lars@nocrew.org>
1143
1144 * Makefile.am: Add PDP-11 a.out target.
1145 * config.bfd: Likewise.
1146 * configure.in: Likewise.
1147 * targets.c: Likewise.
1148 * archures.c: Likewise.
1149 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1150 * libbfd.h: Add PDP-11 relocations.
1151 * reloc.c: Likewise.
1152 * cpu-pdp11.c: New file.
1153 * pdp11.c: New file.
1154
1155 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1156 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1157 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1158 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1159 (GET_MAGIC): New macro.
1160 (PUT_MAGIC): Likewise.
1161 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1162
dc3febfa
NC
11632001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1164
1165 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1166 multiarch needs it).
1167
ea412e04
L
11682001-02-18 H.J. Lu <hjl@gnu.org>
1169
1170 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1171 index.
1172
47eee8a9
KH
11732001-02-18 Kazu Hirata <kazu@hxi.com>
1174
1175 * vms-misc.c: Fix formatting.
1176
8a0c27cd
KH
11772001-02-16 Kazu Hirata <kazu@hxi.com>
1178
1179 * vms.c: Fix formatting.
1180
d1fad7c6
NC
11812001-02-14 H.J. Lu <hjl@gnu.org>
1182
1183 * elf.c (elf_find_function): New function.
1184 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1185 the file name and function name.
1186
825b47db
NC
11872001-02-14 Nick Clifton <nickc@redhat.com>
1188
51d7ee16
NC
1189 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1190 asection structure.
1191
825b47db
NC
1192 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1193 (BFD64_BACKENDS): Add pepigen.c
1194 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1195
1196 * Makefile.in: Regenerate.
1197 * configure: Regenerate.
1198 * po/POTFILES.in: Regenerate.
1199 * po/bfd.pot: Regenerate.
1200
ea36a178
L
12012001-02-14 H.J. Lu <hjl@gnu.org>
1202
1203 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1204 force_minimum_alignment.
1205
407443a3
AJ
12062001-02-14 Bo Thorsen <bo@suse.de>
1207
1208 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1209 (elf64_86_64_size_info): Struct added to fix a problem
1210 with the hashtable string entries.
1211 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1212 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1213 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1214 remove the FIXME for this.
1215 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1216 section. Also removed the FIXME for it.
1217 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1218 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1219 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1220
b4adccfd
RH
12212001-02-13 Richard Henderson <rth@redhat.com>
1222
1223 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1224 and not user provided.
1225
9635981a
KH
12262001-02-13 Kazu Hirata <kazu@hxi.com>
1227
1228 * vms.c (vms_print_symbol): Remove unreachable code.
1229
6a125b16
KH
1230 * rs6000-core.c: Fix formatting.
1231
cbff5e0d
DD
12322001-02-13 David Mosberger <davidm@hpl.hp.com>
1233
1234 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1235 as _bfd_XXi_only_swap_filehdr_out.
1236 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1237 pe->force_minimum_alignment to TRUE.
1238 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1239 PEI_TARGET_SUBSYSTEM.
1240 (pe_print_private_bfd_data): Call
1241 _bfd_XX_print_private_bfd_data_common() instead of
1242 _bfd_pe_print_private_bfd_data_common().
1243 (pe_bfd_copy_private_bfd_data): Call
1244 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1245 _bfd_pe_bfd_copy_private_bfd_data_common().
1246 (coff_bfd_copy_private_section_data): Define as
1247 _bfd_XX_bfd_copy_private_section_data instead of
1248 _bfd_pe_bfd_copy_private_section_data.
1249 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1250 of a _bfd_pe_get_symbol_info.
1251
1252 * peigen.c: Delete.
1253
1254 * peXXigen.c: Renamed from peigen.c.
1255 (COFF_WITH_XX): Define this macro (will get expanded into
1256 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1257 compiled as peigen.c or pepigen.c.
1258 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1259 define the canonical PEP structures and definitions.
1260 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1261 effect, enforce minimum file and section alignments. If
1262 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1263 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1264 so, by default, this is a no-op).
1265
1266 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1267 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1268 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1269 _bfd_pefoo if it's not defined. Use these macros to define
1270 coff swap macros.
1271
1272 * libcoff.h (pe_tdata): Add members target_subsystem and
1273 force_minimum_alignment.
1274
1275 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1276 COFF_WITH_pep.
1277 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1278
1279 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1280 peigen.lo.
1281
1282 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1283 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1284 PEPAOUTHDR.
1285
1286 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1287 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1288 (peigen.c): Add rule to generate from peXXigen.c.
1289 (pepigen.c): Ditto.
1290 (pepigen.lo): List dependencies for pepigen.lo.
1291
df8634e3
AM
12922001-02-13 Alan Modra <alan@linuxcare.com.au>
1293
1294 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1295 $global$ referenced but not defined, set its value here.
1296
51e0a107
JH
12972001-02-09 Bo Thorsen <bo@suse.de>
1298
1299 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1300 alignment to 3.
1301 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1302 and relocation.
1303 (elf64_x86_64_relocate_section): Fix formatting.
1304 (elf64_x86_64_relocate_section): Fix addend for relocation of
1305 R_X86_64_(8|16|32|PC8|PC16|PC32).
1306
d1fad7c6 13072001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
1308
1309 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1310
f0e1d18a
L
13112001-02-11 H.J. Lu <hjl@gnu.org>
1312
6757257f 1313 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1314 alignment.
1315
9117d219
NC
13162001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1317
1318 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1319 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1320 relocations against dynsym symbols.
1321
1322 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1323 the R_MIPS_26 relocation.
1324 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1325 the R_MIPS_26 relocation.
1326 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1327 relocation.
1328 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1329 the R_MIPS_26 relocation.
1330 (mips_elf64_howto_table_rela): Likewise.
1331
1332 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1333 member to mark symbols that have non-CALL relocations against
1334 them.
1335 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1336 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1337 R_MIPS_GOT16.
1338 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1339 non-CALL relocation against it is encountered.
1340 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1341 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1342 no_fn_stub is not set.
1343
1344 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1345 information from the real symbol for indirect ones.
1346 Check no_fn_stub to find out if a symbol has a function stub
1347 indeed.
1348
9f93bca5
MS
13492001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1350
1351 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1352 * Makefile.in: Regenerate.
1353
81545d45
RH
13542001-02-09 David Mosberger <davidm@hpl.hp.com>
1355
1356 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1357 true if section name is an unwind table section name.
1358 (elfNN_ia64_additional_program_headers): Count each unwind section
1359 separately.
1360 (elfNN_ia64_modify_segment_map): Install one unwind program header
1361 for each unwind separate section. Note: normally the linker
1362 script merges the unwind sections that go into a single segment,
1363 so this still generates at most one unwind program header per
1364 segment.
1365
1366 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1367 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1368 (elfNN_ia64_fake_sections): Mark sections with names that start
1369 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1370 unwind section.
1371
1372 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1373 Use it to make sh_info in unwind section point to the text section
1374 it applies to.
1375
a85d7ed0
NC
13762001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1377
1378 * Makefile.am: Add linux target for S/390.
1379 * archures.c: Likewise.
1380 * bfd-in2.h: Likewise.
1381 * config.bfd: Likewise.
1382 * configure.in: Likewise.
1383 * elf.c: Likewise.
1384 * libbfd.h: Likewise.
1385 * targets.c: Likewise.
1386 * cpu-s390.c: New file.
1387 * elf32-s390.c: New file.
1388 * elf64-s390.c: New file.
1389
356d255d
NC
13902001-02-09 Nick Clifton <nickc@redhat.com>
1391
1392 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1393 ImageBase. This has already been done by coff_swap_hdr_in.
1394
069f40e5
JJ
13952001-02-09 Jakub Jelinek <jakub@redhat.com>
1396
1397 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1398
eadfa8ab
JJ
13992001-02-09 Jakub Jelinek <jakub@redhat.com>
1400
1401 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1402 (sparc64_elf_relocate_section): Likewise.
1403
9fc54e19
MK
14042001-02-09 Mark Kettenis <kettenis@gnu.org>
1405
1406 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1407 similar to R_SPARC_32.
1408 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1409
1f655a09
L
14102001-02-08 H.J. Lu <hjl@gnu.org>
1411
1412 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1413 relocation entries for weak definitions when building DSO with
1414 -Bsymbolic.
1415
ca88208a
RH
14162001-02-08 Richard Henderson <rth@redhat.com>
1417
1418 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1419 before visibility. Locally defined protected symbols are not
1420 dynamic.
1421
4603e845
GK
14222001-02-08 Geoffrey Keating <geoffk@redhat.com>
1423
1424 * config.bfd: Enable coff64 for rs6000-*. Patch from
1425 <hzoli@austin.ibm.com>.
1426
4ca29a6a
NC
14272001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1428
1429 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1430 found, do not attempt to find dwarf2 info before returning.
1431
7da9d88f
NC
14322001-02-07 Jakub Jelinek <jakub@redhat.com>
1433
1434 * elflink.h (is_global_symbol_definition): Rename to
1435 is_global_data_symbol_definition and have it reject function
1436 symbols.
1437 (elf_link_is_defined_archive_symbol): Use renamed function.
1438
7340082d
NC
14392001-02-07 Todd Vierling <tv@wasabisystems.com>
1440
1441 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1442 * libbfd.h (bfd_target_vector): Likewise.
1443 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1444 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1445 (_bfd_target_vector_entries): Calculate this based on the array
1446 typed _bfd_target_vector.
1447
2719f880
L
14482001-02-06 H.J. Lu <hjl@gnu.org>
1449
1450 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1451 internal symbols are not dynamic.
1452 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1453
175aa013
NC
14542001-02-06 Nick Clifton <nickc@redhat.com>
1455
1456 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1457 that it will not be pulled into the list of files that make up
1458 po/POTFILES.in.
1459 * Makefile.in: Regenerate.
1460 * po/bfd.pot: Regenerate.
1461
15e0ecd9
L
14622001-02-06 H.J. Lu <hjl@gnu.org>
1463
7898deda 1464 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1465 checking.
1466 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1467 external_PEI_IMAGE_hdr.
1468
27def10f
KH
14692001-02-06 Kazu Hirata <kazu@hxi.com>
1470
1471 * elf-m10200.c: Fix formatting.
1472
a0f2e916
NC
14732001-02-04 Nick Clifton <nickc@redhat.com>
1474
1475 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1476 rel, it will be handled later on.
1477
d96031fb
NC
14782001-02-02 Fred Fish <fnf@ninemoons.com>
1479
1480 * Makefile.in: Fix typo.
1481
010ac81f
KH
14822001-02-01 Kazu Hirata <kazu@hxi.com>
1483
1484 * elf-m10300.c: Fix formatting.
1485
3fab46d0
AM
14862001-01-30 Alan Modra <alan@linuxcare.com.au>
1487
1488 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1489 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1490 (elf64_hppa_object_p): Set architecture and machine from elf
1491 header flags.
3fab46d0 1492
95404643
RH
14932001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1494
1495 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1496 before mdebug.
1497
8fb35fed
RH
14982001-01-26 Richard Henderson <rth@redhat.com>
1499
1500 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1501 for non-default visibility.
1502 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1503 delete ugly macro and replace with pretty function.
1504
a4f68544
NC
15052001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1506
1507 * coff-go32.c: Update copyright.
1508 * coff-stgo32.c: Likewise.
1509 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1510 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1511 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1512 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1513
c02e7c3e
KH
15142001-01-25 Kazu Hirata <kazu@hxi.com>
1515
1516 * bfd-in2.h: Rebuild.
1517 * libbfd.h: Likewise.
1518
541389e2
L
15192001-01-23 H.J. Lu <hjl@gnu.org>
1520
1521 * bfd-in2.h: Rebuild.
1522
0007625f
L
15232001-01-23 H.J. Lu <hjl@gnu.org>
1524
1525 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1526 is NULL or PRIV(vms_rec) is outside of the buffer.
1527
b653e1b1
KH
15282001-01-23 Kazu Hirata <kazu@hxi.com>
1529
1530 * coff64-rs6000.c: Fix formatting.
1531 * coff-arm.c: Likewise.
1532 * coffgen.c: Likewise.
1533 * cofflink.c: Likewise.
1534 * coff-mcore.c: Likewise.
1535 * coff-mips.c: Likewise.
1536 * coff-pmac.c: Likewise.
1537 * coff-ppc.c: Likewise.
1538 * coff-rs6000.c: Likewise.
1539 * elf32.c: Likewise.
1540 * elf32-fr30.c: Likewise.
1541 * elf32-i370.c: Likewise.
1542 * elf32-i860.c: Likewise.
1543 * elf32-m32r.c: Likewise.
1544 * elf32-m68k.c: Likewise.
1545 * elf32-mcore.c: Likewise.
1546 * elf32-ppc.c: Likewise.
1547 * elf32-sh.c: Likewise.
1548 * elf32-v850.c: Likewise.
1549 * elf64-alpha.c: Likewise.
1550 * elf64-sparc.c: Likewise.
1551 * elflink.c: Likewise.
1552 * elflink.h: Likewise.
1553 * elf-m10200.c: Likewise.
1554 * elf-m10300.c: Likewise.
1555 * elfxx-ia64.c: Likewise.
1556
3fde5a36
KH
1557 * aoutx.h: Fix formatting.
1558 * bfd.c: Likewise.
1559 * bfd-in2.h: Likewise.
1560 * bfd-in.h: Likewise.
1561 * cpu-i386.c: Likewise.
1562 * cpu-m68hc11.c: Likewise.
1563 * dwarf2.c: Likewise.
1564 * elf64-x86-64.c: Likewise.
1565 * format.c: Likewise.
1566 * freebsd.h: Likewise.
1567 * hash.c: Likewise.
1568 * hp300hpux.c: Likewise.
1569 * hppabsd-core.c: Likewise.
1570 * hpux-core.c: Likewise.
1571
70256ad8
AJ
15722001-01-22 Bo Thorsen <bo@suse.de>
1573
1574 * elf64-x86-64.c: Added PIC support for X86-64.
1575 (elf64_x86_64_link_hash_newfunc): Function added.
1576 (elf64_x86_64_link_hash_table_create): Likewise.
1577 (elf64_x86_64_check_relocs): Likewise.
1578 (elf64_x86_64_gc_mark_hook): Likewise.
1579 (elf64_x86_64_gc_sweep_hook): Likewise.
1580 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1581 (elf64_x86_64_size_dynamic_sections): Likewise.
1582 (elf64_x86_64_discard_copies): Likewise.
1583 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1584 (elf64_x86_64_finish_dynamic_sections): Likewise.
1585 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1586
ee0bebb8
AJ
15872001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1588
1589 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1590 * Makefile.in: Regenerate.
1591
2a38f751
KH
15922001-01-21 Kazu Hirata <kazu@hxi.com>
1593
1594 * coff-a29k.c: Fix formatting.
1595
c8492176
L
15962001-01-19 H.J. Lu <hjl@gnu.org>
1597
1598 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1599 relocation section names.
1600 (elf_i386_relocate_section): Report files with bad relocation
1601 section names and return false.
1602
a5377ec0
AJ
16032001-01-17 Bo Thorsen <bo@suse.de>
1604
1605 * targets.c: Alphabetize list of xvecs.
1606
b352eebf
AM
16072001-01-14 Alan Modra <alan@linuxcare.com.au>
1608
d952f17a
AM
1609 * config.bfd: Add linux target variant for elfxx-hppa.
1610 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1611 bfd_elf64_hppa_linux_vec.
1612 * configure: Regenerate.
1613 * elf64-hppa.c: Include elf64-target.h again to support linux
1614 target variant.
1615 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1616 * elf32-hppa.c: Include elf32-target.h again to support linux
1617 target variant.
1618 (elf32_hppa_post_process_headers): New function.
1619 (elf_backend_post_process_headers): Define.
1620 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1621 bfd_elf32_hppa_linux_vec.
1622
c46b7515
AM
1623 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1624 and data_segment_base fields.
1625 (elf32_hppa_link_hash_table_create ): Init them.
1626 (elf32_hppa_check_relocs): Update comments.
1627 (hppa_record_segment_addr): New function.
1628 (elf32_hppa_relocate_section): Call it.
1629 (final_link_relocate): Handle R_PARISC_SEGREL32.
1630 (elf32_hppa_final_link): New function.
1631 (bfd_elf32_bfd_final_link): Define to call it.
1632 (hppa_unwind_entry_compare): New function.
1633 * cache.c (bfd_open_file): Create files in write+read mode.
1634
1635 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1636 SEGREL32 and numerous other relocs. Change duplicate
1637 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1638
d768008d
AM
1639 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1640 O_ACCMODE.
1641
150ccafb
AM
1642 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1643 .plt entries for DT_INIT and DT_FINI.
1644 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1645 DT_INIT and DT_FINI.
1646
b352eebf
AM
1647 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1648 offsets for stub .plt access if wide mode. Check offset in range.
1649
b3b9a062
NC
16502001-01-13 Nick Clifton <nickc@redhat.com>
1651
b7ed8fad
NC
1652 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1653 line.
1654
b3b9a062
NC
1655 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1656 line.
1657
6e0b89ee
AM
16582001-01-12 Alan Modra <alan@linuxcare.com.au>
1659
1660 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1661 * configure: Regenerate.
1662
0d2bcfaf
NC
16632001-01-11 Peter Targett <peter.targett@arccores.com>
1664
1665 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1666 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1667 * cpu-arc.c (arch_info_struct): Add entries for variants.
1668 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1669 (arc_get_mach) Don't assume machine names prefixed arc- before
1670 testing.
1671 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1672 selections.
1673 (arc_elf_final_write_processing) Likewise.
1674 (ELF_MACHINE_CODE) Use EM_ARC.
1675
c31c1f70
NC
16762001-01-10 Nick Clifton <nickc@redhat.com>
1677
2758140b 1678 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1679
5ad083e3
PB
16802001-01-07 Philip Blundell <philb@gnu.org>
1681
1682 * README: Replace `bug-gnu-utils@gnu.org' with
1683 `bug-binutils@gnu.org'.
1684
7eae7d22
KH
16852001-01-04 Kazu Hirata <kazu@hxi.com>
1686
1687 * som.c: Fix formatting.
1688
509945ae
KH
16892001-01-03 Kazu Hirata <kazu@hxi.com>
1690
3e932841
KH
1691 * ecoffswap.h: Fix formatting.
1692 * elf-bfd.h: Likewise.
1693 * elfarm-nabi.c: Likewise.
1694 * elfarm-oabi.c: Likewise.
1695 * elfcode.h: Likewise.
1696 * elfcore.h: Likewise.
1697 * elflink.c: Likewise.
1698 * elflink.h: Likewise.
1699 * elfxx-ia64.c: Likewise.
1700 * elfxx-target.h: Likewise.
1701 * libbfd.c: Likewise
509945ae
KH
1702 * linker.c: Likewise.
1703 * lynx-core.c: Likewise.
1704
892339ee
KH
17052001-01-02 Kazu Hirata <kazu@hxi.com>
1706
1707 * pc532-mach.c: Fix formatting.
1708 * pe-arm.c: Likewise.
1709 * pe-i386.c: Likewise.
1710 * pe-mips.c: Likewise.
1711 * pe-ppc.c: Likewise.
1712 * pe-sh.c: Likewise.
1713 * pei-mips.c: Likewise.
1714 * pei-sh.c: Likewise.
ee91ed79 1715 * peicode.h: Likewise.
892339ee
KH
1716 * ppcboot.c: Likewise.
1717 * ptrace-core.c: Likewise.
1718
3d855632
KH
17192001-01-01 Kazu Hirata <kazu@hxi.com>
1720
1721 * reloc.c: Fix formatting.
1722 * riscix.c: Likewise.
1723 * rs6000-core.c: Likewise.
1724 * xcoff-target.h: Likewise.
1725
a77a9fef
HPN
17262000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1727
1728 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1729 error, by calling bfd_default_set_arch_mach with incoming
1730 values.
1731
558e161f
KH
17322000-12-26 Kazu Hirata <kazu@hxi.com>
1733
1734 * vaxnetbsd.c: Fix formatting.
1735 * versados.c: Likewise.
1736 * vms-gsd.c: Likewise.
1737 * vms-hdr.c: Likewise.
1738 * vms-misc.c: Likewise.
1739
3c579812
AO
17402000-12-25 Alexandre Oliva <aoliva@redhat.com>
1741
1742 * archive.c (coff_write_armap): Don't write more than symbol_count
1743 `archive_member_file_ptr's.
1744
672579e9
KH
17452000-12-25 Kazu Hirata <kazu@hxi.com>
1746
1747 * vms-tir.c: Fix formatting.
1748
55f2d5ed
KH
17492000-12-23 Kazu Hirata <kazu@hxi.com>
1750
1751 * vms.c: Fix formatting.
1752 * vms.h: Likewise.
1753
23ccc829
NC
17542000-12-21 Santeri Paavolainen <santtu@ssh.com>
1755
1756 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1757
1758 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1759
1760 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1761 arithmetic.
1762
1763 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1764
1765 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1766
8c603c85
NC
17672000-12-21 Richard Sandiford <rsandifo@redhat.com>
1768
1769 * libbfd.c (bfd_get_bits): Added
1770 (bfd_put_bits): Likewise
1771 * bfd-in.h: Declared the above.
1772 * bfd-in2.h: Regenerated.
1773
5bff4f56
KH
17742000-12-20 Kazu Hirata <kazu@hxi.com>
1775
1776 * targets.c: Fix formatting.
1777 * tekhex.c: Likewise.
1778 * trad-core.c: Likewise.
1779
7b82c249
KH
17802000-12-19 Kazu Hirata <kazu@hxi.com>
1781
1782 * sco5-core.c: Fix formatting.
1783 * section.c: Likewise.
1784 * sparclinux.c: Likewise.
1785 * sparclynx.c: Likewise.
1786 * sparcnetbsd.c: Likewise.
1787 * srec.c: Likewise.
1788 * stabs.c: Likewise.
1789 * stab-syms.c: Likewise.
1790 * sunos.c: Likewise.
1791 * syms.c: Likewise.
1792 * sysdep.h: Likewise.
1793
f78c5281
NC
17942000-12-18 Nick Clifton <nickc@redhat.com>
1795
1796 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1797 defined.
1798 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1799 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1800
02b89dce
NC
18012000-12-18 Nick Clifton <nickc@redhat.com>
1802
1803 * vms-misc.c (_bfd_vms_get_record): Add default case to
1804 file_format switch.
1805
d20966a7
NC
18062000-12-15 Miloslav Trmac <mitr@volny.cz>
1807
1808 * elfcore.h (elf_core_file_p): Move to the start of the program
1809 headers before attempting to read them.
1810
6fa957a9
KH
18112000-12-14 Kazu Hirata <kazu@hxi.com>
1812
1813 * peigen.c: Fix formatting.
1814 * som.c: Likewise.
1815 * som.h: Likewise.
1816
9602af51
KH
18172000-12-13 Kazu Hirata <kazu@hxi.com>
1818
1819 * peigen.c: Fix formatting.
1820
514829c3
JW
18212000-12-12 Jim Wilson <wilson@redhat.com>
1822
1823 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1824
3a71aec8
NC
18252000-12-08 Mark Salter <msalter@redhat.com>
1826
1827 * binary.c (binary_set_section_contents): Ignore sections
1828 with zero size.
1829
1518639e
KH
18302000-12-12 Kazu Hirata <kazu@hxi.com>
1831
1832 * m68klinux.c: Fix formatting.
1833 * m68knetbsd.c: Likewise.
1834 * mipsbsd.c: Likewise.
1835 * netbsd-core.c: Likewise.
1836 * netbsd.h: Likewise.
1837 * newsos3.c: Likewise.
1838 * nlm32-alpha.c: Likewise.
1839 * nlm32-i386.c: Likewise.
1840 * nlm32-ppc.c: Likewise.
1841 * nlm32-sparc.c: Likewise.
1842 * nlmcode.h: Likewise.
1843 * nlmswap.h: Likewise.
1844 * nlm-target.h: Likewise.
1845 * ns32knetbsd.c: Likewise.
1846
b79e8c78
NC
18472000-12-10 Fred Fish <fnf@be.com>
1848
d952f17a
AM
1849 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1850 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 1851
38b1a46c
NC
18522000-12-12 Nick Clifton <nickc@redhat.com>
1853
1854 * cpu-sh.c: Fix formattng.
1855 * elf.c: Fix formattng.
1856 * elf32-mips.c: Fix formattng.
1857 * elf32-sh.c: Fix formattng.
1858 * elf64-alpha.c: Fix formattng.
1859
857ec808
NC
18602000-12-09 Nick Clifton <nickc@redhat.com>
1861
1862 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1863 dwarf2_find_line_info as last parameter to invocation of
1864 _bfd_dwarf2_find_nearest_line.
1865 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1866 dwarf2_find_line_info as last parameter to invocation of
1867 _bfd_dwarf2_find_nearest_line.
1868
51db3708
NC
18692000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1870
1871 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
1872 (BFD_LIBS): ...to here.
1873 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1874 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
1875 * Makefile.in: Regenerate.
1876 * configure.in: Remove dwarf.lo from the elf shell variable.
1877 * configure: Regenerate.
1878 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1879 * libcoff.h: Regenerate.
d952f17a 1880 * coffgen.c (coff_find_nearest_line): Call
857ec808 1881 _bfd_dwarf2_find_nearest_line.
51db3708 1882 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
1883 accordingly.
1884 (read_abbrevs): Likewise
1885 (decode_line_info): Likewise.
1886 (parse_comp_unit): Likewise.
1887 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
1888 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1889 * libbfd.h: Regenerate.
1890 * elf.c (_bfd_elf_find_nearest_line): Update call.
1891 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1892 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1893 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
1894 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1895 (styp_to_sec_flags): Handle DWARF2 sections.
1896 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1897 to _bfd_find_nearest_line.
1898 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1899 call to _bfd_find_nearest_line.
d952f17a 1900
435b1e90
KH
19012000-12-08 Kazu Hirata <kazu@hxi.com>
1902
1903 * coffgen.c: Fix formatting.
fe8bc63d 1904 * elf-m10300.c: Likewise.
435b1e90
KH
1905 * elf32-i386.c: Likewise.
1906 * elf32-i960.c: Likewise.
1907 * elf32-m68k.c: Likewise.
1908 * elf32-mcore.c: Likewise.
1909 * elf32-ppc.c: Likewise.
1910 * elf32-sh.c: Likewise.
1911 * elf32-sparc.c: Likewise.
1912 * elf32-v850.c: Likewise.
fe8bc63d
KH
1913 * elf64-alpha.c: Likewise.
1914 * elf64-hppa.c: Likewise.
1915 * elf64-mips.c: Likewise.
435b1e90 1916 * elf64-sparc.c: Likewise.
435b1e90 1917
8da6118f
KH
19182000-12-07 Kazu Hirata <kazu@hxi.com>
1919
1920 * elf32-ppc.c: Fix formatting.
1921 * elf64-x86-64.c: Likewise.
1922
a9922e52
UC
19232000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1924
1925 From Ralf Baechle <ralf@gnu.org>
1926
1927 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1928 BFDs containing no sections or empty .text, .data or .bss sections
1929 to be merged, regardless of their flags.
1930
c3668558
KH
19312000-12-06 Kazu Hirata <kazu@hxi.com>
1932
1933 * elf32-m32r.c: Fix formatting.
1934 * elf32-m68hc11.c: Likewise.
1935 * elf32-m68hc12.c: Likewise.
1936 * elf32-m68k.c: Likewise.
1937 * elf32-mcore.c: Likewise.
1938 * elf32-pj.c: Likewise.
1939 * elf32-ppc.c: Likewise.
1940
6609fa74
KH
19412000-12-05 Kazu Hirata <kazu@hxi.com>
1942
1943 * elf32-fr30.c: Fix formatting.
1944 * elf32-hppa.c: Likewise.
1945 * elf32-i370.c: Likewise.
1946 * elf32-i386.c: Likewise.
1947 * elf32-i860.c: Likewise.
1948 * elf32-i960.c: Likewise.
1949
a7c10850
KH
19502000-12-03 Kazu Hirata <kazu@hxi.com>
1951
1952 * elf32-arm.h: Fix formatting.
1953 * elf32-avr.c: Likewise.
1954 * elf32-cris.c: Likewise.
1955 * elf32-d10v.c: Likewise.
1956 * elf32-d30v.c: Likewise.
1957 * elf-hppa.h: Likewise.
1958 * elf-m10200.c: Likewise.
1959 * elf-m10300.c: Likewise.
1960
e7af610e
NC
19612000-12-01 Chris Demetriou <cgd@sibyte.com>
1962
d952f17a
AM
1963 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1964 bfd_mach_mips32_4k. Update FIXME comment.
1965 * archures.c (bfd_mach_mips32): New constant.
1966 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1967 the latter, renumber it.
1968 * bfd-in2.h (bfd_mach_mips32): New constant.
1969 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1970 the latter, renumber it.
1971 * cpu-mips.c (I_mips32): New constant.
1972 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1973 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1974 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1975 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1976 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1977 with E_MIPS_MACH_MIPS32_4K.
1978 (_bfd_mips_elf_final_write_processing): Replace
1979 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1980 bfd_mach_mips32 case.
1981 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1982 comparison with support for MIPS32.
1983 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1984 MIPS32.
1985
1986 * aoutx.h (NAME(aout,machine_type)): Add cases for
1987 bfd_mach_mips5 and bfd_mach_mips64.
1988 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1989 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1990 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1991 (arch_info_struct): Add entries for bfd_mach_mips5 and
1992 bfd_mach_mips64.
1993 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1994 _bfd_mips_elf_print_private_bfd_data): Add cases for
1995 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1996 (_bfd_mips_elf_final_write_processing): Add cases for
1997 bfd_mach_mips5 and bfd_mach_mips64.
1998
7898deda 1999 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2000 bfd_mach_mips_sb1 case.
7898deda
NC
2001 * archures.c (bfd_mach_mips_sb1): New constant.
2002 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2003 * cpu-mips.c (I_sb1): New constant.
d952f17a 2004 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2005 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2006 E_MIPS_MACH_SB1.
2007 (_bfd_mips_elf_final_write_processing): Add case for
2008 bfd_mach_mips_sb1.
2009
20102000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2011
2012 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2013 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2014 (sparc*-*-rtems*): Switched from a.out to ELF.
2015
8d88c4ca 20162000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2017
2018 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2019 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2020 (elf64-x86-64.lo): Add dependencies.
2021 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2022 bfd_mach_x86_64_intel_syntax.
2023 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2024 * config.bfd (x86_64): Add.
2025 * configure.in: Add support for bfd_elf64_x86_64_vec.
2026 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2027 (bfd_i386_arch, i8086_ar): Link in.
2028 * elf64-x86-64.c: New file.
2029 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2030 * targets.c (bfd_elf64_x86_64_vec): Add.
2031 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2032
fbc4fff4
KH
20332000-11-30 Kazu Hirata <kazu@hxi.com>
2034
2035 * xcofflink.c: Fix formatting.
2036
e60b52c6
KH
20372000-11-28 Kazu Hirata <kazu@hxi.com>
2038
2039 * aoutx.h: Fix formatting.
2040 * bfd-in.h: Likewise.
2041 * bfd-in2.h: Likewise.
2042 * cache.c: Likewise.
2043 * cisco-core.c: Likewise.
2044 * coff64-rs6000.c: Likewise.
2045 * coffcode.h: Likewise.
2046 * coffswap.h: Likewise.
2047 * corefile.c: Likewise.
be3ccd9c 2048 * elf32-mips.c: Likewise.
e60b52c6 2049
336eced2
KH
20502000-11-27 Kazu Hirata <kazu@hxi.com>
2051
2052 * aout-adobe.c: Fix formatting.
244148ad
KH
2053 * coff64-rs6000.c: Likewise.
2054 * coffgen.c: Likewise.
2055 * cofflink.c: Likewise.
336eced2 2056
d71f672e
PB
20572000-11-27 Philip Blundell <pb@futuretv.com>
2058
2059 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2060 (obj_coff_strings_written): New accessor macro for above.
2061 * libcoff.h: Regenerate.
2062 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2063 strings.
2064 * coffcode.h (coff_write_object_contents): No need to write out
2065 the string table if it's already been done.
2066
bc7a577d
PB
20672000-11-22 Philip Blundell <pb@futuretv.com>
2068
d952f17a 2069 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2070 weak undefined symbols.
2071
077b8428
NC
20722000-11-24 Nick Clifton <nickc@redhat.com>
2073
2074 * archures.c (bfd_mach_arm_5TE): Define.
2075 (bfd_mach_arm+XScale): Define.
2076 * bfd-in2.h: Regenerate.
2077
2078 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2079 BFD_RELOC_ARM_PCREL_BLX.
2080
2081 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2082 XScale machine numbers.
2083
2084 * config.bfd (xscale-elf): Add target.
2085 (xscale-coff): Add target.
2086
2087 * cpu-arm.c: Add xscale machine name.
2088 Add v5t, v5te and XScale machine numbers.
2089
e9e41bd9
KH
20902000-11-23 Kazu Hirata <kazu@hxi.com>
2091
2092 * aix386-core.c: Fix formatting.
2093
64bf6ae6
JW
20942000-11-22 Jim Wilson <wilson@redhat.com>
2095
2096 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2097 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2098 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2099 (ins_imms_scaled): Initialize sign_bit at function entry.
2100 (elf64_ia64_operands): Add missing initializers.
2101 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2102 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2103 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2104 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2105 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2106 parameters.
2107 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2108 and free_extsyms at function entry.
2109 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2110 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2111 (get_got): Delete unused local srel.
2112 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2113 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2114
1abaf976
KH
21152000-11-21 Kazu Hirata <kazu@hxi.com>
2116
6e301b2b
KH
2117 * coff-a29k.c: Fix formatting.
2118 * coff-h8500.c: Likewise.
2119 * coff-i960.c: Likewise.
2120 * coff-ppc.c: Likewise.
2121 * coff-rs6000.c: Likewise.
2122 * coff-stgo32.c: Likewise.
2123 * coff-tic54x.c: Likewise.
2124 * coff-w65.c: Likewise.
2125 * cpu-h8500.c: Likewise.
2126 * cpu-hppa.c: Likewise.
2127 * cpu-ns32k.c: Likewise.
2128 * ecoff.c: Likewise.
1abaf976
KH
2129 * ecofflink.c: Likewise.
2130
a0fc8ba1
NC
21312000-11-21 Nick Clifton <nickc@redhat.com>
2132
2133 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2134 remove possibility of infinite loop.
2135
beb0d161
KH
21362000-11-20 Kazu Hirata <kazu@hxi.com>
2137
2138 * aix386-core.c: Fix formatting.
2139 * aout-adobe.c: Likewise.
2140 * aout-arm.c: Likewise.
2141 * aout-encap.c: Likewise.
2142 * aout-ns32k.c: Likewise.
2143 * aout-target.h: Likewise.
2144 * aout-tic30.c: Likewise.
2145 * aoutf1.h: Likewise.
2146 * aoutx.h: Likewise.
2147 * archive.c: Likewise.
eb6e10cb
KH
2148 * bfd-in.h: Likewise.
2149 * bfd-in2.h: Likewise.
2150 * bfd.c: Likewise.
2151 * bout.c: Likewise.
beb0d161 2152
2c2475db
JW
21532000-11-17 H.J. Lu <hjl@gnu.org>
2154
2155 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2156 pltoff entries for DT_INIT and DT_FINI.
2157 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2158 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2159 entries.
2160
18b27f17
RH
21612000-11-16 Richard Henderson <rth@redhat.com>
2162
2163 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2164 (allocate_dynrel_entries): Likewise.
2165 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2166 (set_pltoff_entry): Likewise.
2167 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2168 (elfNN_ia64_reloc_type_lookup): Likewise.
2169 (elfNN_ia64_install_value): Likewise.
2170 (elfNN_ia64_relocate_section): Likewise.
2171 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2172 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2173
98591c73
KH
21742000-11-16 Kazu Hirata <kazu@hxi.com>
2175
71f6b586
KH
2176 * cpu-a29k.c: Fix formatting.
2177 * cpu-alpha.c: Likewise.
2178 * cpu-arm.c: Likewise.
2179 * cpu-avr.c: Likewise.
2180 * cpu-d10v.c: Likewise.
2181 * cpu-h8500.c: Likewise.
2182 * cpu-hppa.c: Likewise.
2183 * cpu-i370.c: Likewise.
2184 * cpu-i386.c: Likewise.
2185 * cpu-i960.c: Likewise.
2186 * cpu-ia64-opc.c: Likewise.
2187 * cpu-ia64.c: Likewise.
2188 * cpu-m32r.c: Likewise.
2189 * cpu-m68hc11.c: Likewise.
2190 * cpu-m68hc12.c: Likewise.
2191 * cpu-m68k.c: Likewise.
2192 * cpu-m88k.c: Likewise.
2193 * cpu-mips.c: Likewise.
2194 * cpu-ns32k.c: Likewise.
2195 * cpu-pj.c: Likewise.
2196 * cpu-powerpc.c: Likewise.
2197 * cpu-sh.c: Likewise.
2198 * cpu-sparc.c: Likewise.
2199 * cpu-tic54x.c: Likewise.
2200 * cpu-v850.c: Likewise.
2201 * cpu-vax.c: Likewise.
2202 * cpu-w65.c: Likewise.
2203 * cpu-we32k.c: Likewise.
2204 * cpu-z8k.c: Likewise.
2205 * dwarf1.c: Likewise.
98591c73
KH
2206 * dwarf2.c: Likewise.
2207
c5930ee6
KH
22082000-11-15 Kazu Hirata <kazu@hxi.com>
2209
2210 * coff-arm.c: Fix formatting.
2211 * coff-ppc.c: Likewise.
2212 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2213 * coff-sh.c: Likewise.
2214 * coff-sparc.c: Likewise.
2215 * coff-tic30.c: Likewise.
2216 * coff-tic54x.c: Likewise.
2217 * coff-tic80.c: Likewise.
2218 * coff-w65.c: Likewise.
2219 * coff-we32k.c: Likewise.
2220 * coff-z8k.c: Likewise.
c5930ee6 2221
dac544a8
RH
22222000-11-15 Richard Henderson <rth@redhat.com>
2223
2224 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2225 section with the same ALLOC|LOAD flags as the source section.
2226
c810873d
JJ
22272000-11-14 Jakub Jelinek <jakub@redhat.com>
2228
2229 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2230 by STO_ALPHA constants.
2231
43646c9d
KH
22322000-11-14 Kazu Hirata <kazu@hxi.com>
2233
2234 * coff-pmac.c: Fix formatting.
2235 * coff-ppc.c: Likewise.
2236
051b8577
L
22372000-11-13 H.J. Lu <hjl@gnu.org>
2238
2239 * elflink.h (elf_link_add_object_symbols): Also add indirect
2240 symbols for common symbols with the default version.
2241
90460d97
PB
22422000-11-09 Philip Blundell <pb@futuretv.com>
2243
2244 * section.c (STD_SECTION): Set gc_mark flag.
2245
b48499ec
KH
22462000-11-11 Kazu Hirata <kazu@hxi.com>
2247
2248 * coff-i960.c: Likewise.
2249 * coff-m68k.c: Likewise.
2250 * coff-m88k.c: Likewise.
2251 * coff-mcore.c: Likewise.
2252 * coff-mips.c: Likewise.
2253
c5aeb40f
AO
22542000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2255
2256 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2257
5fcfd273
KH
22582000-11-10 Kazu Hirata <kazu@hxi.com>
2259
2260 * coff-h8300.c: Fix formatting.
2261 * coff-h8500.c: Likewise.
2262 * coff-i386.c: Likewise.
2263 * coff-i860.c: Likewise.
2264 * coff-i960.c: Likewise.
2265 * coff-ia64.c: Likewise.
2266
047066e1
KH
22672000-11-09 Kazu Hirata <kazu@hxi.com>
2268
2269 * archive.c: Fix formatting.
2270 * archures.c: Likewise.
2271
9a951beb
RH
22722000-11-07 Richard Henderson <rth@redhat.com>
2273
2274 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2275 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2276 * section.c (bfd_set_section_contents): Call memcpy if
2277 section->contents set and location not equal to contents plus offset.
2278
aebad5fe
KH
22792000-11-08 Kazu Hirata <kazu@hxi.com>
2280
8546af74
KH
2281 * bfd-in.h: Fix formatting.
2282 * bfd-in2.h: Likewise.
2283 * bfd.c: Likewise.
aebad5fe
KH
2284 * binary.c: Likewise.
2285 * bout.c: Likewise.
346ceb11
KH
2286 * coff-a29k.c: Likewise.
2287 * coff-alpha.c: Likewise.
2288 * coff-apollo.c: Likewise.
2289 * coff-aux.c: Likewise.
aebad5fe 2290
0ef5a5bd
KH
22912000-11-07 Kazu Hirata <kazu@hxi.com>
2292
2293 * aix386-core.c: Fix formatting.
2294 * aoutf1.h: Likewise.
2295 * aoutx.h: Likewise.
2296 * archures.c: Likewise.
2297 * armnetbsd.c: Likewise.
2298
d562d2fb
AM
22992000-11-07 Alan Modra <alan@linuxcare.com.au>
2300
2301 * coff-h8300.c (special): Adjust reloc address.
2302
bbe66d08
JW
23032000-11-06 Steve Ellcey <sje@cup.hp.com>
2304
4efc3e05 2305 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2306 to differentiate elf32 and elf64 on ia64.
2307 * bfd-in2.h: Regenerate.
2308 * config.bfd: Add target for "ia64*-*-hpux*".
2309 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2310 * configure: Regenerate.
4efc3e05 2311 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2312 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2313
2314 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2315 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2316 * Makefile.in: Regnerate.
4efc3e05 2317 * elf64-ia64.c: Deleted.
bbe66d08
JW
2318 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2319
c4dfa77f
KH
23202000-11-06 Kazu Hirata <kazu@hxi.com>
2321
2322 * aout-adobe.c: Fix formatting.
2323 * aout-arm.c: Likewise.
2324 * aout-cris.c: Likewise.
2325 * aout-encap.c: Likewise.
2326 * aout-ns32k.c: Likewise.
2327 * aout-target.h: Likewise.
2328 * aout-tic30.c: Likewise.
2329
cf919dfd
PB
23302000-11-05 Philip Blundell <philb@gnu.org>
2331
2332 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2333 BFDs containing no sections to be merged, regardless of their flags.
2334
23352000-11-04 Philip Blundell <philb@gnu.org>
2336
2337 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2338 if a relocation for an undefined symbol also results in an
2339 overflow.
2340
8d88c4ca 23412000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
2342
2343 * config.bfd: Add support for Sun Chorus.
2344
46d59bfa
DB
23452000-11-05 David O'Brien <obrien@FreeBSD.org>
2346
2347 * configure.in: Recognize alpha-*-freebsd*.
2348 * configure: Regenerate.
2349
d952f17a 23502000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
2351
2352 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2353 (Chunk): New global variable set by a parameter in objcopy.c.
2354 (S3Forced): New global variable set by a parameter in
2355 objcopy.c.
2356 (srec_set_section_contents): If S3Forced is true, always generate
2357 S3 records.
2358 (srec_write_section): Use 'Chunk' to limit maximum length of S
2359 records.
2360
59ff2774
NC
23612000-11-02 Per Lundberg <plundis@chaosdev.org>
2362
2363 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2364 * Makefile.in: Regenerate.
2365 * bfd-in2.h: Regenerate.
2366 * po/bfd.pot: Regenerate.
d952f17a 2367
ee43f35e
PB
23682000-10-31 Philip Blundell <philb@gnu.org>
2369
2370 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2371 EF_SOFT_FLOAT if it is defined.
2372
1006ba19
PB
23732000-10-27 Philip Blundell <philb@gnu.org>
2374
2375 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2376 attempts to mix PIC code with non-PIC, just mark the output as
2377 being position dependent.
d952f17a
AM
2378 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2379 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2380 all mismatches, not just the first one.
d952f17a 2381
c4920b97
NC
23822000-10-25 Chris Demetriou <cgd@sibyte.com>
2383
2384 * ieee.c (ieee_archive_p): Plug one of many possible
2385 memory leaks in error handling.
2386
19f7b010
JJ
23872000-10-20 Jakub Jelinek <jakub@redhat.com>
2388
2389 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2390 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2391 Support v8plusb.
2392 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2393 sparc64_elf_object_p): Support v9b.
2394 * archures.c: Declare v8plusb and v9b machines.
2395 * bfd-in2.h: Ditto.
2396 * cpu-sparc.c: Ditto.
2397
e1e0340b
GK
23982000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2399
ea5fbc67
GK
2400 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2401 of a GOT reloc.
2402
e1e0340b
GK
2403 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2404 (SYMBOL_CALLS_LOCAL): New macro.
2405 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2406 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2407 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2408 (ppc_elf_relocate_section): Use flag variable to determine
2409 whether the relocation refers to a local symbol.
2410 Test whether a PLTREL24 reloc will produce a reloc by looking
2411 to see whether a PLT entry was made.
2412
a4b120e1
GK
24132000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2414
2415 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2416 entries that could serve as a definition for a weak symbol.
2417
5af5b85b
UC
24182000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2419
2420 From Ralf Baechle <ralf@gnu.org>
2421
2422 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2423 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2424 against local symbols.
2425 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2426
3ef20aaa
AM
24272000-10-12 Alan Modra <alan@linuxcare.com.au>
2428
24376d1b
AM
2429 * section.c (struct sec): Add kept_section.
2430 (struct bfd_comdat_info): Remove sec, we can use above.
2431 (STD_SECTION): Add initializer.
2432 (bfd_make_section_anyway): Init here too.
2433
2434 * bfd-in2.h: Regenerate.
2435
2436 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2437 zeroing of `flags'.
24376d1b
AM
2438 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2439 fudge values for discarded link-once section symbols.
2440
3ef20aaa
AM
2441 * elf64-hppa.c: Include alloca-conf.h
2442
c0e219cc
AM
24432000-10-11 Alan Modra <alan@linuxcare.com.au>
2444
d01e2a23
AM
2445 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2446
c0e219cc
AM
2447 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2448
fe268b66
AM
24492000-10-10 Alan Modra <alan@linuxcare.com.au>
2450
2451 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2452
4d7ce4dd
AM
24532000-10-10 Tom Rix <trix@redhat.com>
2454
d952f17a 2455 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2456 newsect->symbol fails to alloc. Use bfd_release instead of free.
2457
f3b6f7c3
RH
24582000-10-09 Richard Henderson <rth@cygnus.com
2459
2460 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2461 (elf64_ia64_unwind_entry_compare): New.
2462 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2463
44852b19
AM
24642000-10-07 Alan Modra <alan@linuxcare.com.au>
2465
fc8c40a0
AM
2466 * elflink.h (size_dynamic_sections): Don't create various tags if
2467 .dynstr is excluded from the link. Don't set first dynsym entry
2468 if dynsymcount is zero.
2469 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2470 .dynsym excluded from the link. Don't try to write any dynamic
2471 sections excluded from the link.
2472
44852b19
AM
2473 * elf.c (swap_out_syms): Handle global section symbols.
2474
3e4554a2
DD
24752000-10-05 DJ Delorie <dj@redhat.com>
2476
2477 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2478 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2479 (coff_write_relocs): write extended reloc count
2480 (coff_write_object_contents): account for extended relocs
2481
fa152c49
JW
24822000-10-05 Jim Wilson <wilson@cygnus.com>
2483
2484 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2485 field.
2486 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2487 elf_backend_section_flags function.
2488 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2489 code.
2490 (elf64_ia64_section_flags): New function containing flag conversion
2491 code.
2492 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2493 * elfxx-target.h (elf_backend_section_flags): Define.
2494 (elfNN_bed): Initialize elf_backend_section_flags field.
2495
36605136
AM
24962000-10-02 Alan Modra <alan@linuxcare.com.au>
2497
2498 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2499 _bfd_elf32_gc_record_vtable. Correct a comment.
2500
4b6609a0
UC
25012000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2502
2503 From Ralf Baechle <ralf@gnu.org>
2504
2505 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2506 produces binaries with got[1] = 0x80000001 to differenciate them
2507 for the dynamic linker from the broken binaries produced by old
2508 versions.
36605136 2509
f572a39d
AM
25102000-09-30 Petr Sorfa <petrs@sco.com>
2511
2512 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2513 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2514 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2515 * configure: Regenerate.
2516
4da81684
HPN
25172000-09-27 Hans-Peter Nilsson <hp@axis.com>
2518
2519 Define two bfd_targets for absence and presence of leading
2520 underscore on symbols. Make sure to only link same kind.
2521 * elf32-cris.c (cris_elf_object_p,
2522 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2523 cris_elf_merge_private_bfd_data): New.
2524 (elf_backend_object_p, elf_backend_final_write_processing,
2525 bfd_elf32_bfd_print_private_bfd_data,
2526 bfd_elf32_bfd_merge_private_bfd_data): Define.
2527 <Target vector definition>: Include elf32-target.h twice with
2528 different macro settings:
2529 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2530 bfd_elf32_us_cris_vec.
2531 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2532 (elf_symbol_leading_char): First as 0, then '_'.
2533 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2534 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2535 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2536 * configure: Regenerate.
2537 * targets.c: Declare bfd_elf32_us_cris_vec.
2538 * po/bfd.pot: Regenerate.
2539
9a5aca8c
AM
25402000-09-29 Momchil Velikov <velco@fadata.bg>
2541
2542 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2543 R_ARM_THM_PC22 relocations.
2544
512a2384
AM
25452000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2546
2547 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2548
6c99a5c3
AM
25492000-09-29 Momchil Velikov <velco@fadata.bg>
2550
2551 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2552 is has the SEC_HAS_CONTENTS flag set.
2553