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