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