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