1 2001-04-30 H.J. Lu <hjl@gnu.org>
3 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
4 only for ELF_LINK_FORCED_LOCAL.
5 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
6 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
7 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
9 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
10 if the symbol has hidden or internal visibility.
12 2001-04-30 Alan Modra <amodra@one.net.au>
14 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
15 calls to undefined weak symbols.
17 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
19 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
20 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
22 2001-04-27 Andreas Jaeger <aj@suse.de>
24 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
26 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
27 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
28 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
31 2001-04-27 Sean McNeil <sean@mcneil.com>
33 * config.bfd: Add arm-vxworks target.
34 * coff-arm (coff_arm_relocate_section): Add in symbol value to
35 addend (fro VXworks targets).
37 2001-04-26 H.J. Lu <hjl@gnu.org>
39 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
42 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
44 * bfd-in.h (bfd_cache_close): Declare newly exported function.
45 * bfd-in2.h: Regenerated.
47 2001-04-24 Jakub Jelinek <jakub@redhat.com>
49 * merge.c (struct sec_merge_hash_entry): Add alignment field.
50 (struct sec_merge_hash): Remove alignment_power.
51 (sec_merge_hash_newfunc): Clear alignment.
52 (sec_merge_hash_lookup): Pass alignment as argument.
53 Use hashp->root.next, not hashp->next to walk the hash chain.
54 If a string already in the hashtable does not have required
55 alignment, create a new hashtable entry.
56 (sec_merge_init): Remove alignment_power argument.
57 (sec_merge_add): Add alignment argument.
58 (sec_merge_emit): Alignment is now a per-entity thing, not per
60 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
62 Pass alignment information to sec_merge_add.
64 2001-04-24 Christian Groessler <cpg@aladdin.de>
66 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
67 and R_REL16 reloc types; accept odd values for R_REL16 type
69 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
71 * cpu-openrisc.c: New file.
72 * elf32-openrisc.c: Likewise.
74 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
75 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
76 (BFD32_BACKENDS): Add elf32-openrisc.lo.
77 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
78 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
79 * Makefile.in: Regenerated.
80 * config.bfd: (openrisc-*-elf): New target.
81 * configure.in (bfd_elf32_openrisc_vec): New vector.
82 * configure: Regenerated.
83 * libbfd.h: Regenerated.
84 * bfd-in2.h: Regenerated.
85 * reloc.c: Add OpenRISC relocations.
86 * targets.c (bfd_elf32_openrisc_vec): Declare.
87 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
88 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
89 (bfd_openrisc_arch): Declare.
90 (bfd_archures_list): Add bfd_openrisc_arch.
91 * elf.c (prep_headers): Add bfd_arch_openrisc.
93 2001-04-23 Bo Thorsen <bo@suse.de>
95 * elf64-x86-64.c: Add c++ vtable hack.
96 Small whitespace and comment changes.
98 2001-04-19 Andreas Jaeger <aj@suse.de>
100 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
101 (elf64_x86_64_plt_entry): Likewise.
102 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
103 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
105 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
107 * elf32-cris.c: Tweak comments related to dynamic linking.
108 (cris_elf_relocate_section): When not creating shared object, fill
109 in the .got table for any symbol not in the dynamic symbol table.
110 (elf_cris_finish_dynamic_symbol): When not creating shared object,
111 only emit a .got.rela reloc if the symbol is in the dynamic symbol
113 (cris_elf_check_relocs): Use variable r_type in all places rather
114 than the original expression. Add default case in switch for
116 (elf_cris_size_dynamic_sections): Iterate over
117 elf_cris_discard_excess_program_dynamics when not creating shared
119 (elf_cris_discard_excess_dso_dynamics): Renamed from
120 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
121 (elf_cris_discard_excess_program_dynamics): New.
123 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
125 * coffcode.h (coff_write_object_contents): Use
126 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
128 2001-04-14 H.J. Lu <hjl@gnu.org>
130 * bfd-in2.h: Regenerate.
132 2001-04-14 Jakub Jelinek <jakub@redhat.com>
134 * section.c (STD_SECTION): Add entsize.
136 2001-04-13 H.J. Lu <hjl@gnu.org>
138 * section.c (SEC_MERGE): Define new flag for merging.
139 (SEC_STRINGS): Likewise.
140 (entsize): New field.
142 2001-04-13 Roger Sayle <roger@metaphorics.com>
144 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
145 flag on pe-i386 targets.
147 2001-04-13 Jakub Jelinek <jakub@redhat.com>
149 * libbfd-in.h (_bfd_merge_section): New.
150 (_bfd_write_merged_section): New.
151 (_bfd_merged_section_offset): New.
153 * linker.c (_bfd_generic_link_output_symbols): Handle
155 * aoutx.h (aout_link_write_symbols): Likewise.
156 * pdp11.c (aout_link_write_symbols): Likewise.
157 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
158 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
160 (elf_link_sec_merge_syms): New.
161 (elf_link_input_bfd): Call _bfd_merged_section_offset
162 and _bfd_write_merged_section.
163 Handle discard_sec_merge.
164 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
166 (struct bfd_elf_section_data): Likewise.
167 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
168 SEC_STRINGS section flags and entsize from their ELF counterparts.
169 (_bfd_elf_link_hash_table_init): Initialize merge_info.
170 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
171 from their BFD counterparts.
173 * Makefile.am: Add strtab.lo.
174 * Makefile.in: Rebuilt.
176 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
178 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
179 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
181 2001-04-05 Steven J. Hill <sjhill@cotw.com>
183 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
184 endian MIPS ELF target.
185 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
188 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
189 64bit big endian MIPS ELF target.
190 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
191 endian MIPS ELF target.
192 * configure: Regenerated.
194 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
195 little endian targets.
196 (mips_elf_sym_is_global): Handle traditional targets.
198 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
199 64bit big endian MIPS ELF target.
200 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
201 endian MIPS ELF target.
203 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
204 and bfd_elf64_tradlittlemips_vec.
206 2001-04-05 David Mosberger <davidm@hpl.hp.com>
208 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
209 ordinary "progbits" section.
211 2001-04-04 Alan Modra <alan@linuxcare.com.au>
213 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
214 when -Bsymbolic causes a symbol to no longer need a .plt entry.
216 2001-04-03 David Mosberger <davidm@hpl.hp.com>
218 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
220 2001-03-30 H.J. Lu <hjl@gnu.org>
222 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
223 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
225 2001-03-26 H.J. Lu <hjl@gnu.org>
227 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
228 if there are any relocations for generic ELF.
229 (bfd_elf32_bfd_link_add_symbols): Defined to
230 elf32_generic_link_add_symbols.
231 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
232 if there are any relocations for generic ELF.
233 (bfd_elf64_bfd_link_add_symbols): Defined to
234 elf64_generic_link_add_symbols.
236 2001-03-23 Nick Clifton <nickc@redhat.com>
238 * Makefile.am (BUILD_CFILES): New variable: List of C source
239 files created in build directory.
240 (BUILD_HFILES): New variable: List of header files created in
243 (po/POTFILES.in): Replace rule with empty entry.
244 (po/SRC-POTFILES.in): New rule: Create a list of source files
245 in the source directory.
246 (po/BLD-POTFILES.in): New rule: Create a list of source files
247 in the build directory.
248 (MOSTLYCLEAN): Do not delete source files created in build
250 * Makefile.in: Regenerate.
251 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
253 * configure: Regenerate.
255 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
257 Add .. to the search path when building bfd.pot.
258 Delete POTFILES when performing distclean.
259 Add comment describing why distclean is broken in maintainer mode.
260 * po/POTFILES.in: Delete.
261 * po/SRC-POTFILES.in: New file.
262 * po/BLD-POTFILES.in: New file.
263 * po/bfd.pot: Regenerate.
265 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
267 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
268 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
269 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
270 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
271 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
272 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
274 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
275 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
276 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
277 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
278 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
279 New HOWTO members for new relocs.
280 (cris_reloc_map): Map new relocs.
281 (ELF_DYNAMIC_INTERPRETER): Define.
282 (PLT_ENTRY_SIZE): Define.
283 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
284 elf_cris_pic_plt_entry): New, PLT templates.
285 (struct elf_cris_pcrel_relocs_copied, struct
286 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
287 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
288 (cris_final_link_relocate): Check that 16-bit GOT relocs have
289 positive values. Adjust PCREL relocs to be relative to location
291 (cris_elf_relocate_section): Handle relocations to dynamic
292 objects. Handle new relocations. Call error handler when seeing
293 non-PIC relocation for read-only sections while generating shared
295 (cris_elf_check_relocs): Set reference counts for GOT and PLT
297 (bfd_elf32_bfd_link_hash_table_create,
298 elf_backend_adjust_dynamic_symbol,
299 elf_backend_size_dynamic_sections,
300 elf_backend_finish_dynamic_symbol,
301 elf_backend_finish_dynamic_sections,
302 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
303 elf_backend_hide_symbol, elf_backend_want_got_plt,
304 elf_backend_plt_readonly, elf_backend_want_plt_sym,
305 elf_backend_got_header_size, elf_backend_plt_header_size):
308 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
309 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
310 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
311 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
312 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
313 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
314 * bfd-in2.h, libbfd.h: Regenerate.
316 2001-03-21 Diego Novillo <dnovillo@redhat.com>
318 (_bfd_mips_elf_relocate_section): Give a better error message when
319 a relocation is not recognized.
321 2001-03-21 Alan Modra <alan@linuxcare.com.au>
323 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
324 non-NULL before attempting to dereference.
326 2001-03-20 H.J. Lu <hjl@gnu.org>
328 * configure.in: Remove the redundent AC_ARG_PROGRAM.
329 * configure: Rebuild.
331 2001-03-20 Andreas Schwab <schwab@suse.de>
333 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
334 relocation value when resolving a reference from a debugging
337 2001-03-16 Scott Thomason <SThomaso@hii.com>
339 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
340 (xcoff64_swap_sym_out): Fix syntax errors.
342 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
344 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
346 2001-03-15 Alan Modra <alan@linuxcare.com.au>
348 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
349 (hppa_link_hash_newfunc): Init it.
350 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
351 section appears to be non-PIC.
352 (final_link_relocate): Likewise.
353 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
354 possible candidate function, and set pic_call for those that will
355 only have a .plt entry for the PIC call stub.
356 (hppa_handle_PIC_calls): Set maybe_pic_call.
358 2001-03-12 DJ Delorie <dj@redhat.com>
360 * elf32-sh.c (sh_elf_relocate_section): Only relocation
361 R_SH_DIR8WP* relocs if they're against external symbols, else
362 they're just for relaxing. Validate the reloc values.
364 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
366 * binary.c (bfd_external_binary_architecture): Declare.
367 (binary_object_p): If bfd_external_binary_architecture is defined,
368 set the architecture to this string.
370 2001-03-11 Philip Blundell <philb@gnu.org>
372 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
373 entries that could serve as a definition for a weak symbol.
375 2001-03-08 Nick Clifton <nickc@redhat.com>
377 * Most files: Update copyright notices using Perl script created
378 by Kevin Buettner <kevinb@redhat.com>.
380 2001-03-07 Nick Clifton <nickc@redhat.com>
382 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
383 prior patch on ! defined OLD_ARM_ABI.
385 2001-03-07 Andreas Jaeger <aj@suse.de>
387 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
388 some relocation values.
390 2001-03-06 Nick Clifton <nickc@redhat.com>
392 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
393 of offset in BLX(1) instruction.
394 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
395 offset in BLX(1) instruction.
398 2001-03-06 Nick Clifton <nickc@redhat.com>
400 * coff-arm.c (coff_arm_reloc_type_lookup): Add
401 BFD_RELOC_THUMB_PCREL_BLX.
403 2001-03-06 Igor Shevlyakov <igor@windriver.com>
405 * archures.c (bfd_default_scan): Add Coldfire CPUs.
406 * bfd-in2.h: Regenerate.
407 * cpu-m68k.c: Add Coldfire CPUs for arch table.
408 * ieee.c (ieee_write_processor): Set proper id for
411 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
413 * configure.in: Add s390 target.
414 * configure: Regenerate.
416 2001-02-28 Andreas Jaeger <aj@suse.de>
418 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
421 2001-02-28 Philip Blundell <pb@futuretv.com>
423 * elf32-arm.h: Update mentions of renamed EF_xx constants.
424 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
426 2001-02-27 H.J. Lu <hjl@gnu.org>
428 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
429 abfd->tdata.aout_data == NULL.
431 2001-02-27 Alan Modra <alan@linuxcare.com.au>
433 * elf32-hppa.c: Correct field selector in stub comments.
434 (clobber_millicode_symbols): Formatting fix.
436 * configure.in: Bump version to 2.11.90.
437 * configure: Regenerate.
438 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
439 (CFILES): $SOURCE_CFILES + generated C files.
440 (POTFILES): Include $HFILES not $SOURCE_HFILES.
442 * Makefile.in: Regenerate.
443 * doc/Makefile.in: This too.
445 2001-02-26 Timothy Wall <twall@cygnus.com>
447 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
450 2001-02-26 Nick Clifton <nickc@redhat.com>
452 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
453 up, replacing multiple if statements with a switch.
454 (handle_COMDAT): New function.
456 2001-02-26 H.J. Lu <hjl@gnu.org>
458 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
459 a warning for section flags we do not handle instead of
462 2001-02-26 Andreas Jaeger <aj@suse.de>
464 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
466 2001-02-22 Timothy Wall <twall@cygnus.com>
468 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
469 * configure.in: Add objects for elf64_ia64_aix vectors.
470 * configure: Regenerated.
471 * configure.host: Recognize ia64-*-aix*.
472 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
473 for AIX. AIX5 requires most relocations to be dynamic (*all*
474 binaries are somewhat similar to shared libraries).
475 * targets.c: Add elf64_ia64_aix vectors.
477 2001-02-21 David Mosberger <davidm@hpl.hp.com>
479 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
480 C8 said "1" instead of "8". Clarify error string for IMM22:
481 "signed integer" instead of just "integer".
483 2001-02-20 Andreas Jaeger <aj@suse.de>
485 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
486 PLT entries that could serve as a definition for a weak symbol.
488 2001-02-19 Jakub Jelinek <jakub@redhat.com>
490 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
491 entries that could serve as a definition for a weak symbol.
492 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
494 2001-02-18 David O'Brien <obrien@FreeBSD>
496 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
497 FreeBSD/i386-CURRENT differently until I can figure out the needed
499 * configure: Regenerate.
500 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
501 FreeBSD/PowerPC, and FreeBSD/sparc64.
503 2001-02-18 lars brinkhoff <lars@nocrew.org>
505 * Makefile.am: Add PDP-11 a.out target.
506 * config.bfd: Likewise.
507 * configure.in: Likewise.
508 * targets.c: Likewise.
509 * archures.c: Likewise.
510 * bfd-in2.h: Likewise. Add PDP-11 relocations.
511 * libbfd.h: Add PDP-11 relocations.
513 * cpu-pdp11.c: New file.
516 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
517 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
518 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
519 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
520 (GET_MAGIC): New macro.
521 (PUT_MAGIC): Likewise.
522 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
524 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
526 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
529 2001-02-18 H.J. Lu <hjl@gnu.org>
531 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
534 2001-02-18 Kazu Hirata <kazu@hxi.com>
536 * vms-misc.c: Fix formatting.
538 2001-02-16 Kazu Hirata <kazu@hxi.com>
540 * vms.c: Fix formatting.
542 2001-02-14 H.J. Lu <hjl@gnu.org>
544 * elf.c (elf_find_function): New function.
545 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
546 the file name and function name.
548 2001-02-14 Nick Clifton <nickc@redhat.com>
550 * ecoff.c (bfd_debug_section): Update to initialise new fields in
553 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
554 (BFD64_BACKENDS): Add pepigen.c
555 Add rules to create peigen.c and pepigen.c from peXXigen.c.
557 * Makefile.in: Regenerate.
558 * configure: Regenerate.
559 * po/POTFILES.in: Regenerate.
560 * po/bfd.pot: Regenerate.
562 2001-02-14 H.J. Lu <hjl@gnu.org>
564 * libcoff-in.h (pe_tdata): Add members target_subsystem and
565 force_minimum_alignment.
567 2001-02-14 Bo Thorsen <bo@suse.de>
569 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
570 (elf64_86_64_size_info): Struct added to fix a problem
571 with the hashtable string entries.
572 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
573 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
574 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
575 remove the FIXME for this.
576 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
577 section. Also removed the FIXME for it.
578 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
579 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
580 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
582 2001-02-13 Richard Henderson <rth@redhat.com>
584 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
585 and not user provided.
587 2001-02-13 Kazu Hirata <kazu@hxi.com>
589 * vms.c (vms_print_symbol): Remove unreachable code.
591 * rs6000-core.c: Fix formatting.
593 2001-02-13 David Mosberger <davidm@hpl.hp.com>
595 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
596 as _bfd_XXi_only_swap_filehdr_out.
597 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
598 pe->force_minimum_alignment to TRUE.
599 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
600 PEI_TARGET_SUBSYSTEM.
601 (pe_print_private_bfd_data): Call
602 _bfd_XX_print_private_bfd_data_common() instead of
603 _bfd_pe_print_private_bfd_data_common().
604 (pe_bfd_copy_private_bfd_data): Call
605 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
606 _bfd_pe_bfd_copy_private_bfd_data_common().
607 (coff_bfd_copy_private_section_data): Define as
608 _bfd_XX_bfd_copy_private_section_data instead of
609 _bfd_pe_bfd_copy_private_section_data.
610 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
611 of a _bfd_pe_get_symbol_info.
615 * peXXigen.c: Renamed from peigen.c.
616 (COFF_WITH_XX): Define this macro (will get expanded into
617 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
618 compiled as peigen.c or pepigen.c.
619 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
620 define the canonical PEP structures and definitions.
621 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
622 effect, enforce minimum file and section alignments. If
623 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
624 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
625 so, by default, this is a no-op).
627 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
628 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
629 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
630 _bfd_pefoo if it's not defined. Use these macros to define
633 * libcoff.h (pe_tdata): Add members target_subsystem and
634 force_minimum_alignment.
636 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
638 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
640 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
643 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
644 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
647 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
648 (BFD64_BACKENDS_CFILES): Mention pepigen.c
649 (peigen.c): Add rule to generate from peXXigen.c.
651 (pepigen.lo): List dependencies for pepigen.lo.
653 2001-02-13 Alan Modra <alan@linuxcare.com.au>
655 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
656 $global$ referenced but not defined, set its value here.
658 2001-02-09 Bo Thorsen <bo@suse.de>
660 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
662 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
664 (elf64_x86_64_relocate_section): Fix formatting.
665 (elf64_x86_64_relocate_section): Fix addend for relocation of
666 R_X86_64_(8|16|32|PC8|PC16|PC32).
668 2001-02-12 Jan Hubicka <jh@suse.cz>
670 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
672 2001-02-11 H.J. Lu <hjl@gnu.org>
674 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
677 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
679 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
680 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
681 relocations against dynsym symbols.
683 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
684 the R_MIPS_26 relocation.
685 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
686 the R_MIPS_26 relocation.
687 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
689 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
690 the R_MIPS_26 relocation.
691 (mips_elf64_howto_table_rela): Likewise.
693 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
694 member to mark symbols that have non-CALL relocations against
696 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
697 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
699 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
700 non-CALL relocation against it is encountered.
701 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
702 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
703 no_fn_stub is not set.
705 * elf32-mips.c (mips_elf_output_extsym): Get the output section
706 information from the real symbol for indirect ones.
707 Check no_fn_stub to find out if a symbol has a function stub
710 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
712 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
713 * Makefile.in: Regenerate.
715 2001-02-09 David Mosberger <davidm@hpl.hp.com>
717 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
718 true if section name is an unwind table section name.
719 (elfNN_ia64_additional_program_headers): Count each unwind section
721 (elfNN_ia64_modify_segment_map): Install one unwind program header
722 for each unwind separate section. Note: normally the linker
723 script merges the unwind sections that go into a single segment,
724 so this still generates at most one unwind program header per
727 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
728 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
729 (elfNN_ia64_fake_sections): Mark sections with names that start
730 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
733 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
734 Use it to make sh_info in unwind section point to the text section
737 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
739 * Makefile.am: Add linux target for S/390.
740 * archures.c: Likewise.
741 * bfd-in2.h: Likewise.
742 * config.bfd: Likewise.
743 * configure.in: Likewise.
745 * libbfd.h: Likewise.
746 * targets.c: Likewise.
747 * cpu-s390.c: New file.
748 * elf32-s390.c: New file.
749 * elf64-s390.c: New file.
751 2001-02-09 Nick Clifton <nickc@redhat.com>
753 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
754 ImageBase. This has already been done by coff_swap_hdr_in.
756 2001-02-09 Jakub Jelinek <jakub@redhat.com>
758 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
760 2001-02-09 Jakub Jelinek <jakub@redhat.com>
762 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
763 (sparc64_elf_relocate_section): Likewise.
765 2001-02-09 Mark Kettenis <kettenis@gnu.org>
767 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
768 similar to R_SPARC_32.
769 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
771 2001-02-08 H.J. Lu <hjl@gnu.org>
773 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
774 relocation entries for weak definitions when building DSO with
777 2001-02-08 Richard Henderson <rth@redhat.com>
779 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
780 before visibility. Locally defined protected symbols are not
783 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
785 * config.bfd: Enable coff64 for rs6000-*. Patch from
786 <hzoli@austin.ibm.com>.
788 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
790 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
791 found, do not attempt to find dwarf2 info before returning.
793 2001-02-07 Jakub Jelinek <jakub@redhat.com>
795 * elflink.h (is_global_symbol_definition): Rename to
796 is_global_data_symbol_definition and have it reject function
798 (elf_link_is_defined_archive_symbol): Use renamed function.
800 2001-02-07 Todd Vierling <tv@wasabisystems.com>
802 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
803 * libbfd.h (bfd_target_vector): Likewise.
804 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
805 make static; create pointer reference named bfd_target_vector.
806 (_bfd_target_vector_entries): Calculate this based on the array
807 typed _bfd_target_vector.
809 2001-02-06 H.J. Lu <hjl@gnu.org>
811 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
812 internal symbols are not dynamic.
813 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
815 2001-02-06 Nick Clifton <nickc@redhat.com>
817 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
818 that it will not be pulled into the list of files that make up
820 * Makefile.in: Regenerate.
821 * po/bfd.pot: Regenerate.
823 2001-02-06 H.J. Lu <hjl@gnu.org>
825 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
827 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
828 external_PEI_IMAGE_hdr.
830 2001-02-06 Kazu Hirata <kazu@hxi.com>
832 * elf-m10200.c: Fix formatting.
834 2001-02-04 Nick Clifton <nickc@redhat.com>
836 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
837 rel, it will be handled later on.
839 2001-02-02 Fred Fish <fnf@ninemoons.com>
841 * Makefile.in: Fix typo.
843 2001-02-01 Kazu Hirata <kazu@hxi.com>
845 * elf-m10300.c: Fix formatting.
847 2001-01-30 Alan Modra <alan@linuxcare.com.au>
849 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
850 (elf_backend_get_symbol_type): Define.
851 (elf64_hppa_object_p): Set architecture and machine from elf
854 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
856 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
859 2001-01-26 Richard Henderson <rth@redhat.com>
861 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
862 for non-default visibility.
863 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
864 delete ugly macro and replace with pretty function.
866 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
868 * coff-go32.c: Update copyright.
869 * coff-stgo32.c: Likewise.
870 * coff-go32.c (COFF_LONG_FILENAMES): Define.
871 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
872 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
873 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
875 2001-01-25 Kazu Hirata <kazu@hxi.com>
877 * bfd-in2.h: Rebuild.
878 * libbfd.h: Likewise.
880 2001-01-23 H.J. Lu <hjl@gnu.org>
882 * bfd-in2.h: Rebuild.
884 2001-01-23 H.J. Lu <hjl@gnu.org>
886 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
887 is NULL or PRIV(vms_rec) is outside of the buffer.
889 2001-01-23 Kazu Hirata <kazu@hxi.com>
891 * coff64-rs6000.c: Fix formatting.
892 * coff-arm.c: Likewise.
893 * coffgen.c: Likewise.
894 * cofflink.c: Likewise.
895 * coff-mcore.c: Likewise.
896 * coff-mips.c: Likewise.
897 * coff-pmac.c: Likewise.
898 * coff-ppc.c: Likewise.
899 * coff-rs6000.c: Likewise.
901 * elf32-fr30.c: Likewise.
902 * elf32-i370.c: Likewise.
903 * elf32-i860.c: Likewise.
904 * elf32-m32r.c: Likewise.
905 * elf32-m68k.c: Likewise.
906 * elf32-mcore.c: Likewise.
907 * elf32-ppc.c: Likewise.
908 * elf32-sh.c: Likewise.
909 * elf32-v850.c: Likewise.
910 * elf64-alpha.c: Likewise.
911 * elf64-sparc.c: Likewise.
912 * elflink.c: Likewise.
913 * elflink.h: Likewise.
914 * elf-m10200.c: Likewise.
915 * elf-m10300.c: Likewise.
916 * elfxx-ia64.c: Likewise.
918 * aoutx.h: Fix formatting.
920 * bfd-in2.h: Likewise.
921 * bfd-in.h: Likewise.
922 * cpu-i386.c: Likewise.
923 * cpu-m68hc11.c: Likewise.
924 * dwarf2.c: Likewise.
925 * elf64-x86-64.c: Likewise.
926 * format.c: Likewise.
927 * freebsd.h: Likewise.
929 * hp300hpux.c: Likewise.
930 * hppabsd-core.c: Likewise.
931 * hpux-core.c: Likewise.
933 2001-01-22 Bo Thorsen <bo@suse.de>
935 * elf64-x86-64.c: Added PIC support for X86-64.
936 (elf64_x86_64_link_hash_newfunc): Function added.
937 (elf64_x86_64_link_hash_table_create): Likewise.
938 (elf64_x86_64_check_relocs): Likewise.
939 (elf64_x86_64_gc_mark_hook): Likewise.
940 (elf64_x86_64_gc_sweep_hook): Likewise.
941 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
942 (elf64_x86_64_size_dynamic_sections): Likewise.
943 (elf64_x86_64_discard_copies): Likewise.
944 (elf64_x86_64_finish_dynamic_symbol): Likewise.
945 (elf64_x86_64_finish_dynamic_sections): Likewise.
946 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
948 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
950 * Makefile.am (install-data-local): Make use of $(DESTDIR).
951 * Makefile.in: Regenerate.
953 2001-01-21 Kazu Hirata <kazu@hxi.com>
955 * coff-a29k.c: Fix formatting.
957 2001-01-19 H.J. Lu <hjl@gnu.org>
959 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
960 relocation section names.
961 (elf_i386_relocate_section): Report files with bad relocation
962 section names and return false.
964 2001-01-17 Bo Thorsen <bo@suse.de>
966 * targets.c: Alphabetize list of xvecs.
968 2001-01-14 Alan Modra <alan@linuxcare.com.au>
970 * config.bfd: Add linux target variant for elfxx-hppa.
971 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
972 bfd_elf64_hppa_linux_vec.
973 * configure: Regenerate.
974 * elf64-hppa.c: Include elf64-target.h again to support linux
976 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
977 * elf32-hppa.c: Include elf32-target.h again to support linux
979 (elf32_hppa_post_process_headers): New function.
980 (elf_backend_post_process_headers): Define.
981 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
982 bfd_elf32_hppa_linux_vec.
984 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
985 and data_segment_base fields.
986 (elf32_hppa_link_hash_table_create ): Init them.
987 (elf32_hppa_check_relocs): Update comments.
988 (hppa_record_segment_addr): New function.
989 (elf32_hppa_relocate_section): Call it.
990 (final_link_relocate): Handle R_PARISC_SEGREL32.
991 (elf32_hppa_final_link): New function.
992 (bfd_elf32_bfd_final_link): Define to call it.
993 (hppa_unwind_entry_compare): New function.
994 * cache.c (bfd_open_file): Create files in write+read mode.
996 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
997 SEGREL32 and numerous other relocs. Change duplicate
998 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1000 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1003 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1004 .plt entries for DT_INIT and DT_FINI.
1005 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1006 DT_INIT and DT_FINI.
1008 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1009 offsets for stub .plt access if wide mode. Check offset in range.
1011 2001-01-13 Nick Clifton <nickc@redhat.com>
1013 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1016 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1019 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1021 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1022 * configure: Regenerate.
1024 2001-01-11 Peter Targett <peter.targett@arccores.com>
1026 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1027 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1028 * cpu-arc.c (arch_info_struct): Add entries for variants.
1029 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1030 (arc_get_mach) Don't assume machine names prefixed arc- before
1032 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1034 (arc_elf_final_write_processing) Likewise.
1035 (ELF_MACHINE_CODE) Use EM_ARC.
1037 2001-01-10 Nick Clifton <nickc@redhat.com>
1039 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1041 2001-01-07 Philip Blundell <philb@gnu.org>
1043 * README: Replace `bug-gnu-utils@gnu.org' with
1044 `bug-binutils@gnu.org'.
1046 2001-01-04 Kazu Hirata <kazu@hxi.com>
1048 * som.c: Fix formatting.
1050 2001-01-03 Kazu Hirata <kazu@hxi.com>
1052 * ecoffswap.h: Fix formatting.
1053 * elf-bfd.h: Likewise.
1054 * elfarm-nabi.c: Likewise.
1055 * elfarm-oabi.c: Likewise.
1056 * elfcode.h: Likewise.
1057 * elfcore.h: Likewise.
1058 * elflink.c: Likewise.
1059 * elflink.h: Likewise.
1060 * elfxx-ia64.c: Likewise.
1061 * elfxx-target.h: Likewise.
1062 * libbfd.c: Likewise
1063 * linker.c: Likewise.
1064 * lynx-core.c: Likewise.
1066 2001-01-02 Kazu Hirata <kazu@hxi.com>
1068 * pc532-mach.c: Fix formatting.
1069 * pe-arm.c: Likewise.
1070 * pe-i386.c: Likewise.
1071 * pe-mips.c: Likewise.
1072 * pe-ppc.c: Likewise.
1073 * pe-sh.c: Likewise.
1074 * pei-mips.c: Likewise.
1075 * pei-sh.c: Likewise.
1076 * peicode.h: Likewise.
1077 * ppcboot.c: Likewise.
1078 * ptrace-core.c: Likewise.
1080 2001-01-01 Kazu Hirata <kazu@hxi.com>
1082 * reloc.c: Fix formatting.
1083 * riscix.c: Likewise.
1084 * rs6000-core.c: Likewise.
1085 * xcoff-target.h: Likewise.
1087 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1089 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1090 error, by calling bfd_default_set_arch_mach with incoming
1093 2000-12-26 Kazu Hirata <kazu@hxi.com>
1095 * vaxnetbsd.c: Fix formatting.
1096 * versados.c: Likewise.
1097 * vms-gsd.c: Likewise.
1098 * vms-hdr.c: Likewise.
1099 * vms-misc.c: Likewise.
1101 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1103 * archive.c (coff_write_armap): Don't write more than symbol_count
1104 `archive_member_file_ptr's.
1106 2000-12-25 Kazu Hirata <kazu@hxi.com>
1108 * vms-tir.c: Fix formatting.
1110 2000-12-23 Kazu Hirata <kazu@hxi.com>
1112 * vms.c: Fix formatting.
1115 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1117 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1119 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1121 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1124 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1126 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1128 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1130 * libbfd.c (bfd_get_bits): Added
1131 (bfd_put_bits): Likewise
1132 * bfd-in.h: Declared the above.
1133 * bfd-in2.h: Regenerated.
1135 2000-12-20 Kazu Hirata <kazu@hxi.com>
1137 * targets.c: Fix formatting.
1138 * tekhex.c: Likewise.
1139 * trad-core.c: Likewise.
1141 2000-12-19 Kazu Hirata <kazu@hxi.com>
1143 * sco5-core.c: Fix formatting.
1144 * section.c: Likewise.
1145 * sparclinux.c: Likewise.
1146 * sparclynx.c: Likewise.
1147 * sparcnetbsd.c: Likewise.
1149 * stabs.c: Likewise.
1150 * stab-syms.c: Likewise.
1151 * sunos.c: Likewise.
1153 * sysdep.h: Likewise.
1155 2000-12-18 Nick Clifton <nickc@redhat.com>
1157 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1159 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1160 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1162 2000-12-18 Nick Clifton <nickc@redhat.com>
1164 * vms-misc.c (_bfd_vms_get_record): Add default case to
1167 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1169 * elfcore.h (elf_core_file_p): Move to the start of the program
1170 headers before attempting to read them.
1172 2000-12-14 Kazu Hirata <kazu@hxi.com>
1174 * peigen.c: Fix formatting.
1178 2000-12-13 Kazu Hirata <kazu@hxi.com>
1180 * peigen.c: Fix formatting.
1182 2000-12-12 Jim Wilson <wilson@redhat.com>
1184 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1186 2000-12-08 Mark Salter <msalter@redhat.com>
1188 * binary.c (binary_set_section_contents): Ignore sections
1191 2000-12-12 Kazu Hirata <kazu@hxi.com>
1193 * m68klinux.c: Fix formatting.
1194 * m68knetbsd.c: Likewise.
1195 * mipsbsd.c: Likewise.
1196 * netbsd-core.c: Likewise.
1197 * netbsd.h: Likewise.
1198 * newsos3.c: Likewise.
1199 * nlm32-alpha.c: Likewise.
1200 * nlm32-i386.c: Likewise.
1201 * nlm32-ppc.c: Likewise.
1202 * nlm32-sparc.c: Likewise.
1203 * nlmcode.h: Likewise.
1204 * nlmswap.h: Likewise.
1205 * nlm-target.h: Likewise.
1206 * ns32knetbsd.c: Likewise.
1208 2000-12-10 Fred Fish <fnf@be.com>
1210 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1211 symbols in shared objects if allow_shlib_undefined is true.
1213 2000-12-12 Nick Clifton <nickc@redhat.com>
1215 * cpu-sh.c: Fix formattng.
1216 * elf.c: Fix formattng.
1217 * elf32-mips.c: Fix formattng.
1218 * elf32-sh.c: Fix formattng.
1219 * elf64-alpha.c: Fix formattng.
1221 2000-12-09 Nick Clifton <nickc@redhat.com>
1223 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1224 dwarf2_find_line_info as last parameter to invocation of
1225 _bfd_dwarf2_find_nearest_line.
1226 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1227 dwarf2_find_line_info as last parameter to invocation of
1228 _bfd_dwarf2_find_nearest_line.
1230 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1232 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1233 (BFD_LIBS): ...to here.
1234 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1235 (BFD_LIBS_CFILES): ...to here.
1236 * Makefile.in: Regenerate.
1237 * configure.in: Remove dwarf.lo from the elf shell variable.
1238 * configure: Regenerate.
1239 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1240 * libcoff.h: Regenerate.
1241 * coffgen.c (coff_find_nearest_line): Call
1242 _bfd_dwarf2_find_nearest_line.
1243 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1245 (read_abbrevs): Likewise
1246 (decode_line_info): Likewise.
1247 (parse_comp_unit): Likewise.
1248 (comp_unit_find_nearest_line): Likewise.
1249 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1250 * libbfd.h: Regenerate.
1251 * elf.c (_bfd_elf_find_nearest_line): Update call.
1252 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1253 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1254 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1255 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1256 (styp_to_sec_flags): Handle DWARF2 sections.
1257 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1258 to _bfd_find_nearest_line.
1259 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1260 call to _bfd_find_nearest_line.
1262 2000-12-08 Kazu Hirata <kazu@hxi.com>
1264 * coffgen.c: Fix formatting.
1265 * elf-m10300.c: Likewise.
1266 * elf32-i386.c: Likewise.
1267 * elf32-i960.c: Likewise.
1268 * elf32-m68k.c: Likewise.
1269 * elf32-mcore.c: Likewise.
1270 * elf32-ppc.c: Likewise.
1271 * elf32-sh.c: Likewise.
1272 * elf32-sparc.c: Likewise.
1273 * elf32-v850.c: Likewise.
1274 * elf64-alpha.c: Likewise.
1275 * elf64-hppa.c: Likewise.
1276 * elf64-mips.c: Likewise.
1277 * elf64-sparc.c: Likewise.
1279 2000-12-07 Kazu Hirata <kazu@hxi.com>
1281 * elf32-ppc.c: Fix formatting.
1282 * elf64-x86-64.c: Likewise.
1284 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1286 From Ralf Baechle <ralf@gnu.org>
1288 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1289 BFDs containing no sections or empty .text, .data or .bss sections
1290 to be merged, regardless of their flags.
1292 2000-12-06 Kazu Hirata <kazu@hxi.com>
1294 * elf32-m32r.c: Fix formatting.
1295 * elf32-m68hc11.c: Likewise.
1296 * elf32-m68hc12.c: Likewise.
1297 * elf32-m68k.c: Likewise.
1298 * elf32-mcore.c: Likewise.
1299 * elf32-pj.c: Likewise.
1300 * elf32-ppc.c: Likewise.
1302 2000-12-05 Kazu Hirata <kazu@hxi.com>
1304 * elf32-fr30.c: Fix formatting.
1305 * elf32-hppa.c: Likewise.
1306 * elf32-i370.c: Likewise.
1307 * elf32-i386.c: Likewise.
1308 * elf32-i860.c: Likewise.
1309 * elf32-i960.c: Likewise.
1311 2000-12-03 Kazu Hirata <kazu@hxi.com>
1313 * elf32-arm.h: Fix formatting.
1314 * elf32-avr.c: Likewise.
1315 * elf32-cris.c: Likewise.
1316 * elf32-d10v.c: Likewise.
1317 * elf32-d30v.c: Likewise.
1318 * elf-hppa.h: Likewise.
1319 * elf-m10200.c: Likewise.
1320 * elf-m10300.c: Likewise.
1322 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1324 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1325 bfd_mach_mips32_4k. Update FIXME comment.
1326 * archures.c (bfd_mach_mips32): New constant.
1327 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1328 the latter, renumber it.
1329 * bfd-in2.h (bfd_mach_mips32): New constant.
1330 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1331 the latter, renumber it.
1332 * cpu-mips.c (I_mips32): New constant.
1333 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1334 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1335 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1336 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1337 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1338 with E_MIPS_MACH_MIPS32_4K.
1339 (_bfd_mips_elf_final_write_processing): Replace
1340 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1341 bfd_mach_mips32 case.
1342 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1343 comparison with support for MIPS32.
1344 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1347 * aoutx.h (NAME(aout,machine_type)): Add cases for
1348 bfd_mach_mips5 and bfd_mach_mips64.
1349 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1350 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1351 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1352 (arch_info_struct): Add entries for bfd_mach_mips5 and
1354 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1355 _bfd_mips_elf_print_private_bfd_data): Add cases for
1356 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1357 (_bfd_mips_elf_final_write_processing): Add cases for
1358 bfd_mach_mips5 and bfd_mach_mips64.
1360 * aoutx.h (NAME(aout,machine_type)): Add a
1361 bfd_mach_mips_sb1 case.
1362 * archures.c (bfd_mach_mips_sb1): New constant.
1363 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1364 * cpu-mips.c (I_sb1): New constant.
1365 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1366 * elf32-mips.c (elf_mips_mach): Add case for
1368 (_bfd_mips_elf_final_write_processing): Add case for
1371 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1373 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1374 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1375 (sparc*-*-rtems*): Switched from a.out to ELF.
1377 2000-11-30 Jan Hubicka <jh@suse.cz>
1379 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1380 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1381 (elf64-x86-64.lo): Add dependencies.
1382 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1383 bfd_mach_x86_64_intel_syntax.
1384 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1385 * config.bfd (x86_64): Add.
1386 * configure.in: Add support for bfd_elf64_x86_64_vec.
1387 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1388 (bfd_i386_arch, i8086_ar): Link in.
1389 * elf64-x86-64.c: New file.
1390 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1391 * targets.c (bfd_elf64_x86_64_vec): Add.
1392 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1394 2000-11-30 Kazu Hirata <kazu@hxi.com>
1396 * xcofflink.c: Fix formatting.
1398 2000-11-28 Kazu Hirata <kazu@hxi.com>
1400 * aoutx.h: Fix formatting.
1401 * bfd-in.h: Likewise.
1402 * bfd-in2.h: Likewise.
1403 * cache.c: Likewise.
1404 * cisco-core.c: Likewise.
1405 * coff64-rs6000.c: Likewise.
1406 * coffcode.h: Likewise.
1407 * coffswap.h: Likewise.
1408 * corefile.c: Likewise.
1409 * elf32-mips.c: Likewise.
1411 2000-11-27 Kazu Hirata <kazu@hxi.com>
1413 * aout-adobe.c: Fix formatting.
1414 * coff64-rs6000.c: Likewise.
1415 * coffgen.c: Likewise.
1416 * cofflink.c: Likewise.
1418 2000-11-27 Philip Blundell <pb@futuretv.com>
1420 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1421 (obj_coff_strings_written): New accessor macro for above.
1422 * libcoff.h: Regenerate.
1423 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1425 * coffcode.h (coff_write_object_contents): No need to write out
1426 the string table if it's already been done.
1428 2000-11-22 Philip Blundell <pb@futuretv.com>
1430 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1431 weak undefined symbols.
1433 2000-11-24 Nick Clifton <nickc@redhat.com>
1435 * archures.c (bfd_mach_arm_5TE): Define.
1436 (bfd_mach_arm+XScale): Define.
1437 * bfd-in2.h: Regenerate.
1439 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1440 BFD_RELOC_ARM_PCREL_BLX.
1442 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1443 XScale machine numbers.
1445 * config.bfd (xscale-elf): Add target.
1446 (xscale-coff): Add target.
1448 * cpu-arm.c: Add xscale machine name.
1449 Add v5t, v5te and XScale machine numbers.
1451 2000-11-23 Kazu Hirata <kazu@hxi.com>
1453 * aix386-core.c: Fix formatting.
1455 2000-11-22 Jim Wilson <wilson@redhat.com>
1457 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1458 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1459 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1460 (ins_imms_scaled): Initialize sign_bit at function entry.
1461 (elf64_ia64_operands): Add missing initializers.
1462 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1463 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1464 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1465 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1466 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1468 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1469 and free_extsyms at function entry.
1470 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1471 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1472 (get_got): Delete unused local srel.
1473 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1474 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1476 2000-11-21 Kazu Hirata <kazu@hxi.com>
1478 * coff-a29k.c: Fix formatting.
1479 * coff-h8500.c: Likewise.
1480 * coff-i960.c: Likewise.
1481 * coff-ppc.c: Likewise.
1482 * coff-rs6000.c: Likewise.
1483 * coff-stgo32.c: Likewise.
1484 * coff-tic54x.c: Likewise.
1485 * coff-w65.c: Likewise.
1486 * cpu-h8500.c: Likewise.
1487 * cpu-hppa.c: Likewise.
1488 * cpu-ns32k.c: Likewise.
1489 * ecoff.c: Likewise.
1490 * ecofflink.c: Likewise.
1492 2000-11-21 Nick Clifton <nickc@redhat.com>
1494 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1495 remove possibility of infinite loop.
1497 2000-11-20 Kazu Hirata <kazu@hxi.com>
1499 * aix386-core.c: Fix formatting.
1500 * aout-adobe.c: Likewise.
1501 * aout-arm.c: Likewise.
1502 * aout-encap.c: Likewise.
1503 * aout-ns32k.c: Likewise.
1504 * aout-target.h: Likewise.
1505 * aout-tic30.c: Likewise.
1506 * aoutf1.h: Likewise.
1507 * aoutx.h: Likewise.
1508 * archive.c: Likewise.
1509 * bfd-in.h: Likewise.
1510 * bfd-in2.h: Likewise.
1514 2000-11-17 H.J. Lu <hjl@gnu.org>
1516 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1517 pltoff entries for DT_INIT and DT_FINI.
1518 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1519 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1522 2000-11-16 Richard Henderson <rth@redhat.com>
1524 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1525 (allocate_dynrel_entries): Likewise.
1526 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1527 (set_pltoff_entry): Likewise.
1528 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1529 (elfNN_ia64_reloc_type_lookup): Likewise.
1530 (elfNN_ia64_install_value): Likewise.
1531 (elfNN_ia64_relocate_section): Likewise.
1532 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1533 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1535 2000-11-16 Kazu Hirata <kazu@hxi.com>
1537 * cpu-a29k.c: Fix formatting.
1538 * cpu-alpha.c: Likewise.
1539 * cpu-arm.c: Likewise.
1540 * cpu-avr.c: Likewise.
1541 * cpu-d10v.c: Likewise.
1542 * cpu-h8500.c: Likewise.
1543 * cpu-hppa.c: Likewise.
1544 * cpu-i370.c: Likewise.
1545 * cpu-i386.c: Likewise.
1546 * cpu-i960.c: Likewise.
1547 * cpu-ia64-opc.c: Likewise.
1548 * cpu-ia64.c: Likewise.
1549 * cpu-m32r.c: Likewise.
1550 * cpu-m68hc11.c: Likewise.
1551 * cpu-m68hc12.c: Likewise.
1552 * cpu-m68k.c: Likewise.
1553 * cpu-m88k.c: Likewise.
1554 * cpu-mips.c: Likewise.
1555 * cpu-ns32k.c: Likewise.
1556 * cpu-pj.c: Likewise.
1557 * cpu-powerpc.c: Likewise.
1558 * cpu-sh.c: Likewise.
1559 * cpu-sparc.c: Likewise.
1560 * cpu-tic54x.c: Likewise.
1561 * cpu-v850.c: Likewise.
1562 * cpu-vax.c: Likewise.
1563 * cpu-w65.c: Likewise.
1564 * cpu-we32k.c: Likewise.
1565 * cpu-z8k.c: Likewise.
1566 * dwarf1.c: Likewise.
1567 * dwarf2.c: Likewise.
1569 2000-11-15 Kazu Hirata <kazu@hxi.com>
1571 * coff-arm.c: Fix formatting.
1572 * coff-ppc.c: Likewise.
1573 * coff-rs6000.c: Likewise.
1574 * coff-sh.c: Likewise.
1575 * coff-sparc.c: Likewise.
1576 * coff-tic30.c: Likewise.
1577 * coff-tic54x.c: Likewise.
1578 * coff-tic80.c: Likewise.
1579 * coff-w65.c: Likewise.
1580 * coff-we32k.c: Likewise.
1581 * coff-z8k.c: Likewise.
1583 2000-11-15 Richard Henderson <rth@redhat.com>
1585 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1586 section with the same ALLOC|LOAD flags as the source section.
1588 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1590 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1591 by STO_ALPHA constants.
1593 2000-11-14 Kazu Hirata <kazu@hxi.com>
1595 * coff-pmac.c: Fix formatting.
1596 * coff-ppc.c: Likewise.
1598 2000-11-13 H.J. Lu <hjl@gnu.org>
1600 * elflink.h (elf_link_add_object_symbols): Also add indirect
1601 symbols for common symbols with the default version.
1603 2000-11-09 Philip Blundell <pb@futuretv.com>
1605 * section.c (STD_SECTION): Set gc_mark flag.
1607 2000-11-11 Kazu Hirata <kazu@hxi.com>
1609 * coff-i960.c: Likewise.
1610 * coff-m68k.c: Likewise.
1611 * coff-m88k.c: Likewise.
1612 * coff-mcore.c: Likewise.
1613 * coff-mips.c: Likewise.
1615 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1617 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1619 2000-11-10 Kazu Hirata <kazu@hxi.com>
1621 * coff-h8300.c: Fix formatting.
1622 * coff-h8500.c: Likewise.
1623 * coff-i386.c: Likewise.
1624 * coff-i860.c: Likewise.
1625 * coff-i960.c: Likewise.
1626 * coff-ia64.c: Likewise.
1628 2000-11-09 Kazu Hirata <kazu@hxi.com>
1630 * archive.c: Fix formatting.
1631 * archures.c: Likewise.
1633 2000-11-07 Richard Henderson <rth@redhat.com>
1635 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1636 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1637 * section.c (bfd_set_section_contents): Call memcpy if
1638 section->contents set and location not equal to contents plus offset.
1640 2000-11-08 Kazu Hirata <kazu@hxi.com>
1642 * bfd-in.h: Fix formatting.
1643 * bfd-in2.h: Likewise.
1645 * binary.c: Likewise.
1647 * coff-a29k.c: Likewise.
1648 * coff-alpha.c: Likewise.
1649 * coff-apollo.c: Likewise.
1650 * coff-aux.c: Likewise.
1652 2000-11-07 Kazu Hirata <kazu@hxi.com>
1654 * aix386-core.c: Fix formatting.
1655 * aoutf1.h: Likewise.
1656 * aoutx.h: Likewise.
1657 * archures.c: Likewise.
1658 * armnetbsd.c: Likewise.
1660 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1662 * coff-h8300.c (special): Adjust reloc address.
1664 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1666 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1667 to differentiate elf32 and elf64 on ia64.
1668 * bfd-in2.h: Regenerate.
1669 * config.bfd: Add target for "ia64*-*-hpux*".
1670 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1671 * configure: Regenerate.
1672 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1673 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1675 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1676 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1677 * Makefile.in: Regnerate.
1678 * elf64-ia64.c: Deleted.
1679 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1681 2000-11-06 Kazu Hirata <kazu@hxi.com>
1683 * aout-adobe.c: Fix formatting.
1684 * aout-arm.c: Likewise.
1685 * aout-cris.c: Likewise.
1686 * aout-encap.c: Likewise.
1687 * aout-ns32k.c: Likewise.
1688 * aout-target.h: Likewise.
1689 * aout-tic30.c: Likewise.
1691 2000-11-05 Philip Blundell <philb@gnu.org>
1693 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1694 BFDs containing no sections to be merged, regardless of their flags.
1696 2000-11-04 Philip Blundell <philb@gnu.org>
1698 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1699 if a relocation for an undefined symbol also results in an
1702 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1704 * config.bfd: Add support for Sun Chorus.
1706 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1708 * configure.in: Recognize alpha-*-freebsd*.
1709 * configure: Regenerate.
1711 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1713 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1714 (Chunk): New global variable set by a parameter in objcopy.c.
1715 (S3Forced): New global variable set by a parameter in
1717 (srec_set_section_contents): If S3Forced is true, always generate
1719 (srec_write_section): Use 'Chunk' to limit maximum length of S
1722 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1724 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1725 * Makefile.in: Regenerate.
1726 * bfd-in2.h: Regenerate.
1727 * po/bfd.pot: Regenerate.
1729 2000-10-31 Philip Blundell <philb@gnu.org>
1731 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1732 EF_SOFT_FLOAT if it is defined.
1734 2000-10-27 Philip Blundell <philb@gnu.org>
1736 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1737 attempts to mix PIC code with non-PIC, just mark the output as
1738 being position dependent.
1739 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1740 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1741 all mismatches, not just the first one.
1743 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1745 * ieee.c (ieee_archive_p): Plug one of many possible
1746 memory leaks in error handling.
1748 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1750 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1751 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1753 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1754 sparc64_elf_object_p): Support v9b.
1755 * archures.c: Declare v8plusb and v9b machines.
1757 * cpu-sparc.c: Ditto.
1759 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1761 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1764 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1765 (SYMBOL_CALLS_LOCAL): New macro.
1766 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1767 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1768 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1769 (ppc_elf_relocate_section): Use flag variable to determine
1770 whether the relocation refers to a local symbol.
1771 Test whether a PLTREL24 reloc will produce a reloc by looking
1772 to see whether a PLT entry was made.
1774 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1776 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1777 entries that could serve as a definition for a weak symbol.
1779 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1781 From Ralf Baechle <ralf@gnu.org>
1783 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1784 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1785 against local symbols.
1786 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1788 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1790 * section.c (struct sec): Add kept_section.
1791 (struct bfd_comdat_info): Remove sec, we can use above.
1792 (STD_SECTION): Add initializer.
1793 (bfd_make_section_anyway): Init here too.
1795 * bfd-in2.h: Regenerate.
1797 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1799 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1800 fudge values for discarded link-once section symbols.
1802 * elf64-hppa.c: Include alloca-conf.h
1804 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1806 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1808 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1810 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1812 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1814 2000-10-10 Tom Rix <trix@redhat.com>
1816 * section.c (bfd_make_section_anyway): Release newsect ptr when
1817 newsect->symbol fails to alloc. Use bfd_release instead of free.
1819 2000-10-09 Richard Henderson <rth@cygnus.com
1821 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1822 (elf64_ia64_unwind_entry_compare): New.
1823 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1825 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1827 * elflink.h (size_dynamic_sections): Don't create various tags if
1828 .dynstr is excluded from the link. Don't set first dynsym entry
1829 if dynsymcount is zero.
1830 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1831 .dynsym excluded from the link. Don't try to write any dynamic
1832 sections excluded from the link.
1834 * elf.c (swap_out_syms): Handle global section symbols.
1836 2000-10-05 DJ Delorie <dj@redhat.com>
1838 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1839 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1840 (coff_write_relocs): write extended reloc count
1841 (coff_write_object_contents): account for extended relocs
1843 2000-10-05 Jim Wilson <wilson@cygnus.com>
1845 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1847 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1848 elf_backend_section_flags function.
1849 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1851 (elf64_ia64_section_flags): New function containing flag conversion
1853 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1854 * elfxx-target.h (elf_backend_section_flags): Define.
1855 (elfNN_bed): Initialize elf_backend_section_flags field.
1857 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1859 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1860 _bfd_elf32_gc_record_vtable. Correct a comment.
1862 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1864 From Ralf Baechle <ralf@gnu.org>
1866 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1867 produces binaries with got[1] = 0x80000001 to differenciate them
1868 for the dynamic linker from the broken binaries produced by old
1871 2000-09-30 Petr Sorfa <petrs@sco.com>
1873 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1874 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1875 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1876 * configure: Regenerate.
1878 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1880 Define two bfd_targets for absence and presence of leading
1881 underscore on symbols. Make sure to only link same kind.
1882 * elf32-cris.c (cris_elf_object_p,
1883 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1884 cris_elf_merge_private_bfd_data): New.
1885 (elf_backend_object_p, elf_backend_final_write_processing,
1886 bfd_elf32_bfd_print_private_bfd_data,
1887 bfd_elf32_bfd_merge_private_bfd_data): Define.
1888 <Target vector definition>: Include elf32-target.h twice with
1889 different macro settings:
1890 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1891 bfd_elf32_us_cris_vec.
1892 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1893 (elf_symbol_leading_char): First as 0, then '_'.
1894 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1895 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1896 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1897 * configure: Regenerate.
1898 * targets.c: Declare bfd_elf32_us_cris_vec.
1899 * po/bfd.pot: Regenerate.
1901 2000-09-29 Momchil Velikov <velco@fadata.bg>
1903 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1904 R_ARM_THM_PC22 relocations.
1906 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1908 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1910 2000-09-29 Momchil Velikov <velco@fadata.bg>
1912 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1913 is has the SEC_HAS_CONTENTS flag set.
1915 2000-09-28 Örjan Friberg <orjanf@axis.com>
1916 Hans-Peter Nilsson <hp@axis.com>
1918 * aout-cris.c (N_TXTADDR): Define.
1920 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1922 * som.c: Include alloca-conf.h.
1923 * Makefile.am: "make dep-am"
1924 * Makefile.in: Regenerate.
1926 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1928 * elf32-hppa.c (plt_stub): New.
1929 (PLT_STUB_ENTRY): Define.
1930 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1931 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1932 (elf32_hppa_link_hash_table_create): Init to suit.
1933 (elf32_hppa_check_relocs): Set has_12bit_branch and
1934 has_17bit_branch as appropriate.
1935 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1936 non-local functions.
1937 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1938 Add space for plt_stub as needed.
1939 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1940 functions at plt_stub.
1941 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1942 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1944 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1945 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1946 of fixed size, and if negative, disable handling of input sections
1947 before stub section. Set up default stub group size depending
1948 on detected branch relocs.
1949 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1950 ensure different offsets from sym_value aren't rounded to
1951 different 2k blocks. Use lrsel and rrsel for other stubs too for
1952 consistency rather than necessity.
1953 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1954 (final_link_relocate): Likewise.
1955 (elf32_hppa_relocate_section): Likewise.
1957 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1958 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1959 (elf_hppa_final_link_relocate): Handle them.
1960 (elf_hppa_relocate_insn): Likewise.
1961 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1963 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1965 * elfcode.h (elf_object_p): Preserve and clear abfd section
1966 information. Restore at error.
1968 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1970 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1971 is empty, make sure that its rva also 0. NT loader dislikes
1974 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1976 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1979 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1981 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1982 currently unused RELATIVE_DYNAMIC_RELOCS code.
1983 (hppa_discard_copies): Likewise.
1984 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1985 comments. Don't check non-code output sections for stub grouping.
1987 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1989 * section.c (bfd_get_unique_section_name): Return NULL if
1992 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1994 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1995 instruction sequence to actually work.
1996 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1999 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2001 * elf32-sh.c (sh_elf_relocate_section): Use
2002 _bfd_final_link_relocate to apply the relocation against a section
2003 symbol, when doing relocatable links.
2005 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2007 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2009 (stub_hash_newfunc): Here too.
2010 (hppa_add_stub): And here.
2011 (elf32_hppa_link_hash_table): Remove stub_section_created,
2012 reloc_section_created, first_init_sec and first_fini_sec. Add
2014 (elf32_hppa_link_hash_table_create): Init to suit.
2015 (hppa_get_stub_entry): Add support for grouping stub sections.
2016 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2017 section code. Index stub vars by section->id.
2018 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2019 exit paths. Zap allocation of above removed vars. Refine
2022 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2023 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2024 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2025 rather than pointer to bfd_link_info.
2026 (hppa_add_stub): Likewise.
2027 (final_link_relocate): Likewise.
2029 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2031 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2034 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2036 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2037 ld/emulparams/shelf.sh.
2039 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2041 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2042 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2043 * bfd-in2.h: Regenerate.
2045 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2047 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2048 LITUSE relocations incorrectly if -relax is specified on the ld
2049 command line and the displacement field of the load or store
2050 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2052 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2054 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2055 first_fini_sec here.
2056 (elf32_hppa_size_stubs): Instead correctly find the first .init
2057 and .fini section here.
2059 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2061 * elf32-hppa.c (clobber_millicode_symbols): New function.
2062 (elf32_hppa_size_dynamic_sections): Call it.
2064 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2066 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2067 packed. Add plabel, plt_abs packed booleans.
2068 (hppa_link_hash_newfunc): Init new fields.
2069 (PLABEL_PLT_ENTRY_SIZE): Define.
2070 (hppa_stub_name): Use size_t len vars.
2071 (hppa_add_stub): Likewise.
2072 (elf32_hppa_build_stubs): Likewise.
2073 (hppa_build_one_stub): Kill some compiler warnings.
2074 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2075 if dynamic linking. Munge the local plt offsets into
2076 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2077 size_t len vars. Add assert for plabel addend.
2078 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2079 (elf32_hppa_hide_symbol): New function.
2080 (elf_backend_hide_symbol): Define.
2081 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2082 with h->plabel set. Don't make plt entries to have dynamic syms
2083 when they have been forced local. If plt entry is used by a
2084 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2085 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2086 Set up .plt offsets for local syms.
2087 (elf32_hppa_relocate_section): Initialise plt entries for local
2088 syms. Leave weak undefined plabels zero. Make global plabel
2089 relocs against function symbol, and leave the addend zero.
2090 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2091 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2092 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2093 relocs instead of SEGREL32 for dynamic got relocs.
2094 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2095 (elf_backend_got_header_size): Adjust.
2096 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2098 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2099 (hppa_type_of_stub): Use it instead of #if 0
2100 (hppa_discard_copies): Use it here too.
2101 (elf32_hppa_size_dynamic_sections): And here.
2103 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2104 (elf32_hppa_link_hash_table_create): And here.
2105 (hppa_build_one_stub): And here. Instead keep track of stub
2106 offset using _raw_size.
2107 (elf32_hppa_size_stubs): Likewise.
2108 (elf32_hppa_build_stubs): Likewise.
2109 (hppa_size_one_stub): Likewise. Resize reloc section too.
2111 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2112 first_fini_sec handling. Don't search for reloc section or set
2113 hplink->reloc_section_created here.
2114 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2115 set reloc_section_created here.
2116 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2117 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2119 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2121 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2122 with `hplink->root.'.
2123 (elf32_hppa_check_relocs): Likewise.
2124 (elf32_hppa_gc_sweep_hook): Likewise.
2125 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2126 (hppa_handle_PIC_calls): Likewise.
2127 (elf32_hppa_size_dynamic_sections): Likewise.
2128 (elf32_hppa_set_gp): Likewise.
2129 (elf32_hppa_relocate_section): Likewise.
2130 (elf32_hppa_finish_dynamic_symbol): Likewise.
2131 (elf32_hppa_finish_dynamic_sections): Likewise.
2133 From David Huggins-Daines <dhd@linuxcare.com>
2134 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2135 defined weak symbols in shared links.
2136 (final_link_relocate): Calls to defined weak symbols in shared
2137 objects must go via import stubs, as the target might not be known
2140 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2142 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2143 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2144 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2145 the original entries with EMPTY_HOWTOs, and added new ones to fill
2147 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2148 (sh_elf_relocate_section): Likewise.
2150 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2152 * cpu-mips.c (arch_info_struct): Add mips:4K
2153 * bfd-in2.h (bfd_mach_mips4K): New define.
2154 * archures.c: Add bfd_mach_mips4K to comment.
2155 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2156 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2158 2000-09-13 Marco Franzen <marcof@thyron.com>
2160 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2161 use size_t as a counter.
2162 (som_write_space_strings): Similarly.
2164 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2166 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2168 (elf32_i860_relocate_section): Invoke new function from here.
2170 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2172 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2175 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2177 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2178 target section name instead of dumping core when the target symbol is
2181 2000-09-09 Kazu Hirata <kazu@hxi.com>
2183 * riscix.c: Remove DEFUN.
2185 2000-09-08 Nick Clifton <nickc@redhat.com>
2187 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2188 initialise flags in output bfd if the input bfd is the default
2189 architecture with the default flags.
2191 2000-09-08 Kazu Hirata <kazu@hxi.com>
2193 * archive.c: Fix formatting.
2194 * coff-arm.c: Likewise.
2195 * doc/chew.c: Likewise.
2197 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2199 * section.c (bfd_get_unique_section_name): Put a dot before the
2202 2000-09-07 Kazu Hirata <kazu@hxi.com>
2204 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2205 * elf.c: Fix formatting.
2207 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2209 * config.bfd (sh-*-linux*): Added.
2210 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2211 * targets.c: Declare them.
2212 * elf32-sh-lin.c: New file.
2213 * Makefile.am: Compile it.
2214 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2215 * configure, Makefile.in: Rebuilt.
2217 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2219 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2220 pseduo-section when determining where the TOC ends.
2222 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2223 output x_tvndx as it is only two bytes wide.
2225 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2226 reloc is 26 or 32 bits wide.
2228 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2229 for relocs that don't change anything. Also look at the full
2232 2000-09-06 Philip Blundell <philb@gnu.org>
2234 * config.bfd (arm*-*-uclinux*): New target.
2236 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2238 * configure: Rebuilt with new libtool.m4.
2240 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2242 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2243 word for variable name.
2244 * bfd-in2.h: Regenerate.
2246 2000-09-05 Nick Clifton <nickc@redhat.com>
2248 * config.in: Regenerate.
2249 * libbfd.h: Regenerate.
2250 * po/bfd.pot: Regenerate.
2251 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2254 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2256 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2258 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2260 Shared library and PIC support.
2261 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2262 (GOT_ENTRY_SIZE): New.
2263 (ELF_DYNAMIC_INTERPRETER): New.
2264 (STUB_SUFFIX): Define.
2265 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2266 (RELATIVE_DYNAMIC_RELOCS): Define.
2267 (enum elf32_hppa_stub_type): New.
2268 (struct elf32_hppa_stub_hash_entry): Rename offset to
2269 stub_offset. Add a number of new fields.
2270 (struct elf32_hppa_link_hash_entry): New.
2271 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2273 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2274 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2275 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2277 (hppa_link_hash_newfunc): New function.
2278 (elf32_hppa_link_hash_table_create): Use above function. Init new
2280 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2281 instead of addend, and remove sym_name from args. Don't use
2282 symbol name for local syms, instead use sym index.
2283 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2284 stub type rather than size. Pass in hash and handle import stub
2285 case. Also pass in reloc instead of offset so we can calculate
2286 PCREL22F and PCREL12F branches properly.
2287 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2288 import and export stubs too.
2289 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2290 import and export stub sizing.
2291 (elf32_hppa_check_relocs): New function.
2292 (elf32_hppa_adjust_dynamic_symbol): New function.
2293 (hppa_discard_copies): New function.
2294 (elf32_hppa_size_dynamic_sections): New function.
2295 (elf_backend_size_dynamic_sections): Define.
2296 (elf32_hppa_finish_dynamic_symbol): New function.
2297 (elf_backend_finish_dynamic_symbol): Define.
2298 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2299 some local vars into the link hash table too. For shared links,
2300 trundle over function syms, generating export stubs. Handle
2301 PCREL22F branches. Break out stub creation code from here..
2302 (hppa_add_stub): .. to here. New function.
2303 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2304 call the bfd linker. Use elf_gp to record global pointer.
2305 Calculate a value from sections if $global$ is missing.
2306 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2307 (elf32_hppa_gc_mark_hook): New function.
2308 (elf_backend_gc_mark_hook): Define.
2309 (elf32_hppa_gc_sweep_hook): New function.
2310 (elf_backend_gc_sweep_hook): Define.
2311 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2312 Add rel to args, and remove howto, input_bfd, offset, addend,
2313 sym_name as we can recalculate these locally. Handle calls to
2314 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2315 handling of undefined weak syms. Check that stubs are in range.
2316 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2317 message on hitting a DPREL21L reloc that needs fixing. Subtract
2318 off PC for PCREL14F. Break out code that does a stub lookup from
2320 (hppa_get_stub_entry): ..to here. New function.
2321 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2322 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2324 (elf32_hppa_finish_dynamic_sections): New function.
2325 (elf_backend_finish_dynamic_sections): Define.
2326 (elf_backend_final_write_processing) Define.
2327 (hppa_handle_PIC_calls): New function.
2328 (elf32_hppa_build_stubs): Call it. Pass link_info to
2329 hppa_build_one_stub.
2330 (elf32_hppa_create_dynamic_sections): New function
2331 to create .plt and .got then set .plt flags correctly.
2332 (elf_backend_create_dynamic_sections): Define.
2333 (elf32_hppa_object_p): New function.
2334 (elf_backend_object_p): Define.
2335 (elf32_hppa_elf_get_symbol_type): New function.
2336 (elf_backend_get_symbol_type): Define.
2337 (elf_backend_can_gc_sections): Define.
2338 (elf_backend_want_got_plt): Define.
2339 (elf_backend_plt_alignment): Set to 2.
2340 (elf_backend_plt_readonly): Define.
2341 (elf_backend_want_plt_sym): Define.
2342 (elf_backend_got_header_size): Reserve one entry.
2344 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2345 (elf32_hppa_size_stubs): Pass in multi_subspace.
2346 (elf32_hppa_set_gp): Declare.
2348 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2349 (bfd_get_unique_section_name): New function.
2350 * bfd-in2.h: Regenerate.
2352 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2353 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2356 From David Huggins-Daines <dhd@linuxcare.com>
2357 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2358 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2359 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2360 been updated in finish_dynamic_symbol before modifying function
2363 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2364 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2365 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2366 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2367 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2368 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2369 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2370 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2372 From David Huggins-Daines <dhd@linuxcare.com>
2373 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2374 style of local labels as well.
2376 2000-09-03 Philip Blundell <philb@gnu.org>
2378 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2379 references to undefined symbols in debugging sections.
2381 2000-09-02 H.J. Lu <hjl@gnu.org>
2383 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2384 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2385 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2388 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2390 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2391 (elf32_i860_is_local_label_name): New function and prototype.
2393 2000-09-02 Nick Clifton <nickc@redhat.com>
2395 * configure.in: Increase version number to 2.10.91.
2396 * configure: Regenerate.
2397 * aclocal.m4: Regenerate.
2398 * config.in: Regenerate.
2399 * po/bfd.pot: Regenerate.
2401 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2403 * elf.c (_bfd_elf_make_section_from_shdr): Add
2404 .gnu.linkobce.wi. to the list of debug section names.
2406 2000-09-02 Nick Clifton <nickc@redhat.com>
2408 * dwarf2.c (find_debug_info): New function: Locate a section
2409 containing dwarf2 debug information.
2410 (bfd_dwarf2_find_nearest_line): Find all sections containing
2411 debug information and include them in the stash.
2413 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2415 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2416 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2417 (sh_reloc_map): Add new relocs.
2418 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2419 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2420 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2421 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2423 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2424 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2425 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2426 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2427 New array constants.
2428 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2430 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2431 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2432 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2433 elf_sh_plt_reloc_offset): Define.
2434 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2435 elf_sh_link_hash_table): New structs.
2436 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2437 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2439 (elf_backend_create_dynamic_sections,
2440 bfd_elf32_bfd_link_hash_table_create,
2441 elf_backend_adjust_dynamic_symbol,
2442 elf_backend_size_dynamic_sections,
2443 elf_backend_finish_dynamic_symbol,
2444 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2445 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2446 elf_backend_got_header_size, elf_backend_plt_header_size):
2448 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2449 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2451 * bfd-in2.h, libbfd.h: Rebuilt.
2453 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2455 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2458 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2460 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2461 not initialized, set them to indicate the SH1 instruction set.
2463 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2465 * acinclude.m4: Include libtool and gettext macros from the
2467 * aclocal.m4, configure: Rebuilt.
2469 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2471 * elf.c: Eliminate references to __sparcv9 macro; replace with
2472 autoconf variables HAVE_PSINFO32_T etc.
2473 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2474 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2476 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2477 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2478 * aclocal.m4: Ditto.
2479 * configure: Regenerate.
2481 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2483 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2484 for any shared link, not just shared -Bsymbolic.
2485 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2486 any shared link, and pass link info to it.
2487 (elf_i386_size_dynamic_sections): Update comment.
2488 (elf_i386_discard_copies): Modify to discard relocs for symbols
2489 that have been forced local.
2490 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2491 that have been forced local.
2493 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2495 * elflink.h (elf_link_add_object_symbols): Allow common
2496 symbols to have an alignment of 1 if explicitly requested, and
2497 not overridden by other definitions.
2499 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2501 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2502 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2504 2000-08-22 H.J. Lu <hjl@gnu.org>
2506 * elf-bfd.h (elf_link_hash_table): Add runpath.
2508 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2509 * bfd-in2.h: Rebuilt.
2511 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2512 "runpath" field to NULL.
2513 (bfd_elf_get_runpath_list): New function.
2515 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2518 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2520 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2521 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2522 explicitly. Improve validation of r_type.
2524 2000-08-21 H.J. Lu <hjl@gnu.org>
2526 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2527 dynamic allocated content space. Add a comment to remind us that
2528 one day this ought to be fixed.
2529 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2530 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2531 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2533 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2535 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2536 field with the newly relocated value instead of adding it to the
2537 existing immediate field.
2538 (elf32_i860_relocate_splitn): Likewise.
2539 (elf32_i860_relocate_highadj): Likewise.
2541 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2543 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2544 was previously just a stub).
2546 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2548 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2550 (_bfd_elf_create_dynamic_sections): Likewise.
2552 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2554 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2555 for undefined symbols to be the beginning of the section.
2557 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2558 four extra entries at the beginning of the .rela.plt section.
2559 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2560 section to account for the four reserved entries in the .plt section.
2562 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2564 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2565 to the list of NOPs we recognize after a branch-and-link.
2566 Use the ori NOP when one is needed.
2568 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2571 2000-08-14 Jim Wilson <wilson@cygnus.com>
2573 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2574 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2575 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2578 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2580 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2582 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2584 * elf32-i860.c (elf32_i860_relocate_section): New function.
2585 (i860_final_link_relocate): New function.
2586 (elf32_i860_relocate_splitn): New function.
2587 (elf32_i860_relocate_pc16): New function.
2588 (elf32_i860_relocate_highadj): New function.
2589 (elf32_i860_howto): Minor adjustments to some relocations.
2590 (elf_info_to_howto_rel): Define.
2591 (elf_backend_relocate_section): Define.
2593 2000-08-10 Nick Clifton <nickc@cygnus.com>
2595 * elf32-arm.h: Fix formatting.
2597 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2599 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2601 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2603 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2605 2000-08-07 Kazu Hirata <kazu@hxi.com>
2607 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2608 * elf64-ia64.c: Fix a typo.
2610 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2612 * elf32-i860.c (elf32_i860_howto_table): New structure.
2613 (lookup_howto): New function.
2614 (elf32_i860_reloc_type_lookup): New function.
2615 (elf32_i860_info_to_howto_rela): New function.
2616 (elf_code_to_howto_index): New structure.
2617 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2618 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2619 elf32_i860_reloc_type_lookup.
2621 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2623 * som.c (struct fixup_format): Constify `format'.
2624 (som_hppa_howto_table): Use SOM_HOWTO macro.
2625 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2626 (som_bfd_reloc_type_lookup): Likewise.
2627 (compare_subspaces): Remove unused `count1', `count2'.
2628 (som_begin_writing): Remove unused `total_reloc_size'.
2629 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2630 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2631 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2632 (som_find_nearest_line): Decorate unused parameter(s).
2633 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2634 (som_bfd_link_split_section): Likewise.
2636 2000-08-03 Nick Clifton <nickc@cygnus.com>
2638 * section.c: Restore backed out code.
2639 * elf.c: Restore backed out code.
2640 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2641 binaries from working.
2642 * bfd-in2.h: Regenerate.
2644 2000-08-03 H.J. Lu <hjl@gnu.org>
2646 * section.c: Back out the change made by Nick Clifton
2647 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2649 * bfd-in2.h: Likewise.
2652 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2654 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2656 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2658 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2659 * bfd-in2.h, libbfd.h: Regenerate.
2661 2000-07-31 Nick Clifton <nickc@cygnus.com>
2663 * section.c (struct sec): Add new boolean field 'segment_mark'.
2664 (STD_SECTION): Initialise new field to zero.
2666 * bfd-in2.h: Regenerate.
2668 * elf.c (copy_private_bfd_data): Reorganise section to segment
2669 mapping to cope with moved sections requiring new segments,
2670 and overlapping segments.
2671 (SEGMENT_END): New macro: Return the end address of a segment.
2672 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2673 contains a section by comparing their VMA addresses.
2674 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2675 contains a section by comparing their LMA addresses.
2676 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2677 section should be included in a segment.
2678 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2679 follows another in memory.
2680 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2683 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2685 * cpu-i860.c: Added comments.
2687 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2688 bfd_elf32_i860_little_vec.
2689 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2690 (ELF_MAXPAGESIZE): Changed to 4096.
2692 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2694 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2696 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2697 config for little endian elf32 i860.
2698 (targ_defvec): Define for the new config above
2699 as "bfd_elf32_i860_little_vec".
2700 (targ_selvecs): Define for the new config above
2701 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2703 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2706 * configure: Regenerated.
2708 2000-07-27 H.J. Lu <hjl@gnu.org>
2710 * elflink.h (elf_merge_symbol): Take one more argument,
2711 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2712 entry. Don't overide the existing weak definition if dt_needed
2714 (elf_link_add_object_symbols): Pass dt_needed to
2715 elf_merge_symbol ().
2717 2000-07-27 Nick Clifton <nickc@cygnus.com>
2719 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2722 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2724 * configure.host (*-*-aix*): AIX has 'long long' always.
2726 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2727 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2728 (xcoff_write_archive_contents_big): Don't update the offset
2729 of the symbol table, xcoff_write_armap will do it.
2731 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2733 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2734 of dynobj for SGI_COMPAT checks.
2736 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2738 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2739 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2740 * bfd-in2.h: Regenerate.
2742 2000-07-21 Nick Clifton <nickc@cygnus.com>
2744 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2745 range symbol indices in relocs and issue an error message.
2747 2000-07-20 H.J. Lu <hjl@gnu.org>
2749 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2750 info->new_dtags when setting DT_FLAGS_1. It will only be set
2751 by the new linker options. It shouldn't break anything.
2753 2000-07-20 H.J. Lu <hjl@gnu.org>
2755 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2756 only if info->new_dtags is true.
2758 2000-07-20 H.J. Lu <hjl@gnu.org>
2760 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2761 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2763 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2765 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2766 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2767 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2768 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2769 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2770 * Makefile.in: Rebuild.
2771 * aclocal.m4: Rebuild.
2772 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2773 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2774 (bfd_cris_arch): Declare.
2775 (bfd_archures_list): Add bfd_cris_arch.
2776 * bfd-in2.h: Rebuild.
2777 * config.bfd: (cris-*-*): New target.
2778 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2779 * configure: Rebuild.
2780 * elf.c (prep_headers): Add bfd_arch_cris.
2781 * libbfd.h: Rebuild.
2782 * libaout.h (enum machine_type): Add M_CRIS.
2783 * reloc.c: Add CRIS relocations.
2784 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2785 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2786 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2787 * po/POTFILES.in, po/bfd.pot: Regenerate.
2789 2000-07-19 H.J. Lu <hjl@gnu.org>
2791 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2792 DF_TEXTREL if DT_TEXTREL is set.
2793 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2794 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2795 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2796 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2797 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2798 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2799 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2800 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2801 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2802 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2804 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2805 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2807 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2809 2000-07-19 H.J. Lu <hjl@gnu.org>
2811 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2812 * bfd-in2.h: Rebuild.
2814 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2815 (elf_dt_soname): New.
2817 * elf.c (bfd_elf_set_dt_needed_soname): New.
2819 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2820 entry if the shared object loaded by DT_NEEDED is used to
2821 resolve the reference in a regular object.
2823 2000-07-19 H.J. Lu <hjl@gnu.org>
2825 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2826 DT_DEPAUDIT and DT_AUDIT as strings.
2828 2000-07-19 Nick Clifton <nickc@cygnus.com>
2830 * format.c: Fix formatting.
2832 2000-07-19 H.J. Lu <hjl@gnu.org>
2834 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2836 2000-07-19 H.J. Lu <hjl@gnu.org>
2838 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2839 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2840 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2841 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2842 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2843 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2844 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2846 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2848 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2849 renamed functions from here...
2850 (assign_section_numbers): Use renamed functions.
2851 (prep_headers): Use renamed functions.
2853 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2854 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2855 * bfd-in2.h: Regenerate.
2857 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2859 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2860 parenthesis in if statement.
2862 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2864 Enable the support for Traditional MIPS.
2865 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2866 return ict_none appropriately for traditional mips targets.
2867 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2868 (STUB_MOVE): Conditionalize for traditonal mips.
2869 (STUB_LI16): Likewise.
2870 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2871 room for RTPROC header.
2872 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2873 the permission for the PT_DYNAMIC as read, write and execute.
2874 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2875 for traditonal mips.
2876 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2877 _DYNAMIC_LINKING for traditonal mips.
2878 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2879 in case of traditonal mips.
2880 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2881 entry is required. For a function if PLT is not required then set the
2882 corresponding hash table entry to 0.
2883 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2885 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2886 shared object set the value to 0.
2887 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2888 _DYNAMIC_LINKING for traditonal mips.
2889 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2890 for traditonal mips.
2892 2000-07-15 H.J. Lu <hjl@gnu.org>
2894 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2896 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2898 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2899 out a structure that is BFD_IN_MEMORY.
2901 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2903 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2904 bfd pointer. Print section id instead of bfd pointer for local
2905 syms. Prefix addend with `+' for global syms as well as local.
2906 Correct calculation of name component lengths.
2907 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2909 From David Huggins-Daines <dhd@linuxcare.com>
2910 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2911 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2912 (elf64_hppa_modify_segment_map): Likewise.
2914 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2916 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2917 addresses to be "naturally" sign extended. Return -1 if unknown.
2918 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2919 * bfd-in2.h: Regenerate.
2921 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2923 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2924 and ECOF_SIGNED_64 to list ways to extract an offset.
2925 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2926 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2928 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2929 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2931 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2933 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2934 bfd_get_start_address.
2935 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2936 (elf_swap_ehdr_out): Ditto.
2938 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2940 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2941 compatibility with older binutils.
2943 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2945 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2946 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2948 From Ryan Bradetich <rbradetich@uswest.net>
2949 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2950 (parse_line_table): Ditto.
2951 (_bfd_dwarf1_find_nearest_line): Ditto.
2952 * syms.c (cmpindexentry): Remove extra `*' from params.
2954 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2956 * elf32-mips.c (sort_dynamic_relocs): New Function.
2957 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2958 via qsort to sort the dynamic relocations in increasing r_symndx
2961 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2963 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2964 ATTRIBUTE_UNUSED to unused args.
2965 (get_opd): Likewise.
2966 (get_plt): Likewise.
2967 (get_dlt): Likewise.
2968 (get_stub): Likewise.
2969 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2970 (elf64_hppa_link_output_symbol_hook): Likewise.
2971 (elf64_hppa_check_relocs): Delete unused var.
2972 (elf64_hppa_size_dynamic_sections): Likewise.
2973 (elf64_hppa_finalize_opd): Likewise.
2974 (elf64_hppa_finalize_dynreloc): Likewise.
2975 (elf64_hppa_modify_segment_map): Likewise.
2976 (elf64_hppa_finish_dynamic_sections): Likewise.
2978 * elf-hppa.h (elf_hppa_final_write_processing): Add
2979 ATTRIBUTE_UNUSED to unused args.
2980 (elf_hppa_final_link_relocate): Likewise.
2981 (elf_hppa_record_segment_addrs): Add paretheses.
2982 (elf_hppa_relocate_section): Constify dyn_name.
2984 From David Huggins-Daines <dhd@linuxcare.com>
2985 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2986 rearrange case statement so that it gets preferred to 32-bit ones.
2988 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2989 asection->id instead of address of asection structure.
2990 (elf32_hppa_size_stubs): Likewise.
2992 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2993 for .init* and .fini*.
2995 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2996 and addends used in stub names to 32 bits.
2997 (elf32_hppa_size_stubs): Likewise.
2999 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3000 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3001 not bfd_put_64. Fix minor comment typo and formatting.
3003 Changes to create multiple linker stubs, positioned immediately
3004 before the section where they are required.
3005 * elf32-hppa.c: Don't include hppa_stubs.h.
3006 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3007 (elf32_hppa_stub_hash_table): Delete.
3008 (elf32_hppa_link_hash_entry): Delete.
3009 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3010 stub_hash_table, and store the struct here rather than a pointer.
3011 Delete output_symbol_count. Add offset array. Change
3012 global_value to a bfd_vma.
3013 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3014 (elf32_hppa_stub_hash_traverse): Delete.
3015 (elf32_hppa_name_of_stub): Delete.
3016 (elf32_hppa_link_hash_lookup): Delete.
3017 (elf32_hppa_link_hash_traverse): Delete.
3018 (elf32_hppa_stub_hash_table_init): Delete.
3019 (elf32_hppa_size_of_stub): Pass input section and offset rather
3020 than location and calculate location here. Don't pass name as all
3021 stubs are now the same size.
3022 (elf32_hppa_stub_hash_newfunc): Init new fields.
3023 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3025 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3026 comparing against ints. Rewrite stub handling code.
3027 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3028 Case enums to int before comparing against ints. Remove
3029 bfd_reloc_dangerous case.
3030 (elf32_hppa_build_one_stub): Rewrite.
3031 (elf32_hppa_size_one_stub): New function.
3032 (elf32_hppa_build_stubs): Rewrite.
3033 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3034 Rewrite stub-handling specific code.
3036 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3038 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3040 * hppa_stubs.h: Delete.
3041 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3042 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3043 * Makefile.in: Regenerate.
3045 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3048 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3050 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3051 and section name for bfd_reloc_notsupported error message.
3052 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3053 bfd_reloc_notsupported.
3054 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3056 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3057 undefined weak symbols for all relocs.
3058 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3059 offsets are relative to one past the delay slot.
3060 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3061 branch destination. Put addend into stub name too.
3062 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3063 adjust by 8 when deciding whether a linker stub is needed. Put
3064 addend into stub name as for above.
3066 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3067 various args and vars.
3068 (elf32_hppa_bfd_final_link_relocate): Here too.
3069 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3070 inner block var to avoid shadowing.
3072 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3074 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3075 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3076 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3078 * libhppa.h: Change practically all unsigned ints to plain ints.
3079 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3082 From Ryan Bradetich <rbradetich@uswest.net>
3083 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3084 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3086 From David Huggins-Daines <dhd@linuxcare.com>
3087 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3088 to the new OP_* ones.
3090 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3091 error exit. Bail out earlier on plabel relocs that we aren't
3092 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3093 string, and then don't free our copy.
3094 (elf32_hppa_build_one_stub): Make insn unsigned int.
3096 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3097 available with BL, not BE and BLE.
3099 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3100 code for elf arg relocs.
3101 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3102 argument with elf_link_hash_entry h. Handle undefined weak
3103 symbols. Move $global$ lookup from here...
3104 (elf32_hppa_relocate_section): ...to here. Return correct error
3105 message for non-handled relocs.
3106 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3107 wrong test was -0x3ffff to +0x40000.
3109 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3110 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3111 Handle them as such.
3112 (elf_hppa_relocate_insn): Fix a typo.
3114 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3115 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3116 assemble_17, assemble_21): Delete.
3117 Supply defines for all 64 possible opcodes.
3118 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3119 formats. Handle COMICLR.
3120 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3123 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3124 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3125 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3127 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3128 the local syms - did this code get deleted accidentally? Ignore
3129 undefined and undefweak syms.
3131 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3132 block. Use it instead of elf64_hppa_hash_table (info).
3133 (elf_hppa_final_link_relocate): Use hppa_info instead of
3134 elf64_hppa_hash_table (info).
3136 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3137 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3138 (hppa_rebuild_insn): Mask immediate bits here instead.
3139 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3141 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3143 * section.c (struct sec): Add id field. Tidy comment formatting.
3144 (bfd_make_section_anyway): Set id.
3145 (STD_SECTION): Init id too.
3146 Change CONST to const throughout.
3147 * archures.c (bfd_arch_info): Tidy comment.
3148 (bfd_arch_list): Change a CONST to const.
3149 * libbfd-in.h: Tidy comments and replace CONST with const.
3150 * elf-bfd.h: Likewise.
3151 * libbfd.h: Regenerate.
3152 * bfd-in2.h: Regenerate.
3153 * libcoff.h: Regenerate.
3155 2000-07-07 DJ Delorie <dj@redhat.com>
3157 * archive.c (_bfd_write_archive_contents): Add an informative
3160 2000-07-06 Kazu Hirata <kazu@hxi.com>
3162 * srec.c: Fix formatting.
3164 2000-06-05 DJ Delorie <dj@redhat.com>
3168 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3170 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3171 value of PC-relative offsets.
3173 2000-07-03 Jim Wilson <wilson@cygnus.com>
3175 * elf64-alpha.c (alpha_elf_size_info): New.
3176 (elf_backend_size_info): Define to alpha_elf_size_info.
3177 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3179 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3181 * elf32-mips.c: Include elf32-target.h again for the traditional
3184 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3186 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3187 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3188 (avr_info_to_howto_rela): Likewise.
3189 (elf32_avr_gc_mark_hook): Likewise.
3190 (elf32_avr_gc_sweep_hook): Likewise.
3191 (elf32_avr_relocate_section): Likewise.
3193 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3195 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3196 an external symbol for a non-shared, non-relocatable link.
3198 2000-07-03 Nick Clifton <nickc@redhat.com>
3200 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3201 is an external symbol.
3202 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3205 2000-07-03 Kazu Hirata <kazu@hxi.com>
3207 * reloc16.c: Fix formatting.
3209 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3211 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3212 to add a new target for traditional mips i.e
3213 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3214 * configure.in: Likewise.
3215 * configure: Rebuild.
3216 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3218 (bfd_elf32_tradlittlemips_vec): Likewise.
3219 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3220 to see that elfNN_bed does not get redefined even if the target file
3221 is included twice for a chip. See elf32-mips.c.
3223 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3225 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3226 (CLEANFILES): Add DEPA.
3227 * Makefile.in: Regenerate.
3229 2000-06-30 DJ Delorie <dj@cygnus.com>
3231 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3232 can't assume the PE header is at 0x80.
3234 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3236 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3238 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3240 * go32stub.h: Update stub.
3242 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3244 * archures.c (bfd_mach_avr5): Define.
3245 * bfd-in2.h (bfd_mach_avr5): Define.
3246 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3247 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3248 (compatible): Update comment. Add missing test.
3249 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3250 for avr2 and avr4. Simplify 8K wrap code.
3251 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3252 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3254 2000-06-26 Kazu Hirata <kazu@hxi.com>
3256 * coff-h8300.c: Fix formatting.
3257 * cpu-h8300.c: Likewise.
3259 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3261 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3262 for local symbols whose names are unknown.
3264 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3266 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3268 * Makefile.in: Regenerate.
3269 * doc/Makefile.in: Regenerate.
3271 2000-06-20 H.J. Lu <hjl@gnu.org>
3273 * Makefile.am: Rebuild dependency.
3274 * Makefile.in: Rebuild.
3276 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3278 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3279 (elf_backend_copy_indirect_symbol): Map to the new function.
3281 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3283 * archive.c (normalize): Correct pointer comparison when checking
3285 (bfd_bsd_truncate_arname): Likewise.
3286 (bfd_gnu_truncate_arname): Likewise.
3288 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3290 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3291 sections elf_{text,data}_{section,symbol}.
3292 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3293 (_bfd_mips_elf_hide_symbol): New function.
3294 (elf_backend_hide_symbol): Map to the new function.
3295 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3296 definitions of mips_elf_{text,data}_{section,symbol}.
3297 (mips_elf_local_relocation_p): Try to find the direct symbol
3298 based on new check_forced argument.
3299 (mips_elf_calculate_relocation): Use new version of
3300 mips_elf_local_relocation_p.
3301 (mips_elf_relocate_section): Likewise.
3302 (_bfd_mips_elf_relocate_section): Likewise.
3303 (mips_elf_sort_hash_table): Only assert that have enough GOT
3305 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3306 entry if the relocation based on the new external argument.
3307 (mips_elf_create_dynamic_relocation): Assert that we have a
3308 section contents allocated where we can swap out the dynamic
3310 (mips_elf_calculate_relocation): Find the real hash-table entry
3311 correctly by using h->root.root.type. Only create a dynamic
3312 relocation entry if the symbol is defined in a shared library.
3313 Create an external GOT entry for the GOT16 relocation if the
3314 symbol was forced local.
3315 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3316 dynamic index if the symbol was forced local.
3318 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3320 * elf32-mips.c: Fix typos in comments.
3322 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3324 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3327 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3329 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3330 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3331 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3332 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3333 (bfd_elf32_m68hc11_vec): Likewise.
3334 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3335 Supports 68hc11 & 68hc12 at the same time.
3336 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3338 (bfd_elf32_m68hc11_vec): Likewise.
3339 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3340 * archures.c (bfd_m68hc12_arch): Define and register in global list
3341 (bfd_m68hc11_arch): Likewise.
3342 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3343 BFD_RELOC_M68HC11_3B): Define.
3344 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3345 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3347 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3349 * elf_bfd.h (struct elf_backend_data): Add info argument to
3350 elf_backend_hide_symbol.
3351 (_bfd_elf_link_hash_hide_symbol): Likewise.
3352 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3353 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3354 * elflink.h (elf_link_add_object_symbols): Likewise.
3355 (elf_link_assign_sym_version): Likewise.
3357 2000-06-18 H.J. Lu <hjl@gnu.org>
3359 * coff-i386.c (coff_i386_reloc): Don't return in case of
3360 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3361 Compensate PE relocations when linking with non-PE object
3362 files to generate a non-PE executable.
3364 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3366 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3367 GOT entries if we're doing a static link or -Bsymbolic link.
3369 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3371 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3372 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3374 (elf_link_output_relocs): Likewise.
3375 (elf_reloc_link_order): Likewise.
3377 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3379 * archures.c (enum bfd_architecture): #define constants for
3380 PowerPc and RS6000 machine numbers.
3381 * bfd-in2.h: Regenerate.
3382 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3383 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3384 and RS6000 machine numbers using #defined constants from
3386 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3387 machine numbers using #defined constants from archures.c. Add
3388 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3389 64-bit words in 620 entry.
3390 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3392 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3394 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3396 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3397 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3398 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3400 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3402 * bfd-in.h (bfd_family_coff): Define.
3403 * bfd-in2.h: Regenerate.
3404 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3405 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3406 instead of bfd_target_coff_flavour.
3407 * cofflink.c (_bfd_coff_final_link): Likewise.
3408 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3409 exclude XCOFF files.
3410 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3412 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3413 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3414 * xcofflink.c (XCOFF_XVECP): Delete.
3415 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3416 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3417 bfd_xcoff_record_link_assignment,
3418 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3419 check for bfd_target_xcoff_flavour.
3421 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3423 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3425 (read_hdr): New function.
3426 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3427 of trying to extract individual registers. Set abfd->arch_info
3428 to match the architecture that created the core file.
3429 (rs6000coff_get_section_contents): Delete.
3430 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3432 2000-06-14 H.J. Lu <hjl@gnu.org>
3434 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3437 2000-06-13 H.J. Lu <hjl@gnu.org>
3439 * configure: Regenerate.
3441 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3443 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3446 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3448 * configure.in (VERSION): Update to show this is the CVS mainline.
3450 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3452 * elf32-d10v.c: Include elf/d10v.h
3453 (enum reloc_type): Delete.
3454 * elf32-d30v.c: Include elf/d30v.h
3455 (enum reloc_type): Delete.
3457 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3458 * Makefile.in: Regenerate.
3460 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3461 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3462 move HOWTOs into elf_howto_table.
3463 (R_386_standard, R_386_ext_offset): Define.
3464 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3465 (elf_i386_reloc_type_lookup): Modify calculation of index into
3466 elf_howto_table since we've removed the padding.
3467 (elf_i386_info_to_howto_rel): Likewise.
3468 (elf_i386_relocate_section): Likewise.
3470 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3472 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3474 2000-06-05 H.J. Lu <hjl@gnu.org>
3476 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3477 an error when seeing an undefined symbol with hidden/internal
3478 attribute. It is handled in *_relocate_section ().
3480 2000-06-05 H.J. Lu <hjl@gnu.org>
3482 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3483 indirect symbol for the ELF_LINK_NON_ELF bit.
3484 (elf_link_output_extsym): Don't output the indirect symbol even
3485 if the ELF_LINK_NON_ELF bit is set.
3487 2000-06-01 J.T. Conklin <jtc@redback.com>
3489 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3490 (i[3456]86-*-netbsdaout*): New target.
3491 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3492 (i[3456]86-*-openbsd*): Likewise.
3494 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3496 * trad-core.c: From hpux-core.c, include <dirent.h> or
3497 <sys/ndir.h> when possible.
3499 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3501 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3502 definitions. We must not assume they are sorted in the file
3503 according to their index numbers.
3505 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3507 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3508 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3509 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3511 2000-05-30 Nick Clifton <nickc@cygnus.com>
3513 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3514 80960CA, 80960MC as valid machine names.
3516 2000-05-30 H.J. Lu <hjl@gnu.org>
3518 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3519 visibility bits if the symbol is undefined. Correctly handle
3520 weak undefined symbols with hidden and internal attributes.
3522 * elflink.h (elf_link_add_object_symbols): Always turn the
3523 symbol into local if it has the hidden or internal attribute.
3525 2000-05-29 Philip Blundell <philb@gnu.org>
3527 * ppcboot.c: Add packed attribute if compiling with GCC.
3529 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3531 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3533 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3535 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3536 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3537 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3540 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3542 * Makefile.am: Update dependencies with "make dep-am"
3543 * Makefile.in: Regenerate.
3545 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3546 bindtextdomain): Replace defines with those from intl/libgettext.h
3547 to quieten gcc warnings.
3549 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3551 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3553 * archive.c (normalize, bfd_bsd_truncate_arname,
3554 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3555 file names with backslashes.
3557 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3560 * sysdep.h: Include filenames.h.
3562 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3564 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3566 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3568 * elf64-sparc.c (sparc64_elf_relax_section): New.
3569 (sparc64_elf_relocate_section): Optimize tail call into branch always
3571 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3572 (elf32_sparc_relax_section): New.
3574 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3576 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3577 Remove unusued variables.
3578 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3579 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3580 previous fix, so that shared libs really don't influence targets
3581 extension mask and memory model.
3583 2000-05-23 H.J. Lu <hjl@gnu.org>
3585 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3586 h->root.other not h->other.
3587 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3589 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3591 2000-05-23 H.J. Lu <hjl@gnu.org>
3593 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3594 undefined symbol with the non-default visibility attributes.
3595 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3596 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3597 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3598 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3599 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3600 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3601 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3602 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3603 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3604 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3605 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3607 2000-05-22 Richard Henderson <rth@cygnus.com>
3609 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3610 PCREL22, PCREL64I. Zero size of special relocs.
3611 (elf64_ia64_reloc_type_lookup): Likewise.
3612 (USE_BRL, oor_brl, oor_ip): New.
3613 (elf64_ia64_relax_section): New.
3614 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3615 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3616 (elf64_ia64_relocate_section): Likewise.
3617 (bfd_elf64_bfd_relax_section): New.
3618 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3619 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3620 * bfd-in2.h, libbfd.h: Regenerate.
3622 2000-05-22 Nick Clifton <nickc@cygnus.com>
3624 * configure.in : Add peigen.lo to MIPS PE targets.
3625 * configure: Regenerate.
3627 2000-05-22 Momchil Velikov <velco@fadata.bg>
3629 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3630 only if it is known for both input and output bfds. Separate
3631 error message strings as in some languages, it may be necessary
3632 to change more than one place in the string to change between
3635 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3636 endianess checks, call _bfd_generic_verify_endian_match() instead.
3638 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3640 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3642 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3643 endianess before checking bfd flavours.
3645 2000-05-22 H.J. Lu <hjl@gnu.org>
3647 * elflink.h (elf_link_output_extsym): Clear the visibility
3648 field for symbols not defined locally.
3650 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3652 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3653 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3654 (hppa_rebuild_insn): Mask immediate bits here instead.
3655 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3657 2000-05-18 Momchil Velikov <velco@fadata.bg>
3659 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3660 relocs for an executable, ensure that they are virtual addresses.
3662 2000-05-18 Jeffrey A Law (law@cygnus.com)
3664 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3666 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3667 Rick Gorton <gorton@scrugs.lkg.dec.com>
3669 * elflink.h: Add emitrelocations support: when enabled, relocation
3670 information and relocation sections are put into final output
3671 executables. If the emitrelocations flag is set, do the following:
3672 (elf_bfd_final_link): Emit relocation sections.
3673 (elf_link_input_bfd): Compute relocation section contents.
3674 (elf_gc_sections): Don't clean relocation sections.
3676 2000-05-16 Catherine Moore <clm@cygnus.com>
3678 * som.c (som_decode_symclass): Recognize weak symbols.
3680 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3682 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3683 read idata section only from dataoff.
3684 (pe_print_edata): Correctly check for valid eat_member.
3686 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3688 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3690 2000-05-14 Philip Blundell <philb@gnu.org>
3692 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3694 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3696 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3698 * peigen.c (pe_print_idata): Look for .idata section and print
3699 info even if data directory has zero entries. Read idata section
3700 starting from dataoff, and adjust all data offsets to suit. Cast
3701 all bfd_vma vars to unsigned long before passing to fprintf.
3702 * peigen.c (pe_print_edata): Similarly, look for .edata section
3703 and print info even if data directory has zero entries. Cast
3704 all bfd_vma vars to unsigned long before passing to fprintf.
3706 From Szabolcs Szakacsits <szaka@F-Secure.com>
3707 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3708 directory size which may be bogus.
3709 * peigen.c (pe_print_edata): Similarly.
3711 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3713 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3715 (copy_private_bfd_data): Allow for space possibly taken up by elf
3716 headers when calculating segment physical address from lma.
3718 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3720 * versados.c (versados_scan): Init stringlen and pass_2_done.
3722 * trad-core.c (trad_unix_core_file_p): Return
3723 bfd_error_wrong_format rather than bfd_error_file_truncated.
3725 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3726 add_data_entry. DataDirectory virtual address is relative.
3727 (pe_print_idata): Account for relative DataDirectory virtual
3728 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3729 (pe_print_edata): Similarly.
3731 From Szabolcs Szakacsits <szaka@F-Secure.com>
3732 * peigen.c (dir_names): Add Delay Import Directory.
3733 (pe_print_idata): Always search for bfd section containing
3734 idata address rather than looking up section name. Print this
3735 section name rather than .idata.
3736 (pe_print_edata): Similarly. Also print some fields as %08lx.
3737 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3740 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3742 * xcoff.h: Rename to xcoff-target.h
3743 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3744 * coff-rs6000.c: Ditto.
3745 * coff64-rs6000.c: Ditto.
3746 * coff-pmac.c: Ditto.
3747 * Makefile.in: Regenerate.
3749 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3751 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3752 Change U802TOC64MAGIC to U803XTOCMAGIC.
3754 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3756 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3757 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3758 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3760 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3762 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3764 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3766 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3767 hidden and internal symbols.
3768 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3770 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3771 assign a PLT or GOT entry to symbols with hidden and
3772 internal visibility.
3774 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3776 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3778 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3780 2000-05-02 H.J. Lu <hjl@gnu.org>
3782 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3785 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3787 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3788 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3790 * Makefile.in: Regenerate.
3792 2000-05-01 Jim Wilson <wilson@cygnus.com>
3794 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3795 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3796 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3797 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3798 * Makefile.in: Rebuild.
3800 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3802 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3803 doesn't work very well.
3805 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3806 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3807 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3808 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3809 (elf_hppa_info_to_howto): Likewise.
3810 (elf_hppa_info_to_howto_rel): Likewise.
3811 (elf_hppa_reloc_type_lookup): Likewise.
3812 (elf_hppa_is_local_label_name): Likewise.
3813 (elf_hppa_fake_sections): Likewise.
3814 (elf_hppa_final_write_processing): Likewise.
3815 (elf_hppa_howto_table): Fully initialise all entries.
3816 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3817 (elf_hppa_info_to_howto): Likewise.
3818 (elf_hppa_info_to_howto_rel): Likewise.
3819 (elf_hppa_reloc_type_lookup): Likewise.
3820 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3821 elf_hppa_unmark_useless_dynamic_symbols,
3822 elf_hppa_remark_useless_dynamic_symbols,
3823 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3824 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3825 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3826 elf32-hppa.c mess is cleaned up.
3827 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3828 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3829 r_field then call hppa_field_adjust inline func with variable
3830 r_field arg, instead call hppa_field_adjust with fixed arg.
3831 In case R_PARISC_PCREL22F, don't set r_field.
3832 (elf_hppa_relocate_insn): Change args and return type to unsigned
3833 int. Call re_assemble_* funcs to do the work.
3835 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3838 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3840 (sign_extend): Mask first before sign extending.
3841 (low_sign_extend): Rewrite without condition expression.
3842 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3843 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3844 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3845 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3846 result as function return value rather than through pointer arg.
3847 Accept unsigned int args, and return unsigned int.
3848 (re_assemble_3): New. Combines function of dis_assemble_3 with
3849 re-assembly of opcode and immediate.
3850 (re_assemble_12): Likewise.
3851 (re_assemble_16): Likewise.
3852 (re_assemble_17): Likewise.
3853 (re_assemble_21): Likewise.
3854 (re_assemble_22): Likewise.
3855 (hppa_field_adjust): Rewrite and document, paying attention to
3856 size of types and signed/unsigned issues.
3857 (get_opcode): Shift before masking.
3858 (FDLW): Rename to FLDW.
3859 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3860 (hppa_rebuild_insn): Change args and return value to unsigned
3861 int. Make use of re_assemble_*. Correct case 11.
3863 * dep-in.sed: Handle ../opcodes/.
3864 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3865 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3866 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3867 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3868 elfarm-nabi.lo dependencies outside of auto-dependency area.
3869 Regenerate dependencies.
3870 * Makefile.in: Regenerate.
3872 * configure.in (TRAD_HEADER): Test non-null before
3874 * configure: Regenerate.
3876 * reloc.c: Fix mis-spelling in comment.
3878 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3880 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3881 * vms.c (vms_openr_next_archived_file): Return NULL.
3883 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3885 * coffcode.h Copy changes mistakenly done to libcoff.h in
3888 2000-04-29 Andreas Jaeger <aj@suse.de>
3890 * libbfd-in.h: Correctly check GCC version.
3891 * bfd-in.h: Likewise.
3892 * libhppa.h: Likewise.
3893 * libbfd.h: Regenerate.
3894 * bfd-in2.h: Regenerate.
3896 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3898 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3899 coffdu-rs6000.{lo,c}.
3900 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3902 * Makefile.in: Regenerate.
3903 * xcoff.h: New file.
3904 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3905 * coff-rs6000.c: Move all declarations and defines that are
3906 common to the xcoff backends into xcoff.h
3907 * coff64-rs6000.c: Ditto,
3909 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3911 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3912 _bfd_coff_force_symnames in strings and
3913 _bfd_coff_debug_string_prefix_length to their default values.
3914 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3916 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3918 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3919 _bfd_coff_force_symnames in strings and
3920 _bfd_coff_debug_string_prefix_length to their default values.
3922 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3924 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3925 Check local_got_refcounts before dereferencing.
3927 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3928 before deciding we don't need R_PPC_PLT32 relocation.
3929 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3932 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3934 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3936 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3937 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3938 (elf_i386_relocate_section): Allow for .plt to go missing.
3939 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3940 can use a relative reloc for got as elf_i386_relocate_section.
3941 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3943 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3945 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3947 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3949 * Makefile.am (coff64-rs6000.lo): New rule.
3950 * Makefile.in: Regenerate.
3951 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3952 xcoff_is_local_label_name, xcoff_rtype2howto,
3953 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3954 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3955 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3956 (NO_COFF_SYMBOLS): Define.
3957 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3958 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3960 (MINUS_ONE): New macro.
3961 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3963 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3964 coff_SWAP_aux_out): Map to the new functions.
3965 * coff64-rs6000.c: New file.
3966 * libcoff.h (bfd_coff_backend_data): Add new fields
3967 _bfd_coff_force_symnames_in_strings and
3968 _bfd_coff_debug_string_prefix_length.
3969 (bfd_coff_force_symnames_in_strings,
3970 bfd_coff_debug_string_prefix_length): New macros for above fields.
3971 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3972 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3973 of using coff_swap_sym_in directly.
3974 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3975 (coff_set_flags) Set magic for XCOFF64.
3976 (coff_compute_section_file_positions): Add symbol name length to
3977 string section length if bfd_coff_debug_string_prefix_length is
3979 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3980 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3981 using coff_swap_lineno_in directly.
3982 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3983 and _bfd_coff_debug_string_prefix_length fields.
3984 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3985 symbol names into strings table when
3986 bfd_coff_force_symnames_in_strings is true.
3987 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3988 SET_RELOC_VADDR): New macros.
3989 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3990 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3992 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3993 changes within RS6000COFF_C specific code.
3994 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3995 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3996 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3997 Extend existing hack on target name.
3998 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4000 * coff-tic54x.c (ticof): Keep up to date with new fields
4001 in bfd_coff_backend_data.
4002 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4003 targ_selvecs to include rs6000coff64_vec for rs6000.
4004 * configure.in: Add rs6000coff64_vec case.
4005 * cpu-powerpc.c: New bfd_arch_info_type.
4007 2000-04-24 Jeffrey A Law (law@cygnus.com)
4009 * config.bfd: Only disable elf32-hppa vectors, not all of the
4010 BSD and OSF configuration support. Provide (disabled) clauses
4012 * configure.in: Add clause for PA64 support.
4013 * configure: Rebuilt.
4015 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4016 (bfd_elf64_hppa_vec): Declare.
4018 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4019 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4020 (elf64-hppa.lo): Add dependencies.
4021 * Makefile.in: Rebuilt.
4023 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4025 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4027 * libhppa.h (dis_assemble_16): New function.
4028 (pa_arch): Added pa20w element.
4030 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4032 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4033 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4034 bfd_elf64_slurp_reloc_table.
4036 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4037 definitions to get external names.
4038 (elf_write_relocs): Renamed from write_relocs and make global.
4039 (elf_slurp_reloc_table): Make global.
4040 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4042 * archive.c (hpux_uid_gid_encode): New function.
4043 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4044 defined and the ID is greater than 99999.
4045 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4046 special uid/gid fields into 32 bit values.
4048 2000-04-21 Matthew Green <mrg@cygnus.com>
4050 * config.bfd: Add NetBSD/sparc64 support.
4052 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4053 David Mosberger <davidm@hpl.hp.com>
4054 Timothy Wall <twall@cygnus.com>
4055 Jim Wilson <wilson@cygnus.com>
4057 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4058 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4059 (BFD64_BACKENDS): Add elf64-ia64.lo.
4060 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4061 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4062 * Makefile.in: Rebuild.
4063 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4064 (bfd_ia64_arch): Declare.
4065 (bfd_archures_list): Add bfd_ia64_arch.
4066 * bfd-in2.h: Rebuild.
4067 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4068 * configure: Rebuild.
4069 * configure.host: (ia64-*-linux*): New host.
4070 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4071 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4072 * elf.c (prep_headers): Add bfd_arch_ia64.
4073 * libbfd.h: Rebuild.
4074 * reloc.c: Add IA-64 relocations.
4075 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4077 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4078 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4080 2000-04-21 Richard Henderson <rth@cygnus.com>
4082 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4083 contents when performing a partial link.
4084 (bfd_elf_d30v_reloc_21): Likewise.
4086 2000-04-20 H.J. Lu <hjl@gnu.org>
4088 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4089 patch to symbols defined by a shared object.
4090 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4092 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4095 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4096 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4098 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4100 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4101 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4102 (coff-ia64.lo): Add dependency.
4103 * Makefile.in: Regenerate.
4104 * coff-ia64.c: New file.
4105 * efi-app-ia32.c: Ditto.
4106 * efi-app-ia64.c: Ditto.
4107 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4108 (coff_set_flags): Ditto.
4109 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4110 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4111 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4112 * configure: Regenerate.
4113 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4114 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4115 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4116 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4117 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4118 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4119 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4120 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4121 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4122 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4123 (GET_PDATA_ENTRY): Ditto.
4124 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4125 data_start. Use above macros to read fields that are 64 bit wide for
4126 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4127 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4128 FileAlignment and SectionAlignment to minimum alignment if they
4130 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4131 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4132 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4133 Use above macros to write fields that are 64 bit wide for
4135 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4136 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4137 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4138 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4139 begin address, end address, and unwind info address only. Use
4140 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4142 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4143 HIGH3ADJ relocation names.
4144 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4145 * targets.c: Declare bfd_efi_app_ia32_vec and
4146 bfd_efi_app_ia64_vec.
4147 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4148 bfd_efi_app_ia64_vec.
4150 2000-04-17 Timothy Wall <twall@cygnus.com>
4152 * bfd-in2.h: Add prototypes for tic54x load page access.
4153 * bfd-in.h: Regenerate.
4154 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4155 in customized _set_arch_mach function.
4156 * coffcode.h (coff_set_alignment_hook): Set section load page if
4157 the appropriate macro is defined.
4158 (write_object_contents): Read section load page.
4160 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4162 * elf32-hppa.h: Update copyright date.
4164 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4165 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4167 * elf32-d30v.c (MAX32): Don't use LL suffix.
4168 (MIN32): Define in terms of MAX32.
4169 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4171 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4174 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4176 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4178 * dep-in.sed: Match space before file name, not after.
4179 * Makefile.am: Regenerate dependencies.
4180 * Makefile.in: Regenerate.
4182 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4183 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4184 extend without an if statement.
4186 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4188 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4190 * elf32-mips.c (gprel16_with_gp): Likewise.
4191 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4192 here using -0x40000, not (int)0xfffc0000.
4193 (elf32_hppa_size_of_stub): Likewise.
4195 2000-04-11 Timothy Wall <twall@cygnus.com>
4197 * coff-tic54x.c: Now builds with all targets.
4198 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4199 * Makefile.in: Regenerate.
4200 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4201 unitialized variable.
4203 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4205 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4206 --enable-build-warnings option.
4207 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4208 * Makefile.in, configure: Re-generate.
4210 2000-04-07 Nick Clifton <nickc@cygnus.com>
4212 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4213 BFD_RELOC_THUMB_PCREL_BLX.
4215 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4216 R_ARM_XPC25 and R_ARM_THM_PC22.
4218 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4219 R_ARM_XPC25 and R_ARM_THM_XPC22.
4220 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4221 R_ARM_[XPC25|THM_XPC22].
4223 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4224 elf/arm-oabi.h to elf/arm.h
4226 * Makefile.am: Fix dependency for elfarm-oabi.c
4227 * Makefile.in: Regenerate.
4229 * bfd-in2.h: Regenerate.
4230 * libbfd.h: Regenerate.
4232 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4234 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4235 and restore it on failure. Release newly allocated tdata on
4238 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4240 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4241 (decode_line_info): Set it. Report error if unit->line_offset is
4242 equal to or larger than it.
4244 2000-04-07 Timothy Wall <twall@cygnus.com>
4246 * targets.c: Added vecs for tic54x.
4247 * reloc.c: Added relocs for tic54x.
4248 * libbfd.h: Regenerated.
4249 * configure: Add TI COFF vecs for tic54x.
4250 * configure.in: Ditto.
4251 * config.bfd (targ_cpu): Recognize new tic54x target.
4252 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4253 * bfd-in2.h: Add tic54x target and relocations.
4254 * Makefile.am, Makefile.in: Add tic54x target.
4255 * archures.c (bfd_archures_list): Add tic54x target.
4256 * coff-tic54x.c: New.
4257 * cpu-tic54x.c: New.
4259 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4261 * elfcore.h (elf_core_file_p): call backend_object_p which
4262 thereby gets an opportunity to update the arch/machine type.
4264 2000-04-06 Timothy Wall <twall@cygnus.com>
4266 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4267 class. Handle SEC_CLINK and SEC_BLOCK flags.
4268 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4269 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4271 2000-04-06 Nick Clifton <nickc@cygnus.com>
4273 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4274 EF_INTERWORK if this is an unknown EABI.
4275 (elf32_arm_merge_private_bfd_data): Check EABI version
4276 numbers. Only check EF_xxx flags if the EABI version number
4278 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4279 if the EABI version number is unknown.
4280 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4281 if the EABI version number is unknown.
4283 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4285 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4286 BFD_RELOC_SH_LOOP_END.
4287 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4288 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4289 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4290 (sh_elf_reloc_loop): New function.
4291 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4293 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4294 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4295 * bfd-in2.h, libbfd.h: Regenerate.
4297 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4299 * po/bfd.pot: Regenerate.
4301 * Makefile.am: Remove extraneous mkdep comment.
4302 (MKDEP): Use gcc -MM rather than mkdep.
4303 (DEP): Quote when passing vars to sub-make. Add warning
4305 (DEP1): Rewrite for "gcc -MM".
4306 (CLEANFILES): Add DEP2.
4307 Update dependencies.
4308 * Makefile.in: Regenerate.
4310 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4312 * configure.in: Added corefile support for AIX 4.3. In particular,
4313 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4314 compiling rs6000-core.c.
4315 * configure: Regenerated.
4317 2000-04-03 H.J. Lu <hjl@gnu.org>
4319 * cache.c (bfd_open_file): Unlink the output file only if
4320 it has non-zero size.
4322 2000-04-01 Ken Block USG <block@zk3.dec.com>
4324 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4325 relative relocations for non-loaded sections in shared objects.
4326 (elf64_alpha_check_relocs): Similarly.
4328 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4330 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4331 BFD_RELOC_16 to switch for extended relocs.
4332 (MY_swap_ext_reloc_in): New.
4333 (MY_swap_ext_reloc_out): New.
4334 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4335 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4336 (NAME(aout,squirt_out_relocs)): Similarly use
4337 MY_swap_ext_reloc_out.
4338 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4340 2000-04-03 Kazu Hirata <kazu@hxi.com>
4342 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4343 the R_PCRWORD_B case.
4345 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4347 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4351 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4353 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4354 HOWTO references to bfd_elf_generic_reloc, that have
4355 partial_inplace == true, now use the new function. The function
4356 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4357 extends its fixes to the R_M32R_{16,24,32} relocs.
4358 The new logic in m32r_elf_lo16_reloc() has been removed, and
4359 it instead calls the new routine to obtain that functionality.
4361 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4363 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4364 elf32_avr_check_relocs, avr_final_link_relocate,
4365 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4366 elf32_avr_object_p): Add prototypes.
4367 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4368 (bfd_elf_avr_final_write_processing): Make static.
4370 2000-03-27 Denis Chertykov <denisc@overta.ru>
4372 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4373 * archures.c (bfd_architecture): Add AVR architecture.
4374 (bfd_archures_list): Add reference to AVR architecture info.
4375 * elf.c (prep_headers): Handle bfd_arch_avr.
4376 * reloc.c: Add various AVR relocation enums.
4377 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4379 * Makefile.am: Add support for AVR elf.
4380 * configure.in: Likewise.
4381 * config.bfd: Likewise.
4382 * Makefile.in: Regenerate.
4383 * configure: This too.
4384 * bfd-in2.h: And this.
4385 * libbfd.h: And this.
4387 2000-03-24 H.J. Lu <hjl@gnu.org>
4389 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4390 (elf64_alpha_find_reloc_at_ofs): Likewise.
4392 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4394 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4395 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4396 allowable range used to be -2**(n-1) to 2**n-1.
4397 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4398 "boolean overflow" with "bfd_reloc_status_type flag".
4400 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4402 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4404 2000-03-14 Kazu Hirata <kazu@hxi.com>
4406 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4407 of shrinks properly, including the last reloc.
4409 2000-03-13 Kazu Hirata <kazu@hxi.com>
4411 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4414 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4416 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4417 a format mismatch rather than an "error" from bfd_read such as
4418 bfd_error_file_truncated.
4420 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4422 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4423 sign-extension and big-endian compensation for
4424 R_MIPS_64 even in ld -r.
4426 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4428 * elf32-mips.c (mips_elf_next_relocation): Rename from
4429 mips_elf_next_lo16_relocation, and generalize to look
4430 for any relocation type.
4431 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4432 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4433 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4434 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4435 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4436 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4437 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4438 (mips_rtype_to_howto): Likewise.
4439 (mips_elf_calculate_relocation): Handle new relocs.
4440 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4441 are paired. The addend for R_MIPS_GNU_REL16_S2
4442 is shifted right two bits.
4444 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4446 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4447 comment, and ensure it doesn't happen again.
4448 (bfd_install_relocation): Same here.
4449 (_bfd_relocate_contents): Don't bother assigning unused signmask
4450 shift result. Fix typos in comments.
4451 Remove trailing whitespace throughout file.
4453 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4455 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4456 * bfd-in2.h: Rebuild.
4458 2000-03-06 Nick Clifton <nickc@cygnus.com>
4460 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4462 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4463 (SIZEOF_ILF_STRINGS): Redefine.
4464 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4465 relative reloc, as opposed to a section relative reloc.
4466 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4468 Add length of symbol's prefix to string pointer.
4469 Store a pointer to the symbol in the symbol pointer table.
4470 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4471 Initialise the symbol pointer table.
4472 Store the hint in the Hint/Name table.
4473 Make the jump reloc be symbol realtive, not section relative.
4474 Create an import symbol for imported code.
4476 2000-03-06 Catherine Moore <clm@cygnus.com>
4478 * elf.c (swap_out_syms): Check for null type_ptr.
4480 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4482 * aout-target.h (MY(write_object_contents)): Remove unused
4483 and unusable "#if CHOOSE_RELOC_SIZE".
4484 * pc532-mach.c (MY(write_object_contents)): Ditto.
4485 * netbsd.h (MY(write_object_contents)): Ditto.
4486 * hp300hpux.c (MY(write_object_contents)): Ditto.
4487 * freebsd.h (MY(write_object_contents)): Ditto.
4488 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4490 2000-02-29 H.J. Lu <hjl@gnu.org>
4492 * peicode.h (jtab): Make it static.
4494 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4495 defined and COFF_IMAGE_WITH_PE is not defined.
4496 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4497 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4499 2000-03-01 Nick Clifton <nickc@cygnus.com>
4501 * coff-arm.c (bfd_arm_process_before_allocation): Make
4502 'symndx' signed to prevent compile time warning.
4504 * coff-mcore.c: Remove unused prototype for pe_object_p.
4506 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4507 functions that are not used when COFF_IMAGE_WITH_PE is
4509 (struct sh_opcode): Change type of 'flags' field to unsigned
4510 long so that it can hold the USESAS flag.
4512 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4514 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4517 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4519 Remove unusued variables and code.
4520 (elf_backend_add_symbol_hook): Fix prototype.
4522 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4525 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4528 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4530 Remove unusued variables and code.
4531 (elf_backend_add_symbol_hook): Fix prototype.
4533 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4535 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4536 to unused function parameter.
4538 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4540 Use EMPTY_HOWTO to initialise empty howto slots.
4541 Remove unused variables.
4543 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4545 2000-03-01 H.J. Lu <hjl@gnu.org>
4547 * aoutx.h (aout_link_input_section_std): Pass "true" to
4548 the undefined_symbol callback.
4549 (aout_link_input_section_ext): Likewise.
4550 * bout.c (get_value): Likewise.
4551 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4552 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4554 (alpha_relocate_section): Likewise.
4555 * coff-arm.c (coff_arm_relocate_section): Likewise.
4556 * coff-i960.c (coff_i960_relocate_section): Likewise.
4557 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4558 * coff-mips.c (mips_relocate_section): Likewise.
4559 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4560 * coff-sh.c (sh_relocate_section): Likewise.
4561 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4562 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4563 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4564 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4565 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4566 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4567 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4568 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4569 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4570 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4571 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4572 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4573 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4574 * elflink.h (elf_link_output_extsym): Likewise.
4575 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4576 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4577 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4579 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4580 undefined_symbol callback when building shared library with
4581 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4583 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4584 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4585 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4586 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4587 (elf32_mips_get_relocated_section_content): Likewise.
4588 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4589 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4590 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4591 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4593 2000-02-28 Nick Clifton <nickc@cygnus.com>
4595 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4596 * Makefile.in: Regenerate.
4598 * configure.in: Add support for mips and sh pe vectors.
4599 * configure: regenerate.
4601 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4604 * targets.c: Add mips and sh pe vectors.
4606 * libpei.h (coff_final_link_postscript): Only define if not
4609 * coffcode.h: Add support for WinCE magic numbers.
4611 * peigen.c (pe_print_reloc): Update comment and rearrange
4612 appending of newline character.
4614 * peicode.h: Add support for Image Library Format.
4615 (pe_ILF_vars): Structure containing data used by ILF code.
4616 (pe_ILF_make_a_section): New function. Create a section based
4618 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4620 (pe_ILF_make_a_symbol): New function. Create a symbol based
4622 (pe_ILF_save_relocs): New function. Store the relocs created
4623 by pe_ILF_make_a_reloc in a section.
4624 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4626 (pe_ILF_object_p): New function. Return a bfd_target pointer
4628 (pe_bfd_object_p): If an ILF object is detected call
4629 pe_ILF_object_p on it.
4631 * coff-arm.c: Add support for WinCE relocs which are different
4632 from normal ARM COFF relocs.
4633 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4635 * coff-sh.c: Add support for sh-pe target.
4636 * pe-sh.c: New file. Support code for sh-pe target.
4637 * pei-sh.c: New file. Support code for sh-pe target.
4639 * pe-mips.c: New file. Support code for mips-pe target.
4640 * pei-mips.c: New file. Support code for mips-pe target.
4642 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4644 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4645 architecture if the object causing the bump is dynamic.
4646 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4647 and also don't it for memory ordering.
4648 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4650 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4652 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4653 calling bfd_get_section_size_before_reloc.
4654 (decode_line_info): Likewise.
4655 (_bfd_dwarf2_find_nearest_line): Likewise.
4657 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4659 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4660 name of the libtool directory.
4661 * Makefile.in: Rebuild.
4663 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4665 * som.c (SOM_HOWTO): Define.
4666 (som_hppa_howto_table): Use it.
4668 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4670 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4672 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4674 2000-02-24 Catherine Moore <clm@cygnus.com>
4676 * som.c (som_misc_symbol_info): Add field
4678 (som_bfd_derive_misc_symbol_info): Initialize
4680 (som_build_and_write_symbol_table): Keep track
4681 of secondary_def field.
4682 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4683 if secondary_def field is set.
4684 (som_bfd_ar_write_symbol_stuff): Initialize
4687 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4689 * dwarf2.c (read_address): Read 16-bits addresses.
4690 (parse_comp_unit): Accept addr_size == 2.
4692 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4694 * bfd-in.h: Update copyright date.
4696 2000-02-23 Linas Vepstas <linas@linas.org>
4698 * cpu-i370.c: New file.
4699 * elf32-i370.c: New file.
4700 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4701 (bfd_i370_arch): New.
4702 (bfd_archures_list): Add bfd_i370_arch.
4703 * elf.c (prep_headers): Add bfd_arch_i370.
4704 * Makefile.am: Add support for IBM 370 elf.
4705 * config.bfd: Likewise.
4706 * configure.in: Likewise.
4707 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4708 * reloc.c (bfd_reloc_code_type): Likewise.
4709 * targets.c: Likewise.
4711 * Makefile.in: Regenerate.
4712 * configure: Regenerate.
4713 * bfd-in2.h: Regenerate.
4715 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4717 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4718 invalid relocation types, and change them to R_386_NONE.
4720 2000-02-22 H.J. Lu <hjl@gnu.org>
4722 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4723 not defined, don't add a second ELF_VER_CHR.
4725 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4726 symbols converted to local symbols even when stripping all
4728 (elf_link_output_extsym): Process global symbols converted to
4729 local symbols even if they are being stripped.
4731 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4733 * archures.c (bfd_octets_per_byte): Return unsigned int.
4734 (bfd_arch_mach_octets_per_byte): Ditto.
4735 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4737 * section.c (bfd_get_section_size_before_reloc): Quell signed
4738 vs. unsigned comparison warning.
4739 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4740 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4741 change. What was I thinking?
4742 * bfd-in2.h: Regenerate.
4744 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4745 (elf_gc_sections): Same here.
4746 (elf_gc_common_finalize_got_offsets): And here.
4748 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4750 ELF HPPA doesn't work at present; remove it until it does.
4751 * config.bfd: Comment out setting targ_defvec to
4753 * Makefile.am: Rebuild dependencies.
4754 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4755 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4756 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4757 * Makefile.in: Rebuild.
4758 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4760 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4762 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4763 is no bfd_free(). Revert bfd_free part of previous change.
4765 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4767 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4769 (coff_compute_section_file_positions): Use bfd_free to pair
4771 (coff_write_object_contents): Likewise.
4773 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4774 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4776 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4778 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4779 (xcoff_ar_file_hdr_big): New structure.
4780 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4781 (xcoff_ar_hdr_big): New structure.
4782 (SIZEOF_AR_HDR_BIG): New macro.
4783 (xcoff_big_format_p): New macro.
4784 (xcoff_ardata_big): New macro.
4785 (arch_xhdr_big): New macro.
4786 (xcoff_slurp_armap): Handle large archives.
4787 (xcoff_archive_p): Detect large archives.
4788 (xcoff_read_ar_hdr): Handle large archives.
4789 (xcoff_openr_next_archived_file): Handle large archives.
4790 (xcoff_generic_stat_arch_elt): Handle large archives.
4791 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4792 (xcoff_write_armap_big): New function.
4793 (xcoff_write_armap): New function, dispatch to _old or _big.
4794 (xcoff_write_archive_contents_old): Rename from
4795 xcoff_write_archive_contents.
4796 (xcoff_write_archive_contents_big): New function.
4797 (xcoff_write_archive_contents): New function, dispatch to _old or
4800 2000-02-18 Richard Henderson <rth@cygnus.com>
4802 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4803 and hide_symbol members.
4804 (elf_link_hash_copy_indirect): Remove.
4805 (elf_link_hash_hide_symbol): Remove.
4806 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4807 and elf_backend_hide_symbol.
4808 (_bfd_elf_link_hash_copy_indirect): Declare.
4809 (_bfd_elf_link_hash_hide_symbol): Declare.
4810 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4811 (_bfd_elf_link_hash_hide_symbol): Likewise.
4812 (_bfd_elf_link_hash_table_init): Don't init killed members.
4813 * elflink.h (elf_link_add_object_symbols): Use the bed function
4814 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4815 (elf_link_assign_sym_version): Likewise.
4816 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4817 (elf_backend_hide_symbol): Likewise.
4818 (elfNN_bed): Update for new members.
4820 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4822 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4823 STACK_END_ADDR): Define for new core file format.
4824 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4825 for handling the vagaries of the various core file structures used
4826 by AIX over the years.
4827 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4828 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4829 core_dumpx structure.
4831 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4833 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4834 (bfd_mach_sh3_dsp): Likewise.
4835 (bfd_mach_sh4): Reinstate.
4836 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4837 * bfd-in2.h: Regenerate.
4838 * coff-sh.c (struct sh_opcode): flags is no longer short.
4839 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4840 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4841 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4842 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4843 (sh_opcodes): No longer const.
4844 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4845 (sh_insn_uses_reg): Check for USESAS and USESR8.
4846 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4847 (_bfd_sh_align_load_span): Return early for SH4.
4848 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4849 Take into account that field b of a parallel processing insn
4850 could be mistaken for a separate insn.
4851 * cpu-sh.c (arch_info_struct): New array elements for
4852 sh2, sh-dsp and sh3-dsp.
4853 Reinstate element for sh4.
4854 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4855 (SH4_NEXT): Reinstate.
4856 (SH3_NEXT, SH3E_NEXT): Adjust.
4857 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4858 * elf32-sh.c (sh_elf_set_private_flags): New function.
4859 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4860 (sh_elf_merge_private_data): New function.
4861 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4862 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4863 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4864 sh_elf_merge_private_data.
4866 2000-02-13 Richard Henderson <rth@cygnus.com>
4868 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4869 hide_symbol members.
4870 (elf_link_hash_copy_indirect): New.
4871 (elf_link_hash_hide_symbol): New.
4872 * elflink.h (elf_link_add_object_symbols): Break out copy from
4873 indirect new new symbol to elf.c.
4874 (elf_link_assign_sym_version): Break out privatization of
4875 non-exported symbol to elf.c.
4876 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4877 (_bfd_elf_link_hash_hide_symbol): New.
4878 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4880 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4882 * section.c (_bfd_strip_section_from_output): Add info parameter.
4883 If it passed as non-NULL, use it to check whether any input BFD
4884 has an input section which uses this output section. Change all
4886 * bfd-in2.h: Rebuild.
4888 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4889 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4891 * bfd-in2.h: Rebuild.
4893 2000-02-10 Timothy Wall <twall@cygnus.com>
4895 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4896 allow final modifications of swapped-in symbol.
4897 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4898 * coffcode.h (coff_write_relocs): Use macro
4899 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4900 symbol index should be set to -1.
4902 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4904 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4905 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4906 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4907 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4908 sh_insns_uses_or_sets_freg): New functions.
4909 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4910 * (sh_insns_conflict): Use new functions and new macros to
4911 detect conflicts when two instructions both set same integer registers,
4912 both set same fp register, and both set special register.
4914 2000-02-09 Timothy Wall <twall@cygnus.com>
4916 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4917 swapping in sections, so that the swapping routines have access to
4920 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4922 * coff-go32.c: Update comment. Update copyright.
4924 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4926 * syms.c (bfd_decode_symclass)
4927 Two new class characters were added - 'V' and 'v'. The
4928 meaning of 'W' is now restricted to just weak non-object
4929 symbols. This allows differentiation between, for example,
4930 weak functions vs weak objects. nm for example now dumps:
4932 'w' = weak unresolved
4933 'V' = weak global object
4934 'v' = weak unresolved object
4936 (bfd_is_undefined_symclass): New function. Return true if the
4937 given symbol class represents and undefined/unresolved symbol.
4939 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4942 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4944 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4945 STT_ARM_16BIT flag set, but it is not attached to a data object
4946 return STT_ARM_16BIT so that it will be treated as code by the
4949 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4951 * coff-i386.c (i3coff_object_p): Remove prototype.
4954 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4955 to name. Update copyright.
4957 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4958 assignment to avoid warning. Update copyright.
4960 2000-01-24 Robert Lipe (robertl@sco.com)
4962 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4963 instead of using GNU C extension.
4965 2000-01-21 Nick Clifton <nickc@cygnus.com>
4967 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4968 amount from a bfd_in_memory structure.
4969 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4972 2000-01-14 Nick Clifton <nickc@cygnus.com>
4974 * linker.c (default_indirect_link_order): oops - fix incorrectly
4975 applied patch from Tim Wall.
4977 2000-01-13 Timothy Wall (twall@tiac.net>
4979 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4980 = scnhsz, filhsz, relsz, aoutsz, etc)
4982 * coffswap.h: Ditto.
4984 2000-01-13 Nick Clifton <nickc@cygnus.com>
4986 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4987 interwork thumb to arm stub.
4989 2000-01-13 Timothy Wall (twall@tiac.net>
4991 * archures.c (bfd_octets_per_byte): New function: Return
4993 (bfd_arch_mach_octets_per_byte): New function: Return target
4996 * section.c: Distinguish between octets and bytes for usage of
4997 _cooked_size, _raw_size, and output_offset. Clarify
4998 description of bfd_set_section_contents.
5000 * bfd-in2.h: Regenerate.
5002 * coffgen.c: Indicate that the offset parameter is in bytes, not
5005 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5006 where appropriate to get the octet offset when calling
5007 bfd_set_section_contents.
5008 (bfd_coff_reloc_link_order): Ditto.
5010 * linker.c (bfd_generic_reloc_link_order): Ditto.
5011 (_bfd_default_link_order): Ditto.
5013 * reloc.c (bfd_perform_relocation): Distinguish between octets
5014 and bytes. Use octets when indexing into octet data; use bytes
5015 when calculating target addresses.
5016 (bfd_install_relocation): Ditto.
5018 * srec.c (srec_write_section): Ditto.
5020 2000-01-13 Nick Clifton <nickc@cygnus.com>
5022 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5023 3 to 2. This allows 4 byte sized sections, which is necessary for
5024 dlltool to build functioning DLLs.
5026 2000-01-10 Philip Blundell <pb@futuretv.com>
5028 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5029 (arm*-*-conix*): New target.
5031 2000-01-10 Egor Duda <deo@logos-m.ru>
5033 * config.bfd: Include elf32_i386 vector to target list for cygwin
5036 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5037 * configure.in: Test for structure win32_pstatus_t in
5039 * configure: Regenerate.
5041 * elf.c (elfcore_grok_win32pstatus): New function: process
5042 win32_pstatus_t notes in elf core file.
5043 (elfcore_grok_note): Detect win32_pstatus notes.
5045 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5047 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5049 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5050 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5052 For older changes see ChangeLog-9899
5058 version-control: never