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