2001-08-27 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-08-27 H.J. Lu <hjl@gnu.org>
2
3 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
4 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
5 (_bfd_elf32_mips_grok_prstatus): Likewise.
6 (_bfd_elf32_mips_grok_psinfo): Likewise.
7 (_bfd_mips_elf_hide_symbol): Make it static and cast to
8 `struct mips_elf_link_hash_entry *'.
9 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
10
11 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
12
13 * mipsbsd.c: Add missing prototypes.
14 * hp300hpux.c: Add missing prototypes.
15 * i386aout.c: Add missing prototypes.
16 * i386lynx.c: Add missing prototypes.
17 * i386mach3.c: Add missing prototypes.
18 * i386msdos.c: Add missing prototypes.
19 * i386os9k.c: Add missing prototypes.
20
21 2001-08-27 Linus Nordberg <linus@swox.se>
22 Torbjorn Granlund <tege@swox.com>
23 Staffan Ulfberg <staffanu@swox.se>
24 Alan Modra <amodra@bigpond.net.au>
25
26 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
27 targ64_selvecs for 32 bit powerpc targets.
28 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
29 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
30 Run "make dep-am".
31 * Makefile.in: Regenerate.
32 * configure.in: Add elf64_powerpc vecs.
33 * configure: Regenerate.
34 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
35 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
36 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
37 * elf64-ppc.c: New file.
38 * reloc.c: Add powerpc64 relocs.
39 * libbfd.h: Regenerate.
40 * bfd-in2.h: Regenerate.
41
42 2001-08-27 Andreas Schwab <schwab@suse.de>
43
44 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
45 reloc is against read-only section.
46 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
47 looking up section names for DT_TEXTREL.
48 (elf32_m68k_reloc_type_class): New function.
49 (elf_backend_reloc_type_class): Define.
50
51 2001-08-27 Andreas Jaeger <aj@suse.de>
52
53 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
54 reloc is against read-only section.
55 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
56 looking up section names for DT_TEXTREL.
57 (elf_s390_reloc_type_class): New.
58 (elf_backend_reloc_type_class): Define.
59
60 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
61 reloc is against read-only section.
62 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
63 looking up section names for DT_TEXTREL.
64 (elf_s390_reloc_type_class): New.
65 (elf_backend_reloc_type_class): Define.
66
67 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
68 is against read-only section.
69 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
70 looking up section names for DT_TEXTREL.
71 (ppc_elf_reloc_type_class): New.
72 (elf_backend_reloc_type_class): Define.
73
74 2001-08-26 Andreas Jaeger <aj@suse.de>
75
76 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
77 reloc is against read-only section.
78 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
79 looking up section names for DT_TEXTREL.
80 (elf_cris_reloc_type_class): New.
81 (elf_backend_reloc_type_class): Define.
82
83 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
84 against read-only section.
85 (elf_backend_reloc_type_class): Define.
86 (sh_elf_reloc_type_class): New.
87 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
88 looking up section names for DT_TEXTREL.
89
90 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
91 reloc is against read-only section.
92 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
93 looking up section names for DT_TEXTREL.
94 (elf32_arm_reloc_type_class): New.
95 (elf_backend_reloc_type_class): Define.
96
97 2001-08-25 Andreas Jaeger <aj@suse.de>
98
99 * oasys.c: Add missing prototypes.
100
101 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
102 attribute for parameter.
103 * elf.c (_bfd_elf_reloc_type_class): Likewise.
104
105 * versados.c (get_4): Make static.
106 (get_10): Make static.
107 Add missing prototypes.
108 (process_esd): Fix call to versados_new_symbol.
109
110 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
111
112 * coff-a29k.c: Add missing prototypes.
113 * coff-apollo.c: Add missing prototypes.
114 * coff-arm.c: Add missing prototypes.
115 * coff-i860.c: Add missing prototypes.
116 * coff-rs6000.c: Add missing prototypes.
117 * coff-tic80.c: Add missing prototypes.
118 * elf-m10200.c: Add missing prototypes.
119 * elf-m10300.c: Add missing prototypes.
120 * elf32-arm.h: Add missing prototypes.
121 * elf32-d10v.c: Add missing prototypes.
122 * elf32-m32r.c: Add missing prototypes.
123 * elf32-mcore.c: Add missing prototypes.
124 * elf32-openrisc.c: Add missing prototypes.
125 * elf32-sh.c: Add missing prototypes.
126 * elf32-sparc.c: Add missing prototypes.
127 * elf32-v850.c: Add missing prototypes.
128 * elfarm-nabi.c: Add missing prototypes.
129 * elfarm-oabi.c: Add missing prototypes.
130
131 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
132
133 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
134 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
135
136 2001-08-24 H.J. Lu <hjl@gnu.org>
137
138 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
139 hash structure.
140
141 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
142
143 * elf-bfd.h (elf_hash_table): Revert definition.
144 (is_elf_hash_table): New macro.
145 * elflink.h (elf_link_add_object_symbols): Test
146 is_elf_hash_table before accessing ELF only fields in hash
147 structure.
148 (elf_link_create_dynamic_sections): Fail if not using an ELF
149 hash structure.
150 (elf_add_dynamic_entry): Fail if not using an ELF hash
151 structure.
152 (elf_link_record_local_dynamic_symbol): Fail if not using an
153 ELF hash structure.
154 (size_dynamic_sections): Fail if not using an ELF hash
155 structure.
156 (elf_adjust_dynamic_symbol): Fail if not using an ELF
157 hash structure.
158 (elf_bfd_final_link): Fail if not using an ELF hash
159 structure.
160
161 2001-08-24 H.J. Lu <hjl@gnu.org>
162
163 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
164 table is not an ELF linker hash table.
165
166 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
167 table type to bfd_link_elf_hash_table.
168
169 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
170 the last change.
171
172 * linker.c (_bfd_link_hash_table_init): Set the linker hash
173 table type to bfd_link_generic_hash_table.
174
175 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
176
177 * bfd.c (bfd_alt_mach_code): New function.
178 * bfd-in2.h: Rebuilt.
179
180 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
181
182 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
183 `type' field in the hash entry when deciding whether to follow a
184 link.
185
186 2001-08-24 Jakub Jelinek <jakub@redhat.com>
187
188 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
189 last.
190 (elf_link_sort_relocs): Adjust accordingly.
191
192 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
193 (elf64_alpha_check_relocs): Set it if section this reloc is against
194 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
195 read-only section.
196 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
197 is is against read-only section.
198 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
199 check section names.
200 (elf64_alpha_reloc_type_class): New.
201 (elf_backend_reloc_type_class): Define.
202
203 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
204
205 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
206 by bfd_malloc().
207
208 2001-08-23 Andreas Jaeger <aj@suse.de>
209
210 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
211 the reloc is against read-only section.
212 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
213 of looking up section names for DT_TEXTREL.
214 (elf64_x86_64_reloc_type_class): New.
215 (elf_backend_reloc_type_class): Define.
216
217 2001-08-23 H.J. Lu <hjl@gnu.org>
218
219 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
220 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
221
222 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
223 bfd_print_symbol_vandf.
224 * coffgen.c (coff_print_symbol): Likewise.
225 * elf.c (bfd_elf_print_symbol): Likewise.
226 * ieee.c (ieee_print_symbol): Likewise.
227 * nlmcode.h (nlm_print_symbol): Likewise.
228 * oasys.c (oasys_print_symbol): Likewise.
229 * pdp11.c (NAME(aout,print_symbol)): Likewise.
230 * som.c (som_print_symbol): Likewise.
231 * srec.c (srec_print_symbol): Likewise.
232 * tekhex.c (tekhex_print_symbol): Likewise.
233 * versados.c (versados_print_symbol): Likewise.
234 * vms.c (vms_print_symbol): Likewise.
235
236 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
237 with bfd_fprintf_vma.
238 (bfd_elf_print_symbol): Likewise.
239 * syms.c (bfd_print_symbol_vandf): Likewise.
240
241 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
242
243 * aoutf1.h (sunos_write_object_contents): Silence compile time
244 warning.
245 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
246
247 * bout.c: Add missing function prototypes. Fix formatting.
248 * coff-z8k.c: Add missing function prototypes. Fix formatting.
249 * coff-w65.c: Add missing function prototypes. Fix formatting.
250 * coff-h8500.c: Add missing function prototypes. Fix formatting.
251 * coff-h8300.c: Add missing function prototypes. Fix formatting.
252 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
253 * coff-tic30.c: Add missing function prototypes. Fix formatting.
254 * coff-m68k.c: Add missing function prototypes. Fix formatting.
255 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
256 * coff-sh.c: Add missing function prototypes. Fix formatting.
257
258 2001-08-23 Jakub Jelinek <jakub@redhat.com>
259
260 * elf-bfd.h (enum elf_reloc_type_class): New.
261 (struct elf_backend_data): Add elf_backend_reloc_type_class.
262 (_bfd_elf_reloc_type_class): New.
263 * elfxx-target.h (elf_backend_reloc_type_class): Define.
264 (elfNN_bed): Add elf_backend_reloc_type_class.
265 * elf.c (_bfd_elf_reloc_type_class): New.
266 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
267 is against read-only section.
268 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
269 looking up section names for DT_TEXTREL.
270 (elf_i386_reloc_type_class): New.
271 (elf_backend_reloc_type_class): Define.
272 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
273 reloc is against read-only section.
274 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
275 looking up section names for DT_TEXTREL.
276 (elf32_sparc_reloc_type_class): New.
277 (elf_backend_reloc_type_class): Define.
278 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
279 reloc is against read-only section.
280 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
281 looking up section names for DT_TEXTREL.
282 (sparc64_elf_reloc_type_class): New.
283 (elf_backend_reloc_type_class): Define.
284 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
285 (elfNN_ia64_hash_table_create): Clear ia64_info.
286 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
287 section.
288 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
289 instead of looking up section names for DT_TEXTREL.
290 (elfNN_ia64_reloc_type_class): New.
291 (elf_backend_reloc_type_class): Define.
292 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
293 (struct elf_link_sort_rela): New.
294 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
295 (elf_bfd_final_link): Call elf_link_sort_relocs.
296 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
297 necessary.
298
299 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
300
301 * configure.in (x86-bsdi): No corefile support.
302 * configure: Regenerate.
303
304 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
305
306 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
307 comma.
308
309 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
310
311 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
312 the alignment of dwarf2 linkonce sections to 0.
313 * coff-sto32.c: Likewise.
314
315 2001-08-20 Andreas Jaeger <aj@suse.de>
316
317 * coff-sparc.c: Add missing prototypes.
318 * elf32-s390.c: Likewise.
319 * elf32-i960.c: Likewise.
320 * aout-target.h: Likewise.
321
322 2001-08-20 H.J. Lu <hjl@gnu.org>
323
324 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
325 (elf_num_section_syms): New for num_section_syms.
326
327 * elf.c (elf_map_symbols): Set num_section_syms.
328 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
329 the section symbol index.
330
331 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
332
333 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
334 select the generic has table creator. All elf backends need elf
335 specific fields in the hash table.
336
337 2001-08-20 Alan Modra <amodra@bigpond.net.au>
338
339 * archive.c (offsetof): Remove define.
340 * elf.c: Likewise.
341 * oasys.c: Likewise
342 * sysdep.h (offsetof): Define.
343
344 2001-08-17 Alan Modra <amodra@bigpond.net.au>
345
346 * bfd.c (bfd_get_gp_size): Return an unsigned int.
347 (bfd_set_gp_size): Make param unsigned.
348 * bfd-in2.h: Regenerate.
349 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
350 than calling bfd_get_gp_size.
351 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
352 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
353
354 2001-08-17 Alan Modra <amodra@bigpond.net.au>
355
356 * linker.c (default_fill_link_order): Handle four byte fill value.
357
358 2001-08-17 Alan Modra <amodra@bigpond.net.au>
359
360 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
361 prototype.
362 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
363
364 * elf64-mips.c (UNUSED_RELOC): Define.
365 (mips_elf64_howto_table_rel): Use it.
366 (mips_elf64_howto_table_rela): Here too.
367 (mips_elf64_write_relocs): Fix signed/unsigned warning.
368
369 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
370 silence warning.
371 * coffgen.c (coff_print_symbol): Fix warnings.
372 (coff_find_nearest_line): Likewise.
373 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
374 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
375 * format.c (bfd_check_format_matches): Likewise.
376 (bfd_set_format): Likewise.
377 * coff-ia64.c: Add missing prototypes.
378 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
379 signed to silence warnings.
380 (elf64_alpha_relocate_section): Likewise.
381 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
382 (elf64_alpha_add_symbol_hook): Likewise.
383 (elf64_alpha_final_link): Likewise.
384 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
385 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
386 (elf64_alpha_size_got_sections): Likewise.
387 * elfxx-ia64.c: Add missing prototypes.
388 (elfNN_ia64_relocate_section): Fix warning.
389 (elfNN_ia64_unwind_entry_compare): Make params const.
390
391 2001-08-17 Alan Modra <amodra@bigpond.net.au>
392
393 * config.bfd (targ64_selvecs): New.
394 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
395
396 * bfd-in.h (BFD_VERSION): Remove wrong comment.
397 (BFD_DEFAULT_TARGET_SIZE): New.
398 (BFD_ARCH_SIZE): Comment.
399 * configure.in (target_size): New. Set instead of target64 in
400 selvecs case statement. Set target64 from it.
401 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
402 * bfd-in2.h: Regenerate.
403 * configure: Regenerate.
404
405 2001-08-17 Alan Modra <amodra@bigpond.net.au>
406
407 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
408 (bfd_errmsgs): Add corresponding message.
409 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
410 finding an archive that contains different format object files.
411 Return bfd_error_wrong_object_format for this case.
412 * format.c: Formatting fixes. s/CONST/const/.
413 (bfd_check_format_matches): Accept archives that give
414 bfd_error_wrong_object_format if no full match is found. Tidy
415 code handling matching_vector. Don't return a pointer to freed
416 memory in `matching'. Handle ambiguous matches as for partial
417 archive matches.
418 * bfd-in2.h: Regenerate.
419
420 2001-08-15 Alan Modra <amodra@bigpond.net.au>
421
422 * libieee.h (common_header_type): Add last_byte field.
423
424 * ieee.c: Add missing prototypes. Some format fixes.
425 (struct output_buffer_struct): Move for availability to prototypes.
426 (ieee_part_after): New function.
427 (ieee_slurp_debug): Use it here.
428 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
429 ieee_part_after to set last_byte to one past end of current part.
430 Update callers.
431 (ieee_pos): Pass in ieee_data_struct rather than bfd.
432 Update callers.
433 (parse_expression): Don't go beyond the end of the current part.
434 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
435 (ieee_get_symtab_upper_bound, ieee_get_symtab,
436 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
437 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
438 ieee_set_section_contents, ieee_write_object_contents,
439 ieee_make_empty_symbol): Make static.
440 (ieee_archive_p): Correct comments regarding bfd_read.
441 (ieee_object_p): Similarly.
442 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
443 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
444 input_bfd, output_bfd, output_buffer.
445 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
446 do_with_relocs, ie. as a symbol for relocatable files.
447 (ieee_vec): Add comments showing functions referenced by macros.
448
449 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
450
451 * aout-tic30.c: Add missing prototypes. Fix formatting.
452 * aout-ns32k.c: Add missing prototypes. Fix formatting.
453 * peXXigen.c: Add missining prototypes. Fix formatting.
454 * aout-adobe.c: Add missining prototypes. Fix formatting.
455
456 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
457
458 * elf32-v850.c: Add missing function prototypes.
459 Fix some formatting.
460
461 * cpu-v850.c: Add missing function prototype.
462 Fix some formatting.
463
464 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
465
466 * elf-bfd.h (struct elf_backend_data): Add new fields
467 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
468 (bfd_elf_sprintf_vma): Rename function prototype to
469 '_bfd_elf_sprintf_vma'.
470 (bfd_elf_fprintf_vma): Rename function prototype to
471 '_bfd_elf_fprintf_vma'.
472 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
473 directly, instead indirect via the elf_backend_data structure.
474 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
475 instead indirect via the elf_backend_data structure.
476 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
477 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
478 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
479 already defined.
480 (elf_backend_fprintf_vma): Initialise if not already defined.
481 (struct elf_backend_data): Initialise the
482 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
483
484 2001-08-10 Andreas Jaeger <aj@suse.de>
485
486 * elf64-sparc.c: Add missing prototypes.
487 * elf32-cris.c: Likewise.
488 * elf32-i370.c: Likewise.
489 * elf64-hppa.c: Likewise.
490 * elf64-s390.c: Likewise.
491
492 2001-08-10 Andreas Jaeger <aj@suse.de>
493
494 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
495 Add prototypes where needed.
496
497 2001-08-10 H.J. Lu <hjl@gnu.org>
498
499 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
500 (bfd_fprintf_vma): Likewise.
501
502 2001-08-10 H.J. Lu <hjl@gnu.org>
503
504 * bfd.c (bfd_sprintf_vma): Don't return void.
505 (bfd_fprintf_vma): Likewise.
506
507 2001-08-10 Andreas Jaeger <aj@suse.de>
508
509 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
510 to build warnings.
511 * configure: Regenerate.
512
513 2001-08-10 Alan Modra <amodra@bigpond.net.au>
514
515 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
516 warning if not BFD64. Add braces so emacs auto format works.
517 (bfd_elf_fprintf_vma): Likewise.
518
519 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
520 of _xcoff_swap_ld*.
521 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
522 param to agree with libxcoff.h.
523 (xcoff_swap_ldhdr_out): Likewise.
524 (xcoff_swap_ldsym_in): Likewise.
525 (xcoff_swap_ldsym_out): Likewise.
526 (xcoff_swap_ldrel_in): Likewise.
527 (xcoff_swap_ldrel_out): Likewise.
528 (xcoff_create_csect_from_smclas): Likewise.
529 * coff64-rs6000.c: Add missing prototypes.
530 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
531 with libxcoff.h.
532 (xcoff64_swap_ldhdr_out): Likewise.
533 (xcoff64_swap_ldsym_in): Likewise.
534 (xcoff64_swap_ldsym_out): Likewise.
535 (xcoff64_swap_ldrel_in): Likewise.
536 (xcoff64_swap_ldrel_out): Likewise.
537 (xcoff64_ppc_relocate_section): Make static.
538 (xcoff64_slurp_armap): Likewise.
539 (xcoff64_archive_p): Likewise.
540 (xcoff64_openr_next_archived_file): Likewise.
541 (xcoff64_sizeof_headers): Likewise.
542 (xcoff64_is_lineno_count_overflow): Likewise.
543 (xcoff64_is_reloc_count_overflow): Likewise.
544 (xcoff64_loader_symbol_offset): Likewise.
545 (xcoff64_loader_reloc_offset): Likewise.
546 * elf64-gen.c: Add missing prototypes.
547
548 2001-08-09 H.J. Lu <hjl@gnu.org>
549
550 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
551 (bfd_elf_fprintf_vma): Likewise.
552
553 2001-08-09 H.J. Lu <hjl@gnu.org>
554
555 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
556 to ...
557 * elf-bfd.h: Here.
558 * bfd-in2.h: Regenerated.
559
560 2001-08-09 H.J. Lu <hjl@gnu.org>
561
562 * bfd-in.h (bfd_sprintf_vma): New prototype.
563 (bfd_fprintf_vma): Likewise.
564 (bfd_elf_sprintf_vma): Likewise.
565 (bfd_elf_fprintf_vma): Likewise.
566 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
567 * bfd-in2.h: Regenerated.
568
569 * bfd.c (bfd_sprintf_vma): New. Defined.
570 (bfd_fprintf_vma): Likewise.
571
572 * elf.c (bfd_elf_sprintf_vma): New. Defined.
573 (bfd_elf_fprintf_vma): Likewise.
574
575 2001-08-09 Alan Modra <amodra@bigpond.net.au>
576
577 * coff-rs6000.c: Add missing prototypes.
578 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
579 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
580 xcoff_loader_reloc_offset): Make static.
581 * dwarf1.c: Add missing prototypes.
582 * dwarf2.c: Add missing prototypes.
583 (struct abbrev_info): Move definition.
584 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
585 * elf.c: Add missing prototypes.
586 * elf32-gen.c: Likewise.
587 * elf32-i386.c: Likewise.
588 * elf32-ppc.c: Likewise.
589 (ppc_elf_sort_rela): Use PTR instead of "void *".
590 * elflink.h: Add missing prototypes. Formatting fixes.
591 * merge.c: Add missing prototypes.
592 (last4_eq): Use PTR instead of "void *".
593 (last_eq): Likewise.
594 * syms.c: Add missing prototypes.
595
596 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
597
598 * bfd.c: Fix formatting.
599 * bfd-in2.h: Regenerate.
600
601 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
602
603 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
604 true (this target uses REL relocations) and 'pcrel_offset' to
605 false (the PC is implied, not stored in the offset).
606
607 2001-08-08 Alan Modra <amodra@bigpond.net.au>
608
609 1999-10-19 Linus Nordberg <linus@swox.se>
610 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
611 * elfxx-target.h (elf_backend_want_got_sym): Define.
612 (elfNN_bed): Add elf_backend_want_got_sym.
613 * elflink.c (_bfd_elf_create_got_section): Define
614 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
615
616 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
617
618 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
619 (find_rela_addend): New function.
620 (parse_comp_unit): Call it to find the abbrev offset addend.
621 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
622 members of dwarf2_debug as debugging information is read.
623
624 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
625
626 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
627 targets as well as sh-pe.
628
629 2001-08-03 Ben Harris <bjh21@netbsd.org>
630
631 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
632 reloc from start of section when computing value for R_ARM_REL32
633 reloc.
634
635 2001-08-03 Alan Modra <amodra@bigpond.net.au>
636
637 From H.J. Lu <hjl@gnu.org>
638 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
639 keep relocs for undefined syms if there are no dynamic sections in
640 executable.
641 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
642
643 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
644
645 * cofflink.c (coff_link_check_ar_symbols): also search for
646 __imp__symbol as well as _symbol.
647 * linker.c (_bfd_generic_link_add_archive_symbols): also
648 search for __imp__symbol as well as _symbol.
649
650 2001-08-01 Adam Nemet <anemet@lnxw.com>
651
652 * elf.c (elf_sort_sections): Return zero only as the last step.
653
654 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
655
656 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
657 ARM_COFF_BUGFIX.
658 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
659 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
660 ARM_COFF_BUGFIX.
661
662 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
663
664 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
665 to match corresponding bfd_coff_backend data member.
666
667 2001-07-24 Alan Modra <amodra@bigpond.net.au>
668
669 * Makefile.am: Update dependencies with "make dep-am".
670 * Makefile.in: Regenerate
671
672 2001-07-15 H.J. Lu <hjl@gnu.org>
673
674 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
675 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
676 * Makefile.in: Regenerate.
677
678 2001-07-11 H.J. Lu <hjl@gnu.org>
679
680 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
681 flags when creating the reloc section if the ALLOC flag in the
682 source section is set.
683
684 2001-07-11 Steve Ellcey <sje@cup.hp.com>
685
686 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
687 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
688 * bfd-in2.h: Regenerate.
689 * libbfd.h: Regenerate.
690 * elfxx-ia64.c (ia64_howto_table): Define how to handle
691 new relocations.
692 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
693 (elfNN_ia64_check_relocs): Likewise.
694 (elfNN_ia64_install_value): Likewise.
695 (elfNN_ia64_relocate_section): Likewise.
696
697 2001-07-11 Jakub Jelinek <jakub@redhat.com>
698
699 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
700 R_SPARC_UA64.
701 (elf32_sparc_check_relocs): Likewise.
702 Only create .rela section for alloced sections in shared libraries.
703 (elf32_sparc_relocate_section): Likewise.
704 Remove redundant check.
705 Optimize unaligned reloc usage.
706 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
707 check.
708
709 2001-07-11 H.J. Lu <hjl@gnu.org>
710
711 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
712 ALLOC|LOAD flags as the source section for debugging sections
713 when creating the reloc section.
714
715 2001-07-05 Jim Wilson <wilson@redhat.com>
716
717 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
718 the section of the bigger symbol.
719
720 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
721
722 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
723
724 * peicode.h (coff_swap_scnhdr_in): For sections containing
725 uninitialised data, only set their size to s_paddr if this does
726 not reset their size to zero. MS's latest compilers will set
727 s_paddr to zero.
728
729 2001-07-04 H.J. Lu <hjl@gnu.org>
730
731 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
732 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
733 bfd_mach_mips5000.
734
735 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
736
737 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
738
739 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
740 sections being discarded.
741
742 2001-06-30 Alan Modra <amodra@bigpond.net.au>
743
744 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
745 instead of _bfd_elfcore_section_from_phdr.
746 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
747 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
748 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
749 (elfcore_grok_prstatus): Likewise.
750 (elfcore_grok_lwpstatus): Likewise.
751 (bfd_get_elf_phdr_upper_bound): Likewise.
752 (elfcore_make_note_pseudosection): Formatting.
753 (_bfd_elfcore_strndup): Formatting.
754 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
755 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
756
757 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
758
759 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
760 and _bfd_elfcore_strndup.
761 (struct elf_backend_data): Add elf_backend_grok_prstatus
762 and elf_backend_grok_psinfo.
763 * elf.c (_bfd_elfcore_make_pseudosection): New function.
764 (elfcore_grok_prstatus): Use it.
765 (elfcore_make_note_pseudosection): Likewise.
766 (elfcore_strndup): Rename to...
767 (_bfd_elfcore_strndup): Here, and make global.
768 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
769 (elfcore_grok_note): Call elf_backend_grok_prstatus
770 and elf_backend_grok_psinfo if available.
771 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
772 (_bfd_elf32_mips_grok_psinfo): New function.
773 (elf_backend_grok_prstatus): Define.
774 (elf_backend_grok_psinfo): Define.
775 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
776 (elf_backend_grok_psinfo): Likewise.
777 (elfNN_bed): Include elf_backend_grok_prstatus and
778 elf_backend_grok_psinfo.
779
780 2001-06-29 H.J. Lu <hjl@gnu.org>
781
782 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
783 hplink->sgot is NULL before filling GOT. Check if hplink->splt
784 is NULL before filling PLT.
785
786 2001-06-29 Alan Modra <amodra@bigpond.net.au>
787
788 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
789
790 2001-06-27 Alan Modra <amodra@bigpond.net.au>
791
792 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
793 here..
794 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
795 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
796 after gc has run.
797
798 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
799 (IS_ABSOLUTE_RELOC): Define.
800 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
801 (hppa_link_hash_newfunc): Always init it.
802 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
803 create COPY relocs only when the reloc is in a read-only section.
804 Instead, allocate space for a dynamic reloc to reference the
805 library symbol directly. Keep track of space we allocate using
806 relocs_entries.
807 (hppa_discard_copies): Delete, and move code to..
808 (allocate_plt_and_got): ..here. Rename to
809 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
810 relocs for non-shared link.
811 (elf32_hppa_size_dynamic_sections): Update calls to above.
812 (elf32_hppa_relocate_section): Write out the dynamic relocs used
813 in lieu of COPY relocs.
814
815 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
816 here..
817 (elf_i386_adjust_dynamic_symbol): ..nor here..
818 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
819 after gc has run.
820 (elf_i386_size_dynamic_sections): Fix a comment.
821 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
822 involved in writing reloc out.
823
824 2001-06-25 Alan Modra <amodra@bigpond.net.au>
825
826 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
827 Ensure syms are dynamic if we might be emitting a reloc.
828 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
829 for undefweak or undefined syms..
830 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
831
832 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
833 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
834 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
835 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
836
837 2001-06-24 H.J. Lu <hjl@gnu.org>
838
839 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
840 strncasecmp/strcasecmp instead of strncmp/strcmp.
841
842 2001-06-23 H.J. Lu <hjl@gnu.org>
843
844 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
845 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
846 in the regular object file and treat the weak definition as
847 the normal one.
848
849 2001-06-23 Alan Modra <amodra@bigpond.net.au>
850
851 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
852 unresolved_reloc test to exclude cases where we use "relocation"
853 before setting it to point into the .got. Reinstate fudge for
854 unresolved relocs in debugging sections.
855
856 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
857 complicated tests for unresolvable relocs with a simple direct
858 scheme using "unresolved_reloc" var.
859
860 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
861 elf_i386_dyn_relocs. Update comment.
862 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
863 dyn_relocs.
864 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
865 others to aborts.
866 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
867 abort.
868 (elf_i386_size_dynamic_sections): Likewise.
869 (elf_i386_finish_dynamic_symbol): Likewise.
870 (elf_i386_finish_dynamic_sections): Likewise.
871 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
872 handling code.
873
874 Avoid creating COPY relocs if possible.
875 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
876 which .got created. Mark symbols used by R_386_32 and R_386_PC32
877 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
878 reloc is in a read-only section. Instead, allocate space for a
879 dynamic reloc to reference the library symbol directly. Keep
880 track of space we allocate using pcrel_relocs_copied.
881 (discard_copies): Delete, and move code to ..
882 (allocate_plt_and_got): ..here. Rename to
883 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
884 relocs for non-shared link.
885 (elf_i386_size_dynamic_sections): Update calls to above functions.
886 (elf_i386_relocate_section): Write out the dynamic relocs. Add
887 more ugly logic to avoid "unresolvable relocation" error. Use
888 htab shortcut in place of elf_hash_table macro.
889 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
890 not always be created now.
891
892 2001-06-20 Bo Thorsen <bo@suse.co.uk>
893
894 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
895 shared libraries.
896
897 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
898
899 * configure.host (mips64-*-linux): Reformat.
900
901 2001-06-21 Alan Modra <amodra@bigpond.net.au>
902
903 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
904 allocate local .got space. Use shortcuts from hash table for .got
905 and .plt rather than comparing section names.
906 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
907 adjusting index into local_got_refcounts to document what we are
908 really doing.
909 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
910 Tidy .got and .plt error checking.
911
912 2001-06-20 Catherine Moore <clm@redhat.com>
913
914 * elf-bfd.h (struct elf_backend_data):
915 elf_backend_emit_relocs: New field: Function for emitting
916 relocs.
917 elf_backend_count_relocs: New field: Function for determining
918 the number of relocs to be emitted.
919 * elfxx-target.h: Provide default (NULL) values for
920 elf_backend_emit_relocs and elf_backend_count_relocs.
921 * elflink.h (elf_link_size_reloc_section): Make the hash table
922 big enough to hold the relocs counted by either reloc_count or
923 o->reloc_count.
924 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
925 should be emitted, either because of a command line option
926 stored in the info structure or because the target provides a
927 special reloc emitting function.
928 If the target provides a reloc counting function use it,
929 unless performing a relocatable link or emitting all relocs.
930 Also set the SEC_RELOC flag on any output section which will
931 contain relocs.
932 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
933 should be emitted, either because of a command line option
934 stored in the info structure or because the target provides a
935 special reloc emitting function.
936 If the target provides a reloc emitting function, use it,
937 unless performing a relocatable link or emitting all relocs.
938
939 2001-06-20 H.J. Lu <hjl@gnu.org>
940
941 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
942 allocate local .got space.
943
944 2001-06-19 Andreas Jaeger <aj@suse.de>
945
946 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
947 dynamic symbols.
948
949 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
950
951 * elflink.h (struct elf_assign_sym_version_info): Remove member
952 export_dynamic. All users changed to use info member.
953 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
954 export_dynamic, instead use member in parameter info.
955 * bfd-in.h (bfd_elf32_size_dynamic_sections,
956 bfd_elf64_size_dynamic_sections): Update prototype.
957 * bfd-in2.h: Regenerate.
958
959 2001-06-18 H.J. Lu <hjl@gnu.org>
960
961 * elflink.h (elf_info_failed): Add a new field, verdefs.
962 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
963 elf_export_symbol.
964 (elf_export_symbol): Check eif->verdefs to decide if a symbol
965 should be exported.
966
967 2001-06-17 H.J. Lu <hjl@gnu.org>
968
969 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
970 readonly_reloc, to record if a relocation in the .rel.dyn
971 section is against a read-only section.
972 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
973 field to false.
974 (_bfd_mips_elf_check_relocs): Record if there is a relocation
975 in the .rel.dyn section against a read-only section by setting
976 DF_TEXTREL or readonly_reloc.
977 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
978 it is true.
979 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
980 there is a relocation in the .rel.dyn section against a
981 read-only section.
982 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
983 DF_TEXTREL is set.
984
985 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
986
987 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
988 function. Move flagword result into parameter list. Remove
989 comment about setting bfd_error_handler to intercept failure
990 results.
991 * coffgen.c (make_a_section_from_file): Examine result of
992 calling bfd_coff_styp_to_sec_flags and pass a failure back to
993 caller.
994 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
995 function. Move flagword result into parameter list.
996 * libcoff.h: Regenerate.
997 * libecoff.h: Regenerate.
998
999 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1000
1001 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1002 section is going to follow it.
1003
1004 2001-06-12 Catherine Moore <clm@redhat.com>
1005
1006 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1007 with the file_align entry from elf_backend_data.
1008 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1009 (elf_gc_record_vtentry): Likewise.
1010
1011 2001-06-10 Alan Modra <amodra@bigpond.net.au>
1012
1013 * elflink.h: Whitespace changes.
1014 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1015 rather than "unsigned char".
1016 (elf_link_output_relocs): Likewise.
1017 (elf_link_input_bfd): Likewise.
1018 (elf_reloc_link_order): LIkewise.
1019 * elf.c: s/CONST/const/. Whitespace changes.
1020 * elf32-mips.c: Formatting fix.
1021
1022 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1023 * Makefile.in: Regenerate.
1024 * po/Make-in: Remove trailing tab.
1025
1026 2001-06-09 Philip Blundell <philb@gnu.org>
1027
1028 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1029 change.
1030 (elf32_arm_plt_entry): Likewise.
1031
1032 2001-06-08 H.J. Lu <hjl@gnu.org>
1033
1034 * elf.c (swap_out_syms): Keep names for global section symbols.
1035
1036 2001-06-07 H.J. Lu <hjl@gnu.org>
1037
1038 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1039 MIPS-based machines need it.
1040
1041 2001-06-07 H.J. Lu <hjl@gnu.org>
1042
1043 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1044 for SGI only.
1045
1046 * config.bfd: Remove ecoff from Linux/mips.
1047
1048 2001-06-07 Andreas Jaeger <aj@suse.de>
1049
1050 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1051 assertion.
1052 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1053 alignment of 8 for .rela sections; handle further relocations.
1054
1055 2001-06-06 Christian Groessler <cpg@aladdin.de>
1056
1057 * coff-z8k.c: Fix formatting.
1058 Fix howtos: howto->size was always 1.
1059
1060 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1061
1062 * configure.host (mips64*-*-linux*): Define.
1063
1064 2001-06-05 Alan Modra <amodra@bigpond.net.au>
1065
1066 * elf32-i386.c (elf_i386_discard_copies): Rename to
1067 discard_copies, and use elf_link_hash_entry arg rather than
1068 elf_i386_link_hash_entry.
1069 (elf_i386_link_hash_traverse): Delete.
1070 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1071 Tidy sizing of dynamic sections.
1072 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1073 possible .plt entries.
1074 (elf_i386_gc_sweep_hook): Likewise.
1075 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1076 everything with plt.refcount <= 0.
1077
1078 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1079 .relgot space here.
1080 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
1081 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
1082 .rel.plt here..
1083 (allocate_plt_and_got): ..instead do it all here. New function.
1084 (elf_i386_size_dynamic_sections): Allocate local .got space and
1085 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
1086 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
1087 rather than gc variety).
1088 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1089 (elf_i386_relocate_section): Use it here and correct handling of
1090 R_386_GOT32. Provide section and offset for "unresolvable
1091 relocation" error message.
1092 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1093
1094 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1095 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1096 (elf_i386_link_hash_table_create): Init them.
1097 (create_got_section): New function.
1098 (elf_i386_create_dynamic_sections): New function.
1099 (elf_backend_create_dynamic_sections): Set to above.
1100 (elf_i386_check_relocs): Use shortcuts from hash table rather than
1101 calling bfd_get_section_by_name.
1102 (elf_i386_gc_sweep_hook): Likewise.
1103 (elf_i386_adjust_dynamic_symbol): Likewise.
1104 (elf_i386_size_dynamic_sections): Likewise.
1105 (elf_i386_relocate_section): Likewise.
1106 (elf_i386_finish_dynamic_sections): Likewise.
1107
1108 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1109
1110 2001-06-02 H.J. Lu <hjl@gnu.org>
1111
1112 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1113 and ELFOSABI_HPUX.
1114 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1115
1116 2001-06-02 H.J. Lu <hjl@gnu.org>
1117
1118 * aout-cris.c (MACHTYPE_OK): New. Defined.
1119
1120 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
1121
1122 * section.c (_bfd_strip_section_from_output): Handle NULL
1123 output_section.
1124
1125 2001-06-02 H.J. Lu <hjl@gnu.org>
1126
1127 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1128 rs6000coff64_vec only if BFD64 is defined.
1129 (powerpc64-*-aix*): Enable only if BFD64 is defined.
1130
1131 2001-06-02 H.J. Lu <hjl@gnu.org>
1132
1133 * coff-ia64.c (ia64coff_object_p): Rewrite with
1134 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1135
1136 2001-06-01 Andreas Jaeger <aj@suse.de>
1137
1138 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1139 relocation, small reformatting.
1140
1141 2001-05-29 Andreas Jaeger <aj@suse.de>
1142
1143 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1144 (elf64_x86_64_relocate_section): Likewise.
1145
1146 2001-05-30 Alan Modra <amodra@one.net.au>
1147
1148 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1149 millicode. Don't allocate .got and .rela.got space here..
1150 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1151 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1152 .rela.plt here..
1153 (hppa_handle_PIC_calls): ..nor here..
1154 (allocate_plt_and_got): ..instead do it all here. New function.
1155 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1156 call allocate_plt_and_got. No need to zap .got if not dynamic.
1157 (elf32_hppa_final_link): Call regular bfd_final_link instead of
1158 gc_common_final_link.
1159 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1160 (elf32_hppa_relocate_section): Use it here.
1161 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1162 dynamic_sections_created.
1163 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1164
1165 2001-05-28 Andreas Jaeger <aj@suse.de>
1166
1167 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1168 generic version since we want a hashsize of 4.
1169 (elf_backend_size_info): Likewise.
1170
1171 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1172
1173 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1174 a zeroing loop.
1175 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1176 (elf_link_input_bfd): Likewise.
1177 (elf_reloc_link_order): Likewise.
1178 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1179 relocations correctly.
1180
1181 2001-05-28 Nicolas Pitre <nico@cam.org>
1182
1183 * elf32-arm.h: fix PLT generation for big endian ARM
1184
1185 2001-05-28 Alan Modra <amodra@one.net.au>
1186
1187 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1188 for symbols forced local that need plabels.
1189 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1190 .plt.rela for local syms if non-shared.
1191 (hppa_build_one_stub): Mask lsb of plt.offset.
1192 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1193 (clobber_millicode_symbols): Correct comment.
1194 (elf32_hppa_relocate_section): Likewise.
1195 (elf32_hppa_finish_dynamic_symbol): Likewise.
1196
1197 2001-05-28 Jeff Sturm <jsturm@one-point.com>
1198
1199 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1200 * bfd-in2.h: Regenerate.
1201 * libbfd.h: Regenerate.
1202 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1203 and BFD_RELOC_SPARC_UA64 mapping
1204 * elf64-sparc.c: Likewise.
1205
1206 2001-05-25 H.J. Lu <hjl@gnu.org>
1207
1208 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1209 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1210 (coff-rs6000.lo): Remove the old dependency.
1211 * Makefile.in: Rebuild.
1212
1213 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1214 coff-rs6000.lo.
1215
1216 2001-05-25 H.J. Lu <hjl@gnu.org>
1217
1218 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1219 rs6000coff_core_file_matches_executable_p,
1220 rs6000coff_core_file_failing_command and
1221 rs6000coff_core_file_failing_signal only if AIX_CORE is
1222 defined.
1223 (pmac_xcoff_vec): Likewise.
1224 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1225
1226 2001-05-25 Timothy Wall <twall@redhat.com>
1227
1228 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1229 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1230
1231 2001-05-25 H.J. Lu <hjl@gnu.org>
1232
1233 * bfd-in2.h: Regenerated.
1234 * libcoff.h: Likewise.
1235
1236 2001-05-25 Alan Modra <amodra@one.net.au>
1237
1238 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1239 undefined millicode syms in shared libs.
1240 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1241 (elf32_hppa_check_relocs): Likewise.
1242 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1243 (elf32_hppa_size_dynamic_sections): Likewise.
1244 (elf32_hppa_relocate_section): Likewise.
1245 (elf32_hppa_finish_dynamic_symbol): Likewise.
1246 (elf32_hppa_finish_dynamic_sections): Likewise.
1247
1248 2001-05-24 Tom Rix <trix@redhat.com>
1249
1250 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
1251 xcoff-target.h not used to define rs6000 or ppc bfd.
1252 * Makefile.in same
1253
1254 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1255 to 64 bit.
1256
1257 * coff-rs6000.c : Many changes for 64 bit support. Move common
1258 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1259 and pmac_xcoff_vec
1260
1261 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1262 linker now supported. Explictly define the rs6000coff64_vec.
1263
1264 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1265 (coff_print_aux) same
1266 (coff_write_object_contents) same
1267 (coff_slurp_line_table) same
1268
1269 * coffgen.c : (coff_fix_symbol_name) formatting
1270 (coff_mangle_symbols) xcoff 64 bit support
1271 (coff_write_symbol) same
1272 (coff_write_alien_symbol) same
1273 (coff_write_native_symbol) same
1274 (coff_write_symbols) same
1275 (coff_get_symbol_info) same
1276 (bfd_coff_get_syment) same
1277 (coff_print_symbol) same
1278
1279 * config.bfd : add powerpc64-*-aix* target
1280
1281 * libcoff-in.h : formatting
1282
1283 * libcoff.h : move xcoff extern declarations to libxcoff.h
1284
1285 * libxcoff.h : New file
1286
1287 * xcofflink.c : Many changes for xcoff64 support. Move common
1288 structures to include/coff/xcoff.h. Move specific structure to
1289 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1290 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1291
1292 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1293 aix4.2+ -binitfini.
1294
1295 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1296
1297 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1298
1299 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1300 s/ENTIRES/ENTRIES/.
1301
1302 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1303
1304 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1305 * libbfd.h: Regenerate.
1306 * bfd-in2.h: Regenerate.
1307
1308 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1309 * archures.c (bfd_mach_mips12000): Define.
1310 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1311 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1312 support.
1313 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1314 * bfd-in2.h: Regenerate.
1315 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1316
1317 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1318
1319 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1320 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1321 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1322 that is used by GCC.
1323
1324 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1325
1326 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1327 of entries in a structured section.
1328 * elf.c: Use new macro.
1329 * elf32-i386.c: Use new macro.
1330 * elf32-mips.c: Use new macro.
1331 * elf64-alpha.c: Use new macro.
1332 * elf64-sparc.c: Use new macro.
1333 * elfcode.h: Use new macro.
1334 * elflink.h: Use new macro.
1335
1336 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1337
1338 * bfdint.texi: Replace -oformat with --oformat.
1339
1340 2001-05-21 Andreas Jaeger <aj@suse.de>
1341
1342 * dwarf2.c (decode_line_info): Fix error message.
1343 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1344 adjust error message.
1345
1346 2001-05-18 H.J. Lu <hjl@gnu.org>
1347
1348 * elflink.h (elf_link_add_object_symbols): Revert the last
1349 change.
1350
1351 2001-05-17 Alan Modra <amodra@one.net.au>
1352
1353 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1354 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1355 (hppa_build_one_stub): Add an assert to check plt.offset.
1356
1357 2001-05-17 H.J. Lu <hjl@gnu.org>
1358
1359 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1360 version definition to basename of the output filename.
1361
1362 2001-05-17 H.J. Lu <hjl@gnu.org>
1363
1364 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1365 basename of the bfd filename.
1366
1367 2001-05-16 Alan Modra <amodra@one.net.au>
1368
1369 * section.c (asection): Add linker_has_input field.
1370 (STD_SECTION): Adjust initialization to suit.
1371 * ecoff.c (bfd_debug_section): Likewise.
1372 * bfd-in2.h: Regenerate.
1373
1374 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
1375
1376 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1377 negative 32-bit operands to 16 operands when the operand is
1378 going to be zero-extended by the modified opcode.
1379
1380 2001-05-12 Peter Targett <peter.targett@arccores.com>
1381
1382 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1383 name for 'arc5' core versions.
1384 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1385
1386 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1387 architecture.
1388 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1389
1390 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1391
1392 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1393 sections as well.
1394 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1395 to .gnu.linkonce.t.FOO text section.
1396
1397 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1398
1399 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1400 fields, change sec into secinfo.
1401 (struct sec_merge_info): Add chain, remove last fields.
1402 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1403 (sec_merge_hash_lookup): If lookup could not use a string only
1404 because it has bad alignment, mark the old string for deletion.
1405 (sec_merge_add): Add secinfo argument. Don't compute entry's
1406 position, instead record the section.
1407 (sec_merge_emit): Update for the sec into secinfo change in
1408 struct sec_merge_hash_entry.
1409 (_bfd_merge_section): Only record the section for merging, defer
1410 putting strings into the hash table.
1411 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1412 _bfd_merge_sections): New functions.
1413 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1414 changes.
1415 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1416 (_bfd_nolink_bfd_merge_sections): Define.
1417 * libbfd.h: Likewise.
1418 (bfd_generic_merge_sections): Add prototype.
1419 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1420 (struct bfd_target): Likewise.
1421 * bfd.c (bfd_merge_sections): Define.
1422 * bfd-in2.h: Rebuilt.
1423 * elf.c (_bfd_elf_merge_sections): New function.
1424 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1425 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1426 * reloc.c (bfd_generic_merge_sections): New function.
1427 * vms.c (vms_bfd_merge_sections): New function.
1428 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1429 * aout-target.h (MY_bfd_merge_sections): Define.
1430 * aout-tic30.c (MY_bfd_merge_sections): Define.
1431 * binary.c (binary_bfd_merge_sections): Define.
1432 * bout.c (b_out_bfd_merge_sections): Define.
1433 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1434 * coffcode.c (coff_bfd_merge_sections): Define.
1435 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1436 * i386msdos.c (msdos_bfd_merge_sections): Define.
1437 * i386os9k.c (os9k_bfd_merge_sections): Define.
1438 * ieee.c (ieee_bfd_merge_sections): Define.
1439 * ihex.c (ihex_bfd_merge_sections): Define.
1440 * nlm-target.h (nlm_bfd_merge_sections): Define.
1441 * oasys.c (oasys_bfd_merge_sections): Define.
1442 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1443 * som.c (som_bfd_merge_sections): Define.
1444 * srec.c (srec_bfd_merge_sections): Define.
1445 * tekhex.c (tekhex_bfd_merge_sections): Define.
1446 * versados.c (versados_bfd_merge_sections): Define.
1447 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1448
1449 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1450
1451 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1452 to be unsigned long, in order to match its use.
1453
1454 2001-05-10 H.J. Lu <hjl@gnu.org>
1455
1456 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1457 indirect symbols.
1458
1459 2001-05-09 H.J. Lu <hjl@gnu.org>
1460
1461 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1462 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1463 Remove the unused veriable `dynver'.
1464
1465 2001-05-08 Ian Lance Taylor <ian@zembu.com>
1466
1467 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1468 NULL or is not COFF.
1469 (coff_i386_rtype_to_howto): Don't dump core if output section
1470 owner is not COFF.
1471
1472 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1473
1474 * ecoff.c (bfd_debug_section): Fix initialization.
1475 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1476 is always a positive integer. Cast away sign mismatch.
1477 * elf32-mips.c: Fix misleading comment and typo.
1478 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1479 correct data type.
1480 * elflink.c: Fix typo.
1481 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1482 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1483
1484 2001-05-04 Richard Henderson <rth@redhat.com>
1485
1486 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1487
1488 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1489
1490 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1491 EF_ARM_HASENTRY if the start address is set.
1492
1493 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1494
1495 * targets.c (_bfd_target_vector_entries): Compute value based on
1496 the size of the _bfd_target_vector and not bfd_target_vector.
1497
1498 2001-05-03 H.J. Lu <hjl@gnu.org>
1499
1500 * elfcode.h: Include "libiberty.h".
1501
1502 * elflink.h (elf_link_add_object_symbols): Set
1503 elf_dt_name (abfd) to basename of the bfd filename.
1504 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1505 of the bfd filename.
1506
1507 2001-05-03 Andreas Jaeger <aj@suse.de>
1508
1509 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1510 (elf_generic_info_to_howto_rel): Likewise.
1511 * coff-alpha.c (reloc_nil): Likewise.
1512 (alpha_ecoff_bad_format_hook): Likewise.
1513 (alpha_adjust_reloc_out): Likewise.
1514 (alpha_bfd_reloc_type_lookup): Likewise.
1515 (alpha_convert_external_reloc): Likewise.
1516 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1517 (elf64_alpha_reloc_bad): Likewise.
1518 (elf64_alpha_reloc_gpdisp): Likewise.
1519 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1520 (elf64_alpha_info_to_howto): Likewise.
1521 (elf64_alpha_add_symbol_hook): Likewise.
1522 (elf64_alpha_create_got_section): Likewise.
1523 (elf64_alpha_is_local_label_name): Likewise.
1524 (elf64_alpha_merge_ind_symbols): Likewise.
1525 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1526 (mips_elf64_get_reloc_upper_bound): Likewise.
1527 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1528 (nlm_alpha_get_public_offset): Likewise.
1529
1530 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1531
1532 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1533 about overflow in R_OPENRISC_LO_16_IN_INSN and
1534 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1535
1536 2001-04-30 H.J. Lu <hjl@gnu.org>
1537
1538 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1539 only for ELF_LINK_FORCED_LOCAL.
1540 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1541 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1542 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1543
1544 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1545 if the symbol has hidden or internal visibility.
1546
1547 2001-04-30 Alan Modra <amodra@one.net.au>
1548
1549 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1550 calls to undefined weak symbols.
1551
1552 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1553
1554 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1555 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1556
1557 2001-04-27 Andreas Jaeger <aj@suse.de>
1558
1559 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1560 out handled entries.
1561 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1562 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1563 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1564 GOT32.
1565
1566 2001-04-27 Sean McNeil <sean@mcneil.com>
1567
1568 * config.bfd: Add arm-vxworks target.
1569 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1570 addend (fro VXworks targets).
1571
1572 2001-04-26 H.J. Lu <hjl@gnu.org>
1573
1574 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1575 valid.
1576
1577 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1578
1579 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1580 * bfd-in2.h: Regenerated.
1581
1582 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1583
1584 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1585 (struct sec_merge_hash): Remove alignment_power.
1586 (sec_merge_hash_newfunc): Clear alignment.
1587 (sec_merge_hash_lookup): Pass alignment as argument.
1588 Use hashp->root.next, not hashp->next to walk the hash chain.
1589 If a string already in the hashtable does not have required
1590 alignment, create a new hashtable entry.
1591 (sec_merge_init): Remove alignment_power argument.
1592 (sec_merge_add): Add alignment argument.
1593 (sec_merge_emit): Alignment is now a per-entity thing, not per
1594 section.
1595 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1596 for proper alignment.
1597 Pass alignment information to sec_merge_add.
1598
1599 2001-04-24 Christian Groessler <cpg@aladdin.de>
1600
1601 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1602 and R_REL16 reloc types; accept odd values for R_REL16 type
1603
1604 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1605
1606 * cpu-openrisc.c: New file.
1607 * elf32-openrisc.c: Likewise.
1608
1609 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1610 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1611 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1612 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1613 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1614 * Makefile.in: Regenerated.
1615 * config.bfd: (openrisc-*-elf): New target.
1616 * configure.in (bfd_elf32_openrisc_vec): New vector.
1617 * configure: Regenerated.
1618 * libbfd.h: Regenerated.
1619 * bfd-in2.h: Regenerated.
1620 * reloc.c: Add OpenRISC relocations.
1621 * targets.c (bfd_elf32_openrisc_vec): Declare.
1622 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1623 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1624 (bfd_openrisc_arch): Declare.
1625 (bfd_archures_list): Add bfd_openrisc_arch.
1626 * elf.c (prep_headers): Add bfd_arch_openrisc.
1627
1628 2001-04-23 Bo Thorsen <bo@suse.de>
1629
1630 * elf64-x86-64.c: Add c++ vtable hack.
1631 Small whitespace and comment changes.
1632
1633 2001-04-19 Andreas Jaeger <aj@suse.de>
1634
1635 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1636 (elf64_x86_64_plt_entry): Likewise.
1637 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1638 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1639
1640 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1641
1642 * elf32-cris.c: Tweak comments related to dynamic linking.
1643 (cris_elf_relocate_section): When not creating shared object, fill
1644 in the .got table for any symbol not in the dynamic symbol table.
1645 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1646 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1647 table.
1648 (cris_elf_check_relocs): Use variable r_type in all places rather
1649 than the original expression. Add default case in switch for
1650 reloc types.
1651 (elf_cris_size_dynamic_sections): Iterate over
1652 elf_cris_discard_excess_program_dynamics when not creating shared
1653 library.
1654 (elf_cris_discard_excess_dso_dynamics): Renamed from
1655 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1656 (elf_cris_discard_excess_program_dynamics): New.
1657
1658 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1659
1660 * coffcode.h (coff_write_object_contents): Use
1661 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1662
1663 2001-04-14 H.J. Lu <hjl@gnu.org>
1664
1665 * bfd-in2.h: Regenerate.
1666
1667 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1668
1669 * section.c (STD_SECTION): Add entsize.
1670
1671 2001-04-13 H.J. Lu <hjl@gnu.org>
1672
1673 * section.c (SEC_MERGE): Define new flag for merging.
1674 (SEC_STRINGS): Likewise.
1675 (entsize): New field.
1676
1677 2001-04-13 Roger Sayle <roger@metaphorics.com>
1678
1679 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1680 flag on pe-i386 targets.
1681
1682 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1683
1684 * libbfd-in.h (_bfd_merge_section): New.
1685 (_bfd_write_merged_section): New.
1686 (_bfd_merged_section_offset): New.
1687 * libbfd.h: Rebuilt.
1688 * linker.c (_bfd_generic_link_output_symbols): Handle
1689 discard_sec_merge.
1690 * aoutx.h (aout_link_write_symbols): Likewise.
1691 * pdp11.c (aout_link_write_symbols): Likewise.
1692 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1693 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1694 sections.
1695 (elf_link_sec_merge_syms): New.
1696 (elf_link_input_bfd): Call _bfd_merged_section_offset
1697 and _bfd_write_merged_section.
1698 Handle discard_sec_merge.
1699 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1700 field.
1701 (struct bfd_elf_section_data): Likewise.
1702 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1703 SEC_STRINGS section flags and entsize from their ELF counterparts.
1704 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1705 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1706 from their BFD counterparts.
1707 * merge.c: New file.
1708 * Makefile.am: Add strtab.lo.
1709 * Makefile.in: Rebuilt.
1710
1711 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1712
1713 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1714 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1715
1716 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1717
1718 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1719 endian MIPS ELF target.
1720 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1721 MIPS ELF target.
1722
1723 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1724 64bit big endian MIPS ELF target.
1725 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1726 endian MIPS ELF target.
1727 * configure: Regenerated.
1728
1729 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1730 little endian targets.
1731 (mips_elf_sym_is_global): Handle traditional targets.
1732
1733 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1734 64bit big endian MIPS ELF target.
1735 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1736 endian MIPS ELF target.
1737
1738 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1739 and bfd_elf64_tradlittlemips_vec.
1740
1741 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1742
1743 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1744 ordinary "progbits" section.
1745
1746 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1747
1748 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1749 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1750
1751 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1752
1753 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1754
1755 2001-03-30 H.J. Lu <hjl@gnu.org>
1756
1757 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1758 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1759
1760 2001-03-26 H.J. Lu <hjl@gnu.org>
1761
1762 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1763 if there are any relocations for generic ELF.
1764 (bfd_elf32_bfd_link_add_symbols): Defined to
1765 elf32_generic_link_add_symbols.
1766 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1767 if there are any relocations for generic ELF.
1768 (bfd_elf64_bfd_link_add_symbols): Defined to
1769 elf64_generic_link_add_symbols.
1770
1771 2001-03-23 Nick Clifton <nickc@redhat.com>
1772
1773 * Makefile.am (BUILD_CFILES): New variable: List of C source
1774 files created in build directory.
1775 (BUILD_HFILES): New variable: List of header files created in
1776 build directory.
1777 (POTFILES): Delete.
1778 (po/POTFILES.in): Replace rule with empty entry.
1779 (po/SRC-POTFILES.in): New rule: Create a list of source files
1780 in the source directory.
1781 (po/BLD-POTFILES.in): New rule: Create a list of source files
1782 in the build directory.
1783 (MOSTLYCLEAN): Do not delete source files created in build
1784 directory.
1785 * Makefile.in: Regenerate.
1786 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1787 into po/Makefile.
1788 * configure: Regenerate.
1789
1790 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1791 and BLD_POTFILES.
1792 Add .. to the search path when building bfd.pot.
1793 Delete POTFILES when performing distclean.
1794 Add comment describing why distclean is broken in maintainer mode.
1795 * po/POTFILES.in: Delete.
1796 * po/SRC-POTFILES.in: New file.
1797 * po/BLD-POTFILES.in: New file.
1798 * po/bfd.pot: Regenerate.
1799
1800 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1801
1802 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1803 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1804 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1805 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1806 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1807 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1808 functions.
1809 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1810 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1811 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1812 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1813 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1814 New HOWTO members for new relocs.
1815 (cris_reloc_map): Map new relocs.
1816 (ELF_DYNAMIC_INTERPRETER): Define.
1817 (PLT_ENTRY_SIZE): Define.
1818 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1819 elf_cris_pic_plt_entry): New, PLT templates.
1820 (struct elf_cris_pcrel_relocs_copied, struct
1821 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1822 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1823 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1824 positive values. Adjust PCREL relocs to be relative to location
1825 after relocation.
1826 (cris_elf_relocate_section): Handle relocations to dynamic
1827 objects. Handle new relocations. Call error handler when seeing
1828 non-PIC relocation for read-only sections while generating shared
1829 object.
1830 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1831 entries.
1832 (bfd_elf32_bfd_link_hash_table_create,
1833 elf_backend_adjust_dynamic_symbol,
1834 elf_backend_size_dynamic_sections,
1835 elf_backend_finish_dynamic_symbol,
1836 elf_backend_finish_dynamic_sections,
1837 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1838 elf_backend_hide_symbol, elf_backend_want_got_plt,
1839 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1840 elf_backend_got_header_size, elf_backend_plt_header_size):
1841 Define.
1842
1843 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1844 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1845 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1846 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1847 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1848 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1849 * bfd-in2.h, libbfd.h: Regenerate.
1850
1851 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1852
1853 (_bfd_mips_elf_relocate_section): Give a better error message when
1854 a relocation is not recognized.
1855
1856 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1857
1858 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1859 non-NULL before attempting to dereference.
1860
1861 2001-03-20 H.J. Lu <hjl@gnu.org>
1862
1863 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1864 * configure: Rebuild.
1865
1866 2001-03-20 Andreas Schwab <schwab@suse.de>
1867
1868 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1869 relocation value when resolving a reference from a debugging
1870 section.
1871
1872 2001-03-16 Scott Thomason <SThomaso@hii.com>
1873
1874 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1875 (xcoff64_swap_sym_out): Fix syntax errors.
1876
1877 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1878
1879 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1880
1881 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1882
1883 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1884 (hppa_link_hash_newfunc): Init it.
1885 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1886 section appears to be non-PIC.
1887 (final_link_relocate): Likewise.
1888 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1889 possible candidate function, and set pic_call for those that will
1890 only have a .plt entry for the PIC call stub.
1891 (hppa_handle_PIC_calls): Set maybe_pic_call.
1892
1893 2001-03-12 DJ Delorie <dj@redhat.com>
1894
1895 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1896 R_SH_DIR8WP* relocs if they're against external symbols, else
1897 they're just for relaxing. Validate the reloc values.
1898
1899 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1900
1901 * binary.c (bfd_external_binary_architecture): Declare.
1902 (binary_object_p): If bfd_external_binary_architecture is defined,
1903 set the architecture to this string.
1904
1905 2001-03-11 Philip Blundell <philb@gnu.org>
1906
1907 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1908 entries that could serve as a definition for a weak symbol.
1909
1910 2001-03-08 Nick Clifton <nickc@redhat.com>
1911
1912 * Most files: Update copyright notices using Perl script created
1913 by Kevin Buettner <kevinb@redhat.com>.
1914
1915 2001-03-07 Nick Clifton <nickc@redhat.com>
1916
1917 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1918 prior patch on ! defined OLD_ARM_ABI.
1919
1920 2001-03-07 Andreas Jaeger <aj@suse.de>
1921
1922 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1923 some relocation values.
1924
1925 2001-03-06 Nick Clifton <nickc@redhat.com>
1926
1927 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1928 of offset in BLX(1) instruction.
1929 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1930 offset in BLX(1) instruction.
1931 Fix formatting.
1932
1933 2001-03-06 Nick Clifton <nickc@redhat.com>
1934
1935 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1936 BFD_RELOC_THUMB_PCREL_BLX.
1937
1938 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1939
1940 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1941 * bfd-in2.h: Regenerate.
1942 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1943 * ieee.c (ieee_write_processor): Set proper id for
1944 Coldfire CPUs.
1945
1946 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1947
1948 * configure.in: Add s390 target.
1949 * configure: Regenerate.
1950
1951 2001-02-28 Andreas Jaeger <aj@suse.de>
1952
1953 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1954 to addend.
1955
1956 2001-02-28 Philip Blundell <pb@futuretv.com>
1957
1958 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1959 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1960
1961 2001-02-27 H.J. Lu <hjl@gnu.org>
1962
1963 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1964 abfd->tdata.aout_data == NULL.
1965
1966 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1967
1968 * elf32-hppa.c: Correct field selector in stub comments.
1969 (clobber_millicode_symbols): Formatting fix.
1970
1971 * configure.in: Bump version to 2.11.90.
1972 * configure: Regenerate.
1973 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1974 (CFILES): $SOURCE_CFILES + generated C files.
1975 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1976 Run "make dep-am"
1977 * Makefile.in: Regenerate.
1978 * doc/Makefile.in: This too.
1979
1980 2001-02-26 Timothy Wall <twall@cygnus.com>
1981
1982 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1983 comments.
1984
1985 2001-02-26 Nick Clifton <nickc@redhat.com>
1986
1987 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1988 up, replacing multiple if statements with a switch.
1989 (handle_COMDAT): New function.
1990
1991 2001-02-26 H.J. Lu <hjl@gnu.org>
1992
1993 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1994 a warning for section flags we do not handle instead of
1995 aborting.
1996
1997 2001-02-26 Andreas Jaeger <aj@suse.de>
1998
1999 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2000
2001 2001-02-22 Timothy Wall <twall@cygnus.com>
2002
2003 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2004 * configure.in: Add objects for elf64_ia64_aix vectors.
2005 * configure: Regenerated.
2006 * configure.host: Recognize ia64-*-aix*.
2007 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2008 for AIX. AIX5 requires most relocations to be dynamic (*all*
2009 binaries are somewhat similar to shared libraries).
2010 * targets.c: Add elf64_ia64_aix vectors.
2011
2012 2001-02-21 David Mosberger <davidm@hpl.hp.com>
2013
2014 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2015 C8 said "1" instead of "8". Clarify error string for IMM22:
2016 "signed integer" instead of just "integer".
2017
2018 2001-02-20 Andreas Jaeger <aj@suse.de>
2019
2020 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2021 PLT entries that could serve as a definition for a weak symbol.
2022
2023 2001-02-19 Jakub Jelinek <jakub@redhat.com>
2024
2025 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2026 entries that could serve as a definition for a weak symbol.
2027 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2028
2029 2001-02-18 David O'Brien <obrien@FreeBSD>
2030
2031 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2032 FreeBSD/i386-CURRENT differently until I can figure out the needed
2033 corefile changes.
2034 * configure: Regenerate.
2035 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2036 FreeBSD/PowerPC, and FreeBSD/sparc64.
2037
2038 2001-02-18 lars brinkhoff <lars@nocrew.org>
2039
2040 * Makefile.am: Add PDP-11 a.out target.
2041 * config.bfd: Likewise.
2042 * configure.in: Likewise.
2043 * targets.c: Likewise.
2044 * archures.c: Likewise.
2045 * bfd-in2.h: Likewise. Add PDP-11 relocations.
2046 * libbfd.h: Add PDP-11 relocations.
2047 * reloc.c: Likewise.
2048 * cpu-pdp11.c: New file.
2049 * pdp11.c: New file.
2050
2051 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2052 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2053 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2054 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2055 (GET_MAGIC): New macro.
2056 (PUT_MAGIC): Likewise.
2057 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2058
2059 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
2060
2061 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2062 multiarch needs it).
2063
2064 2001-02-18 H.J. Lu <hjl@gnu.org>
2065
2066 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2067 index.
2068
2069 2001-02-18 Kazu Hirata <kazu@hxi.com>
2070
2071 * vms-misc.c: Fix formatting.
2072
2073 2001-02-16 Kazu Hirata <kazu@hxi.com>
2074
2075 * vms.c: Fix formatting.
2076
2077 2001-02-14 H.J. Lu <hjl@gnu.org>
2078
2079 * elf.c (elf_find_function): New function.
2080 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2081 the file name and function name.
2082
2083 2001-02-14 Nick Clifton <nickc@redhat.com>
2084
2085 * ecoff.c (bfd_debug_section): Update to initialise new fields in
2086 asection structure.
2087
2088 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2089 (BFD64_BACKENDS): Add pepigen.c
2090 Add rules to create peigen.c and pepigen.c from peXXigen.c.
2091
2092 * Makefile.in: Regenerate.
2093 * configure: Regenerate.
2094 * po/POTFILES.in: Regenerate.
2095 * po/bfd.pot: Regenerate.
2096
2097 2001-02-14 H.J. Lu <hjl@gnu.org>
2098
2099 * libcoff-in.h (pe_tdata): Add members target_subsystem and
2100 force_minimum_alignment.
2101
2102 2001-02-14 Bo Thorsen <bo@suse.de>
2103
2104 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2105 (elf64_86_64_size_info): Struct added to fix a problem
2106 with the hashtable string entries.
2107 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2108 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2109 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2110 remove the FIXME for this.
2111 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2112 section. Also removed the FIXME for it.
2113 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2114 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2115 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2116
2117 2001-02-13 Richard Henderson <rth@redhat.com>
2118
2119 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2120 and not user provided.
2121
2122 2001-02-13 Kazu Hirata <kazu@hxi.com>
2123
2124 * vms.c (vms_print_symbol): Remove unreachable code.
2125
2126 * rs6000-core.c: Fix formatting.
2127
2128 2001-02-13 David Mosberger <davidm@hpl.hp.com>
2129
2130 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2131 as _bfd_XXi_only_swap_filehdr_out.
2132 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2133 pe->force_minimum_alignment to TRUE.
2134 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2135 PEI_TARGET_SUBSYSTEM.
2136 (pe_print_private_bfd_data): Call
2137 _bfd_XX_print_private_bfd_data_common() instead of
2138 _bfd_pe_print_private_bfd_data_common().
2139 (pe_bfd_copy_private_bfd_data): Call
2140 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2141 _bfd_pe_bfd_copy_private_bfd_data_common().
2142 (coff_bfd_copy_private_section_data): Define as
2143 _bfd_XX_bfd_copy_private_section_data instead of
2144 _bfd_pe_bfd_copy_private_section_data.
2145 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2146 of a _bfd_pe_get_symbol_info.
2147
2148 * peigen.c: Delete.
2149
2150 * peXXigen.c: Renamed from peigen.c.
2151 (COFF_WITH_XX): Define this macro (will get expanded into
2152 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2153 compiled as peigen.c or pepigen.c.
2154 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2155 define the canonical PEP structures and definitions.
2156 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2157 effect, enforce minimum file and section alignments. If
2158 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2159 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2160 so, by default, this is a no-op).
2161
2162 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2163 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2164 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2165 _bfd_pefoo if it's not defined. Use these macros to define
2166 coff swap macros.
2167
2168 * libcoff.h (pe_tdata): Add members target_subsystem and
2169 force_minimum_alignment.
2170
2171 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2172 COFF_WITH_pep.
2173 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2174
2175 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2176 peigen.lo.
2177
2178 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2179 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2180 PEPAOUTHDR.
2181
2182 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2183 (BFD64_BACKENDS_CFILES): Mention pepigen.c
2184 (peigen.c): Add rule to generate from peXXigen.c.
2185 (pepigen.c): Ditto.
2186 (pepigen.lo): List dependencies for pepigen.lo.
2187
2188 2001-02-13 Alan Modra <alan@linuxcare.com.au>
2189
2190 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
2191 $global$ referenced but not defined, set its value here.
2192
2193 2001-02-09 Bo Thorsen <bo@suse.de>
2194
2195 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2196 alignment to 3.
2197 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2198 and relocation.
2199 (elf64_x86_64_relocate_section): Fix formatting.
2200 (elf64_x86_64_relocate_section): Fix addend for relocation of
2201 R_X86_64_(8|16|32|PC8|PC16|PC32).
2202
2203 2001-02-12 Jan Hubicka <jh@suse.cz>
2204
2205 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2206
2207 2001-02-11 H.J. Lu <hjl@gnu.org>
2208
2209 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2210 alignment.
2211
2212 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2213
2214 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2215 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2216 relocations against dynsym symbols.
2217
2218 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2219 the R_MIPS_26 relocation.
2220 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2221 the R_MIPS_26 relocation.
2222 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2223 relocation.
2224 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2225 the R_MIPS_26 relocation.
2226 (mips_elf64_howto_table_rela): Likewise.
2227
2228 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2229 member to mark symbols that have non-CALL relocations against
2230 them.
2231 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2232 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2233 R_MIPS_GOT16.
2234 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2235 non-CALL relocation against it is encountered.
2236 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2237 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2238 no_fn_stub is not set.
2239
2240 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2241 information from the real symbol for indirect ones.
2242 Check no_fn_stub to find out if a symbol has a function stub
2243 indeed.
2244
2245 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2246
2247 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2248 * Makefile.in: Regenerate.
2249
2250 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2251
2252 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2253 true if section name is an unwind table section name.
2254 (elfNN_ia64_additional_program_headers): Count each unwind section
2255 separately.
2256 (elfNN_ia64_modify_segment_map): Install one unwind program header
2257 for each unwind separate section. Note: normally the linker
2258 script merges the unwind sections that go into a single segment,
2259 so this still generates at most one unwind program header per
2260 segment.
2261
2262 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2263 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2264 (elfNN_ia64_fake_sections): Mark sections with names that start
2265 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2266 unwind section.
2267
2268 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2269 Use it to make sh_info in unwind section point to the text section
2270 it applies to.
2271
2272 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2273
2274 * Makefile.am: Add linux target for S/390.
2275 * archures.c: Likewise.
2276 * bfd-in2.h: Likewise.
2277 * config.bfd: Likewise.
2278 * configure.in: Likewise.
2279 * elf.c: Likewise.
2280 * libbfd.h: Likewise.
2281 * targets.c: Likewise.
2282 * cpu-s390.c: New file.
2283 * elf32-s390.c: New file.
2284 * elf64-s390.c: New file.
2285
2286 2001-02-09 Nick Clifton <nickc@redhat.com>
2287
2288 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2289 ImageBase. This has already been done by coff_swap_hdr_in.
2290
2291 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2292
2293 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2294
2295 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2296
2297 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2298 (sparc64_elf_relocate_section): Likewise.
2299
2300 2001-02-09 Mark Kettenis <kettenis@gnu.org>
2301
2302 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2303 similar to R_SPARC_32.
2304 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2305
2306 2001-02-08 H.J. Lu <hjl@gnu.org>
2307
2308 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2309 relocation entries for weak definitions when building DSO with
2310 -Bsymbolic.
2311
2312 2001-02-08 Richard Henderson <rth@redhat.com>
2313
2314 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2315 before visibility. Locally defined protected symbols are not
2316 dynamic.
2317
2318 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2319
2320 * config.bfd: Enable coff64 for rs6000-*. Patch from
2321 <hzoli@austin.ibm.com>.
2322
2323 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2324
2325 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2326 found, do not attempt to find dwarf2 info before returning.
2327
2328 2001-02-07 Jakub Jelinek <jakub@redhat.com>
2329
2330 * elflink.h (is_global_symbol_definition): Rename to
2331 is_global_data_symbol_definition and have it reject function
2332 symbols.
2333 (elf_link_is_defined_archive_symbol): Use renamed function.
2334
2335 2001-02-07 Todd Vierling <tv@wasabisystems.com>
2336
2337 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2338 * libbfd.h (bfd_target_vector): Likewise.
2339 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2340 make static; create pointer reference named bfd_target_vector.
2341 (_bfd_target_vector_entries): Calculate this based on the array
2342 typed _bfd_target_vector.
2343
2344 2001-02-06 H.J. Lu <hjl@gnu.org>
2345
2346 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2347 internal symbols are not dynamic.
2348 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2349
2350 2001-02-06 Nick Clifton <nickc@redhat.com>
2351
2352 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2353 that it will not be pulled into the list of files that make up
2354 po/POTFILES.in.
2355 * Makefile.in: Regenerate.
2356 * po/bfd.pot: Regenerate.
2357
2358 2001-02-06 H.J. Lu <hjl@gnu.org>
2359
2360 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2361 checking.
2362 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2363 external_PEI_IMAGE_hdr.
2364
2365 2001-02-06 Kazu Hirata <kazu@hxi.com>
2366
2367 * elf-m10200.c: Fix formatting.
2368
2369 2001-02-04 Nick Clifton <nickc@redhat.com>
2370
2371 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2372 rel, it will be handled later on.
2373
2374 2001-02-02 Fred Fish <fnf@ninemoons.com>
2375
2376 * Makefile.in: Fix typo.
2377
2378 2001-02-01 Kazu Hirata <kazu@hxi.com>
2379
2380 * elf-m10300.c: Fix formatting.
2381
2382 2001-01-30 Alan Modra <alan@linuxcare.com.au>
2383
2384 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2385 (elf_backend_get_symbol_type): Define.
2386 (elf64_hppa_object_p): Set architecture and machine from elf
2387 header flags.
2388
2389 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2390
2391 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2392 before mdebug.
2393
2394 2001-01-26 Richard Henderson <rth@redhat.com>
2395
2396 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2397 for non-default visibility.
2398 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2399 delete ugly macro and replace with pretty function.
2400
2401 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2402
2403 * coff-go32.c: Update copyright.
2404 * coff-stgo32.c: Likewise.
2405 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2406 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2407 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2408 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2409
2410 2001-01-25 Kazu Hirata <kazu@hxi.com>
2411
2412 * bfd-in2.h: Rebuild.
2413 * libbfd.h: Likewise.
2414
2415 2001-01-23 H.J. Lu <hjl@gnu.org>
2416
2417 * bfd-in2.h: Rebuild.
2418
2419 2001-01-23 H.J. Lu <hjl@gnu.org>
2420
2421 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2422 is NULL or PRIV(vms_rec) is outside of the buffer.
2423
2424 2001-01-23 Kazu Hirata <kazu@hxi.com>
2425
2426 * coff64-rs6000.c: Fix formatting.
2427 * coff-arm.c: Likewise.
2428 * coffgen.c: Likewise.
2429 * cofflink.c: Likewise.
2430 * coff-mcore.c: Likewise.
2431 * coff-mips.c: Likewise.
2432 * coff-pmac.c: Likewise.
2433 * coff-ppc.c: Likewise.
2434 * coff-rs6000.c: Likewise.
2435 * elf32.c: Likewise.
2436 * elf32-fr30.c: Likewise.
2437 * elf32-i370.c: Likewise.
2438 * elf32-i860.c: Likewise.
2439 * elf32-m32r.c: Likewise.
2440 * elf32-m68k.c: Likewise.
2441 * elf32-mcore.c: Likewise.
2442 * elf32-ppc.c: Likewise.
2443 * elf32-sh.c: Likewise.
2444 * elf32-v850.c: Likewise.
2445 * elf64-alpha.c: Likewise.
2446 * elf64-sparc.c: Likewise.
2447 * elflink.c: Likewise.
2448 * elflink.h: Likewise.
2449 * elf-m10200.c: Likewise.
2450 * elf-m10300.c: Likewise.
2451 * elfxx-ia64.c: Likewise.
2452
2453 * aoutx.h: Fix formatting.
2454 * bfd.c: Likewise.
2455 * bfd-in2.h: Likewise.
2456 * bfd-in.h: Likewise.
2457 * cpu-i386.c: Likewise.
2458 * cpu-m68hc11.c: Likewise.
2459 * dwarf2.c: Likewise.
2460 * elf64-x86-64.c: Likewise.
2461 * format.c: Likewise.
2462 * freebsd.h: Likewise.
2463 * hash.c: Likewise.
2464 * hp300hpux.c: Likewise.
2465 * hppabsd-core.c: Likewise.
2466 * hpux-core.c: Likewise.
2467
2468 2001-01-22 Bo Thorsen <bo@suse.de>
2469
2470 * elf64-x86-64.c: Added PIC support for X86-64.
2471 (elf64_x86_64_link_hash_newfunc): Function added.
2472 (elf64_x86_64_link_hash_table_create): Likewise.
2473 (elf64_x86_64_check_relocs): Likewise.
2474 (elf64_x86_64_gc_mark_hook): Likewise.
2475 (elf64_x86_64_gc_sweep_hook): Likewise.
2476 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2477 (elf64_x86_64_size_dynamic_sections): Likewise.
2478 (elf64_x86_64_discard_copies): Likewise.
2479 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2480 (elf64_x86_64_finish_dynamic_sections): Likewise.
2481 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2482
2483 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2484
2485 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2486 * Makefile.in: Regenerate.
2487
2488 2001-01-21 Kazu Hirata <kazu@hxi.com>
2489
2490 * coff-a29k.c: Fix formatting.
2491
2492 2001-01-19 H.J. Lu <hjl@gnu.org>
2493
2494 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2495 relocation section names.
2496 (elf_i386_relocate_section): Report files with bad relocation
2497 section names and return false.
2498
2499 2001-01-17 Bo Thorsen <bo@suse.de>
2500
2501 * targets.c: Alphabetize list of xvecs.
2502
2503 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2504
2505 * config.bfd: Add linux target variant for elfxx-hppa.
2506 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2507 bfd_elf64_hppa_linux_vec.
2508 * configure: Regenerate.
2509 * elf64-hppa.c: Include elf64-target.h again to support linux
2510 target variant.
2511 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2512 * elf32-hppa.c: Include elf32-target.h again to support linux
2513 target variant.
2514 (elf32_hppa_post_process_headers): New function.
2515 (elf_backend_post_process_headers): Define.
2516 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2517 bfd_elf32_hppa_linux_vec.
2518
2519 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2520 and data_segment_base fields.
2521 (elf32_hppa_link_hash_table_create ): Init them.
2522 (elf32_hppa_check_relocs): Update comments.
2523 (hppa_record_segment_addr): New function.
2524 (elf32_hppa_relocate_section): Call it.
2525 (final_link_relocate): Handle R_PARISC_SEGREL32.
2526 (elf32_hppa_final_link): New function.
2527 (bfd_elf32_bfd_final_link): Define to call it.
2528 (hppa_unwind_entry_compare): New function.
2529 * cache.c (bfd_open_file): Create files in write+read mode.
2530
2531 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2532 SEGREL32 and numerous other relocs. Change duplicate
2533 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2534
2535 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2536 O_ACCMODE.
2537
2538 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2539 .plt entries for DT_INIT and DT_FINI.
2540 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2541 DT_INIT and DT_FINI.
2542
2543 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2544 offsets for stub .plt access if wide mode. Check offset in range.
2545
2546 2001-01-13 Nick Clifton <nickc@redhat.com>
2547
2548 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2549 line.
2550
2551 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2552 line.
2553
2554 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2555
2556 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2557 * configure: Regenerate.
2558
2559 2001-01-11 Peter Targett <peter.targett@arccores.com>
2560
2561 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2562 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2563 * cpu-arc.c (arch_info_struct): Add entries for variants.
2564 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2565 (arc_get_mach) Don't assume machine names prefixed arc- before
2566 testing.
2567 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2568 selections.
2569 (arc_elf_final_write_processing) Likewise.
2570 (ELF_MACHINE_CODE) Use EM_ARC.
2571
2572 2001-01-10 Nick Clifton <nickc@redhat.com>
2573
2574 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2575
2576 2001-01-07 Philip Blundell <philb@gnu.org>
2577
2578 * README: Replace `bug-gnu-utils@gnu.org' with
2579 `bug-binutils@gnu.org'.
2580
2581 2001-01-04 Kazu Hirata <kazu@hxi.com>
2582
2583 * som.c: Fix formatting.
2584
2585 2001-01-03 Kazu Hirata <kazu@hxi.com>
2586
2587 * ecoffswap.h: Fix formatting.
2588 * elf-bfd.h: Likewise.
2589 * elfarm-nabi.c: Likewise.
2590 * elfarm-oabi.c: Likewise.
2591 * elfcode.h: Likewise.
2592 * elfcore.h: Likewise.
2593 * elflink.c: Likewise.
2594 * elflink.h: Likewise.
2595 * elfxx-ia64.c: Likewise.
2596 * elfxx-target.h: Likewise.
2597 * libbfd.c: Likewise
2598 * linker.c: Likewise.
2599 * lynx-core.c: Likewise.
2600
2601 2001-01-02 Kazu Hirata <kazu@hxi.com>
2602
2603 * pc532-mach.c: Fix formatting.
2604 * pe-arm.c: Likewise.
2605 * pe-i386.c: Likewise.
2606 * pe-mips.c: Likewise.
2607 * pe-ppc.c: Likewise.
2608 * pe-sh.c: Likewise.
2609 * pei-mips.c: Likewise.
2610 * pei-sh.c: Likewise.
2611 * peicode.h: Likewise.
2612 * ppcboot.c: Likewise.
2613 * ptrace-core.c: Likewise.
2614
2615 2001-01-01 Kazu Hirata <kazu@hxi.com>
2616
2617 * reloc.c: Fix formatting.
2618 * riscix.c: Likewise.
2619 * rs6000-core.c: Likewise.
2620 * xcoff-target.h: Likewise.
2621
2622 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2623
2624 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2625 error, by calling bfd_default_set_arch_mach with incoming
2626 values.
2627
2628 2000-12-26 Kazu Hirata <kazu@hxi.com>
2629
2630 * vaxnetbsd.c: Fix formatting.
2631 * versados.c: Likewise.
2632 * vms-gsd.c: Likewise.
2633 * vms-hdr.c: Likewise.
2634 * vms-misc.c: Likewise.
2635
2636 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2637
2638 * archive.c (coff_write_armap): Don't write more than symbol_count
2639 `archive_member_file_ptr's.
2640
2641 2000-12-25 Kazu Hirata <kazu@hxi.com>
2642
2643 * vms-tir.c: Fix formatting.
2644
2645 2000-12-23 Kazu Hirata <kazu@hxi.com>
2646
2647 * vms.c: Fix formatting.
2648 * vms.h: Likewise.
2649
2650 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2651
2652 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2653
2654 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2655
2656 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2657 arithmetic.
2658
2659 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2660
2661 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2662
2663 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2664
2665 * libbfd.c (bfd_get_bits): Added
2666 (bfd_put_bits): Likewise
2667 * bfd-in.h: Declared the above.
2668 * bfd-in2.h: Regenerated.
2669
2670 2000-12-20 Kazu Hirata <kazu@hxi.com>
2671
2672 * targets.c: Fix formatting.
2673 * tekhex.c: Likewise.
2674 * trad-core.c: Likewise.
2675
2676 2000-12-19 Kazu Hirata <kazu@hxi.com>
2677
2678 * sco5-core.c: Fix formatting.
2679 * section.c: Likewise.
2680 * sparclinux.c: Likewise.
2681 * sparclynx.c: Likewise.
2682 * sparcnetbsd.c: Likewise.
2683 * srec.c: Likewise.
2684 * stabs.c: Likewise.
2685 * stab-syms.c: Likewise.
2686 * sunos.c: Likewise.
2687 * syms.c: Likewise.
2688 * sysdep.h: Likewise.
2689
2690 2000-12-18 Nick Clifton <nickc@redhat.com>
2691
2692 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2693 defined.
2694 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2695 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2696
2697 2000-12-18 Nick Clifton <nickc@redhat.com>
2698
2699 * vms-misc.c (_bfd_vms_get_record): Add default case to
2700 file_format switch.
2701
2702 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2703
2704 * elfcore.h (elf_core_file_p): Move to the start of the program
2705 headers before attempting to read them.
2706
2707 2000-12-14 Kazu Hirata <kazu@hxi.com>
2708
2709 * peigen.c: Fix formatting.
2710 * som.c: Likewise.
2711 * som.h: Likewise.
2712
2713 2000-12-13 Kazu Hirata <kazu@hxi.com>
2714
2715 * peigen.c: Fix formatting.
2716
2717 2000-12-12 Jim Wilson <wilson@redhat.com>
2718
2719 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2720
2721 2000-12-08 Mark Salter <msalter@redhat.com>
2722
2723 * binary.c (binary_set_section_contents): Ignore sections
2724 with zero size.
2725
2726 2000-12-12 Kazu Hirata <kazu@hxi.com>
2727
2728 * m68klinux.c: Fix formatting.
2729 * m68knetbsd.c: Likewise.
2730 * mipsbsd.c: Likewise.
2731 * netbsd-core.c: Likewise.
2732 * netbsd.h: Likewise.
2733 * newsos3.c: Likewise.
2734 * nlm32-alpha.c: Likewise.
2735 * nlm32-i386.c: Likewise.
2736 * nlm32-ppc.c: Likewise.
2737 * nlm32-sparc.c: Likewise.
2738 * nlmcode.h: Likewise.
2739 * nlmswap.h: Likewise.
2740 * nlm-target.h: Likewise.
2741 * ns32knetbsd.c: Likewise.
2742
2743 2000-12-10 Fred Fish <fnf@be.com>
2744
2745 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2746 symbols in shared objects if allow_shlib_undefined is true.
2747
2748 2000-12-12 Nick Clifton <nickc@redhat.com>
2749
2750 * cpu-sh.c: Fix formattng.
2751 * elf.c: Fix formattng.
2752 * elf32-mips.c: Fix formattng.
2753 * elf32-sh.c: Fix formattng.
2754 * elf64-alpha.c: Fix formattng.
2755
2756 2000-12-09 Nick Clifton <nickc@redhat.com>
2757
2758 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2759 dwarf2_find_line_info as last parameter to invocation of
2760 _bfd_dwarf2_find_nearest_line.
2761 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2762 dwarf2_find_line_info as last parameter to invocation of
2763 _bfd_dwarf2_find_nearest_line.
2764
2765 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2766
2767 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2768 (BFD_LIBS): ...to here.
2769 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2770 (BFD_LIBS_CFILES): ...to here.
2771 * Makefile.in: Regenerate.
2772 * configure.in: Remove dwarf.lo from the elf shell variable.
2773 * configure: Regenerate.
2774 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2775 * libcoff.h: Regenerate.
2776 * coffgen.c (coff_find_nearest_line): Call
2777 _bfd_dwarf2_find_nearest_line.
2778 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2779 accordingly.
2780 (read_abbrevs): Likewise
2781 (decode_line_info): Likewise.
2782 (parse_comp_unit): Likewise.
2783 (comp_unit_find_nearest_line): Likewise.
2784 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2785 * libbfd.h: Regenerate.
2786 * elf.c (_bfd_elf_find_nearest_line): Update call.
2787 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2788 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2789 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2790 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2791 (styp_to_sec_flags): Handle DWARF2 sections.
2792 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2793 to _bfd_find_nearest_line.
2794 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2795 call to _bfd_find_nearest_line.
2796
2797 2000-12-08 Kazu Hirata <kazu@hxi.com>
2798
2799 * coffgen.c: Fix formatting.
2800 * elf-m10300.c: Likewise.
2801 * elf32-i386.c: Likewise.
2802 * elf32-i960.c: Likewise.
2803 * elf32-m68k.c: Likewise.
2804 * elf32-mcore.c: Likewise.
2805 * elf32-ppc.c: Likewise.
2806 * elf32-sh.c: Likewise.
2807 * elf32-sparc.c: Likewise.
2808 * elf32-v850.c: Likewise.
2809 * elf64-alpha.c: Likewise.
2810 * elf64-hppa.c: Likewise.
2811 * elf64-mips.c: Likewise.
2812 * elf64-sparc.c: Likewise.
2813
2814 2000-12-07 Kazu Hirata <kazu@hxi.com>
2815
2816 * elf32-ppc.c: Fix formatting.
2817 * elf64-x86-64.c: Likewise.
2818
2819 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2820
2821 From Ralf Baechle <ralf@gnu.org>
2822
2823 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2824 BFDs containing no sections or empty .text, .data or .bss sections
2825 to be merged, regardless of their flags.
2826
2827 2000-12-06 Kazu Hirata <kazu@hxi.com>
2828
2829 * elf32-m32r.c: Fix formatting.
2830 * elf32-m68hc11.c: Likewise.
2831 * elf32-m68hc12.c: Likewise.
2832 * elf32-m68k.c: Likewise.
2833 * elf32-mcore.c: Likewise.
2834 * elf32-pj.c: Likewise.
2835 * elf32-ppc.c: Likewise.
2836
2837 2000-12-05 Kazu Hirata <kazu@hxi.com>
2838
2839 * elf32-fr30.c: Fix formatting.
2840 * elf32-hppa.c: Likewise.
2841 * elf32-i370.c: Likewise.
2842 * elf32-i386.c: Likewise.
2843 * elf32-i860.c: Likewise.
2844 * elf32-i960.c: Likewise.
2845
2846 2000-12-03 Kazu Hirata <kazu@hxi.com>
2847
2848 * elf32-arm.h: Fix formatting.
2849 * elf32-avr.c: Likewise.
2850 * elf32-cris.c: Likewise.
2851 * elf32-d10v.c: Likewise.
2852 * elf32-d30v.c: Likewise.
2853 * elf-hppa.h: Likewise.
2854 * elf-m10200.c: Likewise.
2855 * elf-m10300.c: Likewise.
2856
2857 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2858
2859 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2860 bfd_mach_mips32_4k. Update FIXME comment.
2861 * archures.c (bfd_mach_mips32): New constant.
2862 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2863 the latter, renumber it.
2864 * bfd-in2.h (bfd_mach_mips32): New constant.
2865 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2866 the latter, renumber it.
2867 * cpu-mips.c (I_mips32): New constant.
2868 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2869 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2870 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2871 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2872 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2873 with E_MIPS_MACH_MIPS32_4K.
2874 (_bfd_mips_elf_final_write_processing): Replace
2875 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2876 bfd_mach_mips32 case.
2877 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2878 comparison with support for MIPS32.
2879 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2880 MIPS32.
2881
2882 * aoutx.h (NAME(aout,machine_type)): Add cases for
2883 bfd_mach_mips5 and bfd_mach_mips64.
2884 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2885 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2886 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2887 (arch_info_struct): Add entries for bfd_mach_mips5 and
2888 bfd_mach_mips64.
2889 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2890 _bfd_mips_elf_print_private_bfd_data): Add cases for
2891 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2892 (_bfd_mips_elf_final_write_processing): Add cases for
2893 bfd_mach_mips5 and bfd_mach_mips64.
2894
2895 * aoutx.h (NAME(aout,machine_type)): Add a
2896 bfd_mach_mips_sb1 case.
2897 * archures.c (bfd_mach_mips_sb1): New constant.
2898 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2899 * cpu-mips.c (I_sb1): New constant.
2900 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2901 * elf32-mips.c (elf_mips_mach): Add case for
2902 E_MIPS_MACH_SB1.
2903 (_bfd_mips_elf_final_write_processing): Add case for
2904 bfd_mach_mips_sb1.
2905
2906 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2907
2908 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2909 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2910 (sparc*-*-rtems*): Switched from a.out to ELF.
2911
2912 2000-11-30 Jan Hubicka <jh@suse.cz>
2913
2914 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2915 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2916 (elf64-x86-64.lo): Add dependencies.
2917 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2918 bfd_mach_x86_64_intel_syntax.
2919 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2920 * config.bfd (x86_64): Add.
2921 * configure.in: Add support for bfd_elf64_x86_64_vec.
2922 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2923 (bfd_i386_arch, i8086_ar): Link in.
2924 * elf64-x86-64.c: New file.
2925 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2926 * targets.c (bfd_elf64_x86_64_vec): Add.
2927 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2928
2929 2000-11-30 Kazu Hirata <kazu@hxi.com>
2930
2931 * xcofflink.c: Fix formatting.
2932
2933 2000-11-28 Kazu Hirata <kazu@hxi.com>
2934
2935 * aoutx.h: Fix formatting.
2936 * bfd-in.h: Likewise.
2937 * bfd-in2.h: Likewise.
2938 * cache.c: Likewise.
2939 * cisco-core.c: Likewise.
2940 * coff64-rs6000.c: Likewise.
2941 * coffcode.h: Likewise.
2942 * coffswap.h: Likewise.
2943 * corefile.c: Likewise.
2944 * elf32-mips.c: Likewise.
2945
2946 2000-11-27 Kazu Hirata <kazu@hxi.com>
2947
2948 * aout-adobe.c: Fix formatting.
2949 * coff64-rs6000.c: Likewise.
2950 * coffgen.c: Likewise.
2951 * cofflink.c: Likewise.
2952
2953 2000-11-27 Philip Blundell <pb@futuretv.com>
2954
2955 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2956 (obj_coff_strings_written): New accessor macro for above.
2957 * libcoff.h: Regenerate.
2958 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2959 strings.
2960 * coffcode.h (coff_write_object_contents): No need to write out
2961 the string table if it's already been done.
2962
2963 2000-11-22 Philip Blundell <pb@futuretv.com>
2964
2965 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2966 weak undefined symbols.
2967
2968 2000-11-24 Nick Clifton <nickc@redhat.com>
2969
2970 * archures.c (bfd_mach_arm_5TE): Define.
2971 (bfd_mach_arm+XScale): Define.
2972 * bfd-in2.h: Regenerate.
2973
2974 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2975 BFD_RELOC_ARM_PCREL_BLX.
2976
2977 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2978 XScale machine numbers.
2979
2980 * config.bfd (xscale-elf): Add target.
2981 (xscale-coff): Add target.
2982
2983 * cpu-arm.c: Add xscale machine name.
2984 Add v5t, v5te and XScale machine numbers.
2985
2986 2000-11-23 Kazu Hirata <kazu@hxi.com>
2987
2988 * aix386-core.c: Fix formatting.
2989
2990 2000-11-22 Jim Wilson <wilson@redhat.com>
2991
2992 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2993 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2994 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2995 (ins_imms_scaled): Initialize sign_bit at function entry.
2996 (elf64_ia64_operands): Add missing initializers.
2997 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2998 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2999 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3000 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3001 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3002 parameters.
3003 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3004 and free_extsyms at function entry.
3005 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3006 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3007 (get_got): Delete unused local srel.
3008 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3009 (elfNN_ia64_relocate_section): Delete unused local dynindx.
3010
3011 2000-11-21 Kazu Hirata <kazu@hxi.com>
3012
3013 * coff-a29k.c: Fix formatting.
3014 * coff-h8500.c: Likewise.
3015 * coff-i960.c: Likewise.
3016 * coff-ppc.c: Likewise.
3017 * coff-rs6000.c: Likewise.
3018 * coff-stgo32.c: Likewise.
3019 * coff-tic54x.c: Likewise.
3020 * coff-w65.c: Likewise.
3021 * cpu-h8500.c: Likewise.
3022 * cpu-hppa.c: Likewise.
3023 * cpu-ns32k.c: Likewise.
3024 * ecoff.c: Likewise.
3025 * ecofflink.c: Likewise.
3026
3027 2000-11-21 Nick Clifton <nickc@redhat.com>
3028
3029 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3030 remove possibility of infinite loop.
3031
3032 2000-11-20 Kazu Hirata <kazu@hxi.com>
3033
3034 * aix386-core.c: Fix formatting.
3035 * aout-adobe.c: Likewise.
3036 * aout-arm.c: Likewise.
3037 * aout-encap.c: Likewise.
3038 * aout-ns32k.c: Likewise.
3039 * aout-target.h: Likewise.
3040 * aout-tic30.c: Likewise.
3041 * aoutf1.h: Likewise.
3042 * aoutx.h: Likewise.
3043 * archive.c: Likewise.
3044 * bfd-in.h: Likewise.
3045 * bfd-in2.h: Likewise.
3046 * bfd.c: Likewise.
3047 * bout.c: Likewise.
3048
3049 2000-11-17 H.J. Lu <hjl@gnu.org>
3050
3051 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3052 pltoff entries for DT_INIT and DT_FINI.
3053 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3054 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3055 entries.
3056
3057 2000-11-16 Richard Henderson <rth@redhat.com>
3058
3059 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3060 (allocate_dynrel_entries): Likewise.
3061 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
3062 (set_pltoff_entry): Likewise.
3063 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3064 (elfNN_ia64_reloc_type_lookup): Likewise.
3065 (elfNN_ia64_install_value): Likewise.
3066 (elfNN_ia64_relocate_section): Likewise.
3067 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3068 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3069
3070 2000-11-16 Kazu Hirata <kazu@hxi.com>
3071
3072 * cpu-a29k.c: Fix formatting.
3073 * cpu-alpha.c: Likewise.
3074 * cpu-arm.c: Likewise.
3075 * cpu-avr.c: Likewise.
3076 * cpu-d10v.c: Likewise.
3077 * cpu-h8500.c: Likewise.
3078 * cpu-hppa.c: Likewise.
3079 * cpu-i370.c: Likewise.
3080 * cpu-i386.c: Likewise.
3081 * cpu-i960.c: Likewise.
3082 * cpu-ia64-opc.c: Likewise.
3083 * cpu-ia64.c: Likewise.
3084 * cpu-m32r.c: Likewise.
3085 * cpu-m68hc11.c: Likewise.
3086 * cpu-m68hc12.c: Likewise.
3087 * cpu-m68k.c: Likewise.
3088 * cpu-m88k.c: Likewise.
3089 * cpu-mips.c: Likewise.
3090 * cpu-ns32k.c: Likewise.
3091 * cpu-pj.c: Likewise.
3092 * cpu-powerpc.c: Likewise.
3093 * cpu-sh.c: Likewise.
3094 * cpu-sparc.c: Likewise.
3095 * cpu-tic54x.c: Likewise.
3096 * cpu-v850.c: Likewise.
3097 * cpu-vax.c: Likewise.
3098 * cpu-w65.c: Likewise.
3099 * cpu-we32k.c: Likewise.
3100 * cpu-z8k.c: Likewise.
3101 * dwarf1.c: Likewise.
3102 * dwarf2.c: Likewise.
3103
3104 2000-11-15 Kazu Hirata <kazu@hxi.com>
3105
3106 * coff-arm.c: Fix formatting.
3107 * coff-ppc.c: Likewise.
3108 * coff-rs6000.c: Likewise.
3109 * coff-sh.c: Likewise.
3110 * coff-sparc.c: Likewise.
3111 * coff-tic30.c: Likewise.
3112 * coff-tic54x.c: Likewise.
3113 * coff-tic80.c: Likewise.
3114 * coff-w65.c: Likewise.
3115 * coff-we32k.c: Likewise.
3116 * coff-z8k.c: Likewise.
3117
3118 2000-11-15 Richard Henderson <rth@redhat.com>
3119
3120 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3121 section with the same ALLOC|LOAD flags as the source section.
3122
3123 2000-11-14 Jakub Jelinek <jakub@redhat.com>
3124
3125 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3126 by STO_ALPHA constants.
3127
3128 2000-11-14 Kazu Hirata <kazu@hxi.com>
3129
3130 * coff-pmac.c: Fix formatting.
3131 * coff-ppc.c: Likewise.
3132
3133 2000-11-13 H.J. Lu <hjl@gnu.org>
3134
3135 * elflink.h (elf_link_add_object_symbols): Also add indirect
3136 symbols for common symbols with the default version.
3137
3138 2000-11-09 Philip Blundell <pb@futuretv.com>
3139
3140 * section.c (STD_SECTION): Set gc_mark flag.
3141
3142 2000-11-11 Kazu Hirata <kazu@hxi.com>
3143
3144 * coff-i960.c: Likewise.
3145 * coff-m68k.c: Likewise.
3146 * coff-m88k.c: Likewise.
3147 * coff-mcore.c: Likewise.
3148 * coff-mips.c: Likewise.
3149
3150 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3151
3152 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3153
3154 2000-11-10 Kazu Hirata <kazu@hxi.com>
3155
3156 * coff-h8300.c: Fix formatting.
3157 * coff-h8500.c: Likewise.
3158 * coff-i386.c: Likewise.
3159 * coff-i860.c: Likewise.
3160 * coff-i960.c: Likewise.
3161 * coff-ia64.c: Likewise.
3162
3163 2000-11-09 Kazu Hirata <kazu@hxi.com>
3164
3165 * archive.c: Fix formatting.
3166 * archures.c: Likewise.
3167
3168 2000-11-07 Richard Henderson <rth@redhat.com>
3169
3170 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3171 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
3172 * section.c (bfd_set_section_contents): Call memcpy if
3173 section->contents set and location not equal to contents plus offset.
3174
3175 2000-11-08 Kazu Hirata <kazu@hxi.com>
3176
3177 * bfd-in.h: Fix formatting.
3178 * bfd-in2.h: Likewise.
3179 * bfd.c: Likewise.
3180 * binary.c: Likewise.
3181 * bout.c: Likewise.
3182 * coff-a29k.c: Likewise.
3183 * coff-alpha.c: Likewise.
3184 * coff-apollo.c: Likewise.
3185 * coff-aux.c: Likewise.
3186
3187 2000-11-07 Kazu Hirata <kazu@hxi.com>
3188
3189 * aix386-core.c: Fix formatting.
3190 * aoutf1.h: Likewise.
3191 * aoutx.h: Likewise.
3192 * archures.c: Likewise.
3193 * armnetbsd.c: Likewise.
3194
3195 2000-11-07 Alan Modra <alan@linuxcare.com.au>
3196
3197 * coff-h8300.c (special): Adjust reloc address.
3198
3199 2000-11-06 Steve Ellcey <sje@cup.hp.com>
3200
3201 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
3202 to differentiate elf32 and elf64 on ia64.
3203 * bfd-in2.h: Regenerate.
3204 * config.bfd: Add target for "ia64*-*-hpux*".
3205 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3206 * configure: Regenerate.
3207 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
3208 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3209
3210 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3211 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
3212 * Makefile.in: Regnerate.
3213 * elf64-ia64.c: Deleted.
3214 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3215
3216 2000-11-06 Kazu Hirata <kazu@hxi.com>
3217
3218 * aout-adobe.c: Fix formatting.
3219 * aout-arm.c: Likewise.
3220 * aout-cris.c: Likewise.
3221 * aout-encap.c: Likewise.
3222 * aout-ns32k.c: Likewise.
3223 * aout-target.h: Likewise.
3224 * aout-tic30.c: Likewise.
3225
3226 2000-11-05 Philip Blundell <philb@gnu.org>
3227
3228 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3229 BFDs containing no sections to be merged, regardless of their flags.
3230
3231 2000-11-04 Philip Blundell <philb@gnu.org>
3232
3233 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3234 if a relocation for an undefined symbol also results in an
3235 overflow.
3236
3237 2000-11-06 Christopher Faylor <cgf@cygnus.com>
3238
3239 * config.bfd: Add support for Sun Chorus.
3240
3241 2000-11-05 David O'Brien <obrien@FreeBSD.org>
3242
3243 * configure.in: Recognize alpha-*-freebsd*.
3244 * configure: Regenerate.
3245
3246 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
3247
3248 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3249 (Chunk): New global variable set by a parameter in objcopy.c.
3250 (S3Forced): New global variable set by a parameter in
3251 objcopy.c.
3252 (srec_set_section_contents): If S3Forced is true, always generate
3253 S3 records.
3254 (srec_write_section): Use 'Chunk' to limit maximum length of S
3255 records.
3256
3257 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3258
3259 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3260 * Makefile.in: Regenerate.
3261 * bfd-in2.h: Regenerate.
3262 * po/bfd.pot: Regenerate.
3263
3264 2000-10-31 Philip Blundell <philb@gnu.org>
3265
3266 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3267 EF_SOFT_FLOAT if it is defined.
3268
3269 2000-10-27 Philip Blundell <philb@gnu.org>
3270
3271 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3272 attempts to mix PIC code with non-PIC, just mark the output as
3273 being position dependent.
3274 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3275 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
3276 all mismatches, not just the first one.
3277
3278 2000-10-25 Chris Demetriou <cgd@sibyte.com>
3279
3280 * ieee.c (ieee_archive_p): Plug one of many possible
3281 memory leaks in error handling.
3282
3283 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3284
3285 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3286 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3287 Support v8plusb.
3288 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3289 sparc64_elf_object_p): Support v9b.
3290 * archures.c: Declare v8plusb and v9b machines.
3291 * bfd-in2.h: Ditto.
3292 * cpu-sparc.c: Ditto.
3293
3294 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3295
3296 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3297 of a GOT reloc.
3298
3299 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3300 (SYMBOL_CALLS_LOCAL): New macro.
3301 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3302 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3303 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3304 (ppc_elf_relocate_section): Use flag variable to determine
3305 whether the relocation refers to a local symbol.
3306 Test whether a PLTREL24 reloc will produce a reloc by looking
3307 to see whether a PLT entry was made.
3308
3309 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3310
3311 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3312 entries that could serve as a definition for a weak symbol.
3313
3314 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3315
3316 From Ralf Baechle <ralf@gnu.org>
3317
3318 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3319 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3320 against local symbols.
3321 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3322
3323 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3324
3325 * section.c (struct sec): Add kept_section.
3326 (struct bfd_comdat_info): Remove sec, we can use above.
3327 (STD_SECTION): Add initializer.
3328 (bfd_make_section_anyway): Init here too.
3329
3330 * bfd-in2.h: Regenerate.
3331
3332 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3333 zeroing of `flags'.
3334 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3335 fudge values for discarded link-once section symbols.
3336
3337 * elf64-hppa.c: Include alloca-conf.h
3338
3339 2000-10-11 Alan Modra <alan@linuxcare.com.au>
3340
3341 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3342
3343 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3344
3345 2000-10-10 Alan Modra <alan@linuxcare.com.au>
3346
3347 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3348
3349 2000-10-10 Tom Rix <trix@redhat.com>
3350
3351 * section.c (bfd_make_section_anyway): Release newsect ptr when
3352 newsect->symbol fails to alloc. Use bfd_release instead of free.
3353
3354 2000-10-09 Richard Henderson <rth@cygnus.com
3355
3356 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3357 (elf64_ia64_unwind_entry_compare): New.
3358 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3359
3360 2000-10-07 Alan Modra <alan@linuxcare.com.au>
3361
3362 * elflink.h (size_dynamic_sections): Don't create various tags if
3363 .dynstr is excluded from the link. Don't set first dynsym entry
3364 if dynsymcount is zero.
3365 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3366 .dynsym excluded from the link. Don't try to write any dynamic
3367 sections excluded from the link.
3368
3369 * elf.c (swap_out_syms): Handle global section symbols.
3370
3371 2000-10-05 DJ Delorie <dj@redhat.com>
3372
3373 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3374 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3375 (coff_write_relocs): write extended reloc count
3376 (coff_write_object_contents): account for extended relocs
3377
3378 2000-10-05 Jim Wilson <wilson@cygnus.com>
3379
3380 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3381 field.
3382 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3383 elf_backend_section_flags function.
3384 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3385 code.
3386 (elf64_ia64_section_flags): New function containing flag conversion
3387 code.
3388 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3389 * elfxx-target.h (elf_backend_section_flags): Define.
3390 (elfNN_bed): Initialize elf_backend_section_flags field.
3391
3392 2000-10-02 Alan Modra <alan@linuxcare.com.au>
3393
3394 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3395 _bfd_elf32_gc_record_vtable. Correct a comment.
3396
3397 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3398
3399 From Ralf Baechle <ralf@gnu.org>
3400
3401 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3402 produces binaries with got[1] = 0x80000001 to differenciate them
3403 for the dynamic linker from the broken binaries produced by old
3404 versions.
3405
3406 2000-09-30 Petr Sorfa <petrs@sco.com>
3407
3408 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3409 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3410 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3411 * configure: Regenerate.
3412
3413 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
3414
3415 Define two bfd_targets for absence and presence of leading
3416 underscore on symbols. Make sure to only link same kind.
3417 * elf32-cris.c (cris_elf_object_p,
3418 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3419 cris_elf_merge_private_bfd_data): New.
3420 (elf_backend_object_p, elf_backend_final_write_processing,
3421 bfd_elf32_bfd_print_private_bfd_data,
3422 bfd_elf32_bfd_merge_private_bfd_data): Define.
3423 <Target vector definition>: Include elf32-target.h twice with
3424 different macro settings:
3425 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3426 bfd_elf32_us_cris_vec.
3427 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3428 (elf_symbol_leading_char): First as 0, then '_'.
3429 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3430 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3431 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3432 * configure: Regenerate.
3433 * targets.c: Declare bfd_elf32_us_cris_vec.
3434 * po/bfd.pot: Regenerate.
3435
3436 2000-09-29 Momchil Velikov <velco@fadata.bg>
3437
3438 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3439 R_ARM_THM_PC22 relocations.
3440
3441 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3442
3443 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3444
3445 2000-09-29 Momchil Velikov <velco@fadata.bg>
3446
3447 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3448 is has the SEC_HAS_CONTENTS flag set.
3449
3450 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
3451 Hans-Peter Nilsson <hp@axis.com>
3452
3453 * aout-cris.c (N_TXTADDR): Define.
3454
3455 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3456
3457 * som.c: Include alloca-conf.h.
3458 * Makefile.am: "make dep-am"
3459 * Makefile.in: Regenerate.
3460
3461 2000-09-27 Alan Modra <alan@linuxcare.com.au>
3462
3463 * elf32-hppa.c (plt_stub): New.
3464 (PLT_STUB_ENTRY): Define.
3465 (elf32_hppa_link_hash_table): Change multi_subspace to packed
3466 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3467 (elf32_hppa_link_hash_table_create): Init to suit.
3468 (elf32_hppa_check_relocs): Set has_12bit_branch and
3469 has_17bit_branch as appropriate.
3470 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3471 non-local functions.
3472 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3473 Add space for plt_stub as needed.
3474 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3475 functions at plt_stub.
3476 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3477 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3478
3479 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3480 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
3481 of fixed size, and if negative, disable handling of input sections
3482 before stub section. Set up default stub group size depending
3483 on detected branch relocs.
3484 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3485 ensure different offsets from sym_value aren't rounded to
3486 different 2k blocks. Use lrsel and rrsel for other stubs too for
3487 consistency rather than necessity.
3488 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3489 (final_link_relocate): Likewise.
3490 (elf32_hppa_relocate_section): Likewise.
3491
3492 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3493 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3494 (elf_hppa_final_link_relocate): Handle them.
3495 (elf_hppa_relocate_insn): Likewise.
3496 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3497
3498 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3499
3500 * elfcode.h (elf_object_p): Preserve and clear abfd section
3501 information. Restore at error.
3502
3503 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3504
3505 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3506 is empty, make sure that its rva also 0. NT loader dislikes
3507 having otherwise.
3508
3509 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3510
3511 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3512 global by default.
3513
3514 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3515
3516 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3517 currently unused RELATIVE_DYNAMIC_RELOCS code.
3518 (hppa_discard_copies): Likewise.
3519 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3520 comments. Don't check non-code output sections for stub grouping.
3521
3522 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3523
3524 * section.c (bfd_get_unique_section_name): Return NULL if
3525 bfd_malloc fails.
3526
3527 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3528
3529 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3530 instruction sequence to actually work.
3531 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3532 accordingly.
3533
3534 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3535
3536 * elf32-sh.c (sh_elf_relocate_section): Use
3537 _bfd_final_link_relocate to apply the relocation against a section
3538 symbol, when doing relocatable links.
3539
3540 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3541
3542 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3543 to id_sec.
3544 (stub_hash_newfunc): Here too.
3545 (hppa_add_stub): And here.
3546 (elf32_hppa_link_hash_table): Remove stub_section_created,
3547 reloc_section_created, first_init_sec and first_fini_sec. Add
3548 stub_group.
3549 (elf32_hppa_link_hash_table_create): Init to suit.
3550 (hppa_get_stub_entry): Add support for grouping stub sections.
3551 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3552 section code. Index stub vars by section->id.
3553 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3554 exit paths. Zap allocation of above removed vars. Refine
3555 link-once test.
3556
3557 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3558 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3559 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3560 rather than pointer to bfd_link_info.
3561 (hppa_add_stub): Likewise.
3562 (final_link_relocate): Likewise.
3563
3564 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3565
3566 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3567 link-once sections.
3568
3569 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3570
3571 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3572 ld/emulparams/shelf.sh.
3573
3574 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3575
3576 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3577 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3578 * bfd-in2.h: Regenerate.
3579
3580 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3581
3582 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3583 LITUSE relocations incorrectly if -relax is specified on the ld
3584 command line and the displacement field of the load or store
3585 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3586
3587 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3588
3589 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3590 first_fini_sec here.
3591 (elf32_hppa_size_stubs): Instead correctly find the first .init
3592 and .fini section here.
3593
3594 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3595
3596 * elf32-hppa.c (clobber_millicode_symbols): New function.
3597 (elf32_hppa_size_dynamic_sections): Call it.
3598
3599 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3600
3601 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3602 packed. Add plabel, plt_abs packed booleans.
3603 (hppa_link_hash_newfunc): Init new fields.
3604 (PLABEL_PLT_ENTRY_SIZE): Define.
3605 (hppa_stub_name): Use size_t len vars.
3606 (hppa_add_stub): Likewise.
3607 (elf32_hppa_build_stubs): Likewise.
3608 (hppa_build_one_stub): Kill some compiler warnings.
3609 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3610 if dynamic linking. Munge the local plt offsets into
3611 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3612 size_t len vars. Add assert for plabel addend.
3613 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3614 (elf32_hppa_hide_symbol): New function.
3615 (elf_backend_hide_symbol): Define.
3616 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3617 with h->plabel set. Don't make plt entries to have dynamic syms
3618 when they have been forced local. If plt entry is used by a
3619 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3620 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3621 Set up .plt offsets for local syms.
3622 (elf32_hppa_relocate_section): Initialise plt entries for local
3623 syms. Leave weak undefined plabels zero. Make global plabel
3624 relocs against function symbol, and leave the addend zero.
3625 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3626 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3627 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3628 relocs instead of SEGREL32 for dynamic got relocs.
3629 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3630 (elf_backend_got_header_size): Adjust.
3631 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3632
3633 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3634 (hppa_type_of_stub): Use it instead of #if 0
3635 (hppa_discard_copies): Use it here too.
3636 (elf32_hppa_size_dynamic_sections): And here.
3637
3638 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3639 (elf32_hppa_link_hash_table_create): And here.
3640 (hppa_build_one_stub): And here. Instead keep track of stub
3641 offset using _raw_size.
3642 (elf32_hppa_size_stubs): Likewise.
3643 (elf32_hppa_build_stubs): Likewise.
3644 (hppa_size_one_stub): Likewise. Resize reloc section too.
3645
3646 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3647 first_fini_sec handling. Don't search for reloc section or set
3648 hplink->reloc_section_created here.
3649 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3650 set reloc_section_created here.
3651 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3652 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3653 and DT_FINI.
3654 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3655
3656 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3657 with `hplink->root.'.
3658 (elf32_hppa_check_relocs): Likewise.
3659 (elf32_hppa_gc_sweep_hook): Likewise.
3660 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3661 (hppa_handle_PIC_calls): Likewise.
3662 (elf32_hppa_size_dynamic_sections): Likewise.
3663 (elf32_hppa_set_gp): Likewise.
3664 (elf32_hppa_relocate_section): Likewise.
3665 (elf32_hppa_finish_dynamic_symbol): Likewise.
3666 (elf32_hppa_finish_dynamic_sections): Likewise.
3667
3668 From David Huggins-Daines <dhd@linuxcare.com>
3669 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3670 defined weak symbols in shared links.
3671 (final_link_relocate): Calls to defined weak symbols in shared
3672 objects must go via import stubs, as the target might not be known
3673 at link time.
3674
3675 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3676
3677 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3678 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3679 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3680 the original entries with EMPTY_HOWTOs, and added new ones to fill
3681 in the gap.
3682 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3683 (sh_elf_relocate_section): Likewise.
3684
3685 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3686
3687 * cpu-mips.c (arch_info_struct): Add mips:4K
3688 * bfd-in2.h (bfd_mach_mips4K): New define.
3689 * archures.c: Add bfd_mach_mips4K to comment.
3690 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3691 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3692
3693 2000-09-13 Marco Franzen <marcof@thyron.com>
3694
3695 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3696 use size_t as a counter.
3697 (som_write_space_strings): Similarly.
3698
3699 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3700
3701 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3702 and prototype.
3703 (elf32_i860_relocate_section): Invoke new function from here.
3704
3705 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3706
3707 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3708 static.
3709
3710 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3711
3712 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3713 target section name instead of dumping core when the target symbol is
3714 undefined.
3715
3716 2000-09-09 Kazu Hirata <kazu@hxi.com>
3717
3718 * riscix.c: Remove DEFUN.
3719
3720 2000-09-08 Nick Clifton <nickc@redhat.com>
3721
3722 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3723 initialise flags in output bfd if the input bfd is the default
3724 architecture with the default flags.
3725
3726 2000-09-08 Kazu Hirata <kazu@hxi.com>
3727
3728 * archive.c: Fix formatting.
3729 * coff-arm.c: Likewise.
3730 * doc/chew.c: Likewise.
3731
3732 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3733
3734 * section.c (bfd_get_unique_section_name): Put a dot before the
3735 numeric suffix.
3736
3737 2000-09-07 Kazu Hirata <kazu@hxi.com>
3738
3739 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3740 * elf.c: Fix formatting.
3741
3742 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3743
3744 * config.bfd (sh-*-linux*): Added.
3745 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3746 * targets.c: Declare them.
3747 * elf32-sh-lin.c: New file.
3748 * Makefile.am: Compile it.
3749 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3750 * configure, Makefile.in: Rebuilt.
3751
3752 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3753
3754 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3755 pseduo-section when determining where the TOC ends.
3756
3757 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3758 output x_tvndx as it is only two bytes wide.
3759
3760 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3761 reloc is 26 or 32 bits wide.
3762
3763 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3764 for relocs that don't change anything. Also look at the full
3765 6 bits of bitsize.
3766
3767 2000-09-06 Philip Blundell <philb@gnu.org>
3768
3769 * config.bfd (arm*-*-uclinux*): New target.
3770
3771 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3772
3773 * configure: Rebuilt with new libtool.m4.
3774
3775 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3776
3777 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3778 word for variable name.
3779 * bfd-in2.h: Regenerate.
3780
3781 2000-09-05 Nick Clifton <nickc@redhat.com>
3782
3783 * config.in: Regenerate.
3784 * libbfd.h: Regenerate.
3785 * po/bfd.pot: Regenerate.
3786 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3787 local versions.
3788
3789 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3790
3791 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3792
3793 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3794
3795 Shared library and PIC support.
3796 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3797 (GOT_ENTRY_SIZE): New.
3798 (ELF_DYNAMIC_INTERPRETER): New.
3799 (STUB_SUFFIX): Define.
3800 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3801 (RELATIVE_DYNAMIC_RELOCS): Define.
3802 (enum elf32_hppa_stub_type): New.
3803 (struct elf32_hppa_stub_hash_entry): Rename offset to
3804 stub_offset. Add a number of new fields.
3805 (struct elf32_hppa_link_hash_entry): New.
3806 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3807 global_value.
3808 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3809 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3810 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3811 new fields.
3812 (hppa_link_hash_newfunc): New function.
3813 (elf32_hppa_link_hash_table_create): Use above function. Init new
3814 fields.
3815 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3816 instead of addend, and remove sym_name from args. Don't use
3817 symbol name for local syms, instead use sym index.
3818 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3819 stub type rather than size. Pass in hash and handle import stub
3820 case. Also pass in reloc instead of offset so we can calculate
3821 PCREL22F and PCREL12F branches properly.
3822 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3823 import and export stubs too.
3824 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3825 import and export stub sizing.
3826 (elf32_hppa_check_relocs): New function.
3827 (elf32_hppa_adjust_dynamic_symbol): New function.
3828 (hppa_discard_copies): New function.
3829 (elf32_hppa_size_dynamic_sections): New function.
3830 (elf_backend_size_dynamic_sections): Define.
3831 (elf32_hppa_finish_dynamic_symbol): New function.
3832 (elf_backend_finish_dynamic_symbol): Define.
3833 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3834 some local vars into the link hash table too. For shared links,
3835 trundle over function syms, generating export stubs. Handle
3836 PCREL22F branches. Break out stub creation code from here..
3837 (hppa_add_stub): .. to here. New function.
3838 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3839 call the bfd linker. Use elf_gp to record global pointer.
3840 Calculate a value from sections if $global$ is missing.
3841 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3842 (elf32_hppa_gc_mark_hook): New function.
3843 (elf_backend_gc_mark_hook): Define.
3844 (elf32_hppa_gc_sweep_hook): New function.
3845 (elf_backend_gc_sweep_hook): Define.
3846 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3847 Add rel to args, and remove howto, input_bfd, offset, addend,
3848 sym_name as we can recalculate these locally. Handle calls to
3849 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3850 handling of undefined weak syms. Check that stubs are in range.
3851 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3852 message on hitting a DPREL21L reloc that needs fixing. Subtract
3853 off PC for PCREL14F. Break out code that does a stub lookup from
3854 here..
3855 (hppa_get_stub_entry): ..to here. New function.
3856 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3857 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3858 relocs, etc. etc.
3859 (elf32_hppa_finish_dynamic_sections): New function.
3860 (elf_backend_finish_dynamic_sections): Define.
3861 (elf_backend_final_write_processing) Define.
3862 (hppa_handle_PIC_calls): New function.
3863 (elf32_hppa_build_stubs): Call it. Pass link_info to
3864 hppa_build_one_stub.
3865 (elf32_hppa_create_dynamic_sections): New function
3866 to create .plt and .got then set .plt flags correctly.
3867 (elf_backend_create_dynamic_sections): Define.
3868 (elf32_hppa_object_p): New function.
3869 (elf_backend_object_p): Define.
3870 (elf32_hppa_elf_get_symbol_type): New function.
3871 (elf_backend_get_symbol_type): Define.
3872 (elf_backend_can_gc_sections): Define.
3873 (elf_backend_want_got_plt): Define.
3874 (elf_backend_plt_alignment): Set to 2.
3875 (elf_backend_plt_readonly): Define.
3876 (elf_backend_want_plt_sym): Define.
3877 (elf_backend_got_header_size): Reserve one entry.
3878
3879 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3880 (elf32_hppa_size_stubs): Pass in multi_subspace.
3881 (elf32_hppa_set_gp): Declare.
3882
3883 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3884 (bfd_get_unique_section_name): New function.
3885 * bfd-in2.h: Regenerate.
3886
3887 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3888 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3889 comment.
3890
3891 From David Huggins-Daines <dhd@linuxcare.com>
3892 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3893 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3894 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3895 been updated in finish_dynamic_symbol before modifying function
3896 symbol.
3897
3898 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3899 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3900 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3901 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3902 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3903 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3904 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3905 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3906
3907 From David Huggins-Daines <dhd@linuxcare.com>
3908 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3909 style of local labels as well.
3910
3911 2000-09-03 Philip Blundell <philb@gnu.org>
3912
3913 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3914 references to undefined symbols in debugging sections.
3915
3916 2000-09-02 H.J. Lu <hjl@gnu.org>
3917
3918 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3919 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3920 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3921 section.
3922
3923 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3924
3925 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3926 (elf32_i860_is_local_label_name): New function and prototype.
3927
3928 2000-09-02 Nick Clifton <nickc@redhat.com>
3929
3930 * configure.in: Increase version number to 2.10.91.
3931 * configure: Regenerate.
3932 * aclocal.m4: Regenerate.
3933 * config.in: Regenerate.
3934 * po/bfd.pot: Regenerate.
3935
3936 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3937
3938 * elf.c (_bfd_elf_make_section_from_shdr): Add
3939 .gnu.linkobce.wi. to the list of debug section names.
3940
3941 2000-09-02 Nick Clifton <nickc@redhat.com>
3942
3943 * dwarf2.c (find_debug_info): New function: Locate a section
3944 containing dwarf2 debug information.
3945 (bfd_dwarf2_find_nearest_line): Find all sections containing
3946 debug information and include them in the stash.
3947
3948 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3949
3950 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3951 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3952 (sh_reloc_map): Add new relocs.
3953 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3954 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3955 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3956 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3957 functions.
3958 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3959 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3960 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3961 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3962 New array constants.
3963 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3964 New variables.
3965 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3966 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3967 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3968 elf_sh_plt_reloc_offset): Define.
3969 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3970 elf_sh_link_hash_table): New structs.
3971 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3972 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3973 relocation types.
3974 (elf_backend_create_dynamic_sections,
3975 bfd_elf32_bfd_link_hash_table_create,
3976 elf_backend_adjust_dynamic_symbol,
3977 elf_backend_size_dynamic_sections,
3978 elf_backend_finish_dynamic_symbol,
3979 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3980 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3981 elf_backend_got_header_size, elf_backend_plt_header_size):
3982 Define.
3983 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3984 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3985 New relocs.
3986 * bfd-in2.h, libbfd.h: Rebuilt.
3987
3988 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3989
3990 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3991 change.
3992
3993 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3994
3995 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3996 not initialized, set them to indicate the SH1 instruction set.
3997
3998 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3999
4000 * acinclude.m4: Include libtool and gettext macros from the
4001 top level.
4002 * aclocal.m4, configure: Rebuilt.
4003
4004 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
4005
4006 * elf.c: Eliminate references to __sparcv9 macro; replace with
4007 autoconf variables HAVE_PSINFO32_T etc.
4008 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
4009 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
4010 * config.in: Ditto.
4011 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
4012 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
4013 * aclocal.m4: Ditto.
4014 * configure: Regenerate.
4015
4016 2000-08-27 Alan Modra <alan@linuxcare.com.au>
4017
4018 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
4019 for any shared link, not just shared -Bsymbolic.
4020 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
4021 any shared link, and pass link info to it.
4022 (elf_i386_size_dynamic_sections): Update comment.
4023 (elf_i386_discard_copies): Modify to discard relocs for symbols
4024 that have been forced local.
4025 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
4026 that have been forced local.
4027
4028 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
4029
4030 * elflink.h (elf_link_add_object_symbols): Allow common
4031 symbols to have an alignment of 1 if explicitly requested, and
4032 not overridden by other definitions.
4033
4034 2000-08-22 Doug Kwan <dkwan@transmeta.com>
4035
4036 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
4037 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
4038
4039 2000-08-22 H.J. Lu <hjl@gnu.org>
4040
4041 * elf-bfd.h (elf_link_hash_table): Add runpath.
4042
4043 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
4044 * bfd-in2.h: Rebuilt.
4045
4046 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
4047 "runpath" field to NULL.
4048 (bfd_elf_get_runpath_list): New function.
4049
4050 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
4051 DT_RUNPATH entries.
4052
4053 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
4054
4055 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
4056 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
4057 explicitly. Improve validation of r_type.
4058
4059 2000-08-21 H.J. Lu <hjl@gnu.org>
4060
4061 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
4062 dynamic allocated content space. Add a comment to remind us that
4063 one day this ought to be fixed.
4064 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4065 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4066 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4067
4068 2000-08-21 Jason Eckhardt <jle@cygnus.com>
4069
4070 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
4071 field with the newly relocated value instead of adding it to the
4072 existing immediate field.
4073 (elf32_i860_relocate_splitn): Likewise.
4074 (elf32_i860_relocate_highadj): Likewise.
4075
4076 2000-08-16 Jason Eckhardt <jle@cygnus.com>
4077
4078 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
4079 was previously just a stub).
4080
4081 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
4082
4083 * elflink.c (_bfd_elf_create_got_section): Don't abort().
4084 Formatting fixes.
4085 (_bfd_elf_create_dynamic_sections): Likewise.
4086
4087 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
4088
4089 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
4090 for undefined symbols to be the beginning of the section.
4091
4092 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
4093 four extra entries at the beginning of the .rela.plt section.
4094 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
4095 section to account for the four reserved entries in the .plt section.
4096
4097 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
4098
4099 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
4100 to the list of NOPs we recognize after a branch-and-link.
4101 Use the ori NOP when one is needed.
4102
4103 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
4104 for large archives.
4105
4106 2000-08-14 Jim Wilson <wilson@cygnus.com>
4107
4108 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
4109 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
4110 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
4111 EF_IA_64_ABSOLUTE.
4112
4113 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
4114
4115 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
4116
4117 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4118
4119 * elf32-i860.c (elf32_i860_relocate_section): New function.
4120 (i860_final_link_relocate): New function.
4121 (elf32_i860_relocate_splitn): New function.
4122 (elf32_i860_relocate_pc16): New function.
4123 (elf32_i860_relocate_highadj): New function.
4124 (elf32_i860_howto): Minor adjustments to some relocations.
4125 (elf_info_to_howto_rel): Define.
4126 (elf_backend_relocate_section): Define.
4127
4128 2000-08-10 Nick Clifton <nickc@cygnus.com>
4129
4130 * elf32-arm.h: Fix formatting.
4131
4132 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
4133
4134 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
4135
4136 2000-08-08 Jason Eckhardt <jle@cygnus.com>
4137
4138 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
4139
4140 2000-08-07 Kazu Hirata <kazu@hxi.com>
4141
4142 * ieee.c (ieee_write_debug_part): Rewrite a comment.
4143 * elf64-ia64.c: Fix a typo.
4144
4145 2000-08-05 Jason Eckhardt <jle@cygnus.com>
4146
4147 * elf32-i860.c (elf32_i860_howto_table): New structure.
4148 (lookup_howto): New function.
4149 (elf32_i860_reloc_type_lookup): New function.
4150 (elf32_i860_info_to_howto_rela): New function.
4151 (elf_code_to_howto_index): New structure.
4152 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
4153 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
4154 elf32_i860_reloc_type_lookup.
4155
4156 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
4157
4158 * som.c (struct fixup_format): Constify `format'.
4159 (som_hppa_howto_table): Use SOM_HOWTO macro.
4160 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
4161 (som_bfd_reloc_type_lookup): Likewise.
4162 (compare_subspaces): Remove unused `count1', `count2'.
4163 (som_begin_writing): Remove unused `total_reloc_size'.
4164 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
4165 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
4166 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
4167 (som_find_nearest_line): Decorate unused parameter(s).
4168 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
4169 (som_bfd_link_split_section): Likewise.
4170
4171 2000-08-03 Nick Clifton <nickc@cygnus.com>
4172
4173 * section.c: Restore backed out code.
4174 * elf.c: Restore backed out code.
4175 (copy_private_bfd_data): Fix bug preventing stipped dynamic
4176 binaries from working.
4177 * bfd-in2.h: Regenerate.
4178
4179 2000-08-03 H.J. Lu <hjl@gnu.org>
4180
4181 * section.c: Back out the change made by Nick Clifton
4182 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
4183 binaries.
4184 * bfd-in2.h: Likewise.
4185 * elf.c: Likewise.
4186
4187 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
4188
4189 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
4190
4191 2000-07-31 Jason Eckhardt <jle@cygnus.com>
4192
4193 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
4194 * bfd-in2.h, libbfd.h: Regenerate.
4195
4196 2000-07-31 Nick Clifton <nickc@cygnus.com>
4197
4198 * section.c (struct sec): Add new boolean field 'segment_mark'.
4199 (STD_SECTION): Initialise new field to zero.
4200
4201 * bfd-in2.h: Regenerate.
4202
4203 * elf.c (copy_private_bfd_data): Reorganise section to segment
4204 mapping to cope with moved sections requiring new segments,
4205 and overlapping segments.
4206 (SEGMENT_END): New macro: Return the end address of a segment.
4207 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
4208 contains a section by comparing their VMA addresses.
4209 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
4210 contains a section by comparing their LMA addresses.
4211 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
4212 section should be included in a segment.
4213 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
4214 follows another in memory.
4215 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
4216 segments overlap.
4217
4218 2000-07-22 Jason Eckhardt <jle@cygnus.com>
4219
4220 * cpu-i860.c: Added comments.
4221
4222 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
4223 bfd_elf32_i860_little_vec.
4224 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
4225 (ELF_MAXPAGESIZE): Changed to 4096.
4226
4227 * targets.c (bfd_elf32_i860_little_vec): Declaration of
4228 new target.
4229 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
4230
4231 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
4232 config for little endian elf32 i860.
4233 (targ_defvec): Define for the new config above
4234 as "bfd_elf32_i860_little_vec".
4235 (targ_selvecs): Define for the new config above
4236 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
4237
4238 * configure.in (bfd_elf32_i860_little_vec): Added recognition
4239 of new target vec.
4240
4241 * configure: Regenerated.
4242
4243 2000-07-27 H.J. Lu <hjl@gnu.org>
4244
4245 * elflink.h (elf_merge_symbol): Take one more argument,
4246 dt_needed, to indicate if the symbol comes from a DT_NEEDED
4247 entry. Don't overide the existing weak definition if dt_needed
4248 is true.
4249 (elf_link_add_object_symbols): Pass dt_needed to
4250 elf_merge_symbol ().
4251
4252 2000-07-27 Nick Clifton <nickc@cygnus.com>
4253
4254 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4255 allocated contents.
4256
4257 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
4258
4259 * configure.host (*-*-aix*): AIX has 'long long' always.
4260
4261 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4262 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4263 (xcoff_write_archive_contents_big): Don't update the offset
4264 of the symbol table, xcoff_write_armap will do it.
4265
4266 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
4267
4268 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4269 of dynobj for SGI_COMPAT checks.
4270
4271 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4272
4273 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4274 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4275 * bfd-in2.h: Regenerate.
4276
4277 2000-07-21 Nick Clifton <nickc@cygnus.com>
4278
4279 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4280 range symbol indices in relocs and issue an error message.
4281
4282 2000-07-20 H.J. Lu <hjl@gnu.org>
4283
4284 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4285 info->new_dtags when setting DT_FLAGS_1. It will only be set
4286 by the new linker options. It shouldn't break anything.
4287
4288 2000-07-20 H.J. Lu <hjl@gnu.org>
4289
4290 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4291 only if info->new_dtags is true.
4292
4293 2000-07-20 H.J. Lu <hjl@gnu.org>
4294
4295 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4296 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4297
4298 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4299
4300 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4301 (ALL_MACHINES_CFILES): Add cpu-cris.c.
4302 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4303 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4304 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4305 * Makefile.in: Rebuild.
4306 * aclocal.m4: Rebuild.
4307 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4308 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4309 (bfd_cris_arch): Declare.
4310 (bfd_archures_list): Add bfd_cris_arch.
4311 * bfd-in2.h: Rebuild.
4312 * config.bfd: (cris-*-*): New target.
4313 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4314 * configure: Rebuild.
4315 * elf.c (prep_headers): Add bfd_arch_cris.
4316 * libbfd.h: Rebuild.
4317 * libaout.h (enum machine_type): Add M_CRIS.
4318 * reloc.c: Add CRIS relocations.
4319 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4320 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4321 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4322 * po/POTFILES.in, po/bfd.pot: Regenerate.
4323
4324 2000-07-19 H.J. Lu <hjl@gnu.org>
4325
4326 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4327 DF_TEXTREL if DT_TEXTREL is set.
4328 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4329 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4330 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4331 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4332 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4333 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4334 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4335 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4336 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4337 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4338
4339 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4340 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4341 DT_RPATH is set.
4342 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4343
4344 2000-07-19 H.J. Lu <hjl@gnu.org>
4345
4346 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4347 * bfd-in2.h: Rebuild.
4348
4349 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4350 (elf_dt_soname): New.
4351
4352 * elf.c (bfd_elf_set_dt_needed_soname): New.
4353
4354 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4355 entry if the shared object loaded by DT_NEEDED is used to
4356 resolve the reference in a regular object.
4357
4358 2000-07-19 H.J. Lu <hjl@gnu.org>
4359
4360 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4361 DT_DEPAUDIT and DT_AUDIT as strings.
4362
4363 2000-07-19 Nick Clifton <nickc@cygnus.com>
4364
4365 * format.c: Fix formatting.
4366
4367 2000-07-19 H.J. Lu <hjl@gnu.org>
4368
4369 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4370
4371 2000-07-19 H.J. Lu <hjl@gnu.org>
4372
4373 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4374 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4375 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4376 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4377 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4378 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4379 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4380
4381 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
4382
4383 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4384 renamed functions from here...
4385 (assign_section_numbers): Use renamed functions.
4386 (prep_headers): Use renamed functions.
4387
4388 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4389 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4390 * bfd-in2.h: Regenerate.
4391
4392 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
4393
4394 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4395 parenthesis in if statement.
4396
4397 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
4398
4399 Enable the support for Traditional MIPS.
4400 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4401 return ict_none appropriately for traditional mips targets.
4402 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4403 (STUB_MOVE): Conditionalize for traditonal mips.
4404 (STUB_LI16): Likewise.
4405 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4406 room for RTPROC header.
4407 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4408 the permission for the PT_DYNAMIC as read, write and execute.
4409 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4410 for traditonal mips.
4411 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4412 _DYNAMIC_LINKING for traditonal mips.
4413 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4414 in case of traditonal mips.
4415 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4416 entry is required. For a function if PLT is not required then set the
4417 corresponding hash table entry to 0.
4418 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4419 traditonal mips.
4420 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4421 shared object set the value to 0.
4422 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4423 _DYNAMIC_LINKING for traditonal mips.
4424 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4425 for traditonal mips.
4426
4427 2000-07-15 H.J. Lu <hjl@gnu.org>
4428
4429 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4430
4431 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4432
4433 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4434 out a structure that is BFD_IN_MEMORY.
4435
4436 2000-07-11 Alan Modra <alan@linuxcare.com.au>
4437
4438 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4439 bfd pointer. Print section id instead of bfd pointer for local
4440 syms. Prefix addend with `+' for global syms as well as local.
4441 Correct calculation of name component lengths.
4442 (elf64_hppa_check_relocs): Update call to get_dyn_name.
4443
4444 From David Huggins-Daines <dhd@linuxcare.com>
4445 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4446 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4447 (elf64_hppa_modify_segment_map): Likewise.
4448
4449 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4450
4451 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4452 addresses to be "naturally" sign extended. Return -1 if unknown.
4453 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4454 * bfd-in2.h: Regenerate.
4455
4456 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4457
4458 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4459 and ECOF_SIGNED_64 to list ways to extract an offset.
4460 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4461 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4462 Update.
4463 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4464 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4465
4466 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4467
4468 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4469 bfd_get_start_address.
4470 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4471 (elf_swap_ehdr_out): Ditto.
4472
4473 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
4474
4475 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4476 compatibility with older binutils.
4477
4478 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4479
4480 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4481 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4482
4483 From Ryan Bradetich <rbradetich@uswest.net>
4484 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4485 (parse_line_table): Ditto.
4486 (_bfd_dwarf1_find_nearest_line): Ditto.
4487 * syms.c (cmpindexentry): Remove extra `*' from params.
4488
4489 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
4490
4491 * elf32-mips.c (sort_dynamic_relocs): New Function.
4492 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4493 via qsort to sort the dynamic relocations in increasing r_symndx
4494 value.
4495
4496 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4497
4498 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4499 ATTRIBUTE_UNUSED to unused args.
4500 (get_opd): Likewise.
4501 (get_plt): Likewise.
4502 (get_dlt): Likewise.
4503 (get_stub): Likewise.
4504 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4505 (elf64_hppa_link_output_symbol_hook): Likewise.
4506 (elf64_hppa_check_relocs): Delete unused var.
4507 (elf64_hppa_size_dynamic_sections): Likewise.
4508 (elf64_hppa_finalize_opd): Likewise.
4509 (elf64_hppa_finalize_dynreloc): Likewise.
4510 (elf64_hppa_modify_segment_map): Likewise.
4511 (elf64_hppa_finish_dynamic_sections): Likewise.
4512
4513 * elf-hppa.h (elf_hppa_final_write_processing): Add
4514 ATTRIBUTE_UNUSED to unused args.
4515 (elf_hppa_final_link_relocate): Likewise.
4516 (elf_hppa_record_segment_addrs): Add paretheses.
4517 (elf_hppa_relocate_section): Constify dyn_name.
4518
4519 From David Huggins-Daines <dhd@linuxcare.com>
4520 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4521 rearrange case statement so that it gets preferred to 32-bit ones.
4522
4523 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4524 asection->id instead of address of asection structure.
4525 (elf32_hppa_size_stubs): Likewise.
4526
4527 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4528 for .init* and .fini*.
4529
4530 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4531 and addends used in stub names to 32 bits.
4532 (elf32_hppa_size_stubs): Likewise.
4533
4534 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4535 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4536 not bfd_put_64. Fix minor comment typo and formatting.
4537
4538 Changes to create multiple linker stubs, positioned immediately
4539 before the section where they are required.
4540 * elf32-hppa.c: Don't include hppa_stubs.h.
4541 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4542 (elf32_hppa_stub_hash_table): Delete.
4543 (elf32_hppa_link_hash_entry): Delete.
4544 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4545 stub_hash_table, and store the struct here rather than a pointer.
4546 Delete output_symbol_count. Add offset array. Change
4547 global_value to a bfd_vma.
4548 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4549 (elf32_hppa_stub_hash_traverse): Delete.
4550 (elf32_hppa_name_of_stub): Delete.
4551 (elf32_hppa_link_hash_lookup): Delete.
4552 (elf32_hppa_link_hash_traverse): Delete.
4553 (elf32_hppa_stub_hash_table_init): Delete.
4554 (elf32_hppa_size_of_stub): Pass input section and offset rather
4555 than location and calculate location here. Don't pass name as all
4556 stubs are now the same size.
4557 (elf32_hppa_stub_hash_newfunc): Init new fields.
4558 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4559 too.
4560 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4561 comparing against ints. Rewrite stub handling code.
4562 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4563 Case enums to int before comparing against ints. Remove
4564 bfd_reloc_dangerous case.
4565 (elf32_hppa_build_one_stub): Rewrite.
4566 (elf32_hppa_size_one_stub): New function.
4567 (elf32_hppa_build_stubs): Rewrite.
4568 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4569 Rewrite stub-handling specific code.
4570
4571 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4572
4573 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4574
4575 * hppa_stubs.h: Delete.
4576 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4577 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4578 * Makefile.in: Regenerate.
4579
4580 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4581 e_nlrsel.
4582
4583 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4584
4585 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4586 and section name for bfd_reloc_notsupported error message.
4587 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4588 bfd_reloc_notsupported.
4589 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4590
4591 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4592 undefined weak symbols for all relocs.
4593 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4594 offsets are relative to one past the delay slot.
4595 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4596 branch destination. Put addend into stub name too.
4597 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4598 adjust by 8 when deciding whether a linker stub is needed. Put
4599 addend into stub name as for above.
4600
4601 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4602 various args and vars.
4603 (elf32_hppa_bfd_final_link_relocate): Here too.
4604 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4605 inner block var to avoid shadowing.
4606
4607 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4608 unsigned.
4609 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4610 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4611 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4612
4613 * libhppa.h: Change practically all unsigned ints to plain ints.
4614 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4615 prototypes.
4616
4617 From Ryan Bradetich <rbradetich@uswest.net>
4618 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4619 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4620 suit above.
4621 From David Huggins-Daines <dhd@linuxcare.com>
4622 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4623 to the new OP_* ones.
4624
4625 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4626 error exit. Bail out earlier on plabel relocs that we aren't
4627 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4628 string, and then don't free our copy.
4629 (elf32_hppa_build_one_stub): Make insn unsigned int.
4630
4631 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4632 available with BL, not BE and BLE.
4633
4634 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4635 code for elf arg relocs.
4636 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4637 argument with elf_link_hash_entry h. Handle undefined weak
4638 symbols. Move $global$ lookup from here...
4639 (elf32_hppa_relocate_section): ...to here. Return correct error
4640 message for non-handled relocs.
4641 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4642 wrong test was -0x3ffff to +0x40000.
4643
4644 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4645 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4646 Handle them as such.
4647 (elf_hppa_relocate_insn): Fix a typo.
4648
4649 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4650 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4651 assemble_17, assemble_21): Delete.
4652 Supply defines for all 64 possible opcodes.
4653 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4654 formats. Handle COMICLR.
4655 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4656 -10, -16, 16, 22.
4657
4658 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4659 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4660 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4661 to suit.
4662 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4663 the local syms - did this code get deleted accidentally? Ignore
4664 undefined and undefweak syms.
4665
4666 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4667 block. Use it instead of elf64_hppa_hash_table (info).
4668 (elf_hppa_final_link_relocate): Use hppa_info instead of
4669 elf64_hppa_hash_table (info).
4670
4671 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4672 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4673 (hppa_rebuild_insn): Mask immediate bits here instead.
4674 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4675
4676 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4677
4678 * section.c (struct sec): Add id field. Tidy comment formatting.
4679 (bfd_make_section_anyway): Set id.
4680 (STD_SECTION): Init id too.
4681 Change CONST to const throughout.
4682 * archures.c (bfd_arch_info): Tidy comment.
4683 (bfd_arch_list): Change a CONST to const.
4684 * libbfd-in.h: Tidy comments and replace CONST with const.
4685 * elf-bfd.h: Likewise.
4686 * libbfd.h: Regenerate.
4687 * bfd-in2.h: Regenerate.
4688 * libcoff.h: Regenerate.
4689
4690 2000-07-07 DJ Delorie <dj@redhat.com>
4691
4692 * archive.c (_bfd_write_archive_contents): Add an informative
4693 comment.
4694
4695 2000-07-06 Kazu Hirata <kazu@hxi.com>
4696
4697 * srec.c: Fix formatting.
4698
4699 2000-06-05 DJ Delorie <dj@redhat.com>
4700
4701 * MAINTAINERS: new
4702
4703 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4704
4705 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4706 value of PC-relative offsets.
4707
4708 2000-07-03 Jim Wilson <wilson@cygnus.com>
4709
4710 * elf64-alpha.c (alpha_elf_size_info): New.
4711 (elf_backend_size_info): Define to alpha_elf_size_info.
4712 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4713
4714 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4715
4716 * elf32-mips.c: Include elf32-target.h again for the traditional
4717 MIPS targets.
4718
4719 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4720
4721 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4722 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4723 (avr_info_to_howto_rela): Likewise.
4724 (elf32_avr_gc_mark_hook): Likewise.
4725 (elf32_avr_gc_sweep_hook): Likewise.
4726 (elf32_avr_relocate_section): Likewise.
4727
4728 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4729
4730 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4731 an external symbol for a non-shared, non-relocatable link.
4732
4733 2000-07-03 Nick Clifton <nickc@redhat.com>
4734
4735 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4736 is an external symbol.
4737 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4738 external symbol.
4739
4740 2000-07-03 Kazu Hirata <kazu@hxi.com>
4741
4742 * reloc16.c: Fix formatting.
4743
4744 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4745
4746 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4747 to add a new target for traditional mips i.e
4748 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4749 * configure.in: Likewise.
4750 * configure: Rebuild.
4751 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4752 bfd_target_vector.
4753 (bfd_elf32_tradlittlemips_vec): Likewise.
4754 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4755 to see that elfNN_bed does not get redefined even if the target file
4756 is included twice for a chip. See elf32-mips.c.
4757
4758 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4759
4760 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4761 (CLEANFILES): Add DEPA.
4762 * Makefile.in: Regenerate.
4763
4764 2000-06-30 DJ Delorie <dj@cygnus.com>
4765
4766 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4767 can't assume the PE header is at 0x80.
4768
4769 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4770
4771 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4772
4773 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4774
4775 * go32stub.h: Update stub.
4776
4777 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4778
4779 * archures.c (bfd_mach_avr5): Define.
4780 * bfd-in2.h (bfd_mach_avr5): Define.
4781 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4782 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4783 (compatible): Update comment. Add missing test.
4784 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4785 for avr2 and avr4. Simplify 8K wrap code.
4786 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4787 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4788
4789 2000-06-26 Kazu Hirata <kazu@hxi.com>
4790
4791 * coff-h8300.c: Fix formatting.
4792 * cpu-h8300.c: Likewise.
4793
4794 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4795
4796 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4797 for local symbols whose names are unknown.
4798
4799 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4800
4801 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4802 find one.
4803 * Makefile.in: Regenerate.
4804 * doc/Makefile.in: Regenerate.
4805
4806 2000-06-20 H.J. Lu <hjl@gnu.org>
4807
4808 * Makefile.am: Rebuild dependency.
4809 * Makefile.in: Rebuild.
4810
4811 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4812
4813 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4814 (elf_backend_copy_indirect_symbol): Map to the new function.
4815
4816 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4817
4818 * archive.c (normalize): Correct pointer comparison when checking
4819 for backslashes.
4820 (bfd_bsd_truncate_arname): Likewise.
4821 (bfd_gnu_truncate_arname): Likewise.
4822
4823 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4824
4825 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4826 sections elf_{text,data}_{section,symbol}.
4827 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4828 (_bfd_mips_elf_hide_symbol): New function.
4829 (elf_backend_hide_symbol): Map to the new function.
4830 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4831 definitions of mips_elf_{text,data}_{section,symbol}.
4832 (mips_elf_local_relocation_p): Try to find the direct symbol
4833 based on new check_forced argument.
4834 (mips_elf_calculate_relocation): Use new version of
4835 mips_elf_local_relocation_p.
4836 (mips_elf_relocate_section): Likewise.
4837 (_bfd_mips_elf_relocate_section): Likewise.
4838 (mips_elf_sort_hash_table): Only assert that have enough GOT
4839 space.
4840 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4841 entry if the relocation based on the new external argument.
4842 (mips_elf_create_dynamic_relocation): Assert that we have a
4843 section contents allocated where we can swap out the dynamic
4844 relocations.
4845 (mips_elf_calculate_relocation): Find the real hash-table entry
4846 correctly by using h->root.root.type. Only create a dynamic
4847 relocation entry if the symbol is defined in a shared library.
4848 Create an external GOT entry for the GOT16 relocation if the
4849 symbol was forced local.
4850 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4851 dynamic index if the symbol was forced local.
4852
4853 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4854
4855 * elf32-mips.c: Fix typos in comments.
4856
4857 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4858
4859 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4860 CORE_VERSION_1.
4861
4862 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4863
4864 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4865 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4866 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4867 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4868 (bfd_elf32_m68hc11_vec): Likewise.
4869 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4870 Supports 68hc11 & 68hc12 at the same time.
4871 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4872 bfd_target_vector.
4873 (bfd_elf32_m68hc11_vec): Likewise.
4874 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4875 * archures.c (bfd_m68hc12_arch): Define and register in global list
4876 (bfd_m68hc11_arch): Likewise.
4877 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4878 BFD_RELOC_M68HC11_3B): Define.
4879 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4880 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4881
4882 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4883
4884 * elf_bfd.h (struct elf_backend_data): Add info argument to
4885 elf_backend_hide_symbol.
4886 (_bfd_elf_link_hash_hide_symbol): Likewise.
4887 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4888 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4889 * elflink.h (elf_link_add_object_symbols): Likewise.
4890 (elf_link_assign_sym_version): Likewise.
4891
4892 2000-06-18 H.J. Lu <hjl@gnu.org>
4893
4894 * coff-i386.c (coff_i386_reloc): Don't return in case of
4895 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4896 Compensate PE relocations when linking with non-PE object
4897 files to generate a non-PE executable.
4898
4899 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4900
4901 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4902 GOT entries if we're doing a static link or -Bsymbolic link.
4903
4904 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4905
4906 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4907 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4908 available.
4909 (elf_link_output_relocs): Likewise.
4910 (elf_reloc_link_order): Likewise.
4911
4912 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4913
4914 * archures.c (enum bfd_architecture): #define constants for
4915 PowerPc and RS6000 machine numbers.
4916 * bfd-in2.h: Regenerate.
4917 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4918 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4919 and RS6000 machine numbers using #defined constants from
4920 archures.c.
4921 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4922 machine numbers using #defined constants from archures.c. Add
4923 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4924 64-bit words in 620 entry.
4925 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4926 RSC, and RS2.
4927 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4928
4929 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4930
4931 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4932 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4933 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4934
4935 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4936
4937 * bfd-in.h (bfd_family_coff): Define.
4938 * bfd-in2.h: Regenerate.
4939 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4940 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4941 instead of bfd_target_coff_flavour.
4942 * cofflink.c (_bfd_coff_final_link): Likewise.
4943 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4944 exclude XCOFF files.
4945 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4946 Likewise.
4947 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4948 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4949 * xcofflink.c (XCOFF_XVECP): Delete.
4950 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4951 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4952 bfd_xcoff_record_link_assignment,
4953 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4954 check for bfd_target_xcoff_flavour.
4955
4956 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4957
4958 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4959 files on AIX 4.3.
4960 (read_hdr): New function.
4961 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4962 of trying to extract individual registers. Set abfd->arch_info
4963 to match the architecture that created the core file.
4964 (rs6000coff_get_section_contents): Delete.
4965 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4966
4967 2000-06-14 H.J. Lu <hjl@gnu.org>
4968
4969 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4970 is NULL.
4971
4972 2000-06-13 H.J. Lu <hjl@gnu.org>
4973
4974 * configure: Regenerate.
4975
4976 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4977
4978 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4979 armpei_little_vec.
4980
4981 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4982
4983 * configure.in (VERSION): Update to show this is the CVS mainline.
4984
4985 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4986
4987 * elf32-d10v.c: Include elf/d10v.h
4988 (enum reloc_type): Delete.
4989 * elf32-d30v.c: Include elf/d30v.h
4990 (enum reloc_type): Delete.
4991
4992 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4993 * Makefile.in: Regenerate.
4994
4995 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4996 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4997 move HOWTOs into elf_howto_table.
4998 (R_386_standard, R_386_ext_offset): Define.
4999 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
5000 (elf_i386_reloc_type_lookup): Modify calculation of index into
5001 elf_howto_table since we've removed the padding.
5002 (elf_i386_info_to_howto_rel): Likewise.
5003 (elf_i386_relocate_section): Likewise.
5004
5005 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
5006
5007 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
5008
5009 2000-06-05 H.J. Lu <hjl@gnu.org>
5010
5011 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
5012 an error when seeing an undefined symbol with hidden/internal
5013 attribute. It is handled in *_relocate_section ().
5014
5015 2000-06-05 H.J. Lu <hjl@gnu.org>
5016
5017 * elflink.h (elf_fix_symbol_flags): Follow the link for the
5018 indirect symbol for the ELF_LINK_NON_ELF bit.
5019 (elf_link_output_extsym): Don't output the indirect symbol even
5020 if the ELF_LINK_NON_ELF bit is set.
5021
5022 2000-06-01 J.T. Conklin <jtc@redback.com>
5023
5024 * config.bfd (i[3456]86-*-netbsdelf*): New target.
5025 (i[3456]86-*-netbsdaout*): New target.
5026 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
5027 (i[3456]86-*-openbsd*): Likewise.
5028
5029 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
5030
5031 * trad-core.c: From hpux-core.c, include <dirent.h> or
5032 <sys/ndir.h> when possible.
5033
5034 2000-05-31 Ulrich Drepper <drepper@redhat.com>
5035
5036 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
5037 definitions. We must not assume they are sorted in the file
5038 according to their index numbers.
5039
5040 2000-05-31 Alan Modra <alan@linuxcare.com.au>
5041
5042 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
5043 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
5044 R_PARISC_DIR17F are for absolute branches; Handle them as such.
5045
5046 2000-05-30 Nick Clifton <nickc@cygnus.com>
5047
5048 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
5049 80960CA, 80960MC as valid machine names.
5050
5051 2000-05-30 H.J. Lu <hjl@gnu.org>
5052
5053 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
5054 visibility bits if the symbol is undefined. Correctly handle
5055 weak undefined symbols with hidden and internal attributes.
5056
5057 * elflink.h (elf_link_add_object_symbols): Always turn the
5058 symbol into local if it has the hidden or internal attribute.
5059
5060 2000-05-29 Philip Blundell <philb@gnu.org>
5061
5062 * ppcboot.c: Add packed attribute if compiling with GCC.
5063
5064 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
5065
5066 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
5067
5068 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
5069
5070 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
5071 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
5072 corefile on a 64-bit (Sparc Solaris) host. Also clean up
5073 a few old comments.
5074
5075 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5076
5077 * Makefile.am: Update dependencies with "make dep-am"
5078 * Makefile.in: Regenerate.
5079
5080 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
5081 bindtextdomain): Replace defines with those from intl/libgettext.h
5082 to quieten gcc warnings.
5083
5084 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5085
5086 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
5087
5088 * archive.c (normalize, bfd_bsd_truncate_arname,
5089 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
5090 file names with backslashes.
5091
5092 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
5093 before opening it.
5094
5095 * sysdep.h: Include filenames.h.
5096
5097 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5098
5099 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
5100
5101 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5102
5103 * elf64-sparc.c (sparc64_elf_relax_section): New.
5104 (sparc64_elf_relocate_section): Optimize tail call into branch always
5105 if possible.
5106 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5107 (elf32_sparc_relax_section): New.
5108
5109 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5110
5111 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
5112 Remove unusued variables.
5113 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
5114 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
5115 previous fix, so that shared libs really don't influence targets
5116 extension mask and memory model.
5117
5118 2000-05-23 H.J. Lu <hjl@gnu.org>
5119
5120 * elf64-alpha.c (elf64_alpha_relocate_section): Check
5121 h->root.other not h->other.
5122 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5123
5124 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
5125
5126 2000-05-23 H.J. Lu <hjl@gnu.org>
5127
5128 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
5129 undefined symbol with the non-default visibility attributes.
5130 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5131 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5132 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5133 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5134 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5135 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5136 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5137 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5138 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5139 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
5140 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5141
5142 2000-05-22 Richard Henderson <rth@cygnus.com>
5143
5144 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
5145 PCREL22, PCREL64I. Zero size of special relocs.
5146 (elf64_ia64_reloc_type_lookup): Likewise.
5147 (USE_BRL, oor_brl, oor_ip): New.
5148 (elf64_ia64_relax_section): New.
5149 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
5150 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
5151 (elf64_ia64_relocate_section): Likewise.
5152 (bfd_elf64_bfd_relax_section): New.
5153 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
5154 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
5155 * bfd-in2.h, libbfd.h: Regenerate.
5156
5157 2000-05-22 Nick Clifton <nickc@cygnus.com>
5158
5159 * configure.in : Add peigen.lo to MIPS PE targets.
5160 * configure: Regenerate.
5161
5162 2000-05-22 Momchil Velikov <velco@fadata.bg>
5163
5164 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
5165 only if it is known for both input and output bfds. Separate
5166 error message strings as in some languages, it may be necessary
5167 to change more than one place in the string to change between
5168 'big' and 'little'.
5169
5170 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
5171 endianess checks, call _bfd_generic_verify_endian_match() instead.
5172
5173 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
5174
5175 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
5176
5177 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
5178 endianess before checking bfd flavours.
5179
5180 2000-05-22 H.J. Lu <hjl@gnu.org>
5181
5182 * elflink.h (elf_link_output_extsym): Clear the visibility
5183 field for symbols not defined locally.
5184
5185 2000-05-18 Alan Modra <alan@linuxcare.com.au>
5186
5187 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5188 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5189 (hppa_rebuild_insn): Mask immediate bits here instead.
5190 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5191
5192 2000-05-18 Momchil Velikov <velco@fadata.bg>
5193
5194 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
5195 relocs for an executable, ensure that they are virtual addresses.
5196
5197 2000-05-18 Jeffrey A Law (law@cygnus.com)
5198
5199 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
5200
5201 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5202 Rick Gorton <gorton@scrugs.lkg.dec.com>
5203
5204 * elflink.h: Add emitrelocations support: when enabled, relocation
5205 information and relocation sections are put into final output
5206 executables. If the emitrelocations flag is set, do the following:
5207 (elf_bfd_final_link): Emit relocation sections.
5208 (elf_link_input_bfd): Compute relocation section contents.
5209 (elf_gc_sections): Don't clean relocation sections.
5210
5211 2000-05-16 Catherine Moore <clm@cygnus.com>
5212
5213 * som.c (som_decode_symclass): Recognize weak symbols.
5214
5215 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
5216
5217 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
5218 read idata section only from dataoff.
5219 (pe_print_edata): Correctly check for valid eat_member.
5220
5221 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
5222
5223 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5224
5225 2000-05-14 Philip Blundell <philb@gnu.org>
5226
5227 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
5228
5229 2000-05-12 Alan Modra <alan@linuxcare.com.au>
5230
5231 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
5232
5233 * peigen.c (pe_print_idata): Look for .idata section and print
5234 info even if data directory has zero entries. Read idata section
5235 starting from dataoff, and adjust all data offsets to suit. Cast
5236 all bfd_vma vars to unsigned long before passing to fprintf.
5237 * peigen.c (pe_print_edata): Similarly, look for .edata section
5238 and print info even if data directory has zero entries. Cast
5239 all bfd_vma vars to unsigned long before passing to fprintf.
5240
5241 From Szabolcs Szakacsits <szaka@F-Secure.com>
5242 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
5243 directory size which may be bogus.
5244 * peigen.c (pe_print_edata): Similarly.
5245
5246 2000-05-09 Alan Modra <alan@linuxcare.com.au>
5247
5248 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
5249 section is empty.
5250 (copy_private_bfd_data): Allow for space possibly taken up by elf
5251 headers when calculating segment physical address from lma.
5252
5253 2000-05-08 Alan Modra <alan@linuxcare.com.au>
5254
5255 * versados.c (versados_scan): Init stringlen and pass_2_done.
5256
5257 * trad-core.c (trad_unix_core_file_p): Return
5258 bfd_error_wrong_format rather than bfd_error_file_truncated.
5259
5260 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5261 add_data_entry. DataDirectory virtual address is relative.
5262 (pe_print_idata): Account for relative DataDirectory virtual
5263 addresses. Don't trash datasize inside POWERPC_LE_PE code.
5264 (pe_print_edata): Similarly.
5265
5266 From Szabolcs Szakacsits <szaka@F-Secure.com>
5267 * peigen.c (dir_names): Add Delay Import Directory.
5268 (pe_print_idata): Always search for bfd section containing
5269 idata address rather than looking up section name. Print this
5270 section name rather than .idata.
5271 (pe_print_edata): Similarly. Also print some fields as %08lx.
5272 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5273 Win32Version.
5274
5275 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5276
5277 * xcoff.h: Rename to xcoff-target.h
5278 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5279 * coff-rs6000.c: Ditto.
5280 * coff64-rs6000.c: Ditto.
5281 * coff-pmac.c: Ditto.
5282 * Makefile.in: Regenerate.
5283
5284 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5285
5286 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5287 Change U802TOC64MAGIC to U803XTOCMAGIC.
5288
5289 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
5290
5291 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5292 * bfd-in.h: Prototype bfd_elf_get_arch_size.
5293 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5294
5295 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5296
5297 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5298
5299 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
5300
5301 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5302 hidden and internal symbols.
5303 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5304 visibility.
5305 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5306 assign a PLT or GOT entry to symbols with hidden and
5307 internal visibility.
5308
5309 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5310
5311 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5312 the .bss section.
5313 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5314
5315 2000-05-02 H.J. Lu <hjl@gnu.org>
5316
5317 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5318 ELFOSABI_SYSV.
5319
5320 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5321
5322 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5323 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
5324 dependencies.
5325 * Makefile.in: Regenerate.
5326
5327 2000-05-01 Jim Wilson <wilson@cygnus.com>
5328
5329 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5330 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5331 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
5332 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
5333 * Makefile.in: Rebuild.
5334
5335 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5336
5337 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
5338 doesn't work very well.
5339
5340 * elf-hppa.h (elf_hppa_internal_shdr): Define.
5341 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5342 Set hdr->s_type to 1 if ARCH_SIZE == 32.
5343 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5344 (elf_hppa_info_to_howto): Likewise.
5345 (elf_hppa_info_to_howto_rel): Likewise.
5346 (elf_hppa_reloc_type_lookup): Likewise.
5347 (elf_hppa_is_local_label_name): Likewise.
5348 (elf_hppa_fake_sections): Likewise.
5349 (elf_hppa_final_write_processing): Likewise.
5350 (elf_hppa_howto_table): Fully initialise all entries.
5351 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5352 (elf_hppa_info_to_howto): Likewise.
5353 (elf_hppa_info_to_howto_rel): Likewise.
5354 (elf_hppa_reloc_type_lookup): Likewise.
5355 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5356 elf_hppa_unmark_useless_dynamic_symbols,
5357 elf_hppa_remark_useless_dynamic_symbols,
5358 elf_hppa_record_segment_addrs, elf_hppa_final_link,
5359 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5360 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5361 elf32-hppa.c mess is cleaned up.
5362 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5363 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
5364 r_field then call hppa_field_adjust inline func with variable
5365 r_field arg, instead call hppa_field_adjust with fixed arg.
5366 In case R_PARISC_PCREL22F, don't set r_field.
5367 (elf_hppa_relocate_insn): Change args and return type to unsigned
5368 int. Call re_assemble_* funcs to do the work.
5369
5370 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5371 sign extending.
5372
5373 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5374 extending.
5375 (sign_extend): Mask first before sign extending.
5376 (low_sign_extend): Rewrite without condition expression.
5377 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5378 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5379 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5380 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5381 result as function return value rather than through pointer arg.
5382 Accept unsigned int args, and return unsigned int.
5383 (re_assemble_3): New. Combines function of dis_assemble_3 with
5384 re-assembly of opcode and immediate.
5385 (re_assemble_12): Likewise.
5386 (re_assemble_16): Likewise.
5387 (re_assemble_17): Likewise.
5388 (re_assemble_21): Likewise.
5389 (re_assemble_22): Likewise.
5390 (hppa_field_adjust): Rewrite and document, paying attention to
5391 size of types and signed/unsigned issues.
5392 (get_opcode): Shift before masking.
5393 (FDLW): Rename to FLDW.
5394 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
5395 (hppa_rebuild_insn): Change args and return value to unsigned
5396 int. Make use of re_assemble_*. Correct case 11.
5397
5398 * dep-in.sed: Handle ../opcodes/.
5399 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5400 elf64-hppa.h, hppa_stubs.h, xcoff.h.
5401 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5402 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5403 elfarm-nabi.lo dependencies outside of auto-dependency area.
5404 Regenerate dependencies.
5405 * Makefile.in: Regenerate.
5406
5407 * configure.in (TRAD_HEADER): Test non-null before
5408 AC_DEFINE_UNQUOTED.
5409 * configure: Regenerate.
5410
5411 * reloc.c: Fix mis-spelling in comment.
5412
5413 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5414
5415 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5416 * vms.c (vms_openr_next_archived_file): Return NULL.
5417
5418 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5419
5420 * coffcode.h Copy changes mistakenly done to libcoff.h in
5421 4/24/2000 patch.
5422
5423 2000-04-29 Andreas Jaeger <aj@suse.de>
5424
5425 * libbfd-in.h: Correctly check GCC version.
5426 * bfd-in.h: Likewise.
5427 * libhppa.h: Likewise.
5428 * libbfd.h: Regenerate.
5429 * bfd-in2.h: Regenerate.
5430
5431 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5432
5433 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5434 coffdu-rs6000.{lo,c}.
5435 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5436 on xcoff.h
5437 * Makefile.in: Regenerate.
5438 * xcoff.h: New file.
5439 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5440 * coff-rs6000.c: Move all declarations and defines that are
5441 common to the xcoff backends into xcoff.h
5442 * coff64-rs6000.c: Ditto,
5443
5444 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5445
5446 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
5447 _bfd_coff_force_symnames in strings and
5448 _bfd_coff_debug_string_prefix_length to their default values.
5449 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5450
5451 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5452
5453 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5454 _bfd_coff_force_symnames in strings and
5455 _bfd_coff_debug_string_prefix_length to their default values.
5456
5457 2000-04-27 Alan Modra <alan@linuxcare.com.au>
5458
5459 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
5460 Check local_got_refcounts before dereferencing.
5461
5462 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5463 before deciding we don't need R_PPC_PLT32 relocation.
5464 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5465 dereferencing.
5466
5467 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5468
5469 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5470 .plt entries.
5471 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5472 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5473 (elf_i386_relocate_section): Allow for .plt to go missing.
5474 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5475 can use a relative reloc for got as elf_i386_relocate_section.
5476 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5477
5478 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
5479
5480 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5481
5482 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
5483
5484 * Makefile.am (coff64-rs6000.lo): New rule.
5485 * Makefile.in: Regenerate.
5486 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5487 xcoff_is_local_label_name, xcoff_rtype2howto,
5488 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5489 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5490 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5491 (NO_COFF_SYMBOLS): Define.
5492 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5493 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5494 internally.
5495 (MINUS_ONE): New macro.
5496 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5497 relocation.
5498 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5499 coff_SWAP_aux_out): Map to the new functions.
5500 * coff64-rs6000.c: New file.
5501 * libcoff.h (bfd_coff_backend_data): Add new fields
5502 _bfd_coff_force_symnames_in_strings and
5503 _bfd_coff_debug_string_prefix_length.
5504 (bfd_coff_force_symnames_in_strings,
5505 bfd_coff_debug_string_prefix_length): New macros for above fields.
5506 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5507 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5508 of using coff_swap_sym_in directly.
5509 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5510 (coff_set_flags) Set magic for XCOFF64.
5511 (coff_compute_section_file_positions): Add symbol name length to
5512 string section length if bfd_coff_debug_string_prefix_length is
5513 true.
5514 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5515 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5516 using coff_swap_lineno_in directly.
5517 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5518 and _bfd_coff_debug_string_prefix_length fields.
5519 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5520 symbol names into strings table when
5521 bfd_coff_force_symnames_in_strings is true.
5522 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5523 SET_RELOC_VADDR): New macros.
5524 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5525 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5526 code.
5527 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5528 changes within RS6000COFF_C specific code.
5529 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5530 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5531 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5532 Extend existing hack on target name.
5533 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5534 target name.
5535 * coff-tic54x.c (ticof): Keep up to date with new fields
5536 in bfd_coff_backend_data.
5537 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5538 targ_selvecs to include rs6000coff64_vec for rs6000.
5539 * configure.in: Add rs6000coff64_vec case.
5540 * cpu-powerpc.c: New bfd_arch_info_type.
5541
5542 2000-04-24 Jeffrey A Law (law@cygnus.com)
5543
5544 * config.bfd: Only disable elf32-hppa vectors, not all of the
5545 BSD and OSF configuration support. Provide (disabled) clauses
5546 for PA64 support.
5547 * configure.in: Add clause for PA64 support.
5548 * configure: Rebuilt.
5549
5550 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5551 (bfd_elf64_hppa_vec): Declare.
5552
5553 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5554 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5555 (elf64-hppa.lo): Add dependencies.
5556 * Makefile.in: Rebuilt.
5557
5558 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5559
5560 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5561
5562 * libhppa.h (dis_assemble_16): New function.
5563 (pa_arch): Added pa20w element.
5564
5565 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5566
5567 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5568 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5569 bfd_elf64_slurp_reloc_table.
5570
5571 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5572 definitions to get external names.
5573 (elf_write_relocs): Renamed from write_relocs and make global.
5574 (elf_slurp_reloc_table): Make global.
5575 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5576
5577 * archive.c (hpux_uid_gid_encode): New function.
5578 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5579 defined and the ID is greater than 99999.
5580 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5581 special uid/gid fields into 32 bit values.
5582
5583 2000-04-21 Matthew Green <mrg@cygnus.com>
5584
5585 * config.bfd: Add NetBSD/sparc64 support.
5586
5587 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5588 David Mosberger <davidm@hpl.hp.com>
5589 Timothy Wall <twall@cygnus.com>
5590 Jim Wilson <wilson@cygnus.com>
5591
5592 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5593 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5594 (BFD64_BACKENDS): Add elf64-ia64.lo.
5595 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5596 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5597 * Makefile.in: Rebuild.
5598 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5599 (bfd_ia64_arch): Declare.
5600 (bfd_archures_list): Add bfd_ia64_arch.
5601 * bfd-in2.h: Rebuild.
5602 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5603 * configure: Rebuild.
5604 * configure.host: (ia64-*-linux*): New host.
5605 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5606 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5607 * elf.c (prep_headers): Add bfd_arch_ia64.
5608 * libbfd.h: Rebuild.
5609 * reloc.c: Add IA-64 relocations.
5610 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5611 Declare.
5612 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5613 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5614
5615 2000-04-21 Richard Henderson <rth@cygnus.com>
5616
5617 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5618 contents when performing a partial link.
5619 (bfd_elf_d30v_reloc_21): Likewise.
5620
5621 2000-04-20 H.J. Lu <hjl@gnu.org>
5622
5623 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5624 patch to symbols defined by a shared object.
5625 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5626
5627 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5628
5629 K&R compiler fixes.
5630 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5631 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5632
5633 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5634
5635 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5636 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5637 (coff-ia64.lo): Add dependency.
5638 * Makefile.in: Regenerate.
5639 * coff-ia64.c: New file.
5640 * efi-app-ia32.c: Ditto.
5641 * efi-app-ia64.c: Ditto.
5642 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5643 (coff_set_flags): Ditto.
5644 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5645 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5646 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5647 * configure: Regenerate.
5648 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5649 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5650 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5651 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5652 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5653 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5654 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5655 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5656 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5657 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5658 (GET_PDATA_ENTRY): Ditto.
5659 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5660 data_start. Use above macros to read fields that are 64 bit wide for
5661 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5662 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5663 FileAlignment and SectionAlignment to minimum alignment if they
5664 are zero.
5665 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5666 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5667 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5668 Use above macros to write fields that are 64 bit wide for
5669 COFF_WITH_PEP64.
5670 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5671 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5672 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5673 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5674 begin address, end address, and unwind info address only. Use
5675 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5676 print addresses.
5677 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5678 HIGH3ADJ relocation names.
5679 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5680 * targets.c: Declare bfd_efi_app_ia32_vec and
5681 bfd_efi_app_ia64_vec.
5682 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5683 bfd_efi_app_ia64_vec.
5684
5685 2000-04-17 Timothy Wall <twall@cygnus.com>
5686
5687 * bfd-in2.h: Add prototypes for tic54x load page access.
5688 * bfd-in.h: Regenerate.
5689 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5690 in customized _set_arch_mach function.
5691 * coffcode.h (coff_set_alignment_hook): Set section load page if
5692 the appropriate macro is defined.
5693 (write_object_contents): Read section load page.
5694
5695 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5696
5697 * elf32-hppa.h: Update copyright date.
5698
5699 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5700 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5701
5702 * elf32-d30v.c (MAX32): Don't use LL suffix.
5703 (MIN32): Define in terms of MAX32.
5704 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5705
5706 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5707 expression.
5708
5709 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5710
5711 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5712
5713 * dep-in.sed: Match space before file name, not after.
5714 * Makefile.am: Regenerate dependencies.
5715 * Makefile.in: Regenerate.
5716
5717 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5718 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5719 extend without an if statement.
5720
5721 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5722
5723 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5724 signed quantites.
5725 * elf32-mips.c (gprel16_with_gp): Likewise.
5726 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5727 here using -0x40000, not (int)0xfffc0000.
5728 (elf32_hppa_size_of_stub): Likewise.
5729
5730 2000-04-11 Timothy Wall <twall@cygnus.com>
5731
5732 * coff-tic54x.c: Now builds with all targets.
5733 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5734 * Makefile.in: Regenerate.
5735 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5736 unitialized variable.
5737
5738 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5739
5740 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5741 --enable-build-warnings option.
5742 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5743 * Makefile.in, configure: Re-generate.
5744
5745 2000-04-07 Nick Clifton <nickc@cygnus.com>
5746
5747 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5748 BFD_RELOC_THUMB_PCREL_BLX.
5749
5750 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5751 R_ARM_XPC25 and R_ARM_THM_PC22.
5752
5753 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5754 R_ARM_XPC25 and R_ARM_THM_XPC22.
5755 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5756 R_ARM_[XPC25|THM_XPC22].
5757
5758 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5759 elf/arm-oabi.h to elf/arm.h
5760
5761 * Makefile.am: Fix dependency for elfarm-oabi.c
5762 * Makefile.in: Regenerate.
5763
5764 * bfd-in2.h: Regenerate.
5765 * libbfd.h: Regenerate.
5766
5767 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5768
5769 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5770 and restore it on failure. Release newly allocated tdata on
5771 failure.
5772
5773 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5774
5775 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5776 (decode_line_info): Set it. Report error if unit->line_offset is
5777 equal to or larger than it.
5778
5779 2000-04-07 Timothy Wall <twall@cygnus.com>
5780
5781 * targets.c: Added vecs for tic54x.
5782 * reloc.c: Added relocs for tic54x.
5783 * libbfd.h: Regenerated.
5784 * configure: Add TI COFF vecs for tic54x.
5785 * configure.in: Ditto.
5786 * config.bfd (targ_cpu): Recognize new tic54x target.
5787 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5788 * bfd-in2.h: Add tic54x target and relocations.
5789 * Makefile.am, Makefile.in: Add tic54x target.
5790 * archures.c (bfd_archures_list): Add tic54x target.
5791 * coff-tic54x.c: New.
5792 * cpu-tic54x.c: New.
5793
5794 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5795
5796 * elfcore.h (elf_core_file_p): call backend_object_p which
5797 thereby gets an opportunity to update the arch/machine type.
5798
5799 2000-04-06 Timothy Wall <twall@cygnus.com>
5800
5801 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5802 class. Handle SEC_CLINK and SEC_BLOCK flags.
5803 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5804 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5805
5806 2000-04-06 Nick Clifton <nickc@cygnus.com>
5807
5808 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5809 EF_INTERWORK if this is an unknown EABI.
5810 (elf32_arm_merge_private_bfd_data): Check EABI version
5811 numbers. Only check EF_xxx flags if the EABI version number
5812 is unknown.
5813 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5814 if the EABI version number is unknown.
5815 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5816 if the EABI version number is unknown.
5817
5818 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5819
5820 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5821 BFD_RELOC_SH_LOOP_END.
5822 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5823 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5824 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5825 (sh_elf_reloc_loop): New function.
5826 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5827 any more.
5828 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5829 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5830 * bfd-in2.h, libbfd.h: Regenerate.
5831
5832 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5833
5834 * po/bfd.pot: Regenerate.
5835
5836 * Makefile.am: Remove extraneous mkdep comment.
5837 (MKDEP): Use gcc -MM rather than mkdep.
5838 (DEP): Quote when passing vars to sub-make. Add warning
5839 message to end.
5840 (DEP1): Rewrite for "gcc -MM".
5841 (CLEANFILES): Add DEP2.
5842 Update dependencies.
5843 * Makefile.in: Regenerate.
5844
5845 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5846
5847 * configure.in: Added corefile support for AIX 4.3. In particular,
5848 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5849 compiling rs6000-core.c.
5850 * configure: Regenerated.
5851
5852 2000-04-03 H.J. Lu <hjl@gnu.org>
5853
5854 * cache.c (bfd_open_file): Unlink the output file only if
5855 it has non-zero size.
5856
5857 2000-04-01 Ken Block USG <block@zk3.dec.com>
5858
5859 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5860 relative relocations for non-loaded sections in shared objects.
5861 (elf64_alpha_check_relocs): Similarly.
5862
5863 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5864
5865 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5866 BFD_RELOC_16 to switch for extended relocs.
5867 (MY_swap_ext_reloc_in): New.
5868 (MY_swap_ext_reloc_out): New.
5869 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5870 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5871 (NAME(aout,squirt_out_relocs)): Similarly use
5872 MY_swap_ext_reloc_out.
5873 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5874
5875 2000-04-03 Kazu Hirata <kazu@hxi.com>
5876
5877 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5878 the R_PCRWORD_B case.
5879
5880 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5881
5882 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5883 on some targets.
5884 * ihex.c : Ditto.
5885
5886 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5887
5888 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5889 HOWTO references to bfd_elf_generic_reloc, that have
5890 partial_inplace == true, now use the new function. The function
5891 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5892 extends its fixes to the R_M32R_{16,24,32} relocs.
5893 The new logic in m32r_elf_lo16_reloc() has been removed, and
5894 it instead calls the new routine to obtain that functionality.
5895
5896 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5897
5898 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5899 elf32_avr_check_relocs, avr_final_link_relocate,
5900 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5901 elf32_avr_object_p): Add prototypes.
5902 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5903 (bfd_elf_avr_final_write_processing): Make static.
5904
5905 2000-03-27 Denis Chertykov <denisc@overta.ru>
5906
5907 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5908 * archures.c (bfd_architecture): Add AVR architecture.
5909 (bfd_archures_list): Add reference to AVR architecture info.
5910 * elf.c (prep_headers): Handle bfd_arch_avr.
5911 * reloc.c: Add various AVR relocation enums.
5912 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5913 list.
5914 * Makefile.am: Add support for AVR elf.
5915 * configure.in: Likewise.
5916 * config.bfd: Likewise.
5917 * Makefile.in: Regenerate.
5918 * configure: This too.
5919 * bfd-in2.h: And this.
5920 * libbfd.h: And this.
5921
5922 2000-03-24 H.J. Lu <hjl@gnu.org>
5923
5924 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5925 (elf64_alpha_find_reloc_at_ofs): Likewise.
5926
5927 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5928
5929 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5930 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5931 allowable range used to be -2**(n-1) to 2**n-1.
5932 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5933 "boolean overflow" with "bfd_reloc_status_type flag".
5934
5935 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5936
5937 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5938
5939 2000-03-14 Kazu Hirata <kazu@hxi.com>
5940
5941 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5942 of shrinks properly, including the last reloc.
5943
5944 2000-03-13 Kazu Hirata <kazu@hxi.com>
5945
5946 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5947 check for R_MOVL2.
5948
5949 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5950
5951 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5952 a format mismatch rather than an "error" from bfd_read such as
5953 bfd_error_file_truncated.
5954
5955 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5956
5957 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5958 sign-extension and big-endian compensation for
5959 R_MIPS_64 even in ld -r.
5960
5961 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5962
5963 * elf32-mips.c (mips_elf_next_relocation): Rename from
5964 mips_elf_next_lo16_relocation, and generalize to look
5965 for any relocation type.
5966 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5967 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5968 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5969 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5970 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5971 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5972 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5973 (mips_rtype_to_howto): Likewise.
5974 (mips_elf_calculate_relocation): Handle new relocs.
5975 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5976 are paired. The addend for R_MIPS_GNU_REL16_S2
5977 is shifted right two bits.
5978
5979 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5980
5981 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5982 comment, and ensure it doesn't happen again.
5983 (bfd_install_relocation): Same here.
5984 (_bfd_relocate_contents): Don't bother assigning unused signmask
5985 shift result. Fix typos in comments.
5986 Remove trailing whitespace throughout file.
5987
5988 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5989
5990 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5991 * bfd-in2.h: Rebuild.
5992
5993 2000-03-06 Nick Clifton <nickc@cygnus.com>
5994
5995 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5996 sym_ptr_ptr fields.
5997 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5998 (SIZEOF_ILF_STRINGS): Redefine.
5999 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
6000 relative reloc, as opposed to a section relative reloc.
6001 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
6002 not C_LABEL.
6003 Add length of symbol's prefix to string pointer.
6004 Store a pointer to the symbol in the symbol pointer table.
6005 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
6006 Initialise the symbol pointer table.
6007 Store the hint in the Hint/Name table.
6008 Make the jump reloc be symbol realtive, not section relative.
6009 Create an import symbol for imported code.
6010
6011 2000-03-06 Catherine Moore <clm@cygnus.com>
6012
6013 * elf.c (swap_out_syms): Check for null type_ptr.
6014
6015 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
6016
6017 * aout-target.h (MY(write_object_contents)): Remove unused
6018 and unusable "#if CHOOSE_RELOC_SIZE".
6019 * pc532-mach.c (MY(write_object_contents)): Ditto.
6020 * netbsd.h (MY(write_object_contents)): Ditto.
6021 * hp300hpux.c (MY(write_object_contents)): Ditto.
6022 * freebsd.h (MY(write_object_contents)): Ditto.
6023 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
6024
6025 2000-02-29 H.J. Lu <hjl@gnu.org>
6026
6027 * peicode.h (jtab): Make it static.
6028
6029 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
6030 defined and COFF_IMAGE_WITH_PE is not defined.
6031 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
6032 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
6033
6034 2000-03-01 Nick Clifton <nickc@cygnus.com>
6035
6036 * coff-arm.c (bfd_arm_process_before_allocation): Make
6037 'symndx' signed to prevent compile time warning.
6038
6039 * coff-mcore.c: Remove unused prototype for pe_object_p.
6040
6041 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
6042 functions that are not used when COFF_IMAGE_WITH_PE is
6043 defined.
6044 (struct sh_opcode): Change type of 'flags' field to unsigned
6045 long so that it can hold the USESAS flag.
6046
6047 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
6048
6049 * elf-m10300.c (mn10300_elf_relax_section): Initialise
6050 'sym_sec'.
6051
6052 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
6053 parameters.
6054 Remove unusued variables and code.
6055 (elf_backend_add_symbol_hook): Fix prototype.
6056
6057 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
6058 'srelgot'.
6059
6060 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
6061 'oldinst'.
6062
6063 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
6064 parameters.
6065 Remove unusued variables and code.
6066 (elf_backend_add_symbol_hook): Fix prototype.
6067
6068 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
6069
6070 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
6071 to unused function parameter.
6072
6073 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
6074 parameters.
6075 Use EMPTY_HOWTO to initialise empty howto slots.
6076 Remove unused variables.
6077
6078 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
6079
6080 2000-03-01 H.J. Lu <hjl@gnu.org>
6081
6082 * aoutx.h (aout_link_input_section_std): Pass "true" to
6083 the undefined_symbol callback.
6084 (aout_link_input_section_ext): Likewise.
6085 * bout.c (get_value): Likewise.
6086 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
6087 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
6088 Likewise.
6089 (alpha_relocate_section): Likewise.
6090 * coff-arm.c (coff_arm_relocate_section): Likewise.
6091 * coff-i960.c (coff_i960_relocate_section): Likewise.
6092 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
6093 * coff-mips.c (mips_relocate_section): Likewise.
6094 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
6095 * coff-sh.c (sh_relocate_section): Likewise.
6096 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
6097 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
6098 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
6099 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
6100 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
6101 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
6102 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
6103 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6104 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
6105 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6106 * elf32-sh.c (sh_elf_relocate_section): Likewise.
6107 * elf32-v850.c (v850_elf_relocate_section): Likewise.
6108 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
6109 * elflink.h (elf_link_output_extsym): Likewise.
6110 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
6111 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
6112 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
6113
6114 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
6115 undefined_symbol callback when building shared library with
6116 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
6117 "true".
6118 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6119 * elf32-i386.c (elf_i386_relocate_section): Likewise.
6120 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6121 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6122 (elf32_mips_get_relocated_section_content): Likewise.
6123 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6124 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6125 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6126 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6127
6128 2000-02-28 Nick Clifton <nickc@cygnus.com>
6129
6130 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
6131 * Makefile.in: Regenerate.
6132
6133 * configure.in: Add support for mips and sh pe vectors.
6134 * configure: regenerate.
6135
6136 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
6137 targets.
6138
6139 * targets.c: Add mips and sh pe vectors.
6140
6141 * libpei.h (coff_final_link_postscript): Only define if not
6142 already defined.
6143
6144 * coffcode.h: Add support for WinCE magic numbers.
6145
6146 * peigen.c (pe_print_reloc): Update comment and rearrange
6147 appending of newline character.
6148
6149 * peicode.h: Add support for Image Library Format.
6150 (pe_ILF_vars): Structure containing data used by ILF code.
6151 (pe_ILF_make_a_section): New function. Create a section based
6152 on ILF data.
6153 (pe_ILF_make_a_reloc): New function. Create a reloc based on
6154 ILF data.
6155 (pe_ILF_make_a_symbol): New function. Create a symbol based
6156 on ILF data.
6157 (pe_ILF_save_relocs): New function. Store the relocs created
6158 by pe_ILF_make_a_reloc in a section.
6159 (pe_ILF_build_a_bfd): New function. Create a BFD describing
6160 an ILF object.
6161 (pe_ILF_object_p): New function. Return a bfd_target pointer
6162 for an ILF object.
6163 (pe_bfd_object_p): If an ILF object is detected call
6164 pe_ILF_object_p on it.
6165
6166 * coff-arm.c: Add support for WinCE relocs which are different
6167 from normal ARM COFF relocs.
6168 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
6169
6170 * coff-sh.c: Add support for sh-pe target.
6171 * pe-sh.c: New file. Support code for sh-pe target.
6172 * pei-sh.c: New file. Support code for sh-pe target.
6173
6174 * pe-mips.c: New file. Support code for mips-pe target.
6175 * pei-mips.c: New file. Support code for mips-pe target.
6176
6177 2000-02-27 Jakub Jelinek <jakub@redhat.com>
6178
6179 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
6180 architecture if the object causing the bump is dynamic.
6181 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
6182 and also don't it for memory ordering.
6183 (sparc64_elf_write_relocs): Take src_rela out of the loop.
6184
6185 2000-02-27 Ian Lance Taylor <ian@zembu.com>
6186
6187 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
6188 calling bfd_get_section_size_before_reloc.
6189 (decode_line_info): Likewise.
6190 (_bfd_dwarf2_find_nearest_line): Likewise.
6191
6192 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
6193
6194 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
6195 name of the libtool directory.
6196 * Makefile.in: Rebuild.
6197
6198 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
6199
6200 * som.c (SOM_HOWTO): Define.
6201 (som_hppa_howto_table): Use it.
6202
6203 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6204
6205 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
6206
6207 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
6208
6209 2000-02-24 Catherine Moore <clm@cygnus.com>
6210
6211 * som.c (som_misc_symbol_info): Add field
6212 secondary_def.
6213 (som_bfd_derive_misc_symbol_info): Initialize
6214 secondary_def.
6215 (som_build_and_write_symbol_table): Keep track
6216 of secondary_def field.
6217 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
6218 if secondary_def field is set.
6219 (som_bfd_ar_write_symbol_stuff): Initialize
6220 secondary_def.
6221
6222 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
6223
6224 * dwarf2.c (read_address): Read 16-bits addresses.
6225 (parse_comp_unit): Accept addr_size == 2.
6226
6227 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6228
6229 * bfd-in.h: Update copyright date.
6230
6231 2000-02-23 Linas Vepstas <linas@linas.org>
6232
6233 * cpu-i370.c: New file.
6234 * elf32-i370.c: New file.
6235 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
6236 (bfd_i370_arch): New.
6237 (bfd_archures_list): Add bfd_i370_arch.
6238 * elf.c (prep_headers): Add bfd_arch_i370.
6239 * Makefile.am: Add support for IBM 370 elf.
6240 * config.bfd: Likewise.
6241 * configure.in: Likewise.
6242 * libbfd.h (bfd_reloc_code_real_names): Likewise.
6243 * reloc.c (bfd_reloc_code_type): Likewise.
6244 * targets.c: Likewise.
6245
6246 * Makefile.in: Regenerate.
6247 * configure: Regenerate.
6248 * bfd-in2.h: Regenerate.
6249
6250 2000-02-22 Ian Lance Taylor <ian@zembu.com>
6251
6252 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
6253 invalid relocation types, and change them to R_386_NONE.
6254
6255 2000-02-22 H.J. Lu <hjl@gnu.org>
6256
6257 * elflink.h (elf_link_add_object_symbols): If a version symbol is
6258 not defined, don't add a second ELF_VER_CHR.
6259
6260 * elflink.h (elf_bfd_final_link): Call output_extsym for global
6261 symbols converted to local symbols even when stripping all
6262 symbols.
6263 (elf_link_output_extsym): Process global symbols converted to
6264 local symbols even if they are being stripped.
6265
6266 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6267
6268 * archures.c (bfd_octets_per_byte): Return unsigned int.
6269 (bfd_arch_mach_octets_per_byte): Ditto.
6270 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6271 comparison warning.
6272 * section.c (bfd_get_section_size_before_reloc): Quell signed
6273 vs. unsigned comparison warning.
6274 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
6275 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6276 change. What was I thinking?
6277 * bfd-in2.h: Regenerate.
6278
6279 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6280 (elf_gc_sections): Same here.
6281 (elf_gc_common_finalize_got_offsets): And here.
6282
6283 2000-02-21 Ian Lance Taylor <ian@zembu.com>
6284
6285 ELF HPPA doesn't work at present; remove it until it does.
6286 * config.bfd: Comment out setting targ_defvec to
6287 bfd_elf32_hppa_vec.
6288 * Makefile.am: Rebuild dependencies.
6289 (BFD32_BACKENDS): Remove elf32-hppa.lo.
6290 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6291 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6292 * Makefile.in: Rebuild.
6293 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6294
6295 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6296
6297 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6298 is no bfd_free(). Revert bfd_free part of previous change.
6299
6300 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6301
6302 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6303 arrays.
6304 (coff_compute_section_file_positions): Use bfd_free to pair
6305 bfd_malloc.
6306 (coff_write_object_contents): Likewise.
6307
6308 * coff-rs6000.c (xcoff_howto_table_16): New variable.
6309 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6310
6311 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
6312
6313 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6314 (xcoff_ar_file_hdr_big): New structure.
6315 (SIZEOF_AR_FILE_HDR_BIG): New macro.
6316 (xcoff_ar_hdr_big): New structure.
6317 (SIZEOF_AR_HDR_BIG): New macro.
6318 (xcoff_big_format_p): New macro.
6319 (xcoff_ardata_big): New macro.
6320 (arch_xhdr_big): New macro.
6321 (xcoff_slurp_armap): Handle large archives.
6322 (xcoff_archive_p): Detect large archives.
6323 (xcoff_read_ar_hdr): Handle large archives.
6324 (xcoff_openr_next_archived_file): Handle large archives.
6325 (xcoff_generic_stat_arch_elt): Handle large archives.
6326 (xcoff_write_armap_old): Rename from xcoff_write_armap.
6327 (xcoff_write_armap_big): New function.
6328 (xcoff_write_armap): New function, dispatch to _old or _big.
6329 (xcoff_write_archive_contents_old): Rename from
6330 xcoff_write_archive_contents.
6331 (xcoff_write_archive_contents_big): New function.
6332 (xcoff_write_archive_contents): New function, dispatch to _old or
6333 _big.
6334
6335 2000-02-18 Richard Henderson <rth@cygnus.com>
6336
6337 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6338 and hide_symbol members.
6339 (elf_link_hash_copy_indirect): Remove.
6340 (elf_link_hash_hide_symbol): Remove.
6341 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6342 and elf_backend_hide_symbol.
6343 (_bfd_elf_link_hash_copy_indirect): Declare.
6344 (_bfd_elf_link_hash_hide_symbol): Declare.
6345 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6346 (_bfd_elf_link_hash_hide_symbol): Likewise.
6347 (_bfd_elf_link_hash_table_init): Don't init killed members.
6348 * elflink.h (elf_link_add_object_symbols): Use the bed function
6349 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6350 (elf_link_assign_sym_version): Likewise.
6351 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6352 (elf_backend_hide_symbol): Likewise.
6353 (elfNN_bed): Update for new members.
6354
6355 2000-02-17 Kevin Buettner <kevinb@redhat.com>
6356
6357 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6358 STACK_END_ADDR): Define for new core file format.
6359 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6360 for handling the vagaries of the various core file structures used
6361 by AIX over the years.
6362 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6363 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6364 core_dumpx structure.
6365
6366 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6367
6368 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6369 (bfd_mach_sh3_dsp): Likewise.
6370 (bfd_mach_sh4): Reinstate.
6371 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6372 * bfd-in2.h: Regenerate.
6373 * coff-sh.c (struct sh_opcode): flags is no longer short.
6374 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6375 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6376 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6377 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6378 (sh_opcodes): No longer const.
6379 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6380 (sh_insn_uses_reg): Check for USESAS and USESR8.
6381 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6382 (_bfd_sh_align_load_span): Return early for SH4.
6383 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6384 Take into account that field b of a parallel processing insn
6385 could be mistaken for a separate insn.
6386 * cpu-sh.c (arch_info_struct): New array elements for
6387 sh2, sh-dsp and sh3-dsp.
6388 Reinstate element for sh4.
6389 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6390 (SH4_NEXT): Reinstate.
6391 (SH3_NEXT, SH3E_NEXT): Adjust.
6392 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6393 * elf32-sh.c (sh_elf_set_private_flags): New function.
6394 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6395 (sh_elf_merge_private_data): New function.
6396 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6397 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6398 (bfd_elf32_bfd_merge_private_bfd_data): Change to
6399 sh_elf_merge_private_data.
6400
6401 2000-02-13 Richard Henderson <rth@cygnus.com>
6402
6403 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6404 hide_symbol members.
6405 (elf_link_hash_copy_indirect): New.
6406 (elf_link_hash_hide_symbol): New.
6407 * elflink.h (elf_link_add_object_symbols): Break out copy from
6408 indirect new new symbol to elf.c.
6409 (elf_link_assign_sym_version): Break out privatization of
6410 non-exported symbol to elf.c.
6411 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6412 (_bfd_elf_link_hash_hide_symbol): New.
6413 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6414
6415 2000-02-13 Ian Lance Taylor <ian@zembu.com>
6416
6417 * section.c (_bfd_strip_section_from_output): Add info parameter.
6418 If it passed as non-NULL, use it to check whether any input BFD
6419 has an input section which uses this output section. Change all
6420 callers.
6421 * bfd-in2.h: Rebuild.
6422
6423 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6424 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6425 1999-11-29.
6426 * bfd-in2.h: Rebuild.
6427
6428 2000-02-10 Timothy Wall <twall@cygnus.com>
6429
6430 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6431 allow final modifications of swapped-in symbol.
6432 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6433 * coffcode.h (coff_write_relocs): Use macro
6434 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6435 symbol index should be set to -1.
6436
6437 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
6438
6439 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6440 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6441 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6442 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6443 sh_insns_uses_or_sets_freg): New functions.
6444 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6445 * (sh_insns_conflict): Use new functions and new macros to
6446 detect conflicts when two instructions both set same integer registers,
6447 both set same fp register, and both set special register.
6448
6449 2000-02-09 Timothy Wall <twall@cygnus.com>
6450
6451 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6452 swapping in sections, so that the swapping routines have access to
6453 the arch/mach info.
6454
6455 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6456
6457 * coff-go32.c: Update comment. Update copyright.
6458
6459 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6460
6461 * syms.c (bfd_decode_symclass)
6462 Two new class characters were added - 'V' and 'v'. The
6463 meaning of 'W' is now restricted to just weak non-object
6464 symbols. This allows differentiation between, for example,
6465 weak functions vs weak objects. nm for example now dumps:
6466 'W' = weak global
6467 'w' = weak unresolved
6468 'V' = weak global object
6469 'v' = weak unresolved object
6470
6471 (bfd_is_undefined_symclass): New function. Return true if the
6472 given symbol class represents and undefined/unresolved symbol.
6473
6474 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6475 unresolved symbols.
6476
6477 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6478
6479 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6480 STT_ARM_16BIT flag set, but it is not attached to a data object
6481 return STT_ARM_16BIT so that it will be treated as code by the
6482 disassembler.
6483
6484 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6485
6486 * coff-i386.c (i3coff_object_p): Remove prototype.
6487 Update copyright.
6488
6489 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6490 to name. Update copyright.
6491
6492 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6493 assignment to avoid warning. Update copyright.
6494
6495 2000-01-24 Robert Lipe (robertl@sco.com)
6496
6497 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6498 instead of using GNU C extension.
6499
6500 2000-01-21 Nick Clifton <nickc@cygnus.com>
6501
6502 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6503 amount from a bfd_in_memory structure.
6504 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6505 structure.
6506
6507 2000-01-14 Nick Clifton <nickc@cygnus.com>
6508
6509 * linker.c (default_indirect_link_order): oops - fix incorrectly
6510 applied patch from Tim Wall.
6511
6512 2000-01-13 Timothy Wall (twall@tiac.net>
6513
6514 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6515 = scnhsz, filhsz, relsz, aoutsz, etc)
6516
6517 * coffswap.h: Ditto.
6518
6519 2000-01-13 Nick Clifton <nickc@cygnus.com>
6520
6521 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6522 interwork thumb to arm stub.
6523
6524 2000-01-13 Timothy Wall (twall@tiac.net>
6525
6526 * archures.c (bfd_octets_per_byte): New function: Return
6527 target byte size.
6528 (bfd_arch_mach_octets_per_byte): New function: Return target
6529 byte size.
6530
6531 * section.c: Distinguish between octets and bytes for usage of
6532 _cooked_size, _raw_size, and output_offset. Clarify
6533 description of bfd_set_section_contents.
6534
6535 * bfd-in2.h: Regenerate.
6536
6537 * coffgen.c: Indicate that the offset parameter is in bytes, not
6538 octets.
6539
6540 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6541 where appropriate to get the octet offset when calling
6542 bfd_set_section_contents.
6543 (bfd_coff_reloc_link_order): Ditto.
6544
6545 * linker.c (bfd_generic_reloc_link_order): Ditto.
6546 (_bfd_default_link_order): Ditto.
6547
6548 * reloc.c (bfd_perform_relocation): Distinguish between octets
6549 and bytes. Use octets when indexing into octet data; use bytes
6550 when calculating target addresses.
6551 (bfd_install_relocation): Ditto.
6552
6553 * srec.c (srec_write_section): Ditto.
6554
6555 2000-01-13 Nick Clifton <nickc@cygnus.com>
6556
6557 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6558 3 to 2. This allows 4 byte sized sections, which is necessary for
6559 dlltool to build functioning DLLs.
6560
6561 2000-01-10 Philip Blundell <pb@futuretv.com>
6562
6563 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6564 (arm*-*-conix*): New target.
6565
6566 2000-01-10 Egor Duda <deo@logos-m.ru>
6567
6568 * config.bfd: Include elf32_i386 vector to target list for cygwin
6569 and mingw.
6570
6571 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6572 * configure.in: Test for structure win32_pstatus_t in
6573 <sys/procfs.h>
6574 * configure: Regenerate.
6575
6576 * elf.c (elfcore_grok_win32pstatus): New function: process
6577 win32_pstatus_t notes in elf core file.
6578 (elfcore_grok_note): Detect win32_pstatus notes.
6579
6580 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6581
6582 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6583 visibility.
6584 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6585 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6586
6587 For older changes see ChangeLog-9899
6588 \f
6589 Local Variables:
6590 mode: change-log
6591 left-margin: 8
6592 fill-column: 74
6593 version-control: never
6594 End:
This page took 0.176008 seconds and 5 git commands to generate.