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