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