1 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3 * elf32-arm.h (elf32_arm_final_link_relocate): Set
4 EF_ARM_HASENTRY if the start address is set.
6 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
8 * targets.c (_bfd_target_vector_entries): Compute value based on
9 the size of the _bfd_target_vector and not bfd_target_vector.
11 2001-05-03 H.J. Lu <hjl@gnu.org>
13 * elfcode.h: Include "libiberty.h".
15 * elflink.h (elf_link_add_object_symbols): Set
16 elf_dt_name (abfd) to basename of the bfd filename.
17 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
20 2001-05-03 Andreas Jaeger <aj@suse.de>
22 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
23 (elf_generic_info_to_howto_rel): Likewise.
24 * coff-alpha.c (reloc_nil): Likewise.
25 (alpha_ecoff_bad_format_hook): Likewise.
26 (alpha_adjust_reloc_out): Likewise.
27 (alpha_bfd_reloc_type_lookup): Likewise.
28 (alpha_convert_external_reloc): Likewise.
29 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
30 (elf64_alpha_reloc_bad): Likewise.
31 (elf64_alpha_reloc_gpdisp): Likewise.
32 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
33 (elf64_alpha_info_to_howto): Likewise.
34 (elf64_alpha_add_symbol_hook): Likewise.
35 (elf64_alpha_create_got_section): Likewise.
36 (elf64_alpha_is_local_label_name): Likewise.
37 (elf64_alpha_merge_ind_symbols): Likewise.
38 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
39 (mips_elf64_get_reloc_upper_bound): Likewise.
40 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
41 (nlm_alpha_get_public_offset): Likewise.
43 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
45 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
46 about overflow in R_OPENRISC_LO_16_IN_INSN and
47 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
49 2001-04-30 H.J. Lu <hjl@gnu.org>
51 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
52 only for ELF_LINK_FORCED_LOCAL.
53 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
54 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
55 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
57 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
58 if the symbol has hidden or internal visibility.
60 2001-04-30 Alan Modra <amodra@one.net.au>
62 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
63 calls to undefined weak symbols.
65 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
67 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
68 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
70 2001-04-27 Andreas Jaeger <aj@suse.de>
72 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
74 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
75 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
76 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
79 2001-04-27 Sean McNeil <sean@mcneil.com>
81 * config.bfd: Add arm-vxworks target.
82 * coff-arm (coff_arm_relocate_section): Add in symbol value to
83 addend (fro VXworks targets).
85 2001-04-26 H.J. Lu <hjl@gnu.org>
87 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
90 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
92 * bfd-in.h (bfd_cache_close): Declare newly exported function.
93 * bfd-in2.h: Regenerated.
95 2001-04-24 Jakub Jelinek <jakub@redhat.com>
97 * merge.c (struct sec_merge_hash_entry): Add alignment field.
98 (struct sec_merge_hash): Remove alignment_power.
99 (sec_merge_hash_newfunc): Clear alignment.
100 (sec_merge_hash_lookup): Pass alignment as argument.
101 Use hashp->root.next, not hashp->next to walk the hash chain.
102 If a string already in the hashtable does not have required
103 alignment, create a new hashtable entry.
104 (sec_merge_init): Remove alignment_power argument.
105 (sec_merge_add): Add alignment argument.
106 (sec_merge_emit): Alignment is now a per-entity thing, not per
108 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
109 for proper alignment.
110 Pass alignment information to sec_merge_add.
112 2001-04-24 Christian Groessler <cpg@aladdin.de>
114 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
115 and R_REL16 reloc types; accept odd values for R_REL16 type
117 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
119 * cpu-openrisc.c: New file.
120 * elf32-openrisc.c: Likewise.
122 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
123 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
124 (BFD32_BACKENDS): Add elf32-openrisc.lo.
125 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
126 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
127 * Makefile.in: Regenerated.
128 * config.bfd: (openrisc-*-elf): New target.
129 * configure.in (bfd_elf32_openrisc_vec): New vector.
130 * configure: Regenerated.
131 * libbfd.h: Regenerated.
132 * bfd-in2.h: Regenerated.
133 * reloc.c: Add OpenRISC relocations.
134 * targets.c (bfd_elf32_openrisc_vec): Declare.
135 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
136 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
137 (bfd_openrisc_arch): Declare.
138 (bfd_archures_list): Add bfd_openrisc_arch.
139 * elf.c (prep_headers): Add bfd_arch_openrisc.
141 2001-04-23 Bo Thorsen <bo@suse.de>
143 * elf64-x86-64.c: Add c++ vtable hack.
144 Small whitespace and comment changes.
146 2001-04-19 Andreas Jaeger <aj@suse.de>
148 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
149 (elf64_x86_64_plt_entry): Likewise.
150 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
151 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
153 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
155 * elf32-cris.c: Tweak comments related to dynamic linking.
156 (cris_elf_relocate_section): When not creating shared object, fill
157 in the .got table for any symbol not in the dynamic symbol table.
158 (elf_cris_finish_dynamic_symbol): When not creating shared object,
159 only emit a .got.rela reloc if the symbol is in the dynamic symbol
161 (cris_elf_check_relocs): Use variable r_type in all places rather
162 than the original expression. Add default case in switch for
164 (elf_cris_size_dynamic_sections): Iterate over
165 elf_cris_discard_excess_program_dynamics when not creating shared
167 (elf_cris_discard_excess_dso_dynamics): Renamed from
168 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
169 (elf_cris_discard_excess_program_dynamics): New.
171 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
173 * coffcode.h (coff_write_object_contents): Use
174 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
176 2001-04-14 H.J. Lu <hjl@gnu.org>
178 * bfd-in2.h: Regenerate.
180 2001-04-14 Jakub Jelinek <jakub@redhat.com>
182 * section.c (STD_SECTION): Add entsize.
184 2001-04-13 H.J. Lu <hjl@gnu.org>
186 * section.c (SEC_MERGE): Define new flag for merging.
187 (SEC_STRINGS): Likewise.
188 (entsize): New field.
190 2001-04-13 Roger Sayle <roger@metaphorics.com>
192 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
193 flag on pe-i386 targets.
195 2001-04-13 Jakub Jelinek <jakub@redhat.com>
197 * libbfd-in.h (_bfd_merge_section): New.
198 (_bfd_write_merged_section): New.
199 (_bfd_merged_section_offset): New.
201 * linker.c (_bfd_generic_link_output_symbols): Handle
203 * aoutx.h (aout_link_write_symbols): Likewise.
204 * pdp11.c (aout_link_write_symbols): Likewise.
205 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
206 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
208 (elf_link_sec_merge_syms): New.
209 (elf_link_input_bfd): Call _bfd_merged_section_offset
210 and _bfd_write_merged_section.
211 Handle discard_sec_merge.
212 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
214 (struct bfd_elf_section_data): Likewise.
215 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
216 SEC_STRINGS section flags and entsize from their ELF counterparts.
217 (_bfd_elf_link_hash_table_init): Initialize merge_info.
218 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
219 from their BFD counterparts.
221 * Makefile.am: Add strtab.lo.
222 * Makefile.in: Rebuilt.
224 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
226 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
227 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
229 2001-04-05 Steven J. Hill <sjhill@cotw.com>
231 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
232 endian MIPS ELF target.
233 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
236 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
237 64bit big endian MIPS ELF target.
238 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
239 endian MIPS ELF target.
240 * configure: Regenerated.
242 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
243 little endian targets.
244 (mips_elf_sym_is_global): Handle traditional targets.
246 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
247 64bit big endian MIPS ELF target.
248 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
249 endian MIPS ELF target.
251 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
252 and bfd_elf64_tradlittlemips_vec.
254 2001-04-05 David Mosberger <davidm@hpl.hp.com>
256 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
257 ordinary "progbits" section.
259 2001-04-04 Alan Modra <alan@linuxcare.com.au>
261 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
262 when -Bsymbolic causes a symbol to no longer need a .plt entry.
264 2001-04-03 David Mosberger <davidm@hpl.hp.com>
266 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
268 2001-03-30 H.J. Lu <hjl@gnu.org>
270 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
271 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
273 2001-03-26 H.J. Lu <hjl@gnu.org>
275 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
276 if there are any relocations for generic ELF.
277 (bfd_elf32_bfd_link_add_symbols): Defined to
278 elf32_generic_link_add_symbols.
279 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
280 if there are any relocations for generic ELF.
281 (bfd_elf64_bfd_link_add_symbols): Defined to
282 elf64_generic_link_add_symbols.
284 2001-03-23 Nick Clifton <nickc@redhat.com>
286 * Makefile.am (BUILD_CFILES): New variable: List of C source
287 files created in build directory.
288 (BUILD_HFILES): New variable: List of header files created in
291 (po/POTFILES.in): Replace rule with empty entry.
292 (po/SRC-POTFILES.in): New rule: Create a list of source files
293 in the source directory.
294 (po/BLD-POTFILES.in): New rule: Create a list of source files
295 in the build directory.
296 (MOSTLYCLEAN): Do not delete source files created in build
298 * Makefile.in: Regenerate.
299 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
301 * configure: Regenerate.
303 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
305 Add .. to the search path when building bfd.pot.
306 Delete POTFILES when performing distclean.
307 Add comment describing why distclean is broken in maintainer mode.
308 * po/POTFILES.in: Delete.
309 * po/SRC-POTFILES.in: New file.
310 * po/BLD-POTFILES.in: New file.
311 * po/bfd.pot: Regenerate.
313 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
315 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
316 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
317 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
318 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
319 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
320 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
322 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
323 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
324 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
325 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
326 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
327 New HOWTO members for new relocs.
328 (cris_reloc_map): Map new relocs.
329 (ELF_DYNAMIC_INTERPRETER): Define.
330 (PLT_ENTRY_SIZE): Define.
331 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
332 elf_cris_pic_plt_entry): New, PLT templates.
333 (struct elf_cris_pcrel_relocs_copied, struct
334 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
335 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
336 (cris_final_link_relocate): Check that 16-bit GOT relocs have
337 positive values. Adjust PCREL relocs to be relative to location
339 (cris_elf_relocate_section): Handle relocations to dynamic
340 objects. Handle new relocations. Call error handler when seeing
341 non-PIC relocation for read-only sections while generating shared
343 (cris_elf_check_relocs): Set reference counts for GOT and PLT
345 (bfd_elf32_bfd_link_hash_table_create,
346 elf_backend_adjust_dynamic_symbol,
347 elf_backend_size_dynamic_sections,
348 elf_backend_finish_dynamic_symbol,
349 elf_backend_finish_dynamic_sections,
350 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
351 elf_backend_hide_symbol, elf_backend_want_got_plt,
352 elf_backend_plt_readonly, elf_backend_want_plt_sym,
353 elf_backend_got_header_size, elf_backend_plt_header_size):
356 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
357 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
358 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
359 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
360 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
361 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
362 * bfd-in2.h, libbfd.h: Regenerate.
364 2001-03-21 Diego Novillo <dnovillo@redhat.com>
366 (_bfd_mips_elf_relocate_section): Give a better error message when
367 a relocation is not recognized.
369 2001-03-21 Alan Modra <alan@linuxcare.com.au>
371 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
372 non-NULL before attempting to dereference.
374 2001-03-20 H.J. Lu <hjl@gnu.org>
376 * configure.in: Remove the redundent AC_ARG_PROGRAM.
377 * configure: Rebuild.
379 2001-03-20 Andreas Schwab <schwab@suse.de>
381 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
382 relocation value when resolving a reference from a debugging
385 2001-03-16 Scott Thomason <SThomaso@hii.com>
387 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
388 (xcoff64_swap_sym_out): Fix syntax errors.
390 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
392 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
394 2001-03-15 Alan Modra <alan@linuxcare.com.au>
396 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
397 (hppa_link_hash_newfunc): Init it.
398 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
399 section appears to be non-PIC.
400 (final_link_relocate): Likewise.
401 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
402 possible candidate function, and set pic_call for those that will
403 only have a .plt entry for the PIC call stub.
404 (hppa_handle_PIC_calls): Set maybe_pic_call.
406 2001-03-12 DJ Delorie <dj@redhat.com>
408 * elf32-sh.c (sh_elf_relocate_section): Only relocation
409 R_SH_DIR8WP* relocs if they're against external symbols, else
410 they're just for relaxing. Validate the reloc values.
412 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
414 * binary.c (bfd_external_binary_architecture): Declare.
415 (binary_object_p): If bfd_external_binary_architecture is defined,
416 set the architecture to this string.
418 2001-03-11 Philip Blundell <philb@gnu.org>
420 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
421 entries that could serve as a definition for a weak symbol.
423 2001-03-08 Nick Clifton <nickc@redhat.com>
425 * Most files: Update copyright notices using Perl script created
426 by Kevin Buettner <kevinb@redhat.com>.
428 2001-03-07 Nick Clifton <nickc@redhat.com>
430 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
431 prior patch on ! defined OLD_ARM_ABI.
433 2001-03-07 Andreas Jaeger <aj@suse.de>
435 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
436 some relocation values.
438 2001-03-06 Nick Clifton <nickc@redhat.com>
440 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
441 of offset in BLX(1) instruction.
442 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
443 offset in BLX(1) instruction.
446 2001-03-06 Nick Clifton <nickc@redhat.com>
448 * coff-arm.c (coff_arm_reloc_type_lookup): Add
449 BFD_RELOC_THUMB_PCREL_BLX.
451 2001-03-06 Igor Shevlyakov <igor@windriver.com>
453 * archures.c (bfd_default_scan): Add Coldfire CPUs.
454 * bfd-in2.h: Regenerate.
455 * cpu-m68k.c: Add Coldfire CPUs for arch table.
456 * ieee.c (ieee_write_processor): Set proper id for
459 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
461 * configure.in: Add s390 target.
462 * configure: Regenerate.
464 2001-02-28 Andreas Jaeger <aj@suse.de>
466 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
469 2001-02-28 Philip Blundell <pb@futuretv.com>
471 * elf32-arm.h: Update mentions of renamed EF_xx constants.
472 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
474 2001-02-27 H.J. Lu <hjl@gnu.org>
476 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
477 abfd->tdata.aout_data == NULL.
479 2001-02-27 Alan Modra <alan@linuxcare.com.au>
481 * elf32-hppa.c: Correct field selector in stub comments.
482 (clobber_millicode_symbols): Formatting fix.
484 * configure.in: Bump version to 2.11.90.
485 * configure: Regenerate.
486 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
487 (CFILES): $SOURCE_CFILES + generated C files.
488 (POTFILES): Include $HFILES not $SOURCE_HFILES.
490 * Makefile.in: Regenerate.
491 * doc/Makefile.in: This too.
493 2001-02-26 Timothy Wall <twall@cygnus.com>
495 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
498 2001-02-26 Nick Clifton <nickc@redhat.com>
500 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
501 up, replacing multiple if statements with a switch.
502 (handle_COMDAT): New function.
504 2001-02-26 H.J. Lu <hjl@gnu.org>
506 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
507 a warning for section flags we do not handle instead of
510 2001-02-26 Andreas Jaeger <aj@suse.de>
512 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
514 2001-02-22 Timothy Wall <twall@cygnus.com>
516 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
517 * configure.in: Add objects for elf64_ia64_aix vectors.
518 * configure: Regenerated.
519 * configure.host: Recognize ia64-*-aix*.
520 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
521 for AIX. AIX5 requires most relocations to be dynamic (*all*
522 binaries are somewhat similar to shared libraries).
523 * targets.c: Add elf64_ia64_aix vectors.
525 2001-02-21 David Mosberger <davidm@hpl.hp.com>
527 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
528 C8 said "1" instead of "8". Clarify error string for IMM22:
529 "signed integer" instead of just "integer".
531 2001-02-20 Andreas Jaeger <aj@suse.de>
533 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
534 PLT entries that could serve as a definition for a weak symbol.
536 2001-02-19 Jakub Jelinek <jakub@redhat.com>
538 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
539 entries that could serve as a definition for a weak symbol.
540 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
542 2001-02-18 David O'Brien <obrien@FreeBSD>
544 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
545 FreeBSD/i386-CURRENT differently until I can figure out the needed
547 * configure: Regenerate.
548 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
549 FreeBSD/PowerPC, and FreeBSD/sparc64.
551 2001-02-18 lars brinkhoff <lars@nocrew.org>
553 * Makefile.am: Add PDP-11 a.out target.
554 * config.bfd: Likewise.
555 * configure.in: Likewise.
556 * targets.c: Likewise.
557 * archures.c: Likewise.
558 * bfd-in2.h: Likewise. Add PDP-11 relocations.
559 * libbfd.h: Add PDP-11 relocations.
561 * cpu-pdp11.c: New file.
564 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
565 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
566 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
567 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
568 (GET_MAGIC): New macro.
569 (PUT_MAGIC): Likewise.
570 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
572 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
574 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
577 2001-02-18 H.J. Lu <hjl@gnu.org>
579 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
582 2001-02-18 Kazu Hirata <kazu@hxi.com>
584 * vms-misc.c: Fix formatting.
586 2001-02-16 Kazu Hirata <kazu@hxi.com>
588 * vms.c: Fix formatting.
590 2001-02-14 H.J. Lu <hjl@gnu.org>
592 * elf.c (elf_find_function): New function.
593 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
594 the file name and function name.
596 2001-02-14 Nick Clifton <nickc@redhat.com>
598 * ecoff.c (bfd_debug_section): Update to initialise new fields in
601 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
602 (BFD64_BACKENDS): Add pepigen.c
603 Add rules to create peigen.c and pepigen.c from peXXigen.c.
605 * Makefile.in: Regenerate.
606 * configure: Regenerate.
607 * po/POTFILES.in: Regenerate.
608 * po/bfd.pot: Regenerate.
610 2001-02-14 H.J. Lu <hjl@gnu.org>
612 * libcoff-in.h (pe_tdata): Add members target_subsystem and
613 force_minimum_alignment.
615 2001-02-14 Bo Thorsen <bo@suse.de>
617 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
618 (elf64_86_64_size_info): Struct added to fix a problem
619 with the hashtable string entries.
620 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
621 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
622 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
623 remove the FIXME for this.
624 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
625 section. Also removed the FIXME for it.
626 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
627 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
628 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
630 2001-02-13 Richard Henderson <rth@redhat.com>
632 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
633 and not user provided.
635 2001-02-13 Kazu Hirata <kazu@hxi.com>
637 * vms.c (vms_print_symbol): Remove unreachable code.
639 * rs6000-core.c: Fix formatting.
641 2001-02-13 David Mosberger <davidm@hpl.hp.com>
643 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
644 as _bfd_XXi_only_swap_filehdr_out.
645 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
646 pe->force_minimum_alignment to TRUE.
647 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
648 PEI_TARGET_SUBSYSTEM.
649 (pe_print_private_bfd_data): Call
650 _bfd_XX_print_private_bfd_data_common() instead of
651 _bfd_pe_print_private_bfd_data_common().
652 (pe_bfd_copy_private_bfd_data): Call
653 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
654 _bfd_pe_bfd_copy_private_bfd_data_common().
655 (coff_bfd_copy_private_section_data): Define as
656 _bfd_XX_bfd_copy_private_section_data instead of
657 _bfd_pe_bfd_copy_private_section_data.
658 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
659 of a _bfd_pe_get_symbol_info.
663 * peXXigen.c: Renamed from peigen.c.
664 (COFF_WITH_XX): Define this macro (will get expanded into
665 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
666 compiled as peigen.c or pepigen.c.
667 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
668 define the canonical PEP structures and definitions.
669 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
670 effect, enforce minimum file and section alignments. If
671 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
672 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
673 so, by default, this is a no-op).
675 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
676 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
677 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
678 _bfd_pefoo if it's not defined. Use these macros to define
681 * libcoff.h (pe_tdata): Add members target_subsystem and
682 force_minimum_alignment.
684 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
686 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
688 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
691 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
692 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
695 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
696 (BFD64_BACKENDS_CFILES): Mention pepigen.c
697 (peigen.c): Add rule to generate from peXXigen.c.
699 (pepigen.lo): List dependencies for pepigen.lo.
701 2001-02-13 Alan Modra <alan@linuxcare.com.au>
703 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
704 $global$ referenced but not defined, set its value here.
706 2001-02-09 Bo Thorsen <bo@suse.de>
708 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
710 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
712 (elf64_x86_64_relocate_section): Fix formatting.
713 (elf64_x86_64_relocate_section): Fix addend for relocation of
714 R_X86_64_(8|16|32|PC8|PC16|PC32).
716 2001-02-12 Jan Hubicka <jh@suse.cz>
718 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
720 2001-02-11 H.J. Lu <hjl@gnu.org>
722 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
725 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
727 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
728 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
729 relocations against dynsym symbols.
731 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
732 the R_MIPS_26 relocation.
733 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
734 the R_MIPS_26 relocation.
735 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
737 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
738 the R_MIPS_26 relocation.
739 (mips_elf64_howto_table_rela): Likewise.
741 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
742 member to mark symbols that have non-CALL relocations against
744 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
745 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
747 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
748 non-CALL relocation against it is encountered.
749 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
750 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
751 no_fn_stub is not set.
753 * elf32-mips.c (mips_elf_output_extsym): Get the output section
754 information from the real symbol for indirect ones.
755 Check no_fn_stub to find out if a symbol has a function stub
758 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
760 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
761 * Makefile.in: Regenerate.
763 2001-02-09 David Mosberger <davidm@hpl.hp.com>
765 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
766 true if section name is an unwind table section name.
767 (elfNN_ia64_additional_program_headers): Count each unwind section
769 (elfNN_ia64_modify_segment_map): Install one unwind program header
770 for each unwind separate section. Note: normally the linker
771 script merges the unwind sections that go into a single segment,
772 so this still generates at most one unwind program header per
775 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
776 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
777 (elfNN_ia64_fake_sections): Mark sections with names that start
778 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
781 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
782 Use it to make sh_info in unwind section point to the text section
785 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
787 * Makefile.am: Add linux target for S/390.
788 * archures.c: Likewise.
789 * bfd-in2.h: Likewise.
790 * config.bfd: Likewise.
791 * configure.in: Likewise.
793 * libbfd.h: Likewise.
794 * targets.c: Likewise.
795 * cpu-s390.c: New file.
796 * elf32-s390.c: New file.
797 * elf64-s390.c: New file.
799 2001-02-09 Nick Clifton <nickc@redhat.com>
801 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
802 ImageBase. This has already been done by coff_swap_hdr_in.
804 2001-02-09 Jakub Jelinek <jakub@redhat.com>
806 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
808 2001-02-09 Jakub Jelinek <jakub@redhat.com>
810 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
811 (sparc64_elf_relocate_section): Likewise.
813 2001-02-09 Mark Kettenis <kettenis@gnu.org>
815 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
816 similar to R_SPARC_32.
817 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
819 2001-02-08 H.J. Lu <hjl@gnu.org>
821 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
822 relocation entries for weak definitions when building DSO with
825 2001-02-08 Richard Henderson <rth@redhat.com>
827 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
828 before visibility. Locally defined protected symbols are not
831 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
833 * config.bfd: Enable coff64 for rs6000-*. Patch from
834 <hzoli@austin.ibm.com>.
836 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
838 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
839 found, do not attempt to find dwarf2 info before returning.
841 2001-02-07 Jakub Jelinek <jakub@redhat.com>
843 * elflink.h (is_global_symbol_definition): Rename to
844 is_global_data_symbol_definition and have it reject function
846 (elf_link_is_defined_archive_symbol): Use renamed function.
848 2001-02-07 Todd Vierling <tv@wasabisystems.com>
850 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
851 * libbfd.h (bfd_target_vector): Likewise.
852 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
853 make static; create pointer reference named bfd_target_vector.
854 (_bfd_target_vector_entries): Calculate this based on the array
855 typed _bfd_target_vector.
857 2001-02-06 H.J. Lu <hjl@gnu.org>
859 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
860 internal symbols are not dynamic.
861 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
863 2001-02-06 Nick Clifton <nickc@redhat.com>
865 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
866 that it will not be pulled into the list of files that make up
868 * Makefile.in: Regenerate.
869 * po/bfd.pot: Regenerate.
871 2001-02-06 H.J. Lu <hjl@gnu.org>
873 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
875 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
876 external_PEI_IMAGE_hdr.
878 2001-02-06 Kazu Hirata <kazu@hxi.com>
880 * elf-m10200.c: Fix formatting.
882 2001-02-04 Nick Clifton <nickc@redhat.com>
884 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
885 rel, it will be handled later on.
887 2001-02-02 Fred Fish <fnf@ninemoons.com>
889 * Makefile.in: Fix typo.
891 2001-02-01 Kazu Hirata <kazu@hxi.com>
893 * elf-m10300.c: Fix formatting.
895 2001-01-30 Alan Modra <alan@linuxcare.com.au>
897 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
898 (elf_backend_get_symbol_type): Define.
899 (elf64_hppa_object_p): Set architecture and machine from elf
902 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
904 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
907 2001-01-26 Richard Henderson <rth@redhat.com>
909 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
910 for non-default visibility.
911 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
912 delete ugly macro and replace with pretty function.
914 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
916 * coff-go32.c: Update copyright.
917 * coff-stgo32.c: Likewise.
918 * coff-go32.c (COFF_LONG_FILENAMES): Define.
919 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
920 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
921 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
923 2001-01-25 Kazu Hirata <kazu@hxi.com>
925 * bfd-in2.h: Rebuild.
926 * libbfd.h: Likewise.
928 2001-01-23 H.J. Lu <hjl@gnu.org>
930 * bfd-in2.h: Rebuild.
932 2001-01-23 H.J. Lu <hjl@gnu.org>
934 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
935 is NULL or PRIV(vms_rec) is outside of the buffer.
937 2001-01-23 Kazu Hirata <kazu@hxi.com>
939 * coff64-rs6000.c: Fix formatting.
940 * coff-arm.c: Likewise.
941 * coffgen.c: Likewise.
942 * cofflink.c: Likewise.
943 * coff-mcore.c: Likewise.
944 * coff-mips.c: Likewise.
945 * coff-pmac.c: Likewise.
946 * coff-ppc.c: Likewise.
947 * coff-rs6000.c: Likewise.
949 * elf32-fr30.c: Likewise.
950 * elf32-i370.c: Likewise.
951 * elf32-i860.c: Likewise.
952 * elf32-m32r.c: Likewise.
953 * elf32-m68k.c: Likewise.
954 * elf32-mcore.c: Likewise.
955 * elf32-ppc.c: Likewise.
956 * elf32-sh.c: Likewise.
957 * elf32-v850.c: Likewise.
958 * elf64-alpha.c: Likewise.
959 * elf64-sparc.c: Likewise.
960 * elflink.c: Likewise.
961 * elflink.h: Likewise.
962 * elf-m10200.c: Likewise.
963 * elf-m10300.c: Likewise.
964 * elfxx-ia64.c: Likewise.
966 * aoutx.h: Fix formatting.
968 * bfd-in2.h: Likewise.
969 * bfd-in.h: Likewise.
970 * cpu-i386.c: Likewise.
971 * cpu-m68hc11.c: Likewise.
972 * dwarf2.c: Likewise.
973 * elf64-x86-64.c: Likewise.
974 * format.c: Likewise.
975 * freebsd.h: Likewise.
977 * hp300hpux.c: Likewise.
978 * hppabsd-core.c: Likewise.
979 * hpux-core.c: Likewise.
981 2001-01-22 Bo Thorsen <bo@suse.de>
983 * elf64-x86-64.c: Added PIC support for X86-64.
984 (elf64_x86_64_link_hash_newfunc): Function added.
985 (elf64_x86_64_link_hash_table_create): Likewise.
986 (elf64_x86_64_check_relocs): Likewise.
987 (elf64_x86_64_gc_mark_hook): Likewise.
988 (elf64_x86_64_gc_sweep_hook): Likewise.
989 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
990 (elf64_x86_64_size_dynamic_sections): Likewise.
991 (elf64_x86_64_discard_copies): Likewise.
992 (elf64_x86_64_finish_dynamic_symbol): Likewise.
993 (elf64_x86_64_finish_dynamic_sections): Likewise.
994 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
996 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
998 * Makefile.am (install-data-local): Make use of $(DESTDIR).
999 * Makefile.in: Regenerate.
1001 2001-01-21 Kazu Hirata <kazu@hxi.com>
1003 * coff-a29k.c: Fix formatting.
1005 2001-01-19 H.J. Lu <hjl@gnu.org>
1007 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1008 relocation section names.
1009 (elf_i386_relocate_section): Report files with bad relocation
1010 section names and return false.
1012 2001-01-17 Bo Thorsen <bo@suse.de>
1014 * targets.c: Alphabetize list of xvecs.
1016 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1018 * config.bfd: Add linux target variant for elfxx-hppa.
1019 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1020 bfd_elf64_hppa_linux_vec.
1021 * configure: Regenerate.
1022 * elf64-hppa.c: Include elf64-target.h again to support linux
1024 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1025 * elf32-hppa.c: Include elf32-target.h again to support linux
1027 (elf32_hppa_post_process_headers): New function.
1028 (elf_backend_post_process_headers): Define.
1029 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1030 bfd_elf32_hppa_linux_vec.
1032 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1033 and data_segment_base fields.
1034 (elf32_hppa_link_hash_table_create ): Init them.
1035 (elf32_hppa_check_relocs): Update comments.
1036 (hppa_record_segment_addr): New function.
1037 (elf32_hppa_relocate_section): Call it.
1038 (final_link_relocate): Handle R_PARISC_SEGREL32.
1039 (elf32_hppa_final_link): New function.
1040 (bfd_elf32_bfd_final_link): Define to call it.
1041 (hppa_unwind_entry_compare): New function.
1042 * cache.c (bfd_open_file): Create files in write+read mode.
1044 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1045 SEGREL32 and numerous other relocs. Change duplicate
1046 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1048 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1051 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1052 .plt entries for DT_INIT and DT_FINI.
1053 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1054 DT_INIT and DT_FINI.
1056 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1057 offsets for stub .plt access if wide mode. Check offset in range.
1059 2001-01-13 Nick Clifton <nickc@redhat.com>
1061 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1064 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1067 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1069 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1070 * configure: Regenerate.
1072 2001-01-11 Peter Targett <peter.targett@arccores.com>
1074 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1075 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1076 * cpu-arc.c (arch_info_struct): Add entries for variants.
1077 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1078 (arc_get_mach) Don't assume machine names prefixed arc- before
1080 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1082 (arc_elf_final_write_processing) Likewise.
1083 (ELF_MACHINE_CODE) Use EM_ARC.
1085 2001-01-10 Nick Clifton <nickc@redhat.com>
1087 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1089 2001-01-07 Philip Blundell <philb@gnu.org>
1091 * README: Replace `bug-gnu-utils@gnu.org' with
1092 `bug-binutils@gnu.org'.
1094 2001-01-04 Kazu Hirata <kazu@hxi.com>
1096 * som.c: Fix formatting.
1098 2001-01-03 Kazu Hirata <kazu@hxi.com>
1100 * ecoffswap.h: Fix formatting.
1101 * elf-bfd.h: Likewise.
1102 * elfarm-nabi.c: Likewise.
1103 * elfarm-oabi.c: Likewise.
1104 * elfcode.h: Likewise.
1105 * elfcore.h: Likewise.
1106 * elflink.c: Likewise.
1107 * elflink.h: Likewise.
1108 * elfxx-ia64.c: Likewise.
1109 * elfxx-target.h: Likewise.
1110 * libbfd.c: Likewise
1111 * linker.c: Likewise.
1112 * lynx-core.c: Likewise.
1114 2001-01-02 Kazu Hirata <kazu@hxi.com>
1116 * pc532-mach.c: Fix formatting.
1117 * pe-arm.c: Likewise.
1118 * pe-i386.c: Likewise.
1119 * pe-mips.c: Likewise.
1120 * pe-ppc.c: Likewise.
1121 * pe-sh.c: Likewise.
1122 * pei-mips.c: Likewise.
1123 * pei-sh.c: Likewise.
1124 * peicode.h: Likewise.
1125 * ppcboot.c: Likewise.
1126 * ptrace-core.c: Likewise.
1128 2001-01-01 Kazu Hirata <kazu@hxi.com>
1130 * reloc.c: Fix formatting.
1131 * riscix.c: Likewise.
1132 * rs6000-core.c: Likewise.
1133 * xcoff-target.h: Likewise.
1135 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1137 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1138 error, by calling bfd_default_set_arch_mach with incoming
1141 2000-12-26 Kazu Hirata <kazu@hxi.com>
1143 * vaxnetbsd.c: Fix formatting.
1144 * versados.c: Likewise.
1145 * vms-gsd.c: Likewise.
1146 * vms-hdr.c: Likewise.
1147 * vms-misc.c: Likewise.
1149 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1151 * archive.c (coff_write_armap): Don't write more than symbol_count
1152 `archive_member_file_ptr's.
1154 2000-12-25 Kazu Hirata <kazu@hxi.com>
1156 * vms-tir.c: Fix formatting.
1158 2000-12-23 Kazu Hirata <kazu@hxi.com>
1160 * vms.c: Fix formatting.
1163 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1165 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1167 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1169 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1172 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1174 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1176 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1178 * libbfd.c (bfd_get_bits): Added
1179 (bfd_put_bits): Likewise
1180 * bfd-in.h: Declared the above.
1181 * bfd-in2.h: Regenerated.
1183 2000-12-20 Kazu Hirata <kazu@hxi.com>
1185 * targets.c: Fix formatting.
1186 * tekhex.c: Likewise.
1187 * trad-core.c: Likewise.
1189 2000-12-19 Kazu Hirata <kazu@hxi.com>
1191 * sco5-core.c: Fix formatting.
1192 * section.c: Likewise.
1193 * sparclinux.c: Likewise.
1194 * sparclynx.c: Likewise.
1195 * sparcnetbsd.c: Likewise.
1197 * stabs.c: Likewise.
1198 * stab-syms.c: Likewise.
1199 * sunos.c: Likewise.
1201 * sysdep.h: Likewise.
1203 2000-12-18 Nick Clifton <nickc@redhat.com>
1205 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1207 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1208 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1210 2000-12-18 Nick Clifton <nickc@redhat.com>
1212 * vms-misc.c (_bfd_vms_get_record): Add default case to
1215 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1217 * elfcore.h (elf_core_file_p): Move to the start of the program
1218 headers before attempting to read them.
1220 2000-12-14 Kazu Hirata <kazu@hxi.com>
1222 * peigen.c: Fix formatting.
1226 2000-12-13 Kazu Hirata <kazu@hxi.com>
1228 * peigen.c: Fix formatting.
1230 2000-12-12 Jim Wilson <wilson@redhat.com>
1232 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1234 2000-12-08 Mark Salter <msalter@redhat.com>
1236 * binary.c (binary_set_section_contents): Ignore sections
1239 2000-12-12 Kazu Hirata <kazu@hxi.com>
1241 * m68klinux.c: Fix formatting.
1242 * m68knetbsd.c: Likewise.
1243 * mipsbsd.c: Likewise.
1244 * netbsd-core.c: Likewise.
1245 * netbsd.h: Likewise.
1246 * newsos3.c: Likewise.
1247 * nlm32-alpha.c: Likewise.
1248 * nlm32-i386.c: Likewise.
1249 * nlm32-ppc.c: Likewise.
1250 * nlm32-sparc.c: Likewise.
1251 * nlmcode.h: Likewise.
1252 * nlmswap.h: Likewise.
1253 * nlm-target.h: Likewise.
1254 * ns32knetbsd.c: Likewise.
1256 2000-12-10 Fred Fish <fnf@be.com>
1258 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1259 symbols in shared objects if allow_shlib_undefined is true.
1261 2000-12-12 Nick Clifton <nickc@redhat.com>
1263 * cpu-sh.c: Fix formattng.
1264 * elf.c: Fix formattng.
1265 * elf32-mips.c: Fix formattng.
1266 * elf32-sh.c: Fix formattng.
1267 * elf64-alpha.c: Fix formattng.
1269 2000-12-09 Nick Clifton <nickc@redhat.com>
1271 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1272 dwarf2_find_line_info as last parameter to invocation of
1273 _bfd_dwarf2_find_nearest_line.
1274 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1275 dwarf2_find_line_info as last parameter to invocation of
1276 _bfd_dwarf2_find_nearest_line.
1278 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1280 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1281 (BFD_LIBS): ...to here.
1282 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1283 (BFD_LIBS_CFILES): ...to here.
1284 * Makefile.in: Regenerate.
1285 * configure.in: Remove dwarf.lo from the elf shell variable.
1286 * configure: Regenerate.
1287 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1288 * libcoff.h: Regenerate.
1289 * coffgen.c (coff_find_nearest_line): Call
1290 _bfd_dwarf2_find_nearest_line.
1291 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1293 (read_abbrevs): Likewise
1294 (decode_line_info): Likewise.
1295 (parse_comp_unit): Likewise.
1296 (comp_unit_find_nearest_line): Likewise.
1297 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1298 * libbfd.h: Regenerate.
1299 * elf.c (_bfd_elf_find_nearest_line): Update call.
1300 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1301 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1302 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1303 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1304 (styp_to_sec_flags): Handle DWARF2 sections.
1305 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1306 to _bfd_find_nearest_line.
1307 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1308 call to _bfd_find_nearest_line.
1310 2000-12-08 Kazu Hirata <kazu@hxi.com>
1312 * coffgen.c: Fix formatting.
1313 * elf-m10300.c: Likewise.
1314 * elf32-i386.c: Likewise.
1315 * elf32-i960.c: Likewise.
1316 * elf32-m68k.c: Likewise.
1317 * elf32-mcore.c: Likewise.
1318 * elf32-ppc.c: Likewise.
1319 * elf32-sh.c: Likewise.
1320 * elf32-sparc.c: Likewise.
1321 * elf32-v850.c: Likewise.
1322 * elf64-alpha.c: Likewise.
1323 * elf64-hppa.c: Likewise.
1324 * elf64-mips.c: Likewise.
1325 * elf64-sparc.c: Likewise.
1327 2000-12-07 Kazu Hirata <kazu@hxi.com>
1329 * elf32-ppc.c: Fix formatting.
1330 * elf64-x86-64.c: Likewise.
1332 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1334 From Ralf Baechle <ralf@gnu.org>
1336 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1337 BFDs containing no sections or empty .text, .data or .bss sections
1338 to be merged, regardless of their flags.
1340 2000-12-06 Kazu Hirata <kazu@hxi.com>
1342 * elf32-m32r.c: Fix formatting.
1343 * elf32-m68hc11.c: Likewise.
1344 * elf32-m68hc12.c: Likewise.
1345 * elf32-m68k.c: Likewise.
1346 * elf32-mcore.c: Likewise.
1347 * elf32-pj.c: Likewise.
1348 * elf32-ppc.c: Likewise.
1350 2000-12-05 Kazu Hirata <kazu@hxi.com>
1352 * elf32-fr30.c: Fix formatting.
1353 * elf32-hppa.c: Likewise.
1354 * elf32-i370.c: Likewise.
1355 * elf32-i386.c: Likewise.
1356 * elf32-i860.c: Likewise.
1357 * elf32-i960.c: Likewise.
1359 2000-12-03 Kazu Hirata <kazu@hxi.com>
1361 * elf32-arm.h: Fix formatting.
1362 * elf32-avr.c: Likewise.
1363 * elf32-cris.c: Likewise.
1364 * elf32-d10v.c: Likewise.
1365 * elf32-d30v.c: Likewise.
1366 * elf-hppa.h: Likewise.
1367 * elf-m10200.c: Likewise.
1368 * elf-m10300.c: Likewise.
1370 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1372 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1373 bfd_mach_mips32_4k. Update FIXME comment.
1374 * archures.c (bfd_mach_mips32): New constant.
1375 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1376 the latter, renumber it.
1377 * bfd-in2.h (bfd_mach_mips32): New constant.
1378 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1379 the latter, renumber it.
1380 * cpu-mips.c (I_mips32): New constant.
1381 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1382 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1383 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1384 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1385 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1386 with E_MIPS_MACH_MIPS32_4K.
1387 (_bfd_mips_elf_final_write_processing): Replace
1388 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1389 bfd_mach_mips32 case.
1390 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1391 comparison with support for MIPS32.
1392 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1395 * aoutx.h (NAME(aout,machine_type)): Add cases for
1396 bfd_mach_mips5 and bfd_mach_mips64.
1397 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1398 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1399 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1400 (arch_info_struct): Add entries for bfd_mach_mips5 and
1402 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1403 _bfd_mips_elf_print_private_bfd_data): Add cases for
1404 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1405 (_bfd_mips_elf_final_write_processing): Add cases for
1406 bfd_mach_mips5 and bfd_mach_mips64.
1408 * aoutx.h (NAME(aout,machine_type)): Add a
1409 bfd_mach_mips_sb1 case.
1410 * archures.c (bfd_mach_mips_sb1): New constant.
1411 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1412 * cpu-mips.c (I_sb1): New constant.
1413 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1414 * elf32-mips.c (elf_mips_mach): Add case for
1416 (_bfd_mips_elf_final_write_processing): Add case for
1419 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1421 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1422 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1423 (sparc*-*-rtems*): Switched from a.out to ELF.
1425 2000-11-30 Jan Hubicka <jh@suse.cz>
1427 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1428 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1429 (elf64-x86-64.lo): Add dependencies.
1430 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1431 bfd_mach_x86_64_intel_syntax.
1432 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1433 * config.bfd (x86_64): Add.
1434 * configure.in: Add support for bfd_elf64_x86_64_vec.
1435 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1436 (bfd_i386_arch, i8086_ar): Link in.
1437 * elf64-x86-64.c: New file.
1438 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1439 * targets.c (bfd_elf64_x86_64_vec): Add.
1440 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1442 2000-11-30 Kazu Hirata <kazu@hxi.com>
1444 * xcofflink.c: Fix formatting.
1446 2000-11-28 Kazu Hirata <kazu@hxi.com>
1448 * aoutx.h: Fix formatting.
1449 * bfd-in.h: Likewise.
1450 * bfd-in2.h: Likewise.
1451 * cache.c: Likewise.
1452 * cisco-core.c: Likewise.
1453 * coff64-rs6000.c: Likewise.
1454 * coffcode.h: Likewise.
1455 * coffswap.h: Likewise.
1456 * corefile.c: Likewise.
1457 * elf32-mips.c: Likewise.
1459 2000-11-27 Kazu Hirata <kazu@hxi.com>
1461 * aout-adobe.c: Fix formatting.
1462 * coff64-rs6000.c: Likewise.
1463 * coffgen.c: Likewise.
1464 * cofflink.c: Likewise.
1466 2000-11-27 Philip Blundell <pb@futuretv.com>
1468 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1469 (obj_coff_strings_written): New accessor macro for above.
1470 * libcoff.h: Regenerate.
1471 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1473 * coffcode.h (coff_write_object_contents): No need to write out
1474 the string table if it's already been done.
1476 2000-11-22 Philip Blundell <pb@futuretv.com>
1478 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1479 weak undefined symbols.
1481 2000-11-24 Nick Clifton <nickc@redhat.com>
1483 * archures.c (bfd_mach_arm_5TE): Define.
1484 (bfd_mach_arm+XScale): Define.
1485 * bfd-in2.h: Regenerate.
1487 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1488 BFD_RELOC_ARM_PCREL_BLX.
1490 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1491 XScale machine numbers.
1493 * config.bfd (xscale-elf): Add target.
1494 (xscale-coff): Add target.
1496 * cpu-arm.c: Add xscale machine name.
1497 Add v5t, v5te and XScale machine numbers.
1499 2000-11-23 Kazu Hirata <kazu@hxi.com>
1501 * aix386-core.c: Fix formatting.
1503 2000-11-22 Jim Wilson <wilson@redhat.com>
1505 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1506 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1507 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1508 (ins_imms_scaled): Initialize sign_bit at function entry.
1509 (elf64_ia64_operands): Add missing initializers.
1510 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1511 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1512 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1513 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1514 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1516 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1517 and free_extsyms at function entry.
1518 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1519 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1520 (get_got): Delete unused local srel.
1521 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1522 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1524 2000-11-21 Kazu Hirata <kazu@hxi.com>
1526 * coff-a29k.c: Fix formatting.
1527 * coff-h8500.c: Likewise.
1528 * coff-i960.c: Likewise.
1529 * coff-ppc.c: Likewise.
1530 * coff-rs6000.c: Likewise.
1531 * coff-stgo32.c: Likewise.
1532 * coff-tic54x.c: Likewise.
1533 * coff-w65.c: Likewise.
1534 * cpu-h8500.c: Likewise.
1535 * cpu-hppa.c: Likewise.
1536 * cpu-ns32k.c: Likewise.
1537 * ecoff.c: Likewise.
1538 * ecofflink.c: Likewise.
1540 2000-11-21 Nick Clifton <nickc@redhat.com>
1542 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1543 remove possibility of infinite loop.
1545 2000-11-20 Kazu Hirata <kazu@hxi.com>
1547 * aix386-core.c: Fix formatting.
1548 * aout-adobe.c: Likewise.
1549 * aout-arm.c: Likewise.
1550 * aout-encap.c: Likewise.
1551 * aout-ns32k.c: Likewise.
1552 * aout-target.h: Likewise.
1553 * aout-tic30.c: Likewise.
1554 * aoutf1.h: Likewise.
1555 * aoutx.h: Likewise.
1556 * archive.c: Likewise.
1557 * bfd-in.h: Likewise.
1558 * bfd-in2.h: Likewise.
1562 2000-11-17 H.J. Lu <hjl@gnu.org>
1564 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1565 pltoff entries for DT_INIT and DT_FINI.
1566 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1567 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1570 2000-11-16 Richard Henderson <rth@redhat.com>
1572 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1573 (allocate_dynrel_entries): Likewise.
1574 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1575 (set_pltoff_entry): Likewise.
1576 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1577 (elfNN_ia64_reloc_type_lookup): Likewise.
1578 (elfNN_ia64_install_value): Likewise.
1579 (elfNN_ia64_relocate_section): Likewise.
1580 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1581 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1583 2000-11-16 Kazu Hirata <kazu@hxi.com>
1585 * cpu-a29k.c: Fix formatting.
1586 * cpu-alpha.c: Likewise.
1587 * cpu-arm.c: Likewise.
1588 * cpu-avr.c: Likewise.
1589 * cpu-d10v.c: Likewise.
1590 * cpu-h8500.c: Likewise.
1591 * cpu-hppa.c: Likewise.
1592 * cpu-i370.c: Likewise.
1593 * cpu-i386.c: Likewise.
1594 * cpu-i960.c: Likewise.
1595 * cpu-ia64-opc.c: Likewise.
1596 * cpu-ia64.c: Likewise.
1597 * cpu-m32r.c: Likewise.
1598 * cpu-m68hc11.c: Likewise.
1599 * cpu-m68hc12.c: Likewise.
1600 * cpu-m68k.c: Likewise.
1601 * cpu-m88k.c: Likewise.
1602 * cpu-mips.c: Likewise.
1603 * cpu-ns32k.c: Likewise.
1604 * cpu-pj.c: Likewise.
1605 * cpu-powerpc.c: Likewise.
1606 * cpu-sh.c: Likewise.
1607 * cpu-sparc.c: Likewise.
1608 * cpu-tic54x.c: Likewise.
1609 * cpu-v850.c: Likewise.
1610 * cpu-vax.c: Likewise.
1611 * cpu-w65.c: Likewise.
1612 * cpu-we32k.c: Likewise.
1613 * cpu-z8k.c: Likewise.
1614 * dwarf1.c: Likewise.
1615 * dwarf2.c: Likewise.
1617 2000-11-15 Kazu Hirata <kazu@hxi.com>
1619 * coff-arm.c: Fix formatting.
1620 * coff-ppc.c: Likewise.
1621 * coff-rs6000.c: Likewise.
1622 * coff-sh.c: Likewise.
1623 * coff-sparc.c: Likewise.
1624 * coff-tic30.c: Likewise.
1625 * coff-tic54x.c: Likewise.
1626 * coff-tic80.c: Likewise.
1627 * coff-w65.c: Likewise.
1628 * coff-we32k.c: Likewise.
1629 * coff-z8k.c: Likewise.
1631 2000-11-15 Richard Henderson <rth@redhat.com>
1633 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1634 section with the same ALLOC|LOAD flags as the source section.
1636 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1638 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1639 by STO_ALPHA constants.
1641 2000-11-14 Kazu Hirata <kazu@hxi.com>
1643 * coff-pmac.c: Fix formatting.
1644 * coff-ppc.c: Likewise.
1646 2000-11-13 H.J. Lu <hjl@gnu.org>
1648 * elflink.h (elf_link_add_object_symbols): Also add indirect
1649 symbols for common symbols with the default version.
1651 2000-11-09 Philip Blundell <pb@futuretv.com>
1653 * section.c (STD_SECTION): Set gc_mark flag.
1655 2000-11-11 Kazu Hirata <kazu@hxi.com>
1657 * coff-i960.c: Likewise.
1658 * coff-m68k.c: Likewise.
1659 * coff-m88k.c: Likewise.
1660 * coff-mcore.c: Likewise.
1661 * coff-mips.c: Likewise.
1663 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1665 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1667 2000-11-10 Kazu Hirata <kazu@hxi.com>
1669 * coff-h8300.c: Fix formatting.
1670 * coff-h8500.c: Likewise.
1671 * coff-i386.c: Likewise.
1672 * coff-i860.c: Likewise.
1673 * coff-i960.c: Likewise.
1674 * coff-ia64.c: Likewise.
1676 2000-11-09 Kazu Hirata <kazu@hxi.com>
1678 * archive.c: Fix formatting.
1679 * archures.c: Likewise.
1681 2000-11-07 Richard Henderson <rth@redhat.com>
1683 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1684 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1685 * section.c (bfd_set_section_contents): Call memcpy if
1686 section->contents set and location not equal to contents plus offset.
1688 2000-11-08 Kazu Hirata <kazu@hxi.com>
1690 * bfd-in.h: Fix formatting.
1691 * bfd-in2.h: Likewise.
1693 * binary.c: Likewise.
1695 * coff-a29k.c: Likewise.
1696 * coff-alpha.c: Likewise.
1697 * coff-apollo.c: Likewise.
1698 * coff-aux.c: Likewise.
1700 2000-11-07 Kazu Hirata <kazu@hxi.com>
1702 * aix386-core.c: Fix formatting.
1703 * aoutf1.h: Likewise.
1704 * aoutx.h: Likewise.
1705 * archures.c: Likewise.
1706 * armnetbsd.c: Likewise.
1708 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1710 * coff-h8300.c (special): Adjust reloc address.
1712 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1714 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1715 to differentiate elf32 and elf64 on ia64.
1716 * bfd-in2.h: Regenerate.
1717 * config.bfd: Add target for "ia64*-*-hpux*".
1718 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1719 * configure: Regenerate.
1720 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1721 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1723 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1724 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1725 * Makefile.in: Regnerate.
1726 * elf64-ia64.c: Deleted.
1727 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1729 2000-11-06 Kazu Hirata <kazu@hxi.com>
1731 * aout-adobe.c: Fix formatting.
1732 * aout-arm.c: Likewise.
1733 * aout-cris.c: Likewise.
1734 * aout-encap.c: Likewise.
1735 * aout-ns32k.c: Likewise.
1736 * aout-target.h: Likewise.
1737 * aout-tic30.c: Likewise.
1739 2000-11-05 Philip Blundell <philb@gnu.org>
1741 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1742 BFDs containing no sections to be merged, regardless of their flags.
1744 2000-11-04 Philip Blundell <philb@gnu.org>
1746 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1747 if a relocation for an undefined symbol also results in an
1750 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1752 * config.bfd: Add support for Sun Chorus.
1754 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1756 * configure.in: Recognize alpha-*-freebsd*.
1757 * configure: Regenerate.
1759 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1761 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1762 (Chunk): New global variable set by a parameter in objcopy.c.
1763 (S3Forced): New global variable set by a parameter in
1765 (srec_set_section_contents): If S3Forced is true, always generate
1767 (srec_write_section): Use 'Chunk' to limit maximum length of S
1770 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1772 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1773 * Makefile.in: Regenerate.
1774 * bfd-in2.h: Regenerate.
1775 * po/bfd.pot: Regenerate.
1777 2000-10-31 Philip Blundell <philb@gnu.org>
1779 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1780 EF_SOFT_FLOAT if it is defined.
1782 2000-10-27 Philip Blundell <philb@gnu.org>
1784 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1785 attempts to mix PIC code with non-PIC, just mark the output as
1786 being position dependent.
1787 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1788 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1789 all mismatches, not just the first one.
1791 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1793 * ieee.c (ieee_archive_p): Plug one of many possible
1794 memory leaks in error handling.
1796 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1798 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1799 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1801 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1802 sparc64_elf_object_p): Support v9b.
1803 * archures.c: Declare v8plusb and v9b machines.
1805 * cpu-sparc.c: Ditto.
1807 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1809 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1812 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1813 (SYMBOL_CALLS_LOCAL): New macro.
1814 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1815 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1816 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1817 (ppc_elf_relocate_section): Use flag variable to determine
1818 whether the relocation refers to a local symbol.
1819 Test whether a PLTREL24 reloc will produce a reloc by looking
1820 to see whether a PLT entry was made.
1822 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1824 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1825 entries that could serve as a definition for a weak symbol.
1827 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1829 From Ralf Baechle <ralf@gnu.org>
1831 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1832 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1833 against local symbols.
1834 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1836 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1838 * section.c (struct sec): Add kept_section.
1839 (struct bfd_comdat_info): Remove sec, we can use above.
1840 (STD_SECTION): Add initializer.
1841 (bfd_make_section_anyway): Init here too.
1843 * bfd-in2.h: Regenerate.
1845 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1847 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1848 fudge values for discarded link-once section symbols.
1850 * elf64-hppa.c: Include alloca-conf.h
1852 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1854 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1856 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1858 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1860 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1862 2000-10-10 Tom Rix <trix@redhat.com>
1864 * section.c (bfd_make_section_anyway): Release newsect ptr when
1865 newsect->symbol fails to alloc. Use bfd_release instead of free.
1867 2000-10-09 Richard Henderson <rth@cygnus.com
1869 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1870 (elf64_ia64_unwind_entry_compare): New.
1871 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1873 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1875 * elflink.h (size_dynamic_sections): Don't create various tags if
1876 .dynstr is excluded from the link. Don't set first dynsym entry
1877 if dynsymcount is zero.
1878 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1879 .dynsym excluded from the link. Don't try to write any dynamic
1880 sections excluded from the link.
1882 * elf.c (swap_out_syms): Handle global section symbols.
1884 2000-10-05 DJ Delorie <dj@redhat.com>
1886 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1887 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1888 (coff_write_relocs): write extended reloc count
1889 (coff_write_object_contents): account for extended relocs
1891 2000-10-05 Jim Wilson <wilson@cygnus.com>
1893 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1895 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1896 elf_backend_section_flags function.
1897 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1899 (elf64_ia64_section_flags): New function containing flag conversion
1901 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1902 * elfxx-target.h (elf_backend_section_flags): Define.
1903 (elfNN_bed): Initialize elf_backend_section_flags field.
1905 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1907 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1908 _bfd_elf32_gc_record_vtable. Correct a comment.
1910 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1912 From Ralf Baechle <ralf@gnu.org>
1914 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1915 produces binaries with got[1] = 0x80000001 to differenciate them
1916 for the dynamic linker from the broken binaries produced by old
1919 2000-09-30 Petr Sorfa <petrs@sco.com>
1921 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1922 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1923 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1924 * configure: Regenerate.
1926 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1928 Define two bfd_targets for absence and presence of leading
1929 underscore on symbols. Make sure to only link same kind.
1930 * elf32-cris.c (cris_elf_object_p,
1931 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1932 cris_elf_merge_private_bfd_data): New.
1933 (elf_backend_object_p, elf_backend_final_write_processing,
1934 bfd_elf32_bfd_print_private_bfd_data,
1935 bfd_elf32_bfd_merge_private_bfd_data): Define.
1936 <Target vector definition>: Include elf32-target.h twice with
1937 different macro settings:
1938 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1939 bfd_elf32_us_cris_vec.
1940 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1941 (elf_symbol_leading_char): First as 0, then '_'.
1942 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1943 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1944 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1945 * configure: Regenerate.
1946 * targets.c: Declare bfd_elf32_us_cris_vec.
1947 * po/bfd.pot: Regenerate.
1949 2000-09-29 Momchil Velikov <velco@fadata.bg>
1951 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1952 R_ARM_THM_PC22 relocations.
1954 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1956 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1958 2000-09-29 Momchil Velikov <velco@fadata.bg>
1960 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1961 is has the SEC_HAS_CONTENTS flag set.
1963 2000-09-28 Örjan Friberg <orjanf@axis.com>
1964 Hans-Peter Nilsson <hp@axis.com>
1966 * aout-cris.c (N_TXTADDR): Define.
1968 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1970 * som.c: Include alloca-conf.h.
1971 * Makefile.am: "make dep-am"
1972 * Makefile.in: Regenerate.
1974 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1976 * elf32-hppa.c (plt_stub): New.
1977 (PLT_STUB_ENTRY): Define.
1978 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1979 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1980 (elf32_hppa_link_hash_table_create): Init to suit.
1981 (elf32_hppa_check_relocs): Set has_12bit_branch and
1982 has_17bit_branch as appropriate.
1983 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1984 non-local functions.
1985 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1986 Add space for plt_stub as needed.
1987 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1988 functions at plt_stub.
1989 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1990 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1992 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1993 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1994 of fixed size, and if negative, disable handling of input sections
1995 before stub section. Set up default stub group size depending
1996 on detected branch relocs.
1997 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1998 ensure different offsets from sym_value aren't rounded to
1999 different 2k blocks. Use lrsel and rrsel for other stubs too for
2000 consistency rather than necessity.
2001 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2002 (final_link_relocate): Likewise.
2003 (elf32_hppa_relocate_section): Likewise.
2005 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2006 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2007 (elf_hppa_final_link_relocate): Handle them.
2008 (elf_hppa_relocate_insn): Likewise.
2009 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2011 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2013 * elfcode.h (elf_object_p): Preserve and clear abfd section
2014 information. Restore at error.
2016 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2018 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2019 is empty, make sure that its rva also 0. NT loader dislikes
2022 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2024 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2027 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2029 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2030 currently unused RELATIVE_DYNAMIC_RELOCS code.
2031 (hppa_discard_copies): Likewise.
2032 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2033 comments. Don't check non-code output sections for stub grouping.
2035 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2037 * section.c (bfd_get_unique_section_name): Return NULL if
2040 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2042 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2043 instruction sequence to actually work.
2044 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2047 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2049 * elf32-sh.c (sh_elf_relocate_section): Use
2050 _bfd_final_link_relocate to apply the relocation against a section
2051 symbol, when doing relocatable links.
2053 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2055 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2057 (stub_hash_newfunc): Here too.
2058 (hppa_add_stub): And here.
2059 (elf32_hppa_link_hash_table): Remove stub_section_created,
2060 reloc_section_created, first_init_sec and first_fini_sec. Add
2062 (elf32_hppa_link_hash_table_create): Init to suit.
2063 (hppa_get_stub_entry): Add support for grouping stub sections.
2064 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2065 section code. Index stub vars by section->id.
2066 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2067 exit paths. Zap allocation of above removed vars. Refine
2070 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2071 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2072 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2073 rather than pointer to bfd_link_info.
2074 (hppa_add_stub): Likewise.
2075 (final_link_relocate): Likewise.
2077 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2079 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2082 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2084 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2085 ld/emulparams/shelf.sh.
2087 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2089 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2090 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2091 * bfd-in2.h: Regenerate.
2093 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2095 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2096 LITUSE relocations incorrectly if -relax is specified on the ld
2097 command line and the displacement field of the load or store
2098 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2100 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2102 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2103 first_fini_sec here.
2104 (elf32_hppa_size_stubs): Instead correctly find the first .init
2105 and .fini section here.
2107 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2109 * elf32-hppa.c (clobber_millicode_symbols): New function.
2110 (elf32_hppa_size_dynamic_sections): Call it.
2112 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2114 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2115 packed. Add plabel, plt_abs packed booleans.
2116 (hppa_link_hash_newfunc): Init new fields.
2117 (PLABEL_PLT_ENTRY_SIZE): Define.
2118 (hppa_stub_name): Use size_t len vars.
2119 (hppa_add_stub): Likewise.
2120 (elf32_hppa_build_stubs): Likewise.
2121 (hppa_build_one_stub): Kill some compiler warnings.
2122 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2123 if dynamic linking. Munge the local plt offsets into
2124 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2125 size_t len vars. Add assert for plabel addend.
2126 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2127 (elf32_hppa_hide_symbol): New function.
2128 (elf_backend_hide_symbol): Define.
2129 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2130 with h->plabel set. Don't make plt entries to have dynamic syms
2131 when they have been forced local. If plt entry is used by a
2132 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2133 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2134 Set up .plt offsets for local syms.
2135 (elf32_hppa_relocate_section): Initialise plt entries for local
2136 syms. Leave weak undefined plabels zero. Make global plabel
2137 relocs against function symbol, and leave the addend zero.
2138 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2139 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2140 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2141 relocs instead of SEGREL32 for dynamic got relocs.
2142 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2143 (elf_backend_got_header_size): Adjust.
2144 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2146 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2147 (hppa_type_of_stub): Use it instead of #if 0
2148 (hppa_discard_copies): Use it here too.
2149 (elf32_hppa_size_dynamic_sections): And here.
2151 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2152 (elf32_hppa_link_hash_table_create): And here.
2153 (hppa_build_one_stub): And here. Instead keep track of stub
2154 offset using _raw_size.
2155 (elf32_hppa_size_stubs): Likewise.
2156 (elf32_hppa_build_stubs): Likewise.
2157 (hppa_size_one_stub): Likewise. Resize reloc section too.
2159 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2160 first_fini_sec handling. Don't search for reloc section or set
2161 hplink->reloc_section_created here.
2162 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2163 set reloc_section_created here.
2164 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2165 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2167 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2169 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2170 with `hplink->root.'.
2171 (elf32_hppa_check_relocs): Likewise.
2172 (elf32_hppa_gc_sweep_hook): Likewise.
2173 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2174 (hppa_handle_PIC_calls): Likewise.
2175 (elf32_hppa_size_dynamic_sections): Likewise.
2176 (elf32_hppa_set_gp): Likewise.
2177 (elf32_hppa_relocate_section): Likewise.
2178 (elf32_hppa_finish_dynamic_symbol): Likewise.
2179 (elf32_hppa_finish_dynamic_sections): Likewise.
2181 From David Huggins-Daines <dhd@linuxcare.com>
2182 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2183 defined weak symbols in shared links.
2184 (final_link_relocate): Calls to defined weak symbols in shared
2185 objects must go via import stubs, as the target might not be known
2188 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2190 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2191 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2192 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2193 the original entries with EMPTY_HOWTOs, and added new ones to fill
2195 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2196 (sh_elf_relocate_section): Likewise.
2198 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2200 * cpu-mips.c (arch_info_struct): Add mips:4K
2201 * bfd-in2.h (bfd_mach_mips4K): New define.
2202 * archures.c: Add bfd_mach_mips4K to comment.
2203 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2204 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2206 2000-09-13 Marco Franzen <marcof@thyron.com>
2208 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2209 use size_t as a counter.
2210 (som_write_space_strings): Similarly.
2212 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2214 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2216 (elf32_i860_relocate_section): Invoke new function from here.
2218 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2220 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2223 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2225 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2226 target section name instead of dumping core when the target symbol is
2229 2000-09-09 Kazu Hirata <kazu@hxi.com>
2231 * riscix.c: Remove DEFUN.
2233 2000-09-08 Nick Clifton <nickc@redhat.com>
2235 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2236 initialise flags in output bfd if the input bfd is the default
2237 architecture with the default flags.
2239 2000-09-08 Kazu Hirata <kazu@hxi.com>
2241 * archive.c: Fix formatting.
2242 * coff-arm.c: Likewise.
2243 * doc/chew.c: Likewise.
2245 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2247 * section.c (bfd_get_unique_section_name): Put a dot before the
2250 2000-09-07 Kazu Hirata <kazu@hxi.com>
2252 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2253 * elf.c: Fix formatting.
2255 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2257 * config.bfd (sh-*-linux*): Added.
2258 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2259 * targets.c: Declare them.
2260 * elf32-sh-lin.c: New file.
2261 * Makefile.am: Compile it.
2262 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2263 * configure, Makefile.in: Rebuilt.
2265 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2267 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2268 pseduo-section when determining where the TOC ends.
2270 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2271 output x_tvndx as it is only two bytes wide.
2273 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2274 reloc is 26 or 32 bits wide.
2276 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2277 for relocs that don't change anything. Also look at the full
2280 2000-09-06 Philip Blundell <philb@gnu.org>
2282 * config.bfd (arm*-*-uclinux*): New target.
2284 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2286 * configure: Rebuilt with new libtool.m4.
2288 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2290 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2291 word for variable name.
2292 * bfd-in2.h: Regenerate.
2294 2000-09-05 Nick Clifton <nickc@redhat.com>
2296 * config.in: Regenerate.
2297 * libbfd.h: Regenerate.
2298 * po/bfd.pot: Regenerate.
2299 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2302 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2304 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2306 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2308 Shared library and PIC support.
2309 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2310 (GOT_ENTRY_SIZE): New.
2311 (ELF_DYNAMIC_INTERPRETER): New.
2312 (STUB_SUFFIX): Define.
2313 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2314 (RELATIVE_DYNAMIC_RELOCS): Define.
2315 (enum elf32_hppa_stub_type): New.
2316 (struct elf32_hppa_stub_hash_entry): Rename offset to
2317 stub_offset. Add a number of new fields.
2318 (struct elf32_hppa_link_hash_entry): New.
2319 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2321 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2322 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2323 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2325 (hppa_link_hash_newfunc): New function.
2326 (elf32_hppa_link_hash_table_create): Use above function. Init new
2328 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2329 instead of addend, and remove sym_name from args. Don't use
2330 symbol name for local syms, instead use sym index.
2331 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2332 stub type rather than size. Pass in hash and handle import stub
2333 case. Also pass in reloc instead of offset so we can calculate
2334 PCREL22F and PCREL12F branches properly.
2335 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2336 import and export stubs too.
2337 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2338 import and export stub sizing.
2339 (elf32_hppa_check_relocs): New function.
2340 (elf32_hppa_adjust_dynamic_symbol): New function.
2341 (hppa_discard_copies): New function.
2342 (elf32_hppa_size_dynamic_sections): New function.
2343 (elf_backend_size_dynamic_sections): Define.
2344 (elf32_hppa_finish_dynamic_symbol): New function.
2345 (elf_backend_finish_dynamic_symbol): Define.
2346 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2347 some local vars into the link hash table too. For shared links,
2348 trundle over function syms, generating export stubs. Handle
2349 PCREL22F branches. Break out stub creation code from here..
2350 (hppa_add_stub): .. to here. New function.
2351 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2352 call the bfd linker. Use elf_gp to record global pointer.
2353 Calculate a value from sections if $global$ is missing.
2354 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2355 (elf32_hppa_gc_mark_hook): New function.
2356 (elf_backend_gc_mark_hook): Define.
2357 (elf32_hppa_gc_sweep_hook): New function.
2358 (elf_backend_gc_sweep_hook): Define.
2359 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2360 Add rel to args, and remove howto, input_bfd, offset, addend,
2361 sym_name as we can recalculate these locally. Handle calls to
2362 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2363 handling of undefined weak syms. Check that stubs are in range.
2364 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2365 message on hitting a DPREL21L reloc that needs fixing. Subtract
2366 off PC for PCREL14F. Break out code that does a stub lookup from
2368 (hppa_get_stub_entry): ..to here. New function.
2369 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2370 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2372 (elf32_hppa_finish_dynamic_sections): New function.
2373 (elf_backend_finish_dynamic_sections): Define.
2374 (elf_backend_final_write_processing) Define.
2375 (hppa_handle_PIC_calls): New function.
2376 (elf32_hppa_build_stubs): Call it. Pass link_info to
2377 hppa_build_one_stub.
2378 (elf32_hppa_create_dynamic_sections): New function
2379 to create .plt and .got then set .plt flags correctly.
2380 (elf_backend_create_dynamic_sections): Define.
2381 (elf32_hppa_object_p): New function.
2382 (elf_backend_object_p): Define.
2383 (elf32_hppa_elf_get_symbol_type): New function.
2384 (elf_backend_get_symbol_type): Define.
2385 (elf_backend_can_gc_sections): Define.
2386 (elf_backend_want_got_plt): Define.
2387 (elf_backend_plt_alignment): Set to 2.
2388 (elf_backend_plt_readonly): Define.
2389 (elf_backend_want_plt_sym): Define.
2390 (elf_backend_got_header_size): Reserve one entry.
2392 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2393 (elf32_hppa_size_stubs): Pass in multi_subspace.
2394 (elf32_hppa_set_gp): Declare.
2396 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2397 (bfd_get_unique_section_name): New function.
2398 * bfd-in2.h: Regenerate.
2400 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2401 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2404 From David Huggins-Daines <dhd@linuxcare.com>
2405 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2406 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2407 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2408 been updated in finish_dynamic_symbol before modifying function
2411 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2412 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2413 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2414 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2415 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2416 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2417 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2418 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2420 From David Huggins-Daines <dhd@linuxcare.com>
2421 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2422 style of local labels as well.
2424 2000-09-03 Philip Blundell <philb@gnu.org>
2426 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2427 references to undefined symbols in debugging sections.
2429 2000-09-02 H.J. Lu <hjl@gnu.org>
2431 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2432 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2433 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2436 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2438 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2439 (elf32_i860_is_local_label_name): New function and prototype.
2441 2000-09-02 Nick Clifton <nickc@redhat.com>
2443 * configure.in: Increase version number to 2.10.91.
2444 * configure: Regenerate.
2445 * aclocal.m4: Regenerate.
2446 * config.in: Regenerate.
2447 * po/bfd.pot: Regenerate.
2449 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2451 * elf.c (_bfd_elf_make_section_from_shdr): Add
2452 .gnu.linkobce.wi. to the list of debug section names.
2454 2000-09-02 Nick Clifton <nickc@redhat.com>
2456 * dwarf2.c (find_debug_info): New function: Locate a section
2457 containing dwarf2 debug information.
2458 (bfd_dwarf2_find_nearest_line): Find all sections containing
2459 debug information and include them in the stash.
2461 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2463 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2464 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2465 (sh_reloc_map): Add new relocs.
2466 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2467 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2468 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2469 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2471 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2472 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2473 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2474 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2475 New array constants.
2476 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2478 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2479 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2480 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2481 elf_sh_plt_reloc_offset): Define.
2482 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2483 elf_sh_link_hash_table): New structs.
2484 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2485 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2487 (elf_backend_create_dynamic_sections,
2488 bfd_elf32_bfd_link_hash_table_create,
2489 elf_backend_adjust_dynamic_symbol,
2490 elf_backend_size_dynamic_sections,
2491 elf_backend_finish_dynamic_symbol,
2492 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2493 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2494 elf_backend_got_header_size, elf_backend_plt_header_size):
2496 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2497 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2499 * bfd-in2.h, libbfd.h: Rebuilt.
2501 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2503 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2506 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2508 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2509 not initialized, set them to indicate the SH1 instruction set.
2511 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2513 * acinclude.m4: Include libtool and gettext macros from the
2515 * aclocal.m4, configure: Rebuilt.
2517 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2519 * elf.c: Eliminate references to __sparcv9 macro; replace with
2520 autoconf variables HAVE_PSINFO32_T etc.
2521 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2522 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2524 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2525 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2526 * aclocal.m4: Ditto.
2527 * configure: Regenerate.
2529 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2531 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2532 for any shared link, not just shared -Bsymbolic.
2533 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2534 any shared link, and pass link info to it.
2535 (elf_i386_size_dynamic_sections): Update comment.
2536 (elf_i386_discard_copies): Modify to discard relocs for symbols
2537 that have been forced local.
2538 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2539 that have been forced local.
2541 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2543 * elflink.h (elf_link_add_object_symbols): Allow common
2544 symbols to have an alignment of 1 if explicitly requested, and
2545 not overridden by other definitions.
2547 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2549 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2550 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2552 2000-08-22 H.J. Lu <hjl@gnu.org>
2554 * elf-bfd.h (elf_link_hash_table): Add runpath.
2556 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2557 * bfd-in2.h: Rebuilt.
2559 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2560 "runpath" field to NULL.
2561 (bfd_elf_get_runpath_list): New function.
2563 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2566 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2568 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2569 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2570 explicitly. Improve validation of r_type.
2572 2000-08-21 H.J. Lu <hjl@gnu.org>
2574 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2575 dynamic allocated content space. Add a comment to remind us that
2576 one day this ought to be fixed.
2577 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2578 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2579 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2581 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2583 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2584 field with the newly relocated value instead of adding it to the
2585 existing immediate field.
2586 (elf32_i860_relocate_splitn): Likewise.
2587 (elf32_i860_relocate_highadj): Likewise.
2589 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2591 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2592 was previously just a stub).
2594 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2596 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2598 (_bfd_elf_create_dynamic_sections): Likewise.
2600 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2602 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2603 for undefined symbols to be the beginning of the section.
2605 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2606 four extra entries at the beginning of the .rela.plt section.
2607 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2608 section to account for the four reserved entries in the .plt section.
2610 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2612 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2613 to the list of NOPs we recognize after a branch-and-link.
2614 Use the ori NOP when one is needed.
2616 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2619 2000-08-14 Jim Wilson <wilson@cygnus.com>
2621 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2622 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2623 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2626 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2628 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2630 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2632 * elf32-i860.c (elf32_i860_relocate_section): New function.
2633 (i860_final_link_relocate): New function.
2634 (elf32_i860_relocate_splitn): New function.
2635 (elf32_i860_relocate_pc16): New function.
2636 (elf32_i860_relocate_highadj): New function.
2637 (elf32_i860_howto): Minor adjustments to some relocations.
2638 (elf_info_to_howto_rel): Define.
2639 (elf_backend_relocate_section): Define.
2641 2000-08-10 Nick Clifton <nickc@cygnus.com>
2643 * elf32-arm.h: Fix formatting.
2645 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2647 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2649 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2651 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2653 2000-08-07 Kazu Hirata <kazu@hxi.com>
2655 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2656 * elf64-ia64.c: Fix a typo.
2658 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2660 * elf32-i860.c (elf32_i860_howto_table): New structure.
2661 (lookup_howto): New function.
2662 (elf32_i860_reloc_type_lookup): New function.
2663 (elf32_i860_info_to_howto_rela): New function.
2664 (elf_code_to_howto_index): New structure.
2665 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2666 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2667 elf32_i860_reloc_type_lookup.
2669 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2671 * som.c (struct fixup_format): Constify `format'.
2672 (som_hppa_howto_table): Use SOM_HOWTO macro.
2673 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2674 (som_bfd_reloc_type_lookup): Likewise.
2675 (compare_subspaces): Remove unused `count1', `count2'.
2676 (som_begin_writing): Remove unused `total_reloc_size'.
2677 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2678 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2679 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2680 (som_find_nearest_line): Decorate unused parameter(s).
2681 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2682 (som_bfd_link_split_section): Likewise.
2684 2000-08-03 Nick Clifton <nickc@cygnus.com>
2686 * section.c: Restore backed out code.
2687 * elf.c: Restore backed out code.
2688 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2689 binaries from working.
2690 * bfd-in2.h: Regenerate.
2692 2000-08-03 H.J. Lu <hjl@gnu.org>
2694 * section.c: Back out the change made by Nick Clifton
2695 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2697 * bfd-in2.h: Likewise.
2700 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2702 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2704 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2706 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2707 * bfd-in2.h, libbfd.h: Regenerate.
2709 2000-07-31 Nick Clifton <nickc@cygnus.com>
2711 * section.c (struct sec): Add new boolean field 'segment_mark'.
2712 (STD_SECTION): Initialise new field to zero.
2714 * bfd-in2.h: Regenerate.
2716 * elf.c (copy_private_bfd_data): Reorganise section to segment
2717 mapping to cope with moved sections requiring new segments,
2718 and overlapping segments.
2719 (SEGMENT_END): New macro: Return the end address of a segment.
2720 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2721 contains a section by comparing their VMA addresses.
2722 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2723 contains a section by comparing their LMA addresses.
2724 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2725 section should be included in a segment.
2726 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2727 follows another in memory.
2728 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2731 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2733 * cpu-i860.c: Added comments.
2735 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2736 bfd_elf32_i860_little_vec.
2737 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2738 (ELF_MAXPAGESIZE): Changed to 4096.
2740 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2742 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2744 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2745 config for little endian elf32 i860.
2746 (targ_defvec): Define for the new config above
2747 as "bfd_elf32_i860_little_vec".
2748 (targ_selvecs): Define for the new config above
2749 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2751 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2754 * configure: Regenerated.
2756 2000-07-27 H.J. Lu <hjl@gnu.org>
2758 * elflink.h (elf_merge_symbol): Take one more argument,
2759 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2760 entry. Don't overide the existing weak definition if dt_needed
2762 (elf_link_add_object_symbols): Pass dt_needed to
2763 elf_merge_symbol ().
2765 2000-07-27 Nick Clifton <nickc@cygnus.com>
2767 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2770 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2772 * configure.host (*-*-aix*): AIX has 'long long' always.
2774 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2775 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2776 (xcoff_write_archive_contents_big): Don't update the offset
2777 of the symbol table, xcoff_write_armap will do it.
2779 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2781 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2782 of dynobj for SGI_COMPAT checks.
2784 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2786 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2787 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2788 * bfd-in2.h: Regenerate.
2790 2000-07-21 Nick Clifton <nickc@cygnus.com>
2792 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2793 range symbol indices in relocs and issue an error message.
2795 2000-07-20 H.J. Lu <hjl@gnu.org>
2797 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2798 info->new_dtags when setting DT_FLAGS_1. It will only be set
2799 by the new linker options. It shouldn't break anything.
2801 2000-07-20 H.J. Lu <hjl@gnu.org>
2803 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2804 only if info->new_dtags is true.
2806 2000-07-20 H.J. Lu <hjl@gnu.org>
2808 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2809 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2811 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2813 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2814 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2815 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2816 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2817 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2818 * Makefile.in: Rebuild.
2819 * aclocal.m4: Rebuild.
2820 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2821 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2822 (bfd_cris_arch): Declare.
2823 (bfd_archures_list): Add bfd_cris_arch.
2824 * bfd-in2.h: Rebuild.
2825 * config.bfd: (cris-*-*): New target.
2826 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2827 * configure: Rebuild.
2828 * elf.c (prep_headers): Add bfd_arch_cris.
2829 * libbfd.h: Rebuild.
2830 * libaout.h (enum machine_type): Add M_CRIS.
2831 * reloc.c: Add CRIS relocations.
2832 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2833 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2834 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2835 * po/POTFILES.in, po/bfd.pot: Regenerate.
2837 2000-07-19 H.J. Lu <hjl@gnu.org>
2839 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2840 DF_TEXTREL if DT_TEXTREL is set.
2841 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2842 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2843 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2844 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2845 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2846 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2847 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2848 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2849 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2850 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2852 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2853 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2855 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2857 2000-07-19 H.J. Lu <hjl@gnu.org>
2859 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2860 * bfd-in2.h: Rebuild.
2862 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2863 (elf_dt_soname): New.
2865 * elf.c (bfd_elf_set_dt_needed_soname): New.
2867 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2868 entry if the shared object loaded by DT_NEEDED is used to
2869 resolve the reference in a regular object.
2871 2000-07-19 H.J. Lu <hjl@gnu.org>
2873 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2874 DT_DEPAUDIT and DT_AUDIT as strings.
2876 2000-07-19 Nick Clifton <nickc@cygnus.com>
2878 * format.c: Fix formatting.
2880 2000-07-19 H.J. Lu <hjl@gnu.org>
2882 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2884 2000-07-19 H.J. Lu <hjl@gnu.org>
2886 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2887 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2888 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2889 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2890 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2891 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2892 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2894 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2896 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2897 renamed functions from here...
2898 (assign_section_numbers): Use renamed functions.
2899 (prep_headers): Use renamed functions.
2901 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2902 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2903 * bfd-in2.h: Regenerate.
2905 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2907 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2908 parenthesis in if statement.
2910 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2912 Enable the support for Traditional MIPS.
2913 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2914 return ict_none appropriately for traditional mips targets.
2915 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2916 (STUB_MOVE): Conditionalize for traditonal mips.
2917 (STUB_LI16): Likewise.
2918 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2919 room for RTPROC header.
2920 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2921 the permission for the PT_DYNAMIC as read, write and execute.
2922 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2923 for traditonal mips.
2924 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2925 _DYNAMIC_LINKING for traditonal mips.
2926 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2927 in case of traditonal mips.
2928 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2929 entry is required. For a function if PLT is not required then set the
2930 corresponding hash table entry to 0.
2931 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2933 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2934 shared object set the value to 0.
2935 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2936 _DYNAMIC_LINKING for traditonal mips.
2937 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2938 for traditonal mips.
2940 2000-07-15 H.J. Lu <hjl@gnu.org>
2942 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2944 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2946 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2947 out a structure that is BFD_IN_MEMORY.
2949 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2951 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2952 bfd pointer. Print section id instead of bfd pointer for local
2953 syms. Prefix addend with `+' for global syms as well as local.
2954 Correct calculation of name component lengths.
2955 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2957 From David Huggins-Daines <dhd@linuxcare.com>
2958 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2959 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2960 (elf64_hppa_modify_segment_map): Likewise.
2962 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2964 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2965 addresses to be "naturally" sign extended. Return -1 if unknown.
2966 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2967 * bfd-in2.h: Regenerate.
2969 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2971 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2972 and ECOF_SIGNED_64 to list ways to extract an offset.
2973 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2974 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2976 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2977 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2979 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2981 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2982 bfd_get_start_address.
2983 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2984 (elf_swap_ehdr_out): Ditto.
2986 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2988 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2989 compatibility with older binutils.
2991 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2993 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2994 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2996 From Ryan Bradetich <rbradetich@uswest.net>
2997 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2998 (parse_line_table): Ditto.
2999 (_bfd_dwarf1_find_nearest_line): Ditto.
3000 * syms.c (cmpindexentry): Remove extra `*' from params.
3002 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3004 * elf32-mips.c (sort_dynamic_relocs): New Function.
3005 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3006 via qsort to sort the dynamic relocations in increasing r_symndx
3009 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3011 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3012 ATTRIBUTE_UNUSED to unused args.
3013 (get_opd): Likewise.
3014 (get_plt): Likewise.
3015 (get_dlt): Likewise.
3016 (get_stub): Likewise.
3017 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3018 (elf64_hppa_link_output_symbol_hook): Likewise.
3019 (elf64_hppa_check_relocs): Delete unused var.
3020 (elf64_hppa_size_dynamic_sections): Likewise.
3021 (elf64_hppa_finalize_opd): Likewise.
3022 (elf64_hppa_finalize_dynreloc): Likewise.
3023 (elf64_hppa_modify_segment_map): Likewise.
3024 (elf64_hppa_finish_dynamic_sections): Likewise.
3026 * elf-hppa.h (elf_hppa_final_write_processing): Add
3027 ATTRIBUTE_UNUSED to unused args.
3028 (elf_hppa_final_link_relocate): Likewise.
3029 (elf_hppa_record_segment_addrs): Add paretheses.
3030 (elf_hppa_relocate_section): Constify dyn_name.
3032 From David Huggins-Daines <dhd@linuxcare.com>
3033 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3034 rearrange case statement so that it gets preferred to 32-bit ones.
3036 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3037 asection->id instead of address of asection structure.
3038 (elf32_hppa_size_stubs): Likewise.
3040 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3041 for .init* and .fini*.
3043 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3044 and addends used in stub names to 32 bits.
3045 (elf32_hppa_size_stubs): Likewise.
3047 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3048 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3049 not bfd_put_64. Fix minor comment typo and formatting.
3051 Changes to create multiple linker stubs, positioned immediately
3052 before the section where they are required.
3053 * elf32-hppa.c: Don't include hppa_stubs.h.
3054 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3055 (elf32_hppa_stub_hash_table): Delete.
3056 (elf32_hppa_link_hash_entry): Delete.
3057 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3058 stub_hash_table, and store the struct here rather than a pointer.
3059 Delete output_symbol_count. Add offset array. Change
3060 global_value to a bfd_vma.
3061 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3062 (elf32_hppa_stub_hash_traverse): Delete.
3063 (elf32_hppa_name_of_stub): Delete.
3064 (elf32_hppa_link_hash_lookup): Delete.
3065 (elf32_hppa_link_hash_traverse): Delete.
3066 (elf32_hppa_stub_hash_table_init): Delete.
3067 (elf32_hppa_size_of_stub): Pass input section and offset rather
3068 than location and calculate location here. Don't pass name as all
3069 stubs are now the same size.
3070 (elf32_hppa_stub_hash_newfunc): Init new fields.
3071 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3073 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3074 comparing against ints. Rewrite stub handling code.
3075 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3076 Case enums to int before comparing against ints. Remove
3077 bfd_reloc_dangerous case.
3078 (elf32_hppa_build_one_stub): Rewrite.
3079 (elf32_hppa_size_one_stub): New function.
3080 (elf32_hppa_build_stubs): Rewrite.
3081 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3082 Rewrite stub-handling specific code.
3084 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3086 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3088 * hppa_stubs.h: Delete.
3089 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3090 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3091 * Makefile.in: Regenerate.
3093 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3096 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3098 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3099 and section name for bfd_reloc_notsupported error message.
3100 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3101 bfd_reloc_notsupported.
3102 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3104 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3105 undefined weak symbols for all relocs.
3106 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3107 offsets are relative to one past the delay slot.
3108 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3109 branch destination. Put addend into stub name too.
3110 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3111 adjust by 8 when deciding whether a linker stub is needed. Put
3112 addend into stub name as for above.
3114 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3115 various args and vars.
3116 (elf32_hppa_bfd_final_link_relocate): Here too.
3117 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3118 inner block var to avoid shadowing.
3120 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3122 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3123 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3124 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3126 * libhppa.h: Change practically all unsigned ints to plain ints.
3127 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3130 From Ryan Bradetich <rbradetich@uswest.net>
3131 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3132 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3134 From David Huggins-Daines <dhd@linuxcare.com>
3135 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3136 to the new OP_* ones.
3138 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3139 error exit. Bail out earlier on plabel relocs that we aren't
3140 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3141 string, and then don't free our copy.
3142 (elf32_hppa_build_one_stub): Make insn unsigned int.
3144 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3145 available with BL, not BE and BLE.
3147 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3148 code for elf arg relocs.
3149 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3150 argument with elf_link_hash_entry h. Handle undefined weak
3151 symbols. Move $global$ lookup from here...
3152 (elf32_hppa_relocate_section): ...to here. Return correct error
3153 message for non-handled relocs.
3154 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3155 wrong test was -0x3ffff to +0x40000.
3157 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3158 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3159 Handle them as such.
3160 (elf_hppa_relocate_insn): Fix a typo.
3162 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3163 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3164 assemble_17, assemble_21): Delete.
3165 Supply defines for all 64 possible opcodes.
3166 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3167 formats. Handle COMICLR.
3168 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3171 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3172 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3173 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3175 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3176 the local syms - did this code get deleted accidentally? Ignore
3177 undefined and undefweak syms.
3179 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3180 block. Use it instead of elf64_hppa_hash_table (info).
3181 (elf_hppa_final_link_relocate): Use hppa_info instead of
3182 elf64_hppa_hash_table (info).
3184 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3185 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3186 (hppa_rebuild_insn): Mask immediate bits here instead.
3187 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3189 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3191 * section.c (struct sec): Add id field. Tidy comment formatting.
3192 (bfd_make_section_anyway): Set id.
3193 (STD_SECTION): Init id too.
3194 Change CONST to const throughout.
3195 * archures.c (bfd_arch_info): Tidy comment.
3196 (bfd_arch_list): Change a CONST to const.
3197 * libbfd-in.h: Tidy comments and replace CONST with const.
3198 * elf-bfd.h: Likewise.
3199 * libbfd.h: Regenerate.
3200 * bfd-in2.h: Regenerate.
3201 * libcoff.h: Regenerate.
3203 2000-07-07 DJ Delorie <dj@redhat.com>
3205 * archive.c (_bfd_write_archive_contents): Add an informative
3208 2000-07-06 Kazu Hirata <kazu@hxi.com>
3210 * srec.c: Fix formatting.
3212 2000-06-05 DJ Delorie <dj@redhat.com>
3216 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3218 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3219 value of PC-relative offsets.
3221 2000-07-03 Jim Wilson <wilson@cygnus.com>
3223 * elf64-alpha.c (alpha_elf_size_info): New.
3224 (elf_backend_size_info): Define to alpha_elf_size_info.
3225 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3227 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3229 * elf32-mips.c: Include elf32-target.h again for the traditional
3232 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3234 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3235 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3236 (avr_info_to_howto_rela): Likewise.
3237 (elf32_avr_gc_mark_hook): Likewise.
3238 (elf32_avr_gc_sweep_hook): Likewise.
3239 (elf32_avr_relocate_section): Likewise.
3241 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3243 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3244 an external symbol for a non-shared, non-relocatable link.
3246 2000-07-03 Nick Clifton <nickc@redhat.com>
3248 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3249 is an external symbol.
3250 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3253 2000-07-03 Kazu Hirata <kazu@hxi.com>
3255 * reloc16.c: Fix formatting.
3257 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3259 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3260 to add a new target for traditional mips i.e
3261 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3262 * configure.in: Likewise.
3263 * configure: Rebuild.
3264 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3266 (bfd_elf32_tradlittlemips_vec): Likewise.
3267 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3268 to see that elfNN_bed does not get redefined even if the target file
3269 is included twice for a chip. See elf32-mips.c.
3271 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3273 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3274 (CLEANFILES): Add DEPA.
3275 * Makefile.in: Regenerate.
3277 2000-06-30 DJ Delorie <dj@cygnus.com>
3279 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3280 can't assume the PE header is at 0x80.
3282 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3284 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3286 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3288 * go32stub.h: Update stub.
3290 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3292 * archures.c (bfd_mach_avr5): Define.
3293 * bfd-in2.h (bfd_mach_avr5): Define.
3294 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3295 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3296 (compatible): Update comment. Add missing test.
3297 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3298 for avr2 and avr4. Simplify 8K wrap code.
3299 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3300 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3302 2000-06-26 Kazu Hirata <kazu@hxi.com>
3304 * coff-h8300.c: Fix formatting.
3305 * cpu-h8300.c: Likewise.
3307 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3309 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3310 for local symbols whose names are unknown.
3312 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3314 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3316 * Makefile.in: Regenerate.
3317 * doc/Makefile.in: Regenerate.
3319 2000-06-20 H.J. Lu <hjl@gnu.org>
3321 * Makefile.am: Rebuild dependency.
3322 * Makefile.in: Rebuild.
3324 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3326 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3327 (elf_backend_copy_indirect_symbol): Map to the new function.
3329 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3331 * archive.c (normalize): Correct pointer comparison when checking
3333 (bfd_bsd_truncate_arname): Likewise.
3334 (bfd_gnu_truncate_arname): Likewise.
3336 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3338 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3339 sections elf_{text,data}_{section,symbol}.
3340 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3341 (_bfd_mips_elf_hide_symbol): New function.
3342 (elf_backend_hide_symbol): Map to the new function.
3343 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3344 definitions of mips_elf_{text,data}_{section,symbol}.
3345 (mips_elf_local_relocation_p): Try to find the direct symbol
3346 based on new check_forced argument.
3347 (mips_elf_calculate_relocation): Use new version of
3348 mips_elf_local_relocation_p.
3349 (mips_elf_relocate_section): Likewise.
3350 (_bfd_mips_elf_relocate_section): Likewise.
3351 (mips_elf_sort_hash_table): Only assert that have enough GOT
3353 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3354 entry if the relocation based on the new external argument.
3355 (mips_elf_create_dynamic_relocation): Assert that we have a
3356 section contents allocated where we can swap out the dynamic
3358 (mips_elf_calculate_relocation): Find the real hash-table entry
3359 correctly by using h->root.root.type. Only create a dynamic
3360 relocation entry if the symbol is defined in a shared library.
3361 Create an external GOT entry for the GOT16 relocation if the
3362 symbol was forced local.
3363 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3364 dynamic index if the symbol was forced local.
3366 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3368 * elf32-mips.c: Fix typos in comments.
3370 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3372 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3375 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3377 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3378 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3379 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3380 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3381 (bfd_elf32_m68hc11_vec): Likewise.
3382 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3383 Supports 68hc11 & 68hc12 at the same time.
3384 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3386 (bfd_elf32_m68hc11_vec): Likewise.
3387 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3388 * archures.c (bfd_m68hc12_arch): Define and register in global list
3389 (bfd_m68hc11_arch): Likewise.
3390 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3391 BFD_RELOC_M68HC11_3B): Define.
3392 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3393 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3395 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3397 * elf_bfd.h (struct elf_backend_data): Add info argument to
3398 elf_backend_hide_symbol.
3399 (_bfd_elf_link_hash_hide_symbol): Likewise.
3400 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3401 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3402 * elflink.h (elf_link_add_object_symbols): Likewise.
3403 (elf_link_assign_sym_version): Likewise.
3405 2000-06-18 H.J. Lu <hjl@gnu.org>
3407 * coff-i386.c (coff_i386_reloc): Don't return in case of
3408 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3409 Compensate PE relocations when linking with non-PE object
3410 files to generate a non-PE executable.
3412 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3414 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3415 GOT entries if we're doing a static link or -Bsymbolic link.
3417 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3419 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3420 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3422 (elf_link_output_relocs): Likewise.
3423 (elf_reloc_link_order): Likewise.
3425 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3427 * archures.c (enum bfd_architecture): #define constants for
3428 PowerPc and RS6000 machine numbers.
3429 * bfd-in2.h: Regenerate.
3430 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3431 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3432 and RS6000 machine numbers using #defined constants from
3434 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3435 machine numbers using #defined constants from archures.c. Add
3436 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3437 64-bit words in 620 entry.
3438 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3440 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3442 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3444 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3445 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3446 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3448 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3450 * bfd-in.h (bfd_family_coff): Define.
3451 * bfd-in2.h: Regenerate.
3452 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3453 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3454 instead of bfd_target_coff_flavour.
3455 * cofflink.c (_bfd_coff_final_link): Likewise.
3456 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3457 exclude XCOFF files.
3458 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3460 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3461 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3462 * xcofflink.c (XCOFF_XVECP): Delete.
3463 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3464 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3465 bfd_xcoff_record_link_assignment,
3466 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3467 check for bfd_target_xcoff_flavour.
3469 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3471 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3473 (read_hdr): New function.
3474 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3475 of trying to extract individual registers. Set abfd->arch_info
3476 to match the architecture that created the core file.
3477 (rs6000coff_get_section_contents): Delete.
3478 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3480 2000-06-14 H.J. Lu <hjl@gnu.org>
3482 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3485 2000-06-13 H.J. Lu <hjl@gnu.org>
3487 * configure: Regenerate.
3489 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3491 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3494 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3496 * configure.in (VERSION): Update to show this is the CVS mainline.
3498 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3500 * elf32-d10v.c: Include elf/d10v.h
3501 (enum reloc_type): Delete.
3502 * elf32-d30v.c: Include elf/d30v.h
3503 (enum reloc_type): Delete.
3505 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3506 * Makefile.in: Regenerate.
3508 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3509 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3510 move HOWTOs into elf_howto_table.
3511 (R_386_standard, R_386_ext_offset): Define.
3512 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3513 (elf_i386_reloc_type_lookup): Modify calculation of index into
3514 elf_howto_table since we've removed the padding.
3515 (elf_i386_info_to_howto_rel): Likewise.
3516 (elf_i386_relocate_section): Likewise.
3518 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3520 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3522 2000-06-05 H.J. Lu <hjl@gnu.org>
3524 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3525 an error when seeing an undefined symbol with hidden/internal
3526 attribute. It is handled in *_relocate_section ().
3528 2000-06-05 H.J. Lu <hjl@gnu.org>
3530 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3531 indirect symbol for the ELF_LINK_NON_ELF bit.
3532 (elf_link_output_extsym): Don't output the indirect symbol even
3533 if the ELF_LINK_NON_ELF bit is set.
3535 2000-06-01 J.T. Conklin <jtc@redback.com>
3537 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3538 (i[3456]86-*-netbsdaout*): New target.
3539 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3540 (i[3456]86-*-openbsd*): Likewise.
3542 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3544 * trad-core.c: From hpux-core.c, include <dirent.h> or
3545 <sys/ndir.h> when possible.
3547 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3549 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3550 definitions. We must not assume they are sorted in the file
3551 according to their index numbers.
3553 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3555 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3556 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3557 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3559 2000-05-30 Nick Clifton <nickc@cygnus.com>
3561 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3562 80960CA, 80960MC as valid machine names.
3564 2000-05-30 H.J. Lu <hjl@gnu.org>
3566 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3567 visibility bits if the symbol is undefined. Correctly handle
3568 weak undefined symbols with hidden and internal attributes.
3570 * elflink.h (elf_link_add_object_symbols): Always turn the
3571 symbol into local if it has the hidden or internal attribute.
3573 2000-05-29 Philip Blundell <philb@gnu.org>
3575 * ppcboot.c: Add packed attribute if compiling with GCC.
3577 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3579 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3581 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3583 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3584 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3585 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3588 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3590 * Makefile.am: Update dependencies with "make dep-am"
3591 * Makefile.in: Regenerate.
3593 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3594 bindtextdomain): Replace defines with those from intl/libgettext.h
3595 to quieten gcc warnings.
3597 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3599 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3601 * archive.c (normalize, bfd_bsd_truncate_arname,
3602 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3603 file names with backslashes.
3605 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3608 * sysdep.h: Include filenames.h.
3610 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3612 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3614 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3616 * elf64-sparc.c (sparc64_elf_relax_section): New.
3617 (sparc64_elf_relocate_section): Optimize tail call into branch always
3619 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3620 (elf32_sparc_relax_section): New.
3622 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3624 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3625 Remove unusued variables.
3626 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3627 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3628 previous fix, so that shared libs really don't influence targets
3629 extension mask and memory model.
3631 2000-05-23 H.J. Lu <hjl@gnu.org>
3633 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3634 h->root.other not h->other.
3635 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3637 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3639 2000-05-23 H.J. Lu <hjl@gnu.org>
3641 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3642 undefined symbol with the non-default visibility attributes.
3643 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3644 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3645 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3646 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3647 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3648 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3649 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3650 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3651 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3652 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3653 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3655 2000-05-22 Richard Henderson <rth@cygnus.com>
3657 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3658 PCREL22, PCREL64I. Zero size of special relocs.
3659 (elf64_ia64_reloc_type_lookup): Likewise.
3660 (USE_BRL, oor_brl, oor_ip): New.
3661 (elf64_ia64_relax_section): New.
3662 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3663 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3664 (elf64_ia64_relocate_section): Likewise.
3665 (bfd_elf64_bfd_relax_section): New.
3666 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3667 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3668 * bfd-in2.h, libbfd.h: Regenerate.
3670 2000-05-22 Nick Clifton <nickc@cygnus.com>
3672 * configure.in : Add peigen.lo to MIPS PE targets.
3673 * configure: Regenerate.
3675 2000-05-22 Momchil Velikov <velco@fadata.bg>
3677 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3678 only if it is known for both input and output bfds. Separate
3679 error message strings as in some languages, it may be necessary
3680 to change more than one place in the string to change between
3683 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3684 endianess checks, call _bfd_generic_verify_endian_match() instead.
3686 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3688 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3690 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3691 endianess before checking bfd flavours.
3693 2000-05-22 H.J. Lu <hjl@gnu.org>
3695 * elflink.h (elf_link_output_extsym): Clear the visibility
3696 field for symbols not defined locally.
3698 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3700 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3701 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3702 (hppa_rebuild_insn): Mask immediate bits here instead.
3703 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3705 2000-05-18 Momchil Velikov <velco@fadata.bg>
3707 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3708 relocs for an executable, ensure that they are virtual addresses.
3710 2000-05-18 Jeffrey A Law (law@cygnus.com)
3712 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3714 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3715 Rick Gorton <gorton@scrugs.lkg.dec.com>
3717 * elflink.h: Add emitrelocations support: when enabled, relocation
3718 information and relocation sections are put into final output
3719 executables. If the emitrelocations flag is set, do the following:
3720 (elf_bfd_final_link): Emit relocation sections.
3721 (elf_link_input_bfd): Compute relocation section contents.
3722 (elf_gc_sections): Don't clean relocation sections.
3724 2000-05-16 Catherine Moore <clm@cygnus.com>
3726 * som.c (som_decode_symclass): Recognize weak symbols.
3728 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3730 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3731 read idata section only from dataoff.
3732 (pe_print_edata): Correctly check for valid eat_member.
3734 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3736 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3738 2000-05-14 Philip Blundell <philb@gnu.org>
3740 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3742 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3744 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3746 * peigen.c (pe_print_idata): Look for .idata section and print
3747 info even if data directory has zero entries. Read idata section
3748 starting from dataoff, and adjust all data offsets to suit. Cast
3749 all bfd_vma vars to unsigned long before passing to fprintf.
3750 * peigen.c (pe_print_edata): Similarly, look for .edata section
3751 and print info even if data directory has zero entries. Cast
3752 all bfd_vma vars to unsigned long before passing to fprintf.
3754 From Szabolcs Szakacsits <szaka@F-Secure.com>
3755 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3756 directory size which may be bogus.
3757 * peigen.c (pe_print_edata): Similarly.
3759 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3761 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3763 (copy_private_bfd_data): Allow for space possibly taken up by elf
3764 headers when calculating segment physical address from lma.
3766 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3768 * versados.c (versados_scan): Init stringlen and pass_2_done.
3770 * trad-core.c (trad_unix_core_file_p): Return
3771 bfd_error_wrong_format rather than bfd_error_file_truncated.
3773 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3774 add_data_entry. DataDirectory virtual address is relative.
3775 (pe_print_idata): Account for relative DataDirectory virtual
3776 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3777 (pe_print_edata): Similarly.
3779 From Szabolcs Szakacsits <szaka@F-Secure.com>
3780 * peigen.c (dir_names): Add Delay Import Directory.
3781 (pe_print_idata): Always search for bfd section containing
3782 idata address rather than looking up section name. Print this
3783 section name rather than .idata.
3784 (pe_print_edata): Similarly. Also print some fields as %08lx.
3785 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3788 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3790 * xcoff.h: Rename to xcoff-target.h
3791 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3792 * coff-rs6000.c: Ditto.
3793 * coff64-rs6000.c: Ditto.
3794 * coff-pmac.c: Ditto.
3795 * Makefile.in: Regenerate.
3797 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3799 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3800 Change U802TOC64MAGIC to U803XTOCMAGIC.
3802 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3804 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3805 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3806 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3808 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3810 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3812 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3814 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3815 hidden and internal symbols.
3816 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3818 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3819 assign a PLT or GOT entry to symbols with hidden and
3820 internal visibility.
3822 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3824 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3826 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3828 2000-05-02 H.J. Lu <hjl@gnu.org>
3830 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3833 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3835 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3836 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3838 * Makefile.in: Regenerate.
3840 2000-05-01 Jim Wilson <wilson@cygnus.com>
3842 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3843 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3844 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3845 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3846 * Makefile.in: Rebuild.
3848 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3850 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3851 doesn't work very well.
3853 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3854 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3855 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3856 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3857 (elf_hppa_info_to_howto): Likewise.
3858 (elf_hppa_info_to_howto_rel): Likewise.
3859 (elf_hppa_reloc_type_lookup): Likewise.
3860 (elf_hppa_is_local_label_name): Likewise.
3861 (elf_hppa_fake_sections): Likewise.
3862 (elf_hppa_final_write_processing): Likewise.
3863 (elf_hppa_howto_table): Fully initialise all entries.
3864 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3865 (elf_hppa_info_to_howto): Likewise.
3866 (elf_hppa_info_to_howto_rel): Likewise.
3867 (elf_hppa_reloc_type_lookup): Likewise.
3868 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3869 elf_hppa_unmark_useless_dynamic_symbols,
3870 elf_hppa_remark_useless_dynamic_symbols,
3871 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3872 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3873 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3874 elf32-hppa.c mess is cleaned up.
3875 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3876 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3877 r_field then call hppa_field_adjust inline func with variable
3878 r_field arg, instead call hppa_field_adjust with fixed arg.
3879 In case R_PARISC_PCREL22F, don't set r_field.
3880 (elf_hppa_relocate_insn): Change args and return type to unsigned
3881 int. Call re_assemble_* funcs to do the work.
3883 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3886 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3888 (sign_extend): Mask first before sign extending.
3889 (low_sign_extend): Rewrite without condition expression.
3890 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3891 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3892 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3893 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3894 result as function return value rather than through pointer arg.
3895 Accept unsigned int args, and return unsigned int.
3896 (re_assemble_3): New. Combines function of dis_assemble_3 with
3897 re-assembly of opcode and immediate.
3898 (re_assemble_12): Likewise.
3899 (re_assemble_16): Likewise.
3900 (re_assemble_17): Likewise.
3901 (re_assemble_21): Likewise.
3902 (re_assemble_22): Likewise.
3903 (hppa_field_adjust): Rewrite and document, paying attention to
3904 size of types and signed/unsigned issues.
3905 (get_opcode): Shift before masking.
3906 (FDLW): Rename to FLDW.
3907 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3908 (hppa_rebuild_insn): Change args and return value to unsigned
3909 int. Make use of re_assemble_*. Correct case 11.
3911 * dep-in.sed: Handle ../opcodes/.
3912 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3913 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3914 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3915 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3916 elfarm-nabi.lo dependencies outside of auto-dependency area.
3917 Regenerate dependencies.
3918 * Makefile.in: Regenerate.
3920 * configure.in (TRAD_HEADER): Test non-null before
3922 * configure: Regenerate.
3924 * reloc.c: Fix mis-spelling in comment.
3926 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3928 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3929 * vms.c (vms_openr_next_archived_file): Return NULL.
3931 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3933 * coffcode.h Copy changes mistakenly done to libcoff.h in
3936 2000-04-29 Andreas Jaeger <aj@suse.de>
3938 * libbfd-in.h: Correctly check GCC version.
3939 * bfd-in.h: Likewise.
3940 * libhppa.h: Likewise.
3941 * libbfd.h: Regenerate.
3942 * bfd-in2.h: Regenerate.
3944 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3946 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3947 coffdu-rs6000.{lo,c}.
3948 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3950 * Makefile.in: Regenerate.
3951 * xcoff.h: New file.
3952 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3953 * coff-rs6000.c: Move all declarations and defines that are
3954 common to the xcoff backends into xcoff.h
3955 * coff64-rs6000.c: Ditto,
3957 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3959 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3960 _bfd_coff_force_symnames in strings and
3961 _bfd_coff_debug_string_prefix_length to their default values.
3962 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3964 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3966 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3967 _bfd_coff_force_symnames in strings and
3968 _bfd_coff_debug_string_prefix_length to their default values.
3970 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3972 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3973 Check local_got_refcounts before dereferencing.
3975 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3976 before deciding we don't need R_PPC_PLT32 relocation.
3977 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3980 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3982 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3984 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3985 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3986 (elf_i386_relocate_section): Allow for .plt to go missing.
3987 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3988 can use a relative reloc for got as elf_i386_relocate_section.
3989 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3991 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3993 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3995 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3997 * Makefile.am (coff64-rs6000.lo): New rule.
3998 * Makefile.in: Regenerate.
3999 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4000 xcoff_is_local_label_name, xcoff_rtype2howto,
4001 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4002 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4003 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4004 (NO_COFF_SYMBOLS): Define.
4005 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4006 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4008 (MINUS_ONE): New macro.
4009 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4011 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4012 coff_SWAP_aux_out): Map to the new functions.
4013 * coff64-rs6000.c: New file.
4014 * libcoff.h (bfd_coff_backend_data): Add new fields
4015 _bfd_coff_force_symnames_in_strings and
4016 _bfd_coff_debug_string_prefix_length.
4017 (bfd_coff_force_symnames_in_strings,
4018 bfd_coff_debug_string_prefix_length): New macros for above fields.
4019 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4020 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4021 of using coff_swap_sym_in directly.
4022 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4023 (coff_set_flags) Set magic for XCOFF64.
4024 (coff_compute_section_file_positions): Add symbol name length to
4025 string section length if bfd_coff_debug_string_prefix_length is
4027 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4028 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4029 using coff_swap_lineno_in directly.
4030 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4031 and _bfd_coff_debug_string_prefix_length fields.
4032 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4033 symbol names into strings table when
4034 bfd_coff_force_symnames_in_strings is true.
4035 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4036 SET_RELOC_VADDR): New macros.
4037 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4038 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4040 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4041 changes within RS6000COFF_C specific code.
4042 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4043 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4044 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4045 Extend existing hack on target name.
4046 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4048 * coff-tic54x.c (ticof): Keep up to date with new fields
4049 in bfd_coff_backend_data.
4050 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4051 targ_selvecs to include rs6000coff64_vec for rs6000.
4052 * configure.in: Add rs6000coff64_vec case.
4053 * cpu-powerpc.c: New bfd_arch_info_type.
4055 2000-04-24 Jeffrey A Law (law@cygnus.com)
4057 * config.bfd: Only disable elf32-hppa vectors, not all of the
4058 BSD and OSF configuration support. Provide (disabled) clauses
4060 * configure.in: Add clause for PA64 support.
4061 * configure: Rebuilt.
4063 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4064 (bfd_elf64_hppa_vec): Declare.
4066 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4067 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4068 (elf64-hppa.lo): Add dependencies.
4069 * Makefile.in: Rebuilt.
4071 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4073 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4075 * libhppa.h (dis_assemble_16): New function.
4076 (pa_arch): Added pa20w element.
4078 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4080 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4081 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4082 bfd_elf64_slurp_reloc_table.
4084 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4085 definitions to get external names.
4086 (elf_write_relocs): Renamed from write_relocs and make global.
4087 (elf_slurp_reloc_table): Make global.
4088 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4090 * archive.c (hpux_uid_gid_encode): New function.
4091 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4092 defined and the ID is greater than 99999.
4093 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4094 special uid/gid fields into 32 bit values.
4096 2000-04-21 Matthew Green <mrg@cygnus.com>
4098 * config.bfd: Add NetBSD/sparc64 support.
4100 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4101 David Mosberger <davidm@hpl.hp.com>
4102 Timothy Wall <twall@cygnus.com>
4103 Jim Wilson <wilson@cygnus.com>
4105 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4106 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4107 (BFD64_BACKENDS): Add elf64-ia64.lo.
4108 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4109 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4110 * Makefile.in: Rebuild.
4111 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4112 (bfd_ia64_arch): Declare.
4113 (bfd_archures_list): Add bfd_ia64_arch.
4114 * bfd-in2.h: Rebuild.
4115 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4116 * configure: Rebuild.
4117 * configure.host: (ia64-*-linux*): New host.
4118 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4119 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4120 * elf.c (prep_headers): Add bfd_arch_ia64.
4121 * libbfd.h: Rebuild.
4122 * reloc.c: Add IA-64 relocations.
4123 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4125 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4126 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4128 2000-04-21 Richard Henderson <rth@cygnus.com>
4130 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4131 contents when performing a partial link.
4132 (bfd_elf_d30v_reloc_21): Likewise.
4134 2000-04-20 H.J. Lu <hjl@gnu.org>
4136 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4137 patch to symbols defined by a shared object.
4138 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4140 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4143 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4144 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4146 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4148 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4149 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4150 (coff-ia64.lo): Add dependency.
4151 * Makefile.in: Regenerate.
4152 * coff-ia64.c: New file.
4153 * efi-app-ia32.c: Ditto.
4154 * efi-app-ia64.c: Ditto.
4155 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4156 (coff_set_flags): Ditto.
4157 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4158 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4159 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4160 * configure: Regenerate.
4161 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4162 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4163 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4164 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4165 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4166 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4167 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4168 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4169 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4170 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4171 (GET_PDATA_ENTRY): Ditto.
4172 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4173 data_start. Use above macros to read fields that are 64 bit wide for
4174 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4175 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4176 FileAlignment and SectionAlignment to minimum alignment if they
4178 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4179 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4180 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4181 Use above macros to write fields that are 64 bit wide for
4183 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4184 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4185 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4186 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4187 begin address, end address, and unwind info address only. Use
4188 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4190 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4191 HIGH3ADJ relocation names.
4192 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4193 * targets.c: Declare bfd_efi_app_ia32_vec and
4194 bfd_efi_app_ia64_vec.
4195 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4196 bfd_efi_app_ia64_vec.
4198 2000-04-17 Timothy Wall <twall@cygnus.com>
4200 * bfd-in2.h: Add prototypes for tic54x load page access.
4201 * bfd-in.h: Regenerate.
4202 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4203 in customized _set_arch_mach function.
4204 * coffcode.h (coff_set_alignment_hook): Set section load page if
4205 the appropriate macro is defined.
4206 (write_object_contents): Read section load page.
4208 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4210 * elf32-hppa.h: Update copyright date.
4212 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4213 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4215 * elf32-d30v.c (MAX32): Don't use LL suffix.
4216 (MIN32): Define in terms of MAX32.
4217 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4219 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4222 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4224 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4226 * dep-in.sed: Match space before file name, not after.
4227 * Makefile.am: Regenerate dependencies.
4228 * Makefile.in: Regenerate.
4230 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4231 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4232 extend without an if statement.
4234 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4236 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4238 * elf32-mips.c (gprel16_with_gp): Likewise.
4239 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4240 here using -0x40000, not (int)0xfffc0000.
4241 (elf32_hppa_size_of_stub): Likewise.
4243 2000-04-11 Timothy Wall <twall@cygnus.com>
4245 * coff-tic54x.c: Now builds with all targets.
4246 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4247 * Makefile.in: Regenerate.
4248 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4249 unitialized variable.
4251 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4253 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4254 --enable-build-warnings option.
4255 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4256 * Makefile.in, configure: Re-generate.
4258 2000-04-07 Nick Clifton <nickc@cygnus.com>
4260 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4261 BFD_RELOC_THUMB_PCREL_BLX.
4263 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4264 R_ARM_XPC25 and R_ARM_THM_PC22.
4266 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4267 R_ARM_XPC25 and R_ARM_THM_XPC22.
4268 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4269 R_ARM_[XPC25|THM_XPC22].
4271 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4272 elf/arm-oabi.h to elf/arm.h
4274 * Makefile.am: Fix dependency for elfarm-oabi.c
4275 * Makefile.in: Regenerate.
4277 * bfd-in2.h: Regenerate.
4278 * libbfd.h: Regenerate.
4280 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4282 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4283 and restore it on failure. Release newly allocated tdata on
4286 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4288 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4289 (decode_line_info): Set it. Report error if unit->line_offset is
4290 equal to or larger than it.
4292 2000-04-07 Timothy Wall <twall@cygnus.com>
4294 * targets.c: Added vecs for tic54x.
4295 * reloc.c: Added relocs for tic54x.
4296 * libbfd.h: Regenerated.
4297 * configure: Add TI COFF vecs for tic54x.
4298 * configure.in: Ditto.
4299 * config.bfd (targ_cpu): Recognize new tic54x target.
4300 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4301 * bfd-in2.h: Add tic54x target and relocations.
4302 * Makefile.am, Makefile.in: Add tic54x target.
4303 * archures.c (bfd_archures_list): Add tic54x target.
4304 * coff-tic54x.c: New.
4305 * cpu-tic54x.c: New.
4307 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4309 * elfcore.h (elf_core_file_p): call backend_object_p which
4310 thereby gets an opportunity to update the arch/machine type.
4312 2000-04-06 Timothy Wall <twall@cygnus.com>
4314 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4315 class. Handle SEC_CLINK and SEC_BLOCK flags.
4316 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4317 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4319 2000-04-06 Nick Clifton <nickc@cygnus.com>
4321 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4322 EF_INTERWORK if this is an unknown EABI.
4323 (elf32_arm_merge_private_bfd_data): Check EABI version
4324 numbers. Only check EF_xxx flags if the EABI version number
4326 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4327 if the EABI version number is unknown.
4328 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4329 if the EABI version number is unknown.
4331 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4333 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4334 BFD_RELOC_SH_LOOP_END.
4335 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4336 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4337 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4338 (sh_elf_reloc_loop): New function.
4339 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4341 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4342 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4343 * bfd-in2.h, libbfd.h: Regenerate.
4345 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4347 * po/bfd.pot: Regenerate.
4349 * Makefile.am: Remove extraneous mkdep comment.
4350 (MKDEP): Use gcc -MM rather than mkdep.
4351 (DEP): Quote when passing vars to sub-make. Add warning
4353 (DEP1): Rewrite for "gcc -MM".
4354 (CLEANFILES): Add DEP2.
4355 Update dependencies.
4356 * Makefile.in: Regenerate.
4358 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4360 * configure.in: Added corefile support for AIX 4.3. In particular,
4361 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4362 compiling rs6000-core.c.
4363 * configure: Regenerated.
4365 2000-04-03 H.J. Lu <hjl@gnu.org>
4367 * cache.c (bfd_open_file): Unlink the output file only if
4368 it has non-zero size.
4370 2000-04-01 Ken Block USG <block@zk3.dec.com>
4372 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4373 relative relocations for non-loaded sections in shared objects.
4374 (elf64_alpha_check_relocs): Similarly.
4376 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4378 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4379 BFD_RELOC_16 to switch for extended relocs.
4380 (MY_swap_ext_reloc_in): New.
4381 (MY_swap_ext_reloc_out): New.
4382 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4383 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4384 (NAME(aout,squirt_out_relocs)): Similarly use
4385 MY_swap_ext_reloc_out.
4386 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4388 2000-04-03 Kazu Hirata <kazu@hxi.com>
4390 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4391 the R_PCRWORD_B case.
4393 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4395 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4399 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4401 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4402 HOWTO references to bfd_elf_generic_reloc, that have
4403 partial_inplace == true, now use the new function. The function
4404 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4405 extends its fixes to the R_M32R_{16,24,32} relocs.
4406 The new logic in m32r_elf_lo16_reloc() has been removed, and
4407 it instead calls the new routine to obtain that functionality.
4409 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4411 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4412 elf32_avr_check_relocs, avr_final_link_relocate,
4413 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4414 elf32_avr_object_p): Add prototypes.
4415 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4416 (bfd_elf_avr_final_write_processing): Make static.
4418 2000-03-27 Denis Chertykov <denisc@overta.ru>
4420 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4421 * archures.c (bfd_architecture): Add AVR architecture.
4422 (bfd_archures_list): Add reference to AVR architecture info.
4423 * elf.c (prep_headers): Handle bfd_arch_avr.
4424 * reloc.c: Add various AVR relocation enums.
4425 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4427 * Makefile.am: Add support for AVR elf.
4428 * configure.in: Likewise.
4429 * config.bfd: Likewise.
4430 * Makefile.in: Regenerate.
4431 * configure: This too.
4432 * bfd-in2.h: And this.
4433 * libbfd.h: And this.
4435 2000-03-24 H.J. Lu <hjl@gnu.org>
4437 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4438 (elf64_alpha_find_reloc_at_ofs): Likewise.
4440 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4442 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4443 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4444 allowable range used to be -2**(n-1) to 2**n-1.
4445 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4446 "boolean overflow" with "bfd_reloc_status_type flag".
4448 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4450 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4452 2000-03-14 Kazu Hirata <kazu@hxi.com>
4454 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4455 of shrinks properly, including the last reloc.
4457 2000-03-13 Kazu Hirata <kazu@hxi.com>
4459 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4462 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4464 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4465 a format mismatch rather than an "error" from bfd_read such as
4466 bfd_error_file_truncated.
4468 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4470 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4471 sign-extension and big-endian compensation for
4472 R_MIPS_64 even in ld -r.
4474 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4476 * elf32-mips.c (mips_elf_next_relocation): Rename from
4477 mips_elf_next_lo16_relocation, and generalize to look
4478 for any relocation type.
4479 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4480 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4481 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4482 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4483 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4484 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4485 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4486 (mips_rtype_to_howto): Likewise.
4487 (mips_elf_calculate_relocation): Handle new relocs.
4488 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4489 are paired. The addend for R_MIPS_GNU_REL16_S2
4490 is shifted right two bits.
4492 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4494 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4495 comment, and ensure it doesn't happen again.
4496 (bfd_install_relocation): Same here.
4497 (_bfd_relocate_contents): Don't bother assigning unused signmask
4498 shift result. Fix typos in comments.
4499 Remove trailing whitespace throughout file.
4501 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4503 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4504 * bfd-in2.h: Rebuild.
4506 2000-03-06 Nick Clifton <nickc@cygnus.com>
4508 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4510 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4511 (SIZEOF_ILF_STRINGS): Redefine.
4512 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4513 relative reloc, as opposed to a section relative reloc.
4514 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4516 Add length of symbol's prefix to string pointer.
4517 Store a pointer to the symbol in the symbol pointer table.
4518 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4519 Initialise the symbol pointer table.
4520 Store the hint in the Hint/Name table.
4521 Make the jump reloc be symbol realtive, not section relative.
4522 Create an import symbol for imported code.
4524 2000-03-06 Catherine Moore <clm@cygnus.com>
4526 * elf.c (swap_out_syms): Check for null type_ptr.
4528 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4530 * aout-target.h (MY(write_object_contents)): Remove unused
4531 and unusable "#if CHOOSE_RELOC_SIZE".
4532 * pc532-mach.c (MY(write_object_contents)): Ditto.
4533 * netbsd.h (MY(write_object_contents)): Ditto.
4534 * hp300hpux.c (MY(write_object_contents)): Ditto.
4535 * freebsd.h (MY(write_object_contents)): Ditto.
4536 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4538 2000-02-29 H.J. Lu <hjl@gnu.org>
4540 * peicode.h (jtab): Make it static.
4542 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4543 defined and COFF_IMAGE_WITH_PE is not defined.
4544 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4545 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4547 2000-03-01 Nick Clifton <nickc@cygnus.com>
4549 * coff-arm.c (bfd_arm_process_before_allocation): Make
4550 'symndx' signed to prevent compile time warning.
4552 * coff-mcore.c: Remove unused prototype for pe_object_p.
4554 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4555 functions that are not used when COFF_IMAGE_WITH_PE is
4557 (struct sh_opcode): Change type of 'flags' field to unsigned
4558 long so that it can hold the USESAS flag.
4560 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4562 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4565 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4567 Remove unusued variables and code.
4568 (elf_backend_add_symbol_hook): Fix prototype.
4570 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4573 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4576 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4578 Remove unusued variables and code.
4579 (elf_backend_add_symbol_hook): Fix prototype.
4581 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4583 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4584 to unused function parameter.
4586 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4588 Use EMPTY_HOWTO to initialise empty howto slots.
4589 Remove unused variables.
4591 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4593 2000-03-01 H.J. Lu <hjl@gnu.org>
4595 * aoutx.h (aout_link_input_section_std): Pass "true" to
4596 the undefined_symbol callback.
4597 (aout_link_input_section_ext): Likewise.
4598 * bout.c (get_value): Likewise.
4599 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4600 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4602 (alpha_relocate_section): Likewise.
4603 * coff-arm.c (coff_arm_relocate_section): Likewise.
4604 * coff-i960.c (coff_i960_relocate_section): Likewise.
4605 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4606 * coff-mips.c (mips_relocate_section): Likewise.
4607 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4608 * coff-sh.c (sh_relocate_section): Likewise.
4609 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4610 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4611 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4612 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4613 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4614 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4615 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4616 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4617 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4618 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4619 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4620 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4621 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4622 * elflink.h (elf_link_output_extsym): Likewise.
4623 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4624 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4625 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4627 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4628 undefined_symbol callback when building shared library with
4629 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4631 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4632 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4633 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4634 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4635 (elf32_mips_get_relocated_section_content): Likewise.
4636 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4637 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4638 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4639 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4641 2000-02-28 Nick Clifton <nickc@cygnus.com>
4643 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4644 * Makefile.in: Regenerate.
4646 * configure.in: Add support for mips and sh pe vectors.
4647 * configure: regenerate.
4649 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4652 * targets.c: Add mips and sh pe vectors.
4654 * libpei.h (coff_final_link_postscript): Only define if not
4657 * coffcode.h: Add support for WinCE magic numbers.
4659 * peigen.c (pe_print_reloc): Update comment and rearrange
4660 appending of newline character.
4662 * peicode.h: Add support for Image Library Format.
4663 (pe_ILF_vars): Structure containing data used by ILF code.
4664 (pe_ILF_make_a_section): New function. Create a section based
4666 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4668 (pe_ILF_make_a_symbol): New function. Create a symbol based
4670 (pe_ILF_save_relocs): New function. Store the relocs created
4671 by pe_ILF_make_a_reloc in a section.
4672 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4674 (pe_ILF_object_p): New function. Return a bfd_target pointer
4676 (pe_bfd_object_p): If an ILF object is detected call
4677 pe_ILF_object_p on it.
4679 * coff-arm.c: Add support for WinCE relocs which are different
4680 from normal ARM COFF relocs.
4681 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4683 * coff-sh.c: Add support for sh-pe target.
4684 * pe-sh.c: New file. Support code for sh-pe target.
4685 * pei-sh.c: New file. Support code for sh-pe target.
4687 * pe-mips.c: New file. Support code for mips-pe target.
4688 * pei-mips.c: New file. Support code for mips-pe target.
4690 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4692 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4693 architecture if the object causing the bump is dynamic.
4694 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4695 and also don't it for memory ordering.
4696 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4698 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4700 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4701 calling bfd_get_section_size_before_reloc.
4702 (decode_line_info): Likewise.
4703 (_bfd_dwarf2_find_nearest_line): Likewise.
4705 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4707 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4708 name of the libtool directory.
4709 * Makefile.in: Rebuild.
4711 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4713 * som.c (SOM_HOWTO): Define.
4714 (som_hppa_howto_table): Use it.
4716 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4718 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4720 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4722 2000-02-24 Catherine Moore <clm@cygnus.com>
4724 * som.c (som_misc_symbol_info): Add field
4726 (som_bfd_derive_misc_symbol_info): Initialize
4728 (som_build_and_write_symbol_table): Keep track
4729 of secondary_def field.
4730 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4731 if secondary_def field is set.
4732 (som_bfd_ar_write_symbol_stuff): Initialize
4735 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4737 * dwarf2.c (read_address): Read 16-bits addresses.
4738 (parse_comp_unit): Accept addr_size == 2.
4740 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4742 * bfd-in.h: Update copyright date.
4744 2000-02-23 Linas Vepstas <linas@linas.org>
4746 * cpu-i370.c: New file.
4747 * elf32-i370.c: New file.
4748 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4749 (bfd_i370_arch): New.
4750 (bfd_archures_list): Add bfd_i370_arch.
4751 * elf.c (prep_headers): Add bfd_arch_i370.
4752 * Makefile.am: Add support for IBM 370 elf.
4753 * config.bfd: Likewise.
4754 * configure.in: Likewise.
4755 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4756 * reloc.c (bfd_reloc_code_type): Likewise.
4757 * targets.c: Likewise.
4759 * Makefile.in: Regenerate.
4760 * configure: Regenerate.
4761 * bfd-in2.h: Regenerate.
4763 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4765 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4766 invalid relocation types, and change them to R_386_NONE.
4768 2000-02-22 H.J. Lu <hjl@gnu.org>
4770 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4771 not defined, don't add a second ELF_VER_CHR.
4773 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4774 symbols converted to local symbols even when stripping all
4776 (elf_link_output_extsym): Process global symbols converted to
4777 local symbols even if they are being stripped.
4779 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4781 * archures.c (bfd_octets_per_byte): Return unsigned int.
4782 (bfd_arch_mach_octets_per_byte): Ditto.
4783 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4785 * section.c (bfd_get_section_size_before_reloc): Quell signed
4786 vs. unsigned comparison warning.
4787 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4788 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4789 change. What was I thinking?
4790 * bfd-in2.h: Regenerate.
4792 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4793 (elf_gc_sections): Same here.
4794 (elf_gc_common_finalize_got_offsets): And here.
4796 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4798 ELF HPPA doesn't work at present; remove it until it does.
4799 * config.bfd: Comment out setting targ_defvec to
4801 * Makefile.am: Rebuild dependencies.
4802 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4803 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4804 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4805 * Makefile.in: Rebuild.
4806 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4808 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4810 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4811 is no bfd_free(). Revert bfd_free part of previous change.
4813 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4815 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4817 (coff_compute_section_file_positions): Use bfd_free to pair
4819 (coff_write_object_contents): Likewise.
4821 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4822 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4824 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4826 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4827 (xcoff_ar_file_hdr_big): New structure.
4828 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4829 (xcoff_ar_hdr_big): New structure.
4830 (SIZEOF_AR_HDR_BIG): New macro.
4831 (xcoff_big_format_p): New macro.
4832 (xcoff_ardata_big): New macro.
4833 (arch_xhdr_big): New macro.
4834 (xcoff_slurp_armap): Handle large archives.
4835 (xcoff_archive_p): Detect large archives.
4836 (xcoff_read_ar_hdr): Handle large archives.
4837 (xcoff_openr_next_archived_file): Handle large archives.
4838 (xcoff_generic_stat_arch_elt): Handle large archives.
4839 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4840 (xcoff_write_armap_big): New function.
4841 (xcoff_write_armap): New function, dispatch to _old or _big.
4842 (xcoff_write_archive_contents_old): Rename from
4843 xcoff_write_archive_contents.
4844 (xcoff_write_archive_contents_big): New function.
4845 (xcoff_write_archive_contents): New function, dispatch to _old or
4848 2000-02-18 Richard Henderson <rth@cygnus.com>
4850 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4851 and hide_symbol members.
4852 (elf_link_hash_copy_indirect): Remove.
4853 (elf_link_hash_hide_symbol): Remove.
4854 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4855 and elf_backend_hide_symbol.
4856 (_bfd_elf_link_hash_copy_indirect): Declare.
4857 (_bfd_elf_link_hash_hide_symbol): Declare.
4858 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4859 (_bfd_elf_link_hash_hide_symbol): Likewise.
4860 (_bfd_elf_link_hash_table_init): Don't init killed members.
4861 * elflink.h (elf_link_add_object_symbols): Use the bed function
4862 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4863 (elf_link_assign_sym_version): Likewise.
4864 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4865 (elf_backend_hide_symbol): Likewise.
4866 (elfNN_bed): Update for new members.
4868 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4870 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4871 STACK_END_ADDR): Define for new core file format.
4872 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4873 for handling the vagaries of the various core file structures used
4874 by AIX over the years.
4875 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4876 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4877 core_dumpx structure.
4879 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4881 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4882 (bfd_mach_sh3_dsp): Likewise.
4883 (bfd_mach_sh4): Reinstate.
4884 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4885 * bfd-in2.h: Regenerate.
4886 * coff-sh.c (struct sh_opcode): flags is no longer short.
4887 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4888 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4889 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4890 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4891 (sh_opcodes): No longer const.
4892 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4893 (sh_insn_uses_reg): Check for USESAS and USESR8.
4894 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4895 (_bfd_sh_align_load_span): Return early for SH4.
4896 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4897 Take into account that field b of a parallel processing insn
4898 could be mistaken for a separate insn.
4899 * cpu-sh.c (arch_info_struct): New array elements for
4900 sh2, sh-dsp and sh3-dsp.
4901 Reinstate element for sh4.
4902 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4903 (SH4_NEXT): Reinstate.
4904 (SH3_NEXT, SH3E_NEXT): Adjust.
4905 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4906 * elf32-sh.c (sh_elf_set_private_flags): New function.
4907 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4908 (sh_elf_merge_private_data): New function.
4909 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4910 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4911 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4912 sh_elf_merge_private_data.
4914 2000-02-13 Richard Henderson <rth@cygnus.com>
4916 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4917 hide_symbol members.
4918 (elf_link_hash_copy_indirect): New.
4919 (elf_link_hash_hide_symbol): New.
4920 * elflink.h (elf_link_add_object_symbols): Break out copy from
4921 indirect new new symbol to elf.c.
4922 (elf_link_assign_sym_version): Break out privatization of
4923 non-exported symbol to elf.c.
4924 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4925 (_bfd_elf_link_hash_hide_symbol): New.
4926 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4928 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4930 * section.c (_bfd_strip_section_from_output): Add info parameter.
4931 If it passed as non-NULL, use it to check whether any input BFD
4932 has an input section which uses this output section. Change all
4934 * bfd-in2.h: Rebuild.
4936 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4937 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4939 * bfd-in2.h: Rebuild.
4941 2000-02-10 Timothy Wall <twall@cygnus.com>
4943 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4944 allow final modifications of swapped-in symbol.
4945 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4946 * coffcode.h (coff_write_relocs): Use macro
4947 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4948 symbol index should be set to -1.
4950 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4952 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4953 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4954 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4955 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4956 sh_insns_uses_or_sets_freg): New functions.
4957 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4958 * (sh_insns_conflict): Use new functions and new macros to
4959 detect conflicts when two instructions both set same integer registers,
4960 both set same fp register, and both set special register.
4962 2000-02-09 Timothy Wall <twall@cygnus.com>
4964 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4965 swapping in sections, so that the swapping routines have access to
4968 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4970 * coff-go32.c: Update comment. Update copyright.
4972 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4974 * syms.c (bfd_decode_symclass)
4975 Two new class characters were added - 'V' and 'v'. The
4976 meaning of 'W' is now restricted to just weak non-object
4977 symbols. This allows differentiation between, for example,
4978 weak functions vs weak objects. nm for example now dumps:
4980 'w' = weak unresolved
4981 'V' = weak global object
4982 'v' = weak unresolved object
4984 (bfd_is_undefined_symclass): New function. Return true if the
4985 given symbol class represents and undefined/unresolved symbol.
4987 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4990 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4992 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4993 STT_ARM_16BIT flag set, but it is not attached to a data object
4994 return STT_ARM_16BIT so that it will be treated as code by the
4997 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4999 * coff-i386.c (i3coff_object_p): Remove prototype.
5002 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5003 to name. Update copyright.
5005 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5006 assignment to avoid warning. Update copyright.
5008 2000-01-24 Robert Lipe (robertl@sco.com)
5010 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5011 instead of using GNU C extension.
5013 2000-01-21 Nick Clifton <nickc@cygnus.com>
5015 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5016 amount from a bfd_in_memory structure.
5017 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5020 2000-01-14 Nick Clifton <nickc@cygnus.com>
5022 * linker.c (default_indirect_link_order): oops - fix incorrectly
5023 applied patch from Tim Wall.
5025 2000-01-13 Timothy Wall (twall@tiac.net>
5027 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5028 = scnhsz, filhsz, relsz, aoutsz, etc)
5030 * coffswap.h: Ditto.
5032 2000-01-13 Nick Clifton <nickc@cygnus.com>
5034 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5035 interwork thumb to arm stub.
5037 2000-01-13 Timothy Wall (twall@tiac.net>
5039 * archures.c (bfd_octets_per_byte): New function: Return
5041 (bfd_arch_mach_octets_per_byte): New function: Return target
5044 * section.c: Distinguish between octets and bytes for usage of
5045 _cooked_size, _raw_size, and output_offset. Clarify
5046 description of bfd_set_section_contents.
5048 * bfd-in2.h: Regenerate.
5050 * coffgen.c: Indicate that the offset parameter is in bytes, not
5053 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5054 where appropriate to get the octet offset when calling
5055 bfd_set_section_contents.
5056 (bfd_coff_reloc_link_order): Ditto.
5058 * linker.c (bfd_generic_reloc_link_order): Ditto.
5059 (_bfd_default_link_order): Ditto.
5061 * reloc.c (bfd_perform_relocation): Distinguish between octets
5062 and bytes. Use octets when indexing into octet data; use bytes
5063 when calculating target addresses.
5064 (bfd_install_relocation): Ditto.
5066 * srec.c (srec_write_section): Ditto.
5068 2000-01-13 Nick Clifton <nickc@cygnus.com>
5070 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5071 3 to 2. This allows 4 byte sized sections, which is necessary for
5072 dlltool to build functioning DLLs.
5074 2000-01-10 Philip Blundell <pb@futuretv.com>
5076 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5077 (arm*-*-conix*): New target.
5079 2000-01-10 Egor Duda <deo@logos-m.ru>
5081 * config.bfd: Include elf32_i386 vector to target list for cygwin
5084 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5085 * configure.in: Test for structure win32_pstatus_t in
5087 * configure: Regenerate.
5089 * elf.c (elfcore_grok_win32pstatus): New function: process
5090 win32_pstatus_t notes in elf core file.
5091 (elfcore_grok_note): Detect win32_pstatus notes.
5093 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5095 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5097 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5098 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5100 For older changes see ChangeLog-9899
5106 version-control: never