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