* elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3619ad04
AM
12001-08-17 Alan Modra <amodra@bigpond.net.au>
2
5d964dfa
AM
3 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
4 prototype.
5 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
6
5e572849
AM
7 * elf64-mips.c (UNUSED_RELOC): Define.
8 (mips_elf64_howto_table_rel): Use it.
9 (mips_elf64_howto_table_rela): Here too.
10 (mips_elf64_write_relocs): Fix signed/unsigned warning.
11
cea4409c
AM
12 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
13 silence warning.
14 * coffgen.c (coff_print_symbol): Fix warnings.
15 (coff_find_nearest_line): Likewise.
16 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
17 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
18 * format.c (bfd_check_format_matches): Likewise.
19 (bfd_set_format): Likewise.
20 * coff-ia64.c: Add missing prototypes.
21 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
22 signed to silence warnings.
23 (elf64_alpha_relocate_section): Likewise.
24 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
25 (elf64_alpha_add_symbol_hook): Likewise.
26 (elf64_alpha_final_link): Likewise.
27 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
28 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
29 (elf64_alpha_size_got_sections): Likewise.
30 * elfxx-ia64.c: Add missing prototypes.
31 (elfNN_ia64_relocate_section): Fix warning.
32 (elfNN_ia64_unwind_entry_compare): Make params const.
33
e9e69f5a
AM
34 * config.bfd (targ64_selvecs): New.
35 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
36
69263e90
AM
37 * bfd-in.h (BFD_VERSION): Remove wrong comment.
38 (BFD_DEFAULT_TARGET_SIZE): New.
39 (BFD_ARCH_SIZE): Comment.
40 * configure.in (target_size): New. Set instead of target64 in
41 selvecs case statement. Set target64 from it.
42 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
43 * bfd-in2.h: Regenerate.
44 * configure: Regenerate.
45
3619ad04
AM
46 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
47 (bfd_errmsgs): Add corresponding message.
48 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
49 finding an archive that contains different format object files.
50 Return bfd_error_wrong_object_format for this case.
51 * format.c: Formatting fixes. s/CONST/const/.
52 (bfd_check_format_matches): Accept archives that give
53 bfd_error_wrong_object_format if no full match is found. Tidy
54 code handling matching_vector. Don't return a pointer to freed
55 memory in `matching'. Handle ambiguous matches as for partial
56 archive matches.
57 * bfd-in2.h: Regenerate.
58
47fda0d3
AM
592001-08-15 Alan Modra <amodra@bigpond.net.au>
60
61 * libieee.h (common_header_type): Add last_byte field.
62
63 * ieee.c: Add missing prototypes. Some format fixes.
64 (struct output_buffer_struct): Move for availability to prototypes.
65 (ieee_part_after): New function.
66 (ieee_slurp_debug): Use it here.
67 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
68 ieee_part_after to set last_byte to one past end of current part.
69 Update callers.
70 (ieee_pos): Pass in ieee_data_struct rather than bfd.
71 Update callers.
72 (parse_expression): Don't go beyond the end of the current part.
73 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
74 (ieee_get_symtab_upper_bound, ieee_get_symtab,
75 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
76 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
77 ieee_set_section_contents, ieee_write_object_contents,
78 ieee_make_empty_symbol): Make static.
79 (ieee_archive_p): Correct comments regarding bfd_read.
80 (ieee_object_p): Similarly.
81 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
82 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
83 input_bfd, output_bfd, output_buffer.
84 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
85 do_with_relocs, ie. as a symbol for relocatable files.
86 (ieee_vec): Add comments showing functions referenced by macros.
87
1725a96e
NC
882001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
89
90 * aout-tic30.c: Add missing prototypes. Fix formatting.
91 * aout-ns32k.c: Add missing prototypes. Fix formatting.
92 * peXXigen.c: Add missining prototypes. Fix formatting.
93 * aout-adobe.c: Add missining prototypes. Fix formatting.
94
fa645acb
NC
952001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
96
97 * elf32-v850.c: Add missing function prototypes.
98 Fix some formatting.
1725a96e 99
fa645acb
NC
100 * cpu-v850.c: Add missing function prototype.
101 Fix some formatting.
102
4e771d61
NC
1032001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
104
105 * elf-bfd.h (struct elf_backend_data): Add new fields
106 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
107 (bfd_elf_sprintf_vma): Rename function prototype to
108 '_bfd_elf_sprintf_vma'.
109 (bfd_elf_fprintf_vma): Rename function prototype to
110 '_bfd_elf_fprintf_vma'.
111 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
112 directly, instead indirect via the elf_backend_data structure.
113 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
114 instead indirect via the elf_backend_data structure.
115 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
116 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
117 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
118 already defined.
119 (elf_backend_fprintf_vma): Initialise if not already defined.
120 (struct elf_backend_data): Initialise the
121 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
122
99c79b2e
AJ
1232001-08-10 Andreas Jaeger <aj@suse.de>
124
125 * elf64-sparc.c: Add missing prototypes.
126 * elf32-cris.c: Likewise.
127 * elf32-i370.c: Likewise.
128 * elf64-hppa.c: Likewise.
129 * elf64-s390.c: Likewise.
130
1e1b3bc2
AJ
1312001-08-10 Andreas Jaeger <aj@suse.de>
132
133 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
134 Add prototypes where needed.
135
ef071f24
L
1362001-08-10 H.J. Lu <hjl@gnu.org>
137
138 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
139 (bfd_fprintf_vma): Likewise.
140
5c36c02b
L
1412001-08-10 H.J. Lu <hjl@gnu.org>
142
143 * bfd.c (bfd_sprintf_vma): Don't return void.
144 (bfd_fprintf_vma): Likewise.
145
0218d1e4
AJ
1462001-08-10 Andreas Jaeger <aj@suse.de>
147
148 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
149 to build warnings.
150 * configure: Regenerate.
151
814fa6ab
AM
1522001-08-10 Alan Modra <amodra@bigpond.net.au>
153
cc55aec9
AM
154 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
155 warning if not BFD64. Add braces so emacs auto format works.
156 (bfd_elf_fprintf_vma): Likewise.
157
814fa6ab
AM
158 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
159 of _xcoff_swap_ld*.
160 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
161 param to agree with libxcoff.h.
162 (xcoff_swap_ldhdr_out): Likewise.
163 (xcoff_swap_ldsym_in): Likewise.
164 (xcoff_swap_ldsym_out): Likewise.
165 (xcoff_swap_ldrel_in): Likewise.
166 (xcoff_swap_ldrel_out): Likewise.
167 (xcoff_create_csect_from_smclas): Likewise.
168 * coff64-rs6000.c: Add missing prototypes.
169 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
170 with libxcoff.h.
171 (xcoff64_swap_ldhdr_out): Likewise.
172 (xcoff64_swap_ldsym_in): Likewise.
173 (xcoff64_swap_ldsym_out): Likewise.
174 (xcoff64_swap_ldrel_in): Likewise.
175 (xcoff64_swap_ldrel_out): Likewise.
176 (xcoff64_ppc_relocate_section): Make static.
177 (xcoff64_slurp_armap): Likewise.
178 (xcoff64_archive_p): Likewise.
179 (xcoff64_openr_next_archived_file): Likewise.
180 (xcoff64_sizeof_headers): Likewise.
181 (xcoff64_is_lineno_count_overflow): Likewise.
182 (xcoff64_is_reloc_count_overflow): Likewise.
183 (xcoff64_loader_symbol_offset): Likewise.
184 (xcoff64_loader_reloc_offset): Likewise.
185 * elf64-gen.c: Add missing prototypes.
186
d3b05f8d
L
1872001-08-09 H.J. Lu <hjl@gnu.org>
188
189 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
190 (bfd_elf_fprintf_vma): Likewise.
191
d69bb69b
L
1922001-08-09 H.J. Lu <hjl@gnu.org>
193
194 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
195 to ...
196 * elf-bfd.h: Here.
197 * bfd-in2.h: Regenerated.
198
ae4221d7
L
1992001-08-09 H.J. Lu <hjl@gnu.org>
200
201 * bfd-in.h (bfd_sprintf_vma): New prototype.
202 (bfd_fprintf_vma): Likewise.
203 (bfd_elf_sprintf_vma): Likewise.
204 (bfd_elf_fprintf_vma): Likewise.
205 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
206 * bfd-in2.h: Regenerated.
207
208 * bfd.c (bfd_sprintf_vma): New. Defined.
209 (bfd_fprintf_vma): Likewise.
210
211 * elf.c (bfd_elf_sprintf_vma): New. Defined.
212 (bfd_elf_fprintf_vma): Likewise.
213
a7b97311
AM
2142001-08-09 Alan Modra <amodra@bigpond.net.au>
215
216 * coff-rs6000.c: Add missing prototypes.
217 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
218 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
219 xcoff_loader_reloc_offset): Make static.
220 * dwarf1.c: Add missing prototypes.
221 * dwarf2.c: Add missing prototypes.
222 (struct abbrev_info): Move definition.
223 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
224 * elf.c: Add missing prototypes.
225 * elf32-gen.c: Likewise.
226 * elf32-i386.c: Likewise.
227 * elf32-ppc.c: Likewise.
228 (ppc_elf_sort_rela): Use PTR instead of "void *".
229 * elflink.h: Add missing prototypes. Formatting fixes.
230 * merge.c: Add missing prototypes.
231 (last4_eq): Use PTR instead of "void *".
232 (last_eq): Likewise.
233 * syms.c: Add missing prototypes.
234
55ab10f0
NC
2352001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
236
237 * bfd.c: Fix formatting.
238 * bfd-in2.h: Regenerate.
239
1c26dc27
NC
2402001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
241
242 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
243 true (this target uses REL relocations) and 'pcrel_offset' to
244 false (the PC is implied, not stored in the offset).
245
2517a57f
AM
2462001-08-08 Alan Modra <amodra@bigpond.net.au>
247
248 1999-10-19 Linus Nordberg <linus@swox.se>
249 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
250 * elfxx-target.h (elf_backend_want_got_sym): Define.
251 (elfNN_bed): Add elf_backend_want_got_sym.
252 * elflink.c (_bfd_elf_create_got_section): Define
253 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
254
f2363ce5
AO
2552001-08-08 Alexandre Oliva <aoliva@redhat.com>
256
257 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
258 (find_rela_addend): New function.
259 (parse_comp_unit): Call it to find the abbrev offset addend.
260 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
261 members of dwarf2_debug as debugging information is read.
262
993e9275
NC
2632001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
264
265 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
266 targets as well as sh-pe.
267
62efb346
NC
2682001-08-03 Ben Harris <bjh21@netbsd.org>
269
270 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
271 reloc from start of section when computing value for R_ARM_REL32
272 reloc.
273
8e1d4bbb
AM
2742001-08-03 Alan Modra <amodra@bigpond.net.au>
275
276 From H.J. Lu <hjl@gnu.org>
277 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
278 keep relocs for undefined syms if there are no dynamic sections in
279 executable.
280 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
281
8ceb7a1b
CW
2822001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
283
284 * cofflink.c (coff_link_check_ar_symbols): also search for
285 __imp__symbol as well as _symbol.
286 * linker.c (_bfd_generic_link_add_archive_symbols): also
287 search for __imp__symbol as well as _symbol.
288
00a7cdc5
NC
2892001-08-01 Adam Nemet <anemet@lnxw.com>
290
291 * elf.c (elf_sort_sections): Return zero only as the last step.
292
d8adc60f
NC
2932001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
294
295 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
296 ARM_COFF_BUGFIX.
297 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
298 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
299 ARM_COFF_BUGFIX.
300
407c2b92
NC
3012001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
302
303 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
304 to match corresponding bfd_coff_backend data member.
305
8a5cc6be
AM
3062001-07-24 Alan Modra <amodra@bigpond.net.au>
307
308 * Makefile.am: Update dependencies with "make dep-am".
309 * Makefile.in: Regenerate
310
01467f2a
L
3112001-07-15 H.J. Lu <hjl@gnu.org>
312
313 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
314 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
315 * Makefile.in: Regenerate.
316
824e2cb4
L
3172001-07-11 H.J. Lu <hjl@gnu.org>
318
319 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
320 flags when creating the reloc section if the ALLOC flag in the
321 source section is set.
322
a4bd8390
JW
3232001-07-11 Steve Ellcey <sje@cup.hp.com>
324
325 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
326 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
327 * bfd-in2.h: Regenerate.
328 * libbfd.h: Regenerate.
329 * elfxx-ia64.c (ia64_howto_table): Define how to handle
330 new relocations.
331 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
332 (elfNN_ia64_check_relocs): Likewise.
333 (elfNN_ia64_install_value): Likewise.
334 (elfNN_ia64_relocate_section): Likewise.
335
20278fa3
JJ
3362001-07-11 Jakub Jelinek <jakub@redhat.com>
337
338 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
339 R_SPARC_UA64.
340 (elf32_sparc_check_relocs): Likewise.
341 Only create .rela section for alloced sections in shared libraries.
342 (elf32_sparc_relocate_section): Likewise.
343 Remove redundant check.
344 Optimize unaligned reloc usage.
345 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
346 check.
347
067a7d17
L
3482001-07-11 H.J. Lu <hjl@gnu.org>
349
350 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
351 ALLOC|LOAD flags as the source section for debugging sections
352 when creating the reloc section.
353
a78f18dc
JW
3542001-07-05 Jim Wilson <wilson@redhat.com>
355
0a2afbc1
JW
356 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
357 the section of the bigger symbol.
358
a78f18dc
JW
359 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
360
0515494a
NC
3612001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
362
363 * peicode.h (coff_swap_scnhdr_in): For sections containing
364 uninitialised data, only set their size to s_paddr if this does
365 not reset their size to zero. MS's latest compilers will set
366 s_paddr to zero.
367
5e7079af
L
3682001-07-04 H.J. Lu <hjl@gnu.org>
369
370 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
371 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
372 bfd_mach_mips5000.
373
440c4607
NC
3742001-07-03 Mark Elbrecht <snowball3@softhome.net>
375
f47e5071
NC
376 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
377
440c4607
NC
378 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
379 sections being discarded.
380
936e320b
AM
3812001-06-30 Alan Modra <amodra@bigpond.net.au>
382
383 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
384 instead of _bfd_elfcore_section_from_phdr.
385 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
386 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
387 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
388 (elfcore_grok_prstatus): Likewise.
389 (elfcore_grok_lwpstatus): Likewise.
390 (bfd_get_elf_phdr_upper_bound): Likewise.
391 (elfcore_make_note_pseudosection): Formatting.
392 (_bfd_elfcore_strndup): Formatting.
393 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
394 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
395
bb0082d6
AM
3962001-06-29 Daniel Jacobowitz <drow@mvista.com>
397
398 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
399 and _bfd_elfcore_strndup.
400 (struct elf_backend_data): Add elf_backend_grok_prstatus
401 and elf_backend_grok_psinfo.
402 * elf.c (_bfd_elfcore_make_pseudosection): New function.
403 (elfcore_grok_prstatus): Use it.
404 (elfcore_make_note_pseudosection): Likewise.
405 (elfcore_strndup): Rename to...
406 (_bfd_elfcore_strndup): Here, and make global.
407 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
408 (elfcore_grok_note): Call elf_backend_grok_prstatus
409 and elf_backend_grok_psinfo if available.
410 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
411 (_bfd_elf32_mips_grok_psinfo): New function.
412 (elf_backend_grok_prstatus): Define.
413 (elf_backend_grok_psinfo): Define.
414 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
415 (elf_backend_grok_psinfo): Likewise.
416 (elfNN_bed): Include elf_backend_grok_prstatus and
417 elf_backend_grok_psinfo.
418
b64977c5
L
4192001-06-29 H.J. Lu <hjl@gnu.org>
420
421 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
8e1d4bbb 422 hplink->sgot is NULL before filling GOT. Check if hplink->splt
b64977c5
L
423 is NULL before filling PLT.
424
e45bf863
AM
4252001-06-29 Alan Modra <amodra@bigpond.net.au>
426
427 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
428
5a15f56f
AM
4292001-06-27 Alan Modra <amodra@bigpond.net.au>
430
446f2863
AM
431 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
432 here..
433 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
434 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
435 after gc has run.
436
437 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
438 (IS_ABSOLUTE_RELOC): Define.
439 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
440 (hppa_link_hash_newfunc): Always init it.
441 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
442 create COPY relocs only when the reloc is in a read-only section.
443 Instead, allocate space for a dynamic reloc to reference the
444 library symbol directly. Keep track of space we allocate using
445 relocs_entries.
446 (hppa_discard_copies): Delete, and move code to..
447 (allocate_plt_and_got): ..here. Rename to
448 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
449 relocs for non-shared link.
450 (elf32_hppa_size_dynamic_sections): Update calls to above.
451 (elf32_hppa_relocate_section): Write out the dynamic relocs used
452 in lieu of COPY relocs.
453
5a15f56f
AM
454 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
455 here..
456 (elf_i386_adjust_dynamic_symbol): ..nor here..
457 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
458 after gc has run.
459 (elf_i386_size_dynamic_sections): Fix a comment.
460 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
461 involved in writing reloc out.
462
866b3400
AM
4632001-06-25 Alan Modra <amodra@bigpond.net.au>
464
28d0b90e
AM
465 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
466 Ensure syms are dynamic if we might be emitting a reloc.
467 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
468 for undefweak or undefined syms..
469 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
470
866b3400
AM
471 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
472 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
473 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
474 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
475
6cbac8b9
L
4762001-06-24 H.J. Lu <hjl@gnu.org>
477
478 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
479 strncasecmp/strcasecmp instead of strncmp/strcmp.
480
62b7d3f1
L
4812001-06-23 H.J. Lu <hjl@gnu.org>
482
866b3400
AM
483 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
484 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
485 in the regular object file and treat the weak definition as
486 the normal one.
487
12d0ee4a
AM
4882001-06-23 Alan Modra <amodra@bigpond.net.au>
489
8c694914
AM
490 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
491 unresolved_reloc test to exclude cases where we use "relocation"
492 before setting it to point into the .got. Reinstate fudge for
493 unresolved relocs in debugging sections.
494
83be169b
AM
495 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
496 complicated tests for unresolvable relocs with a simple direct
497 scheme using "unresolved_reloc" var.
498
ffb2e45b
AM
499 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
500 elf_i386_dyn_relocs. Update comment.
501 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
502 dyn_relocs.
503 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
504 others to aborts.
505 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
506 abort.
507 (elf_i386_size_dynamic_sections): Likewise.
508 (elf_i386_finish_dynamic_symbol): Likewise.
509 (elf_i386_finish_dynamic_sections): Likewise.
510 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
511 handling code.
512
12d0ee4a
AM
513 Avoid creating COPY relocs if possible.
514 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
515 which .got created. Mark symbols used by R_386_32 and R_386_PC32
516 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
517 reloc is in a read-only section. Instead, allocate space for a
518 dynamic reloc to reference the library symbol directly. Keep
519 track of space we allocate using pcrel_relocs_copied.
520 (discard_copies): Delete, and move code to ..
521 (allocate_plt_and_got): ..here. Rename to
522 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
523 relocs for non-shared link.
524 (elf_i386_size_dynamic_sections): Update calls to above functions.
525 (elf_i386_relocate_section): Write out the dynamic relocs. Add
526 more ugly logic to avoid "unresolvable relocation" error. Use
527 htab shortcut in place of elf_hash_table macro.
528 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
529 not always be created now.
530
f631948d
AJ
5312001-06-20 Bo Thorsen <bo@suse.co.uk>
532
533 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
534 shared libraries.
535
89084430
NC
5362001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
537
538 * configure.host (mips64-*-linux): Reformat.
539
68fb2e56
AM
5402001-06-21 Alan Modra <amodra@bigpond.net.au>
541
542 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
543 allocate local .got space. Use shortcuts from hash table for .got
544 and .plt rather than comparing section names.
545 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
546 adjusting index into local_got_refcounts to document what we are
547 really doing.
548 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
549 Tidy .got and .plt error checking.
550
9317eacc
CM
5512001-06-20 Catherine Moore <clm@redhat.com>
552
bb0082d6
AM
553 * elf-bfd.h (struct elf_backend_data):
554 elf_backend_emit_relocs: New field: Function for emitting
555 relocs.
556 elf_backend_count_relocs: New field: Function for determining
557 the number of relocs to be emitted.
558 * elfxx-target.h: Provide default (NULL) values for
559 elf_backend_emit_relocs and elf_backend_count_relocs.
560 * elflink.h (elf_link_size_reloc_section): Make the hash table
561 big enough to hold the relocs counted by either reloc_count or
562 o->reloc_count.
563 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
564 should be emitted, either because of a command line option
565 stored in the info structure or because the target provides a
566 special reloc emitting function.
567 If the target provides a reloc counting function use it,
568 unless performing a relocatable link or emitting all relocs.
569 Also set the SEC_RELOC flag on any output section which will
570 contain relocs.
571 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
572 should be emitted, either because of a command line option
573 stored in the info structure or because the target provides a
574 special reloc emitting function.
575 If the target provides a reloc emitting function, use it,
576 unless performing a relocatable link or emitting all relocs.
9317eacc 577
161d71a6
L
5782001-06-20 H.J. Lu <hjl@gnu.org>
579
580 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
581 allocate local .got space.
582
fd8ab9e5
AJ
5832001-06-19 Andreas Jaeger <aj@suse.de>
584
585 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
586 dynamic symbols.
587
99293407
HPN
5882001-06-18 Hans-Peter Nilsson <hp@axis.com>
589
590 * elflink.h (struct elf_assign_sym_version_info): Remove member
591 export_dynamic. All users changed to use info member.
592 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
593 export_dynamic, instead use member in parameter info.
594 * bfd-in.h (bfd_elf32_size_dynamic_sections,
595 bfd_elf64_size_dynamic_sections): Update prototype.
596 * bfd-in2.h: Regenerate.
597
bc2b6df7
L
5982001-06-18 H.J. Lu <hjl@gnu.org>
599
600 * elflink.h (elf_info_failed): Add a new field, verdefs.
601 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
602 elf_export_symbol.
603 (elf_export_symbol): Check eif->verdefs to decide if a symbol
604 should be exported.
605
43917054
L
6062001-06-17 H.J. Lu <hjl@gnu.org>
607
608 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
609 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 610 section is against a read-only section.
43917054
L
611 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
612 field to false.
613 (_bfd_mips_elf_check_relocs): Record if there is a relocation
614 in the .rel.dyn section against a read-only section by setting
615 DF_TEXTREL or readonly_reloc.
616 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
617 it is true.
618 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
619 there is a relocation in the .rel.dyn section against a
620 read-only section.
621 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
622 DF_TEXTREL is set.
623
7c8ca0e4
NC
6242001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
625
626 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
627 function. Move flagword result into parameter list. Remove
628 comment about setting bfd_error_handler to intercept failure
629 results.
bb0082d6 630 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
631 calling bfd_coff_styp_to_sec_flags and pass a failure back to
632 caller.
bb0082d6 633 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 634 function. Move flagword result into parameter list.
bb0082d6
AM
635 * libcoff.h: Regenerate.
636 * libecoff.h: Regenerate.
7c8ca0e4 637
dee0a8f4
NC
6382001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
639
640 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
641 section is going to follow it.
642
0d1ea5c0
CM
6432001-06-12 Catherine Moore <clm@redhat.com>
644
bb0082d6
AM
645 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
646 with the file_align entry from elf_backend_data.
647 (elf_gc_smash_unused_vtentry_relocs): Likewise.
648 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 649
4e8a9624
AM
6502001-06-10 Alan Modra <amodra@bigpond.net.au>
651
652 * elflink.h: Whitespace changes.
653 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
654 rather than "unsigned char".
655 (elf_link_output_relocs): Likewise.
656 (elf_link_input_bfd): Likewise.
657 (elf_reloc_link_order): LIkewise.
658 * elf.c: s/CONST/const/. Whitespace changes.
659 * elf32-mips.c: Formatting fix.
660
661 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
662 * Makefile.in: Regenerate.
663 * po/Make-in: Remove trailing tab.
664
7a25cd3e
PB
6652001-06-09 Philip Blundell <philb@gnu.org>
666
667 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
668 change.
669 (elf32_arm_plt_entry): Likewise.
670
3f5a136d
L
6712001-06-08 H.J. Lu <hjl@gnu.org>
672
673 * elf.c (swap_out_syms): Keep names for global section symbols.
674
d8fe1fed
L
6752001-06-07 H.J. Lu <hjl@gnu.org>
676
677 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
678 MIPS-based machines need it.
679
c36e006f
L
6802001-06-07 H.J. Lu <hjl@gnu.org>
681
682 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
683 for SGI only.
684
685 * config.bfd: Remove ecoff from Linux/mips.
686
cc78d0af
AJ
6872001-06-07 Andreas Jaeger <aj@suse.de>
688
689 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
690 assertion.
691 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
692 alignment of 8 for .rela sections; handle further relocations.
693
879db8be
NC
6942001-06-06 Christian Groessler <cpg@aladdin.de>
695
bb0082d6 696 * coff-z8k.c: Fix formatting.
879db8be
NC
697 Fix howtos: howto->size was always 1.
698
cbb1fd50
NC
6992001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
700
701 * configure.host (mips64*-*-linux*): Define.
702
73a74a62
AM
7032001-06-05 Alan Modra <amodra@bigpond.net.au>
704
6725bdbf
AM
705 * elf32-i386.c (elf_i386_discard_copies): Rename to
706 discard_copies, and use elf_link_hash_entry arg rather than
707 elf_i386_link_hash_entry.
708 (elf_i386_link_hash_traverse): Delete.
709 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
710 Tidy sizing of dynamic sections.
711 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
712 possible .plt entries.
713 (elf_i386_gc_sweep_hook): Likewise.
714 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
715 everything with plt.refcount <= 0.
716
717 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
718 .relgot space here.
719 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 720 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
721 .rel.plt here..
722 (allocate_plt_and_got): ..instead do it all here. New function.
723 (elf_i386_size_dynamic_sections): Allocate local .got space and
724 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
725 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
726 rather than gc variety).
727 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
728 (elf_i386_relocate_section): Use it here and correct handling of
729 R_386_GOT32. Provide section and offset for "unresolvable
730 relocation" error message.
731 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
732
733 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
734 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
735 (elf_i386_link_hash_table_create): Init them.
736 (create_got_section): New function.
737 (elf_i386_create_dynamic_sections): New function.
738 (elf_backend_create_dynamic_sections): Set to above.
739 (elf_i386_check_relocs): Use shortcuts from hash table rather than
740 calling bfd_get_section_by_name.
741 (elf_i386_gc_sweep_hook): Likewise.
742 (elf_i386_adjust_dynamic_symbol): Likewise.
743 (elf_i386_size_dynamic_sections): Likewise.
744 (elf_i386_relocate_section): Likewise.
745 (elf_i386_finish_dynamic_sections): Likewise.
746
73a74a62
AM
747 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
748
24a5e751
L
7492001-06-02 H.J. Lu <hjl@gnu.org>
750
751 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
752 and ELFOSABI_HPUX.
753 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
754
15103188
L
7552001-06-02 H.J. Lu <hjl@gnu.org>
756
757 * aout-cris.c (MACHTYPE_OK): New. Defined.
758
2f484710
HPN
7592001-06-02 Hans-Peter Nilsson <hp@axis.com>
760
761 * section.c (_bfd_strip_section_from_output): Handle NULL
762 output_section.
763
a5ac692b
L
7642001-06-02 H.J. Lu <hjl@gnu.org>
765
766 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
767 rs6000coff64_vec only if BFD64 is defined.
768 (powerpc64-*-aix*): Enable only if BFD64 is defined.
769
27e53099
L
7702001-06-02 H.J. Lu <hjl@gnu.org>
771
772 * coff-ia64.c (ia64coff_object_p): Rewrite with
773 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
774
80643fbc
AJ
7752001-06-01 Andreas Jaeger <aj@suse.de>
776
777 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
778 relocation, small reformatting.
779
6b3db546
AJ
7802001-05-29 Andreas Jaeger <aj@suse.de>
781
782 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
783 (elf64_x86_64_relocate_section): Likewise.
784
4dc86686
AM
7852001-05-30 Alan Modra <amodra@one.net.au>
786
787 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
788 millicode. Don't allocate .got and .rela.got space here..
789 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
790 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
791 .rela.plt here..
792 (hppa_handle_PIC_calls): ..nor here..
793 (allocate_plt_and_got): ..instead do it all here. New function.
794 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
795 call allocate_plt_and_got. No need to zap .got if not dynamic.
796 (elf32_hppa_final_link): Call regular bfd_final_link instead of
797 gc_common_final_link.
798 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
799 (elf32_hppa_relocate_section): Use it here.
800 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
801 dynamic_sections_created.
802 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
803
de41dcd8
AJ
8042001-05-28 Andreas Jaeger <aj@suse.de>
805
806 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
807 generic version since we want a hashsize of 4.
808 (elf_backend_size_info): Likewise.
809
209f668e
NC
8102001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
811
209f668e
NC
812 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
813 a zeroing loop.
814 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
815 (elf_link_input_bfd): Likewise.
816 (elf_reloc_link_order): Likewise.
817 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
818 relocations correctly.
819
f7a74f8c
NC
8202001-05-28 Nicolas Pitre <nico@cam.org>
821
822 * elf32-arm.h: fix PLT generation for big endian ARM
823
8dea1268
AM
8242001-05-28 Alan Modra <amodra@one.net.au>
825
826 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
827 for symbols forced local that need plabels.
828 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
829 .plt.rela for local syms if non-shared.
830 (hppa_build_one_stub): Mask lsb of plt.offset.
831 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
832 (clobber_millicode_symbols): Correct comment.
833 (elf32_hppa_relocate_section): Likewise.
834 (elf32_hppa_finish_dynamic_symbol): Likewise.
835
0f2712ed
NC
8362001-05-28 Jeff Sturm <jsturm@one-point.com>
837
838 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
839 * bfd-in2.h: Regenerate.
840 * libbfd.h: Regenerate.
841 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
842 and BFD_RELOC_SPARC_UA64 mapping
843 * elf64-sparc.c: Likewise.
de41dcd8 844
6768c14a
L
8452001-05-25 H.J. Lu <hjl@gnu.org>
846
847 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
848 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
849 (coff-rs6000.lo): Remove the old dependency.
850 * Makefile.in: Rebuild.
851
852 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
853 coff-rs6000.lo.
854
b55039f4
L
8552001-05-25 H.J. Lu <hjl@gnu.org>
856
857 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
858 rs6000coff_core_file_matches_executable_p,
859 rs6000coff_core_file_failing_command and
860 rs6000coff_core_file_failing_signal only if AIX_CORE is
861 defined.
862 (pmac_xcoff_vec): Likewise.
863 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
864
64e9ece0
TW
8652001-05-25 Timothy Wall <twall@redhat.com>
866
867 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
868 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
869
f34d8777
L
8702001-05-25 H.J. Lu <hjl@gnu.org>
871
872 * bfd-in2.h: Regenerated.
873 * libcoff.h: Likewise.
874
49e9d0d3
AM
8752001-05-25 Alan Modra <amodra@one.net.au>
876
877 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
878 undefined millicode syms in shared libs.
879 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
880 (elf32_hppa_check_relocs): Likewise.
881 (elf32_hppa_adjust_dynamic_symbol): Likewise.
882 (elf32_hppa_size_dynamic_sections): Likewise.
883 (elf32_hppa_relocate_section): Likewise.
884 (elf32_hppa_finish_dynamic_symbol): Likewise.
885 (elf32_hppa_finish_dynamic_sections): Likewise.
886
beb1bf64
TR
8872001-05-24 Tom Rix <trix@redhat.com>
888
bb0082d6 889 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
890 xcoff-target.h not used to define rs6000 or ppc bfd.
891 * Makefile.in same
892
893 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
894 to 64 bit.
895
896 * coff-rs6000.c : Many changes for 64 bit support. Move common
897 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
898 and pmac_xcoff_vec
899
900 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
901 linker now supported. Explictly define the rs6000coff64_vec.
902
903 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 904 (coff_print_aux) same
beb1bf64
TR
905 (coff_write_object_contents) same
906 (coff_slurp_line_table) same
907
908 * coffgen.c : (coff_fix_symbol_name) formatting
909 (coff_mangle_symbols) xcoff 64 bit support
910 (coff_write_symbol) same
911 (coff_write_alien_symbol) same
912 (coff_write_native_symbol) same
913 (coff_write_symbols) same
914 (coff_get_symbol_info) same
915 (bfd_coff_get_syment) same
916 (coff_print_symbol) same
917
918 * config.bfd : add powerpc64-*-aix* target
919
920 * libcoff-in.h : formatting
921
922 * libcoff.h : move xcoff extern declarations to libxcoff.h
923
924 * libxcoff.h : New file
925
de41dcd8
AJ
926 * xcofflink.c : Many changes for xcoff64 support. Move common
927 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
928 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
929 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
930
931 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
932 aix4.2+ -binitfini.
933
934 (xcoff_build_ldsyms) : handle special __rtinit symbol.
935
e90fdc1a
AO
9362001-05-23 Alexandre Oliva <aoliva@redhat.com>
937
938 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
939 s/ENTIRES/ENTRIES/.
940
d1cf510e
NC
9412001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942
c2feb664
NC
943 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
944 * libbfd.h: Regenerate.
4e8a9624 945 * bfd-in2.h: Regenerate.
c2feb664 946
d1cf510e
NC
947 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
948 * archures.c (bfd_mach_mips12000): Define.
949 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
950 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
951 support.
952 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
953 * bfd-in2.h: Regenerate.
954 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
955
6c426cf3
NC
9562001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
957
958 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
959 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
960 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
961 that is used by GCC.
962
d9bc7a44
NC
9632001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
964
965 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
966 of entries in a structured section.
bb0082d6
AM
967 * elf.c: Use new macro.
968 * elf32-i386.c: Use new macro.
969 * elf32-mips.c: Use new macro.
970 * elf64-alpha.c: Use new macro.
971 * elf64-sparc.c: Use new macro.
972 * elfcode.h: Use new macro.
973 * elflink.h: Use new macro.
d9bc7a44
NC
974
9752001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
976
977 * bfdint.texi: Replace -oformat with --oformat.
978
f5198f61
AJ
9792001-05-21 Andreas Jaeger <aj@suse.de>
980
981 * dwarf2.c (decode_line_info): Fix error message.
982 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
983 adjust error message.
984
7913c838
L
9852001-05-18 H.J. Lu <hjl@gnu.org>
986
987 * elflink.h (elf_link_add_object_symbols): Revert the last
988 change.
989
e0522e89
AM
9902001-05-17 Alan Modra <amodra@one.net.au>
991
992 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
993 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
994 (hppa_build_one_stub): Add an assert to check plt.offset.
995
96fd004e
L
9962001-05-17 H.J. Lu <hjl@gnu.org>
997
998 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
999 version definition to basename of the output filename.
1000
f3876d8b
L
10012001-05-17 H.J. Lu <hjl@gnu.org>
1002
1003 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1004 basename of the bfd filename.
1005
d1778b88
AM
10062001-05-16 Alan Modra <amodra@one.net.au>
1007
1008 * section.c (asection): Add linker_has_input field.
1009 (STD_SECTION): Adjust initialization to suit.
1010 * ecoff.c (bfd_debug_section): Likewise.
1011 * bfd-in2.h: Regenerate.
1012
2a0fa943
AO
10132001-05-15 Alexandre Oliva <aoliva@redhat.com>
1014
1015 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1016 negative 32-bit operands to 16 operands when the operand is
1017 going to be zero-extended by the modified opcode.
1018
bcee8eb8
AM
10192001-05-12 Peter Targett <peter.targett@arccores.com>
1020
1021 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1022 name for 'arc5' core versions.
1023 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1024
1025 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1026 architecture.
1027 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1028
579f31ac
JJ
10292001-05-11 Jakub Jelinek <jakub@redhat.com>
1030
1031 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1032 sections as well.
1033 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1034 to .gnu.linkonce.t.FOO text section.
1035
8550eb6e
JJ
10362001-05-11 Jakub Jelinek <jakub@redhat.com>
1037
1038 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1039 fields, change sec into secinfo.
1040 (struct sec_merge_info): Add chain, remove last fields.
1041 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1042 (sec_merge_hash_lookup): If lookup could not use a string only
1043 because it has bad alignment, mark the old string for deletion.
1044 (sec_merge_add): Add secinfo argument. Don't compute entry's
1045 position, instead record the section.
1046 (sec_merge_emit): Update for the sec into secinfo change in
1047 struct sec_merge_hash_entry.
1048 (_bfd_merge_section): Only record the section for merging, defer
1049 putting strings into the hash table.
1050 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1051 _bfd_merge_sections): New functions.
1052 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1053 changes.
1054 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1055 (_bfd_nolink_bfd_merge_sections): Define.
1056 * libbfd.h: Likewise.
1057 (bfd_generic_merge_sections): Add prototype.
1058 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1059 (struct bfd_target): Likewise.
1060 * bfd.c (bfd_merge_sections): Define.
1061 * bfd-in2.h: Rebuilt.
1062 * elf.c (_bfd_elf_merge_sections): New function.
1063 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1064 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1065 * reloc.c (bfd_generic_merge_sections): New function.
1066 * vms.c (vms_bfd_merge_sections): New function.
1067 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1068 * aout-target.h (MY_bfd_merge_sections): Define.
1069 * aout-tic30.c (MY_bfd_merge_sections): Define.
1070 * binary.c (binary_bfd_merge_sections): Define.
1071 * bout.c (b_out_bfd_merge_sections): Define.
1072 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1073 * coffcode.c (coff_bfd_merge_sections): Define.
1074 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1075 * i386msdos.c (msdos_bfd_merge_sections): Define.
1076 * i386os9k.c (os9k_bfd_merge_sections): Define.
1077 * ieee.c (ieee_bfd_merge_sections): Define.
1078 * ihex.c (ihex_bfd_merge_sections): Define.
1079 * nlm-target.h (nlm_bfd_merge_sections): Define.
1080 * oasys.c (oasys_bfd_merge_sections): Define.
1081 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1082 * som.c (som_bfd_merge_sections): Define.
1083 * srec.c (srec_bfd_merge_sections): Define.
1084 * tekhex.c (tekhex_bfd_merge_sections): Define.
1085 * versados.c (versados_bfd_merge_sections): Define.
1086 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1087
1548c54f
NC
10882001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1089
1090 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1091 to be unsigned long, in order to match its use.
1092
689effed
L
10932001-05-10 H.J. Lu <hjl@gnu.org>
1094
1095 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1096 indirect symbols.
1097
6e5222be
L
10982001-05-09 H.J. Lu <hjl@gnu.org>
1099
1100 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1101 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1102 Remove the unused veriable `dynver'.
1103
8e191bd3
ILT
11042001-05-08 Ian Lance Taylor <ian@zembu.com>
1105
1106 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1107 NULL or is not COFF.
1108 (coff_i386_rtype_to_howto): Don't dump core if output section
1109 owner is not COFF.
1110
062e2358
AM
11112001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1112
1113 * ecoff.c (bfd_debug_section): Fix initialization.
1114 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1115 is always a positive integer. Cast away sign mismatch.
1116 * elf32-mips.c: Fix misleading comment and typo.
1117 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1118 correct data type.
1119 * elflink.c: Fix typo.
1120 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1121 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1122
16b65e4e
RH
11232001-05-04 Richard Henderson <rth@redhat.com>
1124
1125 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1126
cac15327
NC
11272001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1128
1129 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 1130 EF_ARM_HASENTRY if the start address is set.
cac15327 1131
966b3e0b
NC
11322001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1133
1134 * targets.c (_bfd_target_vector_entries): Compute value based on
1135 the size of the _bfd_target_vector and not bfd_target_vector.
1136
210ba1e8
L
11372001-05-03 H.J. Lu <hjl@gnu.org>
1138
1139 * elfcode.h: Include "libiberty.h".
1140
1141 * elflink.h (elf_link_add_object_symbols): Set
1142 elf_dt_name (abfd) to basename of the bfd filename.
1143 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1144 of the bfd filename.
1145
56fc028e
AJ
11462001-05-03 Andreas Jaeger <aj@suse.de>
1147
1148 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1149 (elf_generic_info_to_howto_rel): Likewise.
1150 * coff-alpha.c (reloc_nil): Likewise.
1151 (alpha_ecoff_bad_format_hook): Likewise.
1152 (alpha_adjust_reloc_out): Likewise.
1153 (alpha_bfd_reloc_type_lookup): Likewise.
1154 (alpha_convert_external_reloc): Likewise.
1155 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1156 (elf64_alpha_reloc_bad): Likewise.
1157 (elf64_alpha_reloc_gpdisp): Likewise.
1158 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1159 (elf64_alpha_info_to_howto): Likewise.
1160 (elf64_alpha_add_symbol_hook): Likewise.
1161 (elf64_alpha_create_got_section): Likewise.
1162 (elf64_alpha_is_local_label_name): Likewise.
1163 (elf64_alpha_merge_ind_symbols): Likewise.
1164 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1165 (mips_elf64_get_reloc_upper_bound): Likewise.
1166 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1167 (nlm_alpha_get_public_offset): Likewise.
1168
c7e40348
NC
11692001-05-02 Johan Rydberg <jrydberg@opencores.org>
1170
bb0082d6 1171 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 1172 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 1173 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 1174
5fba655a
L
11752001-04-30 H.J. Lu <hjl@gnu.org>
1176
1177 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1178 only for ELF_LINK_FORCED_LOCAL.
1179 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1180 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1181 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1182
1183 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1184 if the symbol has hidden or internal visibility.
1185
db20fd76
AM
11862001-04-30 Alan Modra <amodra@one.net.au>
1187
1188 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1189 calls to undefined weak symbols.
1190
6a2bda3f
AJ
11912001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1192
1193 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1194 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1195
053579d7
AJ
11962001-04-27 Andreas Jaeger <aj@suse.de>
1197
1198 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1199 out handled entries.
1200 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1201 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1202 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1203 GOT32.
1204
87748b32
NC
12052001-04-27 Sean McNeil <sean@mcneil.com>
1206
1207 * config.bfd: Add arm-vxworks target.
1208 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1209 addend (fro VXworks targets).
1210
f5f31454
L
12112001-04-26 H.J. Lu <hjl@gnu.org>
1212
1213 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1214 valid.
1215
d436a9b3
FCE
12162001-04-25 Frank Ch. Eigler <fche@redhat.com>
1217
1218 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1219 * bfd-in2.h: Regenerated.
1220
a531bbd2
JJ
12212001-04-24 Jakub Jelinek <jakub@redhat.com>
1222
1223 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1224 (struct sec_merge_hash): Remove alignment_power.
1225 (sec_merge_hash_newfunc): Clear alignment.
1226 (sec_merge_hash_lookup): Pass alignment as argument.
1227 Use hashp->root.next, not hashp->next to walk the hash chain.
1228 If a string already in the hashtable does not have required
1229 alignment, create a new hashtable entry.
1230 (sec_merge_init): Remove alignment_power argument.
1231 (sec_merge_add): Add alignment argument.
1232 (sec_merge_emit): Alignment is now a per-entity thing, not per
1233 section.
1234 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1235 for proper alignment.
1236 Pass alignment information to sec_merge_add.
1237
6840198f
NC
12382001-04-24 Christian Groessler <cpg@aladdin.de>
1239
1240 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1241 and R_REL16 reloc types; accept odd values for R_REL16 type
1242
b3baf5d0
NC
12432001-04-24 Johan Rydberg <jrydberg@opencores.org>
1244
1245 * cpu-openrisc.c: New file.
1246 * elf32-openrisc.c: Likewise.
1247
1248 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1249 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1250 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1251 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1252 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1253 * Makefile.in: Regenerated.
1254 * config.bfd: (openrisc-*-elf): New target.
053579d7 1255 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
1256 * configure: Regenerated.
1257 * libbfd.h: Regenerated.
1258 * bfd-in2.h: Regenerated.
1259 * reloc.c: Add OpenRISC relocations.
053579d7 1260 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
1261 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1262 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1263 (bfd_openrisc_arch): Declare.
1264 (bfd_archures_list): Add bfd_openrisc_arch.
1265 * elf.c (prep_headers): Add bfd_arch_openrisc.
1266
fe4770f4
AJ
12672001-04-23 Bo Thorsen <bo@suse.de>
1268
1269 * elf64-x86-64.c: Add c++ vtable hack.
1270 Small whitespace and comment changes.
1271
653165cc
AJ
12722001-04-19 Andreas Jaeger <aj@suse.de>
1273
1274 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1275 (elf64_x86_64_plt_entry): Likewise.
1276 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1277 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1278
4d96d128
HPN
12792001-04-17 Hans-Peter Nilsson <hp@axis.com>
1280
1281 * elf32-cris.c: Tweak comments related to dynamic linking.
1282 (cris_elf_relocate_section): When not creating shared object, fill
1283 in the .got table for any symbol not in the dynamic symbol table.
1284 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1285 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1286 table.
1287 (cris_elf_check_relocs): Use variable r_type in all places rather
1288 than the original expression. Add default case in switch for
1289 reloc types.
1290 (elf_cris_size_dynamic_sections): Iterate over
1291 elf_cris_discard_excess_program_dynamics when not creating shared
1292 library.
653165cc 1293 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
1294 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1295 (elf_cris_discard_excess_program_dynamics): New.
1296
3ed30d29
DD
12972001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1298
1299 * coffcode.h (coff_write_object_contents): Use
1300 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1301
a80f6941
L
13022001-04-14 H.J. Lu <hjl@gnu.org>
1303
1304 * bfd-in2.h: Regenerate.
1305
767e4b0d
JJ
13062001-04-14 Jakub Jelinek <jakub@redhat.com>
1307
1308 * section.c (STD_SECTION): Add entsize.
1309
2dd439c5
L
13102001-04-13 H.J. Lu <hjl@gnu.org>
1311
1312 * section.c (SEC_MERGE): Define new flag for merging.
1313 (SEC_STRINGS): Likewise.
1314 (entsize): New field.
1315
baf80c32
DD
13162001-04-13 Roger Sayle <roger@metaphorics.com>
1317
1318 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1319 flag on pe-i386 targets.
1320
f5fa8ca2
JJ
13212001-04-13 Jakub Jelinek <jakub@redhat.com>
1322
1323 * libbfd-in.h (_bfd_merge_section): New.
1324 (_bfd_write_merged_section): New.
1325 (_bfd_merged_section_offset): New.
1326 * libbfd.h: Rebuilt.
1327 * linker.c (_bfd_generic_link_output_symbols): Handle
1328 discard_sec_merge.
1329 * aoutx.h (aout_link_write_symbols): Likewise.
1330 * pdp11.c (aout_link_write_symbols): Likewise.
1331 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1332 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1333 sections.
1334 (elf_link_sec_merge_syms): New.
1335 (elf_link_input_bfd): Call _bfd_merged_section_offset
1336 and _bfd_write_merged_section.
1337 Handle discard_sec_merge.
1338 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1339 field.
1340 (struct bfd_elf_section_data): Likewise.
1341 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1342 SEC_STRINGS section flags and entsize from their ELF counterparts.
1343 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1344 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1345 from their BFD counterparts.
1346 * merge.c: New file.
1347 * Makefile.am: Add strtab.lo.
1348 * Makefile.in: Rebuilt.
1349
d954b040
HPN
13502001-04-09 Hans-Peter Nilsson <hp@axis.com>
1351
1352 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1353 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1354
fdbafa10
L
13552001-04-05 Steven J. Hill <sjhill@cotw.com>
1356
1357 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1358 endian MIPS ELF target.
1359 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1360 MIPS ELF target.
1361
1362 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1363 64bit big endian MIPS ELF target.
653165cc 1364 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1365 endian MIPS ELF target.
1366 * configure: Regenerated.
1367
1368 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1369 little endian targets.
1370 (mips_elf_sym_is_global): Handle traditional targets.
1371
1372 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1373 64bit big endian MIPS ELF target.
1374 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1375 endian MIPS ELF target.
1376
1377 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1378 and bfd_elf64_tradlittlemips_vec.
1379
dd484e5c
L
13802001-04-05 David Mosberger <davidm@hpl.hp.com>
1381
1382 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1383 ordinary "progbits" section.
1384
391a809a
AM
13852001-04-04 Alan Modra <alan@linuxcare.com.au>
1386
1387 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1388 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1389
5854c633
L
13902001-04-03 David Mosberger <davidm@hpl.hp.com>
1391
1392 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1393
8b4b0fac
L
13942001-03-30 H.J. Lu <hjl@gnu.org>
1395
1396 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1397 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1398
eb4a6e4f
L
13992001-03-26 H.J. Lu <hjl@gnu.org>
1400
1401 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1402 if there are any relocations for generic ELF.
1403 (bfd_elf32_bfd_link_add_symbols): Defined to
1404 elf32_generic_link_add_symbols.
1405 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1406 if there are any relocations for generic ELF.
1407 (bfd_elf64_bfd_link_add_symbols): Defined to
1408 elf64_generic_link_add_symbols.
1409
55c80943
NC
14102001-03-23 Nick Clifton <nickc@redhat.com>
1411
1412 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1413 files created in build directory.
1414 (BUILD_HFILES): New variable: List of header files created in
1415 build directory.
1416 (POTFILES): Delete.
1417 (po/POTFILES.in): Replace rule with empty entry.
1418 (po/SRC-POTFILES.in): New rule: Create a list of source files
1419 in the source directory.
1420 (po/BLD-POTFILES.in): New rule: Create a list of source files
1421 in the build directory.
1422 (MOSTLYCLEAN): Do not delete source files created in build
1423 directory.
1424 * Makefile.in: Regenerate.
1425 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1426 into po/Makefile.
1427 * configure: Regenerate.
1428
1429 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1430 and BLD_POTFILES.
55c80943 1431 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1432 Delete POTFILES when performing distclean.
1433 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1434 * po/POTFILES.in: Delete.
1435 * po/SRC-POTFILES.in: New file.
1436 * po/BLD-POTFILES.in: New file.
bb0082d6 1437 * po/bfd.pot: Regenerate.
55c80943 1438
58d29fc3
HPN
14392001-03-22 Hans-Peter Nilsson <hp@axis.com>
1440
915e5146
HPN
1441 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1442 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1443 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1444 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1445 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1446 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1447 functions.
1448 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1449 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1450 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1451 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1452 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1453 New HOWTO members for new relocs.
1454 (cris_reloc_map): Map new relocs.
1455 (ELF_DYNAMIC_INTERPRETER): Define.
1456 (PLT_ENTRY_SIZE): Define.
1457 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1458 elf_cris_pic_plt_entry): New, PLT templates.
1459 (struct elf_cris_pcrel_relocs_copied, struct
1460 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1461 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1462 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1463 positive values. Adjust PCREL relocs to be relative to location
1464 after relocation.
1465 (cris_elf_relocate_section): Handle relocations to dynamic
1466 objects. Handle new relocations. Call error handler when seeing
1467 non-PIC relocation for read-only sections while generating shared
1468 object.
1469 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1470 entries.
1471 (bfd_elf32_bfd_link_hash_table_create,
1472 elf_backend_adjust_dynamic_symbol,
1473 elf_backend_size_dynamic_sections,
1474 elf_backend_finish_dynamic_symbol,
1475 elf_backend_finish_dynamic_sections,
1476 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1477 elf_backend_hide_symbol, elf_backend_want_got_plt,
1478 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1479 elf_backend_got_header_size, elf_backend_plt_header_size):
1480 Define.
1481
58d29fc3
HPN
1482 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1483 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1484 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1485 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1486 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1487 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1488 * bfd-in2.h, libbfd.h: Regenerate.
1489
7a65545d
DN
14902001-03-21 Diego Novillo <dnovillo@redhat.com>
1491
1492 (_bfd_mips_elf_relocate_section): Give a better error message when
1493 a relocation is not recognized.
1494
b32b5d6e
AM
14952001-03-21 Alan Modra <alan@linuxcare.com.au>
1496
1497 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1498 non-NULL before attempting to dereference.
1499
f4fbb4a3
L
15002001-03-20 H.J. Lu <hjl@gnu.org>
1501
1502 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1503 * configure: Rebuild.
1504
95fc45e6
AS
15052001-03-20 Andreas Schwab <schwab@suse.de>
1506
1507 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1508 relocation value when resolving a reference from a debugging
1509 section.
1510
03d411a9
NC
15112001-03-16 Scott Thomason <SThomaso@hii.com>
1512
1513 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1514 (xcoff64_swap_sym_out): Fix syntax errors.
1515
d1659392
NC
15162001-03-16 Richard Sandiford <rsandifo@redhat.com>
1517
1518 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1519
12cca0d2
AM
15202001-03-15 Alan Modra <alan@linuxcare.com.au>
1521
1522 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1523 (hppa_link_hash_newfunc): Init it.
1524 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1525 section appears to be non-PIC.
1526 (final_link_relocate): Likewise.
1527 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1528 possible candidate function, and set pic_call for those that will
1529 only have a .plt entry for the PIC call stub.
1530 (hppa_handle_PIC_calls): Set maybe_pic_call.
1531
cd6ec716
DD
15322001-03-12 DJ Delorie <dj@redhat.com>
1533
1534 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1535 R_SH_DIR8WP* relocs if they're against external symbols, else
1536 they're just for relaxing. Validate the reloc values.
1537
43a0748c
NC
15382001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1539
1540 * binary.c (bfd_external_binary_architecture): Declare.
1541 (binary_object_p): If bfd_external_binary_architecture is defined,
1542 set the architecture to this string.
1543
d982ba73
PB
15442001-03-11 Philip Blundell <philb@gnu.org>
1545
1546 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1547 entries that could serve as a definition for a weak symbol.
1548
7898deda
NC
15492001-03-08 Nick Clifton <nickc@redhat.com>
1550
1551 * Most files: Update copyright notices using Perl script created
1552 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1553
df425bc0
NC
15542001-03-07 Nick Clifton <nickc@redhat.com>
1555
1556 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1557 prior patch on ! defined OLD_ARM_ABI.
1558
bcdd92f3
AJ
15592001-03-07 Andreas Jaeger <aj@suse.de>
1560
1561 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1562 some relocation values.
1563
4f3c3dbb
NC
15642001-03-06 Nick Clifton <nickc@redhat.com>
1565
1566 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1567 of offset in BLX(1) instruction.
1568 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1569 offset in BLX(1) instruction.
bb0082d6 1570 Fix formatting.
4f3c3dbb 1571
f8f3c6cc
NC
15722001-03-06 Nick Clifton <nickc@redhat.com>
1573
1574 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1575 BFD_RELOC_THUMB_PCREL_BLX.
1576
3cac17ae
NC
15772001-03-06 Igor Shevlyakov <igor@windriver.com>
1578
1579 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1580 * bfd-in2.h: Regenerate.
1581 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1582 * ieee.c (ieee_write_processor): Set proper id for
1583 Coldfire CPUs.
1584
d1b17ab0
NC
15852001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1586
1587 * configure.in: Add s390 target.
1588 * configure: Regenerate.
1589
5608e05b
AJ
15902001-02-28 Andreas Jaeger <aj@suse.de>
1591
1592 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1593 to addend.
1594
fd2ec330
PB
15952001-02-28 Philip Blundell <pb@futuretv.com>
1596
1597 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1598 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1599
920581c5
L
16002001-02-27 H.J. Lu <hjl@gnu.org>
1601
1602 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1603 abfd->tdata.aout_data == NULL.
1604
27b7e12d
AM
16052001-02-27 Alan Modra <alan@linuxcare.com.au>
1606
3ee1d854
AM
1607 * elf32-hppa.c: Correct field selector in stub comments.
1608 (clobber_millicode_symbols): Formatting fix.
1609
27b7e12d
AM
1610 * configure.in: Bump version to 2.11.90.
1611 * configure: Regenerate.
1612 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1613 (CFILES): $SOURCE_CFILES + generated C files.
1614 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1615 Run "make dep-am"
1616 * Makefile.in: Regenerate.
1617 * doc/Makefile.in: This too.
1618
10d1e03a
TW
16192001-02-26 Timothy Wall <twall@cygnus.com>
1620
1621 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1622 comments.
10d1e03a 1623
1276aefa
NC
16242001-02-26 Nick Clifton <nickc@redhat.com>
1625
1626 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1627 up, replacing multiple if statements with a switch.
bb0082d6 1628 (handle_COMDAT): New function.
1276aefa
NC
1629
16302001-02-26 H.J. Lu <hjl@gnu.org>
1631
1632 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1633 a warning for section flags we do not handle instead of
1634 aborting.
1635
4a73f21b
AJ
16362001-02-26 Andreas Jaeger <aj@suse.de>
1637
1638 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1639
7b6dab7f
TW
16402001-02-22 Timothy Wall <twall@cygnus.com>
1641
1642 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1643 * configure.in: Add objects for elf64_ia64_aix vectors.
1644 * configure: Regenerated.
1645 * configure.host: Recognize ia64-*-aix*.
1646 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1647 for AIX. AIX5 requires most relocations to be dynamic (*all*
1648 binaries are somewhat similar to shared libraries).
1649 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1650
87f8eb97
JW
16512001-02-21 David Mosberger <davidm@hpl.hp.com>
1652
1653 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1654 C8 said "1" instead of "8". Clarify error string for IMM22:
1655 "signed integer" instead of just "integer".
1656
05aa1441
AJ
16572001-02-20 Andreas Jaeger <aj@suse.de>
1658
1659 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1660 PLT entries that could serve as a definition for a weak symbol.
1661
8701c1bc
JJ
16622001-02-19 Jakub Jelinek <jakub@redhat.com>
1663
1664 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1665 entries that could serve as a definition for a weak symbol.
1666 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1667
d4af9775
DB
16682001-02-18 David O'Brien <obrien@FreeBSD>
1669
1670 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1671 FreeBSD/i386-CURRENT differently until I can figure out the needed
1672 corefile changes.
1673 * configure: Regenerate.
1674 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1675 FreeBSD/PowerPC, and FreeBSD/sparc64.
1676
e135f41b
NC
16772001-02-18 lars brinkhoff <lars@nocrew.org>
1678
1679 * Makefile.am: Add PDP-11 a.out target.
1680 * config.bfd: Likewise.
1681 * configure.in: Likewise.
1682 * targets.c: Likewise.
1683 * archures.c: Likewise.
1684 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1685 * libbfd.h: Add PDP-11 relocations.
1686 * reloc.c: Likewise.
1687 * cpu-pdp11.c: New file.
1688 * pdp11.c: New file.
1689
1690 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1691 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1692 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1693 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1694 (GET_MAGIC): New macro.
1695 (PUT_MAGIC): Likewise.
1696 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1697
dc3febfa
NC
16982001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1699
1700 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1701 multiarch needs it).
1702
ea412e04
L
17032001-02-18 H.J. Lu <hjl@gnu.org>
1704
1705 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1706 index.
1707
47eee8a9
KH
17082001-02-18 Kazu Hirata <kazu@hxi.com>
1709
1710 * vms-misc.c: Fix formatting.
1711
8a0c27cd
KH
17122001-02-16 Kazu Hirata <kazu@hxi.com>
1713
1714 * vms.c: Fix formatting.
1715
d1fad7c6
NC
17162001-02-14 H.J. Lu <hjl@gnu.org>
1717
1718 * elf.c (elf_find_function): New function.
1719 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1720 the file name and function name.
1721
825b47db
NC
17222001-02-14 Nick Clifton <nickc@redhat.com>
1723
51d7ee16
NC
1724 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1725 asection structure.
1726
825b47db
NC
1727 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1728 (BFD64_BACKENDS): Add pepigen.c
1729 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1730
1731 * Makefile.in: Regenerate.
1732 * configure: Regenerate.
1733 * po/POTFILES.in: Regenerate.
1734 * po/bfd.pot: Regenerate.
1735
ea36a178
L
17362001-02-14 H.J. Lu <hjl@gnu.org>
1737
1738 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1739 force_minimum_alignment.
1740
407443a3
AJ
17412001-02-14 Bo Thorsen <bo@suse.de>
1742
1743 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1744 (elf64_86_64_size_info): Struct added to fix a problem
1745 with the hashtable string entries.
1746 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1747 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1748 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1749 remove the FIXME for this.
1750 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1751 section. Also removed the FIXME for it.
1752 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1753 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1754 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1755
b4adccfd
RH
17562001-02-13 Richard Henderson <rth@redhat.com>
1757
1758 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1759 and not user provided.
1760
9635981a
KH
17612001-02-13 Kazu Hirata <kazu@hxi.com>
1762
1763 * vms.c (vms_print_symbol): Remove unreachable code.
1764
6a125b16
KH
1765 * rs6000-core.c: Fix formatting.
1766
cbff5e0d
DD
17672001-02-13 David Mosberger <davidm@hpl.hp.com>
1768
1769 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1770 as _bfd_XXi_only_swap_filehdr_out.
1771 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1772 pe->force_minimum_alignment to TRUE.
1773 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1774 PEI_TARGET_SUBSYSTEM.
1775 (pe_print_private_bfd_data): Call
1776 _bfd_XX_print_private_bfd_data_common() instead of
1777 _bfd_pe_print_private_bfd_data_common().
1778 (pe_bfd_copy_private_bfd_data): Call
1779 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1780 _bfd_pe_bfd_copy_private_bfd_data_common().
1781 (coff_bfd_copy_private_section_data): Define as
1782 _bfd_XX_bfd_copy_private_section_data instead of
1783 _bfd_pe_bfd_copy_private_section_data.
1784 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1785 of a _bfd_pe_get_symbol_info.
1786
1787 * peigen.c: Delete.
1788
1789 * peXXigen.c: Renamed from peigen.c.
1790 (COFF_WITH_XX): Define this macro (will get expanded into
1791 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1792 compiled as peigen.c or pepigen.c.
1793 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1794 define the canonical PEP structures and definitions.
1795 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1796 effect, enforce minimum file and section alignments. If
1797 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1798 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1799 so, by default, this is a no-op).
1800
1801 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1802 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1803 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1804 _bfd_pefoo if it's not defined. Use these macros to define
1805 coff swap macros.
1806
1807 * libcoff.h (pe_tdata): Add members target_subsystem and
1808 force_minimum_alignment.
1809
1810 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1811 COFF_WITH_pep.
1812 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1813
1814 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1815 peigen.lo.
1816
1817 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1818 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1819 PEPAOUTHDR.
1820
1821 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1822 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1823 (peigen.c): Add rule to generate from peXXigen.c.
1824 (pepigen.c): Ditto.
1825 (pepigen.lo): List dependencies for pepigen.lo.
1826
df8634e3
AM
18272001-02-13 Alan Modra <alan@linuxcare.com.au>
1828
1829 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1830 $global$ referenced but not defined, set its value here.
1831
51e0a107
JH
18322001-02-09 Bo Thorsen <bo@suse.de>
1833
1834 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1835 alignment to 3.
1836 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1837 and relocation.
1838 (elf64_x86_64_relocate_section): Fix formatting.
1839 (elf64_x86_64_relocate_section): Fix addend for relocation of
1840 R_X86_64_(8|16|32|PC8|PC16|PC32).
1841
d1fad7c6 18422001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
1843
1844 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1845
f0e1d18a
L
18462001-02-11 H.J. Lu <hjl@gnu.org>
1847
6757257f 1848 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1849 alignment.
1850
9117d219
NC
18512001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1852
1853 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1854 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1855 relocations against dynsym symbols.
1856
1857 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1858 the R_MIPS_26 relocation.
1859 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1860 the R_MIPS_26 relocation.
1861 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1862 relocation.
1863 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1864 the R_MIPS_26 relocation.
1865 (mips_elf64_howto_table_rela): Likewise.
1866
1867 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1868 member to mark symbols that have non-CALL relocations against
1869 them.
1870 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1871 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1872 R_MIPS_GOT16.
1873 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1874 non-CALL relocation against it is encountered.
1875 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1876 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1877 no_fn_stub is not set.
1878
1879 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1880 information from the real symbol for indirect ones.
1881 Check no_fn_stub to find out if a symbol has a function stub
1882 indeed.
1883
9f93bca5
MS
18842001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1885
1886 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1887 * Makefile.in: Regenerate.
1888
81545d45
RH
18892001-02-09 David Mosberger <davidm@hpl.hp.com>
1890
1891 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1892 true if section name is an unwind table section name.
1893 (elfNN_ia64_additional_program_headers): Count each unwind section
1894 separately.
1895 (elfNN_ia64_modify_segment_map): Install one unwind program header
1896 for each unwind separate section. Note: normally the linker
1897 script merges the unwind sections that go into a single segment,
1898 so this still generates at most one unwind program header per
1899 segment.
1900
1901 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1902 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1903 (elfNN_ia64_fake_sections): Mark sections with names that start
1904 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1905 unwind section.
1906
1907 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1908 Use it to make sh_info in unwind section point to the text section
1909 it applies to.
1910
a85d7ed0
NC
19112001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1912
1913 * Makefile.am: Add linux target for S/390.
1914 * archures.c: Likewise.
1915 * bfd-in2.h: Likewise.
1916 * config.bfd: Likewise.
1917 * configure.in: Likewise.
1918 * elf.c: Likewise.
1919 * libbfd.h: Likewise.
1920 * targets.c: Likewise.
1921 * cpu-s390.c: New file.
1922 * elf32-s390.c: New file.
1923 * elf64-s390.c: New file.
1924
356d255d
NC
19252001-02-09 Nick Clifton <nickc@redhat.com>
1926
1927 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1928 ImageBase. This has already been done by coff_swap_hdr_in.
1929
069f40e5
JJ
19302001-02-09 Jakub Jelinek <jakub@redhat.com>
1931
1932 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1933
eadfa8ab
JJ
19342001-02-09 Jakub Jelinek <jakub@redhat.com>
1935
1936 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1937 (sparc64_elf_relocate_section): Likewise.
1938
9fc54e19
MK
19392001-02-09 Mark Kettenis <kettenis@gnu.org>
1940
1941 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1942 similar to R_SPARC_32.
1943 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1944
1f655a09
L
19452001-02-08 H.J. Lu <hjl@gnu.org>
1946
1947 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1948 relocation entries for weak definitions when building DSO with
1949 -Bsymbolic.
1950
ca88208a
RH
19512001-02-08 Richard Henderson <rth@redhat.com>
1952
1953 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1954 before visibility. Locally defined protected symbols are not
1955 dynamic.
1956
4603e845
GK
19572001-02-08 Geoffrey Keating <geoffk@redhat.com>
1958
1959 * config.bfd: Enable coff64 for rs6000-*. Patch from
1960 <hzoli@austin.ibm.com>.
1961
4ca29a6a
NC
19622001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1963
1964 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1965 found, do not attempt to find dwarf2 info before returning.
1966
7da9d88f
NC
19672001-02-07 Jakub Jelinek <jakub@redhat.com>
1968
1969 * elflink.h (is_global_symbol_definition): Rename to
1970 is_global_data_symbol_definition and have it reject function
1971 symbols.
1972 (elf_link_is_defined_archive_symbol): Use renamed function.
1973
7340082d
NC
19742001-02-07 Todd Vierling <tv@wasabisystems.com>
1975
1976 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1977 * libbfd.h (bfd_target_vector): Likewise.
1978 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1979 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1980 (_bfd_target_vector_entries): Calculate this based on the array
1981 typed _bfd_target_vector.
1982
2719f880
L
19832001-02-06 H.J. Lu <hjl@gnu.org>
1984
1985 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1986 internal symbols are not dynamic.
1987 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1988
175aa013
NC
19892001-02-06 Nick Clifton <nickc@redhat.com>
1990
1991 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1992 that it will not be pulled into the list of files that make up
1993 po/POTFILES.in.
1994 * Makefile.in: Regenerate.
1995 * po/bfd.pot: Regenerate.
1996
15e0ecd9
L
19972001-02-06 H.J. Lu <hjl@gnu.org>
1998
7898deda 1999 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
2000 checking.
2001 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2002 external_PEI_IMAGE_hdr.
2003
27def10f
KH
20042001-02-06 Kazu Hirata <kazu@hxi.com>
2005
2006 * elf-m10200.c: Fix formatting.
2007
a0f2e916
NC
20082001-02-04 Nick Clifton <nickc@redhat.com>
2009
2010 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2011 rel, it will be handled later on.
2012
d96031fb
NC
20132001-02-02 Fred Fish <fnf@ninemoons.com>
2014
2015 * Makefile.in: Fix typo.
2016
010ac81f
KH
20172001-02-01 Kazu Hirata <kazu@hxi.com>
2018
2019 * elf-m10300.c: Fix formatting.
2020
3fab46d0
AM
20212001-01-30 Alan Modra <alan@linuxcare.com.au>
2022
2023 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2024 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
2025 (elf64_hppa_object_p): Set architecture and machine from elf
2026 header flags.
3fab46d0 2027
95404643
RH
20282001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2029
2030 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2031 before mdebug.
2032
8fb35fed
RH
20332001-01-26 Richard Henderson <rth@redhat.com>
2034
2035 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2036 for non-default visibility.
2037 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2038 delete ugly macro and replace with pretty function.
2039
a4f68544
NC
20402001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2041
2042 * coff-go32.c: Update copyright.
2043 * coff-stgo32.c: Likewise.
2044 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2045 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2046 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2047 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2048
c02e7c3e
KH
20492001-01-25 Kazu Hirata <kazu@hxi.com>
2050
2051 * bfd-in2.h: Rebuild.
2052 * libbfd.h: Likewise.
2053
541389e2
L
20542001-01-23 H.J. Lu <hjl@gnu.org>
2055
2056 * bfd-in2.h: Rebuild.
2057
0007625f
L
20582001-01-23 H.J. Lu <hjl@gnu.org>
2059
2060 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2061 is NULL or PRIV(vms_rec) is outside of the buffer.
2062
b653e1b1
KH
20632001-01-23 Kazu Hirata <kazu@hxi.com>
2064
2065 * coff64-rs6000.c: Fix formatting.
2066 * coff-arm.c: Likewise.
2067 * coffgen.c: Likewise.
2068 * cofflink.c: Likewise.
2069 * coff-mcore.c: Likewise.
2070 * coff-mips.c: Likewise.
2071 * coff-pmac.c: Likewise.
2072 * coff-ppc.c: Likewise.
2073 * coff-rs6000.c: Likewise.
2074 * elf32.c: Likewise.
2075 * elf32-fr30.c: Likewise.
2076 * elf32-i370.c: Likewise.
2077 * elf32-i860.c: Likewise.
2078 * elf32-m32r.c: Likewise.
2079 * elf32-m68k.c: Likewise.
2080 * elf32-mcore.c: Likewise.
2081 * elf32-ppc.c: Likewise.
2082 * elf32-sh.c: Likewise.
2083 * elf32-v850.c: Likewise.
2084 * elf64-alpha.c: Likewise.
2085 * elf64-sparc.c: Likewise.
2086 * elflink.c: Likewise.
2087 * elflink.h: Likewise.
2088 * elf-m10200.c: Likewise.
2089 * elf-m10300.c: Likewise.
2090 * elfxx-ia64.c: Likewise.
2091
3fde5a36
KH
2092 * aoutx.h: Fix formatting.
2093 * bfd.c: Likewise.
2094 * bfd-in2.h: Likewise.
2095 * bfd-in.h: Likewise.
2096 * cpu-i386.c: Likewise.
2097 * cpu-m68hc11.c: Likewise.
2098 * dwarf2.c: Likewise.
2099 * elf64-x86-64.c: Likewise.
2100 * format.c: Likewise.
2101 * freebsd.h: Likewise.
2102 * hash.c: Likewise.
2103 * hp300hpux.c: Likewise.
2104 * hppabsd-core.c: Likewise.
2105 * hpux-core.c: Likewise.
2106
70256ad8
AJ
21072001-01-22 Bo Thorsen <bo@suse.de>
2108
2109 * elf64-x86-64.c: Added PIC support for X86-64.
2110 (elf64_x86_64_link_hash_newfunc): Function added.
2111 (elf64_x86_64_link_hash_table_create): Likewise.
2112 (elf64_x86_64_check_relocs): Likewise.
2113 (elf64_x86_64_gc_mark_hook): Likewise.
2114 (elf64_x86_64_gc_sweep_hook): Likewise.
2115 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2116 (elf64_x86_64_size_dynamic_sections): Likewise.
2117 (elf64_x86_64_discard_copies): Likewise.
2118 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2119 (elf64_x86_64_finish_dynamic_sections): Likewise.
2120 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2121
ee0bebb8
AJ
21222001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2123
2124 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2125 * Makefile.in: Regenerate.
2126
2a38f751
KH
21272001-01-21 Kazu Hirata <kazu@hxi.com>
2128
2129 * coff-a29k.c: Fix formatting.
2130
c8492176
L
21312001-01-19 H.J. Lu <hjl@gnu.org>
2132
2133 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2134 relocation section names.
2135 (elf_i386_relocate_section): Report files with bad relocation
2136 section names and return false.
2137
a5377ec0
AJ
21382001-01-17 Bo Thorsen <bo@suse.de>
2139
2140 * targets.c: Alphabetize list of xvecs.
2141
b352eebf
AM
21422001-01-14 Alan Modra <alan@linuxcare.com.au>
2143
d952f17a
AM
2144 * config.bfd: Add linux target variant for elfxx-hppa.
2145 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2146 bfd_elf64_hppa_linux_vec.
2147 * configure: Regenerate.
2148 * elf64-hppa.c: Include elf64-target.h again to support linux
2149 target variant.
2150 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2151 * elf32-hppa.c: Include elf32-target.h again to support linux
2152 target variant.
2153 (elf32_hppa_post_process_headers): New function.
2154 (elf_backend_post_process_headers): Define.
2155 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2156 bfd_elf32_hppa_linux_vec.
2157
c46b7515
AM
2158 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2159 and data_segment_base fields.
2160 (elf32_hppa_link_hash_table_create ): Init them.
2161 (elf32_hppa_check_relocs): Update comments.
2162 (hppa_record_segment_addr): New function.
2163 (elf32_hppa_relocate_section): Call it.
2164 (final_link_relocate): Handle R_PARISC_SEGREL32.
2165 (elf32_hppa_final_link): New function.
2166 (bfd_elf32_bfd_final_link): Define to call it.
2167 (hppa_unwind_entry_compare): New function.
2168 * cache.c (bfd_open_file): Create files in write+read mode.
2169
2170 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2171 SEGREL32 and numerous other relocs. Change duplicate
2172 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2173
d768008d
AM
2174 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2175 O_ACCMODE.
2176
150ccafb
AM
2177 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2178 .plt entries for DT_INIT and DT_FINI.
2179 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2180 DT_INIT and DT_FINI.
2181
b352eebf
AM
2182 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2183 offsets for stub .plt access if wide mode. Check offset in range.
2184
b3b9a062
NC
21852001-01-13 Nick Clifton <nickc@redhat.com>
2186
b7ed8fad
NC
2187 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2188 line.
2189
b3b9a062
NC
2190 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2191 line.
2192
6e0b89ee
AM
21932001-01-12 Alan Modra <alan@linuxcare.com.au>
2194
2195 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2196 * configure: Regenerate.
2197
0d2bcfaf
NC
21982001-01-11 Peter Targett <peter.targett@arccores.com>
2199
2200 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2201 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2202 * cpu-arc.c (arch_info_struct): Add entries for variants.
2203 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2204 (arc_get_mach) Don't assume machine names prefixed arc- before
2205 testing.
2206 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2207 selections.
2208 (arc_elf_final_write_processing) Likewise.
2209 (ELF_MACHINE_CODE) Use EM_ARC.
2210
c31c1f70
NC
22112001-01-10 Nick Clifton <nickc@redhat.com>
2212
2758140b 2213 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 2214
5ad083e3
PB
22152001-01-07 Philip Blundell <philb@gnu.org>
2216
2217 * README: Replace `bug-gnu-utils@gnu.org' with
2218 `bug-binutils@gnu.org'.
2219
7eae7d22
KH
22202001-01-04 Kazu Hirata <kazu@hxi.com>
2221
2222 * som.c: Fix formatting.
2223
509945ae
KH
22242001-01-03 Kazu Hirata <kazu@hxi.com>
2225
3e932841
KH
2226 * ecoffswap.h: Fix formatting.
2227 * elf-bfd.h: Likewise.
2228 * elfarm-nabi.c: Likewise.
2229 * elfarm-oabi.c: Likewise.
2230 * elfcode.h: Likewise.
2231 * elfcore.h: Likewise.
2232 * elflink.c: Likewise.
2233 * elflink.h: Likewise.
2234 * elfxx-ia64.c: Likewise.
2235 * elfxx-target.h: Likewise.
2236 * libbfd.c: Likewise
509945ae
KH
2237 * linker.c: Likewise.
2238 * lynx-core.c: Likewise.
2239
892339ee
KH
22402001-01-02 Kazu Hirata <kazu@hxi.com>
2241
2242 * pc532-mach.c: Fix formatting.
2243 * pe-arm.c: Likewise.
2244 * pe-i386.c: Likewise.
2245 * pe-mips.c: Likewise.
2246 * pe-ppc.c: Likewise.
2247 * pe-sh.c: Likewise.
2248 * pei-mips.c: Likewise.
2249 * pei-sh.c: Likewise.
ee91ed79 2250 * peicode.h: Likewise.
892339ee
KH
2251 * ppcboot.c: Likewise.
2252 * ptrace-core.c: Likewise.
2253
3d855632
KH
22542001-01-01 Kazu Hirata <kazu@hxi.com>
2255
2256 * reloc.c: Fix formatting.
2257 * riscix.c: Likewise.
2258 * rs6000-core.c: Likewise.
2259 * xcoff-target.h: Likewise.
2260
a77a9fef
HPN
22612000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2262
2263 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2264 error, by calling bfd_default_set_arch_mach with incoming
2265 values.
2266
558e161f
KH
22672000-12-26 Kazu Hirata <kazu@hxi.com>
2268
2269 * vaxnetbsd.c: Fix formatting.
2270 * versados.c: Likewise.
2271 * vms-gsd.c: Likewise.
2272 * vms-hdr.c: Likewise.
2273 * vms-misc.c: Likewise.
2274
3c579812
AO
22752000-12-25 Alexandre Oliva <aoliva@redhat.com>
2276
2277 * archive.c (coff_write_armap): Don't write more than symbol_count
2278 `archive_member_file_ptr's.
2279
672579e9
KH
22802000-12-25 Kazu Hirata <kazu@hxi.com>
2281
2282 * vms-tir.c: Fix formatting.
2283
55f2d5ed
KH
22842000-12-23 Kazu Hirata <kazu@hxi.com>
2285
2286 * vms.c: Fix formatting.
2287 * vms.h: Likewise.
2288
23ccc829
NC
22892000-12-21 Santeri Paavolainen <santtu@ssh.com>
2290
2291 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2292
2293 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2294
2295 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2296 arithmetic.
2297
2298 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2299
2300 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2301
8c603c85
NC
23022000-12-21 Richard Sandiford <rsandifo@redhat.com>
2303
2304 * libbfd.c (bfd_get_bits): Added
2305 (bfd_put_bits): Likewise
2306 * bfd-in.h: Declared the above.
2307 * bfd-in2.h: Regenerated.
2308
5bff4f56
KH
23092000-12-20 Kazu Hirata <kazu@hxi.com>
2310
2311 * targets.c: Fix formatting.
2312 * tekhex.c: Likewise.
2313 * trad-core.c: Likewise.
2314
7b82c249
KH
23152000-12-19 Kazu Hirata <kazu@hxi.com>
2316
2317 * sco5-core.c: Fix formatting.
2318 * section.c: Likewise.
2319 * sparclinux.c: Likewise.
2320 * sparclynx.c: Likewise.
2321 * sparcnetbsd.c: Likewise.
2322 * srec.c: Likewise.
2323 * stabs.c: Likewise.
2324 * stab-syms.c: Likewise.
2325 * sunos.c: Likewise.
2326 * syms.c: Likewise.
2327 * sysdep.h: Likewise.
2328
f78c5281
NC
23292000-12-18 Nick Clifton <nickc@redhat.com>
2330
2331 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2332 defined.
2333 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2334 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2335
02b89dce
NC
23362000-12-18 Nick Clifton <nickc@redhat.com>
2337
2338 * vms-misc.c (_bfd_vms_get_record): Add default case to
2339 file_format switch.
2340
d20966a7
NC
23412000-12-15 Miloslav Trmac <mitr@volny.cz>
2342
2343 * elfcore.h (elf_core_file_p): Move to the start of the program
2344 headers before attempting to read them.
2345
6fa957a9
KH
23462000-12-14 Kazu Hirata <kazu@hxi.com>
2347
2348 * peigen.c: Fix formatting.
2349 * som.c: Likewise.
2350 * som.h: Likewise.
2351
9602af51
KH
23522000-12-13 Kazu Hirata <kazu@hxi.com>
2353
2354 * peigen.c: Fix formatting.
2355
514829c3
JW
23562000-12-12 Jim Wilson <wilson@redhat.com>
2357
2358 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2359
3a71aec8
NC
23602000-12-08 Mark Salter <msalter@redhat.com>
2361
2362 * binary.c (binary_set_section_contents): Ignore sections
2363 with zero size.
2364
1518639e
KH
23652000-12-12 Kazu Hirata <kazu@hxi.com>
2366
2367 * m68klinux.c: Fix formatting.
2368 * m68knetbsd.c: Likewise.
2369 * mipsbsd.c: Likewise.
2370 * netbsd-core.c: Likewise.
2371 * netbsd.h: Likewise.
2372 * newsos3.c: Likewise.
2373 * nlm32-alpha.c: Likewise.
2374 * nlm32-i386.c: Likewise.
2375 * nlm32-ppc.c: Likewise.
2376 * nlm32-sparc.c: Likewise.
2377 * nlmcode.h: Likewise.
2378 * nlmswap.h: Likewise.
2379 * nlm-target.h: Likewise.
2380 * ns32knetbsd.c: Likewise.
2381
b79e8c78
NC
23822000-12-10 Fred Fish <fnf@be.com>
2383
d952f17a
AM
2384 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2385 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2386
38b1a46c
NC
23872000-12-12 Nick Clifton <nickc@redhat.com>
2388
2389 * cpu-sh.c: Fix formattng.
2390 * elf.c: Fix formattng.
2391 * elf32-mips.c: Fix formattng.
2392 * elf32-sh.c: Fix formattng.
2393 * elf64-alpha.c: Fix formattng.
2394
857ec808
NC
23952000-12-09 Nick Clifton <nickc@redhat.com>
2396
2397 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2398 dwarf2_find_line_info as last parameter to invocation of
2399 _bfd_dwarf2_find_nearest_line.
2400 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2401 dwarf2_find_line_info as last parameter to invocation of
2402 _bfd_dwarf2_find_nearest_line.
2403
51db3708
NC
24042000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2405
2406 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2407 (BFD_LIBS): ...to here.
2408 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2409 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2410 * Makefile.in: Regenerate.
2411 * configure.in: Remove dwarf.lo from the elf shell variable.
2412 * configure: Regenerate.
2413 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2414 * libcoff.h: Regenerate.
d952f17a 2415 * coffgen.c (coff_find_nearest_line): Call
857ec808 2416 _bfd_dwarf2_find_nearest_line.
51db3708 2417 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2418 accordingly.
2419 (read_abbrevs): Likewise
2420 (decode_line_info): Likewise.
2421 (parse_comp_unit): Likewise.
2422 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2423 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2424 * libbfd.h: Regenerate.
2425 * elf.c (_bfd_elf_find_nearest_line): Update call.
2426 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2427 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2428 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2429 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2430 (styp_to_sec_flags): Handle DWARF2 sections.
2431 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2432 to _bfd_find_nearest_line.
2433 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2434 call to _bfd_find_nearest_line.
d952f17a 2435
435b1e90
KH
24362000-12-08 Kazu Hirata <kazu@hxi.com>
2437
2438 * coffgen.c: Fix formatting.
fe8bc63d 2439 * elf-m10300.c: Likewise.
435b1e90
KH
2440 * elf32-i386.c: Likewise.
2441 * elf32-i960.c: Likewise.
2442 * elf32-m68k.c: Likewise.
2443 * elf32-mcore.c: Likewise.
2444 * elf32-ppc.c: Likewise.
2445 * elf32-sh.c: Likewise.
2446 * elf32-sparc.c: Likewise.
2447 * elf32-v850.c: Likewise.
fe8bc63d
KH
2448 * elf64-alpha.c: Likewise.
2449 * elf64-hppa.c: Likewise.
2450 * elf64-mips.c: Likewise.
435b1e90 2451 * elf64-sparc.c: Likewise.
435b1e90 2452
8da6118f
KH
24532000-12-07 Kazu Hirata <kazu@hxi.com>
2454
2455 * elf32-ppc.c: Fix formatting.
2456 * elf64-x86-64.c: Likewise.
2457
a9922e52
UC
24582000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2459
2460 From Ralf Baechle <ralf@gnu.org>
2461
2462 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2463 BFDs containing no sections or empty .text, .data or .bss sections
2464 to be merged, regardless of their flags.
2465
c3668558
KH
24662000-12-06 Kazu Hirata <kazu@hxi.com>
2467
2468 * elf32-m32r.c: Fix formatting.
2469 * elf32-m68hc11.c: Likewise.
2470 * elf32-m68hc12.c: Likewise.
2471 * elf32-m68k.c: Likewise.
2472 * elf32-mcore.c: Likewise.
2473 * elf32-pj.c: Likewise.
2474 * elf32-ppc.c: Likewise.
2475
6609fa74
KH
24762000-12-05 Kazu Hirata <kazu@hxi.com>
2477
2478 * elf32-fr30.c: Fix formatting.
2479 * elf32-hppa.c: Likewise.
2480 * elf32-i370.c: Likewise.
2481 * elf32-i386.c: Likewise.
2482 * elf32-i860.c: Likewise.
2483 * elf32-i960.c: Likewise.
2484
a7c10850
KH
24852000-12-03 Kazu Hirata <kazu@hxi.com>
2486
2487 * elf32-arm.h: Fix formatting.
2488 * elf32-avr.c: Likewise.
2489 * elf32-cris.c: Likewise.
2490 * elf32-d10v.c: Likewise.
2491 * elf32-d30v.c: Likewise.
2492 * elf-hppa.h: Likewise.
2493 * elf-m10200.c: Likewise.
2494 * elf-m10300.c: Likewise.
2495
e7af610e
NC
24962000-12-01 Chris Demetriou <cgd@sibyte.com>
2497
d952f17a
AM
2498 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2499 bfd_mach_mips32_4k. Update FIXME comment.
2500 * archures.c (bfd_mach_mips32): New constant.
2501 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2502 the latter, renumber it.
2503 * bfd-in2.h (bfd_mach_mips32): New constant.
2504 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2505 the latter, renumber it.
2506 * cpu-mips.c (I_mips32): New constant.
2507 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2508 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2509 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2510 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2511 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2512 with E_MIPS_MACH_MIPS32_4K.
2513 (_bfd_mips_elf_final_write_processing): Replace
2514 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2515 bfd_mach_mips32 case.
2516 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2517 comparison with support for MIPS32.
2518 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2519 MIPS32.
2520
2521 * aoutx.h (NAME(aout,machine_type)): Add cases for
2522 bfd_mach_mips5 and bfd_mach_mips64.
2523 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2524 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2525 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2526 (arch_info_struct): Add entries for bfd_mach_mips5 and
2527 bfd_mach_mips64.
2528 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2529 _bfd_mips_elf_print_private_bfd_data): Add cases for
2530 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2531 (_bfd_mips_elf_final_write_processing): Add cases for
2532 bfd_mach_mips5 and bfd_mach_mips64.
2533
7898deda 2534 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2535 bfd_mach_mips_sb1 case.
7898deda
NC
2536 * archures.c (bfd_mach_mips_sb1): New constant.
2537 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2538 * cpu-mips.c (I_sb1): New constant.
d952f17a 2539 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2540 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2541 E_MIPS_MACH_SB1.
2542 (_bfd_mips_elf_final_write_processing): Add case for
2543 bfd_mach_mips_sb1.
2544
25452000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2546
2547 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2548 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2549 (sparc*-*-rtems*): Switched from a.out to ELF.
2550
8d88c4ca 25512000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2552
2553 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2554 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2555 (elf64-x86-64.lo): Add dependencies.
2556 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2557 bfd_mach_x86_64_intel_syntax.
2558 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2559 * config.bfd (x86_64): Add.
2560 * configure.in: Add support for bfd_elf64_x86_64_vec.
2561 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2562 (bfd_i386_arch, i8086_ar): Link in.
2563 * elf64-x86-64.c: New file.
2564 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2565 * targets.c (bfd_elf64_x86_64_vec): Add.
2566 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2567
fbc4fff4
KH
25682000-11-30 Kazu Hirata <kazu@hxi.com>
2569
2570 * xcofflink.c: Fix formatting.
2571
e60b52c6
KH
25722000-11-28 Kazu Hirata <kazu@hxi.com>
2573
2574 * aoutx.h: Fix formatting.
2575 * bfd-in.h: Likewise.
2576 * bfd-in2.h: Likewise.
2577 * cache.c: Likewise.
2578 * cisco-core.c: Likewise.
2579 * coff64-rs6000.c: Likewise.
2580 * coffcode.h: Likewise.
2581 * coffswap.h: Likewise.
2582 * corefile.c: Likewise.
be3ccd9c 2583 * elf32-mips.c: Likewise.
e60b52c6 2584
336eced2
KH
25852000-11-27 Kazu Hirata <kazu@hxi.com>
2586
2587 * aout-adobe.c: Fix formatting.
244148ad
KH
2588 * coff64-rs6000.c: Likewise.
2589 * coffgen.c: Likewise.
2590 * cofflink.c: Likewise.
336eced2 2591
d71f672e
PB
25922000-11-27 Philip Blundell <pb@futuretv.com>
2593
2594 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2595 (obj_coff_strings_written): New accessor macro for above.
2596 * libcoff.h: Regenerate.
2597 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2598 strings.
2599 * coffcode.h (coff_write_object_contents): No need to write out
2600 the string table if it's already been done.
2601
bc7a577d
PB
26022000-11-22 Philip Blundell <pb@futuretv.com>
2603
d952f17a 2604 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2605 weak undefined symbols.
2606
077b8428
NC
26072000-11-24 Nick Clifton <nickc@redhat.com>
2608
2609 * archures.c (bfd_mach_arm_5TE): Define.
2610 (bfd_mach_arm+XScale): Define.
2611 * bfd-in2.h: Regenerate.
2612
2613 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2614 BFD_RELOC_ARM_PCREL_BLX.
2615
2616 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2617 XScale machine numbers.
2618
2619 * config.bfd (xscale-elf): Add target.
2620 (xscale-coff): Add target.
2621
2622 * cpu-arm.c: Add xscale machine name.
2623 Add v5t, v5te and XScale machine numbers.
2624
e9e41bd9
KH
26252000-11-23 Kazu Hirata <kazu@hxi.com>
2626
2627 * aix386-core.c: Fix formatting.
2628
64bf6ae6
JW
26292000-11-22 Jim Wilson <wilson@redhat.com>
2630
2631 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2632 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2633 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2634 (ins_imms_scaled): Initialize sign_bit at function entry.
2635 (elf64_ia64_operands): Add missing initializers.
2636 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2637 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2638 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2639 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2640 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2641 parameters.
2642 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2643 and free_extsyms at function entry.
2644 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2645 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2646 (get_got): Delete unused local srel.
2647 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2648 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2649
1abaf976
KH
26502000-11-21 Kazu Hirata <kazu@hxi.com>
2651
6e301b2b
KH
2652 * coff-a29k.c: Fix formatting.
2653 * coff-h8500.c: Likewise.
2654 * coff-i960.c: Likewise.
2655 * coff-ppc.c: Likewise.
2656 * coff-rs6000.c: Likewise.
2657 * coff-stgo32.c: Likewise.
2658 * coff-tic54x.c: Likewise.
2659 * coff-w65.c: Likewise.
2660 * cpu-h8500.c: Likewise.
2661 * cpu-hppa.c: Likewise.
2662 * cpu-ns32k.c: Likewise.
2663 * ecoff.c: Likewise.
1abaf976
KH
2664 * ecofflink.c: Likewise.
2665
a0fc8ba1
NC
26662000-11-21 Nick Clifton <nickc@redhat.com>
2667
2668 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2669 remove possibility of infinite loop.
2670
beb0d161
KH
26712000-11-20 Kazu Hirata <kazu@hxi.com>
2672
2673 * aix386-core.c: Fix formatting.
2674 * aout-adobe.c: Likewise.
2675 * aout-arm.c: Likewise.
2676 * aout-encap.c: Likewise.
2677 * aout-ns32k.c: Likewise.
2678 * aout-target.h: Likewise.
2679 * aout-tic30.c: Likewise.
2680 * aoutf1.h: Likewise.
2681 * aoutx.h: Likewise.
2682 * archive.c: Likewise.
eb6e10cb
KH
2683 * bfd-in.h: Likewise.
2684 * bfd-in2.h: Likewise.
2685 * bfd.c: Likewise.
2686 * bout.c: Likewise.
beb0d161 2687
2c2475db
JW
26882000-11-17 H.J. Lu <hjl@gnu.org>
2689
2690 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2691 pltoff entries for DT_INIT and DT_FINI.
2692 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2693 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2694 entries.
2695
18b27f17
RH
26962000-11-16 Richard Henderson <rth@redhat.com>
2697
2698 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2699 (allocate_dynrel_entries): Likewise.
2700 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2701 (set_pltoff_entry): Likewise.
2702 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2703 (elfNN_ia64_reloc_type_lookup): Likewise.
2704 (elfNN_ia64_install_value): Likewise.
2705 (elfNN_ia64_relocate_section): Likewise.
2706 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2707 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2708
98591c73
KH
27092000-11-16 Kazu Hirata <kazu@hxi.com>
2710
71f6b586
KH
2711 * cpu-a29k.c: Fix formatting.
2712 * cpu-alpha.c: Likewise.
2713 * cpu-arm.c: Likewise.
2714 * cpu-avr.c: Likewise.
2715 * cpu-d10v.c: Likewise.
2716 * cpu-h8500.c: Likewise.
2717 * cpu-hppa.c: Likewise.
2718 * cpu-i370.c: Likewise.
2719 * cpu-i386.c: Likewise.
2720 * cpu-i960.c: Likewise.
2721 * cpu-ia64-opc.c: Likewise.
2722 * cpu-ia64.c: Likewise.
2723 * cpu-m32r.c: Likewise.
2724 * cpu-m68hc11.c: Likewise.
2725 * cpu-m68hc12.c: Likewise.
2726 * cpu-m68k.c: Likewise.
2727 * cpu-m88k.c: Likewise.
2728 * cpu-mips.c: Likewise.
2729 * cpu-ns32k.c: Likewise.
2730 * cpu-pj.c: Likewise.
2731 * cpu-powerpc.c: Likewise.
2732 * cpu-sh.c: Likewise.
2733 * cpu-sparc.c: Likewise.
2734 * cpu-tic54x.c: Likewise.
2735 * cpu-v850.c: Likewise.
2736 * cpu-vax.c: Likewise.
2737 * cpu-w65.c: Likewise.
2738 * cpu-we32k.c: Likewise.
2739 * cpu-z8k.c: Likewise.
2740 * dwarf1.c: Likewise.
98591c73
KH
2741 * dwarf2.c: Likewise.
2742
c5930ee6
KH
27432000-11-15 Kazu Hirata <kazu@hxi.com>
2744
2745 * coff-arm.c: Fix formatting.
2746 * coff-ppc.c: Likewise.
2747 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2748 * coff-sh.c: Likewise.
2749 * coff-sparc.c: Likewise.
2750 * coff-tic30.c: Likewise.
2751 * coff-tic54x.c: Likewise.
2752 * coff-tic80.c: Likewise.
2753 * coff-w65.c: Likewise.
2754 * coff-we32k.c: Likewise.
2755 * coff-z8k.c: Likewise.
c5930ee6 2756
dac544a8
RH
27572000-11-15 Richard Henderson <rth@redhat.com>
2758
2759 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2760 section with the same ALLOC|LOAD flags as the source section.
2761
c810873d
JJ
27622000-11-14 Jakub Jelinek <jakub@redhat.com>
2763
2764 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2765 by STO_ALPHA constants.
2766
43646c9d
KH
27672000-11-14 Kazu Hirata <kazu@hxi.com>
2768
2769 * coff-pmac.c: Fix formatting.
2770 * coff-ppc.c: Likewise.
2771
051b8577
L
27722000-11-13 H.J. Lu <hjl@gnu.org>
2773
2774 * elflink.h (elf_link_add_object_symbols): Also add indirect
2775 symbols for common symbols with the default version.
2776
90460d97
PB
27772000-11-09 Philip Blundell <pb@futuretv.com>
2778
2779 * section.c (STD_SECTION): Set gc_mark flag.
2780
b48499ec
KH
27812000-11-11 Kazu Hirata <kazu@hxi.com>
2782
2783 * coff-i960.c: Likewise.
2784 * coff-m68k.c: Likewise.
2785 * coff-m88k.c: Likewise.
2786 * coff-mcore.c: Likewise.
2787 * coff-mips.c: Likewise.
2788
c5aeb40f
AO
27892000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2790
2791 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2792
5fcfd273
KH
27932000-11-10 Kazu Hirata <kazu@hxi.com>
2794
2795 * coff-h8300.c: Fix formatting.
2796 * coff-h8500.c: Likewise.
2797 * coff-i386.c: Likewise.
2798 * coff-i860.c: Likewise.
2799 * coff-i960.c: Likewise.
2800 * coff-ia64.c: Likewise.
2801
047066e1
KH
28022000-11-09 Kazu Hirata <kazu@hxi.com>
2803
2804 * archive.c: Fix formatting.
2805 * archures.c: Likewise.
2806
9a951beb
RH
28072000-11-07 Richard Henderson <rth@redhat.com>
2808
2809 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2810 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2811 * section.c (bfd_set_section_contents): Call memcpy if
2812 section->contents set and location not equal to contents plus offset.
2813
aebad5fe
KH
28142000-11-08 Kazu Hirata <kazu@hxi.com>
2815
8546af74
KH
2816 * bfd-in.h: Fix formatting.
2817 * bfd-in2.h: Likewise.
2818 * bfd.c: Likewise.
aebad5fe
KH
2819 * binary.c: Likewise.
2820 * bout.c: Likewise.
346ceb11
KH
2821 * coff-a29k.c: Likewise.
2822 * coff-alpha.c: Likewise.
2823 * coff-apollo.c: Likewise.
2824 * coff-aux.c: Likewise.
aebad5fe 2825
0ef5a5bd
KH
28262000-11-07 Kazu Hirata <kazu@hxi.com>
2827
2828 * aix386-core.c: Fix formatting.
2829 * aoutf1.h: Likewise.
2830 * aoutx.h: Likewise.
2831 * archures.c: Likewise.
2832 * armnetbsd.c: Likewise.
2833
d562d2fb
AM
28342000-11-07 Alan Modra <alan@linuxcare.com.au>
2835
2836 * coff-h8300.c (special): Adjust reloc address.
2837
bbe66d08
JW
28382000-11-06 Steve Ellcey <sje@cup.hp.com>
2839
4efc3e05 2840 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2841 to differentiate elf32 and elf64 on ia64.
2842 * bfd-in2.h: Regenerate.
2843 * config.bfd: Add target for "ia64*-*-hpux*".
2844 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2845 * configure: Regenerate.
4efc3e05 2846 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2847 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2848
2849 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2850 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2851 * Makefile.in: Regnerate.
4efc3e05 2852 * elf64-ia64.c: Deleted.
bbe66d08
JW
2853 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2854
c4dfa77f
KH
28552000-11-06 Kazu Hirata <kazu@hxi.com>
2856
2857 * aout-adobe.c: Fix formatting.
2858 * aout-arm.c: Likewise.
2859 * aout-cris.c: Likewise.
2860 * aout-encap.c: Likewise.
2861 * aout-ns32k.c: Likewise.
2862 * aout-target.h: Likewise.
2863 * aout-tic30.c: Likewise.
2864
cf919dfd
PB
28652000-11-05 Philip Blundell <philb@gnu.org>
2866
2867 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2868 BFDs containing no sections to be merged, regardless of their flags.
2869
28702000-11-04 Philip Blundell <philb@gnu.org>
2871
2872 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2873 if a relocation for an undefined symbol also results in an
2874 overflow.
2875
8d88c4ca 28762000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
2877
2878 * config.bfd: Add support for Sun Chorus.
2879
46d59bfa
DB
28802000-11-05 David O'Brien <obrien@FreeBSD.org>
2881
2882 * configure.in: Recognize alpha-*-freebsd*.
2883 * configure: Regenerate.
2884
d952f17a 28852000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
2886
2887 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2888 (Chunk): New global variable set by a parameter in objcopy.c.
2889 (S3Forced): New global variable set by a parameter in
2890 objcopy.c.
2891 (srec_set_section_contents): If S3Forced is true, always generate
2892 S3 records.
2893 (srec_write_section): Use 'Chunk' to limit maximum length of S
2894 records.
2895
59ff2774
NC
28962000-11-02 Per Lundberg <plundis@chaosdev.org>
2897
2898 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2899 * Makefile.in: Regenerate.
2900 * bfd-in2.h: Regenerate.
2901 * po/bfd.pot: Regenerate.
d952f17a 2902
ee43f35e
PB
29032000-10-31 Philip Blundell <philb@gnu.org>
2904
2905 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2906 EF_SOFT_FLOAT if it is defined.
2907
1006ba19
PB
29082000-10-27 Philip Blundell <philb@gnu.org>
2909
2910 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2911 attempts to mix PIC code with non-PIC, just mark the output as
2912 being position dependent.
d952f17a
AM
2913 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2914 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2915 all mismatches, not just the first one.
d952f17a 2916
c4920b97
NC
29172000-10-25 Chris Demetriou <cgd@sibyte.com>
2918
2919 * ieee.c (ieee_archive_p): Plug one of many possible
2920 memory leaks in error handling.
2921
19f7b010
JJ
29222000-10-20 Jakub Jelinek <jakub@redhat.com>
2923
2924 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2925 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2926 Support v8plusb.
2927 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2928 sparc64_elf_object_p): Support v9b.
2929 * archures.c: Declare v8plusb and v9b machines.
2930 * bfd-in2.h: Ditto.
2931 * cpu-sparc.c: Ditto.
2932
e1e0340b
GK
29332000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2934
ea5fbc67
GK
2935 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2936 of a GOT reloc.
2937
e1e0340b
GK
2938 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2939 (SYMBOL_CALLS_LOCAL): New macro.
2940 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2941 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2942 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2943 (ppc_elf_relocate_section): Use flag variable to determine
2944 whether the relocation refers to a local symbol.
2945 Test whether a PLTREL24 reloc will produce a reloc by looking
2946 to see whether a PLT entry was made.
2947
a4b120e1
GK
29482000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2949
2950 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2951 entries that could serve as a definition for a weak symbol.
2952
5af5b85b
UC
29532000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2954
2955 From Ralf Baechle <ralf@gnu.org>
2956
2957 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2958 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2959 against local symbols.
2960 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2961
3ef20aaa
AM
29622000-10-12 Alan Modra <alan@linuxcare.com.au>
2963
24376d1b
AM
2964 * section.c (struct sec): Add kept_section.
2965 (struct bfd_comdat_info): Remove sec, we can use above.
2966 (STD_SECTION): Add initializer.
2967 (bfd_make_section_anyway): Init here too.
2968
2969 * bfd-in2.h: Regenerate.
2970
2971 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2972 zeroing of `flags'.
24376d1b
AM
2973 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2974 fudge values for discarded link-once section symbols.
2975
3ef20aaa
AM
2976 * elf64-hppa.c: Include alloca-conf.h
2977
c0e219cc
AM
29782000-10-11 Alan Modra <alan@linuxcare.com.au>
2979
d01e2a23
AM
2980 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2981
c0e219cc
AM
2982 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2983
fe268b66
AM
29842000-10-10 Alan Modra <alan@linuxcare.com.au>
2985
2986 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2987
4d7ce4dd
AM
29882000-10-10 Tom Rix <trix@redhat.com>
2989
d952f17a 2990 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2991 newsect->symbol fails to alloc. Use bfd_release instead of free.
2992
f3b6f7c3
RH
29932000-10-09 Richard Henderson <rth@cygnus.com
2994
2995 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2996 (elf64_ia64_unwind_entry_compare): New.
2997 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2998
44852b19
AM
29992000-10-07 Alan Modra <alan@linuxcare.com.au>
3000
fc8c40a0
AM
3001 * elflink.h (size_dynamic_sections): Don't create various tags if
3002 .dynstr is excluded from the link. Don't set first dynsym entry
3003 if dynsymcount is zero.
3004 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3005 .dynsym excluded from the link. Don't try to write any dynamic
3006 sections excluded from the link.
3007
44852b19
AM
3008 * elf.c (swap_out_syms): Handle global section symbols.
3009
3e4554a2
DD
30102000-10-05 DJ Delorie <dj@redhat.com>
3011
3012 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3013 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3014 (coff_write_relocs): write extended reloc count
3015 (coff_write_object_contents): account for extended relocs
3016
fa152c49
JW
30172000-10-05 Jim Wilson <wilson@cygnus.com>
3018
3019 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3020 field.
3021 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3022 elf_backend_section_flags function.
3023 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3024 code.
3025 (elf64_ia64_section_flags): New function containing flag conversion
3026 code.
3027 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3028 * elfxx-target.h (elf_backend_section_flags): Define.
3029 (elfNN_bed): Initialize elf_backend_section_flags field.
3030
36605136
AM
30312000-10-02 Alan Modra <alan@linuxcare.com.au>
3032
3033 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3034 _bfd_elf32_gc_record_vtable. Correct a comment.
3035
4b6609a0
UC
30362000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3037
3038 From Ralf Baechle <ralf@gnu.org>
3039
3040 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3041 produces binaries with got[1] = 0x80000001 to differenciate them
3042 for the dynamic linker from the broken binaries produced by old
3043 versions.
36605136 3044
f572a39d
AM
30452000-09-30 Petr Sorfa <petrs@sco.com>
3046
3047 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3048 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3049 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3050 * configure: Regenerate.
3051
4da81684
HPN
30522000-09-27 Hans-Peter Nilsson <hp@axis.com>
3053
3054 Define two bfd_targets for absence and presence of leading
3055 underscore on symbols. Make sure to only link same kind.
3056 * elf32-cris.c (cris_elf_object_p,
3057 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3058 cris_elf_merge_private_bfd_data): New.
3059 (elf_backend_object_p, elf_backend_final_write_processing,
3060 bfd_elf32_bfd_print_private_bfd_data,
3061 bfd_elf32_bfd_merge_private_bfd_data): Define.
3062 <Target vector definition>: Include elf32-target.h twice with
3063 different macro settings:
3064 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3065 bfd_elf32_us_cris_vec.
3066 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3067 (elf_symbol_leading_char): First as 0, then '_'.
3068 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3069 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3070 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3071 * configure: Regenerate.
3072 * targets.c: Declare bfd_elf32_us_cris_vec.
3073 * po/bfd.pot: Regenerate.
3074
9a5aca8c
AM
30752000-09-29 Momchil Velikov <velco@fadata.bg>
3076
3077 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3078 R_ARM_THM_PC22 relocations.
3079
512a2384
AM
30802000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3081
3082 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3083
6c99a5c3
AM
30842000-09-29 Momchil Velikov <velco@fadata.bg>
3085
3086 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3087 is has the SEC_HAS_CONTENTS flag set.
3088