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