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