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