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