1 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3 * cpu-openrisc.c: New file.
4 * elf32-openrisc.c: Likewise.
6 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
7 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
8 (BFD32_BACKENDS): Add elf32-openrisc.lo.
9 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
10 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
11 * Makefile.in: Regenerated.
12 * config.bfd: (openrisc-*-elf): New target.
13 * configure.in (bfd_elf32_openrisc_vec): New vector.
14 * configure: Regenerated.
15 * libbfd.h: Regenerated.
16 * bfd-in2.h: Regenerated.
17 * reloc.c: Add OpenRISC relocations.
18 * targets.c (bfd_elf32_openrisc_vec): Declare.
19 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
20 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
21 (bfd_openrisc_arch): Declare.
22 (bfd_archures_list): Add bfd_openrisc_arch.
23 * elf.c (prep_headers): Add bfd_arch_openrisc.
25 2001-04-23 Bo Thorsen <bo@suse.de>
27 * elf64-x86-64.c: Add c++ vtable hack.
28 Small whitespace and comment changes.
30 2001-04-19 Andreas Jaeger <aj@suse.de>
32 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
33 (elf64_x86_64_plt_entry): Likewise.
34 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
35 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
37 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
39 * elf32-cris.c: Tweak comments related to dynamic linking.
40 (cris_elf_relocate_section): When not creating shared object, fill
41 in the .got table for any symbol not in the dynamic symbol table.
42 (elf_cris_finish_dynamic_symbol): When not creating shared object,
43 only emit a .got.rela reloc if the symbol is in the dynamic symbol
45 (cris_elf_check_relocs): Use variable r_type in all places rather
46 than the original expression. Add default case in switch for
48 (elf_cris_size_dynamic_sections): Iterate over
49 elf_cris_discard_excess_program_dynamics when not creating shared
51 (elf_cris_discard_excess_dso_dynamics): Renamed from
52 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
53 (elf_cris_discard_excess_program_dynamics): New.
55 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
57 * coffcode.h (coff_write_object_contents): Use
58 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
60 2001-04-14 H.J. Lu <hjl@gnu.org>
62 * bfd-in2.h: Regenerate.
64 2001-04-14 Jakub Jelinek <jakub@redhat.com>
66 * section.c (STD_SECTION): Add entsize.
68 2001-04-13 H.J. Lu <hjl@gnu.org>
70 * section.c (SEC_MERGE): Define new flag for merging.
71 (SEC_STRINGS): Likewise.
74 2001-04-13 Roger Sayle <roger@metaphorics.com>
76 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
77 flag on pe-i386 targets.
79 2001-04-13 Jakub Jelinek <jakub@redhat.com>
81 * libbfd-in.h (_bfd_merge_section): New.
82 (_bfd_write_merged_section): New.
83 (_bfd_merged_section_offset): New.
85 * linker.c (_bfd_generic_link_output_symbols): Handle
87 * aoutx.h (aout_link_write_symbols): Likewise.
88 * pdp11.c (aout_link_write_symbols): Likewise.
89 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
90 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
92 (elf_link_sec_merge_syms): New.
93 (elf_link_input_bfd): Call _bfd_merged_section_offset
94 and _bfd_write_merged_section.
95 Handle discard_sec_merge.
96 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
98 (struct bfd_elf_section_data): Likewise.
99 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
100 SEC_STRINGS section flags and entsize from their ELF counterparts.
101 (_bfd_elf_link_hash_table_init): Initialize merge_info.
102 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
103 from their BFD counterparts.
105 * Makefile.am: Add strtab.lo.
106 * Makefile.in: Rebuilt.
108 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
110 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
111 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
113 2001-04-05 Steven J. Hill <sjhill@cotw.com>
115 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
116 endian MIPS ELF target.
117 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
120 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
121 64bit big endian MIPS ELF target.
122 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
123 endian MIPS ELF target.
124 * configure: Regenerated.
126 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
127 little endian targets.
128 (mips_elf_sym_is_global): Handle traditional targets.
130 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
131 64bit big endian MIPS ELF target.
132 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
133 endian MIPS ELF target.
135 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
136 and bfd_elf64_tradlittlemips_vec.
138 2001-04-05 David Mosberger <davidm@hpl.hp.com>
140 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
141 ordinary "progbits" section.
143 2001-04-04 Alan Modra <alan@linuxcare.com.au>
145 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
146 when -Bsymbolic causes a symbol to no longer need a .plt entry.
148 2001-04-03 David Mosberger <davidm@hpl.hp.com>
150 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
152 2001-03-30 H.J. Lu <hjl@gnu.org>
154 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
155 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
157 2001-03-26 H.J. Lu <hjl@gnu.org>
159 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
160 if there are any relocations for generic ELF.
161 (bfd_elf32_bfd_link_add_symbols): Defined to
162 elf32_generic_link_add_symbols.
163 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
164 if there are any relocations for generic ELF.
165 (bfd_elf64_bfd_link_add_symbols): Defined to
166 elf64_generic_link_add_symbols.
168 2001-03-23 Nick Clifton <nickc@redhat.com>
170 * Makefile.am (BUILD_CFILES): New variable: List of C source
171 files created in build directory.
172 (BUILD_HFILES): New variable: List of header files created in
175 (po/POTFILES.in): Replace rule with empty entry.
176 (po/SRC-POTFILES.in): New rule: Create a list of source files
177 in the source directory.
178 (po/BLD-POTFILES.in): New rule: Create a list of source files
179 in the build directory.
180 (MOSTLYCLEAN): Do not delete source files created in build
182 * Makefile.in: Regenerate.
183 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
185 * configure: Regenerate.
187 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
189 Add .. to the search path when building bfd.pot.
190 Delete POTFILES when performing distclean.
191 Add comment describing why distclean is broken in maintainer mode.
192 * po/POTFILES.in: Delete.
193 * po/SRC-POTFILES.in: New file.
194 * po/BLD-POTFILES.in: New file.
195 * po/bfd.pot: Regenerate.
197 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
199 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
200 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
201 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
202 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
203 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
204 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
206 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
207 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
208 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
209 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
210 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
211 New HOWTO members for new relocs.
212 (cris_reloc_map): Map new relocs.
213 (ELF_DYNAMIC_INTERPRETER): Define.
214 (PLT_ENTRY_SIZE): Define.
215 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
216 elf_cris_pic_plt_entry): New, PLT templates.
217 (struct elf_cris_pcrel_relocs_copied, struct
218 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
219 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
220 (cris_final_link_relocate): Check that 16-bit GOT relocs have
221 positive values. Adjust PCREL relocs to be relative to location
223 (cris_elf_relocate_section): Handle relocations to dynamic
224 objects. Handle new relocations. Call error handler when seeing
225 non-PIC relocation for read-only sections while generating shared
227 (cris_elf_check_relocs): Set reference counts for GOT and PLT
229 (bfd_elf32_bfd_link_hash_table_create,
230 elf_backend_adjust_dynamic_symbol,
231 elf_backend_size_dynamic_sections,
232 elf_backend_finish_dynamic_symbol,
233 elf_backend_finish_dynamic_sections,
234 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
235 elf_backend_hide_symbol, elf_backend_want_got_plt,
236 elf_backend_plt_readonly, elf_backend_want_plt_sym,
237 elf_backend_got_header_size, elf_backend_plt_header_size):
240 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
241 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
242 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
243 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
244 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
245 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
246 * bfd-in2.h, libbfd.h: Regenerate.
248 2001-03-21 Diego Novillo <dnovillo@redhat.com>
250 (_bfd_mips_elf_relocate_section): Give a better error message when
251 a relocation is not recognized.
253 2001-03-21 Alan Modra <alan@linuxcare.com.au>
255 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
256 non-NULL before attempting to dereference.
258 2001-03-20 H.J. Lu <hjl@gnu.org>
260 * configure.in: Remove the redundent AC_ARG_PROGRAM.
261 * configure: Rebuild.
263 2001-03-20 Andreas Schwab <schwab@suse.de>
265 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
266 relocation value when resolving a reference from a debugging
269 2001-03-16 Scott Thomason <SThomaso@hii.com>
271 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
272 (xcoff64_swap_sym_out): Fix syntax errors.
274 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
276 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
278 2001-03-15 Alan Modra <alan@linuxcare.com.au>
280 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
281 (hppa_link_hash_newfunc): Init it.
282 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
283 section appears to be non-PIC.
284 (final_link_relocate): Likewise.
285 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
286 possible candidate function, and set pic_call for those that will
287 only have a .plt entry for the PIC call stub.
288 (hppa_handle_PIC_calls): Set maybe_pic_call.
290 2001-03-12 DJ Delorie <dj@redhat.com>
292 * elf32-sh.c (sh_elf_relocate_section): Only relocation
293 R_SH_DIR8WP* relocs if they're against external symbols, else
294 they're just for relaxing. Validate the reloc values.
296 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
298 * binary.c (bfd_external_binary_architecture): Declare.
299 (binary_object_p): If bfd_external_binary_architecture is defined,
300 set the architecture to this string.
302 2001-03-11 Philip Blundell <philb@gnu.org>
304 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
305 entries that could serve as a definition for a weak symbol.
307 2001-03-08 Nick Clifton <nickc@redhat.com>
309 * Most files: Update copyright notices using Perl script created
310 by Kevin Buettner <kevinb@redhat.com>.
312 2001-03-07 Nick Clifton <nickc@redhat.com>
314 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
315 prior patch on ! defined OLD_ARM_ABI.
317 2001-03-07 Andreas Jaeger <aj@suse.de>
319 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
320 some relocation values.
322 2001-03-06 Nick Clifton <nickc@redhat.com>
324 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
325 of offset in BLX(1) instruction.
326 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
327 offset in BLX(1) instruction.
330 2001-03-06 Nick Clifton <nickc@redhat.com>
332 * coff-arm.c (coff_arm_reloc_type_lookup): Add
333 BFD_RELOC_THUMB_PCREL_BLX.
335 2001-03-06 Igor Shevlyakov <igor@windriver.com>
337 * archures.c (bfd_default_scan): Add Coldfire CPUs.
338 * bfd-in2.h: Regenerate.
339 * cpu-m68k.c: Add Coldfire CPUs for arch table.
340 * ieee.c (ieee_write_processor): Set proper id for
343 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
345 * configure.in: Add s390 target.
346 * configure: Regenerate.
348 2001-02-28 Andreas Jaeger <aj@suse.de>
350 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
353 2001-02-28 Philip Blundell <pb@futuretv.com>
355 * elf32-arm.h: Update mentions of renamed EF_xx constants.
356 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
358 2001-02-27 H.J. Lu <hjl@gnu.org>
360 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
361 abfd->tdata.aout_data == NULL.
363 2001-02-27 Alan Modra <alan@linuxcare.com.au>
365 * elf32-hppa.c: Correct field selector in stub comments.
366 (clobber_millicode_symbols): Formatting fix.
368 * configure.in: Bump version to 2.11.90.
369 * configure: Regenerate.
370 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
371 (CFILES): $SOURCE_CFILES + generated C files.
372 (POTFILES): Include $HFILES not $SOURCE_HFILES.
374 * Makefile.in: Regenerate.
375 * doc/Makefile.in: This too.
377 2001-02-26 Timothy Wall <twall@cygnus.com>
379 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
382 2001-02-26 Nick Clifton <nickc@redhat.com>
384 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
385 up, replacing multiple if statements with a switch.
386 (handle_COMDAT): New function.
388 2001-02-26 H.J. Lu <hjl@gnu.org>
390 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
391 a warning for section flags we do not handle instead of
394 2001-02-26 Andreas Jaeger <aj@suse.de>
396 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
398 2001-02-22 Timothy Wall <twall@cygnus.com>
400 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
401 * configure.in: Add objects for elf64_ia64_aix vectors.
402 * configure: Regenerated.
403 * configure.host: Recognize ia64-*-aix*.
404 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
405 for AIX. AIX5 requires most relocations to be dynamic (*all*
406 binaries are somewhat similar to shared libraries).
407 * targets.c: Add elf64_ia64_aix vectors.
409 2001-02-21 David Mosberger <davidm@hpl.hp.com>
411 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
412 C8 said "1" instead of "8". Clarify error string for IMM22:
413 "signed integer" instead of just "integer".
415 2001-02-20 Andreas Jaeger <aj@suse.de>
417 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
418 PLT entries that could serve as a definition for a weak symbol.
420 2001-02-19 Jakub Jelinek <jakub@redhat.com>
422 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
423 entries that could serve as a definition for a weak symbol.
424 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
426 2001-02-18 David O'Brien <obrien@FreeBSD>
428 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
429 FreeBSD/i386-CURRENT differently until I can figure out the needed
431 * configure: Regenerate.
432 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
433 FreeBSD/PowerPC, and FreeBSD/sparc64.
435 2001-02-18 lars brinkhoff <lars@nocrew.org>
437 * Makefile.am: Add PDP-11 a.out target.
438 * config.bfd: Likewise.
439 * configure.in: Likewise.
440 * targets.c: Likewise.
441 * archures.c: Likewise.
442 * bfd-in2.h: Likewise. Add PDP-11 relocations.
443 * libbfd.h: Add PDP-11 relocations.
445 * cpu-pdp11.c: New file.
448 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
449 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
450 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
451 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
452 (GET_MAGIC): New macro.
453 (PUT_MAGIC): Likewise.
454 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
456 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
458 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
461 2001-02-18 H.J. Lu <hjl@gnu.org>
463 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
466 2001-02-18 Kazu Hirata <kazu@hxi.com>
468 * vms-misc.c: Fix formatting.
470 2001-02-16 Kazu Hirata <kazu@hxi.com>
472 * vms.c: Fix formatting.
474 2001-02-14 H.J. Lu <hjl@gnu.org>
476 * elf.c (elf_find_function): New function.
477 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
478 the file name and function name.
480 2001-02-14 Nick Clifton <nickc@redhat.com>
482 * ecoff.c (bfd_debug_section): Update to initialise new fields in
485 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
486 (BFD64_BACKENDS): Add pepigen.c
487 Add rules to create peigen.c and pepigen.c from peXXigen.c.
489 * Makefile.in: Regenerate.
490 * configure: Regenerate.
491 * po/POTFILES.in: Regenerate.
492 * po/bfd.pot: Regenerate.
494 2001-02-14 H.J. Lu <hjl@gnu.org>
496 * libcoff-in.h (pe_tdata): Add members target_subsystem and
497 force_minimum_alignment.
499 2001-02-14 Bo Thorsen <bo@suse.de>
501 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
502 (elf64_86_64_size_info): Struct added to fix a problem
503 with the hashtable string entries.
504 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
505 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
506 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
507 remove the FIXME for this.
508 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
509 section. Also removed the FIXME for it.
510 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
511 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
512 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
514 2001-02-13 Richard Henderson <rth@redhat.com>
516 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
517 and not user provided.
519 2001-02-13 Kazu Hirata <kazu@hxi.com>
521 * vms.c (vms_print_symbol): Remove unreachable code.
523 * rs6000-core.c: Fix formatting.
525 2001-02-13 David Mosberger <davidm@hpl.hp.com>
527 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
528 as _bfd_XXi_only_swap_filehdr_out.
529 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
530 pe->force_minimum_alignment to TRUE.
531 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
532 PEI_TARGET_SUBSYSTEM.
533 (pe_print_private_bfd_data): Call
534 _bfd_XX_print_private_bfd_data_common() instead of
535 _bfd_pe_print_private_bfd_data_common().
536 (pe_bfd_copy_private_bfd_data): Call
537 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
538 _bfd_pe_bfd_copy_private_bfd_data_common().
539 (coff_bfd_copy_private_section_data): Define as
540 _bfd_XX_bfd_copy_private_section_data instead of
541 _bfd_pe_bfd_copy_private_section_data.
542 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
543 of a _bfd_pe_get_symbol_info.
547 * peXXigen.c: Renamed from peigen.c.
548 (COFF_WITH_XX): Define this macro (will get expanded into
549 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
550 compiled as peigen.c or pepigen.c.
551 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
552 define the canonical PEP structures and definitions.
553 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
554 effect, enforce minimum file and section alignments. If
555 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
556 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
557 so, by default, this is a no-op).
559 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
560 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
561 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
562 _bfd_pefoo if it's not defined. Use these macros to define
565 * libcoff.h (pe_tdata): Add members target_subsystem and
566 force_minimum_alignment.
568 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
570 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
572 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
575 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
576 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
579 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
580 (BFD64_BACKENDS_CFILES): Mention pepigen.c
581 (peigen.c): Add rule to generate from peXXigen.c.
583 (pepigen.lo): List dependencies for pepigen.lo.
585 2001-02-13 Alan Modra <alan@linuxcare.com.au>
587 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
588 $global$ referenced but not defined, set its value here.
590 2001-02-09 Bo Thorsen <bo@suse.de>
592 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
594 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
596 (elf64_x86_64_relocate_section): Fix formatting.
597 (elf64_x86_64_relocate_section): Fix addend for relocation of
598 R_X86_64_(8|16|32|PC8|PC16|PC32).
600 2001-02-12 Jan Hubicka <jh@suse.cz>
602 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
604 2001-02-11 H.J. Lu <hjl@gnu.org>
606 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
609 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
611 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
612 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
613 relocations against dynsym symbols.
615 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
616 the R_MIPS_26 relocation.
617 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
618 the R_MIPS_26 relocation.
619 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
621 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
622 the R_MIPS_26 relocation.
623 (mips_elf64_howto_table_rela): Likewise.
625 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
626 member to mark symbols that have non-CALL relocations against
628 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
629 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
631 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
632 non-CALL relocation against it is encountered.
633 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
634 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
635 no_fn_stub is not set.
637 * elf32-mips.c (mips_elf_output_extsym): Get the output section
638 information from the real symbol for indirect ones.
639 Check no_fn_stub to find out if a symbol has a function stub
642 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
644 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
645 * Makefile.in: Regenerate.
647 2001-02-09 David Mosberger <davidm@hpl.hp.com>
649 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
650 true if section name is an unwind table section name.
651 (elfNN_ia64_additional_program_headers): Count each unwind section
653 (elfNN_ia64_modify_segment_map): Install one unwind program header
654 for each unwind separate section. Note: normally the linker
655 script merges the unwind sections that go into a single segment,
656 so this still generates at most one unwind program header per
659 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
660 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
661 (elfNN_ia64_fake_sections): Mark sections with names that start
662 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
665 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
666 Use it to make sh_info in unwind section point to the text section
669 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
671 * Makefile.am: Add linux target for S/390.
672 * archures.c: Likewise.
673 * bfd-in2.h: Likewise.
674 * config.bfd: Likewise.
675 * configure.in: Likewise.
677 * libbfd.h: Likewise.
678 * targets.c: Likewise.
679 * cpu-s390.c: New file.
680 * elf32-s390.c: New file.
681 * elf64-s390.c: New file.
683 2001-02-09 Nick Clifton <nickc@redhat.com>
685 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
686 ImageBase. This has already been done by coff_swap_hdr_in.
688 2001-02-09 Jakub Jelinek <jakub@redhat.com>
690 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
692 2001-02-09 Jakub Jelinek <jakub@redhat.com>
694 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
695 (sparc64_elf_relocate_section): Likewise.
697 2001-02-09 Mark Kettenis <kettenis@gnu.org>
699 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
700 similar to R_SPARC_32.
701 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
703 2001-02-08 H.J. Lu <hjl@gnu.org>
705 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
706 relocation entries for weak definitions when building DSO with
709 2001-02-08 Richard Henderson <rth@redhat.com>
711 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
712 before visibility. Locally defined protected symbols are not
715 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
717 * config.bfd: Enable coff64 for rs6000-*. Patch from
718 <hzoli@austin.ibm.com>.
720 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
722 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
723 found, do not attempt to find dwarf2 info before returning.
725 2001-02-07 Jakub Jelinek <jakub@redhat.com>
727 * elflink.h (is_global_symbol_definition): Rename to
728 is_global_data_symbol_definition and have it reject function
730 (elf_link_is_defined_archive_symbol): Use renamed function.
732 2001-02-07 Todd Vierling <tv@wasabisystems.com>
734 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
735 * libbfd.h (bfd_target_vector): Likewise.
736 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
737 make static; create pointer reference named bfd_target_vector.
738 (_bfd_target_vector_entries): Calculate this based on the array
739 typed _bfd_target_vector.
741 2001-02-06 H.J. Lu <hjl@gnu.org>
743 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
744 internal symbols are not dynamic.
745 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
747 2001-02-06 Nick Clifton <nickc@redhat.com>
749 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
750 that it will not be pulled into the list of files that make up
752 * Makefile.in: Regenerate.
753 * po/bfd.pot: Regenerate.
755 2001-02-06 H.J. Lu <hjl@gnu.org>
757 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
759 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
760 external_PEI_IMAGE_hdr.
762 2001-02-06 Kazu Hirata <kazu@hxi.com>
764 * elf-m10200.c: Fix formatting.
766 2001-02-04 Nick Clifton <nickc@redhat.com>
768 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
769 rel, it will be handled later on.
771 2001-02-02 Fred Fish <fnf@ninemoons.com>
773 * Makefile.in: Fix typo.
775 2001-02-01 Kazu Hirata <kazu@hxi.com>
777 * elf-m10300.c: Fix formatting.
779 2001-01-30 Alan Modra <alan@linuxcare.com.au>
781 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
782 (elf_backend_get_symbol_type): Define.
783 (elf64_hppa_object_p): Set architecture and machine from elf
786 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
788 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
791 2001-01-26 Richard Henderson <rth@redhat.com>
793 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
794 for non-default visibility.
795 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
796 delete ugly macro and replace with pretty function.
798 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
800 * coff-go32.c: Update copyright.
801 * coff-stgo32.c: Likewise.
802 * coff-go32.c (COFF_LONG_FILENAMES): Define.
803 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
804 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
805 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
807 2001-01-25 Kazu Hirata <kazu@hxi.com>
809 * bfd-in2.h: Rebuild.
810 * libbfd.h: Likewise.
812 2001-01-23 H.J. Lu <hjl@gnu.org>
814 * bfd-in2.h: Rebuild.
816 2001-01-23 H.J. Lu <hjl@gnu.org>
818 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
819 is NULL or PRIV(vms_rec) is outside of the buffer.
821 2001-01-23 Kazu Hirata <kazu@hxi.com>
823 * coff64-rs6000.c: Fix formatting.
824 * coff-arm.c: Likewise.
825 * coffgen.c: Likewise.
826 * cofflink.c: Likewise.
827 * coff-mcore.c: Likewise.
828 * coff-mips.c: Likewise.
829 * coff-pmac.c: Likewise.
830 * coff-ppc.c: Likewise.
831 * coff-rs6000.c: Likewise.
833 * elf32-fr30.c: Likewise.
834 * elf32-i370.c: Likewise.
835 * elf32-i860.c: Likewise.
836 * elf32-m32r.c: Likewise.
837 * elf32-m68k.c: Likewise.
838 * elf32-mcore.c: Likewise.
839 * elf32-ppc.c: Likewise.
840 * elf32-sh.c: Likewise.
841 * elf32-v850.c: Likewise.
842 * elf64-alpha.c: Likewise.
843 * elf64-sparc.c: Likewise.
844 * elflink.c: Likewise.
845 * elflink.h: Likewise.
846 * elf-m10200.c: Likewise.
847 * elf-m10300.c: Likewise.
848 * elfxx-ia64.c: Likewise.
850 * aoutx.h: Fix formatting.
852 * bfd-in2.h: Likewise.
853 * bfd-in.h: Likewise.
854 * cpu-i386.c: Likewise.
855 * cpu-m68hc11.c: Likewise.
856 * dwarf2.c: Likewise.
857 * elf64-x86-64.c: Likewise.
858 * format.c: Likewise.
859 * freebsd.h: Likewise.
861 * hp300hpux.c: Likewise.
862 * hppabsd-core.c: Likewise.
863 * hpux-core.c: Likewise.
865 2001-01-22 Bo Thorsen <bo@suse.de>
867 * elf64-x86-64.c: Added PIC support for X86-64.
868 (elf64_x86_64_link_hash_newfunc): Function added.
869 (elf64_x86_64_link_hash_table_create): Likewise.
870 (elf64_x86_64_check_relocs): Likewise.
871 (elf64_x86_64_gc_mark_hook): Likewise.
872 (elf64_x86_64_gc_sweep_hook): Likewise.
873 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
874 (elf64_x86_64_size_dynamic_sections): Likewise.
875 (elf64_x86_64_discard_copies): Likewise.
876 (elf64_x86_64_finish_dynamic_symbol): Likewise.
877 (elf64_x86_64_finish_dynamic_sections): Likewise.
878 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
880 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
882 * Makefile.am (install-data-local): Make use of $(DESTDIR).
883 * Makefile.in: Regenerate.
885 2001-01-21 Kazu Hirata <kazu@hxi.com>
887 * coff-a29k.c: Fix formatting.
889 2001-01-19 H.J. Lu <hjl@gnu.org>
891 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
892 relocation section names.
893 (elf_i386_relocate_section): Report files with bad relocation
894 section names and return false.
896 2001-01-17 Bo Thorsen <bo@suse.de>
898 * targets.c: Alphabetize list of xvecs.
900 2001-01-14 Alan Modra <alan@linuxcare.com.au>
902 * config.bfd: Add linux target variant for elfxx-hppa.
903 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
904 bfd_elf64_hppa_linux_vec.
905 * configure: Regenerate.
906 * elf64-hppa.c: Include elf64-target.h again to support linux
908 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
909 * elf32-hppa.c: Include elf32-target.h again to support linux
911 (elf32_hppa_post_process_headers): New function.
912 (elf_backend_post_process_headers): Define.
913 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
914 bfd_elf32_hppa_linux_vec.
916 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
917 and data_segment_base fields.
918 (elf32_hppa_link_hash_table_create ): Init them.
919 (elf32_hppa_check_relocs): Update comments.
920 (hppa_record_segment_addr): New function.
921 (elf32_hppa_relocate_section): Call it.
922 (final_link_relocate): Handle R_PARISC_SEGREL32.
923 (elf32_hppa_final_link): New function.
924 (bfd_elf32_bfd_final_link): Define to call it.
925 (hppa_unwind_entry_compare): New function.
926 * cache.c (bfd_open_file): Create files in write+read mode.
928 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
929 SEGREL32 and numerous other relocs. Change duplicate
930 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
932 * opncls.c (bfd_fdopenr): Add parens like the comment says around
935 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
936 .plt entries for DT_INIT and DT_FINI.
937 (elf32_hppa_finish_dynamic_sections): Remove special handling of
940 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
941 offsets for stub .plt access if wide mode. Check offset in range.
943 2001-01-13 Nick Clifton <nickc@redhat.com>
945 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
948 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
951 2001-01-12 Alan Modra <alan@linuxcare.com.au>
953 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
954 * configure: Regenerate.
956 2001-01-11 Peter Targett <peter.targett@arccores.com>
958 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
959 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
960 * cpu-arc.c (arch_info_struct): Add entries for variants.
961 (bfd_arc_arch) Set default to bfd_mach_arc_5.
962 (arc_get_mach) Don't assume machine names prefixed arc- before
964 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
966 (arc_elf_final_write_processing) Likewise.
967 (ELF_MACHINE_CODE) Use EM_ARC.
969 2001-01-10 Nick Clifton <nickc@redhat.com>
971 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
973 2001-01-07 Philip Blundell <philb@gnu.org>
975 * README: Replace `bug-gnu-utils@gnu.org' with
976 `bug-binutils@gnu.org'.
978 2001-01-04 Kazu Hirata <kazu@hxi.com>
980 * som.c: Fix formatting.
982 2001-01-03 Kazu Hirata <kazu@hxi.com>
984 * ecoffswap.h: Fix formatting.
985 * elf-bfd.h: Likewise.
986 * elfarm-nabi.c: Likewise.
987 * elfarm-oabi.c: Likewise.
988 * elfcode.h: Likewise.
989 * elfcore.h: Likewise.
990 * elflink.c: Likewise.
991 * elflink.h: Likewise.
992 * elfxx-ia64.c: Likewise.
993 * elfxx-target.h: Likewise.
995 * linker.c: Likewise.
996 * lynx-core.c: Likewise.
998 2001-01-02 Kazu Hirata <kazu@hxi.com>
1000 * pc532-mach.c: Fix formatting.
1001 * pe-arm.c: Likewise.
1002 * pe-i386.c: Likewise.
1003 * pe-mips.c: Likewise.
1004 * pe-ppc.c: Likewise.
1005 * pe-sh.c: Likewise.
1006 * pei-mips.c: Likewise.
1007 * pei-sh.c: Likewise.
1008 * peicode.h: Likewise.
1009 * ppcboot.c: Likewise.
1010 * ptrace-core.c: Likewise.
1012 2001-01-01 Kazu Hirata <kazu@hxi.com>
1014 * reloc.c: Fix formatting.
1015 * riscix.c: Likewise.
1016 * rs6000-core.c: Likewise.
1017 * xcoff-target.h: Likewise.
1019 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1021 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1022 error, by calling bfd_default_set_arch_mach with incoming
1025 2000-12-26 Kazu Hirata <kazu@hxi.com>
1027 * vaxnetbsd.c: Fix formatting.
1028 * versados.c: Likewise.
1029 * vms-gsd.c: Likewise.
1030 * vms-hdr.c: Likewise.
1031 * vms-misc.c: Likewise.
1033 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1035 * archive.c (coff_write_armap): Don't write more than symbol_count
1036 `archive_member_file_ptr's.
1038 2000-12-25 Kazu Hirata <kazu@hxi.com>
1040 * vms-tir.c: Fix formatting.
1042 2000-12-23 Kazu Hirata <kazu@hxi.com>
1044 * vms.c: Fix formatting.
1047 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1049 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1051 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1053 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1056 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1058 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1060 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1062 * libbfd.c (bfd_get_bits): Added
1063 (bfd_put_bits): Likewise
1064 * bfd-in.h: Declared the above.
1065 * bfd-in2.h: Regenerated.
1067 2000-12-20 Kazu Hirata <kazu@hxi.com>
1069 * targets.c: Fix formatting.
1070 * tekhex.c: Likewise.
1071 * trad-core.c: Likewise.
1073 2000-12-19 Kazu Hirata <kazu@hxi.com>
1075 * sco5-core.c: Fix formatting.
1076 * section.c: Likewise.
1077 * sparclinux.c: Likewise.
1078 * sparclynx.c: Likewise.
1079 * sparcnetbsd.c: Likewise.
1081 * stabs.c: Likewise.
1082 * stab-syms.c: Likewise.
1083 * sunos.c: Likewise.
1085 * sysdep.h: Likewise.
1087 2000-12-18 Nick Clifton <nickc@redhat.com>
1089 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1091 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1092 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1094 2000-12-18 Nick Clifton <nickc@redhat.com>
1096 * vms-misc.c (_bfd_vms_get_record): Add default case to
1099 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1101 * elfcore.h (elf_core_file_p): Move to the start of the program
1102 headers before attempting to read them.
1104 2000-12-14 Kazu Hirata <kazu@hxi.com>
1106 * peigen.c: Fix formatting.
1110 2000-12-13 Kazu Hirata <kazu@hxi.com>
1112 * peigen.c: Fix formatting.
1114 2000-12-12 Jim Wilson <wilson@redhat.com>
1116 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1118 2000-12-08 Mark Salter <msalter@redhat.com>
1120 * binary.c (binary_set_section_contents): Ignore sections
1123 2000-12-12 Kazu Hirata <kazu@hxi.com>
1125 * m68klinux.c: Fix formatting.
1126 * m68knetbsd.c: Likewise.
1127 * mipsbsd.c: Likewise.
1128 * netbsd-core.c: Likewise.
1129 * netbsd.h: Likewise.
1130 * newsos3.c: Likewise.
1131 * nlm32-alpha.c: Likewise.
1132 * nlm32-i386.c: Likewise.
1133 * nlm32-ppc.c: Likewise.
1134 * nlm32-sparc.c: Likewise.
1135 * nlmcode.h: Likewise.
1136 * nlmswap.h: Likewise.
1137 * nlm-target.h: Likewise.
1138 * ns32knetbsd.c: Likewise.
1140 2000-12-10 Fred Fish <fnf@be.com>
1142 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1143 symbols in shared objects if allow_shlib_undefined is true.
1145 2000-12-12 Nick Clifton <nickc@redhat.com>
1147 * cpu-sh.c: Fix formattng.
1148 * elf.c: Fix formattng.
1149 * elf32-mips.c: Fix formattng.
1150 * elf32-sh.c: Fix formattng.
1151 * elf64-alpha.c: Fix formattng.
1153 2000-12-09 Nick Clifton <nickc@redhat.com>
1155 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1156 dwarf2_find_line_info as last parameter to invocation of
1157 _bfd_dwarf2_find_nearest_line.
1158 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1159 dwarf2_find_line_info as last parameter to invocation of
1160 _bfd_dwarf2_find_nearest_line.
1162 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1164 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1165 (BFD_LIBS): ...to here.
1166 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1167 (BFD_LIBS_CFILES): ...to here.
1168 * Makefile.in: Regenerate.
1169 * configure.in: Remove dwarf.lo from the elf shell variable.
1170 * configure: Regenerate.
1171 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1172 * libcoff.h: Regenerate.
1173 * coffgen.c (coff_find_nearest_line): Call
1174 _bfd_dwarf2_find_nearest_line.
1175 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1177 (read_abbrevs): Likewise
1178 (decode_line_info): Likewise.
1179 (parse_comp_unit): Likewise.
1180 (comp_unit_find_nearest_line): Likewise.
1181 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1182 * libbfd.h: Regenerate.
1183 * elf.c (_bfd_elf_find_nearest_line): Update call.
1184 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1185 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1186 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1187 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1188 (styp_to_sec_flags): Handle DWARF2 sections.
1189 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1190 to _bfd_find_nearest_line.
1191 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1192 call to _bfd_find_nearest_line.
1194 2000-12-08 Kazu Hirata <kazu@hxi.com>
1196 * coffgen.c: Fix formatting.
1197 * elf-m10300.c: Likewise.
1198 * elf32-i386.c: Likewise.
1199 * elf32-i960.c: Likewise.
1200 * elf32-m68k.c: Likewise.
1201 * elf32-mcore.c: Likewise.
1202 * elf32-ppc.c: Likewise.
1203 * elf32-sh.c: Likewise.
1204 * elf32-sparc.c: Likewise.
1205 * elf32-v850.c: Likewise.
1206 * elf64-alpha.c: Likewise.
1207 * elf64-hppa.c: Likewise.
1208 * elf64-mips.c: Likewise.
1209 * elf64-sparc.c: Likewise.
1211 2000-12-07 Kazu Hirata <kazu@hxi.com>
1213 * elf32-ppc.c: Fix formatting.
1214 * elf64-x86-64.c: Likewise.
1216 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1218 From Ralf Baechle <ralf@gnu.org>
1220 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1221 BFDs containing no sections or empty .text, .data or .bss sections
1222 to be merged, regardless of their flags.
1224 2000-12-06 Kazu Hirata <kazu@hxi.com>
1226 * elf32-m32r.c: Fix formatting.
1227 * elf32-m68hc11.c: Likewise.
1228 * elf32-m68hc12.c: Likewise.
1229 * elf32-m68k.c: Likewise.
1230 * elf32-mcore.c: Likewise.
1231 * elf32-pj.c: Likewise.
1232 * elf32-ppc.c: Likewise.
1234 2000-12-05 Kazu Hirata <kazu@hxi.com>
1236 * elf32-fr30.c: Fix formatting.
1237 * elf32-hppa.c: Likewise.
1238 * elf32-i370.c: Likewise.
1239 * elf32-i386.c: Likewise.
1240 * elf32-i860.c: Likewise.
1241 * elf32-i960.c: Likewise.
1243 2000-12-03 Kazu Hirata <kazu@hxi.com>
1245 * elf32-arm.h: Fix formatting.
1246 * elf32-avr.c: Likewise.
1247 * elf32-cris.c: Likewise.
1248 * elf32-d10v.c: Likewise.
1249 * elf32-d30v.c: Likewise.
1250 * elf-hppa.h: Likewise.
1251 * elf-m10200.c: Likewise.
1252 * elf-m10300.c: Likewise.
1254 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1256 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1257 bfd_mach_mips32_4k. Update FIXME comment.
1258 * archures.c (bfd_mach_mips32): New constant.
1259 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1260 the latter, renumber it.
1261 * bfd-in2.h (bfd_mach_mips32): New constant.
1262 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1263 the latter, renumber it.
1264 * cpu-mips.c (I_mips32): New constant.
1265 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1266 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1267 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1268 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1269 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1270 with E_MIPS_MACH_MIPS32_4K.
1271 (_bfd_mips_elf_final_write_processing): Replace
1272 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1273 bfd_mach_mips32 case.
1274 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1275 comparison with support for MIPS32.
1276 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1279 * aoutx.h (NAME(aout,machine_type)): Add cases for
1280 bfd_mach_mips5 and bfd_mach_mips64.
1281 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1282 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1283 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1284 (arch_info_struct): Add entries for bfd_mach_mips5 and
1286 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1287 _bfd_mips_elf_print_private_bfd_data): Add cases for
1288 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1289 (_bfd_mips_elf_final_write_processing): Add cases for
1290 bfd_mach_mips5 and bfd_mach_mips64.
1292 * aoutx.h (NAME(aout,machine_type)): Add a
1293 bfd_mach_mips_sb1 case.
1294 * archures.c (bfd_mach_mips_sb1): New constant.
1295 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1296 * cpu-mips.c (I_sb1): New constant.
1297 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1298 * elf32-mips.c (elf_mips_mach): Add case for
1300 (_bfd_mips_elf_final_write_processing): Add case for
1303 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1305 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1306 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1307 (sparc*-*-rtems*): Switched from a.out to ELF.
1309 2000-11-30 Jan Hubicka <jh@suse.cz>
1311 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1312 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1313 (elf64-x86-64.lo): Add dependencies.
1314 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1315 bfd_mach_x86_64_intel_syntax.
1316 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1317 * config.bfd (x86_64): Add.
1318 * configure.in: Add support for bfd_elf64_x86_64_vec.
1319 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1320 (bfd_i386_arch, i8086_ar): Link in.
1321 * elf64-x86-64.c: New file.
1322 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1323 * targets.c (bfd_elf64_x86_64_vec): Add.
1324 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1326 2000-11-30 Kazu Hirata <kazu@hxi.com>
1328 * xcofflink.c: Fix formatting.
1330 2000-11-28 Kazu Hirata <kazu@hxi.com>
1332 * aoutx.h: Fix formatting.
1333 * bfd-in.h: Likewise.
1334 * bfd-in2.h: Likewise.
1335 * cache.c: Likewise.
1336 * cisco-core.c: Likewise.
1337 * coff64-rs6000.c: Likewise.
1338 * coffcode.h: Likewise.
1339 * coffswap.h: Likewise.
1340 * corefile.c: Likewise.
1341 * elf32-mips.c: Likewise.
1343 2000-11-27 Kazu Hirata <kazu@hxi.com>
1345 * aout-adobe.c: Fix formatting.
1346 * coff64-rs6000.c: Likewise.
1347 * coffgen.c: Likewise.
1348 * cofflink.c: Likewise.
1350 2000-11-27 Philip Blundell <pb@futuretv.com>
1352 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1353 (obj_coff_strings_written): New accessor macro for above.
1354 * libcoff.h: Regenerate.
1355 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1357 * coffcode.h (coff_write_object_contents): No need to write out
1358 the string table if it's already been done.
1360 2000-11-22 Philip Blundell <pb@futuretv.com>
1362 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1363 weak undefined symbols.
1365 2000-11-24 Nick Clifton <nickc@redhat.com>
1367 * archures.c (bfd_mach_arm_5TE): Define.
1368 (bfd_mach_arm+XScale): Define.
1369 * bfd-in2.h: Regenerate.
1371 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1372 BFD_RELOC_ARM_PCREL_BLX.
1374 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1375 XScale machine numbers.
1377 * config.bfd (xscale-elf): Add target.
1378 (xscale-coff): Add target.
1380 * cpu-arm.c: Add xscale machine name.
1381 Add v5t, v5te and XScale machine numbers.
1383 2000-11-23 Kazu Hirata <kazu@hxi.com>
1385 * aix386-core.c: Fix formatting.
1387 2000-11-22 Jim Wilson <wilson@redhat.com>
1389 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1390 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1391 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1392 (ins_imms_scaled): Initialize sign_bit at function entry.
1393 (elf64_ia64_operands): Add missing initializers.
1394 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1395 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1396 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1397 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1398 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1400 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1401 and free_extsyms at function entry.
1402 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1403 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1404 (get_got): Delete unused local srel.
1405 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1406 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1408 2000-11-21 Kazu Hirata <kazu@hxi.com>
1410 * coff-a29k.c: Fix formatting.
1411 * coff-h8500.c: Likewise.
1412 * coff-i960.c: Likewise.
1413 * coff-ppc.c: Likewise.
1414 * coff-rs6000.c: Likewise.
1415 * coff-stgo32.c: Likewise.
1416 * coff-tic54x.c: Likewise.
1417 * coff-w65.c: Likewise.
1418 * cpu-h8500.c: Likewise.
1419 * cpu-hppa.c: Likewise.
1420 * cpu-ns32k.c: Likewise.
1421 * ecoff.c: Likewise.
1422 * ecofflink.c: Likewise.
1424 2000-11-21 Nick Clifton <nickc@redhat.com>
1426 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1427 remove possibility of infinite loop.
1429 2000-11-20 Kazu Hirata <kazu@hxi.com>
1431 * aix386-core.c: Fix formatting.
1432 * aout-adobe.c: Likewise.
1433 * aout-arm.c: Likewise.
1434 * aout-encap.c: Likewise.
1435 * aout-ns32k.c: Likewise.
1436 * aout-target.h: Likewise.
1437 * aout-tic30.c: Likewise.
1438 * aoutf1.h: Likewise.
1439 * aoutx.h: Likewise.
1440 * archive.c: Likewise.
1441 * bfd-in.h: Likewise.
1442 * bfd-in2.h: Likewise.
1446 2000-11-17 H.J. Lu <hjl@gnu.org>
1448 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1449 pltoff entries for DT_INIT and DT_FINI.
1450 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1451 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1454 2000-11-16 Richard Henderson <rth@redhat.com>
1456 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1457 (allocate_dynrel_entries): Likewise.
1458 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1459 (set_pltoff_entry): Likewise.
1460 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1461 (elfNN_ia64_reloc_type_lookup): Likewise.
1462 (elfNN_ia64_install_value): Likewise.
1463 (elfNN_ia64_relocate_section): Likewise.
1464 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1465 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1467 2000-11-16 Kazu Hirata <kazu@hxi.com>
1469 * cpu-a29k.c: Fix formatting.
1470 * cpu-alpha.c: Likewise.
1471 * cpu-arm.c: Likewise.
1472 * cpu-avr.c: Likewise.
1473 * cpu-d10v.c: Likewise.
1474 * cpu-h8500.c: Likewise.
1475 * cpu-hppa.c: Likewise.
1476 * cpu-i370.c: Likewise.
1477 * cpu-i386.c: Likewise.
1478 * cpu-i960.c: Likewise.
1479 * cpu-ia64-opc.c: Likewise.
1480 * cpu-ia64.c: Likewise.
1481 * cpu-m32r.c: Likewise.
1482 * cpu-m68hc11.c: Likewise.
1483 * cpu-m68hc12.c: Likewise.
1484 * cpu-m68k.c: Likewise.
1485 * cpu-m88k.c: Likewise.
1486 * cpu-mips.c: Likewise.
1487 * cpu-ns32k.c: Likewise.
1488 * cpu-pj.c: Likewise.
1489 * cpu-powerpc.c: Likewise.
1490 * cpu-sh.c: Likewise.
1491 * cpu-sparc.c: Likewise.
1492 * cpu-tic54x.c: Likewise.
1493 * cpu-v850.c: Likewise.
1494 * cpu-vax.c: Likewise.
1495 * cpu-w65.c: Likewise.
1496 * cpu-we32k.c: Likewise.
1497 * cpu-z8k.c: Likewise.
1498 * dwarf1.c: Likewise.
1499 * dwarf2.c: Likewise.
1501 2000-11-15 Kazu Hirata <kazu@hxi.com>
1503 * coff-arm.c: Fix formatting.
1504 * coff-ppc.c: Likewise.
1505 * coff-rs6000.c: Likewise.
1506 * coff-sh.c: Likewise.
1507 * coff-sparc.c: Likewise.
1508 * coff-tic30.c: Likewise.
1509 * coff-tic54x.c: Likewise.
1510 * coff-tic80.c: Likewise.
1511 * coff-w65.c: Likewise.
1512 * coff-we32k.c: Likewise.
1513 * coff-z8k.c: Likewise.
1515 2000-11-15 Richard Henderson <rth@redhat.com>
1517 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1518 section with the same ALLOC|LOAD flags as the source section.
1520 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1522 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1523 by STO_ALPHA constants.
1525 2000-11-14 Kazu Hirata <kazu@hxi.com>
1527 * coff-pmac.c: Fix formatting.
1528 * coff-ppc.c: Likewise.
1530 2000-11-13 H.J. Lu <hjl@gnu.org>
1532 * elflink.h (elf_link_add_object_symbols): Also add indirect
1533 symbols for common symbols with the default version.
1535 2000-11-09 Philip Blundell <pb@futuretv.com>
1537 * section.c (STD_SECTION): Set gc_mark flag.
1539 2000-11-11 Kazu Hirata <kazu@hxi.com>
1541 * coff-i960.c: Likewise.
1542 * coff-m68k.c: Likewise.
1543 * coff-m88k.c: Likewise.
1544 * coff-mcore.c: Likewise.
1545 * coff-mips.c: Likewise.
1547 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1549 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1551 2000-11-10 Kazu Hirata <kazu@hxi.com>
1553 * coff-h8300.c: Fix formatting.
1554 * coff-h8500.c: Likewise.
1555 * coff-i386.c: Likewise.
1556 * coff-i860.c: Likewise.
1557 * coff-i960.c: Likewise.
1558 * coff-ia64.c: Likewise.
1560 2000-11-09 Kazu Hirata <kazu@hxi.com>
1562 * archive.c: Fix formatting.
1563 * archures.c: Likewise.
1565 2000-11-07 Richard Henderson <rth@redhat.com>
1567 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1568 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1569 * section.c (bfd_set_section_contents): Call memcpy if
1570 section->contents set and location not equal to contents plus offset.
1572 2000-11-08 Kazu Hirata <kazu@hxi.com>
1574 * bfd-in.h: Fix formatting.
1575 * bfd-in2.h: Likewise.
1577 * binary.c: Likewise.
1579 * coff-a29k.c: Likewise.
1580 * coff-alpha.c: Likewise.
1581 * coff-apollo.c: Likewise.
1582 * coff-aux.c: Likewise.
1584 2000-11-07 Kazu Hirata <kazu@hxi.com>
1586 * aix386-core.c: Fix formatting.
1587 * aoutf1.h: Likewise.
1588 * aoutx.h: Likewise.
1589 * archures.c: Likewise.
1590 * armnetbsd.c: Likewise.
1592 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1594 * coff-h8300.c (special): Adjust reloc address.
1596 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1598 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1599 to differentiate elf32 and elf64 on ia64.
1600 * bfd-in2.h: Regenerate.
1601 * config.bfd: Add target for "ia64*-*-hpux*".
1602 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1603 * configure: Regenerate.
1604 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1605 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1607 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1608 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1609 * Makefile.in: Regnerate.
1610 * elf64-ia64.c: Deleted.
1611 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1613 2000-11-06 Kazu Hirata <kazu@hxi.com>
1615 * aout-adobe.c: Fix formatting.
1616 * aout-arm.c: Likewise.
1617 * aout-cris.c: Likewise.
1618 * aout-encap.c: Likewise.
1619 * aout-ns32k.c: Likewise.
1620 * aout-target.h: Likewise.
1621 * aout-tic30.c: Likewise.
1623 2000-11-05 Philip Blundell <philb@gnu.org>
1625 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1626 BFDs containing no sections to be merged, regardless of their flags.
1628 2000-11-04 Philip Blundell <philb@gnu.org>
1630 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1631 if a relocation for an undefined symbol also results in an
1634 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1636 * config.bfd: Add support for Sun Chorus.
1638 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1640 * configure.in: Recognize alpha-*-freebsd*.
1641 * configure: Regenerate.
1643 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1645 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1646 (Chunk): New global variable set by a parameter in objcopy.c.
1647 (S3Forced): New global variable set by a parameter in
1649 (srec_set_section_contents): If S3Forced is true, always generate
1651 (srec_write_section): Use 'Chunk' to limit maximum length of S
1654 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1656 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1657 * Makefile.in: Regenerate.
1658 * bfd-in2.h: Regenerate.
1659 * po/bfd.pot: Regenerate.
1661 2000-10-31 Philip Blundell <philb@gnu.org>
1663 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1664 EF_SOFT_FLOAT if it is defined.
1666 2000-10-27 Philip Blundell <philb@gnu.org>
1668 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1669 attempts to mix PIC code with non-PIC, just mark the output as
1670 being position dependent.
1671 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1672 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1673 all mismatches, not just the first one.
1675 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1677 * ieee.c (ieee_archive_p): Plug one of many possible
1678 memory leaks in error handling.
1680 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1682 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1683 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1685 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1686 sparc64_elf_object_p): Support v9b.
1687 * archures.c: Declare v8plusb and v9b machines.
1689 * cpu-sparc.c: Ditto.
1691 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1693 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1696 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1697 (SYMBOL_CALLS_LOCAL): New macro.
1698 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1699 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1700 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1701 (ppc_elf_relocate_section): Use flag variable to determine
1702 whether the relocation refers to a local symbol.
1703 Test whether a PLTREL24 reloc will produce a reloc by looking
1704 to see whether a PLT entry was made.
1706 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1708 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1709 entries that could serve as a definition for a weak symbol.
1711 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1713 From Ralf Baechle <ralf@gnu.org>
1715 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1716 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1717 against local symbols.
1718 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1720 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1722 * section.c (struct sec): Add kept_section.
1723 (struct bfd_comdat_info): Remove sec, we can use above.
1724 (STD_SECTION): Add initializer.
1725 (bfd_make_section_anyway): Init here too.
1727 * bfd-in2.h: Regenerate.
1729 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1731 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1732 fudge values for discarded link-once section symbols.
1734 * elf64-hppa.c: Include alloca-conf.h
1736 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1738 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1740 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1742 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1744 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1746 2000-10-10 Tom Rix <trix@redhat.com>
1748 * section.c (bfd_make_section_anyway): Release newsect ptr when
1749 newsect->symbol fails to alloc. Use bfd_release instead of free.
1751 2000-10-09 Richard Henderson <rth@cygnus.com
1753 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1754 (elf64_ia64_unwind_entry_compare): New.
1755 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1757 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1759 * elflink.h (size_dynamic_sections): Don't create various tags if
1760 .dynstr is excluded from the link. Don't set first dynsym entry
1761 if dynsymcount is zero.
1762 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1763 .dynsym excluded from the link. Don't try to write any dynamic
1764 sections excluded from the link.
1766 * elf.c (swap_out_syms): Handle global section symbols.
1768 2000-10-05 DJ Delorie <dj@redhat.com>
1770 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1771 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1772 (coff_write_relocs): write extended reloc count
1773 (coff_write_object_contents): account for extended relocs
1775 2000-10-05 Jim Wilson <wilson@cygnus.com>
1777 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1779 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1780 elf_backend_section_flags function.
1781 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1783 (elf64_ia64_section_flags): New function containing flag conversion
1785 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1786 * elfxx-target.h (elf_backend_section_flags): Define.
1787 (elfNN_bed): Initialize elf_backend_section_flags field.
1789 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1791 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1792 _bfd_elf32_gc_record_vtable. Correct a comment.
1794 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1796 From Ralf Baechle <ralf@gnu.org>
1798 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1799 produces binaries with got[1] = 0x80000001 to differenciate them
1800 for the dynamic linker from the broken binaries produced by old
1803 2000-09-30 Petr Sorfa <petrs@sco.com>
1805 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1806 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1807 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1808 * configure: Regenerate.
1810 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1812 Define two bfd_targets for absence and presence of leading
1813 underscore on symbols. Make sure to only link same kind.
1814 * elf32-cris.c (cris_elf_object_p,
1815 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1816 cris_elf_merge_private_bfd_data): New.
1817 (elf_backend_object_p, elf_backend_final_write_processing,
1818 bfd_elf32_bfd_print_private_bfd_data,
1819 bfd_elf32_bfd_merge_private_bfd_data): Define.
1820 <Target vector definition>: Include elf32-target.h twice with
1821 different macro settings:
1822 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1823 bfd_elf32_us_cris_vec.
1824 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1825 (elf_symbol_leading_char): First as 0, then '_'.
1826 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1827 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1828 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1829 * configure: Regenerate.
1830 * targets.c: Declare bfd_elf32_us_cris_vec.
1831 * po/bfd.pot: Regenerate.
1833 2000-09-29 Momchil Velikov <velco@fadata.bg>
1835 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1836 R_ARM_THM_PC22 relocations.
1838 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1840 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1842 2000-09-29 Momchil Velikov <velco@fadata.bg>
1844 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1845 is has the SEC_HAS_CONTENTS flag set.
1847 2000-09-28 Örjan Friberg <orjanf@axis.com>
1848 Hans-Peter Nilsson <hp@axis.com>
1850 * aout-cris.c (N_TXTADDR): Define.
1852 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1854 * som.c: Include alloca-conf.h.
1855 * Makefile.am: "make dep-am"
1856 * Makefile.in: Regenerate.
1858 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1860 * elf32-hppa.c (plt_stub): New.
1861 (PLT_STUB_ENTRY): Define.
1862 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1863 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1864 (elf32_hppa_link_hash_table_create): Init to suit.
1865 (elf32_hppa_check_relocs): Set has_12bit_branch and
1866 has_17bit_branch as appropriate.
1867 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1868 non-local functions.
1869 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1870 Add space for plt_stub as needed.
1871 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1872 functions at plt_stub.
1873 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1874 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1876 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1877 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1878 of fixed size, and if negative, disable handling of input sections
1879 before stub section. Set up default stub group size depending
1880 on detected branch relocs.
1881 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1882 ensure different offsets from sym_value aren't rounded to
1883 different 2k blocks. Use lrsel and rrsel for other stubs too for
1884 consistency rather than necessity.
1885 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1886 (final_link_relocate): Likewise.
1887 (elf32_hppa_relocate_section): Likewise.
1889 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1890 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1891 (elf_hppa_final_link_relocate): Handle them.
1892 (elf_hppa_relocate_insn): Likewise.
1893 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1895 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1897 * elfcode.h (elf_object_p): Preserve and clear abfd section
1898 information. Restore at error.
1900 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1902 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1903 is empty, make sure that its rva also 0. NT loader dislikes
1906 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1908 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1911 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1913 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1914 currently unused RELATIVE_DYNAMIC_RELOCS code.
1915 (hppa_discard_copies): Likewise.
1916 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1917 comments. Don't check non-code output sections for stub grouping.
1919 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1921 * section.c (bfd_get_unique_section_name): Return NULL if
1924 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1926 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1927 instruction sequence to actually work.
1928 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1931 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1933 * elf32-sh.c (sh_elf_relocate_section): Use
1934 _bfd_final_link_relocate to apply the relocation against a section
1935 symbol, when doing relocatable links.
1937 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1939 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1941 (stub_hash_newfunc): Here too.
1942 (hppa_add_stub): And here.
1943 (elf32_hppa_link_hash_table): Remove stub_section_created,
1944 reloc_section_created, first_init_sec and first_fini_sec. Add
1946 (elf32_hppa_link_hash_table_create): Init to suit.
1947 (hppa_get_stub_entry): Add support for grouping stub sections.
1948 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1949 section code. Index stub vars by section->id.
1950 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1951 exit paths. Zap allocation of above removed vars. Refine
1954 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1955 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1956 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1957 rather than pointer to bfd_link_info.
1958 (hppa_add_stub): Likewise.
1959 (final_link_relocate): Likewise.
1961 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1963 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1966 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1968 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1969 ld/emulparams/shelf.sh.
1971 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1973 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1974 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1975 * bfd-in2.h: Regenerate.
1977 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1979 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1980 LITUSE relocations incorrectly if -relax is specified on the ld
1981 command line and the displacement field of the load or store
1982 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1984 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1986 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1987 first_fini_sec here.
1988 (elf32_hppa_size_stubs): Instead correctly find the first .init
1989 and .fini section here.
1991 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1993 * elf32-hppa.c (clobber_millicode_symbols): New function.
1994 (elf32_hppa_size_dynamic_sections): Call it.
1996 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1998 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1999 packed. Add plabel, plt_abs packed booleans.
2000 (hppa_link_hash_newfunc): Init new fields.
2001 (PLABEL_PLT_ENTRY_SIZE): Define.
2002 (hppa_stub_name): Use size_t len vars.
2003 (hppa_add_stub): Likewise.
2004 (elf32_hppa_build_stubs): Likewise.
2005 (hppa_build_one_stub): Kill some compiler warnings.
2006 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2007 if dynamic linking. Munge the local plt offsets into
2008 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2009 size_t len vars. Add assert for plabel addend.
2010 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2011 (elf32_hppa_hide_symbol): New function.
2012 (elf_backend_hide_symbol): Define.
2013 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2014 with h->plabel set. Don't make plt entries to have dynamic syms
2015 when they have been forced local. If plt entry is used by a
2016 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2017 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2018 Set up .plt offsets for local syms.
2019 (elf32_hppa_relocate_section): Initialise plt entries for local
2020 syms. Leave weak undefined plabels zero. Make global plabel
2021 relocs against function symbol, and leave the addend zero.
2022 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2023 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2024 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2025 relocs instead of SEGREL32 for dynamic got relocs.
2026 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2027 (elf_backend_got_header_size): Adjust.
2028 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2030 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2031 (hppa_type_of_stub): Use it instead of #if 0
2032 (hppa_discard_copies): Use it here too.
2033 (elf32_hppa_size_dynamic_sections): And here.
2035 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2036 (elf32_hppa_link_hash_table_create): And here.
2037 (hppa_build_one_stub): And here. Instead keep track of stub
2038 offset using _raw_size.
2039 (elf32_hppa_size_stubs): Likewise.
2040 (elf32_hppa_build_stubs): Likewise.
2041 (hppa_size_one_stub): Likewise. Resize reloc section too.
2043 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2044 first_fini_sec handling. Don't search for reloc section or set
2045 hplink->reloc_section_created here.
2046 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2047 set reloc_section_created here.
2048 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2049 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2051 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2053 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2054 with `hplink->root.'.
2055 (elf32_hppa_check_relocs): Likewise.
2056 (elf32_hppa_gc_sweep_hook): Likewise.
2057 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2058 (hppa_handle_PIC_calls): Likewise.
2059 (elf32_hppa_size_dynamic_sections): Likewise.
2060 (elf32_hppa_set_gp): Likewise.
2061 (elf32_hppa_relocate_section): Likewise.
2062 (elf32_hppa_finish_dynamic_symbol): Likewise.
2063 (elf32_hppa_finish_dynamic_sections): Likewise.
2065 From David Huggins-Daines <dhd@linuxcare.com>
2066 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2067 defined weak symbols in shared links.
2068 (final_link_relocate): Calls to defined weak symbols in shared
2069 objects must go via import stubs, as the target might not be known
2072 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2074 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2075 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2076 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2077 the original entries with EMPTY_HOWTOs, and added new ones to fill
2079 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2080 (sh_elf_relocate_section): Likewise.
2082 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2084 * cpu-mips.c (arch_info_struct): Add mips:4K
2085 * bfd-in2.h (bfd_mach_mips4K): New define.
2086 * archures.c: Add bfd_mach_mips4K to comment.
2087 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2088 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2090 2000-09-13 Marco Franzen <marcof@thyron.com>
2092 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2093 use size_t as a counter.
2094 (som_write_space_strings): Similarly.
2096 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2098 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2100 (elf32_i860_relocate_section): Invoke new function from here.
2102 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2104 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2107 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2109 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2110 target section name instead of dumping core when the target symbol is
2113 2000-09-09 Kazu Hirata <kazu@hxi.com>
2115 * riscix.c: Remove DEFUN.
2117 2000-09-08 Nick Clifton <nickc@redhat.com>
2119 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2120 initialise flags in output bfd if the input bfd is the default
2121 architecture with the default flags.
2123 2000-09-08 Kazu Hirata <kazu@hxi.com>
2125 * archive.c: Fix formatting.
2126 * coff-arm.c: Likewise.
2127 * doc/chew.c: Likewise.
2129 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2131 * section.c (bfd_get_unique_section_name): Put a dot before the
2134 2000-09-07 Kazu Hirata <kazu@hxi.com>
2136 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2137 * elf.c: Fix formatting.
2139 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2141 * config.bfd (sh-*-linux*): Added.
2142 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2143 * targets.c: Declare them.
2144 * elf32-sh-lin.c: New file.
2145 * Makefile.am: Compile it.
2146 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2147 * configure, Makefile.in: Rebuilt.
2149 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2151 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2152 pseduo-section when determining where the TOC ends.
2154 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2155 output x_tvndx as it is only two bytes wide.
2157 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2158 reloc is 26 or 32 bits wide.
2160 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2161 for relocs that don't change anything. Also look at the full
2164 2000-09-06 Philip Blundell <philb@gnu.org>
2166 * config.bfd (arm*-*-uclinux*): New target.
2168 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2170 * configure: Rebuilt with new libtool.m4.
2172 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2174 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2175 word for variable name.
2176 * bfd-in2.h: Regenerate.
2178 2000-09-05 Nick Clifton <nickc@redhat.com>
2180 * config.in: Regenerate.
2181 * libbfd.h: Regenerate.
2182 * po/bfd.pot: Regenerate.
2183 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2186 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2188 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2190 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2192 Shared library and PIC support.
2193 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2194 (GOT_ENTRY_SIZE): New.
2195 (ELF_DYNAMIC_INTERPRETER): New.
2196 (STUB_SUFFIX): Define.
2197 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2198 (RELATIVE_DYNAMIC_RELOCS): Define.
2199 (enum elf32_hppa_stub_type): New.
2200 (struct elf32_hppa_stub_hash_entry): Rename offset to
2201 stub_offset. Add a number of new fields.
2202 (struct elf32_hppa_link_hash_entry): New.
2203 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2205 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2206 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2207 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2209 (hppa_link_hash_newfunc): New function.
2210 (elf32_hppa_link_hash_table_create): Use above function. Init new
2212 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2213 instead of addend, and remove sym_name from args. Don't use
2214 symbol name for local syms, instead use sym index.
2215 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2216 stub type rather than size. Pass in hash and handle import stub
2217 case. Also pass in reloc instead of offset so we can calculate
2218 PCREL22F and PCREL12F branches properly.
2219 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2220 import and export stubs too.
2221 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2222 import and export stub sizing.
2223 (elf32_hppa_check_relocs): New function.
2224 (elf32_hppa_adjust_dynamic_symbol): New function.
2225 (hppa_discard_copies): New function.
2226 (elf32_hppa_size_dynamic_sections): New function.
2227 (elf_backend_size_dynamic_sections): Define.
2228 (elf32_hppa_finish_dynamic_symbol): New function.
2229 (elf_backend_finish_dynamic_symbol): Define.
2230 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2231 some local vars into the link hash table too. For shared links,
2232 trundle over function syms, generating export stubs. Handle
2233 PCREL22F branches. Break out stub creation code from here..
2234 (hppa_add_stub): .. to here. New function.
2235 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2236 call the bfd linker. Use elf_gp to record global pointer.
2237 Calculate a value from sections if $global$ is missing.
2238 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2239 (elf32_hppa_gc_mark_hook): New function.
2240 (elf_backend_gc_mark_hook): Define.
2241 (elf32_hppa_gc_sweep_hook): New function.
2242 (elf_backend_gc_sweep_hook): Define.
2243 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2244 Add rel to args, and remove howto, input_bfd, offset, addend,
2245 sym_name as we can recalculate these locally. Handle calls to
2246 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2247 handling of undefined weak syms. Check that stubs are in range.
2248 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2249 message on hitting a DPREL21L reloc that needs fixing. Subtract
2250 off PC for PCREL14F. Break out code that does a stub lookup from
2252 (hppa_get_stub_entry): ..to here. New function.
2253 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2254 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2256 (elf32_hppa_finish_dynamic_sections): New function.
2257 (elf_backend_finish_dynamic_sections): Define.
2258 (elf_backend_final_write_processing) Define.
2259 (hppa_handle_PIC_calls): New function.
2260 (elf32_hppa_build_stubs): Call it. Pass link_info to
2261 hppa_build_one_stub.
2262 (elf32_hppa_create_dynamic_sections): New function
2263 to create .plt and .got then set .plt flags correctly.
2264 (elf_backend_create_dynamic_sections): Define.
2265 (elf32_hppa_object_p): New function.
2266 (elf_backend_object_p): Define.
2267 (elf32_hppa_elf_get_symbol_type): New function.
2268 (elf_backend_get_symbol_type): Define.
2269 (elf_backend_can_gc_sections): Define.
2270 (elf_backend_want_got_plt): Define.
2271 (elf_backend_plt_alignment): Set to 2.
2272 (elf_backend_plt_readonly): Define.
2273 (elf_backend_want_plt_sym): Define.
2274 (elf_backend_got_header_size): Reserve one entry.
2276 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2277 (elf32_hppa_size_stubs): Pass in multi_subspace.
2278 (elf32_hppa_set_gp): Declare.
2280 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2281 (bfd_get_unique_section_name): New function.
2282 * bfd-in2.h: Regenerate.
2284 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2285 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2288 From David Huggins-Daines <dhd@linuxcare.com>
2289 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2290 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2291 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2292 been updated in finish_dynamic_symbol before modifying function
2295 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2296 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2297 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2298 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2299 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2300 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2301 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2302 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2304 From David Huggins-Daines <dhd@linuxcare.com>
2305 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2306 style of local labels as well.
2308 2000-09-03 Philip Blundell <philb@gnu.org>
2310 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2311 references to undefined symbols in debugging sections.
2313 2000-09-02 H.J. Lu <hjl@gnu.org>
2315 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2316 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2317 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2320 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2322 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2323 (elf32_i860_is_local_label_name): New function and prototype.
2325 2000-09-02 Nick Clifton <nickc@redhat.com>
2327 * configure.in: Increase version number to 2.10.91.
2328 * configure: Regenerate.
2329 * aclocal.m4: Regenerate.
2330 * config.in: Regenerate.
2331 * po/bfd.pot: Regenerate.
2333 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2335 * elf.c (_bfd_elf_make_section_from_shdr): Add
2336 .gnu.linkobce.wi. to the list of debug section names.
2338 2000-09-02 Nick Clifton <nickc@redhat.com>
2340 * dwarf2.c (find_debug_info): New function: Locate a section
2341 containing dwarf2 debug information.
2342 (bfd_dwarf2_find_nearest_line): Find all sections containing
2343 debug information and include them in the stash.
2345 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2347 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2348 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2349 (sh_reloc_map): Add new relocs.
2350 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2351 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2352 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2353 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2355 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2356 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2357 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2358 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2359 New array constants.
2360 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2362 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2363 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2364 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2365 elf_sh_plt_reloc_offset): Define.
2366 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2367 elf_sh_link_hash_table): New structs.
2368 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2369 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2371 (elf_backend_create_dynamic_sections,
2372 bfd_elf32_bfd_link_hash_table_create,
2373 elf_backend_adjust_dynamic_symbol,
2374 elf_backend_size_dynamic_sections,
2375 elf_backend_finish_dynamic_symbol,
2376 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2377 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2378 elf_backend_got_header_size, elf_backend_plt_header_size):
2380 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2381 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2383 * bfd-in2.h, libbfd.h: Rebuilt.
2385 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2387 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2390 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2392 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2393 not initialized, set them to indicate the SH1 instruction set.
2395 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2397 * acinclude.m4: Include libtool and gettext macros from the
2399 * aclocal.m4, configure: Rebuilt.
2401 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2403 * elf.c: Eliminate references to __sparcv9 macro; replace with
2404 autoconf variables HAVE_PSINFO32_T etc.
2405 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2406 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2408 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2409 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2410 * aclocal.m4: Ditto.
2411 * configure: Regenerate.
2413 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2415 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2416 for any shared link, not just shared -Bsymbolic.
2417 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2418 any shared link, and pass link info to it.
2419 (elf_i386_size_dynamic_sections): Update comment.
2420 (elf_i386_discard_copies): Modify to discard relocs for symbols
2421 that have been forced local.
2422 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2423 that have been forced local.
2425 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2427 * elflink.h (elf_link_add_object_symbols): Allow common
2428 symbols to have an alignment of 1 if explicitly requested, and
2429 not overridden by other definitions.
2431 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2433 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2434 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2436 2000-08-22 H.J. Lu <hjl@gnu.org>
2438 * elf-bfd.h (elf_link_hash_table): Add runpath.
2440 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2441 * bfd-in2.h: Rebuilt.
2443 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2444 "runpath" field to NULL.
2445 (bfd_elf_get_runpath_list): New function.
2447 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2450 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2452 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2453 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2454 explicitly. Improve validation of r_type.
2456 2000-08-21 H.J. Lu <hjl@gnu.org>
2458 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2459 dynamic allocated content space. Add a comment to remind us that
2460 one day this ought to be fixed.
2461 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2462 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2463 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2465 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2467 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2468 field with the newly relocated value instead of adding it to the
2469 existing immediate field.
2470 (elf32_i860_relocate_splitn): Likewise.
2471 (elf32_i860_relocate_highadj): Likewise.
2473 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2475 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2476 was previously just a stub).
2478 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2480 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2482 (_bfd_elf_create_dynamic_sections): Likewise.
2484 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2486 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2487 for undefined symbols to be the beginning of the section.
2489 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2490 four extra entries at the beginning of the .rela.plt section.
2491 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2492 section to account for the four reserved entries in the .plt section.
2494 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2496 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2497 to the list of NOPs we recognize after a branch-and-link.
2498 Use the ori NOP when one is needed.
2500 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2503 2000-08-14 Jim Wilson <wilson@cygnus.com>
2505 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2506 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2507 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2510 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2512 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2514 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2516 * elf32-i860.c (elf32_i860_relocate_section): New function.
2517 (i860_final_link_relocate): New function.
2518 (elf32_i860_relocate_splitn): New function.
2519 (elf32_i860_relocate_pc16): New function.
2520 (elf32_i860_relocate_highadj): New function.
2521 (elf32_i860_howto): Minor adjustments to some relocations.
2522 (elf_info_to_howto_rel): Define.
2523 (elf_backend_relocate_section): Define.
2525 2000-08-10 Nick Clifton <nickc@cygnus.com>
2527 * elf32-arm.h: Fix formatting.
2529 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2531 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2533 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2535 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2537 2000-08-07 Kazu Hirata <kazu@hxi.com>
2539 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2540 * elf64-ia64.c: Fix a typo.
2542 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2544 * elf32-i860.c (elf32_i860_howto_table): New structure.
2545 (lookup_howto): New function.
2546 (elf32_i860_reloc_type_lookup): New function.
2547 (elf32_i860_info_to_howto_rela): New function.
2548 (elf_code_to_howto_index): New structure.
2549 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2550 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2551 elf32_i860_reloc_type_lookup.
2553 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2555 * som.c (struct fixup_format): Constify `format'.
2556 (som_hppa_howto_table): Use SOM_HOWTO macro.
2557 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2558 (som_bfd_reloc_type_lookup): Likewise.
2559 (compare_subspaces): Remove unused `count1', `count2'.
2560 (som_begin_writing): Remove unused `total_reloc_size'.
2561 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2562 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2563 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2564 (som_find_nearest_line): Decorate unused parameter(s).
2565 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2566 (som_bfd_link_split_section): Likewise.
2568 2000-08-03 Nick Clifton <nickc@cygnus.com>
2570 * section.c: Restore backed out code.
2571 * elf.c: Restore backed out code.
2572 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2573 binaries from working.
2574 * bfd-in2.h: Regenerate.
2576 2000-08-03 H.J. Lu <hjl@gnu.org>
2578 * section.c: Back out the change made by Nick Clifton
2579 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2581 * bfd-in2.h: Likewise.
2584 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2586 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2588 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2590 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2591 * bfd-in2.h, libbfd.h: Regenerate.
2593 2000-07-31 Nick Clifton <nickc@cygnus.com>
2595 * section.c (struct sec): Add new boolean field 'segment_mark'.
2596 (STD_SECTION): Initialise new field to zero.
2598 * bfd-in2.h: Regenerate.
2600 * elf.c (copy_private_bfd_data): Reorganise section to segment
2601 mapping to cope with moved sections requiring new segments,
2602 and overlapping segments.
2603 (SEGMENT_END): New macro: Return the end address of a segment.
2604 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2605 contains a section by comparing their VMA addresses.
2606 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2607 contains a section by comparing their LMA addresses.
2608 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2609 section should be included in a segment.
2610 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2611 follows another in memory.
2612 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2615 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2617 * cpu-i860.c: Added comments.
2619 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2620 bfd_elf32_i860_little_vec.
2621 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2622 (ELF_MAXPAGESIZE): Changed to 4096.
2624 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2626 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2628 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2629 config for little endian elf32 i860.
2630 (targ_defvec): Define for the new config above
2631 as "bfd_elf32_i860_little_vec".
2632 (targ_selvecs): Define for the new config above
2633 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2635 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2638 * configure: Regenerated.
2640 2000-07-27 H.J. Lu <hjl@gnu.org>
2642 * elflink.h (elf_merge_symbol): Take one more argument,
2643 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2644 entry. Don't overide the existing weak definition if dt_needed
2646 (elf_link_add_object_symbols): Pass dt_needed to
2647 elf_merge_symbol ().
2649 2000-07-27 Nick Clifton <nickc@cygnus.com>
2651 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2654 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2656 * configure.host (*-*-aix*): AIX has 'long long' always.
2658 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2659 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2660 (xcoff_write_archive_contents_big): Don't update the offset
2661 of the symbol table, xcoff_write_armap will do it.
2663 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2665 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2666 of dynobj for SGI_COMPAT checks.
2668 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2670 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2671 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2672 * bfd-in2.h: Regenerate.
2674 2000-07-21 Nick Clifton <nickc@cygnus.com>
2676 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2677 range symbol indices in relocs and issue an error message.
2679 2000-07-20 H.J. Lu <hjl@gnu.org>
2681 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2682 info->new_dtags when setting DT_FLAGS_1. It will only be set
2683 by the new linker options. It shouldn't break anything.
2685 2000-07-20 H.J. Lu <hjl@gnu.org>
2687 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2688 only if info->new_dtags is true.
2690 2000-07-20 H.J. Lu <hjl@gnu.org>
2692 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2693 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2695 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2697 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2698 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2699 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2700 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2701 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2702 * Makefile.in: Rebuild.
2703 * aclocal.m4: Rebuild.
2704 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2705 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2706 (bfd_cris_arch): Declare.
2707 (bfd_archures_list): Add bfd_cris_arch.
2708 * bfd-in2.h: Rebuild.
2709 * config.bfd: (cris-*-*): New target.
2710 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2711 * configure: Rebuild.
2712 * elf.c (prep_headers): Add bfd_arch_cris.
2713 * libbfd.h: Rebuild.
2714 * libaout.h (enum machine_type): Add M_CRIS.
2715 * reloc.c: Add CRIS relocations.
2716 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2717 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2718 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2719 * po/POTFILES.in, po/bfd.pot: Regenerate.
2721 2000-07-19 H.J. Lu <hjl@gnu.org>
2723 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2724 DF_TEXTREL if DT_TEXTREL is set.
2725 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2726 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2727 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2728 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2729 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2730 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2731 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2732 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2733 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2734 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2736 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2737 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2739 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2741 2000-07-19 H.J. Lu <hjl@gnu.org>
2743 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2744 * bfd-in2.h: Rebuild.
2746 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2747 (elf_dt_soname): New.
2749 * elf.c (bfd_elf_set_dt_needed_soname): New.
2751 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2752 entry if the shared object loaded by DT_NEEDED is used to
2753 resolve the reference in a regular object.
2755 2000-07-19 H.J. Lu <hjl@gnu.org>
2757 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2758 DT_DEPAUDIT and DT_AUDIT as strings.
2760 2000-07-19 Nick Clifton <nickc@cygnus.com>
2762 * format.c: Fix formatting.
2764 2000-07-19 H.J. Lu <hjl@gnu.org>
2766 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2768 2000-07-19 H.J. Lu <hjl@gnu.org>
2770 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2771 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2772 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2773 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2774 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2775 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2776 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2778 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2780 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2781 renamed functions from here...
2782 (assign_section_numbers): Use renamed functions.
2783 (prep_headers): Use renamed functions.
2785 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2786 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2787 * bfd-in2.h: Regenerate.
2789 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2791 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2792 parenthesis in if statement.
2794 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2796 Enable the support for Traditional MIPS.
2797 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2798 return ict_none appropriately for traditional mips targets.
2799 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2800 (STUB_MOVE): Conditionalize for traditonal mips.
2801 (STUB_LI16): Likewise.
2802 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2803 room for RTPROC header.
2804 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2805 the permission for the PT_DYNAMIC as read, write and execute.
2806 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2807 for traditonal mips.
2808 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2809 _DYNAMIC_LINKING for traditonal mips.
2810 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2811 in case of traditonal mips.
2812 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2813 entry is required. For a function if PLT is not required then set the
2814 corresponding hash table entry to 0.
2815 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2817 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2818 shared object set the value to 0.
2819 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2820 _DYNAMIC_LINKING for traditonal mips.
2821 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2822 for traditonal mips.
2824 2000-07-15 H.J. Lu <hjl@gnu.org>
2826 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2828 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2830 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2831 out a structure that is BFD_IN_MEMORY.
2833 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2835 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2836 bfd pointer. Print section id instead of bfd pointer for local
2837 syms. Prefix addend with `+' for global syms as well as local.
2838 Correct calculation of name component lengths.
2839 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2841 From David Huggins-Daines <dhd@linuxcare.com>
2842 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2843 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2844 (elf64_hppa_modify_segment_map): Likewise.
2846 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2848 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2849 addresses to be "naturally" sign extended. Return -1 if unknown.
2850 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2851 * bfd-in2.h: Regenerate.
2853 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2855 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2856 and ECOF_SIGNED_64 to list ways to extract an offset.
2857 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2858 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2860 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2861 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2863 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2865 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2866 bfd_get_start_address.
2867 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2868 (elf_swap_ehdr_out): Ditto.
2870 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2872 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2873 compatibility with older binutils.
2875 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2877 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2878 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2880 From Ryan Bradetich <rbradetich@uswest.net>
2881 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2882 (parse_line_table): Ditto.
2883 (_bfd_dwarf1_find_nearest_line): Ditto.
2884 * syms.c (cmpindexentry): Remove extra `*' from params.
2886 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2888 * elf32-mips.c (sort_dynamic_relocs): New Function.
2889 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2890 via qsort to sort the dynamic relocations in increasing r_symndx
2893 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2895 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2896 ATTRIBUTE_UNUSED to unused args.
2897 (get_opd): Likewise.
2898 (get_plt): Likewise.
2899 (get_dlt): Likewise.
2900 (get_stub): Likewise.
2901 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2902 (elf64_hppa_link_output_symbol_hook): Likewise.
2903 (elf64_hppa_check_relocs): Delete unused var.
2904 (elf64_hppa_size_dynamic_sections): Likewise.
2905 (elf64_hppa_finalize_opd): Likewise.
2906 (elf64_hppa_finalize_dynreloc): Likewise.
2907 (elf64_hppa_modify_segment_map): Likewise.
2908 (elf64_hppa_finish_dynamic_sections): Likewise.
2910 * elf-hppa.h (elf_hppa_final_write_processing): Add
2911 ATTRIBUTE_UNUSED to unused args.
2912 (elf_hppa_final_link_relocate): Likewise.
2913 (elf_hppa_record_segment_addrs): Add paretheses.
2914 (elf_hppa_relocate_section): Constify dyn_name.
2916 From David Huggins-Daines <dhd@linuxcare.com>
2917 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2918 rearrange case statement so that it gets preferred to 32-bit ones.
2920 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2921 asection->id instead of address of asection structure.
2922 (elf32_hppa_size_stubs): Likewise.
2924 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2925 for .init* and .fini*.
2927 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2928 and addends used in stub names to 32 bits.
2929 (elf32_hppa_size_stubs): Likewise.
2931 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2932 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2933 not bfd_put_64. Fix minor comment typo and formatting.
2935 Changes to create multiple linker stubs, positioned immediately
2936 before the section where they are required.
2937 * elf32-hppa.c: Don't include hppa_stubs.h.
2938 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2939 (elf32_hppa_stub_hash_table): Delete.
2940 (elf32_hppa_link_hash_entry): Delete.
2941 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2942 stub_hash_table, and store the struct here rather than a pointer.
2943 Delete output_symbol_count. Add offset array. Change
2944 global_value to a bfd_vma.
2945 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2946 (elf32_hppa_stub_hash_traverse): Delete.
2947 (elf32_hppa_name_of_stub): Delete.
2948 (elf32_hppa_link_hash_lookup): Delete.
2949 (elf32_hppa_link_hash_traverse): Delete.
2950 (elf32_hppa_stub_hash_table_init): Delete.
2951 (elf32_hppa_size_of_stub): Pass input section and offset rather
2952 than location and calculate location here. Don't pass name as all
2953 stubs are now the same size.
2954 (elf32_hppa_stub_hash_newfunc): Init new fields.
2955 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2957 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2958 comparing against ints. Rewrite stub handling code.
2959 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2960 Case enums to int before comparing against ints. Remove
2961 bfd_reloc_dangerous case.
2962 (elf32_hppa_build_one_stub): Rewrite.
2963 (elf32_hppa_size_one_stub): New function.
2964 (elf32_hppa_build_stubs): Rewrite.
2965 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2966 Rewrite stub-handling specific code.
2968 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2970 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2972 * hppa_stubs.h: Delete.
2973 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2974 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2975 * Makefile.in: Regenerate.
2977 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2980 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2982 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2983 and section name for bfd_reloc_notsupported error message.
2984 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2985 bfd_reloc_notsupported.
2986 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2988 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2989 undefined weak symbols for all relocs.
2990 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2991 offsets are relative to one past the delay slot.
2992 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2993 branch destination. Put addend into stub name too.
2994 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2995 adjust by 8 when deciding whether a linker stub is needed. Put
2996 addend into stub name as for above.
2998 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2999 various args and vars.
3000 (elf32_hppa_bfd_final_link_relocate): Here too.
3001 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3002 inner block var to avoid shadowing.
3004 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3006 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3007 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3008 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3010 * libhppa.h: Change practically all unsigned ints to plain ints.
3011 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3014 From Ryan Bradetich <rbradetich@uswest.net>
3015 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3016 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3018 From David Huggins-Daines <dhd@linuxcare.com>
3019 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3020 to the new OP_* ones.
3022 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3023 error exit. Bail out earlier on plabel relocs that we aren't
3024 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3025 string, and then don't free our copy.
3026 (elf32_hppa_build_one_stub): Make insn unsigned int.
3028 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3029 available with BL, not BE and BLE.
3031 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3032 code for elf arg relocs.
3033 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3034 argument with elf_link_hash_entry h. Handle undefined weak
3035 symbols. Move $global$ lookup from here...
3036 (elf32_hppa_relocate_section): ...to here. Return correct error
3037 message for non-handled relocs.
3038 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3039 wrong test was -0x3ffff to +0x40000.
3041 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3042 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3043 Handle them as such.
3044 (elf_hppa_relocate_insn): Fix a typo.
3046 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3047 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3048 assemble_17, assemble_21): Delete.
3049 Supply defines for all 64 possible opcodes.
3050 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3051 formats. Handle COMICLR.
3052 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3055 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3056 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3057 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3059 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3060 the local syms - did this code get deleted accidentally? Ignore
3061 undefined and undefweak syms.
3063 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3064 block. Use it instead of elf64_hppa_hash_table (info).
3065 (elf_hppa_final_link_relocate): Use hppa_info instead of
3066 elf64_hppa_hash_table (info).
3068 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3069 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3070 (hppa_rebuild_insn): Mask immediate bits here instead.
3071 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3073 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3075 * section.c (struct sec): Add id field. Tidy comment formatting.
3076 (bfd_make_section_anyway): Set id.
3077 (STD_SECTION): Init id too.
3078 Change CONST to const throughout.
3079 * archures.c (bfd_arch_info): Tidy comment.
3080 (bfd_arch_list): Change a CONST to const.
3081 * libbfd-in.h: Tidy comments and replace CONST with const.
3082 * elf-bfd.h: Likewise.
3083 * libbfd.h: Regenerate.
3084 * bfd-in2.h: Regenerate.
3085 * libcoff.h: Regenerate.
3087 2000-07-07 DJ Delorie <dj@redhat.com>
3089 * archive.c (_bfd_write_archive_contents): Add an informative
3092 2000-07-06 Kazu Hirata <kazu@hxi.com>
3094 * srec.c: Fix formatting.
3096 2000-06-05 DJ Delorie <dj@redhat.com>
3100 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3102 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3103 value of PC-relative offsets.
3105 2000-07-03 Jim Wilson <wilson@cygnus.com>
3107 * elf64-alpha.c (alpha_elf_size_info): New.
3108 (elf_backend_size_info): Define to alpha_elf_size_info.
3109 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3111 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3113 * elf32-mips.c: Include elf32-target.h again for the traditional
3116 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3118 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3119 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3120 (avr_info_to_howto_rela): Likewise.
3121 (elf32_avr_gc_mark_hook): Likewise.
3122 (elf32_avr_gc_sweep_hook): Likewise.
3123 (elf32_avr_relocate_section): Likewise.
3125 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3127 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3128 an external symbol for a non-shared, non-relocatable link.
3130 2000-07-03 Nick Clifton <nickc@redhat.com>
3132 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3133 is an external symbol.
3134 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3137 2000-07-03 Kazu Hirata <kazu@hxi.com>
3139 * reloc16.c: Fix formatting.
3141 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3143 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3144 to add a new target for traditional mips i.e
3145 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3146 * configure.in: Likewise.
3147 * configure: Rebuild.
3148 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3150 (bfd_elf32_tradlittlemips_vec): Likewise.
3151 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3152 to see that elfNN_bed does not get redefined even if the target file
3153 is included twice for a chip. See elf32-mips.c.
3155 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3157 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3158 (CLEANFILES): Add DEPA.
3159 * Makefile.in: Regenerate.
3161 2000-06-30 DJ Delorie <dj@cygnus.com>
3163 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3164 can't assume the PE header is at 0x80.
3166 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3168 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3170 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3172 * go32stub.h: Update stub.
3174 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3176 * archures.c (bfd_mach_avr5): Define.
3177 * bfd-in2.h (bfd_mach_avr5): Define.
3178 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3179 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3180 (compatible): Update comment. Add missing test.
3181 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3182 for avr2 and avr4. Simplify 8K wrap code.
3183 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3184 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3186 2000-06-26 Kazu Hirata <kazu@hxi.com>
3188 * coff-h8300.c: Fix formatting.
3189 * cpu-h8300.c: Likewise.
3191 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3193 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3194 for local symbols whose names are unknown.
3196 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3198 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3200 * Makefile.in: Regenerate.
3201 * doc/Makefile.in: Regenerate.
3203 2000-06-20 H.J. Lu <hjl@gnu.org>
3205 * Makefile.am: Rebuild dependency.
3206 * Makefile.in: Rebuild.
3208 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3210 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3211 (elf_backend_copy_indirect_symbol): Map to the new function.
3213 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3215 * archive.c (normalize): Correct pointer comparison when checking
3217 (bfd_bsd_truncate_arname): Likewise.
3218 (bfd_gnu_truncate_arname): Likewise.
3220 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3222 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3223 sections elf_{text,data}_{section,symbol}.
3224 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3225 (_bfd_mips_elf_hide_symbol): New function.
3226 (elf_backend_hide_symbol): Map to the new function.
3227 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3228 definitions of mips_elf_{text,data}_{section,symbol}.
3229 (mips_elf_local_relocation_p): Try to find the direct symbol
3230 based on new check_forced argument.
3231 (mips_elf_calculate_relocation): Use new version of
3232 mips_elf_local_relocation_p.
3233 (mips_elf_relocate_section): Likewise.
3234 (_bfd_mips_elf_relocate_section): Likewise.
3235 (mips_elf_sort_hash_table): Only assert that have enough GOT
3237 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3238 entry if the relocation based on the new external argument.
3239 (mips_elf_create_dynamic_relocation): Assert that we have a
3240 section contents allocated where we can swap out the dynamic
3242 (mips_elf_calculate_relocation): Find the real hash-table entry
3243 correctly by using h->root.root.type. Only create a dynamic
3244 relocation entry if the symbol is defined in a shared library.
3245 Create an external GOT entry for the GOT16 relocation if the
3246 symbol was forced local.
3247 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3248 dynamic index if the symbol was forced local.
3250 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3252 * elf32-mips.c: Fix typos in comments.
3254 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3256 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3259 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3261 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3262 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3263 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3264 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3265 (bfd_elf32_m68hc11_vec): Likewise.
3266 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3267 Supports 68hc11 & 68hc12 at the same time.
3268 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3270 (bfd_elf32_m68hc11_vec): Likewise.
3271 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3272 * archures.c (bfd_m68hc12_arch): Define and register in global list
3273 (bfd_m68hc11_arch): Likewise.
3274 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3275 BFD_RELOC_M68HC11_3B): Define.
3276 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3277 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3279 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3281 * elf_bfd.h (struct elf_backend_data): Add info argument to
3282 elf_backend_hide_symbol.
3283 (_bfd_elf_link_hash_hide_symbol): Likewise.
3284 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3285 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3286 * elflink.h (elf_link_add_object_symbols): Likewise.
3287 (elf_link_assign_sym_version): Likewise.
3289 2000-06-18 H.J. Lu <hjl@gnu.org>
3291 * coff-i386.c (coff_i386_reloc): Don't return in case of
3292 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3293 Compensate PE relocations when linking with non-PE object
3294 files to generate a non-PE executable.
3296 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3298 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3299 GOT entries if we're doing a static link or -Bsymbolic link.
3301 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3303 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3304 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3306 (elf_link_output_relocs): Likewise.
3307 (elf_reloc_link_order): Likewise.
3309 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3311 * archures.c (enum bfd_architecture): #define constants for
3312 PowerPc and RS6000 machine numbers.
3313 * bfd-in2.h: Regenerate.
3314 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3315 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3316 and RS6000 machine numbers using #defined constants from
3318 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3319 machine numbers using #defined constants from archures.c. Add
3320 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3321 64-bit words in 620 entry.
3322 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3324 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3326 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3328 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3329 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3330 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3332 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3334 * bfd-in.h (bfd_family_coff): Define.
3335 * bfd-in2.h: Regenerate.
3336 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3337 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3338 instead of bfd_target_coff_flavour.
3339 * cofflink.c (_bfd_coff_final_link): Likewise.
3340 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3341 exclude XCOFF files.
3342 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3344 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3345 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3346 * xcofflink.c (XCOFF_XVECP): Delete.
3347 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3348 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3349 bfd_xcoff_record_link_assignment,
3350 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3351 check for bfd_target_xcoff_flavour.
3353 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3355 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3357 (read_hdr): New function.
3358 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3359 of trying to extract individual registers. Set abfd->arch_info
3360 to match the architecture that created the core file.
3361 (rs6000coff_get_section_contents): Delete.
3362 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3364 2000-06-14 H.J. Lu <hjl@gnu.org>
3366 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3369 2000-06-13 H.J. Lu <hjl@gnu.org>
3371 * configure: Regenerate.
3373 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3375 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3378 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3380 * configure.in (VERSION): Update to show this is the CVS mainline.
3382 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3384 * elf32-d10v.c: Include elf/d10v.h
3385 (enum reloc_type): Delete.
3386 * elf32-d30v.c: Include elf/d30v.h
3387 (enum reloc_type): Delete.
3389 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3390 * Makefile.in: Regenerate.
3392 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3393 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3394 move HOWTOs into elf_howto_table.
3395 (R_386_standard, R_386_ext_offset): Define.
3396 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3397 (elf_i386_reloc_type_lookup): Modify calculation of index into
3398 elf_howto_table since we've removed the padding.
3399 (elf_i386_info_to_howto_rel): Likewise.
3400 (elf_i386_relocate_section): Likewise.
3402 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3404 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3406 2000-06-05 H.J. Lu <hjl@gnu.org>
3408 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3409 an error when seeing an undefined symbol with hidden/internal
3410 attribute. It is handled in *_relocate_section ().
3412 2000-06-05 H.J. Lu <hjl@gnu.org>
3414 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3415 indirect symbol for the ELF_LINK_NON_ELF bit.
3416 (elf_link_output_extsym): Don't output the indirect symbol even
3417 if the ELF_LINK_NON_ELF bit is set.
3419 2000-06-01 J.T. Conklin <jtc@redback.com>
3421 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3422 (i[3456]86-*-netbsdaout*): New target.
3423 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3424 (i[3456]86-*-openbsd*): Likewise.
3426 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3428 * trad-core.c: From hpux-core.c, include <dirent.h> or
3429 <sys/ndir.h> when possible.
3431 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3433 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3434 definitions. We must not assume they are sorted in the file
3435 according to their index numbers.
3437 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3439 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3440 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3441 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3443 2000-05-30 Nick Clifton <nickc@cygnus.com>
3445 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3446 80960CA, 80960MC as valid machine names.
3448 2000-05-30 H.J. Lu <hjl@gnu.org>
3450 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3451 visibility bits if the symbol is undefined. Correctly handle
3452 weak undefined symbols with hidden and internal attributes.
3454 * elflink.h (elf_link_add_object_symbols): Always turn the
3455 symbol into local if it has the hidden or internal attribute.
3457 2000-05-29 Philip Blundell <philb@gnu.org>
3459 * ppcboot.c: Add packed attribute if compiling with GCC.
3461 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3463 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3465 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3467 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3468 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3469 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3472 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3474 * Makefile.am: Update dependencies with "make dep-am"
3475 * Makefile.in: Regenerate.
3477 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3478 bindtextdomain): Replace defines with those from intl/libgettext.h
3479 to quieten gcc warnings.
3481 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3483 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3485 * archive.c (normalize, bfd_bsd_truncate_arname,
3486 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3487 file names with backslashes.
3489 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3492 * sysdep.h: Include filenames.h.
3494 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3496 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3498 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3500 * elf64-sparc.c (sparc64_elf_relax_section): New.
3501 (sparc64_elf_relocate_section): Optimize tail call into branch always
3503 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3504 (elf32_sparc_relax_section): New.
3506 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3508 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3509 Remove unusued variables.
3510 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3511 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3512 previous fix, so that shared libs really don't influence targets
3513 extension mask and memory model.
3515 2000-05-23 H.J. Lu <hjl@gnu.org>
3517 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3518 h->root.other not h->other.
3519 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3521 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3523 2000-05-23 H.J. Lu <hjl@gnu.org>
3525 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3526 undefined symbol with the non-default visibility attributes.
3527 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3528 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3529 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3530 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3531 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3532 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3533 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3534 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3535 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3536 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3537 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3539 2000-05-22 Richard Henderson <rth@cygnus.com>
3541 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3542 PCREL22, PCREL64I. Zero size of special relocs.
3543 (elf64_ia64_reloc_type_lookup): Likewise.
3544 (USE_BRL, oor_brl, oor_ip): New.
3545 (elf64_ia64_relax_section): New.
3546 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3547 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3548 (elf64_ia64_relocate_section): Likewise.
3549 (bfd_elf64_bfd_relax_section): New.
3550 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3551 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3552 * bfd-in2.h, libbfd.h: Regenerate.
3554 2000-05-22 Nick Clifton <nickc@cygnus.com>
3556 * configure.in : Add peigen.lo to MIPS PE targets.
3557 * configure: Regenerate.
3559 2000-05-22 Momchil Velikov <velco@fadata.bg>
3561 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3562 only if it is known for both input and output bfds. Separate
3563 error message strings as in some languages, it may be necessary
3564 to change more than one place in the string to change between
3567 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3568 endianess checks, call _bfd_generic_verify_endian_match() instead.
3570 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3572 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3574 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3575 endianess before checking bfd flavours.
3577 2000-05-22 H.J. Lu <hjl@gnu.org>
3579 * elflink.h (elf_link_output_extsym): Clear the visibility
3580 field for symbols not defined locally.
3582 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3584 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3585 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3586 (hppa_rebuild_insn): Mask immediate bits here instead.
3587 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3589 2000-05-18 Momchil Velikov <velco@fadata.bg>
3591 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3592 relocs for an executable, ensure that they are virtual addresses.
3594 2000-05-18 Jeffrey A Law (law@cygnus.com)
3596 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3598 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3599 Rick Gorton <gorton@scrugs.lkg.dec.com>
3601 * elflink.h: Add emitrelocations support: when enabled, relocation
3602 information and relocation sections are put into final output
3603 executables. If the emitrelocations flag is set, do the following:
3604 (elf_bfd_final_link): Emit relocation sections.
3605 (elf_link_input_bfd): Compute relocation section contents.
3606 (elf_gc_sections): Don't clean relocation sections.
3608 2000-05-16 Catherine Moore <clm@cygnus.com>
3610 * som.c (som_decode_symclass): Recognize weak symbols.
3612 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3614 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3615 read idata section only from dataoff.
3616 (pe_print_edata): Correctly check for valid eat_member.
3618 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3620 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3622 2000-05-14 Philip Blundell <philb@gnu.org>
3624 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3626 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3628 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3630 * peigen.c (pe_print_idata): Look for .idata section and print
3631 info even if data directory has zero entries. Read idata section
3632 starting from dataoff, and adjust all data offsets to suit. Cast
3633 all bfd_vma vars to unsigned long before passing to fprintf.
3634 * peigen.c (pe_print_edata): Similarly, look for .edata section
3635 and print info even if data directory has zero entries. Cast
3636 all bfd_vma vars to unsigned long before passing to fprintf.
3638 From Szabolcs Szakacsits <szaka@F-Secure.com>
3639 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3640 directory size which may be bogus.
3641 * peigen.c (pe_print_edata): Similarly.
3643 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3645 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3647 (copy_private_bfd_data): Allow for space possibly taken up by elf
3648 headers when calculating segment physical address from lma.
3650 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3652 * versados.c (versados_scan): Init stringlen and pass_2_done.
3654 * trad-core.c (trad_unix_core_file_p): Return
3655 bfd_error_wrong_format rather than bfd_error_file_truncated.
3657 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3658 add_data_entry. DataDirectory virtual address is relative.
3659 (pe_print_idata): Account for relative DataDirectory virtual
3660 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3661 (pe_print_edata): Similarly.
3663 From Szabolcs Szakacsits <szaka@F-Secure.com>
3664 * peigen.c (dir_names): Add Delay Import Directory.
3665 (pe_print_idata): Always search for bfd section containing
3666 idata address rather than looking up section name. Print this
3667 section name rather than .idata.
3668 (pe_print_edata): Similarly. Also print some fields as %08lx.
3669 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3672 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3674 * xcoff.h: Rename to xcoff-target.h
3675 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3676 * coff-rs6000.c: Ditto.
3677 * coff64-rs6000.c: Ditto.
3678 * coff-pmac.c: Ditto.
3679 * Makefile.in: Regenerate.
3681 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3683 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3684 Change U802TOC64MAGIC to U803XTOCMAGIC.
3686 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3688 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3689 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3690 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3692 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3694 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3696 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3698 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3699 hidden and internal symbols.
3700 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3702 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3703 assign a PLT or GOT entry to symbols with hidden and
3704 internal visibility.
3706 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3708 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3710 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3712 2000-05-02 H.J. Lu <hjl@gnu.org>
3714 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3717 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3719 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3720 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3722 * Makefile.in: Regenerate.
3724 2000-05-01 Jim Wilson <wilson@cygnus.com>
3726 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3727 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3728 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3729 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3730 * Makefile.in: Rebuild.
3732 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3734 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3735 doesn't work very well.
3737 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3738 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3739 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3740 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3741 (elf_hppa_info_to_howto): Likewise.
3742 (elf_hppa_info_to_howto_rel): Likewise.
3743 (elf_hppa_reloc_type_lookup): Likewise.
3744 (elf_hppa_is_local_label_name): Likewise.
3745 (elf_hppa_fake_sections): Likewise.
3746 (elf_hppa_final_write_processing): Likewise.
3747 (elf_hppa_howto_table): Fully initialise all entries.
3748 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3749 (elf_hppa_info_to_howto): Likewise.
3750 (elf_hppa_info_to_howto_rel): Likewise.
3751 (elf_hppa_reloc_type_lookup): Likewise.
3752 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3753 elf_hppa_unmark_useless_dynamic_symbols,
3754 elf_hppa_remark_useless_dynamic_symbols,
3755 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3756 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3757 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3758 elf32-hppa.c mess is cleaned up.
3759 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3760 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3761 r_field then call hppa_field_adjust inline func with variable
3762 r_field arg, instead call hppa_field_adjust with fixed arg.
3763 In case R_PARISC_PCREL22F, don't set r_field.
3764 (elf_hppa_relocate_insn): Change args and return type to unsigned
3765 int. Call re_assemble_* funcs to do the work.
3767 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3770 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3772 (sign_extend): Mask first before sign extending.
3773 (low_sign_extend): Rewrite without condition expression.
3774 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3775 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3776 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3777 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3778 result as function return value rather than through pointer arg.
3779 Accept unsigned int args, and return unsigned int.
3780 (re_assemble_3): New. Combines function of dis_assemble_3 with
3781 re-assembly of opcode and immediate.
3782 (re_assemble_12): Likewise.
3783 (re_assemble_16): Likewise.
3784 (re_assemble_17): Likewise.
3785 (re_assemble_21): Likewise.
3786 (re_assemble_22): Likewise.
3787 (hppa_field_adjust): Rewrite and document, paying attention to
3788 size of types and signed/unsigned issues.
3789 (get_opcode): Shift before masking.
3790 (FDLW): Rename to FLDW.
3791 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3792 (hppa_rebuild_insn): Change args and return value to unsigned
3793 int. Make use of re_assemble_*. Correct case 11.
3795 * dep-in.sed: Handle ../opcodes/.
3796 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3797 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3798 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3799 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3800 elfarm-nabi.lo dependencies outside of auto-dependency area.
3801 Regenerate dependencies.
3802 * Makefile.in: Regenerate.
3804 * configure.in (TRAD_HEADER): Test non-null before
3806 * configure: Regenerate.
3808 * reloc.c: Fix mis-spelling in comment.
3810 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3812 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3813 * vms.c (vms_openr_next_archived_file): Return NULL.
3815 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3817 * coffcode.h Copy changes mistakenly done to libcoff.h in
3820 2000-04-29 Andreas Jaeger <aj@suse.de>
3822 * libbfd-in.h: Correctly check GCC version.
3823 * bfd-in.h: Likewise.
3824 * libhppa.h: Likewise.
3825 * libbfd.h: Regenerate.
3826 * bfd-in2.h: Regenerate.
3828 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3830 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3831 coffdu-rs6000.{lo,c}.
3832 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3834 * Makefile.in: Regenerate.
3835 * xcoff.h: New file.
3836 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3837 * coff-rs6000.c: Move all declarations and defines that are
3838 common to the xcoff backends into xcoff.h
3839 * coff64-rs6000.c: Ditto,
3841 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3843 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3844 _bfd_coff_force_symnames in strings and
3845 _bfd_coff_debug_string_prefix_length to their default values.
3846 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3848 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3850 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3851 _bfd_coff_force_symnames in strings and
3852 _bfd_coff_debug_string_prefix_length to their default values.
3854 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3856 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3857 Check local_got_refcounts before dereferencing.
3859 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3860 before deciding we don't need R_PPC_PLT32 relocation.
3861 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3864 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3866 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3868 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3869 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3870 (elf_i386_relocate_section): Allow for .plt to go missing.
3871 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3872 can use a relative reloc for got as elf_i386_relocate_section.
3873 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3875 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3877 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3879 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3881 * Makefile.am (coff64-rs6000.lo): New rule.
3882 * Makefile.in: Regenerate.
3883 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3884 xcoff_is_local_label_name, xcoff_rtype2howto,
3885 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3886 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3887 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3888 (NO_COFF_SYMBOLS): Define.
3889 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3890 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3892 (MINUS_ONE): New macro.
3893 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3895 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3896 coff_SWAP_aux_out): Map to the new functions.
3897 * coff64-rs6000.c: New file.
3898 * libcoff.h (bfd_coff_backend_data): Add new fields
3899 _bfd_coff_force_symnames_in_strings and
3900 _bfd_coff_debug_string_prefix_length.
3901 (bfd_coff_force_symnames_in_strings,
3902 bfd_coff_debug_string_prefix_length): New macros for above fields.
3903 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3904 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3905 of using coff_swap_sym_in directly.
3906 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3907 (coff_set_flags) Set magic for XCOFF64.
3908 (coff_compute_section_file_positions): Add symbol name length to
3909 string section length if bfd_coff_debug_string_prefix_length is
3911 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3912 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3913 using coff_swap_lineno_in directly.
3914 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3915 and _bfd_coff_debug_string_prefix_length fields.
3916 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3917 symbol names into strings table when
3918 bfd_coff_force_symnames_in_strings is true.
3919 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3920 SET_RELOC_VADDR): New macros.
3921 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3922 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3924 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3925 changes within RS6000COFF_C specific code.
3926 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3927 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3928 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3929 Extend existing hack on target name.
3930 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3932 * coff-tic54x.c (ticof): Keep up to date with new fields
3933 in bfd_coff_backend_data.
3934 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3935 targ_selvecs to include rs6000coff64_vec for rs6000.
3936 * configure.in: Add rs6000coff64_vec case.
3937 * cpu-powerpc.c: New bfd_arch_info_type.
3939 2000-04-24 Jeffrey A Law (law@cygnus.com)
3941 * config.bfd: Only disable elf32-hppa vectors, not all of the
3942 BSD and OSF configuration support. Provide (disabled) clauses
3944 * configure.in: Add clause for PA64 support.
3945 * configure: Rebuilt.
3947 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3948 (bfd_elf64_hppa_vec): Declare.
3950 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3951 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3952 (elf64-hppa.lo): Add dependencies.
3953 * Makefile.in: Rebuilt.
3955 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3957 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3959 * libhppa.h (dis_assemble_16): New function.
3960 (pa_arch): Added pa20w element.
3962 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3964 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3965 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3966 bfd_elf64_slurp_reloc_table.
3968 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3969 definitions to get external names.
3970 (elf_write_relocs): Renamed from write_relocs and make global.
3971 (elf_slurp_reloc_table): Make global.
3972 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3974 * archive.c (hpux_uid_gid_encode): New function.
3975 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3976 defined and the ID is greater than 99999.
3977 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3978 special uid/gid fields into 32 bit values.
3980 2000-04-21 Matthew Green <mrg@cygnus.com>
3982 * config.bfd: Add NetBSD/sparc64 support.
3984 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3985 David Mosberger <davidm@hpl.hp.com>
3986 Timothy Wall <twall@cygnus.com>
3987 Jim Wilson <wilson@cygnus.com>
3989 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3990 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3991 (BFD64_BACKENDS): Add elf64-ia64.lo.
3992 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3993 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3994 * Makefile.in: Rebuild.
3995 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3996 (bfd_ia64_arch): Declare.
3997 (bfd_archures_list): Add bfd_ia64_arch.
3998 * bfd-in2.h: Rebuild.
3999 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4000 * configure: Rebuild.
4001 * configure.host: (ia64-*-linux*): New host.
4002 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4003 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4004 * elf.c (prep_headers): Add bfd_arch_ia64.
4005 * libbfd.h: Rebuild.
4006 * reloc.c: Add IA-64 relocations.
4007 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4009 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4010 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4012 2000-04-21 Richard Henderson <rth@cygnus.com>
4014 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4015 contents when performing a partial link.
4016 (bfd_elf_d30v_reloc_21): Likewise.
4018 2000-04-20 H.J. Lu <hjl@gnu.org>
4020 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4021 patch to symbols defined by a shared object.
4022 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4024 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4027 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4028 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4030 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4032 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4033 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4034 (coff-ia64.lo): Add dependency.
4035 * Makefile.in: Regenerate.
4036 * coff-ia64.c: New file.
4037 * efi-app-ia32.c: Ditto.
4038 * efi-app-ia64.c: Ditto.
4039 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4040 (coff_set_flags): Ditto.
4041 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4042 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4043 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4044 * configure: Regenerate.
4045 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4046 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4047 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4048 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4049 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4050 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4051 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4052 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4053 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4054 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4055 (GET_PDATA_ENTRY): Ditto.
4056 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4057 data_start. Use above macros to read fields that are 64 bit wide for
4058 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4059 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4060 FileAlignment and SectionAlignment to minimum alignment if they
4062 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4063 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4064 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4065 Use above macros to write fields that are 64 bit wide for
4067 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4068 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4069 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4070 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4071 begin address, end address, and unwind info address only. Use
4072 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4074 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4075 HIGH3ADJ relocation names.
4076 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4077 * targets.c: Declare bfd_efi_app_ia32_vec and
4078 bfd_efi_app_ia64_vec.
4079 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4080 bfd_efi_app_ia64_vec.
4082 2000-04-17 Timothy Wall <twall@cygnus.com>
4084 * bfd-in2.h: Add prototypes for tic54x load page access.
4085 * bfd-in.h: Regenerate.
4086 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4087 in customized _set_arch_mach function.
4088 * coffcode.h (coff_set_alignment_hook): Set section load page if
4089 the appropriate macro is defined.
4090 (write_object_contents): Read section load page.
4092 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4094 * elf32-hppa.h: Update copyright date.
4096 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4097 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4099 * elf32-d30v.c (MAX32): Don't use LL suffix.
4100 (MIN32): Define in terms of MAX32.
4101 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4103 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4106 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4108 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4110 * dep-in.sed: Match space before file name, not after.
4111 * Makefile.am: Regenerate dependencies.
4112 * Makefile.in: Regenerate.
4114 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4115 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4116 extend without an if statement.
4118 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4120 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4122 * elf32-mips.c (gprel16_with_gp): Likewise.
4123 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4124 here using -0x40000, not (int)0xfffc0000.
4125 (elf32_hppa_size_of_stub): Likewise.
4127 2000-04-11 Timothy Wall <twall@cygnus.com>
4129 * coff-tic54x.c: Now builds with all targets.
4130 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4131 * Makefile.in: Regenerate.
4132 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4133 unitialized variable.
4135 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4137 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4138 --enable-build-warnings option.
4139 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4140 * Makefile.in, configure: Re-generate.
4142 2000-04-07 Nick Clifton <nickc@cygnus.com>
4144 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4145 BFD_RELOC_THUMB_PCREL_BLX.
4147 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4148 R_ARM_XPC25 and R_ARM_THM_PC22.
4150 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4151 R_ARM_XPC25 and R_ARM_THM_XPC22.
4152 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4153 R_ARM_[XPC25|THM_XPC22].
4155 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4156 elf/arm-oabi.h to elf/arm.h
4158 * Makefile.am: Fix dependency for elfarm-oabi.c
4159 * Makefile.in: Regenerate.
4161 * bfd-in2.h: Regenerate.
4162 * libbfd.h: Regenerate.
4164 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4166 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4167 and restore it on failure. Release newly allocated tdata on
4170 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4172 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4173 (decode_line_info): Set it. Report error if unit->line_offset is
4174 equal to or larger than it.
4176 2000-04-07 Timothy Wall <twall@cygnus.com>
4178 * targets.c: Added vecs for tic54x.
4179 * reloc.c: Added relocs for tic54x.
4180 * libbfd.h: Regenerated.
4181 * configure: Add TI COFF vecs for tic54x.
4182 * configure.in: Ditto.
4183 * config.bfd (targ_cpu): Recognize new tic54x target.
4184 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4185 * bfd-in2.h: Add tic54x target and relocations.
4186 * Makefile.am, Makefile.in: Add tic54x target.
4187 * archures.c (bfd_archures_list): Add tic54x target.
4188 * coff-tic54x.c: New.
4189 * cpu-tic54x.c: New.
4191 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4193 * elfcore.h (elf_core_file_p): call backend_object_p which
4194 thereby gets an opportunity to update the arch/machine type.
4196 2000-04-06 Timothy Wall <twall@cygnus.com>
4198 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4199 class. Handle SEC_CLINK and SEC_BLOCK flags.
4200 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4201 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4203 2000-04-06 Nick Clifton <nickc@cygnus.com>
4205 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4206 EF_INTERWORK if this is an unknown EABI.
4207 (elf32_arm_merge_private_bfd_data): Check EABI version
4208 numbers. Only check EF_xxx flags if the EABI version number
4210 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4211 if the EABI version number is unknown.
4212 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4213 if the EABI version number is unknown.
4215 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4217 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4218 BFD_RELOC_SH_LOOP_END.
4219 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4220 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4221 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4222 (sh_elf_reloc_loop): New function.
4223 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4225 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4226 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4227 * bfd-in2.h, libbfd.h: Regenerate.
4229 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4231 * po/bfd.pot: Regenerate.
4233 * Makefile.am: Remove extraneous mkdep comment.
4234 (MKDEP): Use gcc -MM rather than mkdep.
4235 (DEP): Quote when passing vars to sub-make. Add warning
4237 (DEP1): Rewrite for "gcc -MM".
4238 (CLEANFILES): Add DEP2.
4239 Update dependencies.
4240 * Makefile.in: Regenerate.
4242 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4244 * configure.in: Added corefile support for AIX 4.3. In particular,
4245 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4246 compiling rs6000-core.c.
4247 * configure: Regenerated.
4249 2000-04-03 H.J. Lu <hjl@gnu.org>
4251 * cache.c (bfd_open_file): Unlink the output file only if
4252 it has non-zero size.
4254 2000-04-01 Ken Block USG <block@zk3.dec.com>
4256 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4257 relative relocations for non-loaded sections in shared objects.
4258 (elf64_alpha_check_relocs): Similarly.
4260 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4262 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4263 BFD_RELOC_16 to switch for extended relocs.
4264 (MY_swap_ext_reloc_in): New.
4265 (MY_swap_ext_reloc_out): New.
4266 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4267 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4268 (NAME(aout,squirt_out_relocs)): Similarly use
4269 MY_swap_ext_reloc_out.
4270 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4272 2000-04-03 Kazu Hirata <kazu@hxi.com>
4274 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4275 the R_PCRWORD_B case.
4277 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4279 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4283 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4285 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4286 HOWTO references to bfd_elf_generic_reloc, that have
4287 partial_inplace == true, now use the new function. The function
4288 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4289 extends its fixes to the R_M32R_{16,24,32} relocs.
4290 The new logic in m32r_elf_lo16_reloc() has been removed, and
4291 it instead calls the new routine to obtain that functionality.
4293 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4295 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4296 elf32_avr_check_relocs, avr_final_link_relocate,
4297 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4298 elf32_avr_object_p): Add prototypes.
4299 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4300 (bfd_elf_avr_final_write_processing): Make static.
4302 2000-03-27 Denis Chertykov <denisc@overta.ru>
4304 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4305 * archures.c (bfd_architecture): Add AVR architecture.
4306 (bfd_archures_list): Add reference to AVR architecture info.
4307 * elf.c (prep_headers): Handle bfd_arch_avr.
4308 * reloc.c: Add various AVR relocation enums.
4309 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4311 * Makefile.am: Add support for AVR elf.
4312 * configure.in: Likewise.
4313 * config.bfd: Likewise.
4314 * Makefile.in: Regenerate.
4315 * configure: This too.
4316 * bfd-in2.h: And this.
4317 * libbfd.h: And this.
4319 2000-03-24 H.J. Lu <hjl@gnu.org>
4321 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4322 (elf64_alpha_find_reloc_at_ofs): Likewise.
4324 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4326 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4327 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4328 allowable range used to be -2**(n-1) to 2**n-1.
4329 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4330 "boolean overflow" with "bfd_reloc_status_type flag".
4332 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4334 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4336 2000-03-14 Kazu Hirata <kazu@hxi.com>
4338 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4339 of shrinks properly, including the last reloc.
4341 2000-03-13 Kazu Hirata <kazu@hxi.com>
4343 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4346 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4348 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4349 a format mismatch rather than an "error" from bfd_read such as
4350 bfd_error_file_truncated.
4352 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4354 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4355 sign-extension and big-endian compensation for
4356 R_MIPS_64 even in ld -r.
4358 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4360 * elf32-mips.c (mips_elf_next_relocation): Rename from
4361 mips_elf_next_lo16_relocation, and generalize to look
4362 for any relocation type.
4363 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4364 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4365 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4366 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4367 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4368 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4369 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4370 (mips_rtype_to_howto): Likewise.
4371 (mips_elf_calculate_relocation): Handle new relocs.
4372 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4373 are paired. The addend for R_MIPS_GNU_REL16_S2
4374 is shifted right two bits.
4376 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4378 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4379 comment, and ensure it doesn't happen again.
4380 (bfd_install_relocation): Same here.
4381 (_bfd_relocate_contents): Don't bother assigning unused signmask
4382 shift result. Fix typos in comments.
4383 Remove trailing whitespace throughout file.
4385 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4387 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4388 * bfd-in2.h: Rebuild.
4390 2000-03-06 Nick Clifton <nickc@cygnus.com>
4392 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4394 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4395 (SIZEOF_ILF_STRINGS): Redefine.
4396 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4397 relative reloc, as opposed to a section relative reloc.
4398 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4400 Add length of symbol's prefix to string pointer.
4401 Store a pointer to the symbol in the symbol pointer table.
4402 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4403 Initialise the symbol pointer table.
4404 Store the hint in the Hint/Name table.
4405 Make the jump reloc be symbol realtive, not section relative.
4406 Create an import symbol for imported code.
4408 2000-03-06 Catherine Moore <clm@cygnus.com>
4410 * elf.c (swap_out_syms): Check for null type_ptr.
4412 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4414 * aout-target.h (MY(write_object_contents)): Remove unused
4415 and unusable "#if CHOOSE_RELOC_SIZE".
4416 * pc532-mach.c (MY(write_object_contents)): Ditto.
4417 * netbsd.h (MY(write_object_contents)): Ditto.
4418 * hp300hpux.c (MY(write_object_contents)): Ditto.
4419 * freebsd.h (MY(write_object_contents)): Ditto.
4420 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4422 2000-02-29 H.J. Lu <hjl@gnu.org>
4424 * peicode.h (jtab): Make it static.
4426 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4427 defined and COFF_IMAGE_WITH_PE is not defined.
4428 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4429 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4431 2000-03-01 Nick Clifton <nickc@cygnus.com>
4433 * coff-arm.c (bfd_arm_process_before_allocation): Make
4434 'symndx' signed to prevent compile time warning.
4436 * coff-mcore.c: Remove unused prototype for pe_object_p.
4438 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4439 functions that are not used when COFF_IMAGE_WITH_PE is
4441 (struct sh_opcode): Change type of 'flags' field to unsigned
4442 long so that it can hold the USESAS flag.
4444 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4446 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4449 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4451 Remove unusued variables and code.
4452 (elf_backend_add_symbol_hook): Fix prototype.
4454 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4457 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4460 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4462 Remove unusued variables and code.
4463 (elf_backend_add_symbol_hook): Fix prototype.
4465 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4467 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4468 to unused function parameter.
4470 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4472 Use EMPTY_HOWTO to initialise empty howto slots.
4473 Remove unused variables.
4475 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4477 2000-03-01 H.J. Lu <hjl@gnu.org>
4479 * aoutx.h (aout_link_input_section_std): Pass "true" to
4480 the undefined_symbol callback.
4481 (aout_link_input_section_ext): Likewise.
4482 * bout.c (get_value): Likewise.
4483 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4484 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4486 (alpha_relocate_section): Likewise.
4487 * coff-arm.c (coff_arm_relocate_section): Likewise.
4488 * coff-i960.c (coff_i960_relocate_section): Likewise.
4489 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4490 * coff-mips.c (mips_relocate_section): Likewise.
4491 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4492 * coff-sh.c (sh_relocate_section): Likewise.
4493 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4494 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4495 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4496 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4497 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4498 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4499 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4500 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4501 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4502 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4503 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4504 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4505 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4506 * elflink.h (elf_link_output_extsym): Likewise.
4507 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4508 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4509 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4511 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4512 undefined_symbol callback when building shared library with
4513 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4515 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4516 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4517 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4518 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4519 (elf32_mips_get_relocated_section_content): Likewise.
4520 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4521 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4522 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4523 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4525 2000-02-28 Nick Clifton <nickc@cygnus.com>
4527 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4528 * Makefile.in: Regenerate.
4530 * configure.in: Add support for mips and sh pe vectors.
4531 * configure: regenerate.
4533 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4536 * targets.c: Add mips and sh pe vectors.
4538 * libpei.h (coff_final_link_postscript): Only define if not
4541 * coffcode.h: Add support for WinCE magic numbers.
4543 * peigen.c (pe_print_reloc): Update comment and rearrange
4544 appending of newline character.
4546 * peicode.h: Add support for Image Library Format.
4547 (pe_ILF_vars): Structure containing data used by ILF code.
4548 (pe_ILF_make_a_section): New function. Create a section based
4550 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4552 (pe_ILF_make_a_symbol): New function. Create a symbol based
4554 (pe_ILF_save_relocs): New function. Store the relocs created
4555 by pe_ILF_make_a_reloc in a section.
4556 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4558 (pe_ILF_object_p): New function. Return a bfd_target pointer
4560 (pe_bfd_object_p): If an ILF object is detected call
4561 pe_ILF_object_p on it.
4563 * coff-arm.c: Add support for WinCE relocs which are different
4564 from normal ARM COFF relocs.
4565 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4567 * coff-sh.c: Add support for sh-pe target.
4568 * pe-sh.c: New file. Support code for sh-pe target.
4569 * pei-sh.c: New file. Support code for sh-pe target.
4571 * pe-mips.c: New file. Support code for mips-pe target.
4572 * pei-mips.c: New file. Support code for mips-pe target.
4574 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4576 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4577 architecture if the object causing the bump is dynamic.
4578 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4579 and also don't it for memory ordering.
4580 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4582 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4584 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4585 calling bfd_get_section_size_before_reloc.
4586 (decode_line_info): Likewise.
4587 (_bfd_dwarf2_find_nearest_line): Likewise.
4589 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4591 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4592 name of the libtool directory.
4593 * Makefile.in: Rebuild.
4595 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4597 * som.c (SOM_HOWTO): Define.
4598 (som_hppa_howto_table): Use it.
4600 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4602 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4604 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4606 2000-02-24 Catherine Moore <clm@cygnus.com>
4608 * som.c (som_misc_symbol_info): Add field
4610 (som_bfd_derive_misc_symbol_info): Initialize
4612 (som_build_and_write_symbol_table): Keep track
4613 of secondary_def field.
4614 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4615 if secondary_def field is set.
4616 (som_bfd_ar_write_symbol_stuff): Initialize
4619 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4621 * dwarf2.c (read_address): Read 16-bits addresses.
4622 (parse_comp_unit): Accept addr_size == 2.
4624 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4626 * bfd-in.h: Update copyright date.
4628 2000-02-23 Linas Vepstas <linas@linas.org>
4630 * cpu-i370.c: New file.
4631 * elf32-i370.c: New file.
4632 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4633 (bfd_i370_arch): New.
4634 (bfd_archures_list): Add bfd_i370_arch.
4635 * elf.c (prep_headers): Add bfd_arch_i370.
4636 * Makefile.am: Add support for IBM 370 elf.
4637 * config.bfd: Likewise.
4638 * configure.in: Likewise.
4639 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4640 * reloc.c (bfd_reloc_code_type): Likewise.
4641 * targets.c: Likewise.
4643 * Makefile.in: Regenerate.
4644 * configure: Regenerate.
4645 * bfd-in2.h: Regenerate.
4647 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4649 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4650 invalid relocation types, and change them to R_386_NONE.
4652 2000-02-22 H.J. Lu <hjl@gnu.org>
4654 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4655 not defined, don't add a second ELF_VER_CHR.
4657 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4658 symbols converted to local symbols even when stripping all
4660 (elf_link_output_extsym): Process global symbols converted to
4661 local symbols even if they are being stripped.
4663 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4665 * archures.c (bfd_octets_per_byte): Return unsigned int.
4666 (bfd_arch_mach_octets_per_byte): Ditto.
4667 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4669 * section.c (bfd_get_section_size_before_reloc): Quell signed
4670 vs. unsigned comparison warning.
4671 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4672 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4673 change. What was I thinking?
4674 * bfd-in2.h: Regenerate.
4676 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4677 (elf_gc_sections): Same here.
4678 (elf_gc_common_finalize_got_offsets): And here.
4680 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4682 ELF HPPA doesn't work at present; remove it until it does.
4683 * config.bfd: Comment out setting targ_defvec to
4685 * Makefile.am: Rebuild dependencies.
4686 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4687 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4688 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4689 * Makefile.in: Rebuild.
4690 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4692 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4694 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4695 is no bfd_free(). Revert bfd_free part of previous change.
4697 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4699 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4701 (coff_compute_section_file_positions): Use bfd_free to pair
4703 (coff_write_object_contents): Likewise.
4705 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4706 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4708 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4710 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4711 (xcoff_ar_file_hdr_big): New structure.
4712 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4713 (xcoff_ar_hdr_big): New structure.
4714 (SIZEOF_AR_HDR_BIG): New macro.
4715 (xcoff_big_format_p): New macro.
4716 (xcoff_ardata_big): New macro.
4717 (arch_xhdr_big): New macro.
4718 (xcoff_slurp_armap): Handle large archives.
4719 (xcoff_archive_p): Detect large archives.
4720 (xcoff_read_ar_hdr): Handle large archives.
4721 (xcoff_openr_next_archived_file): Handle large archives.
4722 (xcoff_generic_stat_arch_elt): Handle large archives.
4723 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4724 (xcoff_write_armap_big): New function.
4725 (xcoff_write_armap): New function, dispatch to _old or _big.
4726 (xcoff_write_archive_contents_old): Rename from
4727 xcoff_write_archive_contents.
4728 (xcoff_write_archive_contents_big): New function.
4729 (xcoff_write_archive_contents): New function, dispatch to _old or
4732 2000-02-18 Richard Henderson <rth@cygnus.com>
4734 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4735 and hide_symbol members.
4736 (elf_link_hash_copy_indirect): Remove.
4737 (elf_link_hash_hide_symbol): Remove.
4738 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4739 and elf_backend_hide_symbol.
4740 (_bfd_elf_link_hash_copy_indirect): Declare.
4741 (_bfd_elf_link_hash_hide_symbol): Declare.
4742 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4743 (_bfd_elf_link_hash_hide_symbol): Likewise.
4744 (_bfd_elf_link_hash_table_init): Don't init killed members.
4745 * elflink.h (elf_link_add_object_symbols): Use the bed function
4746 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4747 (elf_link_assign_sym_version): Likewise.
4748 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4749 (elf_backend_hide_symbol): Likewise.
4750 (elfNN_bed): Update for new members.
4752 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4754 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4755 STACK_END_ADDR): Define for new core file format.
4756 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4757 for handling the vagaries of the various core file structures used
4758 by AIX over the years.
4759 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4760 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4761 core_dumpx structure.
4763 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4765 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4766 (bfd_mach_sh3_dsp): Likewise.
4767 (bfd_mach_sh4): Reinstate.
4768 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4769 * bfd-in2.h: Regenerate.
4770 * coff-sh.c (struct sh_opcode): flags is no longer short.
4771 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4772 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4773 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4774 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4775 (sh_opcodes): No longer const.
4776 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4777 (sh_insn_uses_reg): Check for USESAS and USESR8.
4778 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4779 (_bfd_sh_align_load_span): Return early for SH4.
4780 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4781 Take into account that field b of a parallel processing insn
4782 could be mistaken for a separate insn.
4783 * cpu-sh.c (arch_info_struct): New array elements for
4784 sh2, sh-dsp and sh3-dsp.
4785 Reinstate element for sh4.
4786 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4787 (SH4_NEXT): Reinstate.
4788 (SH3_NEXT, SH3E_NEXT): Adjust.
4789 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4790 * elf32-sh.c (sh_elf_set_private_flags): New function.
4791 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4792 (sh_elf_merge_private_data): New function.
4793 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4794 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4795 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4796 sh_elf_merge_private_data.
4798 2000-02-13 Richard Henderson <rth@cygnus.com>
4800 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4801 hide_symbol members.
4802 (elf_link_hash_copy_indirect): New.
4803 (elf_link_hash_hide_symbol): New.
4804 * elflink.h (elf_link_add_object_symbols): Break out copy from
4805 indirect new new symbol to elf.c.
4806 (elf_link_assign_sym_version): Break out privatization of
4807 non-exported symbol to elf.c.
4808 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4809 (_bfd_elf_link_hash_hide_symbol): New.
4810 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4812 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4814 * section.c (_bfd_strip_section_from_output): Add info parameter.
4815 If it passed as non-NULL, use it to check whether any input BFD
4816 has an input section which uses this output section. Change all
4818 * bfd-in2.h: Rebuild.
4820 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4821 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4823 * bfd-in2.h: Rebuild.
4825 2000-02-10 Timothy Wall <twall@cygnus.com>
4827 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4828 allow final modifications of swapped-in symbol.
4829 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4830 * coffcode.h (coff_write_relocs): Use macro
4831 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4832 symbol index should be set to -1.
4834 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4836 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4837 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4838 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4839 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4840 sh_insns_uses_or_sets_freg): New functions.
4841 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4842 * (sh_insns_conflict): Use new functions and new macros to
4843 detect conflicts when two instructions both set same integer registers,
4844 both set same fp register, and both set special register.
4846 2000-02-09 Timothy Wall <twall@cygnus.com>
4848 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4849 swapping in sections, so that the swapping routines have access to
4852 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4854 * coff-go32.c: Update comment. Update copyright.
4856 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4858 * syms.c (bfd_decode_symclass)
4859 Two new class characters were added - 'V' and 'v'. The
4860 meaning of 'W' is now restricted to just weak non-object
4861 symbols. This allows differentiation between, for example,
4862 weak functions vs weak objects. nm for example now dumps:
4864 'w' = weak unresolved
4865 'V' = weak global object
4866 'v' = weak unresolved object
4868 (bfd_is_undefined_symclass): New function. Return true if the
4869 given symbol class represents and undefined/unresolved symbol.
4871 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4874 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4876 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4877 STT_ARM_16BIT flag set, but it is not attached to a data object
4878 return STT_ARM_16BIT so that it will be treated as code by the
4881 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4883 * coff-i386.c (i3coff_object_p): Remove prototype.
4886 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4887 to name. Update copyright.
4889 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4890 assignment to avoid warning. Update copyright.
4892 2000-01-24 Robert Lipe (robertl@sco.com)
4894 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4895 instead of using GNU C extension.
4897 2000-01-21 Nick Clifton <nickc@cygnus.com>
4899 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4900 amount from a bfd_in_memory structure.
4901 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4904 2000-01-14 Nick Clifton <nickc@cygnus.com>
4906 * linker.c (default_indirect_link_order): oops - fix incorrectly
4907 applied patch from Tim Wall.
4909 2000-01-13 Timothy Wall (twall@tiac.net>
4911 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4912 = scnhsz, filhsz, relsz, aoutsz, etc)
4914 * coffswap.h: Ditto.
4916 2000-01-13 Nick Clifton <nickc@cygnus.com>
4918 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4919 interwork thumb to arm stub.
4921 2000-01-13 Timothy Wall (twall@tiac.net>
4923 * archures.c (bfd_octets_per_byte): New function: Return
4925 (bfd_arch_mach_octets_per_byte): New function: Return target
4928 * section.c: Distinguish between octets and bytes for usage of
4929 _cooked_size, _raw_size, and output_offset. Clarify
4930 description of bfd_set_section_contents.
4932 * bfd-in2.h: Regenerate.
4934 * coffgen.c: Indicate that the offset parameter is in bytes, not
4937 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4938 where appropriate to get the octet offset when calling
4939 bfd_set_section_contents.
4940 (bfd_coff_reloc_link_order): Ditto.
4942 * linker.c (bfd_generic_reloc_link_order): Ditto.
4943 (_bfd_default_link_order): Ditto.
4945 * reloc.c (bfd_perform_relocation): Distinguish between octets
4946 and bytes. Use octets when indexing into octet data; use bytes
4947 when calculating target addresses.
4948 (bfd_install_relocation): Ditto.
4950 * srec.c (srec_write_section): Ditto.
4952 2000-01-13 Nick Clifton <nickc@cygnus.com>
4954 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4955 3 to 2. This allows 4 byte sized sections, which is necessary for
4956 dlltool to build functioning DLLs.
4958 2000-01-10 Philip Blundell <pb@futuretv.com>
4960 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4961 (arm*-*-conix*): New target.
4963 2000-01-10 Egor Duda <deo@logos-m.ru>
4965 * config.bfd: Include elf32_i386 vector to target list for cygwin
4968 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4969 * configure.in: Test for structure win32_pstatus_t in
4971 * configure: Regenerate.
4973 * elf.c (elfcore_grok_win32pstatus): New function: process
4974 win32_pstatus_t notes in elf core file.
4975 (elfcore_grok_note): Detect win32_pstatus notes.
4977 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4979 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4981 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4982 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4984 For older changes see ChangeLog-9899
4990 version-control: never