1 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3 * libbfd-in.h (_bfd_merge_section): New.
4 (_bfd_write_merged_section): New.
5 (_bfd_merged_section_offset): New.
7 * linker.c (_bfd_generic_link_output_symbols): Handle
9 * aoutx.h (aout_link_write_symbols): Likewise.
10 * pdp11.c (aout_link_write_symbols): Likewise.
11 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
12 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
14 (elf_link_sec_merge_syms): New.
15 (elf_link_input_bfd): Call _bfd_merged_section_offset
16 and _bfd_write_merged_section.
17 Handle discard_sec_merge.
18 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
20 (struct bfd_elf_section_data): Likewise.
21 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
22 SEC_STRINGS section flags and entsize from their ELF counterparts.
23 (_bfd_elf_link_hash_table_init): Initialize merge_info.
24 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
25 from their BFD counterparts.
27 * Makefile.am: Add strtab.lo.
28 * Makefile.in: Rebuilt.
30 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
32 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
33 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
35 2001-04-05 Steven J. Hill <sjhill@cotw.com>
37 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
38 endian MIPS ELF target.
39 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
42 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
43 64bit big endian MIPS ELF target.
44 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
45 endian MIPS ELF target.
46 * configure: Regenerated.
48 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
49 little endian targets.
50 (mips_elf_sym_is_global): Handle traditional targets.
52 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
53 64bit big endian MIPS ELF target.
54 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
55 endian MIPS ELF target.
57 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
58 and bfd_elf64_tradlittlemips_vec.
60 2001-04-05 David Mosberger <davidm@hpl.hp.com>
62 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
63 ordinary "progbits" section.
65 2001-04-04 Alan Modra <alan@linuxcare.com.au>
67 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
68 when -Bsymbolic causes a symbol to no longer need a .plt entry.
70 2001-04-03 David Mosberger <davidm@hpl.hp.com>
72 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
74 2001-03-30 H.J. Lu <hjl@gnu.org>
76 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
77 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
79 2001-03-26 H.J. Lu <hjl@gnu.org>
81 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
82 if there are any relocations for generic ELF.
83 (bfd_elf32_bfd_link_add_symbols): Defined to
84 elf32_generic_link_add_symbols.
85 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
86 if there are any relocations for generic ELF.
87 (bfd_elf64_bfd_link_add_symbols): Defined to
88 elf64_generic_link_add_symbols.
90 2001-03-23 Nick Clifton <nickc@redhat.com>
92 * Makefile.am (BUILD_CFILES): New variable: List of C source
93 files created in build directory.
94 (BUILD_HFILES): New variable: List of header files created in
97 (po/POTFILES.in): Replace rule with empty entry.
98 (po/SRC-POTFILES.in): New rule: Create a list of source files
99 in the source directory.
100 (po/BLD-POTFILES.in): New rule: Create a list of source files
101 in the build directory.
102 (MOSTLYCLEAN): Do not delete source files created in build
104 * Makefile.in: Regenerate.
105 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
107 * configure: Regenerate.
109 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
111 Add .. to the search path when building bfd.pot.
112 Delete POTFILES when performing distclean.
113 Add comment describing why distclean is broken in maintainer mode.
114 * po/POTFILES.in: Delete.
115 * po/SRC-POTFILES.in: New file.
116 * po/BLD-POTFILES.in: New file.
117 * po/bfd.pot: Regenerate.
119 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
121 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
122 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
123 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
124 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
125 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
126 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
128 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
129 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
130 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
131 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
132 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
133 New HOWTO members for new relocs.
134 (cris_reloc_map): Map new relocs.
135 (ELF_DYNAMIC_INTERPRETER): Define.
136 (PLT_ENTRY_SIZE): Define.
137 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
138 elf_cris_pic_plt_entry): New, PLT templates.
139 (struct elf_cris_pcrel_relocs_copied, struct
140 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
141 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
142 (cris_final_link_relocate): Check that 16-bit GOT relocs have
143 positive values. Adjust PCREL relocs to be relative to location
145 (cris_elf_relocate_section): Handle relocations to dynamic
146 objects. Handle new relocations. Call error handler when seeing
147 non-PIC relocation for read-only sections while generating shared
149 (cris_elf_check_relocs): Set reference counts for GOT and PLT
151 (bfd_elf32_bfd_link_hash_table_create,
152 elf_backend_adjust_dynamic_symbol,
153 elf_backend_size_dynamic_sections,
154 elf_backend_finish_dynamic_symbol,
155 elf_backend_finish_dynamic_sections,
156 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
157 elf_backend_hide_symbol, elf_backend_want_got_plt,
158 elf_backend_plt_readonly, elf_backend_want_plt_sym,
159 elf_backend_got_header_size, elf_backend_plt_header_size):
162 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
163 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
164 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
165 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
166 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
167 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
168 * bfd-in2.h, libbfd.h: Regenerate.
170 2001-03-21 Diego Novillo <dnovillo@redhat.com>
172 (_bfd_mips_elf_relocate_section): Give a better error message when
173 a relocation is not recognized.
175 2001-03-21 Alan Modra <alan@linuxcare.com.au>
177 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
178 non-NULL before attempting to dereference.
180 2001-03-20 H.J. Lu <hjl@gnu.org>
182 * configure.in: Remove the redundent AC_ARG_PROGRAM.
183 * configure: Rebuild.
185 2001-03-20 Andreas Schwab <schwab@suse.de>
187 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
188 relocation value when resolving a reference from a debugging
191 2001-03-16 Scott Thomason <SThomaso@hii.com>
193 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
194 (xcoff64_swap_sym_out): Fix syntax errors.
196 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
198 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
200 2001-03-15 Alan Modra <alan@linuxcare.com.au>
202 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
203 (hppa_link_hash_newfunc): Init it.
204 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
205 section appears to be non-PIC.
206 (final_link_relocate): Likewise.
207 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
208 possible candidate function, and set pic_call for those that will
209 only have a .plt entry for the PIC call stub.
210 (hppa_handle_PIC_calls): Set maybe_pic_call.
212 2001-03-12 DJ Delorie <dj@redhat.com>
214 * elf32-sh.c (sh_elf_relocate_section): Only relocation
215 R_SH_DIR8WP* relocs if they're against external symbols, else
216 they're just for relaxing. Validate the reloc values.
218 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
220 * binary.c (bfd_external_binary_architecture): Declare.
221 (binary_object_p): If bfd_external_binary_architecture is defined,
222 set the architecture to this string.
224 2001-03-11 Philip Blundell <philb@gnu.org>
226 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
227 entries that could serve as a definition for a weak symbol.
229 2001-03-08 Nick Clifton <nickc@redhat.com>
231 * Most files: Update copyright notices using Perl script created
232 by Kevin Buettner <kevinb@redhat.com>.
234 2001-03-07 Nick Clifton <nickc@redhat.com>
236 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
237 prior patch on ! defined OLD_ARM_ABI.
239 2001-03-07 Andreas Jaeger <aj@suse.de>
241 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
242 some relocation values.
244 2001-03-06 Nick Clifton <nickc@redhat.com>
246 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
247 of offset in BLX(1) instruction.
248 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
249 offset in BLX(1) instruction.
252 2001-03-06 Nick Clifton <nickc@redhat.com>
254 * coff-arm.c (coff_arm_reloc_type_lookup): Add
255 BFD_RELOC_THUMB_PCREL_BLX.
257 2001-03-06 Igor Shevlyakov <igor@windriver.com>
259 * archures.c (bfd_default_scan): Add Coldfire CPUs.
260 * bfd-in2.h: Regenerate.
261 * cpu-m68k.c: Add Coldfire CPUs for arch table.
262 * ieee.c (ieee_write_processor): Set proper id for
265 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
267 * configure.in: Add s390 target.
268 * configure: Regenerate.
270 2001-02-28 Andreas Jaeger <aj@suse.de>
272 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
275 2001-02-28 Philip Blundell <pb@futuretv.com>
277 * elf32-arm.h: Update mentions of renamed EF_xx constants.
278 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
280 2001-02-27 H.J. Lu <hjl@gnu.org>
282 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
283 abfd->tdata.aout_data == NULL.
285 2001-02-27 Alan Modra <alan@linuxcare.com.au>
287 * elf32-hppa.c: Correct field selector in stub comments.
288 (clobber_millicode_symbols): Formatting fix.
290 * configure.in: Bump version to 2.11.90.
291 * configure: Regenerate.
292 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
293 (CFILES): $SOURCE_CFILES + generated C files.
294 (POTFILES): Include $HFILES not $SOURCE_HFILES.
296 * Makefile.in: Regenerate.
297 * doc/Makefile.in: This too.
299 2001-02-26 Timothy Wall <twall@cygnus.com>
301 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
304 2001-02-26 Nick Clifton <nickc@redhat.com>
306 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
307 up, replacing multiple if statements with a switch.
308 (handle_COMDAT): New function.
310 2001-02-26 H.J. Lu <hjl@gnu.org>
312 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
313 a warning for section flags we do not handle instead of
316 2001-02-26 Andreas Jaeger <aj@suse.de>
318 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
320 2001-02-22 Timothy Wall <twall@cygnus.com>
322 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
323 * configure.in: Add objects for elf64_ia64_aix vectors.
324 * configure: Regenerated.
325 * configure.host: Recognize ia64-*-aix*.
326 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
327 for AIX. AIX5 requires most relocations to be dynamic (*all*
328 binaries are somewhat similar to shared libraries).
329 * targets.c: Add elf64_ia64_aix vectors.
331 2001-02-21 David Mosberger <davidm@hpl.hp.com>
333 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
334 C8 said "1" instead of "8". Clarify error string for IMM22:
335 "signed integer" instead of just "integer".
337 2001-02-20 Andreas Jaeger <aj@suse.de>
339 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
340 PLT entries that could serve as a definition for a weak symbol.
342 2001-02-19 Jakub Jelinek <jakub@redhat.com>
344 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
345 entries that could serve as a definition for a weak symbol.
346 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
348 2001-02-18 David O'Brien <obrien@FreeBSD>
350 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
351 FreeBSD/i386-CURRENT differently until I can figure out the needed
353 * configure: Regenerate.
354 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
355 FreeBSD/PowerPC, and FreeBSD/sparc64.
357 2001-02-18 lars brinkhoff <lars@nocrew.org>
359 * Makefile.am: Add PDP-11 a.out target.
360 * config.bfd: Likewise.
361 * configure.in: Likewise.
362 * targets.c: Likewise.
363 * archures.c: Likewise.
364 * bfd-in2.h: Likewise. Add PDP-11 relocations.
365 * libbfd.h: Add PDP-11 relocations.
367 * cpu-pdp11.c: New file.
370 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
371 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
372 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
373 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
374 (GET_MAGIC): New macro.
375 (PUT_MAGIC): Likewise.
376 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
378 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
380 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
383 2001-02-18 H.J. Lu <hjl@gnu.org>
385 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
388 2001-02-18 Kazu Hirata <kazu@hxi.com>
390 * vms-misc.c: Fix formatting.
392 2001-02-16 Kazu Hirata <kazu@hxi.com>
394 * vms.c: Fix formatting.
396 2001-02-14 H.J. Lu <hjl@gnu.org>
398 * elf.c (elf_find_function): New function.
399 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
400 the file name and function name.
402 2001-02-14 Nick Clifton <nickc@redhat.com>
404 * ecoff.c (bfd_debug_section): Update to initialise new fields in
407 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
408 (BFD64_BACKENDS): Add pepigen.c
409 Add rules to create peigen.c and pepigen.c from peXXigen.c.
411 * Makefile.in: Regenerate.
412 * configure: Regenerate.
413 * po/POTFILES.in: Regenerate.
414 * po/bfd.pot: Regenerate.
416 2001-02-14 H.J. Lu <hjl@gnu.org>
418 * libcoff-in.h (pe_tdata): Add members target_subsystem and
419 force_minimum_alignment.
421 2001-02-14 Bo Thorsen <bo@suse.de>
423 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
424 (elf64_86_64_size_info): Struct added to fix a problem
425 with the hashtable string entries.
426 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
427 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
428 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
429 remove the FIXME for this.
430 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
431 section. Also removed the FIXME for it.
432 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
433 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
434 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
436 2001-02-13 Richard Henderson <rth@redhat.com>
438 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
439 and not user provided.
441 2001-02-13 Kazu Hirata <kazu@hxi.com>
443 * vms.c (vms_print_symbol): Remove unreachable code.
445 * rs6000-core.c: Fix formatting.
447 2001-02-13 David Mosberger <davidm@hpl.hp.com>
449 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
450 as _bfd_XXi_only_swap_filehdr_out.
451 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
452 pe->force_minimum_alignment to TRUE.
453 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
454 PEI_TARGET_SUBSYSTEM.
455 (pe_print_private_bfd_data): Call
456 _bfd_XX_print_private_bfd_data_common() instead of
457 _bfd_pe_print_private_bfd_data_common().
458 (pe_bfd_copy_private_bfd_data): Call
459 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
460 _bfd_pe_bfd_copy_private_bfd_data_common().
461 (coff_bfd_copy_private_section_data): Define as
462 _bfd_XX_bfd_copy_private_section_data instead of
463 _bfd_pe_bfd_copy_private_section_data.
464 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
465 of a _bfd_pe_get_symbol_info.
469 * peXXigen.c: Renamed from peigen.c.
470 (COFF_WITH_XX): Define this macro (will get expanded into
471 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
472 compiled as peigen.c or pepigen.c.
473 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
474 define the canonical PEP structures and definitions.
475 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
476 effect, enforce minimum file and section alignments. If
477 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
478 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
479 so, by default, this is a no-op).
481 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
482 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
483 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
484 _bfd_pefoo if it's not defined. Use these macros to define
487 * libcoff.h (pe_tdata): Add members target_subsystem and
488 force_minimum_alignment.
490 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
492 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
494 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
497 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
498 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
501 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
502 (BFD64_BACKENDS_CFILES): Mention pepigen.c
503 (peigen.c): Add rule to generate from peXXigen.c.
505 (pepigen.lo): List dependencies for pepigen.lo.
507 2001-02-13 Alan Modra <alan@linuxcare.com.au>
509 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
510 $global$ referenced but not defined, set its value here.
512 2001-02-09 Bo Thorsen <bo@suse.de>
514 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
516 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
518 (elf64_x86_64_relocate_section): Fix formatting.
519 (elf64_x86_64_relocate_section): Fix addend for relocation of
520 R_X86_64_(8|16|32|PC8|PC16|PC32).
522 2001-02-12 Jan Hubicka <jh@suse.cz>
524 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
526 2001-02-11 H.J. Lu <hjl@gnu.org>
528 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
531 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
533 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
534 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
535 relocations against dynsym symbols.
537 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
538 the R_MIPS_26 relocation.
539 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
540 the R_MIPS_26 relocation.
541 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
543 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
544 the R_MIPS_26 relocation.
545 (mips_elf64_howto_table_rela): Likewise.
547 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
548 member to mark symbols that have non-CALL relocations against
550 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
551 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
553 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
554 non-CALL relocation against it is encountered.
555 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
556 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
557 no_fn_stub is not set.
559 * elf32-mips.c (mips_elf_output_extsym): Get the output section
560 information from the real symbol for indirect ones.
561 Check no_fn_stub to find out if a symbol has a function stub
564 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
566 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
567 * Makefile.in: Regenerate.
569 2001-02-09 David Mosberger <davidm@hpl.hp.com>
571 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
572 true if section name is an unwind table section name.
573 (elfNN_ia64_additional_program_headers): Count each unwind section
575 (elfNN_ia64_modify_segment_map): Install one unwind program header
576 for each unwind separate section. Note: normally the linker
577 script merges the unwind sections that go into a single segment,
578 so this still generates at most one unwind program header per
581 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
582 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
583 (elfNN_ia64_fake_sections): Mark sections with names that start
584 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
587 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
588 Use it to make sh_info in unwind section point to the text section
591 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
593 * Makefile.am: Add linux target for S/390.
594 * archures.c: Likewise.
595 * bfd-in2.h: Likewise.
596 * config.bfd: Likewise.
597 * configure.in: Likewise.
599 * libbfd.h: Likewise.
600 * targets.c: Likewise.
601 * cpu-s390.c: New file.
602 * elf32-s390.c: New file.
603 * elf64-s390.c: New file.
605 2001-02-09 Nick Clifton <nickc@redhat.com>
607 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
608 ImageBase. This has already been done by coff_swap_hdr_in.
610 2001-02-09 Jakub Jelinek <jakub@redhat.com>
612 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
614 2001-02-09 Jakub Jelinek <jakub@redhat.com>
616 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
617 (sparc64_elf_relocate_section): Likewise.
619 2001-02-09 Mark Kettenis <kettenis@gnu.org>
621 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
622 similar to R_SPARC_32.
623 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
625 2001-02-08 H.J. Lu <hjl@gnu.org>
627 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
628 relocation entries for weak definitions when building DSO with
631 2001-02-08 Richard Henderson <rth@redhat.com>
633 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
634 before visibility. Locally defined protected symbols are not
637 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
639 * config.bfd: Enable coff64 for rs6000-*. Patch from
640 <hzoli@austin.ibm.com>.
642 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
644 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
645 found, do not attempt to find dwarf2 info before returning.
647 2001-02-07 Jakub Jelinek <jakub@redhat.com>
649 * elflink.h (is_global_symbol_definition): Rename to
650 is_global_data_symbol_definition and have it reject function
652 (elf_link_is_defined_archive_symbol): Use renamed function.
654 2001-02-07 Todd Vierling <tv@wasabisystems.com>
656 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
657 * libbfd.h (bfd_target_vector): Likewise.
658 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
659 make static; create pointer reference named bfd_target_vector.
660 (_bfd_target_vector_entries): Calculate this based on the array
661 typed _bfd_target_vector.
663 2001-02-06 H.J. Lu <hjl@gnu.org>
665 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
666 internal symbols are not dynamic.
667 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
669 2001-02-06 Nick Clifton <nickc@redhat.com>
671 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
672 that it will not be pulled into the list of files that make up
674 * Makefile.in: Regenerate.
675 * po/bfd.pot: Regenerate.
677 2001-02-06 H.J. Lu <hjl@gnu.org>
679 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
681 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
682 external_PEI_IMAGE_hdr.
684 2001-02-06 Kazu Hirata <kazu@hxi.com>
686 * elf-m10200.c: Fix formatting.
688 2001-02-04 Nick Clifton <nickc@redhat.com>
690 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
691 rel, it will be handled later on.
693 2001-02-02 Fred Fish <fnf@ninemoons.com>
695 * Makefile.in: Fix typo.
697 2001-02-01 Kazu Hirata <kazu@hxi.com>
699 * elf-m10300.c: Fix formatting.
701 2001-01-30 Alan Modra <alan@linuxcare.com.au>
703 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
704 (elf_backend_get_symbol_type): Define.
705 (elf64_hppa_object_p): Set architecture and machine from elf
708 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
710 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
713 2001-01-26 Richard Henderson <rth@redhat.com>
715 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
716 for non-default visibility.
717 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
718 delete ugly macro and replace with pretty function.
720 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
722 * coff-go32.c: Update copyright.
723 * coff-stgo32.c: Likewise.
724 * coff-go32.c (COFF_LONG_FILENAMES): Define.
725 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
726 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
727 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
729 2001-01-25 Kazu Hirata <kazu@hxi.com>
731 * bfd-in2.h: Rebuild.
732 * libbfd.h: Likewise.
734 2001-01-23 H.J. Lu <hjl@gnu.org>
736 * bfd-in2.h: Rebuild.
738 2001-01-23 H.J. Lu <hjl@gnu.org>
740 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
741 is NULL or PRIV(vms_rec) is outside of the buffer.
743 2001-01-23 Kazu Hirata <kazu@hxi.com>
745 * coff64-rs6000.c: Fix formatting.
746 * coff-arm.c: Likewise.
747 * coffgen.c: Likewise.
748 * cofflink.c: Likewise.
749 * coff-mcore.c: Likewise.
750 * coff-mips.c: Likewise.
751 * coff-pmac.c: Likewise.
752 * coff-ppc.c: Likewise.
753 * coff-rs6000.c: Likewise.
755 * elf32-fr30.c: Likewise.
756 * elf32-i370.c: Likewise.
757 * elf32-i860.c: Likewise.
758 * elf32-m32r.c: Likewise.
759 * elf32-m68k.c: Likewise.
760 * elf32-mcore.c: Likewise.
761 * elf32-ppc.c: Likewise.
762 * elf32-sh.c: Likewise.
763 * elf32-v850.c: Likewise.
764 * elf64-alpha.c: Likewise.
765 * elf64-sparc.c: Likewise.
766 * elflink.c: Likewise.
767 * elflink.h: Likewise.
768 * elf-m10200.c: Likewise.
769 * elf-m10300.c: Likewise.
770 * elfxx-ia64.c: Likewise.
772 * aoutx.h: Fix formatting.
774 * bfd-in2.h: Likewise.
775 * bfd-in.h: Likewise.
776 * cpu-i386.c: Likewise.
777 * cpu-m68hc11.c: Likewise.
778 * dwarf2.c: Likewise.
779 * elf64-x86-64.c: Likewise.
780 * format.c: Likewise.
781 * freebsd.h: Likewise.
783 * hp300hpux.c: Likewise.
784 * hppabsd-core.c: Likewise.
785 * hpux-core.c: Likewise.
787 2001-01-22 Bo Thorsen <bo@suse.de>
789 * elf64-x86-64.c: Added PIC support for X86-64.
790 (elf64_x86_64_link_hash_newfunc): Function added.
791 (elf64_x86_64_link_hash_table_create): Likewise.
792 (elf64_x86_64_check_relocs): Likewise.
793 (elf64_x86_64_gc_mark_hook): Likewise.
794 (elf64_x86_64_gc_sweep_hook): Likewise.
795 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
796 (elf64_x86_64_size_dynamic_sections): Likewise.
797 (elf64_x86_64_discard_copies): Likewise.
798 (elf64_x86_64_finish_dynamic_symbol): Likewise.
799 (elf64_x86_64_finish_dynamic_sections): Likewise.
800 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
802 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
804 * Makefile.am (install-data-local): Make use of $(DESTDIR).
805 * Makefile.in: Regenerate.
807 2001-01-21 Kazu Hirata <kazu@hxi.com>
809 * coff-a29k.c: Fix formatting.
811 2001-01-19 H.J. Lu <hjl@gnu.org>
813 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
814 relocation section names.
815 (elf_i386_relocate_section): Report files with bad relocation
816 section names and return false.
818 2001-01-17 Bo Thorsen <bo@suse.de>
820 * targets.c: Alphabetize list of xvecs.
822 2001-01-14 Alan Modra <alan@linuxcare.com.au>
824 * config.bfd: Add linux target variant for elfxx-hppa.
825 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
826 bfd_elf64_hppa_linux_vec.
827 * configure: Regenerate.
828 * elf64-hppa.c: Include elf64-target.h again to support linux
830 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
831 * elf32-hppa.c: Include elf32-target.h again to support linux
833 (elf32_hppa_post_process_headers): New function.
834 (elf_backend_post_process_headers): Define.
835 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
836 bfd_elf32_hppa_linux_vec.
838 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
839 and data_segment_base fields.
840 (elf32_hppa_link_hash_table_create ): Init them.
841 (elf32_hppa_check_relocs): Update comments.
842 (hppa_record_segment_addr): New function.
843 (elf32_hppa_relocate_section): Call it.
844 (final_link_relocate): Handle R_PARISC_SEGREL32.
845 (elf32_hppa_final_link): New function.
846 (bfd_elf32_bfd_final_link): Define to call it.
847 (hppa_unwind_entry_compare): New function.
848 * cache.c (bfd_open_file): Create files in write+read mode.
850 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
851 SEGREL32 and numerous other relocs. Change duplicate
852 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
854 * opncls.c (bfd_fdopenr): Add parens like the comment says around
857 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
858 .plt entries for DT_INIT and DT_FINI.
859 (elf32_hppa_finish_dynamic_sections): Remove special handling of
862 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
863 offsets for stub .plt access if wide mode. Check offset in range.
865 2001-01-13 Nick Clifton <nickc@redhat.com>
867 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
870 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
873 2001-01-12 Alan Modra <alan@linuxcare.com.au>
875 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
876 * configure: Regenerate.
878 2001-01-11 Peter Targett <peter.targett@arccores.com>
880 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
881 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
882 * cpu-arc.c (arch_info_struct): Add entries for variants.
883 (bfd_arc_arch) Set default to bfd_mach_arc_5.
884 (arc_get_mach) Don't assume machine names prefixed arc- before
886 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
888 (arc_elf_final_write_processing) Likewise.
889 (ELF_MACHINE_CODE) Use EM_ARC.
891 2001-01-10 Nick Clifton <nickc@redhat.com>
893 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
895 2001-01-07 Philip Blundell <philb@gnu.org>
897 * README: Replace `bug-gnu-utils@gnu.org' with
898 `bug-binutils@gnu.org'.
900 2001-01-04 Kazu Hirata <kazu@hxi.com>
902 * som.c: Fix formatting.
904 2001-01-03 Kazu Hirata <kazu@hxi.com>
906 * ecoffswap.h: Fix formatting.
907 * elf-bfd.h: Likewise.
908 * elfarm-nabi.c: Likewise.
909 * elfarm-oabi.c: Likewise.
910 * elfcode.h: Likewise.
911 * elfcore.h: Likewise.
912 * elflink.c: Likewise.
913 * elflink.h: Likewise.
914 * elfxx-ia64.c: Likewise.
915 * elfxx-target.h: Likewise.
917 * linker.c: Likewise.
918 * lynx-core.c: Likewise.
920 2001-01-02 Kazu Hirata <kazu@hxi.com>
922 * pc532-mach.c: Fix formatting.
923 * pe-arm.c: Likewise.
924 * pe-i386.c: Likewise.
925 * pe-mips.c: Likewise.
926 * pe-ppc.c: Likewise.
928 * pei-mips.c: Likewise.
929 * pei-sh.c: Likewise.
930 * peicode.h: Likewise.
931 * ppcboot.c: Likewise.
932 * ptrace-core.c: Likewise.
934 2001-01-01 Kazu Hirata <kazu@hxi.com>
936 * reloc.c: Fix formatting.
937 * riscix.c: Likewise.
938 * rs6000-core.c: Likewise.
939 * xcoff-target.h: Likewise.
941 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
943 * elfcode.h (elf_object_p): Also restore the bfd mach field on
944 error, by calling bfd_default_set_arch_mach with incoming
947 2000-12-26 Kazu Hirata <kazu@hxi.com>
949 * vaxnetbsd.c: Fix formatting.
950 * versados.c: Likewise.
951 * vms-gsd.c: Likewise.
952 * vms-hdr.c: Likewise.
953 * vms-misc.c: Likewise.
955 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
957 * archive.c (coff_write_armap): Don't write more than symbol_count
958 `archive_member_file_ptr's.
960 2000-12-25 Kazu Hirata <kazu@hxi.com>
962 * vms-tir.c: Fix formatting.
964 2000-12-23 Kazu Hirata <kazu@hxi.com>
966 * vms.c: Fix formatting.
969 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
971 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
973 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
975 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
978 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
980 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
982 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
984 * libbfd.c (bfd_get_bits): Added
985 (bfd_put_bits): Likewise
986 * bfd-in.h: Declared the above.
987 * bfd-in2.h: Regenerated.
989 2000-12-20 Kazu Hirata <kazu@hxi.com>
991 * targets.c: Fix formatting.
992 * tekhex.c: Likewise.
993 * trad-core.c: Likewise.
995 2000-12-19 Kazu Hirata <kazu@hxi.com>
997 * sco5-core.c: Fix formatting.
998 * section.c: Likewise.
999 * sparclinux.c: Likewise.
1000 * sparclynx.c: Likewise.
1001 * sparcnetbsd.c: Likewise.
1003 * stabs.c: Likewise.
1004 * stab-syms.c: Likewise.
1005 * sunos.c: Likewise.
1007 * sysdep.h: Likewise.
1009 2000-12-18 Nick Clifton <nickc@redhat.com>
1011 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1013 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1014 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1016 2000-12-18 Nick Clifton <nickc@redhat.com>
1018 * vms-misc.c (_bfd_vms_get_record): Add default case to
1021 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1023 * elfcore.h (elf_core_file_p): Move to the start of the program
1024 headers before attempting to read them.
1026 2000-12-14 Kazu Hirata <kazu@hxi.com>
1028 * peigen.c: Fix formatting.
1032 2000-12-13 Kazu Hirata <kazu@hxi.com>
1034 * peigen.c: Fix formatting.
1036 2000-12-12 Jim Wilson <wilson@redhat.com>
1038 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1040 2000-12-08 Mark Salter <msalter@redhat.com>
1042 * binary.c (binary_set_section_contents): Ignore sections
1045 2000-12-12 Kazu Hirata <kazu@hxi.com>
1047 * m68klinux.c: Fix formatting.
1048 * m68knetbsd.c: Likewise.
1049 * mipsbsd.c: Likewise.
1050 * netbsd-core.c: Likewise.
1051 * netbsd.h: Likewise.
1052 * newsos3.c: Likewise.
1053 * nlm32-alpha.c: Likewise.
1054 * nlm32-i386.c: Likewise.
1055 * nlm32-ppc.c: Likewise.
1056 * nlm32-sparc.c: Likewise.
1057 * nlmcode.h: Likewise.
1058 * nlmswap.h: Likewise.
1059 * nlm-target.h: Likewise.
1060 * ns32knetbsd.c: Likewise.
1062 2000-12-10 Fred Fish <fnf@be.com>
1064 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1065 symbols in shared objects if allow_shlib_undefined is true.
1067 2000-12-12 Nick Clifton <nickc@redhat.com>
1069 * cpu-sh.c: Fix formattng.
1070 * elf.c: Fix formattng.
1071 * elf32-mips.c: Fix formattng.
1072 * elf32-sh.c: Fix formattng.
1073 * elf64-alpha.c: Fix formattng.
1075 2000-12-09 Nick Clifton <nickc@redhat.com>
1077 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1078 dwarf2_find_line_info as last parameter to invocation of
1079 _bfd_dwarf2_find_nearest_line.
1080 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1081 dwarf2_find_line_info as last parameter to invocation of
1082 _bfd_dwarf2_find_nearest_line.
1084 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1086 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1087 (BFD_LIBS): ...to here.
1088 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1089 (BFD_LIBS_CFILES): ...to here.
1090 * Makefile.in: Regenerate.
1091 * configure.in: Remove dwarf.lo from the elf shell variable.
1092 * configure: Regenerate.
1093 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1094 * libcoff.h: Regenerate.
1095 * coffgen.c (coff_find_nearest_line): Call
1096 _bfd_dwarf2_find_nearest_line.
1097 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1099 (read_abbrevs): Likewise
1100 (decode_line_info): Likewise.
1101 (parse_comp_unit): Likewise.
1102 (comp_unit_find_nearest_line): Likewise.
1103 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1104 * libbfd.h: Regenerate.
1105 * elf.c (_bfd_elf_find_nearest_line): Update call.
1106 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1107 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1108 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1109 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1110 (styp_to_sec_flags): Handle DWARF2 sections.
1111 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1112 to _bfd_find_nearest_line.
1113 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1114 call to _bfd_find_nearest_line.
1116 2000-12-08 Kazu Hirata <kazu@hxi.com>
1118 * coffgen.c: Fix formatting.
1119 * elf-m10300.c: Likewise.
1120 * elf32-i386.c: Likewise.
1121 * elf32-i960.c: Likewise.
1122 * elf32-m68k.c: Likewise.
1123 * elf32-mcore.c: Likewise.
1124 * elf32-ppc.c: Likewise.
1125 * elf32-sh.c: Likewise.
1126 * elf32-sparc.c: Likewise.
1127 * elf32-v850.c: Likewise.
1128 * elf64-alpha.c: Likewise.
1129 * elf64-hppa.c: Likewise.
1130 * elf64-mips.c: Likewise.
1131 * elf64-sparc.c: Likewise.
1133 2000-12-07 Kazu Hirata <kazu@hxi.com>
1135 * elf32-ppc.c: Fix formatting.
1136 * elf64-x86-64.c: Likewise.
1138 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1140 From Ralf Baechle <ralf@gnu.org>
1142 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1143 BFDs containing no sections or empty .text, .data or .bss sections
1144 to be merged, regardless of their flags.
1146 2000-12-06 Kazu Hirata <kazu@hxi.com>
1148 * elf32-m32r.c: Fix formatting.
1149 * elf32-m68hc11.c: Likewise.
1150 * elf32-m68hc12.c: Likewise.
1151 * elf32-m68k.c: Likewise.
1152 * elf32-mcore.c: Likewise.
1153 * elf32-pj.c: Likewise.
1154 * elf32-ppc.c: Likewise.
1156 2000-12-05 Kazu Hirata <kazu@hxi.com>
1158 * elf32-fr30.c: Fix formatting.
1159 * elf32-hppa.c: Likewise.
1160 * elf32-i370.c: Likewise.
1161 * elf32-i386.c: Likewise.
1162 * elf32-i860.c: Likewise.
1163 * elf32-i960.c: Likewise.
1165 2000-12-03 Kazu Hirata <kazu@hxi.com>
1167 * elf32-arm.h: Fix formatting.
1168 * elf32-avr.c: Likewise.
1169 * elf32-cris.c: Likewise.
1170 * elf32-d10v.c: Likewise.
1171 * elf32-d30v.c: Likewise.
1172 * elf-hppa.h: Likewise.
1173 * elf-m10200.c: Likewise.
1174 * elf-m10300.c: Likewise.
1176 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1178 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1179 bfd_mach_mips32_4k. Update FIXME comment.
1180 * archures.c (bfd_mach_mips32): New constant.
1181 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1182 the latter, renumber it.
1183 * bfd-in2.h (bfd_mach_mips32): New constant.
1184 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1185 the latter, renumber it.
1186 * cpu-mips.c (I_mips32): New constant.
1187 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1188 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1189 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1190 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1191 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1192 with E_MIPS_MACH_MIPS32_4K.
1193 (_bfd_mips_elf_final_write_processing): Replace
1194 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1195 bfd_mach_mips32 case.
1196 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1197 comparison with support for MIPS32.
1198 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1201 * aoutx.h (NAME(aout,machine_type)): Add cases for
1202 bfd_mach_mips5 and bfd_mach_mips64.
1203 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1204 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1205 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1206 (arch_info_struct): Add entries for bfd_mach_mips5 and
1208 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1209 _bfd_mips_elf_print_private_bfd_data): Add cases for
1210 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1211 (_bfd_mips_elf_final_write_processing): Add cases for
1212 bfd_mach_mips5 and bfd_mach_mips64.
1214 * aoutx.h (NAME(aout,machine_type)): Add a
1215 bfd_mach_mips_sb1 case.
1216 * archures.c (bfd_mach_mips_sb1): New constant.
1217 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1218 * cpu-mips.c (I_sb1): New constant.
1219 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1220 * elf32-mips.c (elf_mips_mach): Add case for
1222 (_bfd_mips_elf_final_write_processing): Add case for
1225 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1227 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1228 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1229 (sparc*-*-rtems*): Switched from a.out to ELF.
1231 2000-11-30 Jan Hubicka <jh@suse.cz>
1233 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1234 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1235 (elf64-x86-64.lo): Add dependencies.
1236 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1237 bfd_mach_x86_64_intel_syntax.
1238 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1239 * config.bfd (x86_64): Add.
1240 * configure.in: Add support for bfd_elf64_x86_64_vec.
1241 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1242 (bfd_i386_arch, i8086_ar): Link in.
1243 * elf64-x86-64.c: New file.
1244 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1245 * targets.c (bfd_elf64_x86_64_vec): Add.
1246 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1248 2000-11-30 Kazu Hirata <kazu@hxi.com>
1250 * xcofflink.c: Fix formatting.
1252 2000-11-28 Kazu Hirata <kazu@hxi.com>
1254 * aoutx.h: Fix formatting.
1255 * bfd-in.h: Likewise.
1256 * bfd-in2.h: Likewise.
1257 * cache.c: Likewise.
1258 * cisco-core.c: Likewise.
1259 * coff64-rs6000.c: Likewise.
1260 * coffcode.h: Likewise.
1261 * coffswap.h: Likewise.
1262 * corefile.c: Likewise.
1263 * elf32-mips.c: Likewise.
1265 2000-11-27 Kazu Hirata <kazu@hxi.com>
1267 * aout-adobe.c: Fix formatting.
1268 * coff64-rs6000.c: Likewise.
1269 * coffgen.c: Likewise.
1270 * cofflink.c: Likewise.
1272 2000-11-27 Philip Blundell <pb@futuretv.com>
1274 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1275 (obj_coff_strings_written): New accessor macro for above.
1276 * libcoff.h: Regenerate.
1277 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1279 * coffcode.h (coff_write_object_contents): No need to write out
1280 the string table if it's already been done.
1282 2000-11-22 Philip Blundell <pb@futuretv.com>
1284 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1285 weak undefined symbols.
1287 2000-11-24 Nick Clifton <nickc@redhat.com>
1289 * archures.c (bfd_mach_arm_5TE): Define.
1290 (bfd_mach_arm+XScale): Define.
1291 * bfd-in2.h: Regenerate.
1293 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1294 BFD_RELOC_ARM_PCREL_BLX.
1296 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1297 XScale machine numbers.
1299 * config.bfd (xscale-elf): Add target.
1300 (xscale-coff): Add target.
1302 * cpu-arm.c: Add xscale machine name.
1303 Add v5t, v5te and XScale machine numbers.
1305 2000-11-23 Kazu Hirata <kazu@hxi.com>
1307 * aix386-core.c: Fix formatting.
1309 2000-11-22 Jim Wilson <wilson@redhat.com>
1311 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1312 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1313 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1314 (ins_imms_scaled): Initialize sign_bit at function entry.
1315 (elf64_ia64_operands): Add missing initializers.
1316 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1317 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1318 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1319 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1320 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1322 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1323 and free_extsyms at function entry.
1324 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1325 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1326 (get_got): Delete unused local srel.
1327 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1328 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1330 2000-11-21 Kazu Hirata <kazu@hxi.com>
1332 * coff-a29k.c: Fix formatting.
1333 * coff-h8500.c: Likewise.
1334 * coff-i960.c: Likewise.
1335 * coff-ppc.c: Likewise.
1336 * coff-rs6000.c: Likewise.
1337 * coff-stgo32.c: Likewise.
1338 * coff-tic54x.c: Likewise.
1339 * coff-w65.c: Likewise.
1340 * cpu-h8500.c: Likewise.
1341 * cpu-hppa.c: Likewise.
1342 * cpu-ns32k.c: Likewise.
1343 * ecoff.c: Likewise.
1344 * ecofflink.c: Likewise.
1346 2000-11-21 Nick Clifton <nickc@redhat.com>
1348 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1349 remove possibility of infinite loop.
1351 2000-11-20 Kazu Hirata <kazu@hxi.com>
1353 * aix386-core.c: Fix formatting.
1354 * aout-adobe.c: Likewise.
1355 * aout-arm.c: Likewise.
1356 * aout-encap.c: Likewise.
1357 * aout-ns32k.c: Likewise.
1358 * aout-target.h: Likewise.
1359 * aout-tic30.c: Likewise.
1360 * aoutf1.h: Likewise.
1361 * aoutx.h: Likewise.
1362 * archive.c: Likewise.
1363 * bfd-in.h: Likewise.
1364 * bfd-in2.h: Likewise.
1368 2000-11-17 H.J. Lu <hjl@gnu.org>
1370 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1371 pltoff entries for DT_INIT and DT_FINI.
1372 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1373 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1376 2000-11-16 Richard Henderson <rth@redhat.com>
1378 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1379 (allocate_dynrel_entries): Likewise.
1380 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1381 (set_pltoff_entry): Likewise.
1382 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1383 (elfNN_ia64_reloc_type_lookup): Likewise.
1384 (elfNN_ia64_install_value): Likewise.
1385 (elfNN_ia64_relocate_section): Likewise.
1386 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1387 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1389 2000-11-16 Kazu Hirata <kazu@hxi.com>
1391 * cpu-a29k.c: Fix formatting.
1392 * cpu-alpha.c: Likewise.
1393 * cpu-arm.c: Likewise.
1394 * cpu-avr.c: Likewise.
1395 * cpu-d10v.c: Likewise.
1396 * cpu-h8500.c: Likewise.
1397 * cpu-hppa.c: Likewise.
1398 * cpu-i370.c: Likewise.
1399 * cpu-i386.c: Likewise.
1400 * cpu-i960.c: Likewise.
1401 * cpu-ia64-opc.c: Likewise.
1402 * cpu-ia64.c: Likewise.
1403 * cpu-m32r.c: Likewise.
1404 * cpu-m68hc11.c: Likewise.
1405 * cpu-m68hc12.c: Likewise.
1406 * cpu-m68k.c: Likewise.
1407 * cpu-m88k.c: Likewise.
1408 * cpu-mips.c: Likewise.
1409 * cpu-ns32k.c: Likewise.
1410 * cpu-pj.c: Likewise.
1411 * cpu-powerpc.c: Likewise.
1412 * cpu-sh.c: Likewise.
1413 * cpu-sparc.c: Likewise.
1414 * cpu-tic54x.c: Likewise.
1415 * cpu-v850.c: Likewise.
1416 * cpu-vax.c: Likewise.
1417 * cpu-w65.c: Likewise.
1418 * cpu-we32k.c: Likewise.
1419 * cpu-z8k.c: Likewise.
1420 * dwarf1.c: Likewise.
1421 * dwarf2.c: Likewise.
1423 2000-11-15 Kazu Hirata <kazu@hxi.com>
1425 * coff-arm.c: Fix formatting.
1426 * coff-ppc.c: Likewise.
1427 * coff-rs6000.c: Likewise.
1428 * coff-sh.c: Likewise.
1429 * coff-sparc.c: Likewise.
1430 * coff-tic30.c: Likewise.
1431 * coff-tic54x.c: Likewise.
1432 * coff-tic80.c: Likewise.
1433 * coff-w65.c: Likewise.
1434 * coff-we32k.c: Likewise.
1435 * coff-z8k.c: Likewise.
1437 2000-11-15 Richard Henderson <rth@redhat.com>
1439 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1440 section with the same ALLOC|LOAD flags as the source section.
1442 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1444 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1445 by STO_ALPHA constants.
1447 2000-11-14 Kazu Hirata <kazu@hxi.com>
1449 * coff-pmac.c: Fix formatting.
1450 * coff-ppc.c: Likewise.
1452 2000-11-13 H.J. Lu <hjl@gnu.org>
1454 * elflink.h (elf_link_add_object_symbols): Also add indirect
1455 symbols for common symbols with the default version.
1457 2000-11-09 Philip Blundell <pb@futuretv.com>
1459 * section.c (STD_SECTION): Set gc_mark flag.
1461 2000-11-11 Kazu Hirata <kazu@hxi.com>
1463 * coff-i960.c: Likewise.
1464 * coff-m68k.c: Likewise.
1465 * coff-m88k.c: Likewise.
1466 * coff-mcore.c: Likewise.
1467 * coff-mips.c: Likewise.
1469 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1471 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1473 2000-11-10 Kazu Hirata <kazu@hxi.com>
1475 * coff-h8300.c: Fix formatting.
1476 * coff-h8500.c: Likewise.
1477 * coff-i386.c: Likewise.
1478 * coff-i860.c: Likewise.
1479 * coff-i960.c: Likewise.
1480 * coff-ia64.c: Likewise.
1482 2000-11-09 Kazu Hirata <kazu@hxi.com>
1484 * archive.c: Fix formatting.
1485 * archures.c: Likewise.
1487 2000-11-07 Richard Henderson <rth@redhat.com>
1489 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1490 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1491 * section.c (bfd_set_section_contents): Call memcpy if
1492 section->contents set and location not equal to contents plus offset.
1494 2000-11-08 Kazu Hirata <kazu@hxi.com>
1496 * bfd-in.h: Fix formatting.
1497 * bfd-in2.h: Likewise.
1499 * binary.c: Likewise.
1501 * coff-a29k.c: Likewise.
1502 * coff-alpha.c: Likewise.
1503 * coff-apollo.c: Likewise.
1504 * coff-aux.c: Likewise.
1506 2000-11-07 Kazu Hirata <kazu@hxi.com>
1508 * aix386-core.c: Fix formatting.
1509 * aoutf1.h: Likewise.
1510 * aoutx.h: Likewise.
1511 * archures.c: Likewise.
1512 * armnetbsd.c: Likewise.
1514 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1516 * coff-h8300.c (special): Adjust reloc address.
1518 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1520 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1521 to differentiate elf32 and elf64 on ia64.
1522 * bfd-in2.h: Regenerate.
1523 * config.bfd: Add target for "ia64*-*-hpux*".
1524 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1525 * configure: Regenerate.
1526 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1527 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1529 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1530 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1531 * Makefile.in: Regnerate.
1532 * elf64-ia64.c: Deleted.
1533 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1535 2000-11-06 Kazu Hirata <kazu@hxi.com>
1537 * aout-adobe.c: Fix formatting.
1538 * aout-arm.c: Likewise.
1539 * aout-cris.c: Likewise.
1540 * aout-encap.c: Likewise.
1541 * aout-ns32k.c: Likewise.
1542 * aout-target.h: Likewise.
1543 * aout-tic30.c: Likewise.
1545 2000-11-05 Philip Blundell <philb@gnu.org>
1547 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1548 BFDs containing no sections to be merged, regardless of their flags.
1550 2000-11-04 Philip Blundell <philb@gnu.org>
1552 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1553 if a relocation for an undefined symbol also results in an
1556 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1558 * config.bfd: Add support for Sun Chorus.
1560 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1562 * configure.in: Recognize alpha-*-freebsd*.
1563 * configure: Regenerate.
1565 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1567 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1568 (Chunk): New global variable set by a parameter in objcopy.c.
1569 (S3Forced): New global variable set by a parameter in
1571 (srec_set_section_contents): If S3Forced is true, always generate
1573 (srec_write_section): Use 'Chunk' to limit maximum length of S
1576 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1578 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1579 * Makefile.in: Regenerate.
1580 * bfd-in2.h: Regenerate.
1581 * po/bfd.pot: Regenerate.
1583 2000-10-31 Philip Blundell <philb@gnu.org>
1585 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1586 EF_SOFT_FLOAT if it is defined.
1588 2000-10-27 Philip Blundell <philb@gnu.org>
1590 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1591 attempts to mix PIC code with non-PIC, just mark the output as
1592 being position dependent.
1593 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1594 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1595 all mismatches, not just the first one.
1597 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1599 * ieee.c (ieee_archive_p): Plug one of many possible
1600 memory leaks in error handling.
1602 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1604 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1605 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1607 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1608 sparc64_elf_object_p): Support v9b.
1609 * archures.c: Declare v8plusb and v9b machines.
1611 * cpu-sparc.c: Ditto.
1613 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1615 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1618 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1619 (SYMBOL_CALLS_LOCAL): New macro.
1620 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1621 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1622 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1623 (ppc_elf_relocate_section): Use flag variable to determine
1624 whether the relocation refers to a local symbol.
1625 Test whether a PLTREL24 reloc will produce a reloc by looking
1626 to see whether a PLT entry was made.
1628 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1630 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1631 entries that could serve as a definition for a weak symbol.
1633 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1635 From Ralf Baechle <ralf@gnu.org>
1637 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1638 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1639 against local symbols.
1640 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1642 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1644 * section.c (struct sec): Add kept_section.
1645 (struct bfd_comdat_info): Remove sec, we can use above.
1646 (STD_SECTION): Add initializer.
1647 (bfd_make_section_anyway): Init here too.
1649 * bfd-in2.h: Regenerate.
1651 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1653 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1654 fudge values for discarded link-once section symbols.
1656 * elf64-hppa.c: Include alloca-conf.h
1658 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1660 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1662 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1664 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1666 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1668 2000-10-10 Tom Rix <trix@redhat.com>
1670 * section.c (bfd_make_section_anyway): Release newsect ptr when
1671 newsect->symbol fails to alloc. Use bfd_release instead of free.
1673 2000-10-09 Richard Henderson <rth@cygnus.com
1675 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1676 (elf64_ia64_unwind_entry_compare): New.
1677 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1679 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1681 * elflink.h (size_dynamic_sections): Don't create various tags if
1682 .dynstr is excluded from the link. Don't set first dynsym entry
1683 if dynsymcount is zero.
1684 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1685 .dynsym excluded from the link. Don't try to write any dynamic
1686 sections excluded from the link.
1688 * elf.c (swap_out_syms): Handle global section symbols.
1690 2000-10-05 DJ Delorie <dj@redhat.com>
1692 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1693 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1694 (coff_write_relocs): write extended reloc count
1695 (coff_write_object_contents): account for extended relocs
1697 2000-10-05 Jim Wilson <wilson@cygnus.com>
1699 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1701 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1702 elf_backend_section_flags function.
1703 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1705 (elf64_ia64_section_flags): New function containing flag conversion
1707 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1708 * elfxx-target.h (elf_backend_section_flags): Define.
1709 (elfNN_bed): Initialize elf_backend_section_flags field.
1711 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1713 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1714 _bfd_elf32_gc_record_vtable. Correct a comment.
1716 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1718 From Ralf Baechle <ralf@gnu.org>
1720 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1721 produces binaries with got[1] = 0x80000001 to differenciate them
1722 for the dynamic linker from the broken binaries produced by old
1725 2000-09-30 Petr Sorfa <petrs@sco.com>
1727 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1728 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1729 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1730 * configure: Regenerate.
1732 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1734 Define two bfd_targets for absence and presence of leading
1735 underscore on symbols. Make sure to only link same kind.
1736 * elf32-cris.c (cris_elf_object_p,
1737 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1738 cris_elf_merge_private_bfd_data): New.
1739 (elf_backend_object_p, elf_backend_final_write_processing,
1740 bfd_elf32_bfd_print_private_bfd_data,
1741 bfd_elf32_bfd_merge_private_bfd_data): Define.
1742 <Target vector definition>: Include elf32-target.h twice with
1743 different macro settings:
1744 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1745 bfd_elf32_us_cris_vec.
1746 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1747 (elf_symbol_leading_char): First as 0, then '_'.
1748 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1749 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1750 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1751 * configure: Regenerate.
1752 * targets.c: Declare bfd_elf32_us_cris_vec.
1753 * po/bfd.pot: Regenerate.
1755 2000-09-29 Momchil Velikov <velco@fadata.bg>
1757 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1758 R_ARM_THM_PC22 relocations.
1760 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1762 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1764 2000-09-29 Momchil Velikov <velco@fadata.bg>
1766 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1767 is has the SEC_HAS_CONTENTS flag set.
1769 2000-09-28 Örjan Friberg <orjanf@axis.com>
1770 Hans-Peter Nilsson <hp@axis.com>
1772 * aout-cris.c (N_TXTADDR): Define.
1774 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1776 * som.c: Include alloca-conf.h.
1777 * Makefile.am: "make dep-am"
1778 * Makefile.in: Regenerate.
1780 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1782 * elf32-hppa.c (plt_stub): New.
1783 (PLT_STUB_ENTRY): Define.
1784 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1785 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1786 (elf32_hppa_link_hash_table_create): Init to suit.
1787 (elf32_hppa_check_relocs): Set has_12bit_branch and
1788 has_17bit_branch as appropriate.
1789 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1790 non-local functions.
1791 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1792 Add space for plt_stub as needed.
1793 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1794 functions at plt_stub.
1795 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1796 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1798 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1799 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1800 of fixed size, and if negative, disable handling of input sections
1801 before stub section. Set up default stub group size depending
1802 on detected branch relocs.
1803 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1804 ensure different offsets from sym_value aren't rounded to
1805 different 2k blocks. Use lrsel and rrsel for other stubs too for
1806 consistency rather than necessity.
1807 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1808 (final_link_relocate): Likewise.
1809 (elf32_hppa_relocate_section): Likewise.
1811 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1812 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1813 (elf_hppa_final_link_relocate): Handle them.
1814 (elf_hppa_relocate_insn): Likewise.
1815 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1817 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1819 * elfcode.h (elf_object_p): Preserve and clear abfd section
1820 information. Restore at error.
1822 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1824 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1825 is empty, make sure that its rva also 0. NT loader dislikes
1828 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1830 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1833 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1835 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1836 currently unused RELATIVE_DYNAMIC_RELOCS code.
1837 (hppa_discard_copies): Likewise.
1838 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1839 comments. Don't check non-code output sections for stub grouping.
1841 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1843 * section.c (bfd_get_unique_section_name): Return NULL if
1846 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1848 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1849 instruction sequence to actually work.
1850 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1853 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1855 * elf32-sh.c (sh_elf_relocate_section): Use
1856 _bfd_final_link_relocate to apply the relocation against a section
1857 symbol, when doing relocatable links.
1859 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1861 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1863 (stub_hash_newfunc): Here too.
1864 (hppa_add_stub): And here.
1865 (elf32_hppa_link_hash_table): Remove stub_section_created,
1866 reloc_section_created, first_init_sec and first_fini_sec. Add
1868 (elf32_hppa_link_hash_table_create): Init to suit.
1869 (hppa_get_stub_entry): Add support for grouping stub sections.
1870 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1871 section code. Index stub vars by section->id.
1872 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1873 exit paths. Zap allocation of above removed vars. Refine
1876 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1877 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1878 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1879 rather than pointer to bfd_link_info.
1880 (hppa_add_stub): Likewise.
1881 (final_link_relocate): Likewise.
1883 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1885 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1888 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1890 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1891 ld/emulparams/shelf.sh.
1893 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1895 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1896 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1897 * bfd-in2.h: Regenerate.
1899 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1901 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1902 LITUSE relocations incorrectly if -relax is specified on the ld
1903 command line and the displacement field of the load or store
1904 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1906 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1908 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1909 first_fini_sec here.
1910 (elf32_hppa_size_stubs): Instead correctly find the first .init
1911 and .fini section here.
1913 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1915 * elf32-hppa.c (clobber_millicode_symbols): New function.
1916 (elf32_hppa_size_dynamic_sections): Call it.
1918 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1920 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1921 packed. Add plabel, plt_abs packed booleans.
1922 (hppa_link_hash_newfunc): Init new fields.
1923 (PLABEL_PLT_ENTRY_SIZE): Define.
1924 (hppa_stub_name): Use size_t len vars.
1925 (hppa_add_stub): Likewise.
1926 (elf32_hppa_build_stubs): Likewise.
1927 (hppa_build_one_stub): Kill some compiler warnings.
1928 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1929 if dynamic linking. Munge the local plt offsets into
1930 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1931 size_t len vars. Add assert for plabel addend.
1932 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1933 (elf32_hppa_hide_symbol): New function.
1934 (elf_backend_hide_symbol): Define.
1935 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1936 with h->plabel set. Don't make plt entries to have dynamic syms
1937 when they have been forced local. If plt entry is used by a
1938 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1939 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1940 Set up .plt offsets for local syms.
1941 (elf32_hppa_relocate_section): Initialise plt entries for local
1942 syms. Leave weak undefined plabels zero. Make global plabel
1943 relocs against function symbol, and leave the addend zero.
1944 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1945 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1946 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1947 relocs instead of SEGREL32 for dynamic got relocs.
1948 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1949 (elf_backend_got_header_size): Adjust.
1950 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1952 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1953 (hppa_type_of_stub): Use it instead of #if 0
1954 (hppa_discard_copies): Use it here too.
1955 (elf32_hppa_size_dynamic_sections): And here.
1957 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1958 (elf32_hppa_link_hash_table_create): And here.
1959 (hppa_build_one_stub): And here. Instead keep track of stub
1960 offset using _raw_size.
1961 (elf32_hppa_size_stubs): Likewise.
1962 (elf32_hppa_build_stubs): Likewise.
1963 (hppa_size_one_stub): Likewise. Resize reloc section too.
1965 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1966 first_fini_sec handling. Don't search for reloc section or set
1967 hplink->reloc_section_created here.
1968 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1969 set reloc_section_created here.
1970 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1971 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1973 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1975 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1976 with `hplink->root.'.
1977 (elf32_hppa_check_relocs): Likewise.
1978 (elf32_hppa_gc_sweep_hook): Likewise.
1979 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1980 (hppa_handle_PIC_calls): Likewise.
1981 (elf32_hppa_size_dynamic_sections): Likewise.
1982 (elf32_hppa_set_gp): Likewise.
1983 (elf32_hppa_relocate_section): Likewise.
1984 (elf32_hppa_finish_dynamic_symbol): Likewise.
1985 (elf32_hppa_finish_dynamic_sections): Likewise.
1987 From David Huggins-Daines <dhd@linuxcare.com>
1988 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1989 defined weak symbols in shared links.
1990 (final_link_relocate): Calls to defined weak symbols in shared
1991 objects must go via import stubs, as the target might not be known
1994 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1996 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1997 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1998 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1999 the original entries with EMPTY_HOWTOs, and added new ones to fill
2001 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2002 (sh_elf_relocate_section): Likewise.
2004 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2006 * cpu-mips.c (arch_info_struct): Add mips:4K
2007 * bfd-in2.h (bfd_mach_mips4K): New define.
2008 * archures.c: Add bfd_mach_mips4K to comment.
2009 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2010 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2012 2000-09-13 Marco Franzen <marcof@thyron.com>
2014 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2015 use size_t as a counter.
2016 (som_write_space_strings): Similarly.
2018 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2020 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2022 (elf32_i860_relocate_section): Invoke new function from here.
2024 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2026 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2029 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2031 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2032 target section name instead of dumping core when the target symbol is
2035 2000-09-09 Kazu Hirata <kazu@hxi.com>
2037 * riscix.c: Remove DEFUN.
2039 2000-09-08 Nick Clifton <nickc@redhat.com>
2041 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2042 initialise flags in output bfd if the input bfd is the default
2043 architecture with the default flags.
2045 2000-09-08 Kazu Hirata <kazu@hxi.com>
2047 * archive.c: Fix formatting.
2048 * coff-arm.c: Likewise.
2049 * doc/chew.c: Likewise.
2051 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2053 * section.c (bfd_get_unique_section_name): Put a dot before the
2056 2000-09-07 Kazu Hirata <kazu@hxi.com>
2058 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2059 * elf.c: Fix formatting.
2061 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2063 * config.bfd (sh-*-linux*): Added.
2064 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2065 * targets.c: Declare them.
2066 * elf32-sh-lin.c: New file.
2067 * Makefile.am: Compile it.
2068 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2069 * configure, Makefile.in: Rebuilt.
2071 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2073 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2074 pseduo-section when determining where the TOC ends.
2076 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2077 output x_tvndx as it is only two bytes wide.
2079 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2080 reloc is 26 or 32 bits wide.
2082 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2083 for relocs that don't change anything. Also look at the full
2086 2000-09-06 Philip Blundell <philb@gnu.org>
2088 * config.bfd (arm*-*-uclinux*): New target.
2090 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2092 * configure: Rebuilt with new libtool.m4.
2094 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2096 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2097 word for variable name.
2098 * bfd-in2.h: Regenerate.
2100 2000-09-05 Nick Clifton <nickc@redhat.com>
2102 * config.in: Regenerate.
2103 * libbfd.h: Regenerate.
2104 * po/bfd.pot: Regenerate.
2105 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2108 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2110 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2112 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2114 Shared library and PIC support.
2115 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2116 (GOT_ENTRY_SIZE): New.
2117 (ELF_DYNAMIC_INTERPRETER): New.
2118 (STUB_SUFFIX): Define.
2119 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2120 (RELATIVE_DYNAMIC_RELOCS): Define.
2121 (enum elf32_hppa_stub_type): New.
2122 (struct elf32_hppa_stub_hash_entry): Rename offset to
2123 stub_offset. Add a number of new fields.
2124 (struct elf32_hppa_link_hash_entry): New.
2125 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2127 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2128 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2129 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2131 (hppa_link_hash_newfunc): New function.
2132 (elf32_hppa_link_hash_table_create): Use above function. Init new
2134 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2135 instead of addend, and remove sym_name from args. Don't use
2136 symbol name for local syms, instead use sym index.
2137 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2138 stub type rather than size. Pass in hash and handle import stub
2139 case. Also pass in reloc instead of offset so we can calculate
2140 PCREL22F and PCREL12F branches properly.
2141 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2142 import and export stubs too.
2143 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2144 import and export stub sizing.
2145 (elf32_hppa_check_relocs): New function.
2146 (elf32_hppa_adjust_dynamic_symbol): New function.
2147 (hppa_discard_copies): New function.
2148 (elf32_hppa_size_dynamic_sections): New function.
2149 (elf_backend_size_dynamic_sections): Define.
2150 (elf32_hppa_finish_dynamic_symbol): New function.
2151 (elf_backend_finish_dynamic_symbol): Define.
2152 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2153 some local vars into the link hash table too. For shared links,
2154 trundle over function syms, generating export stubs. Handle
2155 PCREL22F branches. Break out stub creation code from here..
2156 (hppa_add_stub): .. to here. New function.
2157 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2158 call the bfd linker. Use elf_gp to record global pointer.
2159 Calculate a value from sections if $global$ is missing.
2160 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2161 (elf32_hppa_gc_mark_hook): New function.
2162 (elf_backend_gc_mark_hook): Define.
2163 (elf32_hppa_gc_sweep_hook): New function.
2164 (elf_backend_gc_sweep_hook): Define.
2165 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2166 Add rel to args, and remove howto, input_bfd, offset, addend,
2167 sym_name as we can recalculate these locally. Handle calls to
2168 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2169 handling of undefined weak syms. Check that stubs are in range.
2170 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2171 message on hitting a DPREL21L reloc that needs fixing. Subtract
2172 off PC for PCREL14F. Break out code that does a stub lookup from
2174 (hppa_get_stub_entry): ..to here. New function.
2175 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2176 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2178 (elf32_hppa_finish_dynamic_sections): New function.
2179 (elf_backend_finish_dynamic_sections): Define.
2180 (elf_backend_final_write_processing) Define.
2181 (hppa_handle_PIC_calls): New function.
2182 (elf32_hppa_build_stubs): Call it. Pass link_info to
2183 hppa_build_one_stub.
2184 (elf32_hppa_create_dynamic_sections): New function
2185 to create .plt and .got then set .plt flags correctly.
2186 (elf_backend_create_dynamic_sections): Define.
2187 (elf32_hppa_object_p): New function.
2188 (elf_backend_object_p): Define.
2189 (elf32_hppa_elf_get_symbol_type): New function.
2190 (elf_backend_get_symbol_type): Define.
2191 (elf_backend_can_gc_sections): Define.
2192 (elf_backend_want_got_plt): Define.
2193 (elf_backend_plt_alignment): Set to 2.
2194 (elf_backend_plt_readonly): Define.
2195 (elf_backend_want_plt_sym): Define.
2196 (elf_backend_got_header_size): Reserve one entry.
2198 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2199 (elf32_hppa_size_stubs): Pass in multi_subspace.
2200 (elf32_hppa_set_gp): Declare.
2202 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2203 (bfd_get_unique_section_name): New function.
2204 * bfd-in2.h: Regenerate.
2206 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2207 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2210 From David Huggins-Daines <dhd@linuxcare.com>
2211 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2212 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2213 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2214 been updated in finish_dynamic_symbol before modifying function
2217 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2218 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2219 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2220 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2221 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2222 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2223 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2224 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2226 From David Huggins-Daines <dhd@linuxcare.com>
2227 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2228 style of local labels as well.
2230 2000-09-03 Philip Blundell <philb@gnu.org>
2232 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2233 references to undefined symbols in debugging sections.
2235 2000-09-02 H.J. Lu <hjl@gnu.org>
2237 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2238 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2239 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2242 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2244 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2245 (elf32_i860_is_local_label_name): New function and prototype.
2247 2000-09-02 Nick Clifton <nickc@redhat.com>
2249 * configure.in: Increase version number to 2.10.91.
2250 * configure: Regenerate.
2251 * aclocal.m4: Regenerate.
2252 * config.in: Regenerate.
2253 * po/bfd.pot: Regenerate.
2255 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2257 * elf.c (_bfd_elf_make_section_from_shdr): Add
2258 .gnu.linkobce.wi. to the list of debug section names.
2260 2000-09-02 Nick Clifton <nickc@redhat.com>
2262 * dwarf2.c (find_debug_info): New function: Locate a section
2263 containing dwarf2 debug information.
2264 (bfd_dwarf2_find_nearest_line): Find all sections containing
2265 debug information and include them in the stash.
2267 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2269 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2270 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2271 (sh_reloc_map): Add new relocs.
2272 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2273 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2274 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2275 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2277 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2278 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2279 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2280 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2281 New array constants.
2282 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2284 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2285 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2286 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2287 elf_sh_plt_reloc_offset): Define.
2288 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2289 elf_sh_link_hash_table): New structs.
2290 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2291 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2293 (elf_backend_create_dynamic_sections,
2294 bfd_elf32_bfd_link_hash_table_create,
2295 elf_backend_adjust_dynamic_symbol,
2296 elf_backend_size_dynamic_sections,
2297 elf_backend_finish_dynamic_symbol,
2298 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2299 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2300 elf_backend_got_header_size, elf_backend_plt_header_size):
2302 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2303 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2305 * bfd-in2.h, libbfd.h: Rebuilt.
2307 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2309 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2312 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2314 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2315 not initialized, set them to indicate the SH1 instruction set.
2317 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2319 * acinclude.m4: Include libtool and gettext macros from the
2321 * aclocal.m4, configure: Rebuilt.
2323 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2325 * elf.c: Eliminate references to __sparcv9 macro; replace with
2326 autoconf variables HAVE_PSINFO32_T etc.
2327 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2328 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2330 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2331 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2332 * aclocal.m4: Ditto.
2333 * configure: Regenerate.
2335 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2337 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2338 for any shared link, not just shared -Bsymbolic.
2339 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2340 any shared link, and pass link info to it.
2341 (elf_i386_size_dynamic_sections): Update comment.
2342 (elf_i386_discard_copies): Modify to discard relocs for symbols
2343 that have been forced local.
2344 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2345 that have been forced local.
2347 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2349 * elflink.h (elf_link_add_object_symbols): Allow common
2350 symbols to have an alignment of 1 if explicitly requested, and
2351 not overridden by other definitions.
2353 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2355 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2356 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2358 2000-08-22 H.J. Lu <hjl@gnu.org>
2360 * elf-bfd.h (elf_link_hash_table): Add runpath.
2362 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2363 * bfd-in2.h: Rebuilt.
2365 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2366 "runpath" field to NULL.
2367 (bfd_elf_get_runpath_list): New function.
2369 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2372 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2374 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2375 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2376 explicitly. Improve validation of r_type.
2378 2000-08-21 H.J. Lu <hjl@gnu.org>
2380 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2381 dynamic allocated content space. Add a comment to remind us that
2382 one day this ought to be fixed.
2383 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2384 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2385 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2387 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2389 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2390 field with the newly relocated value instead of adding it to the
2391 existing immediate field.
2392 (elf32_i860_relocate_splitn): Likewise.
2393 (elf32_i860_relocate_highadj): Likewise.
2395 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2397 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2398 was previously just a stub).
2400 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2402 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2404 (_bfd_elf_create_dynamic_sections): Likewise.
2406 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2408 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2409 for undefined symbols to be the beginning of the section.
2411 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2412 four extra entries at the beginning of the .rela.plt section.
2413 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2414 section to account for the four reserved entries in the .plt section.
2416 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2418 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2419 to the list of NOPs we recognize after a branch-and-link.
2420 Use the ori NOP when one is needed.
2422 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2425 2000-08-14 Jim Wilson <wilson@cygnus.com>
2427 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2428 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2429 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2432 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2434 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2436 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2438 * elf32-i860.c (elf32_i860_relocate_section): New function.
2439 (i860_final_link_relocate): New function.
2440 (elf32_i860_relocate_splitn): New function.
2441 (elf32_i860_relocate_pc16): New function.
2442 (elf32_i860_relocate_highadj): New function.
2443 (elf32_i860_howto): Minor adjustments to some relocations.
2444 (elf_info_to_howto_rel): Define.
2445 (elf_backend_relocate_section): Define.
2447 2000-08-10 Nick Clifton <nickc@cygnus.com>
2449 * elf32-arm.h: Fix formatting.
2451 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2453 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2455 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2457 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2459 2000-08-07 Kazu Hirata <kazu@hxi.com>
2461 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2462 * elf64-ia64.c: Fix a typo.
2464 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2466 * elf32-i860.c (elf32_i860_howto_table): New structure.
2467 (lookup_howto): New function.
2468 (elf32_i860_reloc_type_lookup): New function.
2469 (elf32_i860_info_to_howto_rela): New function.
2470 (elf_code_to_howto_index): New structure.
2471 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2472 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2473 elf32_i860_reloc_type_lookup.
2475 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2477 * som.c (struct fixup_format): Constify `format'.
2478 (som_hppa_howto_table): Use SOM_HOWTO macro.
2479 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2480 (som_bfd_reloc_type_lookup): Likewise.
2481 (compare_subspaces): Remove unused `count1', `count2'.
2482 (som_begin_writing): Remove unused `total_reloc_size'.
2483 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2484 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2485 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2486 (som_find_nearest_line): Decorate unused parameter(s).
2487 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2488 (som_bfd_link_split_section): Likewise.
2490 2000-08-03 Nick Clifton <nickc@cygnus.com>
2492 * section.c: Restore backed out code.
2493 * elf.c: Restore backed out code.
2494 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2495 binaries from working.
2496 * bfd-in2.h: Regenerate.
2498 2000-08-03 H.J. Lu <hjl@gnu.org>
2500 * section.c: Back out the change made by Nick Clifton
2501 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2503 * bfd-in2.h: Likewise.
2506 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2508 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2510 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2512 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2513 * bfd-in2.h, libbfd.h: Regenerate.
2515 2000-07-31 Nick Clifton <nickc@cygnus.com>
2517 * section.c (struct sec): Add new boolean field 'segment_mark'.
2518 (STD_SECTION): Initialise new field to zero.
2520 * bfd-in2.h: Regenerate.
2522 * elf.c (copy_private_bfd_data): Reorganise section to segment
2523 mapping to cope with moved sections requiring new segments,
2524 and overlapping segments.
2525 (SEGMENT_END): New macro: Return the end address of a segment.
2526 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2527 contains a section by comparing their VMA addresses.
2528 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2529 contains a section by comparing their LMA addresses.
2530 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2531 section should be included in a segment.
2532 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2533 follows another in memory.
2534 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2537 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2539 * cpu-i860.c: Added comments.
2541 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2542 bfd_elf32_i860_little_vec.
2543 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2544 (ELF_MAXPAGESIZE): Changed to 4096.
2546 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2548 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2550 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2551 config for little endian elf32 i860.
2552 (targ_defvec): Define for the new config above
2553 as "bfd_elf32_i860_little_vec".
2554 (targ_selvecs): Define for the new config above
2555 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2557 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2560 * configure: Regenerated.
2562 2000-07-27 H.J. Lu <hjl@gnu.org>
2564 * elflink.h (elf_merge_symbol): Take one more argument,
2565 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2566 entry. Don't overide the existing weak definition if dt_needed
2568 (elf_link_add_object_symbols): Pass dt_needed to
2569 elf_merge_symbol ().
2571 2000-07-27 Nick Clifton <nickc@cygnus.com>
2573 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2576 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2578 * configure.host (*-*-aix*): AIX has 'long long' always.
2580 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2581 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2582 (xcoff_write_archive_contents_big): Don't update the offset
2583 of the symbol table, xcoff_write_armap will do it.
2585 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2587 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2588 of dynobj for SGI_COMPAT checks.
2590 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2592 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2593 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2594 * bfd-in2.h: Regenerate.
2596 2000-07-21 Nick Clifton <nickc@cygnus.com>
2598 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2599 range symbol indices in relocs and issue an error message.
2601 2000-07-20 H.J. Lu <hjl@gnu.org>
2603 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2604 info->new_dtags when setting DT_FLAGS_1. It will only be set
2605 by the new linker options. It shouldn't break anything.
2607 2000-07-20 H.J. Lu <hjl@gnu.org>
2609 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2610 only if info->new_dtags is true.
2612 2000-07-20 H.J. Lu <hjl@gnu.org>
2614 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2615 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2617 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2619 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2620 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2621 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2622 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2623 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2624 * Makefile.in: Rebuild.
2625 * aclocal.m4: Rebuild.
2626 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2627 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2628 (bfd_cris_arch): Declare.
2629 (bfd_archures_list): Add bfd_cris_arch.
2630 * bfd-in2.h: Rebuild.
2631 * config.bfd: (cris-*-*): New target.
2632 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2633 * configure: Rebuild.
2634 * elf.c (prep_headers): Add bfd_arch_cris.
2635 * libbfd.h: Rebuild.
2636 * libaout.h (enum machine_type): Add M_CRIS.
2637 * reloc.c: Add CRIS relocations.
2638 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2639 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2640 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2641 * po/POTFILES.in, po/bfd.pot: Regenerate.
2643 2000-07-19 H.J. Lu <hjl@gnu.org>
2645 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2646 DF_TEXTREL if DT_TEXTREL is set.
2647 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2648 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2649 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2650 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2651 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2652 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2653 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2654 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2655 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2656 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2658 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2659 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2661 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2663 2000-07-19 H.J. Lu <hjl@gnu.org>
2665 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2666 * bfd-in2.h: Rebuild.
2668 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2669 (elf_dt_soname): New.
2671 * elf.c (bfd_elf_set_dt_needed_soname): New.
2673 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2674 entry if the shared object loaded by DT_NEEDED is used to
2675 resolve the reference in a regular object.
2677 2000-07-19 H.J. Lu <hjl@gnu.org>
2679 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2680 DT_DEPAUDIT and DT_AUDIT as strings.
2682 2000-07-19 Nick Clifton <nickc@cygnus.com>
2684 * format.c: Fix formatting.
2686 2000-07-19 H.J. Lu <hjl@gnu.org>
2688 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2690 2000-07-19 H.J. Lu <hjl@gnu.org>
2692 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2693 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2694 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2695 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2696 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2697 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2698 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2700 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2702 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2703 renamed functions from here...
2704 (assign_section_numbers): Use renamed functions.
2705 (prep_headers): Use renamed functions.
2707 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2708 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2709 * bfd-in2.h: Regenerate.
2711 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2713 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2714 parenthesis in if statement.
2716 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2718 Enable the support for Traditional MIPS.
2719 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2720 return ict_none appropriately for traditional mips targets.
2721 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2722 (STUB_MOVE): Conditionalize for traditonal mips.
2723 (STUB_LI16): Likewise.
2724 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2725 room for RTPROC header.
2726 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2727 the permission for the PT_DYNAMIC as read, write and execute.
2728 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2729 for traditonal mips.
2730 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2731 _DYNAMIC_LINKING for traditonal mips.
2732 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2733 in case of traditonal mips.
2734 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2735 entry is required. For a function if PLT is not required then set the
2736 corresponding hash table entry to 0.
2737 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2739 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2740 shared object set the value to 0.
2741 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2742 _DYNAMIC_LINKING for traditonal mips.
2743 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2744 for traditonal mips.
2746 2000-07-15 H.J. Lu <hjl@gnu.org>
2748 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2750 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2752 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2753 out a structure that is BFD_IN_MEMORY.
2755 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2757 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2758 bfd pointer. Print section id instead of bfd pointer for local
2759 syms. Prefix addend with `+' for global syms as well as local.
2760 Correct calculation of name component lengths.
2761 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2763 From David Huggins-Daines <dhd@linuxcare.com>
2764 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2765 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2766 (elf64_hppa_modify_segment_map): Likewise.
2768 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2770 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2771 addresses to be "naturally" sign extended. Return -1 if unknown.
2772 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2773 * bfd-in2.h: Regenerate.
2775 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2777 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2778 and ECOF_SIGNED_64 to list ways to extract an offset.
2779 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2780 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2782 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2783 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2785 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2787 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2788 bfd_get_start_address.
2789 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2790 (elf_swap_ehdr_out): Ditto.
2792 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2794 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2795 compatibility with older binutils.
2797 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2799 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2800 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2802 From Ryan Bradetich <rbradetich@uswest.net>
2803 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2804 (parse_line_table): Ditto.
2805 (_bfd_dwarf1_find_nearest_line): Ditto.
2806 * syms.c (cmpindexentry): Remove extra `*' from params.
2808 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2810 * elf32-mips.c (sort_dynamic_relocs): New Function.
2811 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2812 via qsort to sort the dynamic relocations in increasing r_symndx
2815 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2817 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2818 ATTRIBUTE_UNUSED to unused args.
2819 (get_opd): Likewise.
2820 (get_plt): Likewise.
2821 (get_dlt): Likewise.
2822 (get_stub): Likewise.
2823 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2824 (elf64_hppa_link_output_symbol_hook): Likewise.
2825 (elf64_hppa_check_relocs): Delete unused var.
2826 (elf64_hppa_size_dynamic_sections): Likewise.
2827 (elf64_hppa_finalize_opd): Likewise.
2828 (elf64_hppa_finalize_dynreloc): Likewise.
2829 (elf64_hppa_modify_segment_map): Likewise.
2830 (elf64_hppa_finish_dynamic_sections): Likewise.
2832 * elf-hppa.h (elf_hppa_final_write_processing): Add
2833 ATTRIBUTE_UNUSED to unused args.
2834 (elf_hppa_final_link_relocate): Likewise.
2835 (elf_hppa_record_segment_addrs): Add paretheses.
2836 (elf_hppa_relocate_section): Constify dyn_name.
2838 From David Huggins-Daines <dhd@linuxcare.com>
2839 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2840 rearrange case statement so that it gets preferred to 32-bit ones.
2842 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2843 asection->id instead of address of asection structure.
2844 (elf32_hppa_size_stubs): Likewise.
2846 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2847 for .init* and .fini*.
2849 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2850 and addends used in stub names to 32 bits.
2851 (elf32_hppa_size_stubs): Likewise.
2853 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2854 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2855 not bfd_put_64. Fix minor comment typo and formatting.
2857 Changes to create multiple linker stubs, positioned immediately
2858 before the section where they are required.
2859 * elf32-hppa.c: Don't include hppa_stubs.h.
2860 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2861 (elf32_hppa_stub_hash_table): Delete.
2862 (elf32_hppa_link_hash_entry): Delete.
2863 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2864 stub_hash_table, and store the struct here rather than a pointer.
2865 Delete output_symbol_count. Add offset array. Change
2866 global_value to a bfd_vma.
2867 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2868 (elf32_hppa_stub_hash_traverse): Delete.
2869 (elf32_hppa_name_of_stub): Delete.
2870 (elf32_hppa_link_hash_lookup): Delete.
2871 (elf32_hppa_link_hash_traverse): Delete.
2872 (elf32_hppa_stub_hash_table_init): Delete.
2873 (elf32_hppa_size_of_stub): Pass input section and offset rather
2874 than location and calculate location here. Don't pass name as all
2875 stubs are now the same size.
2876 (elf32_hppa_stub_hash_newfunc): Init new fields.
2877 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2879 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2880 comparing against ints. Rewrite stub handling code.
2881 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2882 Case enums to int before comparing against ints. Remove
2883 bfd_reloc_dangerous case.
2884 (elf32_hppa_build_one_stub): Rewrite.
2885 (elf32_hppa_size_one_stub): New function.
2886 (elf32_hppa_build_stubs): Rewrite.
2887 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2888 Rewrite stub-handling specific code.
2890 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2892 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2894 * hppa_stubs.h: Delete.
2895 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2896 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2897 * Makefile.in: Regenerate.
2899 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2902 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2904 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2905 and section name for bfd_reloc_notsupported error message.
2906 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2907 bfd_reloc_notsupported.
2908 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2910 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2911 undefined weak symbols for all relocs.
2912 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2913 offsets are relative to one past the delay slot.
2914 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2915 branch destination. Put addend into stub name too.
2916 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2917 adjust by 8 when deciding whether a linker stub is needed. Put
2918 addend into stub name as for above.
2920 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2921 various args and vars.
2922 (elf32_hppa_bfd_final_link_relocate): Here too.
2923 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2924 inner block var to avoid shadowing.
2926 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2928 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2929 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2930 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2932 * libhppa.h: Change practically all unsigned ints to plain ints.
2933 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2936 From Ryan Bradetich <rbradetich@uswest.net>
2937 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2938 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2940 From David Huggins-Daines <dhd@linuxcare.com>
2941 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2942 to the new OP_* ones.
2944 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2945 error exit. Bail out earlier on plabel relocs that we aren't
2946 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2947 string, and then don't free our copy.
2948 (elf32_hppa_build_one_stub): Make insn unsigned int.
2950 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2951 available with BL, not BE and BLE.
2953 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2954 code for elf arg relocs.
2955 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2956 argument with elf_link_hash_entry h. Handle undefined weak
2957 symbols. Move $global$ lookup from here...
2958 (elf32_hppa_relocate_section): ...to here. Return correct error
2959 message for non-handled relocs.
2960 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2961 wrong test was -0x3ffff to +0x40000.
2963 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2964 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2965 Handle them as such.
2966 (elf_hppa_relocate_insn): Fix a typo.
2968 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2969 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2970 assemble_17, assemble_21): Delete.
2971 Supply defines for all 64 possible opcodes.
2972 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2973 formats. Handle COMICLR.
2974 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2977 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2978 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2979 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2981 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2982 the local syms - did this code get deleted accidentally? Ignore
2983 undefined and undefweak syms.
2985 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2986 block. Use it instead of elf64_hppa_hash_table (info).
2987 (elf_hppa_final_link_relocate): Use hppa_info instead of
2988 elf64_hppa_hash_table (info).
2990 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2991 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2992 (hppa_rebuild_insn): Mask immediate bits here instead.
2993 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2995 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2997 * section.c (struct sec): Add id field. Tidy comment formatting.
2998 (bfd_make_section_anyway): Set id.
2999 (STD_SECTION): Init id too.
3000 Change CONST to const throughout.
3001 * archures.c (bfd_arch_info): Tidy comment.
3002 (bfd_arch_list): Change a CONST to const.
3003 * libbfd-in.h: Tidy comments and replace CONST with const.
3004 * elf-bfd.h: Likewise.
3005 * libbfd.h: Regenerate.
3006 * bfd-in2.h: Regenerate.
3007 * libcoff.h: Regenerate.
3009 2000-07-07 DJ Delorie <dj@redhat.com>
3011 * archive.c (_bfd_write_archive_contents): Add an informative
3014 2000-07-06 Kazu Hirata <kazu@hxi.com>
3016 * srec.c: Fix formatting.
3018 2000-06-05 DJ Delorie <dj@redhat.com>
3022 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3024 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3025 value of PC-relative offsets.
3027 2000-07-03 Jim Wilson <wilson@cygnus.com>
3029 * elf64-alpha.c (alpha_elf_size_info): New.
3030 (elf_backend_size_info): Define to alpha_elf_size_info.
3031 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3033 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3035 * elf32-mips.c: Include elf32-target.h again for the traditional
3038 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3040 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3041 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3042 (avr_info_to_howto_rela): Likewise.
3043 (elf32_avr_gc_mark_hook): Likewise.
3044 (elf32_avr_gc_sweep_hook): Likewise.
3045 (elf32_avr_relocate_section): Likewise.
3047 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3049 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3050 an external symbol for a non-shared, non-relocatable link.
3052 2000-07-03 Nick Clifton <nickc@redhat.com>
3054 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3055 is an external symbol.
3056 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3059 2000-07-03 Kazu Hirata <kazu@hxi.com>
3061 * reloc16.c: Fix formatting.
3063 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3065 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3066 to add a new target for traditional mips i.e
3067 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3068 * configure.in: Likewise.
3069 * configure: Rebuild.
3070 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3072 (bfd_elf32_tradlittlemips_vec): Likewise.
3073 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3074 to see that elfNN_bed does not get redefined even if the target file
3075 is included twice for a chip. See elf32-mips.c.
3077 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3079 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3080 (CLEANFILES): Add DEPA.
3081 * Makefile.in: Regenerate.
3083 2000-06-30 DJ Delorie <dj@cygnus.com>
3085 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3086 can't assume the PE header is at 0x80.
3088 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3090 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3092 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3094 * go32stub.h: Update stub.
3096 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3098 * archures.c (bfd_mach_avr5): Define.
3099 * bfd-in2.h (bfd_mach_avr5): Define.
3100 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3101 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3102 (compatible): Update comment. Add missing test.
3103 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3104 for avr2 and avr4. Simplify 8K wrap code.
3105 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3106 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3108 2000-06-26 Kazu Hirata <kazu@hxi.com>
3110 * coff-h8300.c: Fix formatting.
3111 * cpu-h8300.c: Likewise.
3113 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3115 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3116 for local symbols whose names are unknown.
3118 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3120 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3122 * Makefile.in: Regenerate.
3123 * doc/Makefile.in: Regenerate.
3125 2000-06-20 H.J. Lu <hjl@gnu.org>
3127 * Makefile.am: Rebuild dependency.
3128 * Makefile.in: Rebuild.
3130 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3132 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3133 (elf_backend_copy_indirect_symbol): Map to the new function.
3135 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3137 * archive.c (normalize): Correct pointer comparison when checking
3139 (bfd_bsd_truncate_arname): Likewise.
3140 (bfd_gnu_truncate_arname): Likewise.
3142 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3144 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3145 sections elf_{text,data}_{section,symbol}.
3146 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3147 (_bfd_mips_elf_hide_symbol): New function.
3148 (elf_backend_hide_symbol): Map to the new function.
3149 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3150 definitions of mips_elf_{text,data}_{section,symbol}.
3151 (mips_elf_local_relocation_p): Try to find the direct symbol
3152 based on new check_forced argument.
3153 (mips_elf_calculate_relocation): Use new version of
3154 mips_elf_local_relocation_p.
3155 (mips_elf_relocate_section): Likewise.
3156 (_bfd_mips_elf_relocate_section): Likewise.
3157 (mips_elf_sort_hash_table): Only assert that have enough GOT
3159 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3160 entry if the relocation based on the new external argument.
3161 (mips_elf_create_dynamic_relocation): Assert that we have a
3162 section contents allocated where we can swap out the dynamic
3164 (mips_elf_calculate_relocation): Find the real hash-table entry
3165 correctly by using h->root.root.type. Only create a dynamic
3166 relocation entry if the symbol is defined in a shared library.
3167 Create an external GOT entry for the GOT16 relocation if the
3168 symbol was forced local.
3169 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3170 dynamic index if the symbol was forced local.
3172 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3174 * elf32-mips.c: Fix typos in comments.
3176 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3178 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3181 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3183 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3184 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3185 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3186 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3187 (bfd_elf32_m68hc11_vec): Likewise.
3188 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3189 Supports 68hc11 & 68hc12 at the same time.
3190 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3192 (bfd_elf32_m68hc11_vec): Likewise.
3193 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3194 * archures.c (bfd_m68hc12_arch): Define and register in global list
3195 (bfd_m68hc11_arch): Likewise.
3196 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3197 BFD_RELOC_M68HC11_3B): Define.
3198 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3199 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3201 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3203 * elf_bfd.h (struct elf_backend_data): Add info argument to
3204 elf_backend_hide_symbol.
3205 (_bfd_elf_link_hash_hide_symbol): Likewise.
3206 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3207 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3208 * elflink.h (elf_link_add_object_symbols): Likewise.
3209 (elf_link_assign_sym_version): Likewise.
3211 2000-06-18 H.J. Lu <hjl@gnu.org>
3213 * coff-i386.c (coff_i386_reloc): Don't return in case of
3214 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3215 Compensate PE relocations when linking with non-PE object
3216 files to generate a non-PE executable.
3218 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3220 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3221 GOT entries if we're doing a static link or -Bsymbolic link.
3223 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3225 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3226 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3228 (elf_link_output_relocs): Likewise.
3229 (elf_reloc_link_order): Likewise.
3231 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3233 * archures.c (enum bfd_architecture): #define constants for
3234 PowerPc and RS6000 machine numbers.
3235 * bfd-in2.h: Regenerate.
3236 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3237 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3238 and RS6000 machine numbers using #defined constants from
3240 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3241 machine numbers using #defined constants from archures.c. Add
3242 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3243 64-bit words in 620 entry.
3244 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3246 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3248 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3250 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3251 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3252 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3254 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3256 * bfd-in.h (bfd_family_coff): Define.
3257 * bfd-in2.h: Regenerate.
3258 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3259 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3260 instead of bfd_target_coff_flavour.
3261 * cofflink.c (_bfd_coff_final_link): Likewise.
3262 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3263 exclude XCOFF files.
3264 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3266 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3267 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3268 * xcofflink.c (XCOFF_XVECP): Delete.
3269 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3270 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3271 bfd_xcoff_record_link_assignment,
3272 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3273 check for bfd_target_xcoff_flavour.
3275 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3277 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3279 (read_hdr): New function.
3280 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3281 of trying to extract individual registers. Set abfd->arch_info
3282 to match the architecture that created the core file.
3283 (rs6000coff_get_section_contents): Delete.
3284 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3286 2000-06-14 H.J. Lu <hjl@gnu.org>
3288 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3291 2000-06-13 H.J. Lu <hjl@gnu.org>
3293 * configure: Regenerate.
3295 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3297 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3300 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3302 * configure.in (VERSION): Update to show this is the CVS mainline.
3304 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3306 * elf32-d10v.c: Include elf/d10v.h
3307 (enum reloc_type): Delete.
3308 * elf32-d30v.c: Include elf/d30v.h
3309 (enum reloc_type): Delete.
3311 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3312 * Makefile.in: Regenerate.
3314 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3315 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3316 move HOWTOs into elf_howto_table.
3317 (R_386_standard, R_386_ext_offset): Define.
3318 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3319 (elf_i386_reloc_type_lookup): Modify calculation of index into
3320 elf_howto_table since we've removed the padding.
3321 (elf_i386_info_to_howto_rel): Likewise.
3322 (elf_i386_relocate_section): Likewise.
3324 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3326 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3328 2000-06-05 H.J. Lu <hjl@gnu.org>
3330 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3331 an error when seeing an undefined symbol with hidden/internal
3332 attribute. It is handled in *_relocate_section ().
3334 2000-06-05 H.J. Lu <hjl@gnu.org>
3336 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3337 indirect symbol for the ELF_LINK_NON_ELF bit.
3338 (elf_link_output_extsym): Don't output the indirect symbol even
3339 if the ELF_LINK_NON_ELF bit is set.
3341 2000-06-01 J.T. Conklin <jtc@redback.com>
3343 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3344 (i[3456]86-*-netbsdaout*): New target.
3345 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3346 (i[3456]86-*-openbsd*): Likewise.
3348 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3350 * trad-core.c: From hpux-core.c, include <dirent.h> or
3351 <sys/ndir.h> when possible.
3353 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3355 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3356 definitions. We must not assume they are sorted in the file
3357 according to their index numbers.
3359 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3361 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3362 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3363 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3365 2000-05-30 Nick Clifton <nickc@cygnus.com>
3367 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3368 80960CA, 80960MC as valid machine names.
3370 2000-05-30 H.J. Lu <hjl@gnu.org>
3372 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3373 visibility bits if the symbol is undefined. Correctly handle
3374 weak undefined symbols with hidden and internal attributes.
3376 * elflink.h (elf_link_add_object_symbols): Always turn the
3377 symbol into local if it has the hidden or internal attribute.
3379 2000-05-29 Philip Blundell <philb@gnu.org>
3381 * ppcboot.c: Add packed attribute if compiling with GCC.
3383 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3385 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3387 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3389 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3390 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3391 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3394 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3396 * Makefile.am: Update dependencies with "make dep-am"
3397 * Makefile.in: Regenerate.
3399 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3400 bindtextdomain): Replace defines with those from intl/libgettext.h
3401 to quieten gcc warnings.
3403 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3405 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3407 * archive.c (normalize, bfd_bsd_truncate_arname,
3408 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3409 file names with backslashes.
3411 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3414 * sysdep.h: Include filenames.h.
3416 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3418 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3420 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3422 * elf64-sparc.c (sparc64_elf_relax_section): New.
3423 (sparc64_elf_relocate_section): Optimize tail call into branch always
3425 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3426 (elf32_sparc_relax_section): New.
3428 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3430 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3431 Remove unusued variables.
3432 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3433 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3434 previous fix, so that shared libs really don't influence targets
3435 extension mask and memory model.
3437 2000-05-23 H.J. Lu <hjl@gnu.org>
3439 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3440 h->root.other not h->other.
3441 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3443 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3445 2000-05-23 H.J. Lu <hjl@gnu.org>
3447 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3448 undefined symbol with the non-default visibility attributes.
3449 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3450 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3451 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3452 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3453 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3454 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3455 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3456 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3457 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3458 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3459 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3461 2000-05-22 Richard Henderson <rth@cygnus.com>
3463 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3464 PCREL22, PCREL64I. Zero size of special relocs.
3465 (elf64_ia64_reloc_type_lookup): Likewise.
3466 (USE_BRL, oor_brl, oor_ip): New.
3467 (elf64_ia64_relax_section): New.
3468 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3469 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3470 (elf64_ia64_relocate_section): Likewise.
3471 (bfd_elf64_bfd_relax_section): New.
3472 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3473 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3474 * bfd-in2.h, libbfd.h: Regenerate.
3476 2000-05-22 Nick Clifton <nickc@cygnus.com>
3478 * configure.in : Add peigen.lo to MIPS PE targets.
3479 * configure: Regenerate.
3481 2000-05-22 Momchil Velikov <velco@fadata.bg>
3483 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3484 only if it is known for both input and output bfds. Separate
3485 error message strings as in some languages, it may be necessary
3486 to change more than one place in the string to change between
3489 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3490 endianess checks, call _bfd_generic_verify_endian_match() instead.
3492 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3494 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3496 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3497 endianess before checking bfd flavours.
3499 2000-05-22 H.J. Lu <hjl@gnu.org>
3501 * elflink.h (elf_link_output_extsym): Clear the visibility
3502 field for symbols not defined locally.
3504 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3506 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3507 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3508 (hppa_rebuild_insn): Mask immediate bits here instead.
3509 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3511 2000-05-18 Momchil Velikov <velco@fadata.bg>
3513 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3514 relocs for an executable, ensure that they are virtual addresses.
3516 2000-05-18 Jeffrey A Law (law@cygnus.com)
3518 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3520 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3521 Rick Gorton <gorton@scrugs.lkg.dec.com>
3523 * elflink.h: Add emitrelocations support: when enabled, relocation
3524 information and relocation sections are put into final output
3525 executables. If the emitrelocations flag is set, do the following:
3526 (elf_bfd_final_link): Emit relocation sections.
3527 (elf_link_input_bfd): Compute relocation section contents.
3528 (elf_gc_sections): Don't clean relocation sections.
3530 2000-05-16 Catherine Moore <clm@cygnus.com>
3532 * som.c (som_decode_symclass): Recognize weak symbols.
3534 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3536 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3537 read idata section only from dataoff.
3538 (pe_print_edata): Correctly check for valid eat_member.
3540 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3542 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3544 2000-05-14 Philip Blundell <philb@gnu.org>
3546 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3548 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3550 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3552 * peigen.c (pe_print_idata): Look for .idata section and print
3553 info even if data directory has zero entries. Read idata section
3554 starting from dataoff, and adjust all data offsets to suit. Cast
3555 all bfd_vma vars to unsigned long before passing to fprintf.
3556 * peigen.c (pe_print_edata): Similarly, look for .edata section
3557 and print info even if data directory has zero entries. Cast
3558 all bfd_vma vars to unsigned long before passing to fprintf.
3560 From Szabolcs Szakacsits <szaka@F-Secure.com>
3561 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3562 directory size which may be bogus.
3563 * peigen.c (pe_print_edata): Similarly.
3565 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3567 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3569 (copy_private_bfd_data): Allow for space possibly taken up by elf
3570 headers when calculating segment physical address from lma.
3572 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3574 * versados.c (versados_scan): Init stringlen and pass_2_done.
3576 * trad-core.c (trad_unix_core_file_p): Return
3577 bfd_error_wrong_format rather than bfd_error_file_truncated.
3579 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3580 add_data_entry. DataDirectory virtual address is relative.
3581 (pe_print_idata): Account for relative DataDirectory virtual
3582 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3583 (pe_print_edata): Similarly.
3585 From Szabolcs Szakacsits <szaka@F-Secure.com>
3586 * peigen.c (dir_names): Add Delay Import Directory.
3587 (pe_print_idata): Always search for bfd section containing
3588 idata address rather than looking up section name. Print this
3589 section name rather than .idata.
3590 (pe_print_edata): Similarly. Also print some fields as %08lx.
3591 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3594 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3596 * xcoff.h: Rename to xcoff-target.h
3597 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3598 * coff-rs6000.c: Ditto.
3599 * coff64-rs6000.c: Ditto.
3600 * coff-pmac.c: Ditto.
3601 * Makefile.in: Regenerate.
3603 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3605 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3606 Change U802TOC64MAGIC to U803XTOCMAGIC.
3608 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3610 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3611 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3612 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3614 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3616 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3618 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3620 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3621 hidden and internal symbols.
3622 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3624 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3625 assign a PLT or GOT entry to symbols with hidden and
3626 internal visibility.
3628 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3630 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3632 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3634 2000-05-02 H.J. Lu <hjl@gnu.org>
3636 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3639 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3641 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3642 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3644 * Makefile.in: Regenerate.
3646 2000-05-01 Jim Wilson <wilson@cygnus.com>
3648 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3649 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3650 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3651 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3652 * Makefile.in: Rebuild.
3654 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3656 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3657 doesn't work very well.
3659 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3660 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3661 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3662 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3663 (elf_hppa_info_to_howto): Likewise.
3664 (elf_hppa_info_to_howto_rel): Likewise.
3665 (elf_hppa_reloc_type_lookup): Likewise.
3666 (elf_hppa_is_local_label_name): Likewise.
3667 (elf_hppa_fake_sections): Likewise.
3668 (elf_hppa_final_write_processing): Likewise.
3669 (elf_hppa_howto_table): Fully initialise all entries.
3670 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3671 (elf_hppa_info_to_howto): Likewise.
3672 (elf_hppa_info_to_howto_rel): Likewise.
3673 (elf_hppa_reloc_type_lookup): Likewise.
3674 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3675 elf_hppa_unmark_useless_dynamic_symbols,
3676 elf_hppa_remark_useless_dynamic_symbols,
3677 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3678 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3679 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3680 elf32-hppa.c mess is cleaned up.
3681 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3682 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3683 r_field then call hppa_field_adjust inline func with variable
3684 r_field arg, instead call hppa_field_adjust with fixed arg.
3685 In case R_PARISC_PCREL22F, don't set r_field.
3686 (elf_hppa_relocate_insn): Change args and return type to unsigned
3687 int. Call re_assemble_* funcs to do the work.
3689 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3692 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3694 (sign_extend): Mask first before sign extending.
3695 (low_sign_extend): Rewrite without condition expression.
3696 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3697 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3698 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3699 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3700 result as function return value rather than through pointer arg.
3701 Accept unsigned int args, and return unsigned int.
3702 (re_assemble_3): New. Combines function of dis_assemble_3 with
3703 re-assembly of opcode and immediate.
3704 (re_assemble_12): Likewise.
3705 (re_assemble_16): Likewise.
3706 (re_assemble_17): Likewise.
3707 (re_assemble_21): Likewise.
3708 (re_assemble_22): Likewise.
3709 (hppa_field_adjust): Rewrite and document, paying attention to
3710 size of types and signed/unsigned issues.
3711 (get_opcode): Shift before masking.
3712 (FDLW): Rename to FLDW.
3713 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3714 (hppa_rebuild_insn): Change args and return value to unsigned
3715 int. Make use of re_assemble_*. Correct case 11.
3717 * dep-in.sed: Handle ../opcodes/.
3718 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3719 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3720 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3721 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3722 elfarm-nabi.lo dependencies outside of auto-dependency area.
3723 Regenerate dependencies.
3724 * Makefile.in: Regenerate.
3726 * configure.in (TRAD_HEADER): Test non-null before
3728 * configure: Regenerate.
3730 * reloc.c: Fix mis-spelling in comment.
3732 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3734 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3735 * vms.c (vms_openr_next_archived_file): Return NULL.
3737 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3739 * coffcode.h Copy changes mistakenly done to libcoff.h in
3742 2000-04-29 Andreas Jaeger <aj@suse.de>
3744 * libbfd-in.h: Correctly check GCC version.
3745 * bfd-in.h: Likewise.
3746 * libhppa.h: Likewise.
3747 * libbfd.h: Regenerate.
3748 * bfd-in2.h: Regenerate.
3750 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3752 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3753 coffdu-rs6000.{lo,c}.
3754 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3756 * Makefile.in: Regenerate.
3757 * xcoff.h: New file.
3758 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3759 * coff-rs6000.c: Move all declarations and defines that are
3760 common to the xcoff backends into xcoff.h
3761 * coff64-rs6000.c: Ditto,
3763 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3765 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3766 _bfd_coff_force_symnames in strings and
3767 _bfd_coff_debug_string_prefix_length to their default values.
3768 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3770 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3772 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3773 _bfd_coff_force_symnames in strings and
3774 _bfd_coff_debug_string_prefix_length to their default values.
3776 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3778 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3779 Check local_got_refcounts before dereferencing.
3781 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3782 before deciding we don't need R_PPC_PLT32 relocation.
3783 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3786 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3788 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3790 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3791 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3792 (elf_i386_relocate_section): Allow for .plt to go missing.
3793 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3794 can use a relative reloc for got as elf_i386_relocate_section.
3795 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3797 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3799 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3801 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3803 * Makefile.am (coff64-rs6000.lo): New rule.
3804 * Makefile.in: Regenerate.
3805 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3806 xcoff_is_local_label_name, xcoff_rtype2howto,
3807 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3808 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3809 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3810 (NO_COFF_SYMBOLS): Define.
3811 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3812 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3814 (MINUS_ONE): New macro.
3815 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3817 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3818 coff_SWAP_aux_out): Map to the new functions.
3819 * coff64-rs6000.c: New file.
3820 * libcoff.h (bfd_coff_backend_data): Add new fields
3821 _bfd_coff_force_symnames_in_strings and
3822 _bfd_coff_debug_string_prefix_length.
3823 (bfd_coff_force_symnames_in_strings,
3824 bfd_coff_debug_string_prefix_length): New macros for above fields.
3825 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3826 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3827 of using coff_swap_sym_in directly.
3828 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3829 (coff_set_flags) Set magic for XCOFF64.
3830 (coff_compute_section_file_positions): Add symbol name length to
3831 string section length if bfd_coff_debug_string_prefix_length is
3833 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3834 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3835 using coff_swap_lineno_in directly.
3836 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3837 and _bfd_coff_debug_string_prefix_length fields.
3838 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3839 symbol names into strings table when
3840 bfd_coff_force_symnames_in_strings is true.
3841 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3842 SET_RELOC_VADDR): New macros.
3843 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3844 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3846 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3847 changes within RS6000COFF_C specific code.
3848 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3849 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3850 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3851 Extend existing hack on target name.
3852 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3854 * coff-tic54x.c (ticof): Keep up to date with new fields
3855 in bfd_coff_backend_data.
3856 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3857 targ_selvecs to include rs6000coff64_vec for rs6000.
3858 * configure.in: Add rs6000coff64_vec case.
3859 * cpu-powerpc.c: New bfd_arch_info_type.
3861 2000-04-24 Jeffrey A Law (law@cygnus.com)
3863 * config.bfd: Only disable elf32-hppa vectors, not all of the
3864 BSD and OSF configuration support. Provide (disabled) clauses
3866 * configure.in: Add clause for PA64 support.
3867 * configure: Rebuilt.
3869 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3870 (bfd_elf64_hppa_vec): Declare.
3872 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3873 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3874 (elf64-hppa.lo): Add dependencies.
3875 * Makefile.in: Rebuilt.
3877 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3879 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3881 * libhppa.h (dis_assemble_16): New function.
3882 (pa_arch): Added pa20w element.
3884 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3886 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3887 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3888 bfd_elf64_slurp_reloc_table.
3890 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3891 definitions to get external names.
3892 (elf_write_relocs): Renamed from write_relocs and make global.
3893 (elf_slurp_reloc_table): Make global.
3894 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3896 * archive.c (hpux_uid_gid_encode): New function.
3897 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3898 defined and the ID is greater than 99999.
3899 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3900 special uid/gid fields into 32 bit values.
3902 2000-04-21 Matthew Green <mrg@cygnus.com>
3904 * config.bfd: Add NetBSD/sparc64 support.
3906 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3907 David Mosberger <davidm@hpl.hp.com>
3908 Timothy Wall <twall@cygnus.com>
3909 Jim Wilson <wilson@cygnus.com>
3911 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3912 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3913 (BFD64_BACKENDS): Add elf64-ia64.lo.
3914 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3915 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3916 * Makefile.in: Rebuild.
3917 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3918 (bfd_ia64_arch): Declare.
3919 (bfd_archures_list): Add bfd_ia64_arch.
3920 * bfd-in2.h: Rebuild.
3921 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3922 * configure: Rebuild.
3923 * configure.host: (ia64-*-linux*): New host.
3924 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3925 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3926 * elf.c (prep_headers): Add bfd_arch_ia64.
3927 * libbfd.h: Rebuild.
3928 * reloc.c: Add IA-64 relocations.
3929 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3931 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3932 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3934 2000-04-21 Richard Henderson <rth@cygnus.com>
3936 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3937 contents when performing a partial link.
3938 (bfd_elf_d30v_reloc_21): Likewise.
3940 2000-04-20 H.J. Lu <hjl@gnu.org>
3942 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3943 patch to symbols defined by a shared object.
3944 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3946 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3949 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3950 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3952 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3954 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3955 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3956 (coff-ia64.lo): Add dependency.
3957 * Makefile.in: Regenerate.
3958 * coff-ia64.c: New file.
3959 * efi-app-ia32.c: Ditto.
3960 * efi-app-ia64.c: Ditto.
3961 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3962 (coff_set_flags): Ditto.
3963 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3964 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3965 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3966 * configure: Regenerate.
3967 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3968 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3969 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3970 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3971 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3972 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3973 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3974 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3975 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3976 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3977 (GET_PDATA_ENTRY): Ditto.
3978 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3979 data_start. Use above macros to read fields that are 64 bit wide for
3980 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3981 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3982 FileAlignment and SectionAlignment to minimum alignment if they
3984 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3985 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3986 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3987 Use above macros to write fields that are 64 bit wide for
3989 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3990 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3991 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3992 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3993 begin address, end address, and unwind info address only. Use
3994 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3996 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3997 HIGH3ADJ relocation names.
3998 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3999 * targets.c: Declare bfd_efi_app_ia32_vec and
4000 bfd_efi_app_ia64_vec.
4001 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4002 bfd_efi_app_ia64_vec.
4004 2000-04-17 Timothy Wall <twall@cygnus.com>
4006 * bfd-in2.h: Add prototypes for tic54x load page access.
4007 * bfd-in.h: Regenerate.
4008 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4009 in customized _set_arch_mach function.
4010 * coffcode.h (coff_set_alignment_hook): Set section load page if
4011 the appropriate macro is defined.
4012 (write_object_contents): Read section load page.
4014 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4016 * elf32-hppa.h: Update copyright date.
4018 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4019 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4021 * elf32-d30v.c (MAX32): Don't use LL suffix.
4022 (MIN32): Define in terms of MAX32.
4023 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4025 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4028 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4030 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4032 * dep-in.sed: Match space before file name, not after.
4033 * Makefile.am: Regenerate dependencies.
4034 * Makefile.in: Regenerate.
4036 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4037 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4038 extend without an if statement.
4040 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4042 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4044 * elf32-mips.c (gprel16_with_gp): Likewise.
4045 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4046 here using -0x40000, not (int)0xfffc0000.
4047 (elf32_hppa_size_of_stub): Likewise.
4049 2000-04-11 Timothy Wall <twall@cygnus.com>
4051 * coff-tic54x.c: Now builds with all targets.
4052 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4053 * Makefile.in: Regenerate.
4054 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4055 unitialized variable.
4057 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4059 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4060 --enable-build-warnings option.
4061 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4062 * Makefile.in, configure: Re-generate.
4064 2000-04-07 Nick Clifton <nickc@cygnus.com>
4066 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4067 BFD_RELOC_THUMB_PCREL_BLX.
4069 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4070 R_ARM_XPC25 and R_ARM_THM_PC22.
4072 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4073 R_ARM_XPC25 and R_ARM_THM_XPC22.
4074 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4075 R_ARM_[XPC25|THM_XPC22].
4077 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4078 elf/arm-oabi.h to elf/arm.h
4080 * Makefile.am: Fix dependency for elfarm-oabi.c
4081 * Makefile.in: Regenerate.
4083 * bfd-in2.h: Regenerate.
4084 * libbfd.h: Regenerate.
4086 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4088 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4089 and restore it on failure. Release newly allocated tdata on
4092 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4094 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4095 (decode_line_info): Set it. Report error if unit->line_offset is
4096 equal to or larger than it.
4098 2000-04-07 Timothy Wall <twall@cygnus.com>
4100 * targets.c: Added vecs for tic54x.
4101 * reloc.c: Added relocs for tic54x.
4102 * libbfd.h: Regenerated.
4103 * configure: Add TI COFF vecs for tic54x.
4104 * configure.in: Ditto.
4105 * config.bfd (targ_cpu): Recognize new tic54x target.
4106 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4107 * bfd-in2.h: Add tic54x target and relocations.
4108 * Makefile.am, Makefile.in: Add tic54x target.
4109 * archures.c (bfd_archures_list): Add tic54x target.
4110 * coff-tic54x.c: New.
4111 * cpu-tic54x.c: New.
4113 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4115 * elfcore.h (elf_core_file_p): call backend_object_p which
4116 thereby gets an opportunity to update the arch/machine type.
4118 2000-04-06 Timothy Wall <twall@cygnus.com>
4120 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4121 class. Handle SEC_CLINK and SEC_BLOCK flags.
4122 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4123 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4125 2000-04-06 Nick Clifton <nickc@cygnus.com>
4127 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4128 EF_INTERWORK if this is an unknown EABI.
4129 (elf32_arm_merge_private_bfd_data): Check EABI version
4130 numbers. Only check EF_xxx flags if the EABI version number
4132 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4133 if the EABI version number is unknown.
4134 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4135 if the EABI version number is unknown.
4137 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4139 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4140 BFD_RELOC_SH_LOOP_END.
4141 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4142 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4143 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4144 (sh_elf_reloc_loop): New function.
4145 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4147 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4148 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4149 * bfd-in2.h, libbfd.h: Regenerate.
4151 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4153 * po/bfd.pot: Regenerate.
4155 * Makefile.am: Remove extraneous mkdep comment.
4156 (MKDEP): Use gcc -MM rather than mkdep.
4157 (DEP): Quote when passing vars to sub-make. Add warning
4159 (DEP1): Rewrite for "gcc -MM".
4160 (CLEANFILES): Add DEP2.
4161 Update dependencies.
4162 * Makefile.in: Regenerate.
4164 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4166 * configure.in: Added corefile support for AIX 4.3. In particular,
4167 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4168 compiling rs6000-core.c.
4169 * configure: Regenerated.
4171 2000-04-03 H.J. Lu <hjl@gnu.org>
4173 * cache.c (bfd_open_file): Unlink the output file only if
4174 it has non-zero size.
4176 2000-04-01 Ken Block USG <block@zk3.dec.com>
4178 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4179 relative relocations for non-loaded sections in shared objects.
4180 (elf64_alpha_check_relocs): Similarly.
4182 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4184 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4185 BFD_RELOC_16 to switch for extended relocs.
4186 (MY_swap_ext_reloc_in): New.
4187 (MY_swap_ext_reloc_out): New.
4188 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4189 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4190 (NAME(aout,squirt_out_relocs)): Similarly use
4191 MY_swap_ext_reloc_out.
4192 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4194 2000-04-03 Kazu Hirata <kazu@hxi.com>
4196 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4197 the R_PCRWORD_B case.
4199 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4201 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4205 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4207 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4208 HOWTO references to bfd_elf_generic_reloc, that have
4209 partial_inplace == true, now use the new function. The function
4210 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4211 extends its fixes to the R_M32R_{16,24,32} relocs.
4212 The new logic in m32r_elf_lo16_reloc() has been removed, and
4213 it instead calls the new routine to obtain that functionality.
4215 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4217 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4218 elf32_avr_check_relocs, avr_final_link_relocate,
4219 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4220 elf32_avr_object_p): Add prototypes.
4221 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4222 (bfd_elf_avr_final_write_processing): Make static.
4224 2000-03-27 Denis Chertykov <denisc@overta.ru>
4226 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4227 * archures.c (bfd_architecture): Add AVR architecture.
4228 (bfd_archures_list): Add reference to AVR architecture info.
4229 * elf.c (prep_headers): Handle bfd_arch_avr.
4230 * reloc.c: Add various AVR relocation enums.
4231 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4233 * Makefile.am: Add support for AVR elf.
4234 * configure.in: Likewise.
4235 * config.bfd: Likewise.
4236 * Makefile.in: Regenerate.
4237 * configure: This too.
4238 * bfd-in2.h: And this.
4239 * libbfd.h: And this.
4241 2000-03-24 H.J. Lu <hjl@gnu.org>
4243 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4244 (elf64_alpha_find_reloc_at_ofs): Likewise.
4246 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4248 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4249 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4250 allowable range used to be -2**(n-1) to 2**n-1.
4251 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4252 "boolean overflow" with "bfd_reloc_status_type flag".
4254 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4256 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4258 2000-03-14 Kazu Hirata <kazu@hxi.com>
4260 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4261 of shrinks properly, including the last reloc.
4263 2000-03-13 Kazu Hirata <kazu@hxi.com>
4265 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4268 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4270 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4271 a format mismatch rather than an "error" from bfd_read such as
4272 bfd_error_file_truncated.
4274 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4276 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4277 sign-extension and big-endian compensation for
4278 R_MIPS_64 even in ld -r.
4280 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4282 * elf32-mips.c (mips_elf_next_relocation): Rename from
4283 mips_elf_next_lo16_relocation, and generalize to look
4284 for any relocation type.
4285 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4286 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4287 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4288 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4289 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4290 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4291 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4292 (mips_rtype_to_howto): Likewise.
4293 (mips_elf_calculate_relocation): Handle new relocs.
4294 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4295 are paired. The addend for R_MIPS_GNU_REL16_S2
4296 is shifted right two bits.
4298 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4300 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4301 comment, and ensure it doesn't happen again.
4302 (bfd_install_relocation): Same here.
4303 (_bfd_relocate_contents): Don't bother assigning unused signmask
4304 shift result. Fix typos in comments.
4305 Remove trailing whitespace throughout file.
4307 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4309 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4310 * bfd-in2.h: Rebuild.
4312 2000-03-06 Nick Clifton <nickc@cygnus.com>
4314 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4316 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4317 (SIZEOF_ILF_STRINGS): Redefine.
4318 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4319 relative reloc, as opposed to a section relative reloc.
4320 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4322 Add length of symbol's prefix to string pointer.
4323 Store a pointer to the symbol in the symbol pointer table.
4324 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4325 Initialise the symbol pointer table.
4326 Store the hint in the Hint/Name table.
4327 Make the jump reloc be symbol realtive, not section relative.
4328 Create an import symbol for imported code.
4330 2000-03-06 Catherine Moore <clm@cygnus.com>
4332 * elf.c (swap_out_syms): Check for null type_ptr.
4334 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4336 * aout-target.h (MY(write_object_contents)): Remove unused
4337 and unusable "#if CHOOSE_RELOC_SIZE".
4338 * pc532-mach.c (MY(write_object_contents)): Ditto.
4339 * netbsd.h (MY(write_object_contents)): Ditto.
4340 * hp300hpux.c (MY(write_object_contents)): Ditto.
4341 * freebsd.h (MY(write_object_contents)): Ditto.
4342 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4344 2000-02-29 H.J. Lu <hjl@gnu.org>
4346 * peicode.h (jtab): Make it static.
4348 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4349 defined and COFF_IMAGE_WITH_PE is not defined.
4350 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4351 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4353 2000-03-01 Nick Clifton <nickc@cygnus.com>
4355 * coff-arm.c (bfd_arm_process_before_allocation): Make
4356 'symndx' signed to prevent compile time warning.
4358 * coff-mcore.c: Remove unused prototype for pe_object_p.
4360 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4361 functions that are not used when COFF_IMAGE_WITH_PE is
4363 (struct sh_opcode): Change type of 'flags' field to unsigned
4364 long so that it can hold the USESAS flag.
4366 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4368 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4371 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4373 Remove unusued variables and code.
4374 (elf_backend_add_symbol_hook): Fix prototype.
4376 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4379 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4382 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4384 Remove unusued variables and code.
4385 (elf_backend_add_symbol_hook): Fix prototype.
4387 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4389 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4390 to unused function parameter.
4392 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4394 Use EMPTY_HOWTO to initialise empty howto slots.
4395 Remove unused variables.
4397 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4399 2000-03-01 H.J. Lu <hjl@gnu.org>
4401 * aoutx.h (aout_link_input_section_std): Pass "true" to
4402 the undefined_symbol callback.
4403 (aout_link_input_section_ext): Likewise.
4404 * bout.c (get_value): Likewise.
4405 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4406 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4408 (alpha_relocate_section): Likewise.
4409 * coff-arm.c (coff_arm_relocate_section): Likewise.
4410 * coff-i960.c (coff_i960_relocate_section): Likewise.
4411 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4412 * coff-mips.c (mips_relocate_section): Likewise.
4413 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4414 * coff-sh.c (sh_relocate_section): Likewise.
4415 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4416 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4417 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4418 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4419 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4420 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4421 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4422 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4423 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4424 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4425 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4426 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4427 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4428 * elflink.h (elf_link_output_extsym): Likewise.
4429 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4430 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4431 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4433 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4434 undefined_symbol callback when building shared library with
4435 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4437 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4438 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4439 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4440 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4441 (elf32_mips_get_relocated_section_content): Likewise.
4442 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4443 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4444 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4445 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4447 2000-02-28 Nick Clifton <nickc@cygnus.com>
4449 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4450 * Makefile.in: Regenerate.
4452 * configure.in: Add support for mips and sh pe vectors.
4453 * configure: regenerate.
4455 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4458 * targets.c: Add mips and sh pe vectors.
4460 * libpei.h (coff_final_link_postscript): Only define if not
4463 * coffcode.h: Add support for WinCE magic numbers.
4465 * peigen.c (pe_print_reloc): Update comment and rearrange
4466 appending of newline character.
4468 * peicode.h: Add support for Image Library Format.
4469 (pe_ILF_vars): Structure containing data used by ILF code.
4470 (pe_ILF_make_a_section): New function. Create a section based
4472 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4474 (pe_ILF_make_a_symbol): New function. Create a symbol based
4476 (pe_ILF_save_relocs): New function. Store the relocs created
4477 by pe_ILF_make_a_reloc in a section.
4478 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4480 (pe_ILF_object_p): New function. Return a bfd_target pointer
4482 (pe_bfd_object_p): If an ILF object is detected call
4483 pe_ILF_object_p on it.
4485 * coff-arm.c: Add support for WinCE relocs which are different
4486 from normal ARM COFF relocs.
4487 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4489 * coff-sh.c: Add support for sh-pe target.
4490 * pe-sh.c: New file. Support code for sh-pe target.
4491 * pei-sh.c: New file. Support code for sh-pe target.
4493 * pe-mips.c: New file. Support code for mips-pe target.
4494 * pei-mips.c: New file. Support code for mips-pe target.
4496 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4498 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4499 architecture if the object causing the bump is dynamic.
4500 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4501 and also don't it for memory ordering.
4502 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4504 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4506 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4507 calling bfd_get_section_size_before_reloc.
4508 (decode_line_info): Likewise.
4509 (_bfd_dwarf2_find_nearest_line): Likewise.
4511 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4513 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4514 name of the libtool directory.
4515 * Makefile.in: Rebuild.
4517 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4519 * som.c (SOM_HOWTO): Define.
4520 (som_hppa_howto_table): Use it.
4522 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4524 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4526 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4528 2000-02-24 Catherine Moore <clm@cygnus.com>
4530 * som.c (som_misc_symbol_info): Add field
4532 (som_bfd_derive_misc_symbol_info): Initialize
4534 (som_build_and_write_symbol_table): Keep track
4535 of secondary_def field.
4536 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4537 if secondary_def field is set.
4538 (som_bfd_ar_write_symbol_stuff): Initialize
4541 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4543 * dwarf2.c (read_address): Read 16-bits addresses.
4544 (parse_comp_unit): Accept addr_size == 2.
4546 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4548 * bfd-in.h: Update copyright date.
4550 2000-02-23 Linas Vepstas <linas@linas.org>
4552 * cpu-i370.c: New file.
4553 * elf32-i370.c: New file.
4554 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4555 (bfd_i370_arch): New.
4556 (bfd_archures_list): Add bfd_i370_arch.
4557 * elf.c (prep_headers): Add bfd_arch_i370.
4558 * Makefile.am: Add support for IBM 370 elf.
4559 * config.bfd: Likewise.
4560 * configure.in: Likewise.
4561 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4562 * reloc.c (bfd_reloc_code_type): Likewise.
4563 * targets.c: Likewise.
4565 * Makefile.in: Regenerate.
4566 * configure: Regenerate.
4567 * bfd-in2.h: Regenerate.
4569 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4571 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4572 invalid relocation types, and change them to R_386_NONE.
4574 2000-02-22 H.J. Lu <hjl@gnu.org>
4576 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4577 not defined, don't add a second ELF_VER_CHR.
4579 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4580 symbols converted to local symbols even when stripping all
4582 (elf_link_output_extsym): Process global symbols converted to
4583 local symbols even if they are being stripped.
4585 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4587 * archures.c (bfd_octets_per_byte): Return unsigned int.
4588 (bfd_arch_mach_octets_per_byte): Ditto.
4589 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4591 * section.c (bfd_get_section_size_before_reloc): Quell signed
4592 vs. unsigned comparison warning.
4593 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4594 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4595 change. What was I thinking?
4596 * bfd-in2.h: Regenerate.
4598 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4599 (elf_gc_sections): Same here.
4600 (elf_gc_common_finalize_got_offsets): And here.
4602 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4604 ELF HPPA doesn't work at present; remove it until it does.
4605 * config.bfd: Comment out setting targ_defvec to
4607 * Makefile.am: Rebuild dependencies.
4608 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4609 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4610 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4611 * Makefile.in: Rebuild.
4612 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4614 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4616 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4617 is no bfd_free(). Revert bfd_free part of previous change.
4619 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4621 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4623 (coff_compute_section_file_positions): Use bfd_free to pair
4625 (coff_write_object_contents): Likewise.
4627 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4628 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4630 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4632 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4633 (xcoff_ar_file_hdr_big): New structure.
4634 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4635 (xcoff_ar_hdr_big): New structure.
4636 (SIZEOF_AR_HDR_BIG): New macro.
4637 (xcoff_big_format_p): New macro.
4638 (xcoff_ardata_big): New macro.
4639 (arch_xhdr_big): New macro.
4640 (xcoff_slurp_armap): Handle large archives.
4641 (xcoff_archive_p): Detect large archives.
4642 (xcoff_read_ar_hdr): Handle large archives.
4643 (xcoff_openr_next_archived_file): Handle large archives.
4644 (xcoff_generic_stat_arch_elt): Handle large archives.
4645 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4646 (xcoff_write_armap_big): New function.
4647 (xcoff_write_armap): New function, dispatch to _old or _big.
4648 (xcoff_write_archive_contents_old): Rename from
4649 xcoff_write_archive_contents.
4650 (xcoff_write_archive_contents_big): New function.
4651 (xcoff_write_archive_contents): New function, dispatch to _old or
4654 2000-02-18 Richard Henderson <rth@cygnus.com>
4656 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4657 and hide_symbol members.
4658 (elf_link_hash_copy_indirect): Remove.
4659 (elf_link_hash_hide_symbol): Remove.
4660 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4661 and elf_backend_hide_symbol.
4662 (_bfd_elf_link_hash_copy_indirect): Declare.
4663 (_bfd_elf_link_hash_hide_symbol): Declare.
4664 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4665 (_bfd_elf_link_hash_hide_symbol): Likewise.
4666 (_bfd_elf_link_hash_table_init): Don't init killed members.
4667 * elflink.h (elf_link_add_object_symbols): Use the bed function
4668 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4669 (elf_link_assign_sym_version): Likewise.
4670 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4671 (elf_backend_hide_symbol): Likewise.
4672 (elfNN_bed): Update for new members.
4674 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4676 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4677 STACK_END_ADDR): Define for new core file format.
4678 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4679 for handling the vagaries of the various core file structures used
4680 by AIX over the years.
4681 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4682 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4683 core_dumpx structure.
4685 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4687 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4688 (bfd_mach_sh3_dsp): Likewise.
4689 (bfd_mach_sh4): Reinstate.
4690 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4691 * bfd-in2.h: Regenerate.
4692 * coff-sh.c (struct sh_opcode): flags is no longer short.
4693 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4694 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4695 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4696 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4697 (sh_opcodes): No longer const.
4698 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4699 (sh_insn_uses_reg): Check for USESAS and USESR8.
4700 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4701 (_bfd_sh_align_load_span): Return early for SH4.
4702 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4703 Take into account that field b of a parallel processing insn
4704 could be mistaken for a separate insn.
4705 * cpu-sh.c (arch_info_struct): New array elements for
4706 sh2, sh-dsp and sh3-dsp.
4707 Reinstate element for sh4.
4708 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4709 (SH4_NEXT): Reinstate.
4710 (SH3_NEXT, SH3E_NEXT): Adjust.
4711 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4712 * elf32-sh.c (sh_elf_set_private_flags): New function.
4713 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4714 (sh_elf_merge_private_data): New function.
4715 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4716 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4717 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4718 sh_elf_merge_private_data.
4720 2000-02-13 Richard Henderson <rth@cygnus.com>
4722 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4723 hide_symbol members.
4724 (elf_link_hash_copy_indirect): New.
4725 (elf_link_hash_hide_symbol): New.
4726 * elflink.h (elf_link_add_object_symbols): Break out copy from
4727 indirect new new symbol to elf.c.
4728 (elf_link_assign_sym_version): Break out privatization of
4729 non-exported symbol to elf.c.
4730 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4731 (_bfd_elf_link_hash_hide_symbol): New.
4732 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4734 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4736 * section.c (_bfd_strip_section_from_output): Add info parameter.
4737 If it passed as non-NULL, use it to check whether any input BFD
4738 has an input section which uses this output section. Change all
4740 * bfd-in2.h: Rebuild.
4742 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4743 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4745 * bfd-in2.h: Rebuild.
4747 2000-02-10 Timothy Wall <twall@cygnus.com>
4749 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4750 allow final modifications of swapped-in symbol.
4751 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4752 * coffcode.h (coff_write_relocs): Use macro
4753 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4754 symbol index should be set to -1.
4756 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4758 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4759 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4760 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4761 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4762 sh_insns_uses_or_sets_freg): New functions.
4763 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4764 * (sh_insns_conflict): Use new functions and new macros to
4765 detect conflicts when two instructions both set same integer registers,
4766 both set same fp register, and both set special register.
4768 2000-02-09 Timothy Wall <twall@cygnus.com>
4770 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4771 swapping in sections, so that the swapping routines have access to
4774 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4776 * coff-go32.c: Update comment. Update copyright.
4778 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4780 * syms.c (bfd_decode_symclass)
4781 Two new class characters were added - 'V' and 'v'. The
4782 meaning of 'W' is now restricted to just weak non-object
4783 symbols. This allows differentiation between, for example,
4784 weak functions vs weak objects. nm for example now dumps:
4786 'w' = weak unresolved
4787 'V' = weak global object
4788 'v' = weak unresolved object
4790 (bfd_is_undefined_symclass): New function. Return true if the
4791 given symbol class represents and undefined/unresolved symbol.
4793 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4796 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4798 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4799 STT_ARM_16BIT flag set, but it is not attached to a data object
4800 return STT_ARM_16BIT so that it will be treated as code by the
4803 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4805 * coff-i386.c (i3coff_object_p): Remove prototype.
4808 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4809 to name. Update copyright.
4811 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4812 assignment to avoid warning. Update copyright.
4814 2000-01-24 Robert Lipe (robertl@sco.com)
4816 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4817 instead of using GNU C extension.
4819 2000-01-21 Nick Clifton <nickc@cygnus.com>
4821 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4822 amount from a bfd_in_memory structure.
4823 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4826 2000-01-14 Nick Clifton <nickc@cygnus.com>
4828 * linker.c (default_indirect_link_order): oops - fix incorrectly
4829 applied patch from Tim Wall.
4831 2000-01-13 Timothy Wall (twall@tiac.net>
4833 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4834 = scnhsz, filhsz, relsz, aoutsz, etc)
4836 * coffswap.h: Ditto.
4838 2000-01-13 Nick Clifton <nickc@cygnus.com>
4840 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4841 interwork thumb to arm stub.
4843 2000-01-13 Timothy Wall (twall@tiac.net>
4845 * archures.c (bfd_octets_per_byte): New function: Return
4847 (bfd_arch_mach_octets_per_byte): New function: Return target
4850 * section.c: Distinguish between octets and bytes for usage of
4851 _cooked_size, _raw_size, and output_offset. Clarify
4852 description of bfd_set_section_contents.
4854 * bfd-in2.h: Regenerate.
4856 * coffgen.c: Indicate that the offset parameter is in bytes, not
4859 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4860 where appropriate to get the octet offset when calling
4861 bfd_set_section_contents.
4862 (bfd_coff_reloc_link_order): Ditto.
4864 * linker.c (bfd_generic_reloc_link_order): Ditto.
4865 (_bfd_default_link_order): Ditto.
4867 * reloc.c (bfd_perform_relocation): Distinguish between octets
4868 and bytes. Use octets when indexing into octet data; use bytes
4869 when calculating target addresses.
4870 (bfd_install_relocation): Ditto.
4872 * srec.c (srec_write_section): Ditto.
4874 2000-01-13 Nick Clifton <nickc@cygnus.com>
4876 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4877 3 to 2. This allows 4 byte sized sections, which is necessary for
4878 dlltool to build functioning DLLs.
4880 2000-01-10 Philip Blundell <pb@futuretv.com>
4882 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4883 (arm*-*-conix*): New target.
4885 2000-01-10 Egor Duda <deo@logos-m.ru>
4887 * config.bfd: Include elf32_i386 vector to target list for cygwin
4890 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4891 * configure.in: Test for structure win32_pstatus_t in
4893 * configure: Regenerate.
4895 * elf.c (elfcore_grok_win32pstatus): New function: process
4896 win32_pstatus_t notes in elf core file.
4897 (elfcore_grok_note): Detect win32_pstatus notes.
4899 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4901 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4903 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4904 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4906 For older changes see ChangeLog-9899
4912 version-control: never