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